Ask Your Question
1

will all functions in opencv works on android opencv

asked 2014-10-20 12:31:34 -0600

Manoharan gravatar image

updated 2015-08-25 14:59:24 -0600

is it possible to use all the functions used in opencv for windows in android opencv? i came across many forum and no one able to give me the best answer.. i am trying to build a drowsiness alert system using android opencv.. if any suggestions available kindly let me know..

edit retag flag offensive close merge delete

Comments

1

To the person who downvoted, please in the future do supply a reason why you did so. This is a perfectly correct question, supplied with a good answer...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-21 06:05:28 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-10-20 13:38:22 -0600

FLY gravatar image

updated 2014-10-20 13:39:29 -0600

Yes , all function of OpenCV which work on windows also work on android but when using with android ndk you need to be careful about vector indexing , vector indexing cause error with android ndk but yes all major functions work in android the same way in windows. For example

Mat alpha = alpha1.clone();     // It cause error in android ndk

Correct way of using it with android ndk is , For clone, you can't use any of these functions on vector index. You have to create a temporary instance of Mat and use cv::functions over it.

Mat alpha1 = ch[3];
Mat alpha =  alpha1.clone();
edit flag offensive delete link more

Comments

1

thank you sir. :) can we train our application like we do in windows opencv? using data set for training?

Manoharan gravatar imageManoharan ( 2014-10-21 02:50:07 -0600 )edit
1

Better to ask new specific question and your query about it

FLY gravatar imageFLY ( 2014-10-21 02:55:54 -0600 )edit

Question Tools

Stats

Asked: 2014-10-20 12:31:34 -0600

Seen: 252 times

Last updated: Oct 20 '14