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â