简体   繁体   English

在Python中使用dlib训练的对象检测器

[英]Using dlib trained object detector in Python

I'm working on Python. 我正在研究Python。 I've been using dlib's function dlib.get_frontal_face_detector() to detect frontal faces, and I'm now using the tutorial on http://dlib.net/fhog_object_detector_ex.cpp.html to train my own object detector. 我一直在使用dlib的函数dlib.get_frontal_face_detector()来检测正面,现在我正在使用http://dlib.net/fhog_object_detector_ex.cpp.html上的教程来训练我自己的对象检测器。 However, this is trained in C++. 但是,这是用C ++训练的。

How can I use the trained classifier (which I believe is called face_detector.svm ) and use it on Python? 如何使用训练有素的分类器(我相信它称为face_detector.svm )并在Python上使用它?

(A better question might be how to train dlib's HOG in Python entirely, but it's less crucial.) (一个更好的问题可能是如何在Python中完全训练dlib的HOG,但这并不那么关键。)

Thanks! 谢谢!

您可以在此处找到可训练和测试对象检测器的Python示例-github.com/davisking/dlib/blob/master/python_examples/train_object_detector.py

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

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