Started this post to help us get an idea of what a very cool demo would be utiliizing voice control, servos, saving images, and image template matching in MRL.
The general tutorial (so far) should be a game of Peek-A-Boo
The instructor has a scene of simple object.
The instructor tells the pan/tilt kit to look away
It looks away
The instructor asks which object is gone
the robot tells which is gone
solved GroG :)
Problem solved :)
Heh, we should do this ;)
Heh, we should do this ;)
test
To get the file name you
To get the file name you should be able to do this..
photoFileName = opencv.recordSingleFrame(True)
It gives me None
mmm....
It's a method .. not a
It's a method .. not a field
So it has to be with parens
photoFileName = opencv.getLastRecordedFrameFileName()
Saving AVI problems
So when you stop, then close (make sure MRL is dead) - you should be able to play the file.. This is how it's always behaved apparently.
The reason is the library I am using (JavaCV) is not thread-safe. And the thread doing the capturing is not the same thread which stops the capture ;P
I can fix this.. just will take some time...
Fixed !
No really I really really fixed it this time ;D
So its back to your original script - I got rid of getLastSingleFrame ...
Now
photoFileName = opencv.recordSingleFrame(True)
blocks so that - it will continue when it has the correct filename