Getting inverted image from webcam

6 ビュー (過去 30 日間)
Raj Thenua
Raj Thenua 2021 年 8 月 9 日
コメント済み: Image Analyst 2021 年 8 月 10 日
I am facing a problem, when using webcam command.
When my webcam started, if I try to preview webcam object, inverted image is produced without modification in the webcam properties.
How I can get correct video preview and image?

回答 (1 件)

Image Analyst
Image Analyst 2021 年 8 月 9 日
It does not look like the generic USB webcam object has a flipping property.
So I don't think you can get a live flipped version. You'll have to physically turn your camera upside down, or else go with a more expensive machine vision camera that has such a flipping property. Or else just flip a snapped image after it's been snapped with flipud() or imrotate().
  2 件のコメント
Raj Thenua
Raj Thenua 2021 年 8 月 10 日
編集済み: Image Analyst 2021 年 8 月 10 日
Thank you for suggestion but actually I am talking about laptop webcam. How I can make it upside down?
When use this webcam in the Image Acquisition Toolbox, with imaqtool, it is previwing the correct video. But when I create an object like
w=webcam;
preview(w)
or
snapshot(w)
in a script, I get an inverted preview/image.
It is not that way in my other laptop.
Image Analyst
Image Analyst 2021 年 8 月 10 日
I don't know - that's weird. I can't reproduce that behavior. For me it's not inverted. I suggest you call tech support.

サインインしてコメントする。

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by