Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Browsing all 19555 articles
Browse latest View live

How to build OpenCV 3.1.0 from github in Visual Studio 2015 x64 Windows10

Hi Guys! Please tell me how to build OpenCV 3.1.0 from github in Visual Studio 2015 to x64. I used git clone https://github.com/Itseez/opencv.git and then use Cmake with default setting after that in...

View Article


Intersection of centroid and line/rectangle

I'm currently making a traffic count system using opencv and python and what I exactly intend to do is that,to increment the counter as soon as the centroid of the blob passes or crosses a line or a...

View Article


How to create an ROI (Region-Of-Interest or submat) from a contour?

Given an image `Mat`, and a contour (which is a `MatOfPoint`) in it, how can I create a ROI (Region Of Interest)/submat? I can see three interesting methods on docs of Mat, > **Mat submat(int...

View Article

OpenCV Error Assertion failed =0> in cv::setSize, file...

when i try to compile this code, it gives me then, Unhandled exception at 0x000000xxxx in video input.exe: Microsoft C++ exception: cv::Exception at memory location 0x0000000000xxxxxx then thrown me to...

View Article

selectROI is not working.

I want to run a multi object tracking code nuder opencv 3.1 with contrib. In the code, there is a line with selectROI(). Console said to me "Select an object to track and then press SPACE or ENTER...

View Article


how to find mouth and detect yawning in realtime video using opencv c++?

i need to detect face and eyes and mouth to detect a drowsy person. i found face and eyes with xml files of opencv. but it seems finding the mouth using haarcascade is not possible.because it doesnt...

View Article

.yml file reading - complex structure

Good morning everyone, I wish to read data from .yml file. The structure is a bit deeper than the one showed in the example: http://docs.opencv.org/3.0-rc1/d4/da4/group__core__xml.html Keeping same...

View Article

OpenCV tutorial project on Github ?

I could not follow up much with openCV tutorials, Is there xCode, iOS project downloads available of those tutorials mentioned in the openCV tutorial link...

View Article


OpenCV Error: Assertion failed using calcHist

I'm trying to calculate the histogram of a matrix composed by only one row. I wrote this code in VS2015: //Create matrix stromal pop cv::Mat stromalHistogram(1, i_stromalIID.size(), CV_32F); float *...

View Article


What problem with my program? and how to solve it?

**The mistake is vector subscript out of range , I don't know how to change it to right. please help me~thanks** void bo_lb(Mat &image, Mat & outputimage, int &count) { int value = 0;...

View Article

save png with imwrite() - read access violation

Hey there, I already searched everything I could but only found similar problems, not a single proper solution. What I'm using: Win7 x64, QT 5.5.1 x64, VS2013 as compiler, opencv 3.1 x64 (precompiled...

View Article

Why is the drawContour() in OpenCV generating this strange Mask?

I started by reading in this `Mat`. [![enter image description here][1]][1] Then I converted it to Greyscale and applied `Imgproc.canny()` to it, getting the following mask. [![enter image description...

View Article

OpenCV_CreateSamples and Training can't read negatives.txt

OS: WIN 64 (German verison) BUILD In 32 around 3229 positives, 3000 negatives, all pos. are 24x24, all neg. are of different, larger resolutions (640x480 and bigger) It seems it can't open the...

View Article


something weird about `findChessboardCorners()`

these days I was re-writing my opencv code on qt framework. the code runs well on the virtual studio 2013, but when I run it on the qt, something weird happened. the code is as follow cv::Mat view,...

View Article

How to train a CascadeClassifier to detect object with different aspect ratio?

I tried to detect object which could have different aspect ration in the positive photo. I used the next params: opencv_traincascade -data haarcascade -vec samples.vec -bg negative.dat -numStages 15...

View Article


Barrel distortion with LUT from PNG

Hi. I would like to apply Barrel Distortion to a camera stream to display the video on a Zeiss VR One. In the vrone unity3d sdk I found lookup tables for the distortion as png files and was very happy...

View Article

My contours smaller than a certain value are Not being removed from list of...

I started with this image: [![enter image description here][1]][1] Then I applied Canny Edge Detector like: Mat originalMatGreyScale = new Mat(); Imgproc.cvtColor(originalPhotoMat,...

View Article


traincascade stuck on 7-stage ending with POS count

![image description](/upfiles/14613254553840722.png) My traincascade process stuck on 7-stage and nothing was changing. I'm using positive samples with 2429 exact faces( 19×19) and negative samples...

View Article

Extended 3D tracking with ORB

I am developing a fairly simple mobile AR application, which uses a basic hamming code marker detection. Now I want to take that a step further, and create a way to continue 3D tracking of the scene...

View Article

OpenCV4Android - BilateralFilter Problems

So I'm attempting to use a bilateralFilter and it's crashing for reasons unknown to me. I'm following these as a guide and I'm not seeing anything wrong:...

View Article
Browsing all 19555 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>