Can C / C ++ be used for cross-platform iOS / Android code in this case?

I plan to write a mobile application (iOS and Android) in which a lot of image recognition processing.

Is this a good solution for writing pattern recognition code in C or C ++ to reuse it on both platforms?

Will there be a lot of code on the C / C ++ platform that records and supports it unreasonably?

Note. This application is based on image recognition, and most of the code is for image recognition.

+5
source share
3 answers

, . , , Android-NDK , C OBJ-C, .

+3

OpenCV. " " .

OpenCV Android-NDK , OpenCV Android .

OpenCV - iOS, XCode OpenCV iPhone iPad.

+1

I can’t talk about the specifics of your pattern recognition library, but I can tell you that almost all real Android APIs are in Java, and all Cocoa are in ObjC. This may not be a problem only for your library, but as soon as you need to connect to any of the existing APIs, you will want to write Java or ObjC.

0
source

All Articles