Hello in past 2 days i try to configure SURF filter in OpenCV, and i can't get the configuration of SURF>

opencv=Runtime.createAndStart("opencv","OpenCV") 
opencv.setCameraIndex(0)
opencv.getFilter("SURF")
opencv.addFilter("SURF")
opencv.setDisplayFilter("SURF")  
filename="C:\Myrobotlab\myrobotlab\surf\file.jpg
 
opencv.setObjectImage("SURF",filename) <-- not work :/

I Try many of methods to add jpg files to SURF, but with no effect. I want to play with object recognition to my INMOOV. I have search the github and many other sites but there is no answer.
Is anyone run SURF ?

bartcam

8 years ago

after 40 frames always crash, i try it on 2 cameras and few version of myrobotlab.
Any idea?
 
from org.myrobotlab.opencv  import OpenCVFilterSURF
import org.bytedeco.javacv.ObjectFinder.Settings
opencv = Runtime.createAndStart("opencv","OpenCV")
surf = OpenCVFilterSURF("surf")
surf.settings.setThreshold(400)
# Change path to the image you want to use
filename = "C:/Myrobotlab/myrobotlab/surf/xxx.jpg"
surf.loadObjectImageFilename(filename)
opencv.addFilter(surf)
opencv.setDisplayFilter("surf") 
opencv.capture()
 
added past.... few hours
 
Ok, works now. I have a problem with JAVA.
On other computer the opencv don't crash.
But there is problem with that the SURF not recognizing any object.
I tried many pictures and SURF not recognized any.