EdjeElectronics / TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi

A tutorial showing how to train, convert, and run TensorFlow Lite object detection models on Android devices, the Raspberry Pi, and more!
Apache License 2.0
1.49k stars 684 forks source link

No module named 'cv2' #116

Open Frenchmol opened 2 years ago

Frenchmol commented 2 years ago

Hi, I'm new to the world of raspberry, I tried to follow the guide "How to Run TensorFlow Lite Object Detection Models on the Raspberry Pi" but when I launch the last command to run the tensorFlow lite model, I see this: Traceback (most recent call last): File "TFLite_detection_webcam.py", line 19, in import cv2 ImportError: No module named 'cv2'. How can I do to solve this problem? My goal was to follow this guide and the following guide to train a new dataset and make object detection of that. If there is an easier way I'm happy to follow that. Thank you very much

Petros626 commented 1 year ago

maybe you did not install it with sudo. Provide more information about the used command for installation

tCode5 commented 2 months ago

Did you activate the virtual environment before running the command?