hi tried to make a code for detecting objects with coco followed this guide: guide i am using rpi3B+ tried to use other suggestions online but that didnt work. when trying to run the code at the last part of the guide, i got an import error and as mentioned above the error in the title. the full error:
Traceback (most recent call last):
File "/home/adls3x/Projects/Python/tflite/object_detection/TFLite_detection_webcam.py", line 88, in <module>
from tflite_runtime.interpreter import Interpreter
File "/home/adls3x/Projects/Python/tflite/tflite-env/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 33, in <module>
from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
ImportError: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/adls3x/Projects/Python/tflite/tflite-env/lib/python3.9/site-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so)
lines 87-94 in my code: (error in second line of the code ahead)
if pkg:
from tflite_runtime.interpreter import Interpreter
if use_TPU:
from tflite_runtime.interpreter import load_delegate
else:
from tensorflow.lite.python.interpreter import Interpreter
if use_TPU:
from tensorflow.lite.python.interpreter import load_delegate
please note the folders in the error while helping me because i am very bad at improvising tech stuff.
if needed any more information please tell me any help will be appreciated
i have tried upgrading tensorrflow, uninstalling and installing, trying another rpi. nothing is working :(