Define area to capture image

2 ビュー (過去 30 日間)
Nishant Satav
Nishant Satav 2016 年 12 月 4 日
回答済み: Image Analyst 2016 年 12 月 4 日
Hi, my final year project is about illegal parking detection using image processing. We are trying to develop a system that detects Illegally parked vehicles. Is there a way you can make the webcam capture an image when there is an object in the defined area (no parking) Some help would be useful. Thanks :)

回答 (1 件)

Image Analyst
Image Analyst 2016 年 12 月 4 日
Snap pictures continously. The parking space should be pretty uniform. If it's not, a car is parked there.
croppedImage = imcrop(rgbImage, someROI);
sd = std(croppedImage(:,:, 2)); % Take std dev of green channel.
if sd > maxAllowableSD
% Parking space is no longer empty
end

カテゴリ

Help Center および File ExchangeComputer Vision Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by