Why webcam preview in MATLAB is like a inverted mirror?

When I capture image from webcam using YouCam Software, my right hand in image is on right side but when I capture image from webcam using MATLAB, my right hand in image is on left side. Why it is so?

 Accepted Answer

Some camera adapters have the ability to flip the image up/down and left/right. I don't know if yours does but you can look for that capability in imaqtool.

5 Comments

Okay, how to stop it from flipping?
Change the setting. If you don't see the setting, then you can't.
What's the procedure to change settings?
There may (or may not) be a checkbox or something that says something like "flip vertical", "mirror image" or something like that.
you should try to flip horizontaly:
vid = videoinput('winvideo', 1, 'your default resolution');
src = getselectedsource(vid);
src.HorizontalFlip = 'on';
for example I use default resolution: 'RGB24_640x480'

Sign in to comment.

More Answers (0)

Asked:

on 6 Feb 2014

Edited:

on 20 Apr 2014

Community Treasure Hunt

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

Start Hunting!