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. colorFilter not working[Unsolved], how use camera flash on android?[Solved]

colorFilter not working[Unsolved], how use camera flash on android?[Solved]

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 1.2k 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.
  • aqamorisnyA Offline
    aqamorisnyA Offline
    aqamorisny
    wrote on last edited by aqamorisny
    #1

    i try to add some Button to Qt 5.7 example, declarative-camera . . .
    http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html

    CameraButton {
                    text: "Negative"
                    onClicked: captureControls.camera.imageProcessing.setColorFilter(CameraImageProcessing.ColorFilterNegative)
                }
    
                CameraButton {
                    text: "Tungsten"
                    onClicked: captureControls.camera.imageProcessing.setWhiteBalanceMode(CameraImageProcessing.WhiteBalanceTungsten)
                }
                CameraButton {
                    text: "contrast"
                    onClicked: captureControls.camera.imageProcessing.setContrast(1.0)
                }
    
    • "Tungsten" Button work but "contrast" and "Negative" not working. how i can fix it?

    • declarative camera example has flash image included below but this example not use camera flash, why?

    multimedia/declarative-camera/images/
    

    alt text
    alt text
    alt text

    G 1 Reply Last reply
    0
    • aqamorisnyA aqamorisny

      i try to add some Button to Qt 5.7 example, declarative-camera . . .
      http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html

      CameraButton {
                      text: "Negative"
                      onClicked: captureControls.camera.imageProcessing.setColorFilter(CameraImageProcessing.ColorFilterNegative)
                  }
      
                  CameraButton {
                      text: "Tungsten"
                      onClicked: captureControls.camera.imageProcessing.setWhiteBalanceMode(CameraImageProcessing.WhiteBalanceTungsten)
                  }
                  CameraButton {
                      text: "contrast"
                      onClicked: captureControls.camera.imageProcessing.setContrast(1.0)
                  }
      
      • "Tungsten" Button work but "contrast" and "Negative" not working. how i can fix it?

      • declarative camera example has flash image included below but this example not use camera flash, why?

      multimedia/declarative-camera/images/
      

      alt text
      alt text
      alt text

      G Offline
      G Offline
      galaxyHu
      wrote on last edited by
      #2

      @aqamorisny
      not use camera flash? what is your meanings? Did you set the camera mode in your code. turn on flash should use "camera.flash.mode = Camera.FlashVideoLight"

      aqamorisnyA 1 Reply Last reply
      0
      • aqamorisnyA Offline
        aqamorisnyA Offline
        aqamorisny
        wrote on last edited by
        #3

        @galaxyHu

        many thanks for your reply

        turn on flash should use "camera.flash.mode = Camera.FlashVideoLight"
        

        i test it , works! and now i can turn on and off flash.

        not use camera flash? what is your meanings?
        

        alt text
        my mean: preview of the example has flash button But you can't find any line of code that included "flash" word in this example :
        http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html

        when you run the example on android phone have flash you can't see flash button!

        Did you set the camera mode in your code.
        

        i run Qt Example and only edit this file, how to setup?
        http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-photocapturecontrols-qml.html

        G 1 Reply Last reply
        0
        • G galaxyHu

          @aqamorisny
          not use camera flash? what is your meanings? Did you set the camera mode in your code. turn on flash should use "camera.flash.mode = Camera.FlashVideoLight"

          aqamorisnyA Offline
          aqamorisnyA Offline
          aqamorisny
          wrote on last edited by
          #4

          @galaxyHu

          how i can set color filter, i want to use filters in my application:
          https://github.com/aqamorisny/scanqt/

          1 Reply Last reply
          0
          • aqamorisnyA aqamorisny

            @galaxyHu

            many thanks for your reply

            turn on flash should use "camera.flash.mode = Camera.FlashVideoLight"
            

            i test it , works! and now i can turn on and off flash.

            not use camera flash? what is your meanings?
            

            alt text
            my mean: preview of the example has flash button But you can't find any line of code that included "flash" word in this example :
            http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html

            when you run the example on android phone have flash you can't see flash button!

            Did you set the camera mode in your code.
            

            i run Qt Example and only edit this file, how to setup?
            http://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-photocapturecontrols-qml.html

            G Offline
            G Offline
            galaxyHu
            wrote on last edited by
            #5

            @aqamorisny
            this example did not use the flash.

            1 Reply Last reply
            1

            • Login

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