I used the following example, as is, ie with pictures of bananas, apples and oranges.
I then downloaded the .blob, inserted the path to it into "08 - RGB & MobilenetSSD" example code and replaced labelMap array with:
labelMap = ["apple","banana","orange"]
When I run the script and point my OAK-D at some pics, four things happen:
1) It totally ignores oranges. Always.
2) It reliably detects bananas, but calls them oranges.
3) It reliably detects apples, but calls them bananas.
4) Often, when there are several objects in the pic, script fails with:
Traceback (most recent call last):
File "08test.py", line 103, in <module>
File "08test.py", line 77, in displayFrame
cv2.putText(frame, labelMap[detection.label], (bbox + 10, bbox + 20), cv2.FONT_HERSHEY_TRIPLEX, 0.5, 255)
IndexError: list index out of range
What can be wrong and how to fix?