Giter Site home page Giter Site logo

edgy-lines's Introduction

edgy-lines

A Python 3 library for handling line segments and paths.


Version: 0.0.2
Author: ES Alexander
Release Date: 25/02/2020


Used to detect and analyse intersections (position and angle), find the distance between segments and from points to segments, and reduce a collection of lines by similarity. Intended for use in applications such as simplification of computer vision results (e.g. Hough Lines detected in an image), or in basic game development checking for polygon or bounding box intersections and/or proximity.

Usage

Install via pip, using python3 -m pip install --upgrade edgy-lines.

To import Edge class, use from edgy_lines.Edge2 import Edge.

edgy-lines's People

Contributors

es-alexander avatar

Stargazers

 avatar

Watchers

 avatar

edgy-lines's Issues

get_intersections rare failure (edge case)

On occasion get_intersections will fail to detect the intersection between two line segments if one line segment has a point on the other. Multiple intersection methods have been tried to no avail - it seems like an issue with floating point precision.

Add examples

Would be useful to have some examples of line reduction, finding and analysing intersections, and translating/scaling/rotating a path. Likely helpful to include plots for visualisation of results.

Incomplete Tests

Edge2_tests.py is currently quite incomplete, and several of the tests which are implemented are not well-documented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.