Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Adding frames to viewfinder

    General and Desktop
    2
    11
    1452
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Praveen k last edited by

      Hii.... I am new to qt. I want to develop an application where i am using QCamera to capture image. But the thing is i want to add some frames like .png or .jpg to it and then capture the new image with frames. And i want to do this in C++ Gui and not in QML. I have googled, but could'nt get the desired result. Anyone can help.. Thanks in advance

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What do you mean by "add frames" ? Show more frames ? Do some kind of overlay ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 2
        • P
          Praveen k last edited by Praveen k

          Yes Exactly my point.. Adding Overlays to viewfinder..!
          Sample Image

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            What kind of overlay do you have in mind ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • P
              Praveen k last edited by

              Transparent Overlay type..
              Basically like this one Sample Image

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Does it have any use except the "cuteness" factor ? (e.g. save to file with overlay applied etc.)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • P
                  Praveen k last edited by

                  Actually i just want to capture an image with frame and save it to local disk..

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    So save with the overlay applied ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 1
                    • P
                      Praveen k last edited by

                      OK!!! I'll try and can you give me some reference or any example.

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        There are several possibilities to do what you want.

                        One of the simple is to put your overlay image in a transparent QLabel and position it over your QCameraViewfinder. Then when you want to save the image, you can compose a new image based on both the camera and the overlay.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 0
                        • P
                          Praveen k last edited by

                          @SGaist Thanks for tip. It Worked

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post