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. QML won't save camera settings
Forum Updated to NodeBB v4.3 + New Features

QML won't save camera settings

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 969 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.
  • P Offline
    P Offline
    Pixtar
    wrote on last edited by
    #1

    Hi all,

    I am using Qt5.2.1 (GCC 4.8, armeabi-v7a) at Windows8.1(x64) and a Samsung Galaxy S4 Mini with Android 4.2.2.

    I tried to compile the qml example "qdeclarative-camera" and it worked to start the app with the smartphone and save images.

    I tried also to modify the source to test some settings like changing exposuretime, iso, focus, contrast, etc.

    Whatever I tried to change - contrast, iso or saturation - nothing happened.

    [code]
    camera.imageProcessing.saturation = 1
    console.debug( camera.imageProcessing.saturation )
    camera.imageProcessing.contrast = 1
    console.debug( camera.imageProcessing.contrast )[/code]

    The output is 0 instead of 1.

    What states or status do the camera should have to save the settings? Does it need to be stopped? Does it need a special captureMode? Are the settings reset by the function searchAndLock? Is it a bug at Qt5.2.1? Is Samsung blocking such functions? Do I need special variables in the pro-file like MOBILITY or TARGET.CAPABILITY?

    It's very annoying, that I can't find any hint to solve the problem on my own.

    Any hint is appreciated.

    Greetings,
    Pixtar

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Soppe
      wrote on last edited by
      #2

      Bumping this as i have the same problem using Qt 5.6.0 on a RPi. Suposedly having something to do with not being able to access camera API?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pixtar
        wrote on last edited by
        #3

        Hi Soppe,

        I haven't found a solution via QML and/or Qt. The problem is causing (as I think) by Android itself, because Android is updating their OS so fast, that Qt devs cannot follow all the changes they made to the core nearly every month.

        My final solution was: Installing Android SDK and developing the app fully in Java.

        That wasn't my attention but I needed fully control over the Camera module and also over the Camera2 module.

        Regards,
        Pixtar

        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