bentley_ottmann | Detection of line segments & polygon edges intersections | Computer Vision library
kandi X-RAY | bentley_ottmann Summary
kandi X-RAY | bentley_ottmann Summary
[] "Azure Pipelines") [] "Documentation") [] "Codecov") [] "License") [] "PyPI"). In what follows python is an alias for python3.5 or pypy3.5 or any later version (python3.6, pypy3.6 and so on).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a sweep of the given segments
- Create a LeftEvent from a given segment
- Adds an event to the set
- Remove and return an event from the queue
- Return the next event from the queue
- Convert start to a sorted tuple
- Register a relation
- Remove an event from the set
- Returns the previous event prior to the given event
- Return the first event above the given event
- Detects the intersection of the given event
- Push an event onto the queue
- Find the left event that matches the given event
- Create an EventQueue from segments
- Merges the left event with another
- Divide the given point into two parts
- Return the relationship between two points
- Complete the relationship between the same start and end events
- Read a file
bentley_ottmann Key Features
bentley_ottmann Examples and Code Snippets
Community Discussions
Trending Discussions on bentley_ottmann
QUESTION
I am trying to improve my code to find the tennis court line intercepts so that I can find the boundaries of the different quadrants of the court.
Input image
Output Image
I achieved this by first finding the white pixels in the image, then applying canny edge detection with some preprocessing such as Gaussian blur. Then the canny edge output is dilated to help prepare it for hough lines detection.
Then taking the hough lines output I used the python implementation of the Bentley–Ottmann algorithm by github user ideasman42 to find the hough line intercepts.
This seems to work pretty well, but I'm struggling to tune my system to find the last 4 intercept points. If anyone could give me advice to improve or tune this implementation or even offer up some ideas for a better way to solve the problem of finding the court boundaries I would appreciate it.
...ANSWER
Answered 2019-Apr-03 at 13:58Here is my solution, using a different approach. I use the Harris corner detector to detect corners. The parameters were just tweaked in a hurry, so feel free to play with them. Here is a tutorial from OpenCV on it.
I use the OpenCV Wrapper library for some easier OpenCV code. It should be pretty easy to translate if you don't want it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bentley_ottmann
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page