Can someone please tell me how to use the guide push button to take a snapshot from the webcam and display the same in the gui ?

I am not able to write the code for taking the snapshot at the press of a push button.

1 Comment

The question is very general and in consequence hard to answer. Please post what you have tried so far and explain, which problems occur.

Sign in to comment.

 Accepted Answer

The main change would be that instead of
imshow(img)
"Note: If you are building a GUI where you want to control the figure and axes properties, be sure to use the imshow(..., 'Parent', ax) syntax."

More Answers (1)

See attached demo. It's still under development and may need some tweaks, but it works, at least for me. It also handles multiple cameras and if you have multiple cameras, it will ask you which one to use. It works for me and my integrated webcam and Lumenera USB camera. When I installed it on two macbooks, they had to make some changes, like to the desired default camera name.

1 Comment

Thank you so much for your reply. The demo is really helpful and i was able to carry out the required task.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!