Git Product home page Git Product logo

Comments (4)

Rock-100 avatar Rock-100 commented on August 16, 2024

@Edwardmark x,y是左上角坐标,w是框的边长

from facekit.

Edwardmark avatar Edwardmark commented on August 16, 2024

@jack-cv 我本来也是这样理解的,但是在你的画图代码里,你首先将x1,y1,x2,y2都经过了Rotate_points函数才画出来的,所以这就是我不太明白的地方。如果x1,y1是左上角坐标,那当框是斜着的时候,为啥x2 = face.width + face.x - 1;
y2 = face.width + face.y - 1;
上面两个式子貌似在框是水平的时候是成立的,但是框是斜着的时候貌似不成立,理解不到位,求讲解,谢谢您了。

from facekit.

Rock-100 avatar Rock-100 commented on August 16, 2024

@Edwardmark x,y, w表示没有被旋转的框的左上角坐标和边长,旋转之后的坐标可以根据x, y, w和旋转角度计算得到

from facekit.

Edwardmark avatar Edwardmark commented on August 16, 2024

@jack-cv谢谢了,真的感谢您的耐心解答。

from facekit.

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.