videoinput error in real time detection
Show older comments
Hello sir, While I was working on real time face detection I got this error when I run my code for the second time. I have written stop(vid) and clear (vid) at the end of script,still I am getting this following error.
"winvideo: The device associated with device ID 1 is already in use. A new videoinput object cannot be created for this device while it is in use."
Can you tell me how to get rid of this? Thank you
2 Comments
Nachiket Patki
on 2 May 2017
Edited: Walter Roberson
on 2 May 2017
Nachiket Patki
on 5 May 2017
Answers (1)
Ashiq Ullah
on 22 Jan 2019
0 votes
Use this method:
>>objects = imaqfind ;
>> delete(objects) ;
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!