https://github.com/josafatburmeister/circle_detection

A Python Package for Detecting Circles in 2D Point Sets.

https://github.com/josafatburmeister/circle_detection

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords

circle numpy objectdetection pointcloud python
Last synced: 5 months ago · JSON representation

Repository

A Python Package for Detecting Circles in 2D Point Sets.

Basic Info
  • Host: GitHub
  • Owner: josafatburmeister
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 290 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
circle numpy objectdetection pointcloud python
Created over 1 year ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.md

circle_detection

A Python Package for Detecting Circles in 2D Point Sets.

pypi-image License: MIT CI coverage PyPI - Python Version

The package allows to detect circles in a set of 2D points. Currently, the package implements the following circle detection methods:

Get started

The package can be installed via pip:

bash python -m pip install circle-detection

The package provides MEstimator and Ransac classes, which can be used as follows:

```python from circle_detection import MEstimator, Ransac import numpy as np

xy = np.array([[-1, 0], [1, 0], [0, -1], [0, 1]], dtype=np.float64)

mestimator = MEstimator(bandwidth=0.05) mestimator.detect(xy) mestimator.filter(maxcircles=1)

print("Circles detected by M-Estimator method:", np.round(mestimator.circles, 2)) print("Fitting scores:", mestimator.fitting_scores)

ransac = Ransac(bandwidth=0.05) ransac.detect(xy) ransac.filter(max_circles=1)

print("Circles detected by RANSAC method:", np.round(ransac.circles, 2)) print("Fitting scores:", ransac.fitting_scores)

Retrieve parameters of the detected circles

if len(ransac.circles) > 0: circlecenterx, circlecentery, circle_radius = ransac.circles[0] ```

The package also supports batch processing, i.e. the parallel detection of circles in separate sets of points. For batch processing, the points of all input point sets must be stored in a flat array. Points that belong to the same point set must be stored consecutively. The number of points per point set must then be specified using the batch_lengths parameter:

```python from circle_detection import Ransac import numpy as np

xy = np.array( [ [-1, 0], [1, 0], [0, -1], [0, 1], [0, 1], [2, 1], [1, 0], [1, 2], [1 + np.sqrt(2), 1 + np.sqrt(2)], ], dtype=np.float64, ) batch_lengths = np.array([4, 5], dtype=np.int64)

circledetector = Ransac(bandwidth=0.05) circledetector.detect(xy, batchlengths=batchlengths) circledetector.filter(maxcircles=1)

print("Circles:", np.round(circledetector.circles, 2)) print("Fitting scores:", circledetector.fittingscores) print("Number of circles detected in each point set:", circledetector.batchlengthscircles) ```

Package Documentation

The package documentation is available here.

Owner

  • Name: Josafat-Mattias Burmeister
  • Login: josafatburmeister
  • Kind: user
  • Location: Potsdam, Germany
  • Company: @hpicgs

IT systems engineer and biologist

GitHub Events

Total
  • Release event: 4
  • Delete event: 28
  • Issue comment event: 36
  • Push event: 204
  • Pull request event: 57
  • Create event: 33
Last Year
  • Release event: 4
  • Delete event: 28
  • Issue comment event: 36
  • Push event: 204
  • Pull request event: 57
  • Create event: 33

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 39
  • Total Committers: 3
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.051
Past Year
  • Commits: 39
  • Committers: 3
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.051
Top Committers
Name Email Commits
Josafat-Mattias Burmeister 3****r 37
github-actions[bot] g****] 1
semantic-release s****e 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 53
  • Average time to close issues: N/A
  • Average time to close pull requests: 11 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.09
  • Merged pull requests: 48
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 53
  • Average time to close issues: N/A
  • Average time to close pull requests: 11 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.09
  • Merged pull requests: 48
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • josafatburmeister (64)
Top Labels
Issue Labels
Pull Request Labels
refactor (31) ci (11) fix (7) feat (6) docs (4)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 430 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: circle-detection

A Python package for detecting circles in 2D point sets.

  • Homepage: https://github.com/josafatburmeister/circle_detection
  • Documentation: https://josafatburmeister.github.io/circle_detection/
  • License: MIT License Copyright (c) 2024 Josafat-Mattias Burmeister Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.2.0
    published about 1 year ago
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 430 Last month
Rankings
Dependent packages count: 10.0%
Average: 33.3%
Dependent repos count: 56.5%
Maintainers (1)
Last synced: 6 months ago