admin管理员组文章数量:1323023
I'm studying the OpenCV tutorial found here. I am a little confused about what is represented in the following line of code:
let trackWindow = new cv.Rect(150, 60, 63, 125);
I'm not sure what the convention is with regards to what exactly is represented by x, y, width, height in this case. I made a drawing showing what I think it is. Could you please let me know if my understanding is correct?
I'm studying the OpenCV tutorial found here. I am a little confused about what is represented in the following line of code:
let trackWindow = new cv.Rect(150, 60, 63, 125);
I'm not sure what the convention is with regards to what exactly is represented by x, y, width, height in this case. I made a drawing showing what I think it is. Could you please let me know if my understanding is correct?
Share Improve this question asked Jul 17, 2019 at 5:16 Anters BearAnters Bear 1,9561 gold badge20 silver badges53 bronze badges1 Answer
Reset to default 22The convention is as follows, it is x,y,w,h as you said, x,y are the coordinates for the top left corner of the box, and w,h are just the width and height, that's it, and similarily the origin of the image is from the top left, not bottom left, as specified by your drawing
Here is a diagram to better illustrate this
本文标签:
版权声明:本文标题:javascript - OpenCV Rect conventions – What is x, y, width, height? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739113988a2136955.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论