How to create a bounding box in webcam preview and capture image in that bounding box?
37 views (last 30 days)
Image Analyst on 4 Feb 2014
You can use ginput, rectangle(), imrect() or other functions to determine locations in the image. Then use plot() to create the box. Then call getsnapshot, which will get the full image but you then crop it with imcrop() to limit it to just the bounding box.
More Answers (2)
Aude Menet on 14 May 2020
Edited: Aude Menet on 14 May 2020
Error using videoinpu (line 219)
Invalid ADAPTATORNAME specified. Type 'imaqhwinfo' for a list of available
ADAPTORNAMEs. Image acquisition adaptors may be available as downloadable
support packages. Open Add-Ons Explorer to install additional adaptors.
Error in cameratest (line 20)
Can someone help me to fix these errors please ?