Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
Calculating Angle from 3D Coordinates

I am working with a pose estimator that is giving me (x, y, z) for each joint. I am attempting to calculate angles based on these and running into some issues.

 const find_angle = (Ax,Ay,Az,Bx,By,Bz,Cx,Cy,Cz) =>
{
    var AB = Math.sqrt(Math.pow(Bx-Ax,2)    +   Math.pow(By-Ay,2)  +  Math.pow(Bz-Az,2));    
    var CB = Math.sqrt(Math.pow(Bx-Cx,2)    +   Math.pow(By-Cy,2)  +  Math.pow(Bz-Cz,2)); 
    var AC = Math.sqrt(Math.pow(Cx-Ax,2)    +   Math.pow(Cy-Ay,2)  +  Math.pow(Cz-Az,2));
    
    const radians = Math.acos((CB*CB+AB*AB-AC*AC)   /   (2*CB*AB));
    const angle = (Math.abs(radians*180.0/Math.PI))
    console.log(angle)
}

// Knee
find_angle(101, 166, 409, 107, 209, 790, 115, 248, 9564)

// Ankle
find_angle(100, 259, 1549, 97, 299, 9471, 95, 315, 1575)

Ouput:

enter image description here

The Knee output looks correct to me but Ankle does not. I was expecting an angle in the range of 70-90. I'm wondering if this function is too simple for what I am trying to do or what improvements could be made to make it consistent across all joints. User is facing the camera while pose is being estimated.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda