Results 1 to 2 of 2

Thread: Flip/Mirror QCameraViewFinder

  1. #1
    Join Date
    May 2018
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Flip/Mirror QCameraViewFinder

    For a project I'm working on I would like to show a live camera feed in a window. I have succeeded in this using a QCamera and a QCameraViewFinder. Now to take it one step further I would like to flip the camera feed horizontally or vertically or both. I have explored tree possible paths:

    • Subclass QAbstractVideoSurface
    • Implement a QAbstractVideoFilter
    • Apply Shader


    (I also failed at implementing all 3.)

    As far as I know the first one can be done in pure c++ and the last two require QML. I would prefer not to use QML.

    My question is this: Which is the best path to follow, and why? A code example would be terrific!

    Much Love!

  2. #2
    Join Date
    Jun 2020
    Location
    Santa Cruz
    Posts
    3
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Flip/Mirror QCameraViewFinder

    this worked for me:
    > format.setScanLineDirection(QVideoSurfaceFormat::B ottomToTop);

Similar Threads

  1. Replies: 1
    Last Post: 16th July 2017, 15:04
  2. How to mirror the image in QCameraViewFinder?
    By Violet Giraffe in forum Qt Programming
    Replies: 3
    Last Post: 3rd April 2016, 01:00
  3. QCameraViewfinder aspect ratio
    By gpuckett in forum Qt Programming
    Replies: 0
    Last Post: 29th May 2014, 20:52
  4. mirror filping ???
    By jesse_mark in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2012, 21:33
  5. mirror for QGraphicsItem
    By jobrandt in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2007, 10:09

Tags for this Thread

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.