I have created a computer vision model using Azure Custom Vision. I exported it by selecting the Tensorflow Lite option. I then deployed the model onto a Raspberry Pi 4 and adapted this program from Edje Electronics so my model could take inputs from a webcam’s live stream.
However, when I run the program, I get the following error message: “IndexError: list index out of range” from the line: “ classes = interpreter.get_tensor(output_details[‘index’]) # Class index of detected objects”.
I searched online and found that the author of the Edje Electronics program said that this error occurs when the model is an image classifier, while the program is built for objection detection models.
However, the model I created in Azure Custom Vision can be used for object detection (I boxed the training images). When I exported the model, I found that it also gave me 2 python programs along with the model files: one to run objection detection and the other to run image classification. When I opened the object detection program, it said that the code for detecting objects was not implemented.
Now, I do not know how to use my Azure model for object detection in the Raspberry Pi with the Edje Electronics program I mentioned above.
I would really appreciate it if anyone could help me out.