Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of compiling opencv java with mac

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "method of mac compiling opencv java". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the method of compiling opencv java by mac".

Edit the compiled configuration using brew edit opencv@2 and change-DBUILD_opencv_java=OFF to-DBUILD_opencv_java=ON

Installation

Brew install-build-from-source opencv@2

Reinstall for reinstallation

View installation location

➜~ ll / usr/local/Cellar/opencv@2/2.4.13.7_5/share/OpenCV/javatotal 2264-rwxr-xr-x 1 aa admin 691K 10 09:52 libopencv_java2413.dylib-rw-r--r-- 1 aa admin 440K 10 10 09:52 opencv-2413.jar

Right-click the project, select "Open Module Settings", and add opencv-2413.jar to Libraries

Configure tomcat startup parameters,-Djava.library.path=/usr/local/Cellar/opencv@2/2.4.13.7_5/share/OpenCV/java

Thank you for your reading, the above is the content of "the method of mac compiling opencv java", after the study of this article, I believe you have a deeper understanding of the method of compiling opencv java by mac, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report