You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Saliency] Enable Java/Android bindings by adding 'WRAP java' to CMake
Fixes#4016
This addresses the inability to use the `saliency` module in Android (Java/Kotlin) applications.
When generated using `build_sdk.py`, the native library compiles, but the Java wrapper class (`org.opencv.saliency.Saliency`) is not generated.
**Technical Fix:**
The `ocv_define_module` macro in `modules/saliency/CMakeLists.txt` was missing the `java` flag in its `WRAP` parameter.
**Change in `modules/saliency/CMakeLists.txt`:**
# OLD
ocv_define_module(saliency opencv_imgproc opencv_features2d WRAP python)
# NEW
ocv_define_module(saliency opencv_imgproc opencv_features2d WRAP python java)
0 commit comments