How to flip webcam input vertically?

5 ビュー (過去 30 日間)
Vishal Mansuria
Vishal Mansuria 2020 年 9 月 28 日
編集済み: Walter Roberson 2020 年 9 月 28 日
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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 28 日
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 件)

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by