Coder Social home page Coder Social logo

face alignment problem about playground HOT 4 CLOSED

xieyipeng avatar xieyipeng commented on June 12, 2024
face alignment problem

from playground.

Comments (4)

yinguobing avatar yinguobing commented on June 12, 2024

可以这样做:

  1. 定义一个归一化的坐标空间,长、宽为1。
  2. 定位五官坐标,它们在此空间中取值范围为 0~1。
  3. 用你需要裁剪的实际尺寸乘以归一化后的坐标,得到真实像素位置。

注意变换后的五官位置完全是由你自己来指定的,一般是根据实际业务来确定。

from playground.

xieyipeng avatar xieyipeng commented on June 12, 2024
  • 在第二步中,如何定位五官坐标呢?

  • 我现在是这样做的:

  • 先在PS中新建192*192的画布,再标记上您原有博客中的关键点,保存图片,然后新建一张512*512的画布,等比缩放之前的192*192的画布,使其完全贴合,这样得到256*256像素下的五官坐标

  • 这样做可行吗?

from playground.

yinguobing avatar yinguobing commented on June 12, 2024

可以的。

from playground.

xieyipeng avatar xieyipeng commented on June 12, 2024

好的,非常感谢!

from playground.

Related Issues (1)

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.