GithubHelp home page GithubHelp logo

camera_calib_pnp's Introduction

CAMERA_CALIB_PNP

该仓库包含相机内参标定代码,以及PNP转换的旋转平移矩阵代码

1.相机内参标定

  1. 用待标定相机拍摄不少于10张,各个角度的标定版照片,并将这些照片置于一个文件夹中
  2. 运行python calib.py --imgs-source img_path --image-format img_format --width width --heifht height
  • 上述代码中,img_path为标定图片文件夹路径,img_format为图像格式,如:jpg,png。width,height为标定板内部角点在长宽方向的数量

2.PNP转换矩阵

  1. 利用测量工具测得标定版上的在实际三维坐标系下的坐标,并用对应要使用PNP算法的相机拍摄下照片
  2. 利用ps或其他工具找到标定版上的点在图像坐标系下的坐标(横为x,纵为y)
  3. 将各对应坐标输入PNP_final.py中,得到转换矩阵和平移矩阵

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.