https://github.com/jpvolt/cameracalibration
CameraCalibration library for opencv and stereo vision.
https://github.com/jpvolt/cameracalibration
camera camera-calibration opencv stereo stereo-vision
Last synced: 9 months ago
JSON representation
CameraCalibration library for opencv and stereo vision.
- Host: GitHub
- URL: https://github.com/jpvolt/cameracalibration
- Owner: jpvolt
- License: mit
- Created: 2019-02-18T19:48:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-20T17:51:02.000Z (over 7 years ago)
- Last Synced: 2025-09-02T01:42:47.797Z (10 months ago)
- Topics: camera, camera-calibration, opencv, stereo, stereo-vision
- Language: Python
- Size: 68.4 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CameraCalibration
Camera calibration is a C++/Python library for opencv that facilitates camera calibration. See too [CameraCalibrationGUI](https://github.com/jpvolt/CameraCalibrationGUI) , a GUI util to generate config files used by this library.
## **How to Install:**
**Python:**
sudo pip3 install camcalib-jpvolt
**C++:** See *How to build* section.
## **Usage:**
**Generate config.json file with the [GUI util](https://github.com/jpvolt/CameraCalibrationGUI);**
**Python:**
from camcalib import *
width = 480 # image width
height = 640 # image height
path = "config/config.json" # config file path
cal = Calibrate(path, width, height)
while(True):#main loop
#your code
fixed = cal.fix(original_image)
**C++:**
#include
#include
#include
int main(int argc, char* argv[]){
CamCalib cal("path/to/config.json", img_width, img_height);
for(;;){
//your code
cv::Mat fixed = cal.Fix(original_image);
}
}
for more examples, look at examples folder.
## **How to build:**
*requirements:*
- Linux machine
- Cmake
- Opencv3.4+
- g++
- `sudo apt install cmake g++`
*Building:*
- `git clone https://github.com/jpvolt/CameraCalibration`
- `cd CameraCalibration `
- `mkdir build`
- `cd build`
- `cmake ..`
- `make -j4`
- `sudo make install`