Navigation

    UBports Robot Logo

    UBports Forum

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

    Python + device Camera? (nexus5)

    App Development
    3
    4
    205
    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.
    • M
      masterchop last edited by

      I was testing opencv on python and just found out that i cant access the camera.
      When i look into dev/video* i get like 7 devices and none work.
      anyone had expirience with this?

      Thanks

      CiberSheep Flohack 2 Replies Last reply Reply Quote 0
      • CiberSheep
        CiberSheep @masterchop last edited by

        @masterchop Meybe you want to look into the Camera Scanner app as it's using opencv as well (it's using c++ though):

        https://open-store.io/app/camerascanner.jonnius

        Another planet, another time, another universe!

        M 1 Reply Last reply Reply Quote 1
        • M
          masterchop @CiberSheep last edited by

          @cibersheep Thank you for the repo. unfotunatelly i was not able to find the reference in the code i dont know C but still i google it and try to find it there but i was not able to find the src, just mat manipulations.

          1 Reply Last reply Reply Quote 0
          • Flohack
            Flohack @masterchop last edited by

            @masterchop Normally you cannot access the Android camera via v4l devices. If they are there, they are only used internally by the camera blob drivers. You would need to access the camera via an abstraction layer, as we do with our camera services for QML/Qt applications, since it needs to be initialized, activated in the correct way.

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

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