@@ -0,0 +1,1267 @@
+# a minimal tracking script - this will start all peer%0A# services and attach everything appropriately%0A# change parameters depending on your pan tilt, pins and%0A# Arduino details%0A# all commented code is not necessary but allows custom%0A# options%0A%0Aport = %22COM15%22%0AxServoPin = 13%0AyServoPin = 12%0A%0Atracker = Runtime.createAndStart(%22tracker%22, %22Tracking%22)%0A%0A# set specifics on each Servo%0AservoX = tracker.getX()%0AservoX.setPin(xServoPin)%0AservoX.setMinMax(30, 150)%0A%0AservoY = tracker.getY()%0AservoY.setPin(yServoPin)%0AservoY.setMinMax(30, 150)%0A%0A# changing PID values change the %0A# speed and %22jumpyness%22 of the Servos%0Axpid = tracker.getXPID()%0Aypid = tracker.getYPID()%0A%0A# these are default setting%0A# adjust to make more smooth%0A# or faster%0A# xpid.setPID(5.0, 5.0, 0.1)%0A# ypid.setPID(5.0, 5.0, 0.1)%0A%0A# optional filter settings%0Aopencv = tracker.getOpenCV()%0A%0A# setting camera index to 1 default is 0%0Aopencv.setCameraIndex(1) %0A%0A# connect to the Arduino%0Atracker.connect(port)%0A%0A# Gray & PyramidDown make face tracking%0A# faster - if you dont like these filters - you%0A# may remove them before you select a tracking type with%0A# the following command%0A# tracker.clearPreFilters()%0A%0A# simple face detection and tracking%0Atracker.faceDetect()%0A%0A# scans for faces - tracks if found%0A# tracker.findFace()%0A

Update and rename home/Alessandruino to home/Alessandruino/Tracking.faceDetection.py