hough-transform Questions

1

(See below for update with partially working code.) I have thousands of images that look like this: I need to run an OCR algorithm on the "1930 E.D." column. I find that when I crop th...
Irretrievable asked 18/7 at 21:40

3

Can you give me a quick definition of rho and theta parameters in OpenCV's HoughLines function void cv::HoughLines ( InputArray image, OutputArray lines, double rho, double theta, int threshold...
Flam asked 10/11, 2016 at 15:39

10

Solved

I can write something myself by finding zero-crossings of the first derivative or something, but it seems like a common-enough function to be included in standard libraries. Anyone know of one? My...
Virtuosic asked 11/11, 2009 at 5:54

6

Solved

I am trying to detect full circles and semicircles in an image. I am following the below mentioned procedure: Process image (including Canny edge detection). Find contours and draw them on an emp...
Faintheart asked 20/12, 2013 at 7:42

6

Solved

I am trying to find horizontal and vertical lines from an image which came from a "document". The documents are scanned pages from contracts and so the lines look like what you would see in a table...
Antependium asked 29/8, 2011 at 7:1

2

Solved

I have this image for a treeline crop. I need to find the general direction in which the crop is aligned. I'm trying to get the Hough lines of the image, and then find the mode of distribution of a...
Lozengy asked 31/12, 2021 at 21:37

6

Solved

How can I get the intersection points of lines down using opencv Hough lines algorithm? Here is my code: import cv2 import numpy as np import imutils im = cv2.imread('../data/test1.jpg') gray = ...
Airlie asked 4/10, 2017 at 13:19

5

Solved

My task is to find coordinates of lines (startX, startY, endX, endY) and rectangles (4 lines). Here is input file: I use the next code: img = cv.imread(image_src) gray = cv.cvtColor(img,cv.COLOR_BG...
Stroud asked 6/8, 2017 at 10:31

3

Solved

I have an image and it has some shapes in it. I detected lines with using hough lines. How can I detect which lines are parallel?
Adkins asked 3/4, 2013 at 6:20

2

I have a 512x512 image of a street grid: I'd like to extract polylines for each of the streets in this image (large blue dots = intersections, small blue dots = points along polylines): I've trie...
Annecorinne asked 30/9, 2021 at 20:48

7

I hope I wrote the question title right because I don't know how to exactly explain it. Consider below's code: lines = cv2.HoughLines(edges,1,np.pi/180,200) for rho,theta in lines[0]: a = np.cos(...
Hawse asked 22/1, 2016 at 11:57

2

Solved

In OpenCV 3.4.2 the option to return the number of votes (accumulator value) for each line returned by HoughLines() was added. In python this seems to be supported as well as read in the python doc...
Shrapnel asked 11/9, 2018 at 12:45

2

Solved

i'm trying to find theses two horizontal lines with the Houghlines transform. As you can see, the picture is very noisy ! Currently my workflow looks like this : crop the image blur it low the n...
Montemontefiascone asked 14/12, 2020 at 17:42

1

Solved

I was working on a project using OpenCV, Python that uses Probabilistic Hough Line Transform function "HoughLinesP" in some part of the project. My code worked just fine and there was no ...
Odontology asked 20/10, 2020 at 12:37

5

Solved

I'm using Hough Lines to do corner detection for this image. i plan to find the intersection of the lines as the corner. This is the image. Unfortunately, Hough return lots of lines for each line...
Properly asked 14/8, 2014 at 8:25

3

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 be...
Pretrice asked 10/8, 2017 at 16:29

4

Solved

My goal is to accurately measure the diameter of a hole from a microscope. Workflow is: take an image, process for fitting, fit, convert radius in pixels to mm, write to a csv This is an output ...
Toddle asked 18/2, 2020 at 20:46

6

I'm trying to write an application to find the numbers inside an image and add them up. How can I identify the written number in an image? There are many boxes in the image I need to get the n...
Crossroads asked 20/4, 2015 at 10:45

1

Solved

I have pictures of apple slices that have been soaked in an iodine solution. The goal is to segment the apples into individual regions of interest and evaluate the starch level of each one. This is...
Indoeuropean asked 10/2, 2020 at 22:44

3

Solved

Setup: Camera: Blackfly S Mono 20.0 MP Lens: Opto telecentric lens TC23080 Lights: 16 green LEDS Python: 3.7.3 openCV: 4.0+ Sorry for the image links, but one image is around 20MB, also did not...

3

Solved

I want to extract the information from a scanned table and store it a csv. Right now my table extraction algorithm does the following steps. Apply skew correction Apply a gaussian filter for deno...
Lowery asked 21/3, 2019 at 8:7

2

Solved

Before detecting circles, I am replacing the red channel with the green channel. After replacing the channel, I pass it through a blur filter and then do a Hough transform to detect circles. But as...

1

I was trying to detect circles in the following image using HoughCircles. Here is the code that I was tuning to find all the circles. import cv2 import numpy as np img = cv2.imread("images...
Exon asked 26/1, 2019 at 10:15

3

I am trying to use OpenCV on an android phone to detect lines. I modified the 'Tutorial 1 Basic - 2. Use OpenCV Camera' sample. I am also using Hough Line Transform as an example. However, I am get...
Overlay asked 28/10, 2011 at 6:1

2

Solved

I am using HoughCircles to detect a ball in real-time, but running Canny on my gray-scale image stream isn't creating all of the edges as it should. To remedy that, I am splitting the rgb image int...
Hyperthyroidism asked 24/11, 2013 at 23:25

© 2022 - 2024 — McMap. All rights reserved.