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 Title

OpenCV 

20 Sep 2012 by Mich_90
I created imageHolder class: public class ImageHolder : Image { private String imagePath; public ImageHolder(String path):base(path) { this.imagePath = path; } public String imgPathProperty...
21 Sep 2012 by Mich_90
In .../windows/system32 I pasted cudart32_42_9.dll file.It's helped me to fix me problem
2 Feb 2012 by nguyenle.it
Hello everybody!I'm have a problem with 3D image comparison, my lecturer asked us to make a application that compare 2 3D images. But I don't know where to start. Could anybody let me know what step to research the processing, and give some information about what books should i...
2 Feb 2012 by Rajesh Anuhya
Go through the Discussions , This may helps youhttp://www.codeguru.com/forum/showthread.php?t=469100[^]http://www.edaboard.com/thread24812.html[^]http://www.programmersheaven.com/mb/CandCPP/242376/242376/compare-images/[^]Thanks--RA
22 Dec 2018 by ilostmyid2
Using cameras like Bosch 5000 Panorama gives a fisheye image that we've to dewarp it. Some dewarping methods are suggested, but what I prefer is rectangular, that's giving a center which is a point on the image, an inner radius and an outer one will map the pixels inside the boundary to a...
22 Dec 2018 by OriginalGriff
See here: c# - Circular Fisheye Image dewarp to flat image - Stack Overflow[^] - you aren't going to find code which exactly does what you want, so you are going to have to use the transformation formulae given there and work out exactly what you need yourself.
22 Dec 2018 by RickZeeland
It probably can be done with the Bosch Video SDK, but this is not for the faint hearted, see search results here: Search[^]
25 Feb 2015 by saad_lah
Complete guide for beginner to setup EmguCV project and run first program in Visual Studio
25 Jan 2018 by Intel
Below we seek guidance from the dictionary to appropriately define and discern the terms object detection, object recognition and object tracking.
14 May 2006 by Frederic Ntawiniga
The way of reading AVI files without installing codec drivers.
25 Apr 2012 by CodeProject, Michael Hopke
Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we talk to Michael Hopke, who helped launch a game and a game development company while still in college.
28 Aug 2017 by Ravimal Bandara
A new contrast enhancement algorithm which is fast, simple and powerful by means of boosting and illumination normalization. It was invented accidentally but the performed well in 2 different applications i.e. superficial vein enhancement and blood vessel enhancement in retinal fundus images.
17 Jun 2013 by Domus1919
Hi all,I have create this program to manage multiple threads multiple queues, for elaborate a series of images. Every thread pop an image from a queue, works on it, and push it in output queue.Thanks to different advices received here from other users, I have create this code, but the...
23 Mar 2019 by Member 14192637
I'm new on this forum. I'd like to ask you a question that has been annoying me all this day. the problem is that i don't find anything on internet about it. At the university we have to do this: Write a program that: -Loads the checkerboard images. ( these imagines are in a folder provided by...
22 Mar 2019 by Rick York
The problem is in the for loops. You stated there are fifteen images. Since array indexes start with zero, the fifteenth image will be index fourteen but your for loop goes out to fifteen. A better way to do this would be to define a constant : const int ImageCount = 15; // and write...
22 Mar 2019 by Member 14192637
Hi. First of all, thank you for answering. I followed your valuable advice(with a little modification, but that's the point), but the problem doesn't change. here the piece of the code correct: for(int i = 0 ; i
9 Mar 2012 by nagyervin89
Hi Everyone!I'm working on a project, in VS2010, c# opencvsharp.(I am new in OpencvSharp)I wanna detect object's lines on a image(in this case rectangle), I use the HoughLinetransform, but when I try to acquire the lines I get the following error:"Attempted to read or write protected...
10 Mar 2012 by Ganesan Senthilvel
It was a Vista Issue, what happens was that my App opens a web page that runs a java applet that opens a external IE webpage that runs a ActiveX app/script. When the ActiveX script tryes to update back in to the memory of the C# app the DEP "Data Execution Prevention" in Vista flags this...
18 Aug 2014 by pi19404
In this article we will look at Adaptive Skin Color Detection technique described in the paper "An Adaptive Real-time Skin Detector Based on Hue Thresholding"
24 Sep 2012 by Kumar 09
Hello,I am trying to show a webcam on the window using c++.For that i created a window with createwindowex() function and to this window i need to add the camera. Using opencv i tried access the camera but it is not displaying the window also. i tried in many ways but not...
25 Sep 2012 by manoranjan
If you want to capture video (from your webcam) using OpenCV, check out the following sample at OpenCV wiki: http://opencv.willowgarage.com/wiki/CameraCapture[^]If you want to use Win SDK, use either Video for Windows (WfW) or DirectShow. WfW provides capCreateCaptureWindow() API to...
25 Sep 2012 by Shambhoo kumar
go this linkhttp://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465134.aspx[^]good luckRegardSham:)
27 Dec 2022 by Atharav Jadhav
I have a code which takes images from a folder, crops the region of interest around it using the ROI function, and then removes the background using the rembg library. But I want a border around that image, around that specific object itself,...
28 Apr 2019 by Phil Hopley
In this article, we will add AI to an existing ROS (Robot Operating System) House Bot.
21 Mar 2012 by PixelIndia
Hello Everyone ,What are the advantages and disadvantages of Using Open CV??Are we going to face trouble while integrating in our client machine (automation) in release ???
3 Dec 2016 by violence666
hello,I have 2 sets of image points (x,y) from 2 images (ImgX, ImgY)I would like to use these image points and find the affine transformation between the two images.The getAffineTransform() function of openCV gives me a matrix of individual image points rather than a final matrix...
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
17 Jul 2020 by Sergey L. Gladkiy
In this article, we'll begin the process of how to use a deep neural network to estimate a person's age from an image.
23 Jul 2020 by Sergey L. Gladkiy
In this article we train the CNN for age estimation.
24 Jul 2020 by Sergey L. Gladkiy
In this article we will explain how to use the pre-trained CNN for estimating a person’s age from an image.
29 Oct 2020 by MehreenTahir
In this article we will compare training our models from scratch with more advanced and pre-trained approaches like YOLO.
30 Oct 2020 by MehreenTahir
In this we’ll see if we can implement YOLO on video feeds for queue length detection.
9 Dec 2020 by Dawid Borycki
In this article, we'll calculate the center of each detected bounding box, which will serve as a base for calculating distance.
8 Dec 2020 by Dawid Borycki
In this article we will perform object detection on the frames from the test data sets including video sequence stored in the video file.
10 Dec 2020 by Dawid Borycki
In this article, we will use those centers to estimate distances between people and indicate people that are too close.
11 Dec 2020 by Dawid Borycki
In this last article of the series, we improve our Python console application for AI-powered social distancing detection.
7 Dec 2020 by Dawid Borycki
In this article, we continue learning how to use AI to build a social distancing detector.
4 Dec 2020 by Dawid Borycki
In this article, we will use drawing functions to depict detected objects.
3 Dec 2020 by Dawid Borycki
In this article, we will learn how to add annotations to images.
2 Dec 2020 by Dawid Borycki
In this article series, we'll look at how to use AI and deep learning on video frames to ensure people are maintaining adequate social distancing in crowds.
24 Dec 2021 by Edward Sulistijono
Face Recognition with Python Programming Language using Haarcascade
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!
29 May 2012 by MuhtarQong
Please try this:This is a morphological image processing. As an example of algorithm:Iteratively delete (or erode) pixels inside the object (letter) to shrink it without shortening it or breaking it apart. Note that this is an iterative process. In general, you may stop the iteration after...
29 May 2012 by nv3
Beware, thinning is not equal to erosion! You find a good article about thinning here: Thinning Algorithm[^]
29 May 2012 by jk chan
you can use distance transform(with chessborad distance metric,seems good.) first, then find the minimum distance points on the image which is will be the skeleton that you want. :)see also this : http://homepages.inf.ed.ac.uk/rbf/HIPR2/distance.htm[^]jkchanhttp://cgmath.blogspot.com
29 May 2012 by amitkarnik2211
Here is an overview See weather this help[^]This will give an overview
5 Mar 2008 by Mingliang Zhu
An article showing how to easily but effectively extract all frames from a video as bitmaps
1 Oct 2014 by Torben Trindkaer Nielsen
This article presents the recursive connected component labelling algorithm with a workaround for the stack limitation. All in less than 70 lines of C/C++ code.
11 Feb 2013 by Markus Koppensteiner
Shows how to use OpenCV to write videos, how to implement mouse events, and presents some commands on image manipulation as well.
1 May 2012 by Markus Koppensteiner
Explains how to use some OpenCV commands for video manipulation.
15 Dec 2017 by Intel
This sample application takes an image or video frame of an analog gauge and reads the value using functions from the OpenCV* computer vision library.
2 Sep 2014 by pi19404
In this article, we will look at unistrore gesture recognition for Android devices
20 Jan 2014 by Serge Desmedt
Experiment with OpenCV imageprocessing methods on your mobile phone
30 Sep 2021 by Junwoo Kim
I am trying to show my annotations and show the video frame by frame. However, I get the frame by frame but not the annotation. Here is my code: import cv2 import mediapipe as mp import video_tools as vt # Video prep file_name = 'OpenTurn'...
28 Oct 2014 by Member 11068482
after 4 week i find my problem and i should setup my camera driver and update it for my laptop but when i debug my code it say successful but Many Camera View windows open and after that when i use 'T' for tracking it have troubleshoot occur any body know what is the problem??!!!!i debug it...
14 Sep 2014 by George Jonsson
You should go to the OpenCV official site for support. Welcome to opencv documentation![^]Here is an example from that site that looks like it shows what you want to do.Cascade Classifier[^]Quote:Use the CascadeClassifier class to detect objects in a video stream. Particularly, we will...
10 Mar 2013 by Mich_90
I build 3D image from two 2D images with help of EMGU wrapper.In reconstructed image I have some object andI have a dimensions in pixels(from two 2D images) of the object and focal length of the camera.I need to get the real size of the object.Any idea how to implement it?
25 Sep 2012 by Mich_90
In my project Im using EMGU librery.I need to determine the background color of the urban poster or broadsheet.As I see the background color of the poster or broadsheet is the predominant color.My question if Emgu has any function that returns(in certain existing models BGR,HSL...)...
25 Sep 2012 by Sergey Alexandrovich Kryukov
I have no idea what can you find in this library, but I can note that just the definition of "predominant color" will appear way more difficult than you probably think. Well, you can calculate the color histograms, find some modes (or not; http://en.wikipedia.org/wiki/Mode_%28statistics%29[^]);...
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
8 Feb 2015 by tkontos
A WTL based, XML driven shortcut replacement
2 Sep 2014 by Member 11030029
Developer Serhiy Posokhin and his wife Antonina Posokhina, a designer by trade, recognized the potential of this technology in the world of jewelry and pursued its potential through the Intel® App Innovation Contest 2013 (AIC 2013).
27 Jan 2010 by juancaruca
Artificial Vision: AINECC color model in edge detection. Entirely OpenCV code.
24 Jul 2013 by thuanleminh
hi allis there any solutions for Adjustment image color in open cv ?i have a bad image so i want to balance color of it thank !
1 Nov 2015 by Pavel Torgashov
Simple and fast skew correction of scan docs in C#
4 Jan 2022 by Member 14047666
We are performing Auto Crop operations using OpenCV library in C# project, For few sample automatically cropping the image but for other samples images are not cropped. Let us know anything is missing in source code. Please find the below piece...
4 Jan 2022 by KarstenK
A clear case for the debugger, because it is some special situation. So use the tool with some test data. I think your fix coordinates in the code can be a problem when using different image sizes. Also read the OpenCV documentation for...
12 Apr 2016 by zaidalhuda
I have bicubic interpolation for image zooming but i want B-spline interpolation plz anyone help me. code bicubic interpolation:IplImage * bicubic(IplImage *img, int newWidth, int newHeight){ int w= newWidth; int h = newHeight; IplImage * img2 =0; img2...
24 Jul 2013 by thuanleminh
how can i cut background of image with open cv ?thank !
12 Jun 2013 by vijay kakani
Hi Everyone,I'm new to Open CV and present working on my project which needs background separation done with OpenCV.Two days back I configured Open CV with Visual Studio C++ 2010 and worked on small tutorials from this blog http://opencv-srf.blogspot.ie/By I am not sure about how to...
30 Aug 2017 by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.
21 Sep 2013 by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SURF and ORB features using OpenCV and C++.
16 Dec 2015 by Intel
With barcode scanning being a standard on mobile devices one might want to enable Intel(R) Edison to run automated barcode scannings.
18 Feb 2016 by Intel
With barcode scanning being a standard on mobile devices one might want to enable Intel(R) Edison to run automated barcode scannings.
27 Jul 2022 by GUREY MARINE SHOP
I'm making a body measurements application that can be used to measure the human body, but I'm having trouble matching the correct person size to the image size. how can you help me ? What I have tried: import cv2 import mediapipe as mp import...
23 Jan 2013 by Vijay Rajanna
Procedure to be followed in order to generate OpenCV libraries for Linux operating system using MinGW and MSYS toolkit on Windows Operating system.
12 May 2013 by sizusuzu
0 down vote favorite I was working on Face Recognition code. After training the database and calling EigenObjectRecognizer, the result is a black image with unrecognized label.While the code running it looks like the following http://www.mediafire.com/view/?ewns4iqvd51adsc .And as shown in...
9 Feb 2015 by mayooran99
I have a need to identify accessories that a person is wearing. Are there any pre defined libraries for this available at C# or can I use any C# object identification techniques? what are the tools available? Please advise.
9 Feb 2015 by Sergey Alexandrovich Kryukov
You already know OpenCV. There are some .NET wrappers to this library you could use, such as OpenCVDotNet and Emgu...
15 Jun 2020 by Mohammad Tavoosi
Hi, I have a C # project that I want to add to that unique voice recognition feature. Can I add this feature to my C# project using OpenCV or other tools? What I have tried: So far, I've only been able to implement a text-sensitive voice...
9 Jul 2018 by Ganesh Ghube
I am able to set the Exposure manually using below code(cap.Exposure = -5;) and I want to set the Exposure as an Auto from my application after below function closed/terminated. Because Exposure is reflecting for all Camera applications after closed below project. Thanks in advance. What I...
20 Jun 2015 by Member 11223040
I am trying to program a robot that detect obstacles and estimate distance. I am using computer vision for this task . I calculated the disparity map but I do not know how to detect obstacles and estimate the distance. what are the steps I need to follow to accomplish this goal? what are the...
20 Jun 2015 by CPallini
Here some insight: "distance measurement using disparity map"[^].
25 Jul 2016 by devilmushroom
so, umm currently i'm going to do camera calibration using opencv but not with chessboard patterns. im using a square grid patterns like this one http://research.microsoft.com/en-us/um/people/zhang/Calib/Calibration/CalibIm1.gif[^]but everytime i'm searching for the code i always find the...
3 Oct 2018 by Junian Triajianto
How to perform Face Detection using your camera / Webcam
11 Jun 2014 by MSMHMA
in my code i take an image and apply this pre-processing on itbitwise_not(src, src); // matrices used Mat dst; // image after preprocessing //frame=src; cvtColor(src, dst, CV_BGR2GRAY); GaussianBlur(dst, dst, Size(7, 7), 5, 3, BORDER_CONSTANT); // tiny bit of smoothing...
7 Mar 2017 by OriginalGriff
The whole of idea of "i need a new code which is not in existance" means one of three things:1) You want something you can hand in as your own work.2) You want something written specifically for you.Or3) You want something that doesn't exist yet.So:1) We do not do your homework: it...
7 Mar 2017 by Patrice T
We do not do your HomeWork.HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them. Any failure of you will...
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...
2 Aug 2017 by KarstenK
Looks like Python and OpenCV are good companions, by visiting this sample site. Write some clear and wisely constructed functions to ensure smooth execution. With todays computing power and software optimizations, the speed is more a function of sound software but the implementing language. ...
31 Jan 2015 by hor_313
HiIs there any books or articles that discussed about learning from video? I know we can teach a neural network from photos, But what about videos? How can I teach an action to a machine?
31 Jan 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question, which is too broad.If your question is about using OpenCV, please start here: http://docs.opencv.org/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html[^].But understanding fundamentals of machine learning itself is a good portion...
2 Feb 2015 by Legor
Technically speaken a video is not much else then a lot if images (frames) in sequence. So there is not much difference between "learning" from an image then from a video (despite some more information you may obtain from the video).Your question however cannot be answered easily. If you ask...
10 Oct 2017 by Member 13458139
#include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/opencv.hpp" using namespace cv; using namespace std; int main(int argc, char** argv) { // Read image Mat im = imread("image1.jpg", IMREAD_GRAYSCALE); // Setup...
10 Oct 2017 by OriginalGriff
Compiling does not mean your code is right! :laugh: Think of the development process as writing an email: compiling successfully means that you wrote the email in the right language - English, rather than German for example - not that the email contained the message you wanted to send. So now...
10 Oct 2017 by Jochen Arndt
This can't be really answered without having your image. I would also expect that you got some output like "0.00" or your application terminates with an error. You should check if loading the image was successful because you will not get a result if that fails: Mat im = imread("image1.jpg",...
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(...
6 Oct 2022 by M@153
I'm trying to run the paddleOCR framework on the cropped ROI of a scanned image, but when I do, I always get the error message mentioned below. I have no idea what's gone wrong. UFuncTypeError Traceback (most recent...