emgucv

Detect display corners with Emgu

喜欢而已 提交于 2020-07-05 11:15:05
问题 I want to detect a display on an image (more precisely its corners). I segment the image in display color and not display color: Image<Gray, byte> segmentedImage = greyImage.InRange(new Gray(180), new Gray(255)); Then I use corner Harris to find the corners: Emgu.CV.Image<Emgu.CV.Structure.Gray, Byte> harrisImage = new Image<Emgu.CV.Structure.Gray, Byte>(greyImage.Size); CvInvoke.CornerHarris(segmentedImage, harrisImage, 2); CvInvoke.Normalize(harrisImage, harrisImage, 0, 255, NormType.MinMax

Rectification of uncalibrated cameras, via fundamental matrix

百般思念 提交于 2020-07-05 09:35:56
问题 I'm trying to do calibration of Kinect camera and external camera, with Emgu/OpenCV. I'm stuck and I would really appreciate any help. I've choose do this via fundamental matrix, i.e. epipolar geometry. But the result is not as I've expected. Result images are black, or have no sense at all. Mapx and mapy points are usually all equal to infinite or - infinite, or all equals to 0.00, and rarely have regular values. This is how I tried to do rectification: 1.) Find image points get two arrays

emgucv: pan card improper skew detection in C#

北慕城南 提交于 2020-06-29 04:00:09
问题 I am having three image of pan card for testing skew of image using emgucv and c#. 1st image which is on top Detected 180 degree working properly. 2nd image which is in middle Detected 90 dgree should detected as 180 degree. 3rd image Detected 180 degree should detected as 90 degree. One observation I am having that i wanted to share here is when i crop unwanted part of image from up and down side of pan card using paint brush, it gives me expected result using below mention code. Now i

emgucv: pan card improper skew detection in C#

夙愿已清 提交于 2020-06-29 04:00:03
问题 I am having three image of pan card for testing skew of image using emgucv and c#. 1st image which is on top Detected 180 degree working properly. 2nd image which is in middle Detected 90 dgree should detected as 180 degree. 3rd image Detected 180 degree should detected as 90 degree. One observation I am having that i wanted to share here is when i crop unwanted part of image from up and down side of pan card using paint brush, it gives me expected result using below mention code. Now i

Copy part of image to another image with EmguCV

佐手、 提交于 2020-03-06 03:04:06
问题 I want to copy a center part (Rectangle) of my image to a completely white Mat (to the same position). Code: Mat src = Image.Mat; Mat dst = new Mat(src.Height, src.Width, DepthType.Cv8U, 3); dst.SetTo(new Bgr(255, 255, 255).MCvScalar); Rectangle roi = new Rectangle((int)(0.1 * src.Width), (int)(0.1 * src.Height), (int)(0.8 * src.Width), (int)(0.8 * src.Height)); Mat srcROI = new Mat(src, roi); Mat dstROI = new Mat(dst, roi); srcROI.CopyTo(dstROI); //I have dstROI filled well. CopyTo method is