I finally managed to install tensorflow lite incl. opencv on my raspberry pi zero w (v.1.1) with bullseye OS and python3. When I try to run the example recommended on this site for Raspberry PI (called classify.py) but also when I try to run the example label_image.py I get an error message “illegal instruction”, with no further details.
Through the use of print statements in the python files, I manage to narrow it down to the statement
“from tflite_runtime.interpreter import Interpreter”. That is when the error occurs (in the file image_classifier.py)
When I type this import statement manually at a python prompt, I also get the same error message.
I have a suspicion that the PI Zero is just not suitable to run tf lite due to limited processor capabilities? Is that correct? Do I need a more powerful Raspberry PI?
Or is there another explanation (or even better: a solution!) ? How can I debug further?
In the end, my goal is to do some object recognition to control the direction of a small robot.
Thanks