api_message='Failed to assemble `video`... Detected runtime parameter `video` defined as `WorkflowImage` that is invalid. Failed on input validation. Details: NumPy image type is not supported in this configuration of `inference`

Describe your question/issue here! (delete this when you post)

  • Project Type: Object Detection
  • Operating System & Browser: MacOS / Chrome
  • Project Universe Link or Workspace/Project ID: N/A

I’m having some trouble running a video processing workflow. When I try to run a python file that uses client.run_workflow on an mp4 file on my computer, it gives me the above error. I’m confused because the error is seemingly telling me that I gave it a NumpPy image when I actually gave it an mp4 video. My workflow is configured to handle video files, but this doesn’t seem to have to do with any of the blocks themselves, anyway. Is it because client.run_workflow can’t pass a video to my workflow, so it instead gives it a single NumpPy image?

That is correct, when running inference on a video, I suggest implementing an Inference Pipeline, not client.run_workflow, to decode the .mp4 into frames and send each frame to the workflow.

Here is the Roboflow how to guide: Inference Pipeline

Happy building!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.