Giter Club home page Giter Club logo

zero-shot-calibration's Introduction

zero-shot-calibration

The origin paper is from Jae-Yeong Lee, β€œZero-Shot Calibration of Fisheye Cameras,” arXiv, 2020, https://arxiv.org/abs/2011.14607

How to use this code is described below:

usage: zero_shot_calib.py [-h] [-W WIDTH] [-H HEIGHT] [-hf HFOV] [-vf VFOV] [-d DRAW]

find proper fisheye camera focal length with spec

options:
  -h, --help            show this help message and exit
  -W WIDTH, --Width WIDTH
                        Width information of image frame
  -H HEIGHT, --Height HEIGHT
                        Height information of image frame
  -hf HFOV, --Hfov HFOV
                        Horizontal field of view angle. It should be float
  -vf VFOV, --Vfov VFOV
                        Vertical field of view angle. It should be float
  -d DRAW, --draw DRAW  draw plot or not

example usage:

python3 zero_shot_calib.py -W 1920 -H 1440 -hf 122.0 -vf 94.0

Then it will show you the focal length in the terminal.

After that, if you want to undistort the image, you can use undistort.py

usage: undistort.py [-h] [--input_image INPUT_IMAGE] [--focal FOCAL] [--output_image OUTPUT_IMAGE]

options:
  -h, --help            show this help message and exit
  --input_image INPUT_IMAGE
  --focal FOCAL
  --output_image OUTPUT_IMAGE

example usage:

python3 undistort.py --input_image 20210812_084000_000_0400.png --output_image undistort.png --focal 1021.92

then it will save the undistorted image.

Example result:

zero-shot-calibration's People

Contributors

cjh1995-ros avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.