Calibration of an RTSP stream camera

6 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB 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