How to flip webcam input vertically?
21 views (last 30 days)
Show older comments
Vishal Mansuria
on 28 Sep 2020
Edited: Walter Roberson
on 28 Sep 2020
I have tried a bunch of the image rotation and flip methods found on forums, but they are not working for flipping webcam image in preview.
I have done:
canon=webcam
x=flipud(canon)
and a bunch of other methods but when you preview x the video is not flipped
0 Comments
Accepted Answer
Ameer Hamza
on 28 Sep 2020
Try this
f = figure();
ax = axes();
cam = webcam();
while true
frame = flipud(snapshot(cam));
if ishandle(ax)
imshow(frame, 'Parent', ax);
else
break;
end
end
delete(cam);
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing 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!