spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » OPENCV » Page 1
Improving circle detection
analogue to my answers in Detect semi-circle in opencv I see a problem: Don't extract canny edge detection before hough circle detection, since openCV houghCircle itself computes Gradient AND canny. So what you are trying to do is to extract canny from and edge image and detect circles in that, leading to (in the best case) 2 new edges around each edge => wrong way! As it is done in the openCV tu

Categories : Opencv

Coordinate storage in cvmat header
you don't. a boundingRect is used with a vector of Points, not with a Mat of any kind. vector<Point> points; points.push_back(Point(30,30)); points.push_back(Point(200,50)); points.push_back(Point(100,140)); points.push_back(Point(275,120)); Rect bounds = boundingRect(points); cerr << bounds << endl; [246 x 111 from (30, 30)] also, please stay away from opencv's dep

Categories : Opencv

Add .so File To Android Studio , Execution failed
With Android Studio, you have to put your .so files inside jniLibs/(armeabi-v7a|x86|...) folder if you want them to be included inside your APK. If you have files under jni folder, Android Studio will try to compile your sources using the NDK and an auto-generated Makefile, that's certainly this task that is currently failing with your project.

Categories : Opencv

OpenCV find polygons
I think that the problem could be your image threshold. I don't know how you did but you can get better results if the binary image is better. I like of your idea to connect the polygons segment, try to secure that the line you will connect has a maximum and minimum length to avoid connect to nearest objects. Verify if the new joint of lines forms 90 degrees angle, even if its a corner. Added:

Categories : Opencv

OpenCV 3.0 x64 VS2013 error LNK1104
ok fixed it myself... you have to add the files of opencv 3.0 under opencvuildx86vc12lib for the linker input. (see additional dependencies) which isnt the whole list anymore... list on the official tutorial is not up to date!

Categories : Opencv

Opencv: What is the procedure for finding specific pattern in black background?
If you want to filter on the number of contours including in a contour of interest, you should use the hierarchy variable. A possible code to do it would be: void updateInclusionScores(std::vector< std::vector<int> > const& hierarchy, std::vector<int>& scores) { for (size_t i = 0; i < hierarchy.size(); ++i) { scores[i] = 0;

Categories : Opencv

Detecting geometrical shapes in a handwritten flow chart
Sugestions: As you have only squared forms you can use hough lines probabilistic from opencv. With it you will obtain all small segments from flow chart. Try to connect the lines found forming the charts elements.

Categories : Opencv

OpenCV Sample Code in python
There are a lot of examples, but I would suggest in any case to give a look at the following sources: http://opencv-python-tutroals.readthedocs.org/en/latest/ http://www.pyimagesearch.com/

Categories : Opencv

CV - Extract differences between two images
One problem in your code is cv::threshold which only uses 1 channel images. Finding the pixelwise "difference" between two images in only grayscale often leads to unintuitive results. Since your provided images are a bit translated or the camera wasnt stationary, I've manipulated your background image to add some foreground: background image: foreground image: code: cv::Mat diffImage;

Categories : Opencv

Packing Pixel Data in OpenCV
You can convert the pixel format from BGR to BGRA See this example.

Categories : Opencv


Recently Add
I want to know where in the program loads the image?. I'm using Visual c ++ 2012 and the first version of OpenCV
Improving circle detection
Coordinate storage in cvmat header
Add .so File To Android Studio , Execution failed
OpenCV find polygons
OpenCV 3.0 x64 VS2013 error LNK1104
Opencv: What is the procedure for finding specific pattern in black background?
Detecting geometrical shapes in a handwritten flow chart
OpenCV Sample Code in python
CV - Extract differences between two images
Packing Pixel Data in OpenCV
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.