Matlab finds webcam, but says after running the code it is invalid
1 view (last 30 days)
Show older comments
Marlene Patterer
on 1 May 2021
Commented: Khalid Mahmood
on 3 May 2021
Error "The webcam object is no longer valid. Please create a new connection to the webcam."
Please help, tried everything. Very thankful for any kind of help!
0 Comments
Accepted Answer
Khalid Mahmood
on 1 May 2021
try these 3 commands:
1) clear all
2) imaqreset
3) Then a) cam =webcam b) preview cam
8 Comments
Khalid Mahmood
on 3 May 2021
Its great that the solution is working for you.
Any how if you want to remove the error in load myNet1.mat, you can email me and attach that file in email.
Then I will tell you the actual cause of error and its remedy
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements 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!