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? ...
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...
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{ ...
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.
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.
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
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;}
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...
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...
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...
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++...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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,...
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...
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)
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'), ...
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; ...
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...
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...
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...
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...
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....
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...
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...
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 =...
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...
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...
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...
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...
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[]) { // ...
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...
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.
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, ...
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...
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...
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...
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 ??!!
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(...
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...
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.
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.
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*.
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.
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...
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...
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 * * ...
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...
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...
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.
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.
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 =...
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.
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 !=...
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...
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
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)...
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!
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
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...
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?