sunfounder / SunFounder_PiCar-V

Smart Video Car Kit V2.0 for Raspberry Pi from SunFounder
GNU General Public License v2.0
112 stars 175 forks source link

ball_tracker.py - no module named PiCar #44

Closed thesmarthomeninja closed 4 years ago

thesmarthomeninja commented 4 years ago

I know in the readme, it states that we need cv2/opencv which is already installed on my Picar, but when I tried to run this python script with idle (similarly to running the client.py script for client connection to the Pi server via wifi) - this ball_tracker.py script is throwing an error about needing a PiCar module. I went online and found the PiCar repository but cant seem to figure out how to install the module manually in my python library. Any suggestions or am I missing something and need to run this from the car/raspberry pi/server or something else potentially? Thanks!

thesmarthomeninja commented 4 years ago

Actually - nevermind, I found that I needed to run the script from the raspberry pi. When running it, I'm getting a different error. I think it has to do with my version of opencv.