- Initialize the Stereo Camera: Make sure you have initialized your stereo camera system properly and can preview both cameras in separate windows.
- Create VideoWriter Objects: You'll need to create two VideoWriter objects, one for each camera. These objects will be used to write frames from each camera to video files.
- Capture and Write Frames: Inside a loop where you are capturing frames from the stereo cameras, you can write each frame to the corresponding video file using the writeVideo function.
- Close VideoWriter Objects: After you have finished recording, be sure to close the VideoWriter objects to save and finalize the video files.
Acquisition stereo video sequence with 2 webcam
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I am working on project where I would like to detect vehicles and their distance from ego vehicle in real time. I saw very useful video >> https://uk.mathworks.com/help/vision/ug/depth-estimation-from-stereo-video.html
I just could not find out anywhere how should I record stereo video sequence, which will be used for further processing, disparity map calculation
I can do preview both cameras n separate windows, but I am not able to record the video. I tried also Image aquisition toolbox where recording is easy, but only from one camera, once it is choosen other camera, the first one is unplugged.
I would be very thankful for some advice how can I obtain stereo video for disparity map calculation.
Kind regards.
0 Kommentare
Antworten (1)
Vidip Jain
am 5 Okt. 2023
I understand you want to record a stereo video sequence for disparity map calculation, but you are not able to record the video form two cameras at the same time.
To record a stereo video sequence for disparity map calculation using MATLAB, you can use the VideoWriter object to create video files from your stereo camera feed. Here are the general steps to accomplish this:
For further information, refer to the documentation links below:
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!