In the new release of OpenCV (3.0), there is a module to detect texts in a camera image as shown in this page. However, the link to the demonstration codes to illustrate this module (https://github.com/Itseez/opencv/blob/master/samples/cpp/textdetection.cpp)is broken. Any idea on how to use this module? Thanks.
You can google "blob/master/samples/cpp/textdetection.cpp" and you'll find some forks. Example.
EDIT:
They have moved the whole text detection / recognition thing here! :)
http://github.com/Itseez/opencv_contrib/tree/master/modules/text
Related
I'm using openpose, and I have no clue of how to start this task.
I need to draw a rectangle over the people's hand (not the pose of the fingers, just the rectangle), using the skeleton estimation that open pose provides, but I don't really have experience with this framework, and I'm having a hard time understanding the openpose code, so I don't know if somebody could give any advice or clue about how to achieve this task, might be with the right direction I could get it done.
Any comment is welcome, thanks in advance for any help.
It is not easy to start at first, you should read more from the dlib home page before starting. After that you could follow my below suggestion to achieve your desire.
Download the source code from github Dlib on github
Implement by the function void work(TDatums& tDatums) in the file /include/openpose/pose/wPoseExtractor.hpp
Get the keypoints and image as below code
auto &ProceedData = (*tDatums)[0];
Array keypoints = ProceedData.poseKeypoints;
Mat proceedImage = ProceedData.cvOutputData;
You can draw your own image.
First you have to know that I work with OpenCV in C++ in Visual Studio.
I have a picture like : Original image
I want to create a new picture of the hand but with a lot less of black bacground.
So the final image should look like this : Final Image
I know there are some OpenCv functions that could help me but I have really trouble to implement the algorithm because OpenCv can't be used in Debug Mode so it hard to check what I am doing.
Have anyone any idea how to proceed ?
Thanks you very much.
Find contour, find bounding rectangle, crop.
Here is example of finding bounding box: example
As you know there is no opencv official tutorial for video module. That tutorial section is empty. I googled but couldn't find anything good. Any of you know a good OpenCV video module tutorial in c++?
Actually, I need to capture humans, then identify the colour of their T-Shirts
you just want to capture video stream or apply some algo on it or what?
check this
http://www.cc.gatech.edu/~daleshin/OpenCV_Tutorial.pdf
Here is a small example on opencv docs to capture from cam.
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html
Maybe this help you to detect peoples
http://docs.opencv.org/modules/gpu/doc/object_detection.html
These books from opencv.org may be useful for you
http://opencv.org/books.html
You can do this by using haarcascade xml already provided in opencv.
Then you can check the color of t-shirt by applying simple opencv filters to extract color.
Haarcascade xmls are available of full human body, upper half, lower half etc.
I am using a parking camera where i need to capture a image of a Number plate from a live video streaming.
I developed a python GUI and i need to capture and display the image, text of the Number plate
as well in the same GUI.
Could any one help me out in developing a python based basic functionality.
OpenCV could be helpful for this kind of task. This post covers a similar task and could give you some inspiration on how to tackle the problem (but in C++): How to extracting line of text from image using OpenCV
Another lengthy post can be found here (all python):
Simple Digit Recognition OCR in OpenCV-Python
Check out OpenALPR (http://www.openalpr.com). This should solve the problem of showing the number plate and the text within it. It's written in C++ though, so you'd need to hook that into your Python program.
I am new in opencv. I am trying to make a program which capture video from webcam and show the face on the video is exist in the directory or not. I already complete face detect from webcam. Now i jast need to compare the similarity of detected face with the directory image face. Please help me some one...
I am using
C++
MSVC 2010
OpenCV 2.1
You can use OpenCV's face detection methods. They have a very good tutorial in their website.
http://opencv.willowgarage.com/wiki/FaceDetection/
You can see to libface. It can detect and recognise faces.