Ask Your Question
0

Opencv for desktop Java port into Android development

asked 2013-09-25 12:39:32 -0600

Melvin gravatar image

updated 2013-09-25 14:10:43 -0600

Moster gravatar image

Hi, I have managed to do face detection in desktop using the libraries provided by opencv for java development. It includes functions like draw rectangle around the face, crop image and resize image. Is it possible to port into android? Are the methods to open camera, grab and retrieve image the same as in android? Besides that, is loading the opencv library different as well? Or do I have to do everything from scratch again in android?

Thanks in advance. All answers are welcome and much appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-25 13:22:31 -0600

Moster gravatar image

updated 2013-09-25 13:24:14 -0600

If you only want to use android java, it will be quite different. At least until you get the frame from the camera. The algorithm itself that you apply on the camera frame Mat wont differ (much). Android development in general is different compared to plain java.

I posted two different ways of accessing the camera here: http://answers.opencv.org/question/19796/android-use-autofocus-with-camerabridgeviewbase/#19813

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-25 12:39:32 -0600

Seen: 502 times

Last updated: Sep 25 '13