Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to find and draw the contour around object.
How can I use opencv code in java?

http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html#find-contours[^]
Posted
Updated 23-Feb-15 6:23am
v2
Comments
Sergey Alexandrovich Kryukov 23-Feb-15 12:25pm    
It's not "convert", it's "porting". Just write Java code using existing solution as reference. What's you problem with it?
—SA
Member 10390715 24-Feb-15 0:44am    
Yes. I want to find ang draw the contour around object in my java application. I found the source code can do it, but opencv use for C++. I don't know how to use it in java. I tried to use it in java.
Sergey Alexandrovich Kryukov 24-Feb-15 0:49am    
As far I understand, Java uses OpenCV through a wrapper of the C++ code. It means the Java OpenCV API closely follows C++ API. You are the one who needs to take the labor of porting it, as you need it.
—SA
Member 10390715 24-Feb-15 1:51am    
Thank you for your comment.
Valery Possoz 23-Feb-15 14:58pm    
Hello,
You could start by reading the documentation... http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html
Valery.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900