Click here to Skip to main content
15,886,919 members
Everything / OpenCV

OpenCV

OpenCV

Great Reads

by HoshiKata
Practical on the fly fast mesh generation from arbitrary points.
by Phil Hopley
Second part in a series on a ROS (Robot Operating System) House Bot
by Ansel Castro
The article shows how to render 3D graphics with C# in .NET using an API Igneel.Graphics.
by Phil Hopley
In this article, we will add AI to an existing ROS (Robot Operating System) House Bot.

Latest Articles

by Edward Sulistijono
Face Recognition with Python Programming Language using Haarcascade
by Markus Koppensteiner
Python code for image-blending based on an image mask
by Dawid Borycki
In this last article of the series, we improve our Python console application for AI-powered social distancing detection.
by Dawid Borycki
In this article, we will use those centers to estimate distances between people and indicate people that are too close.

All Articles

Sort by Updated

OpenCV 

N 25 Apr 2024 by 01fe20bec297
I have a frame which consist of many tablets. There are spots on the tablets. I want to detect those spots which are on tablet. The spots are of random color, random shape and random size. How can i detect these spots using image processing? ...
19 Mar 2013 by 123ezone
Hi, I'm doing research project regarding OCR and I need to segment characters using horizontal and vertical histogram profile(projection profile).This is the code I have tried but I coudn't able to segment the lines of a document by crop the image at positions where histogram bin value get...
25 Mar 2013 by 123ezone
I want to get the skeleton image of a character and I have tried that from OpenCV.But it runs a never ending loop.Please help me with this.Here is my code.Thanks.bool done;IplConvKernel* element = cvCreateStructuringElementEx( 3, 3,0, 0, CV_SHAPE_CROSS, NULL );do{ ...
3 Apr 2013 by 123ezone
I have used Nash's implementation of Zhang-Suen algorithm to get the thinning output of character image.but it doesn't work correctly.can anyone tell which method should I use to get correct output.Thanks.
23 May 2013 by 123ezone
I have segmented normal characters using horizontal and vertical projection successfully. Now I'm trying to segment cursive characters. I have no idea of segmenting cursive characters since they are slanted. Please help me with this problem. Thank You.
25 May 2013 by 123ezone
I want to create an image array using IplImage.Here is my code for that.But it provides some memory leaks.Please help me with this to solve this problem.IplImage *result[200]; for(int i=0;i
11 Sep 2018 by _Flaviu
A way to use OpenCV in MFC project
22 Sep 2014 by _Maxxx_
Just set a flag telling you that the video is paused (or not)So use something likeif (!videoIsPaused && !faceRecognised){ PauseVideo(); videoIsPaused = true;}if (videoIsPaused && faceRecognised){ UnPauseVideo(); videoIsPaused = false;}
8 Dec 2014 by _Maxxx_
Are you saying that you would have an object which you decide to describe as being one unit, then use it to calibrate each camera?If so, easy! Measure the shape in pixels - and for that camera, that number of pixels = 1 unit.From then on, you know that on webcam a, X pixels = 1 unit, and on...
18 Apr 2019 by abdou_31
I have configured and generated OpenFace project using Cmake , in the first time , i have got some problems ( missing libraries e.g openBLAS , Dlib ...) , but after some search on the internet i have correted errors that i have got. So when i try to build ALLBuild.vcxproj ( Release x64 ) with...
2 Dec 2021 by Abdussalam Elhanashy
0 I am streaming lepton FLIR camera on jetson nano using python3 and OpenCV and I have problems that I can not resize live video. The original lepton resolution is (160 x 120) and I would like to resize it to (640 x 480). I tried to use...
18 Jan 2013 by Abhinav S
TryContour Analysis for Image Recognition in C#[^]Image Recognition with Neural Networks[^]
31 Jan 2014 by Abhinav S
I'm sure there will be fonts that will be close to the kind of hand writing you need.Search on the internet and explore fonts.
2 May 2014 by Abhinav S
This thread[^] might be useful to you.Try this[^] thread as well.
13 Mar 2017 by abhiramthejas
cv::VideoCapture a; cv::VideoCapture b; cv::VideoCapture c; cv::VideoCapture d; a.open("traffic1.mp4"); b.open("traffic2.mp4"); c.open("traffic3.mp4"); d.open("traffic4.mp4"); std::thread t1 (traffic,a,"a"); std::thread t2 (traffic, b, "b"); std::thread t3(traffic, c,...
14 Jan 2013 by Abhishek Pant
opencv link1104 error[^]or have a guide to Install OpenCV 2.4 in Visual C++ 2010 Express [^]
26 Jul 2015 by Abhishrek
Hello all,I need to find N largest area contours available in a binary image.I wanted to try the OrderBy() function to sort the contours by Area.However, I am unable to understand the the syntax for keySelector used as a parameter in OrderBy() Although I am using EmguCV, but a C++...
3 Aug 2015 by Abhishrek
Hello everyone,For an image processing project (with OpenCV), I need to find curve points in a contour (List of Points)The contour is extracted from real life images by :Color Filtering -> Threshold Binarization -> Contour Extraction(These processes use OpenCV functions)In the...
5 Aug 2015 by Abhishrek
Hello EveryoneI studied a bit and found that taking the first order derivative of the contour (for x and for y separately) can solve this problem.The first order derivative is used to find Local Maxima and Minima. On the curve points the value of the first order derivative changes from...
9 Oct 2015 by Abhishrek
I have an Image and I am applying an edge detection algorithm (Canny) to it.I get the edges in image but for my work I need to get the detected edges as a list of points, specially the ones that are connected. (list of contours), in order to perform meaningful operations on the detected...
24 Oct 2015 by Abhishrek
Hello all,I was writing a code with MorphologyEx() function of OpenCV, when i mistakenly gave value 0 to 'Morphology Operator' parameter of the function.As can be seen in the function specs [^], the Operator value ranges from 2-6 for Opening, Closing, Gradient, Top, Bottom hat operations...
11 Dec 2014 by Aescleal
You're pushing N values into your vector. For every n
22 Feb 2016 by Aescleal
First thing to do is learn how to use C++ effectively. There's a lot of guff in your code that is redundant - get rid of that (i.e. stop trying to manage memory manually, declare variables as you need 'em and bin the globals) and your problem will be easier to isolate.The next thing is to...
16 Aug 2016 by Afzaal Ahmad Zeeshan
How to highlight the faces in uploaded image in ASP.NET web applications
25 Apr 2017 by Afzaal Ahmad Zeeshan
If you cannot understand the codes, then instead of OpenCV you need to learn the programming. OpenCV is merely just a framework to use, for image processing and computer vision. However, the main thing to understand is the language that you are going to use. OpenCV is offered in C++, Python and...
20 May 2017 by Afzaal Ahmad Zeeshan
OpenCV returns the rectangles for the faces, and the areas that those "detected" faces cover. If I had to write the program that shows how many faces are there (people have faces, or faces are attached to the people), I would have simply counted the number of faces returned. For example, the...
14 Jun 2017 by Afzaal Ahmad Zeeshan
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...
30 Sep 2017 by Afzaal Ahmad Zeeshan
There are a few things, you are not using the rect object anywhere. Why? Isn't that supposed to capture the box bounding the found person? The rect which you will detect, will be used to render the box around the person. I wrote an article covering this aspect, but I was working with faces. So...
22 Jul 2016 by Afzaal Ahmad Zeeshan
In this post, I am going to walk you through creating your own central hub to allow your connected devices to authenticate people using facial recognition system.
10 Jul 2019 by Agit Çelik
Please help me this is urgent.! By the way I am using Window 10 x64 I am getting error while data_loc = os.path.join('data', 'datasets', data_code + '.hdf5') data = h5py.File(data_loc, 'r') I run 'python train.py fcn_rffc4 brats_fold0 brats_fold0 600 -ch False' command Error is shortly,...
18 Oct 2019 by aiden12
i have implemented a face detection and recognition in c# windows form using Emgu and OpenCV, it works fine and when the saveButton is clicked the image gets stored in a folder, but when i close the program and re-run it, it doesn't recognize the face anymore, is there any way i can make the...
9 Jul 2019 by aizhan maksatbek
Can we select a ROI (Region of Image) in the center even if we set as false? Python-OpenCV What I have tried: video = cv.VideoCapture(0) _, frame = video.read() bbox = cv.selectROI(frame, False)
23 Jul 2015 by Albert Holguin
Your extension definition needs to include your dependencies.See here: https://docs.python.org/2/extending/building.html[^]Example from above:module1 = Extension('demo', define_macros = [('MAJOR_VERSION', '1'), ...
28 Jul 2015 by Albert Holguin
Answered here: How to build a C++ embedded Python file that requires a cmake?[^]
9 May 2016 by Alexandr Surkov
28 Mar 2013 by AliKiani
when i run my code this error occurred : http://i45.tinypic.com/2h3o6y1.jpgand my code is : #include "cv.h" #include "highgui.h" using namespace cv; int main(int, char**) { VideoCapture cap(0); if(!cap.isOpened()) return -1; ...
26 Apr 2014 by Alishba Khalil
I am using OpenCVSharp library to use opencv in C#. I'm trying to load image from a file using this code:IplImage cap = Cv.LoadImage("D:\\eye1.jpg",LoadMode.AnyDepth);but it shows exception: "TypeInitializationException was unhandled;The type initializer for 'OpenCvSharp.NativeMethods' threw...
1 Jun 2015 by Amal anjula
um make template matching soft wear using code now i want get x y cordinate in to the arduino board using serial communication. but its not success. this is my code.my arduino board connect with pc via com10(i see it in the devise manager) . that port not open by another softwaer. but always...
3 Jun 2015 by Amal anjula
um make template matching program using opencv and c++. this is my code void track(){ if (select_flag) { //roiImg.copyTo(mytemplate);// select_flag = false; go_fast = true; }// imshow( "mytemplate", mytemplate ); waitKey(0); Mat...
4 Jun 2015 by Amal anjula
i made template matching software using opencv and c++. now i need hide rectangle when the template image not appear.and when the template image infront of screen should track the template and draw rectangle. this is my code. sorry for bad english#include #include...
6 Jun 2015 by Amal anjula
um wrote a code using template matching method for detect stamp in the envelops. but this program run in the slowly. what is the reason? the video refresh every 1 sec. i wanna reduce that time, is this possible? this is my code. my laptop have core i3 and 4GB ram under win10 technical preview....
12 Jun 2015 by Amal anjula
um have code for template matching in opencv with c++. now i want draw rectangle only when sample object infront of the screen, according to my code always appear rectangle in the screen and when sample image in the front of screen it will track by rectangle. sorry for the my bad english. thank...
10 Jun 2015 by Amal anjula
i have code for detect edge using opencv and c++; there is envelop with a stamp. now i want draw rectangle in stamp. blue area is the stamp . how it do? is this possibe? pic is here https://docs.google.com/document/d/1tldQ1J_simAaxSVN58sqjtjQZnCS8e8wBHOK0WlnHtQ/edit?usp=sharing[^]my code is...
15 Jun 2015 by Amal anjula
i have code to detect stamops on the envelop. but i cant send x y codinate to the arduino via serial communication. this is my code. com port open normally by the softwer. but not transmite the x y cordinates. this is my codecv::RotatedRect boundingBox =...
26 May 2016 by Amal anjula
i had code for the detect object edge. using this one i can draw line around rectangle objects. but now i want draw line cross the rectangle. how i do this. simply say. i want measure width of the rectangle.this is my output...
31 Jul 2016 by Amal anjula
i want to detect Red , Green and blue images on the one frame. i already have code with red color detection. i can change blue and green detection by changing lower and upper limit of the color. but i cant get together 3 colour in same window. other wise i want to create contours on the...
31 Jul 2016 by Amal anjula
i had code about detect red image from the pycam. now want make rectangle around the image and get x ,y location of the rectangle. pls help methank youWhat I have tried:this is my code# import the necessary packagesfrom picamera.array import PiRGBArray #As there is a...
25 Dec 2016 by Amal anjula
I had some processing code to detect the faces using opencv and c++ console application .its work nicely and capured images save on project folder.now i want save that images on local sql data base . How i do it. That local database also in my project folder.Thank youWhat I have...
3 Jan 2017 by Amal anjula
i want to identify face using c++ and opencv. on documentation example, i cant understand these line. what are they and how make ref images on the folder and what is the cvs file. please help me. um very beginning to image processing.int main(int argc, const char *argv[]) { // ...
3 Jan 2017 by Amal anjula
I try to make face detection module. On below exmpe have load some stuuf to project using int main(int argc, const char *argv[]) Alway it has only one parameter named /path64/debug/facedetece.exeHow add other resources to project. Plese help meThank youWhat I have tried:Face...
26 Oct 2012 by ambuj saxena
Hi All, i am new with opencv. i want to know how extract text data from image if any one tell me which is the steps i have to follow. any kind of help appreciated.
29 May 2012 by amitkarnik2211
Here is an overview See weather this help[^]This will give an overview
27 Mar 2014 by AmnaRahman
I have done eye detection using emgucv. Now i want to display the detected eye regions in separate pictureboxes. How can i modify this code to do that? MCvAvgComp[][] eyesDetected = gray.DetectHaarCascade( eye, 1.1, ...
2 Aug 2013 by Anderso0on
what is meant create header without allocated in memory c++{ cvCreateMatHeader() ,cvCreateData()}
4 Aug 2013 by Anderso0on
cvPtr*D() is that you can use these pointer functions togain access to a particular point in the matrix and then use pointer arithmetic to movearound in the matrix from there.what is important thing i must remember when use this pointer ??o reilly opencv book say :1\ It is important to...
5 Aug 2013 by Anderso0on
what is different between this code :this different code must be given same result, but this is not happenIplImage *Image=cvCreateImage(cvSize(640,500),IPL_DEPTH_32F,3);for(int row=0; rowwidth; col++ ) { ((double *)(Image->imageData...
20 Sep 2013 by Anderso0on
what is difference between cvcreatematheader() and cvcreatedata() ?ihope explain difference with simple code
24 Sep 2013 by Anderso0on
int va[] = {1, 2, 3, 1, 2, 3 }; int vb[] = {0, 0, 1, 0, 0, 1 }; int vc[6]; CvMat Va=cvMat(3, 2, CV_64FC1, va); CvMat Vb=cvMat(3, 2, CV_64FC1, vb); CvMat Vc=cvMat(3, 2, CV_64FC1, vc); cvCrossProduct(&Va,&Vb,&Vc);
24 Sep 2013 by Anderso0on
int A[]={1,2,3,4}; CvMat *src=cvCreateMat(2,2,CV_64FC1); src->data.i=A; cout
26 Sep 2013 by Anderso0on
i need to know how this function work, learning opencv computer vision book tell me cvNot() inverts every bit in every element of source but when i write this codefloat A[]={1,2,3,4}; CvMat *Mat1=cvCreateMat(2,2,CV_8UC1); Mat1->data.fl = A;cvNot(Mat1,Mat1);Give me this result :-4...
27 Sep 2013 by Anderso0on
what is difference between cvTranspose() and cvCopy ,i read in learning in computer vision book .cvtranspose() : copies every element of source into the location in destination,also cvcopy() do this functionality.so what is different between each of this ??!!
28 Sep 2013 by Anderso0on
IplImage *Image=cvLoadImage("ABC.jpg"); CvFont Font1; cvInitFont(&Font1,CV_FONT_HERSHEY_COMPLEX,1,1,0.0f,2); CvFont Font2; cvInitFont(&Font2,CV_FONT_HERSHEY_COMPLEX,1,1,1.0f,2);
26 Nov 2014 by Anderso0on
Hi there. I have been trying to set up OpenCV_2.4.8 + OpenNI_1.5 in VS2010 C++ for a hand gesture recognition project, and I am wondering if you used the VideoCapture function to capture the motion? If so, can you please shine some light on me? For some reason the "VideoCapture capture(...
8 Nov 2013 by Andreas Gieriet
If axis aligned, do the following:1) place the vertex at the origin (0/0/0).2) the base area is given by the four vertices where z is always 0: (0/0/0), (0/s/0), (s/0/0), (s/s/0)3) likewise make all vertices in the z-plane (z = s): (0/0/s), (0/s/s), (s/0/s), (s/s/s)4) move the cube to...
13 Jan 2019 by Andreask84
In this article, I propose a simple application written entirely in Python that allows you to capture images from a camera using DirectShow and to perform simple processing on them using OpenCV.
14 Aug 2014 by Android on Intel
Today I am writing to share my experience in optimizing Grace Application (an Android Application) for Intel® x86 architecture and using Intel® WiDi to bring the Grace App to the living room big screen.
14 Aug 2014 by Android on Intel
For those of you who are interested in developing your own “smart” drone, this article provides easy directions for making an intelligent, autonomous drone using an Android* smartphone, OpenCV*, C++, and Java*.
6 Jul 2015 by Android on Intel
This document is focused on creating OpenCV-enabled applications for Android. If the target operating system of your application is Windows
4 Aug 2015 by Android on Intel
This document gives an overview of what has to be done at the library/engine level to better support Intel platforms.
1 Dec 2015 by Android on Intel
Using OpenCL™ 2.0 Read-Write Images
1 Jun 2016 by Android on Intel
Intel® System Studio 2017 Beta has been released. This is the Beta program page which guides you further on Intel® System Studio 2017 Beta new features and enhanced usability experience.
21 Jul 2014 by Andréa VR
I'm new to the image processing field. I'm currently trying to detect multiple persons in a video using the SURF algorithm with SVM training for detection, and the particle filter for tracking. So far, I used the bag-of-features to build a vocabulary and cluster keypoints from a set of images...
14 Mar 2012 by Anirudh sundar
I need to do a project for moving the mouse through the webcam using fingertip recognition.I know i have to use opencv for this project but the problem is i am new to opencv and i need help in studying opencvi dont have enough time to study entire opencv..so could someone help me by...
29 Mar 2012 by Anirudh sundar
I downloaded the below code from google code and the overview says the code is working fine...but when i run the program it crashes...this is a program to detect the fingertip...the code is given below...someone pls tell me why the code isn't working/* * hand_point.cpp * * ...
1 Aug 2012 by Anjitha Rs
what is the routine to implement image convolution in OpenCV. Also show an example of applying averaging filter applied to youe face image
3 Sep 2013 by Anna_
Hi all,i want to know how to recognize text area in images???
16 Jun 2015 by Annisa Kartikasari
I'm doing my final project about hand gesture recognition using OpenCV in Android. So far I did until Convex Hull. Now, I want to draw convexity defect on it and get the defect value from it. But I am stack. I found some references codes, but most of it written in C++ code. I have no idea how to...
7 Apr 2017 by Annisa Kartikasari
I'm beginner in android development and newbie in OpenCV too. I have project about hand gesture recognition in Android. I want to do convexity defect on it. Before I do convexity defect, I should have done finding contour and convex hull. I have done them already. Now, I'm doing convexity defect...
20 Jan 2017 by Ansel Castro
The article shows how to render 3D graphics with C# in .NET using an API Igneel.Graphics.
27 Jun 2017 by Anu Rox
I need to analyze the colors of a image and need to do it in java. Need to use HSV color mode What I have tried: I'm clueless about this and new to image processing.I only have two weeks to complete this.Please help.Thank you everyone.
19 Oct 2018 by Apriorit Inc, KonstantinovSlava
Two ways of performing object recognition using OpenCV and comparing them to each other. Both approaches have their own pros and cons. This comparison will help to choose the best one for your task.
7 Mar 2019 by Apriorit Inc, Semyon Boyko
How to use this Google service and the free NVIDIA Tesla K80 GPU to achieve your own goals in training neural networks
30 Apr 2019 by Apriorit Inc, Semyon Boyko
The approach that allows you to make a neural network analyze the current frame while remembering the state of previous frames
5 Apr 2014 by aref.bozorgmehr
hey guys i want to convert below Matlab code to OpenCv C# Please help me and tell me about Equivalent Function in openCVRGB = imread( 'd:\02.jpg');I=double(RGB);W=size(I,2);H=size(I,1);cform = makecform('srgb2lab');lab =...
2 Nov 2020 by Arnaldo P. Castaño
In this series of articles we will use a deep neural network (DNN) to perform coin recognition. Specifically, we will train a DNN to recognize the coins in an image.
25 Mar 2009 by Arsalan Malik
This article describes how a texture can be created in OpenGL from a live video stream from a web cam or a video file.
26 Jul 2015 by Artem Kulikov
Hello. You should notice, that in your code - you will get only one contour.For your purpose you should fistly get all contours, and after that order them. Check this code:var allContours = new List>(); for (var contours = image.FindContours(); contours !=...
27 Nov 2016 by Arthur V. Ratz
Normally, in this code, at the beginning, you declare two variables: VideoCapture cap; Mat img; You normally open the camera by invoking cap.open("http://192.168.0.101:8080/video?x.mjpeg"); method and then perform a loop to retrieve each frame from the camera device storing them into a frame...
3 Dec 2016 by Arthur V. Ratz
Here's how: http://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/warp_affine/warp_affine.html
8 May 2012 by arthur.rafa10
HiPlease, if anyone has an example of how to implement skeletonization using OpenCV in C#.thank you
8 May 2012 by arthur.rafa10
hiI'm using the function in dificldades cvDistTransform with OpenCV in C #.My code is as follows:Cvlib.CvDistTransform (pimg ref, ref timg, (int) Cvlib.CV_DIST_L2, 3, NULL, NULL);and has an error when I pass the parameters null.does anyone know how to solve?thank you
11 May 2012 by arthur.rafa10
hianyone could give me an example of how the technique of invariant moments using OpenCV in C #thank you
18 May 2012 by arthur.rafa10
hianyone could give me an example of how to skeletonization without using the transform of the distance, or if you have a skeletonization with the transform of distance running. I have an example with OpenCV in C #, more does not work.cvlib.CvDistTransform (pimg ref, ref timg, (int)...
29 May 2012 by arthur.rafa10
hianyone could give me an example of an algorithm for thinning (skeletonization) using OpenCV in C # / C + + or without OpenCV.?need an algorithm that leave a letter or word with only one pixel wide.Please can someone help me?Thank you!
6 Jun 2012 by arthur.rafa10
hi does anyone have an example of invariant moments implemented with OpenCV? preferably in C # or C + +. please someone help me? Thank you!
14 Jul 2012 by arthur.rafa10
hidoes anyone know tell me how to use the descriptors (features) extracted from an image (with character), with moments invariants for recognition of handwritten characters??I am working with OpenCV and C #. if anyone has any tips?thank you
15 Jul 2012 by arthur.rafa10
hiDoes anyone have any examples or tips on how to implement image processing technique called PRUNING.I am working with OpenCV and C #.
26 Jul 2012 by arthur.rafa10
hiI'm trying to develop a project in college for the recognition of handwritten characters, and I'm struggling, half lost. need to present some results for my supervisor, I need to implement some techniques. can anyone help me, giving me some tips, articles or even to study examples of OCR...
19 Sep 2012 by arthur.rafa10
HiHow to plot an image in an inside another larger image using OpenCV?Thank you
8 Oct 2012 by arthur.rafa10
hineed to put a smaller image within a larger image. the smaller picture should be centered in the larger picture. I'm working with C # and OpenCV, does anyone know how to do this?