Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCamera focus over some area, suggestions.
Qt 6.11 is out! See what's new in the release blog

QCamera focus over some area, suggestions.

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.6k Views 2 Watching
  • 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.
  • upallayU Offline
    upallayU Offline
    upallay
    wrote on last edited by
    #1

    HI, I'm developing a program in c++ for security camera for my neighbourhood that uses a webcam (I'm using my webcam to test).
    I'm using a QCameraFocus to zoom in and zoom out using the zoomTo() function, it works, but it just focuses in the center, and I would like to zoom over some area, like the corner in the view. I tried using setCustomFocusPoint but it didn't work. Also I would like to rotate some degrees.
    I would like to receive some suggestions to get zoom over any area and rotate some degrees.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Does your camera provider offer any API for that ?

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

      upallayU 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Does your camera provider offer any API for that ?

        upallayU Offline
        upallayU Offline
        upallay
        wrote on last edited by
        #3

        @SGaist , I'm currently testing with my laptop webcam (according lsusb command Chicony Electronics is the information about my webcam), but for my project deploy I'm going to use a Logitech webcam c270. I've been looking for information about some API of my webcam, but I did not found something related with Qt.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qt cannot cover every possible APIs. By the way what OS are you running ? They do not all offer all the range of controls.

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

          upallayU 1 Reply Last reply
          0
          • SGaistS SGaist

            Qt cannot cover every possible APIs. By the way what OS are you running ? They do not all offer all the range of controls.

            upallayU Offline
            upallayU Offline
            upallay
            wrote on last edited by upallay
            #5

            @SGaist , I'm running in ubuntu 18, but I tried in windows as well, and the results is the same. I'm thinking to convert the data from the camera to image, cut, rotate and set them over a QLabel, but I don't know if this method is going to be the best way, because I would like to capture 15 fps at less.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Are you planning to do any image processing on these image beside zooming ?

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

              upallayU 1 Reply Last reply
              0
              • SGaistS SGaist

                Are you planning to do any image processing on these image beside zooming ?

                upallayU Offline
                upallayU Offline
                upallay
                wrote on last edited by
                #7

                @SGaist , I just need zooming and rotate some area of the camera capture, I thought that I could achieve using only QCameraFocus or relative libraries but I guess I have to use another method.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bonnie
                  wrote on last edited by Bonnie
                  #8

                  What does isFocusPointModeSupported(QCameraFocus::FocusPointCustom) return?
                  And if I need to rotate a video in Qt, I would start from QGraphicsVideoItem in a QGraphicsView. Don't know whether that would work though...
                  Do you want to rotate a single still image file or the whole video widget?

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved