GithubHelp home page GithubHelp logo

pixel2pos's Introduction

pixel2pos

像素坐标转世界坐标python函数 基本工作原理: 1、通过相机标定求解内参矩阵 K 2、已知四个控制点求相机的位姿 R,t(P3P/PnP)(摄影测量中求解共共线方程一般采用的是直接线性变换(DLT),最少需要6对点) 3、本函数利用opencv的solvepnp函数,利用5对像素-世界坐标点求解出相机的R,t; 4、由像素坐标推世界坐标(Xc_1 +Δx * n , Yc_1 +Δy* n , Zc_1 +Δz * n);Xc_1、Yc_1、Zc_1为z=1时,求解的世界坐标, Δx、Δy、Δz为z=2时求解的世界坐标与z=1求解的世界坐标的差值;(像素坐标转世界坐标得到的是一条直线) 5、在getPos函数中,需要根据坐标系提前确定高程值;默认地面是平行的;

20230809 添加了另一个版本的程序,该程序删除了利用点对,求相机外参的部分,改为手动输入

pixel2pos's People

Contributors

liuzhenyao avatar

Stargazers

 avatar Kyr1e avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.