• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Python + device Camera? (nexus5)

Scheduled Pinned Locked Moved App Development
4 Posts 3 Posters 322 Views 3 Watching
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 Offline
      masterchop
      last edited by 6 Jan 2021, 03:13

      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

      C F 2 Replies Last reply 6 Jan 2021, 12:09 Reply Quote 0
      • C Offline
        CiberSheep @masterchop
        last edited by 6 Jan 2021, 12:09

        @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 7 Jan 2021, 05:04 Reply Quote 1
        • M Offline
          masterchop @CiberSheep
          last edited by 7 Jan 2021, 05:04

          @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
          • F Offline
            flohack @masterchop
            last edited by 7 Jan 2021, 09:53

            @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
            3 out of 4
            • First post
              3/4
              Last post