I have this piece of code and expected that my "input" function would get called
I do not know whether this is thought to trigger with every frame captured?
Anyway, in my case "input" does not get called. What is wrong with my code (tried it with 2241 and 2275)?
def input(data): print "in input"
opencv = Runtime.create("opencv","OpenCV") topcodes = Runtime.createAndStart("topcodes","TopCodes") opencv.startService() opencv.addFilter("PyramidDown1", "PyramidDown") opencv.addFilter("Transpose", "Transpose") opencv.addListener("publishOpenCVData", python.name, "input"); opencv.setCameraIndex(0) opencv.capture()
Worky for me - (local build /
Worky for me - (local build / latest)
Did you send a noWorky ?
my errror, my program looks
my errror, my program looks indeed like this:
publishOpenCVData not working for FaceDetect coordinates
This particular code works for me too(although I am not using topcodes), but when I try to use publishOpenCVData for getting position of face, I get an error, both in MRL 1.0.1732 and 1.0.2652. My laptop has Windows 7 64-bit OS. What should I do?
Thanks for your help!
done some more
done some more testing (mrl 2278).
Interesting that I need to move into the picture or change the cam position for the topcode to be detected. It also won't give me the code at startup with a static image.
At least I was not able to see this defined in the topcode service code.
after a while (and several positive recognitions) the script ran into a null pointer exception. Where and how would my script have to test for this (sent a noworky, juerg, 07/11/2017)?