Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. how to open computer camera in interface in qml for python (PySide6)
Forum Updated to NodeBB v4.3 + New Features

how to open computer camera in interface in qml for python (PySide6)

Scheduled Pinned Locked Moved Unsolved Qt for Python
14 Posts 3 Posters 951 Views 1 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 21 Feb 2022, 20:19 last edited by
    #2

    Hi,

    Qt Creator is an IDE it does not open any camera.

    If you are thinking about QtQuick, there's the Camera item 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

    A 1 Reply Last reply 22 Feb 2022, 06:19
    0
    • A Offline
      A Offline
      Abdullah.S
      wrote on 22 Feb 2022, 06:06 last edited by
      #3
      This post is deleted!
      1 Reply Last reply
      0
      • S SGaist
        21 Feb 2022, 20:19

        Hi,

        Qt Creator is an IDE it does not open any camera.

        If you are thinking about QtQuick, there's the Camera item for that.

        A Offline
        A Offline
        Abdullah.S
        wrote on 22 Feb 2022, 06:19 last edited by
        #4

        @SGaist I am sorry, I wanted to mean QtQuick. Can you give an example of how to use camera item in my interface. I do not know if I should put it on a label or rectangle . I would be very grateful if you could give an example.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Feb 2022, 07:14 last edited by
          #5

          There's an example in the Camera item documentation.

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

          A 1 Reply Last reply 22 Feb 2022, 08:34
          0
          • S SGaist
            22 Feb 2022, 07:14

            There's an example in the Camera item documentation.

            A Offline
            A Offline
            Abdullah.S
            wrote on 22 Feb 2022, 08:34 last edited by
            #6

            @SGaist thank you but at example it says that we must import QtMultimedia but I cannot import it as a Qt 6.0.2 and PySide6 user. what should I do ?

            J 1 Reply Last reply 22 Feb 2022, 09:01
            0
            • A Abdullah.S
              22 Feb 2022, 08:34

              @SGaist thank you but at example it says that we must import QtMultimedia but I cannot import it as a Qt 6.0.2 and PySide6 user. what should I do ?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Feb 2022, 09:01 last edited by
              #7

              @Abdullah-S said in how to open computer camera in interface in qml for python (PySide6):

              what should I do ?

              Upgrade to Qt 6.2.*

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply 5 Mar 2022, 18:41
              0
              • J jsulm
                22 Feb 2022, 09:01

                @Abdullah-S said in how to open computer camera in interface in qml for python (PySide6):

                what should I do ?

                Upgrade to Qt 6.2.*

                A Offline
                A Offline
                Abdullah.S
                wrote on 5 Mar 2022, 18:41 last edited by
                #8

                @jsulm I do not know how to upgrade it should I reinstall Qt creator or should I use maintanenceTool and add component. Can you tell me what should I do. thank you

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 5 Mar 2022, 20:02 last edited by
                  #9

                  How did you originally installed PySide6 ?

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

                  A 2 Replies Last reply 6 Mar 2022, 08:27
                  0
                  • S SGaist
                    5 Mar 2022, 20:02

                    How did you originally installed PySide6 ?

                    A Offline
                    A Offline
                    Abdullah.S
                    wrote on 6 Mar 2022, 08:27 last edited by
                    #10

                    @SGaist I wrote "pip3 install PySide6" on terminal

                    1 Reply Last reply
                    0
                    • S SGaist
                      5 Mar 2022, 20:02

                      How did you originally installed PySide6 ?

                      A Offline
                      A Offline
                      Abdullah.S
                      wrote on 6 Mar 2022, 16:03 last edited by
                      #11

                      @SGaist I imported QtMultiMedia but still I am not able to open my computer's camera I want to see myself on my interface can you tell me how to do that because I could not find enough information. please tell me how can I do that by using main.py and main.qml. thanks

                      1 Reply Last reply
                      1
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 6 Mar 2022, 19:11 last edited by
                        #12

                        Did you already follow the basic tutorial for QML and PySide6 ?

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

                        A 1 Reply Last reply 6 Mar 2022, 20:41
                        0
                        • S SGaist
                          6 Mar 2022, 19:11

                          Did you already follow the basic tutorial for QML and PySide6 ?

                          A Offline
                          A Offline
                          Abdullah.S
                          wrote on 6 Mar 2022, 20:41 last edited by
                          #13

                          @SGaist yes, really what should I do ?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 6 Mar 2022, 21:19 last edited by
                            #14

                            If that part is working then use the example provided in the Camera type documentation.

                            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
                            0

                            • Login

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