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. Adding Flash to the Camera example
Forum Updated to NodeBB v4.3 + New Features

Adding Flash to the Camera example

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 509 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.
  • T Offline
    T Offline
    tech.hi
    wrote on last edited by
    #1

    I am using Qt creator 4.8.2, on Debian buster.

    I want to add flash to the existing camera example. Is there any method to add it ? If there is, how to do it ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arsinte_andrei
      wrote on last edited by
      #2

      When you say that you want to add flash .... what are you referring to??

      • Do you want to make screen flashing?? (screen going completely white)

      • Do you have an external flash device that you want to control??
        How is this flash connected?? what protocol does it use? is a device based on a microcontroller that you have access to reprogram??

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tech.hi
        wrote on last edited by
        #3

        I have camera with flash. So i would like to turn on the flash while capturing an image or recording a video.
        It is i2c based
        I found "QCameraExposure::FlashOn 0x4 Flash is On." in the docs but how do you use it?
        How to add it to the Qt camera example is my question.

        A jsulmJ 2 Replies Last reply
        0
        • T tech.hi

          I have camera with flash. So i would like to turn on the flash while capturing an image or recording a video.
          It is i2c based
          I found "QCameraExposure::FlashOn 0x4 Flash is On." in the docs but how do you use it?
          How to add it to the Qt camera example is my question.

          A Offline
          A Offline
          arsinte_andrei
          wrote on last edited by
          #4

          @tech.hi
          what camera you have (make and model)
          you have to know the flash_on bit and to turn it on via i2c
          you will need an i2c lib that is able to access the camera -via - how do you connect the camera to your device??
          give more detail about the hardware that you are using and about your OS

          1 Reply Last reply
          0
          • T tech.hi

            I have camera with flash. So i would like to turn on the flash while capturing an image or recording a video.
            It is i2c based
            I found "QCameraExposure::FlashOn 0x4 Flash is On." in the docs but how do you use it?
            How to add it to the Qt camera example is my question.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @tech.hi said in Adding Flash to the Camera example:

            How to add it to the Qt camera example is my question.

            Use https://doc.qt.io/qt-5/qcamera.html#exposure to get the exposure object and set that flag on it https://doc.qt.io/qt-5/qcameraexposure.html#flashMode-prop

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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