Giter Club home page Giter Club logo

Comments (4)

moberweger avatar moberweger commented on July 27, 2024 1

@shimiaoli
So assume com3D is the com point in 3D (com3D=(com[0]+ux) * com[2] / fx). Then a metric cube is extracted around this point, which has z-coordinates com3D[2] +/- size[2]/2 (handdetector.py L190-191). Then, we calculate the top and bottom projections around the 3D point com3D by com3D[0] +/- size[0]/2 for the x-axis, ie the top and bottom side of the cube. The z-coordinate stays the same, since we only add on the x-axis. This way, the 2D crop (2D projections of these sides of the cube) is taken around the com3D point with z=com3D[2]. Otherwise the crop would be larger if we take the top and bottom part from the back side of the cube or smaller from the front side, ie z=com3D[2] +/- size[2]. Also, the different sizes would depend on the distance of com3D to the camera, which should be irrelevant for the hand pose and would make the problem harder. Using this parametrization ux cancels and one should derive the used equation.

from deep-prior.

moberweger avatar moberweger commented on July 27, 2024 1

Hi @jakeoung
So the derivation could go like this:

Since
com3D=(com[0]-ux) * com[2] / fx <--> com[0] = com3D * fx / com[2] + ux

we plug in and derive
((com[0] - ux) * com[2] / fx - size[0] / 2.) / com[2]*fx + ux = com[0] - size[0] / 2. * fx / com[2]

from deep-prior.

jakeoung avatar jakeoung commented on July 27, 2024

Sorry, but could I have a question? How do we cancel out ux? My derivation is like this: (I assume com3D=(com[0]-ux) * com[2] / fx)

((com[0] - ux) * com[2] / self.fx - size[0] / 2.) / com[2]*self.fx)

Here, I don't know how to cancel out $ux$.

from deep-prior.

jakeoung avatar jakeoung commented on July 27, 2024

Hello @moberweger,
I am very thankful for your reply. I can understand it now!

from deep-prior.

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.