Ask Your Question

Revision history [back]

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

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?