edge-detection

How can I use the latest version of Imagemagick on Heroku?

╄→гoц情女王★ 提交于 2019-11-27 23:50:50
问题 Heroku Cedar-14 stack currently runs a version of ImageMagick (6.7.7-10) that is nearly a year old: Running `identify -version` attached to terminal... up, run.8227 Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP I want to use the -canny option that performs edge detection in an image, but this was only introduced in a later version of ImageMagick. The only available buildpack for ImageMagick on

Canny Edge Image - Noise removal

笑着哭i 提交于 2019-11-27 20:54:13
I have a Canny edge detected image of a ball (see link below) which contains a lot of noisy edges. What are the best image processing techniques that I can use to remove these noisy edges without removing the edges belonging to the ball? Original image Canny edge image Many thanks everyone in advance for your help and advice, much appreciated! Ps I am trying to clean up the edge image prior to using the Circle Hough Transform to detect the ball. The best option is to filter the image before applying the edge detector. In order to keep the sharp edges you need to use a more sophisticated filter

Sobel filter kernel of large size

假如想象 提交于 2019-11-27 17:59:05
I am using a sobel filter of size 3x3 to calculate the image derivative. Looking at some articles on the internet, it seems that kernels for sobel filter for size 5x5 and 7x7 are also common, but I am not able to find their kernel values. Could someone please let me know the kernel values for sobel filter of size 5x5 and 7x7? Also, if someone could share a method to generate the kernel values, that will be much useful. Thanks in advance. UPDATE 23-Apr-2018: it seems that the kernels defined in the link below are not true Sobel kernels (for 5x5 and above) - they may do a reasonable job of edge

Edge detection on colored background using OpenCV

我是研究僧i 提交于 2019-11-27 14:31:33
I am using following code to detect edges from given document. private Mat edgeDetection(Mat src) { Mat edges = new Mat(); Imgproc.cvtColor(src, edges, Imgproc.COLOR_BGR2GRAY); Imgproc.GaussianBlur(edges, edges, new Size(5, 5), 0); Imgproc.Canny(edges, edges, 10, 30); return edges; } And then I can find the document from this edges by finding largest contour from this. My problem is I can find the document from following pic: but not from following pic: How can I improve this edge detection? I use Python, but the main idea is the same. If you directly do cvtColor: bgr -> gray for img2, then

How can I detect the dimensions of an object under an angle in this picture in MATLAB? [closed]

南楼画角 提交于 2019-11-27 13:50:23
I have this image of a battery: I would like to determine the dimensions of the battery (in pixels). The problem I have is that the battery is rotated by an unknown angle. How can I detect the dimensions of this rotated battery? I was thinking of these algorithmic steps: First, I would have to convert this image to a black and white image (thresholding). After that, I would have to find a center point and draw a rectangle in the white pixels. Then, I have to turn the rectangle 360 degrees and locate the position of the rectangle (and so the dimensions). I am somewhat inexperienced, and I would

OpenCV's Canny Edge Detection in C++

泪湿孤枕 提交于 2019-11-27 13:21:23
I want to extract the edges of hand but I get the following result. I've tried adjusting the low and high threshold but I still can't get the desired output. I have included below the code and its output. What seems to be the problem? This is the output image generated by the code below. #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> int main(){ cv::Mat image= cv::imread("open_1a.jpg"); cv::Mat contours; cv::Mat gray_image; cvtColor( image, gray_image, CV_RGB2GRAY ); cv::Canny(image,contours,10,350); cv::namedWindow("Image"); cv:

Image Processing - Implementing Sobel Filter

萝らか妹 提交于 2019-11-27 10:08:42
问题 I've got a task to implement Sobel filter which is, as you know, an image processing filter for edge detection. But unfortunately, I've got no experience in image processing field, to the extent that I don't even know how images are represented in computer. Totally no knowledge in this field. I've read some papers and PDFs but they focus on many topics which I feel that I may not need them for my task. I'd be happy to know your suggestions or if there is any particular paper, PDF, tutorial or

DETECT the Edge of a Document in iPhoneSDK

百般思念 提交于 2019-11-27 09:55:45
问题 I am looking something like attached image, How can I implement this in iPhoneSDK. Can anybody suggest me some open source API or Algorithm Code to detect the corners of captured image of a document. Some How, I got an open source API called OpenCV which recognize the Human Face very well. I want to use the same API if possible.Now the problem Is how can I make the changes in those static libraries according to my requirement to Scan the Document edges. Alternatively , how to detect for the

OpenCV Edge/Border detection based on color

天大地大妈咪最大 提交于 2019-11-27 09:42:10
问题 I'm fairly new to OpenCV, and very excited to learn more. I've been toying with the idea of outlining edges, shapes. I've come across this code (running on an iOS device), which uses Canny. I'd like to be able to render this in color, and circle each shape. Can someone point me in the right direction? Thanks! IplImage *grayImage = cvCreateImage(cvGetSize(iplImage), IPL_DEPTH_8U, 1); cvCvtColor(iplImage, grayImage, CV_BGRA2GRAY); cvReleaseImage(&iplImage); IplImage* img_blur = cvCreateImage(

Algorithm to detect corners of paper sheet in photo

心不动则不痛 提交于 2019-11-27 08:56:33
问题 What is the best way to detect the corners of an invoice/receipt/sheet-of-paper in a photo? This is to be used for subsequent perspective correction, before OCR. My current approach has been: RGB > Gray > Canny Edge Detection with thresholding > Dilate(1) > Remove small objects(6) > clear boarder objects > pick larges blog based on Convex Area. > [corner detection - Not implemented] I can't help but think there must be a more robust 'intelligent'/statistical approach to handle this type of