Webcam Inference does not work with Jetson Nano inference server

Hi mate as Kelly said I was having the same problem today.

That cv2 error arises when there wasn’t an image for cv2 to read, so assuming you have your webcam plugged in you’re problem is almost definitely that you didn’t fill in the config JSON file correctly.

In my case for inputting my model when customizing the JSON I didn’t understand the formatting and put it in wrong, therefore when the program tries to access the model on the website, the website response would return a NoneType, and cv2 can’t read non existent data, hence the error!

For the ‘model’ input the template example in the JSON reads “xx-model-#” but in reality if your model is named “cats” and it’s the third version you want the model input should be “cats/3”

1 Like