Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Selecting a specific camera when multiple 'lenses' are present
Forum Updated to NodeBB v4.3 + New Features

Selecting a specific camera when multiple 'lenses' are present

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 179 Views
  • 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.
  • D Offline
    D Offline
    DaveK 0
    wrote on last edited by DaveK 0
    #1

    For devices where there are multiple cameras on the same face (IE- an iPhone 12 has three rear-facing cameras: wide (0.5x), normal (1x), and telephoto (2.5x)) how can I select one of the cameras other than the default (1x)?

    const QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); Only returns two cameras on the iPhone (one front, one rear) even though there are really four (one front, three rear). When creating a QCamera from the QCameraInfo returned for the rear camera, by default instantiates using the 1x camera/lens.

    While the rear camera is selected QCameraFocus::zoomTo will increase the digital zoom of the camera, but changing the optical zoom has no effect. QCameraFocus::maximumOpticalZoom returns 1.0 for the rear camera as well.

    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