Javacvpro 0.4beta: problem with SURF examples on win7 x64
in
Contributed Library Questions
•
1 year ago
Problem 1.
Example "javacvpro_exemple_SURF_detect_keypoints_GoodMatchSURF" not work because code:
- Point[] objectInScene=opencv.detectObjectIntoSceneSURF(
opencv.Memory, //opencv_core.IplImage iplImgObjectIn, // image Objet de départ
imgObjet.width,0,//int xRefScene, int yRefScene, // coordonnées de l'image de la scène
true //boolean debug // drapeau d'affichage des messages
) ;
get error "The method detectObjectIntoSceneSURF(opencv_core.IpIImage, int, int, boolean, boolean) in the type OpenCV is not applicable for the arguments ( opencv_core.IpIImage, int, int, boolean)"
Solution:
Add boolean in to code
- Point[] objectInScene=opencv.detectObjectIntoSceneSURF(
opencv.Memory, //opencv_core.IplImage iplImgObjectIn, // image Objet de départ
imgObjet.width,0,//int xRefScene, int yRefScene, // coordonnées de l'image de la scène
true, true //boolean debug // drapeau d'affichage des messages );
----------------------------
Problem 2.
Example "javacvpro_exemple_SURF_detect_keypoints_GoodMatchSURF" not work because
- get error "The method detectObjectIntoSceneSURF(opencv_core.IpIImage, int, int, boolean, boolean) in the type OpenCV is not applicable for the arguments ( opencv_core.IpIImage, int, int, boolean)" ;
and
- get error "Cannot find anything named "objectScene""
Solution:
Add boolean in to code
- Point[] objectInScene=opencv.detectObjectIntoSceneSURF(
opencv.Memory, //opencv_core.IplImage iplImgObjectIn, // image Objet de départ
imgObjet.width,0,//int xRefScene, int yRefScene, // coordonnées de l'image de la scène
true, true //boolean debug // drapeau d'affichage des messages );
Add "In" in code:
- opencv.drawShape(objectInScene,imgObjet.width,0,1, color(255,0,255), 2, false,0,true );
1