specifying a region of interest in a video file, which is the region in between the lane markings in a highway
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to specify the region of interest in a video, which is the road ahead in between the lane markings in a highway. from there, i have to detect the objects(vehicles). is it possible to do so?
1 commentaire
Mahroo
le 1 Mai 2015
This is exactly my question. I am wondering if you figured it out. I appreciate your help!
Réponses (1)
Leepakshi
le 5 Août 2025
Hi Mahroo and Vinoth,
I understand you're trying define a region of interest (ROI) corresponding to the road area between lane markings in a highway video and then detect and identify vehicles only within that region. You can use MATLAB’s Image Processing Toolbox to detect lane lines (using edge detection and color thresholding) and define the ROI with functions like "poly2mask" or "roipoly". Once the ROI is specified, MATLAB’s Computer Vision Toolbox allows you to apply pretrained object detectors such as YOLO or SSD to each video frame, and then filter the detected objects by checking if their bounding box centers fall within the ROI using functions like "inpolygon". This workflow enables you to focus vehicle detection precisely on the road area between lane markings in your video.
You can refer to below documentation for further information on Computer Vision Toolbox:
Hope this helps!
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!