decentropy / SentryTurret

A robot to visually track and target an object. (RaspberryPi2 + RaspiCam + OpenCV + Dlib + servos/driver)
54 stars 40 forks source link

Possible to disable all code except the object/motion tracking via config.ini ? #3

Open saket424 opened 8 years ago

saket424 commented 8 years ago

Just came across this interesting project last night. Thanks for this code base involving opencv and dlib. I assume it works with python3 also.

Since I currently have access only to a pi3+picam and not any of the servo/turret stuff, I was wondering if you could give me a quick primer on how to use this code base for doing object tracting and motion tracking and disable/ignore the rest of the functionality. If there is an easy method that you can think of.

decentropy commented 8 years ago

Sure you can, as mentioned in the first line " you may try it out on a desktop with a webcam (after installing required python packages)."

So, for just the camera/targeting test...just turn off things in the config: usebluetooth = 0 useturret = 0 display = 1 quiet = 1

If you've got all the requirements installed, just run: $ python main.py

You might see some warning junk print out (I get this with the picam)... but after that, you can type 'h' for help & try it out.

Basics are space(' ') to reset, and t/1/2/3 for various targetting methods... and 'q' for quit.

Let me know if it works for you.