如何使用java实现面部识别和opencv? [英] How do implement face recognition en opencv with java?

查看:97
本文介绍了如何使用java实现面部识别和opencv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先感谢您抽出时间寻找我的问题(我非常感激),这是为了自学,不是学生或在该领域工作



在java上工作(Windows 7)我正在尝试做一个可以识别人脸和识别人的软件,我喜欢java但是如果它太难了pyton是好的



到目前为止使用opencv 3.0非常好我设法进行人脸检测,检测面部和东西(过滤器使得特征脸更好地工作),但我甚至无法尝试实施hartraining或任何其他东西做面部识别,到目前为止谷歌总是使教程面对面部和面部识别无处可寻找o解释在java(或我是愚蠢的)



pd:对不起我的工程是基本的



我尝试了什么:



到目前为止我一直在opencv版本之间切换,因为不同的教程使用不同的opencv版本和一些依赖项改变o变得过时



试图制作一个已经训练过的myhaar档案的xml并实现好像(该软件应该可以对他进行培训)将来拥有)



试图直接安装帽子训练应用程序



抱歉,我很困惑随着我越来越好

解决方案

经过一番搜索我发现这个视频......可能会有所帮助...

使用OpenCV和Java带代码的实时人脸检测 - YouTube [ ^ ]


你需要的只是OpenCV框架,然后你可以将Java包装器用于那些框架库。我已经写了一篇关于深入了解OpenCV和Java语言的答案,所以你应该考虑先阅读它们,



我如何计算java opencv中的人数 [< a href =https://www.codeproject.com/Answers/1188350/How-can-I-count-number-of-people-in-java-opencv#answer1\"target =_ blanktitle =新窗口> ^ ]



我的答案也谈到了人脸识别(特别是检测),你也可以从这里尝试以下代码, 主人的javacv / OpenCVFaceRecognizer.java·bytedeco / javacv·GitHub [ ^ ],或阅读Java包装器指南OpenCV:面部检测和跟踪 - OpenCV Java Tutorials 1.0文档 [ ^ ]



现在对于你说的部分,你不能进行Haar训练,实际上会发生的事情是OpenCV实际上做了所有事情然后你可以使用包装器(例如C#中的EmguCV,以及其他用于Python和Java)...我写了一篇文章,展示了如何在C#中做到这一点,已连接设备上的面部生物识别身份验证 [ ^ ],您可以使用相同的概念并找到Java的对象...



或Python,如果你相信Python更好。 :)

first of all thanks for you time into looking for my question (am really grateful), this is for self learning, am not a student or working on the field

working on java (windows 7) i am trying to do a software that can identify a face and recognition of the person, i like java but if it's too hard pyton is good to

so far so good using opencv 3.0 i managed to do the face detection, detecting the face and stuff (aplying the filters so eigenfaces work better), but i cant even try to implement hartraining or any other stuff to do face recognition and so far google allways make tutorial to facedetction and face recognition is nowhere to be found o explained in java (or i'm to stupid)

pd:sorry my eng is basic

What I have tried:

so far i have been switching between opencv versions because diferent tutorials use diferent opencv version and some of the dependencies change o become obsolete

trying to make the xml of an already training myhaar archive of my face and implementing as if (the software should be able to do training on his own in future)

trying to instanciate the app for hattraining directly

sorry am so stuck that desesperation as gotten the better of me

解决方案

After some searching I found this video ... might be helpful ...
Real Time Face Detection using OpenCV with Java "with code" - YouTube[^]


What you need is just the OpenCV framework, and then you can use the Java wrapper for those framework libraries. I have already written an answer that talks about in-depths of OpenCV and Java language, so you should consider reading them first,

How can I count number of people in java opencv[^]

That answer of mine also does talk about Face Recognition (detection, specifically) and you can also try the following code from here, javacv/OpenCVFaceRecognizer.java at master · bytedeco/javacv · GitHub[^], Or read the guide for Java wrapper for OpenCV: Face Detection and Tracking — OpenCV Java Tutorials 1.0 documentation[^]

Now for the part where you say, you cannot do the Haar training, actually what happens is that OpenCV actually does everything and you can then use the wrappers (such as EmguCV in C#, and others for Python and Java)... I wrote an article that shows how to do that in C#, Facial biometric authentication on your connected devices[^], you can use the same concepts and find the objects for Java...

Or Python, if you believe Python is better. :)


这篇关于如何使用java实现面部识别和opencv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆