Camera Calibration for Video Surveillance Toolbox
Introduction
Most cameras for video surveillance are installed in high positions with a slightly tilted angle. In such installation, it is possible to retain only three calibration parameters in the original camera model, namely the focal length (f), tilting angle (theta) and camera height (c). These parameters can be directly solved by a nonlinear curve fitting using the observed head and foot points of a walking human. This toolbox privdes several functions and sample data needed to demonstrate this method.
List of scripts (demo)
Calibrating camera using head/foot points data
CalibrationDemo.m
Evaluating performance of calibration and height estimation
CrossValidationY.m - using Y only
CrossValidationYd.m - using Y only (distortion corrected)
CrossValidationXY.m - using X and Y
CrossValidationXYd.m - using X and Y (distortion corrected)
Demonstrating distortion correction
UndistortionDemo.m
List of functions
For given foot points, compute head points
FootToHeadY.m - using Y only
FootToHeadXY.m - using X and Y
FootToHeadXYd.m - using X and Y (distortion corrected)
For given foot and head points, compute human height
PointsToHeightY.m
Distort or undistort image
DistortImage.m
UndistortImage.m
Distort or undistort points
DistortPoints.m
UndistortPoints.m
Sample data
Sample data is under /data folder.
Homepage
License
This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
(C) 2015 Shengzhe Li lishengzhe@gmail.com
Cite As
Shengzhe Li (2024). Camera Calibration for Video Surveillance Toolbox (https://github.com/lishengzhe/ccvs), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Camera Calibration >
- Industries > Aerospace and Defense > C4ISR >
- FPGA, ASIC, and SoC Development > Vision HDL Toolbox > Video Formats and Interfaces >
- Image Processing and Computer Vision > Vision HDL Toolbox > Video Formats and Interfaces >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
src
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |
|