TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard

No module named 'cv2'

Open Frenchmol opened this issue 4 years ago • 2 comments

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

Frenchmol avatar Oct 11 '21 14:10 Frenchmol

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

Petros626 avatar Apr 18 '23 08:04 Petros626

Did you activate the virtual environment before running the command?

stackxp avatar Jul 04 '24 18:07 stackxp