Results 1 to 5 of 5

Thread: QCamera images flipped on Windows platform

  1. #1
    Join Date
    Mar 2013
    Posts
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QCamera images flipped on Windows platform

    I am trying to make a desktop application that uses a USB web camera. I used the example camera program from /examples/multimediawidgets/camera as an example of how to do my application.

    I have it working fine and all, until I build an run on Windows, then the image is flipped (mirrored). The example camera application behaves the same.

    It works properly on Mac OS X, and Linux. It is only flipped on windows?

    Any ideas how to remedy this? I can't find any settings in QCamera, or QCameraViewFinder for flipping the image.

    Thanks in advance!
    Jay

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QCamera images flipped on Windows platform

    Mirrored? You mean if you held up a sign with lettering on it and took a photo, the text would be backward in a mirror image? Or do you mean the image is upside down? This might be a "feature" of your camera driver. What happens if you use some other program (other than Qt-based) to capture a camera image, like maybe GIMP?

  3. #3
    Join Date
    Mar 2013
    Posts
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QCamera images flipped on Windows platform

    Yes, mirrored as in as if I'm looking at it through a mirror.

    I've used VLC to capture video from the camera and it displays a proper non-mirrored image. VLC is also using directshow, as is Qt5 (I think).

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QCamera images flipped on Windows platform

    Weird. Well, if this consistently happens, you can put in a conditionally compiled block for Windows that creates a mirrored QImage from the captured one (QImage::mirrored()), but obviously this is a less than optimal solution.

  5. #5
    Join Date
    Mar 2013
    Posts
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QCamera images flipped on Windows platform

    Quote Originally Posted by d_stranz View Post
    Weird. Well, if this consistently happens, you can put in a conditionally compiled block for Windows that creates a mirrored QImage from the captured one (QImage::mirrored()), but obviously this is a less than optimal solution.
    That would only work for captured images, but not for using the view finder to set up the shot.

Similar Threads

  1. QGraphicsscene.sceneRect on Windows platform
    By sanku3 in forum Qt Programming
    Replies: 0
    Last Post: 26th September 2011, 08:12
  2. Set zoomTo for QCamera?
    By tamnv110 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th August 2011, 13:54
  3. macintosh style on windows platform
    By ad3d in forum Newbie
    Replies: 1
    Last Post: 27th July 2011, 06:08
  4. How can I decrease the frame rate of the QCamera?
    By mismael85 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 9th July 2011, 00:13
  5. Using Kcfg in qt on windows platform
    By kurrachow in forum Newbie
    Replies: 0
    Last Post: 18th March 2011, 13:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.