Calibration of an RTSP stream camera

6 ビュー (過去 30 日間)
Tboon
Tboon 2024 年 1 月 5 日
回答済み: Aastha 2024 年 10 月 9 日
I am looking at purchaseing MATLAB but have a few questions:
I've seen a lot of information and videos on calibration of cameras but I've not seen the use of that calibration in real time. Once you calibrate the camera(s), can you use the cameras in real time? (I would assume so, but want to confirm)
If you can use the distortion correction in real time, what kind of overhead is used? (I'm trying to determine how much CPU might be used and what is leftover for motion detection and recording.)

採用された回答

Aastha
Aastha 2024 年 10 月 9 日
Hi Tboon,
As I understand, you want to know about the computational requirements of using camera calibration parameters, specifically for distortion correction.
Kindly refer to the link of the below example of a camera calibration routine. On running the camera calibration in the example, you obtain the intrinsic, extrinsic, and distortion coefficients for the camera.
The images captured by the camera often have artifacts that can be corrected using the distortion coefficients to produce undistorted images. This process can be performed using the following MATLAB code:
I = imread('image.png');
imageSize = [size(I, 1), size(I, 2)]; %calculate the rows and columns
cameraParams = estimateCameraParameters(imagePoints, worldPoints, 'ImageSize', imageSize);%get camera paramenters in cameraParams object
J1 = undistortImage(I, cameraParams);%remove distortion
To get an estimate of CPU usage, information on camera calibration routine and image un-distortion process, you may refer to the link of MathWorks documentation mentioned below:
For precise execution time measurements, you can consider profiling your code to improve performance. For further information on “profiling”, you may refer to the link mentioned below:
I hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by