# \#java

**URL:** https://forum.opencv.org/tag/java/59.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Dowloading opencv on macos for java](https://forum.opencv.org/t/dowloading-opencv-on-macos-for-java/20529)

<div class="topic-metadata">

**Author:** [@muragesh](https://forum.opencv.org/u/muragesh)\
**Replies:** 1\
**Last updated:** [March 15, 2025, 2:54pm UTC](https://forum.opencv.org/t/dowloading-opencv-on-macos-for-java/20529 "2025-03-15T14:54:17Z")

</div>

i want to buit a project on opencv m in college so ristricted to java i tried several ways to dowload it on mac os it was not supporting on my mac os if any one have any guid to it pleas tell how to do it i tried all way…

---

## [OpenCV Android module imported from SDK does not respect project's JVM settings](https://forum.opencv.org/t/opencv-android-module-imported-from-sdk-does-not-respect-projects-jvm-settings/20334)

<div class="topic-metadata">

**Author:** [@PapoPeeta22](https://forum.opencv.org/u/PapoPeeta22)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 7:15am UTC](https://forum.opencv.org/t/opencv-android-module-imported-from-sdk-does-not-respect-projects-jvm-settings/20334 "2025-02-26T07:15:34Z")

</div>

Hi, I’m currently undertaking a project that involves using OpenCV and Android to make some sort of navigation app for indoors. I have managed to import the OpenCV module into my project, followed the instructions from …

---

## [Getting Fatal Error While Dockerization of Face Detection via Opencv Haar\_Cascade](https://forum.opencv.org/t/getting-fatal-error-while-dockerization-of-face-detection-via-opencv-haar-cascade/17159)

<div class="topic-metadata">

**Author:** [@Zaryab\_Ali\_IFKAAR](https://forum.opencv.org/u/Zaryab_Ali_IFKAAR)\
**Replies:** 3\
**Last updated:** [April 5, 2024, 6:53am UTC](https://forum.opencv.org/t/getting-fatal-error-while-dockerization-of-face-detection-via-opencv-haar-cascade/17159 "2024-04-05T06:53:15Z")

</div>

I have made a simple scala application that uses OpenCV-4.8.0 that extract face from image via Haar-Cascade (haarcascade\_frontalface\_default.xml). The above functionality working fine on local machine. Now I’m trying t…

---

## [Java install OpenCV on Mac](https://forum.opencv.org/t/java-install-opencv-on-mac/5717)

<div class="topic-metadata">

**Author:** [@JuergenDD123456](https://forum.opencv.org/u/JuergenDD123456)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 4:29am UTC](https://forum.opencv.org/t/java-install-opencv-on-mac/5717 "2024-01-10T04:29:02Z")

</div>

Hello, I’m trying to get OpenCV 4.5 to run on a Mac with Java. I did everything according to this tutorial. https://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html#install-opencv-3-x-un…

---

## [OpenCV Java SDK not building in React Native app as Native Module: android packages and symbols not existing](https://forum.opencv.org/t/opencv-java-sdk-not-building-in-react-native-app-as-native-module-android-packages-and-symbols-not-existing/14985)

<div class="topic-metadata">

**Author:** [@Wessel](https://forum.opencv.org/u/Wessel)\
**Replies:** 1\
**Last updated:** [November 26, 2023, 4:42am UTC](https://forum.opencv.org/t/opencv-java-sdk-not-building-in-react-native-app-as-native-module-android-packages-and-symbols-not-existing/14985 "2023-11-26T04:42:45Z")

</div>

System Information OpenCV version: 4.8.0 OS: Windows 11 Java SDK: 11.0.20 Gradle version: 6.9.4 Detailed description I have a React Native app where I want to add the OpenCV Java SDK as a Native Module. I have tried …

---

## [Inferencing ONNX model on a RGB image in Android-Java](https://forum.opencv.org/t/inferencing-onnx-model-on-a-rgb-image-in-android-java/14201)

<div class="topic-metadata">

**Author:** [@Lab\_System](https://forum.opencv.org/u/Lab_System)\
**Replies:** 7\
**Last updated:** [August 10, 2023, 10:13am UTC](https://forum.opencv.org/t/inferencing-onnx-model-on-a-rgb-image-in-android-java/14201 "2023-08-10T10:13:42Z")

</div>

We have 3 channel input image of size 128x128 on which we want to run object detection Model (in ONNX format). On printing inputImg Mat in Java, we get : // Mat \[ 128 x 128 x CV\_8UC3, isCont=true, isSubmat=false, nati…

---

## [Looking for CUDA functions](https://forum.opencv.org/t/looking-for-cuda-functions/14117)

<div class="topic-metadata">

**Author:** [@Joel\_Sjogren](https://forum.opencv.org/u/Joel_Sjogren)\
**Replies:** 8\
**Last updated:** [August 3, 2023, 8:54pm UTC](https://forum.opencv.org/t/looking-for-cuda-functions/14117 "2023-08-03T20:54:34Z")

</div>

Hello, I have installed opencv 4.8.0 with cuda support and python bindings using yay (arch linux). I am able to upload and download arrays to my gtx 1080 using the opencv cuda api (as shown here Getting Started with Open…

---

## [Frames from Video Using OpenCV in Ubuntu with Java 17](https://forum.opencv.org/t/frames-from-video-using-opencv-in-ubuntu-with-java-17/14110)

<div class="topic-metadata">

**Author:** [@bstrdn](https://forum.opencv.org/u/bstrdn)\
**Replies:** 2\
**Last updated:** [August 2, 2023, 6:01pm UTC](https://forum.opencv.org/t/frames-from-video-using-opencv-in-ubuntu-with-java-17/14110 "2023-08-02T18:01:10Z")

</div>

I’ve been trying to extract frames from a video using OpenCV in an Ubuntu environment with Java 17, but all my attempts have been unsuccessful so far. The main issue is that ffmpeg is not detected by the OpenCV library o…

---

## [Opencv java doesnt recognize CMP\_NE](https://forum.opencv.org/t/opencv-java-doesnt-recognize-cmp-ne/12999)

<div class="topic-metadata">

**Author:** [@Nico1300](https://forum.opencv.org/u/Nico1300)\
**Replies:** 1\
**Last updated:** [April 29, 2023, 4:17pm UTC](https://forum.opencv.org/t/opencv-java-doesnt-recognize-cmp-ne/12999 "2023-04-29T16:17:28Z")

</div>

Hi everyone, i have trouble importing all the librarys in java. I’m using vscode and already imported the .jar file, however i dont know how or where i have to import the .dll file? In my code vscode doesnt recognize Im…

---

## [Passing Mat to another thread causes invalid memory](https://forum.opencv.org/t/passing-mat-to-another-thread-causes-invalid-memory/12508)

<div class="topic-metadata">

**Author:** [@jetski761](https://forum.opencv.org/u/jetski761)\
**Replies:** 11\
**Last updated:** [March 24, 2023, 8:43pm UTC](https://forum.opencv.org/t/passing-mat-to-another-thread-causes-invalid-memory/12508 "2023-03-24T20:43:07Z")

</div>

My main application reads a video file then sends the frame to be processed on a separate thread. The issue is that after so many frames it eventually starts saying the Mat is null inside Detector. What would cause this?…

---

## [Fibonacci function result confusion](https://forum.opencv.org/t/fibonacci-function-result-confusion/9172)

<div class="topic-metadata">

**Author:** [@Soham1087](https://forum.opencv.org/u/Soham1087)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 11:56am UTC](https://forum.opencv.org/t/fibonacci-function-result-confusion/9172 "2022-06-14T11:56:58Z")

</div>

public class Fibonacci { public static long fib(int n) { if (n \<= 1) return n; else return fib(n-1) + fib(n-2); } public static void main(String\[\] args) { int N = Integer.parseInt(args\[0\]); for (int i = 1; …

---

## [Why method set() from class VideoCapture not set desired frame and method get() returns only 2 values?](https://forum.opencv.org/t/why-method-set-from-class-videocapture-not-set-desired-frame-and-method-get-returns-only-2-values/8587)

<div class="topic-metadata">

**Author:** [@DeNRuDi](https://forum.opencv.org/u/DeNRuDi)\
**Replies:** 0\
**Last updated:** [April 29, 2022, 4:37pm UTC](https://forum.opencv.org/t/why-method-set-from-class-videocapture-not-set-desired-frame-and-method-get-returns-only-2-values/8587 "2022-04-29T16:37:25Z")

</div>

Hello! (Sorry for my English:) my native language - ukrainian). I posted a question on StackOverflow to find out why method set() doesn’t set any values. I looked through a lot of information on this topic, from forums…

---

## [Minimum supported JDK for each OpenCV version? Build for target JDK 11 fails for OpenCV 4.5](https://forum.opencv.org/t/minimum-supported-jdk-for-each-opencv-version-build-for-target-jdk-11-fails-for-opencv-4-5/8357)

<div class="topic-metadata">

**Author:** [@dpapp](https://forum.opencv.org/u/dpapp)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 10:36pm UTC](https://forum.opencv.org/t/minimum-supported-jdk-for-each-opencv-version-build-for-target-jdk-11-fails-for-opencv-4-5/8357 "2022-04-10T22:36:34Z")

</div>

Hey everyone! I’m working on a Java application that runs Java 11. I’ve chosen Java 11 because it’s the the last Java version with LTS. I’m using OpenCV in this Java application and am using libraries from the contrib m…

---

## [java.lang.UnsatisfiedLinkError](https://forum.opencv.org/t/java-lang-unsatisfiedlinkerror/5495)

<div class="topic-metadata">

**Author:** [@JuergenDD123456](https://forum.opencv.org/u/JuergenDD123456)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 3:40pm UTC](https://forum.opencv.org/t/java-lang-unsatisfiedlinkerror/5495 "2021-10-06T15:40:31Z")

</div>

Hello i found a Tutorial and i try now to execute this Code with Java https://docs.opencv.org/master/d5/d6f/tutorial\_feature\_flann\_matcher.html My Netbeans Project was created with “Java with Ant” I have added the fol…
