specifying a region of interest in a video file, which is the region in between the lane markings in a highway
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Mahroo
2015-5-1
This is exactly my question. I am wondering if you figured it out. I appreciate your help!
回答(1 个)
Leepakshi
2025-8-5
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!