jcmellado / js-aruco

JavaScript library for Augmented Reality applications
Other
600 stars 132 forks source link

equivalent of boudingRect for width and height of the contouore #17

Closed iam-prakash closed 7 years ago

iam-prakash commented 7 years ago

HI,

is there an equivalent function in js for boundingRect?

is there a way to get the width and height of the contour?

jcmellado commented 7 years ago

OpenCV has maskBoundingRect. It would be easy to port it to JavaScript.

But now I not sure if you are talking about the "raw contours" (i.e. free hand) of the "processed contours" (i.e. detected marker)

Some years ago I wrote some short "Spanish" articles about it: http://inmensia.com/blog/20110527/realidad_aumentada_douglas_peucker.html

Automatic English translation: https://translate.google.es/translate?sl=es&tl=en&js=y&prev=_t&hl=es&ie=UTF-8&u=http%3A%2F%2Finmensia.com%2Fblog%2F20110527%2Frealidad_aumentada_douglas_peucker.html&edit-text=