Ask Your Question
0

Is it possible to share Java opencv code between Android and server?

asked 2017-09-04 13:05:59 -0600

cvdude gravatar image

I'm exploring OpenCV - I've been playing around with the Python API. I want to try building out an app for a fun idea I had that uses edge/contour detection.

One way to do it is to have the mobile app talk back and forth to a Python server, where the actual processing is done. But I want to do processing on the client for snappier UX.

But I still want to be able to do the processing on the server as well (for use by a separate web client).

So, I want to ask those who are more familiar with mobile integrations, is it possible to have the core logic as a Java/Kotlin library that can be used both on the mobile and on the server? Or are the Android and non-Android APIs too different for this to be possible?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-04 22:50:38 -0600

berak gravatar image

yes, that should be possible. if you look at the 3.1 modules overview , it's only the "android" module, which cannot be used on desktop or server in java.

beware, though - while using kotlin will make it more fun, than plain java, imho, -- if you were exposed to python simplicity before, you'll find it all very clumsy ;(

edit flag offensive delete link more

Comments

1

Thanks! Yeah, I wish there was another way to share code (without roundtrips). It's a toy project, so lemme see how Kotlin feels :)

cvdude gravatar imagecvdude ( 2017-09-05 02:33:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-09-04 13:05:59 -0600

Seen: 196 times

Last updated: Sep 04 '17