I am trying to do object detection using YOLO from the official website:https://pjreddie.com/darknet/yolo/
But I cannot integrate OpenCV with it though I have already install OpenCV in my both python version python and python3
her is the error:
rajan#RGR:~/darknet$ ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights videosample.mp4
Demo needs OpenCV for webcam images.
so can anyone help me to solve this, I have been trying to solve it for more than a week but I could not do it. I would be glad if someone gives me the solution. thank you in advance.
Hi. You should opencv =1 in makefile, and make again
if you want to test on a video then type
./darknet detector demo cfg/obj.data cfg/yolo-tiny-obj.cfg
backup/yolo-tiny-obj_40000.weights data/test.mp4
or you can upgrade your opencv
Related
I'm using opencv as OpenCV bindings for rust and I'm trying to implement an EigenFaceRecogniser system. On docs.rs, the opencv::face module is listed inside the opencv crate. However, when I build my code, I get the error:
could not find face in opencv
I'm not really sure what's causing this as the face module is clearly listed in the documentation but for some reason I cannot use it. If anybody who has used these bindings before or knows anything about what could be going wrong could help, it would be appreciated.
I'm using OpenCV version 4.5.1.
The solution was to enable the contrib feature for the opencv package.
While I was writing the above question, I stumbled across this post asking about OpenCV having no face module in python. The solution to that question was to install the opencv-contrib-python package so I tried enabling the contrib feature in the opencv crate and it compiled. I thought I'd post this question anyway just in case somebody else was having this issue.
Just want to make sure if the latest version of opencv have dlib
No, those are separate libraries .
Dlib has functions that expect Opencv cv::Mat so you can use them as an interface.
I am trying to work on OpenCV Face recognition but the problem is :-
The sample code i downloaded from github(https://github.com/ekurutepe/iOS-OpenCV-FaceRec) for opencv face recognition have the following problem :-
use of undeclared identifier createLBPHFaceRecognizer()
Please refer to the following screenshot :-
I've been faced with this issue. The latest pod opencv library does not contain "extra" libs (e.g. face detection). So you have to find or build library with required library by yourself
After I compiled openCV libraries, I got the following directory:
opencv\build_2.4.9\samples\ocl
In this there are many sample codes. But no description is provided unless you read the complete code and run a couple of times to know what it does.
Are there any documentation for such sample codes? If not how do I go ahead?
OpenCV has got examples mentioned in their websites
http://docs.opencv.org/doc/tutorials/tutorials.html
Or refer to
Learning OpenCV: Computer Vision with the OpenCV Library
by Adrian Kaehler and Gary Rost Bradski
I need to train some images using OpenCV. But the issue is, I can't find opencv_createsamples program. I installed the OpenCV in the normal way, because I am using Windows 7. Where is this opencv_createsamples ? How can I get it?
It should be located under OpenCV-Dir\build\x64 or x86\vc1x\bin\.