Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Use OpenVINO in java project

Rute11
Beginner
2,067 Views

Hi there. I think this is an easy problem but I am having a hard time figuring it out.

I want to use OpenVINO in a java project in IntelliJ. I download the tooklit, installed and I was trying to find the jar files to upload into the java project, but I cannot find it. I saw the .lib files in the inference_engine folder and tried those, but it didn't work. 

How can I call and use OpenVino in IntelliJ?

 

Thank you.

0 Kudos
1 Solution
Peh_Intel
Moderator
2,024 Views

Hi Rute11,


As I know, to use Java wrappers for Inference Engine, it is required to build OpenVINO with including extra module from openvino_contrib repository.


A minimal step to build OpenVINO with extra module:

git clone https://github.com/openvinotoolkit/openvino.git

git clone https://github.com/openvinotoolkit/openvino_contrib.git

 

cd openvino

git submodule update --init --recursive

mkdir build && cd build

 

cmake -DOPENVINO_EXTRA_MODULES=<openvino_contrib>/modules <openvino_source_directory>

 

cmake --build . -j8


 

In addition, I would like to share this dkurt/openvino_java repository. Please note that this is an unofficial build farm for OpenVINO in Java for Linux, Windows and Mac (x86) and Android (x86 and ARM64). You can download the .jar file from releases page.



Regards,

Peh


View solution in original post

2 Replies
Peh_Intel
Moderator
2,025 Views

Hi Rute11,


As I know, to use Java wrappers for Inference Engine, it is required to build OpenVINO with including extra module from openvino_contrib repository.


A minimal step to build OpenVINO with extra module:

git clone https://github.com/openvinotoolkit/openvino.git

git clone https://github.com/openvinotoolkit/openvino_contrib.git

 

cd openvino

git submodule update --init --recursive

mkdir build && cd build

 

cmake -DOPENVINO_EXTRA_MODULES=<openvino_contrib>/modules <openvino_source_directory>

 

cmake --build . -j8


 

In addition, I would like to share this dkurt/openvino_java repository. Please note that this is an unofficial build farm for OpenVINO in Java for Linux, Windows and Mac (x86) and Android (x86 and ARM64). You can download the .jar file from releases page.



Regards,

Peh


Peh_Intel
Moderator
1,971 Views

Hi Rute11,


This thread will no longer be monitored since we have provided answer and solution. If you need any additional information from Intel, please submit a new question. 



Regards,

Peh


0 Kudos
Reply