Still trying to get face tracking and Tracking working. I have point tracking working fine. I have tried to do this before and was told to put the haarcascade files somewhere. Can someone help me to get them to the right place, please. When I attempt face tracking the opencv shows the "haarcascade frontal" but it doesn't work. Sometimes the whole program shuts down.

Alessandruino

9 years 9 months ago

Go in the libraries folder, mrlmainfolder/libraries/zip and unzip the haarcascade zipped folders into the main mrl folder (the One in the screenshoot)

bhouston

9 years 9 months ago

unzipped the files and put them in .myrobotlab file. Still does not work. Sent a no worky

if you search for the word Traceback and find it in the log - it's usually a Python problem
This is what I found :

Traceback (most recent call last):
  File "<string>", line 58, in <module>
AttributeError: 'org.myrobotlab.service.Tracking' object has no attribute 'pyramidDown'

	at org.python.core.Py.AttributeError(Py.java:166)
	at org.python.core.PyObject.noAttributeError(PyObject.java:930)
	at org.python.core.PyObject.__getattr__(PyObject.java:925)
	at org.python.pycode._pyx3.f$0(<string>:2988)
	at org.python.pycode._pyx3.call_function(<string>)
	at org.python.core.PyTableCode.call(PyTableCode.java:165)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1261)
	at org.python.core.Py.exec(Py.java:1305)
	at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
	at org.myrobotlab.service.Python$PIThread.run(Python.java:172)

 

Ok, so the complaint is "pyramidDown" is not a method of Tracking ...
but on this line you are using it like one.

i01.headTracking.pyramidDown()

If you ever wonder what methods a Service has - you can use the techniques listed in this post to help you.

http://myrobotlab.org/content/what-methods-can-i-use 

What you "might" want is to use the addFilter(String) method 

Here is it listed in the gui

What you probably want is :

i01.headTracking.addFilter("PyramidDown")

bhouston

9 years 8 months ago

I've got the face tracking working now. Now I will work on getting it to move smoother - pretty jerky now - but hey it's working. Thanks for the help!