How to segment bent rod for angle calculations?

I'm trying to use OpenCV to segment a bent rod from it's background then find the bends in it and calculate the angle between each bend. The first part luckily is trivial with a enough contrast between the foreground and background. A bit of erosion...
more »

2017-08-10 18:08 (2) Answers

How to change CUDA version

I met this error when compiling a modified caffe version. OpenCV static library was compiled with CUDA 7.5 support. Please, use the same version or rebuild OpenCV with CUDA 8.0 I have some old code may not compatible with CUDA8.0, so I want to chan...
more »

2017-08-03 09:08 (0) Answers

Preprocessing poorly scanned handwritten digits

I have a few thousands of PDF files containing B&W images (1bit) from digitalized paper forms. I'm trying to OCR some fields, but sometime the writing is too faint: I've just learned about morphological transforms. They are really cool!!! I fe...
more »

2017-07-10 23:07 (1) Answers

Blur Detection on image capture using AVFoundation

Hi I have captured image using AVFoundation and cannot able to detect blurry image. I have tried the proposed solution in the following link: OpenCV with Laplacian formula to detect image is blur or not in iOS but it works only on the images capture...
more »

2017-06-29 18:06 (0) Answers

Calling OpenCV python script with php page

I am trying to run a Python Script for Image Detection Via a php page and to catch and display the output generated by py script. Here is my python script GITHUB LINK I am running the python script using this code : $command = escapeshellcmd('sudo...
more »

2017-06-25 11:06 (1) Answers

How to use brew opencv3 with C++ on mac?

I installed opencv3 using homebrew using this tutorial But how can I use it with C++ on eclipse/xcode? I went through the opencv documentation for eclipse CDT here. But I dont have a separate opencv folder in /usr/local but rather a single folder /u...
more »

2017-06-10 18:06 (1) Answers

OpenCV can't detect color red correctly

Recently, I'm trying to use java OpenCV to detect the color of a Rubik's Cube. My Rubik's Cube has six colors including white, yellow, orange, red, blue and green. The color space I use is HSV color space. According to Wiki, each color has their uniq...
more »

2017-05-14 16:05 (0) Answers

FileStorage::WRITE .xml tag on opencv

I've been trying to write a nested .xml file with a vector<vector<Point>> data type in OpenCV (on C++). However, I have always one extra tag created within the loops: string filename = "test.xml"; FileStorage fs(filename, FileStorage::W...
more »

2017-04-22 19:04 (1) Answers

Remove glare from photo opencv

So, im using opencv to capture a document, scan it and crop it. When there is no lighting in the room, it works perfectly. When there is some light in the room, and there is a glare on the table and the document is near it, it also grabs the glare as...
more »

2017-04-18 13:04 (1) Answers

Java - Reading a frame in OpenCV

i have just started to learn openCV in java and i have setup my Eclipse IDE with all OpenCV java dependencies. Now i have a task in hand to extract a single frame from a video file which i have recorded in .avi file format. i searched from this lin...
more »

2017-02-26 10:02 (1) Answers

python opencv - blob detection or circle detection

I am having problems detecting circle areas. I tried it with the HoughCircles function from opencv. However even though the images are pretty similar the parameters for the funtion have to be different in order to detect the cirles. Another approac...
more »

2017-02-13 13:02 (2) Answers

Executing sudo make install in Eclipse CDT?

I'm contributing to OpenCV using Eclipse Neon. I edited the Build command in Project->Proprieties->C/C++ Build->Build command as sudo make -j8 install, so when I build the project, Eclipse compiles OpenCV and then install it in my system. However,...
more »

2017-01-30 19:01 (1) Answers

Access OpenCV documentation in spyder

I have Python 2.7.9 and OpenCV 3.1.0 installed on a Windows System. I'm using Spyder 2.3.2 and would love to access documentation for OpenCV in the IDE, however using Ctrl+I on cv2 functions/objects only shows No documentation available. According t...
more »

2017-01-10 10:01 (0) Answers

Average face - algorithm

Quesion and code is at the end I hope this question belongs here and not to the TCS's stack. I am trying to go through algorithms in Turk and Pentland's "Eigenfaces for Recognition". On page 74 one can read (last paragraph of left column): Let t...
more »

2017-01-03 22:01 (1) Answers