Coder Social home page Coder Social logo

Comments (4)

Denacke avatar Denacke commented on July 20, 2024

If I were to guess without delving in it deeper at the moment, i'd figure those are the 4 x&y-coordinates of the corners of the box?

Thank you for maintaining this repo by the way!

from quagga2.

ericblade avatar ericblade commented on July 20, 2024

yeah, i think it might be a good idea to write a sample that visualizes the results in an obvious way (maybe draw some circles/dots at each point in the 'box' / 'boxes' arrays) to get a better idea what is represented there.

Since you can create a box using just 2 points, one corner, and the opposite corner, it slightly surprised me that it appears to have 4 points, but I guess that makes it easier without having to math out the other points. I guess I'm used to game engines and UI building engines, where you can easily supply a box with just two points. :-D

So, you're probably right, but I think I might try to add some additional things to the react sample that indicate what the various outputs represent specifically . . . since I'm not the one who designed the output, and it isn't all entirely clear what all the things represent, or their purpose.

Also, you're welcome!

from quagga2.

ChristophKaser avatar ChristophKaser commented on July 20, 2024

I might be wrong, but I don't think 2 points are enough to fully specify a box unless you require it to be axis-aligned. Since quagga supports rotated boxes, this might be the reason for 4 coordinates (just a guess, I did not look at the source)

from quagga2.

ericblade avatar ericblade commented on July 20, 2024

I hadn't considered that, you are probably right there. thinks have i ever tried to draw a box that wasn't axis aligned to the screen? i am not sure.

from quagga2.

Related Issues (20)

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.