简体   繁体   English

Javacv从谷歌代码移至github存储库“ bytedeco”后,在Java中使用OpenCV

[英]Using OpenCV with Java after Javacv moved from google code to github repo “bytedeco”

I am working on face recognition using java and OpenCV, and the problem is Javacv became hosted by github "bytedeco" repo , so i can't import MatVector, "createFisherFaceRecognizer" and other thing although i have added bytedeco jars in my project and OpenCV is installed on my ubuntu 14.04 LTS. 我正在使用Java和OpenCV进行人脸识别,问题是Javacv由github“ bytedeco” repo托管,因此尽管我在项目和OpenCV中添加了bytedeco jars,但我无法导入MatVector,“ createFisherFaceRecognizer”等。安装在我的ubuntu 14.04 LTS上。

mainly i mean simple face recognizer like this: https://pcbje.github.io/misc/2012/12/01/doing-face-recognition-with-javacv.html 我主要是指这样的简单面部识别器: https : //pcbje.github.io/misc/2012/12/01/doing-face-recognition-with-javacv.html

the question is can i use Opencv without javacv and javacpp ? 问题是我可以在没有javacv和javacpp的情况下使用Opencv吗? and if i can't what about javacv and javacpp hosted by bytedeco? 如果我不能由bytedeco托管的javacv和javacpp呢? , cause i have added all JAR's of bytedeco (javacv, javacpp and Opencv libaray) in my project). ,因为我已经在我的项目中添加了bytedeco的所有JAR(javacv,javacpp和Opencv libaray)。

Your question is kind of not clear for me but to answer "the question is can i use Opencv without javacv and javacpp ?" 您的问题对我来说尚不清楚,但要回答“问题是我可以在没有javacv和javacpp的情况下使用Opencv吗?” question yes you can use opencv for c++ only but if java is mandatory use JNI(java native interface) use the java as it is and use c++ opencv code. 问题是,您只能将opencv用于c ++,但是如果强制使用Java,请使用JNI(java本机接口)按原样使用Java并使用c ++ opencv代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM