Abstract: A method for automatic gain adjustment based on illuminance of video content and a camera are provided. The method includes arranging a first gain value for an image sensor according to a list of preset gain values; obtaining frequency domain data using frequency domain transformation on illuminance components of the image; setting a constant percentage value and summing up the percentage of the frequency domain data accumulated from the highest signal amplitude to obtain a first high frequency information cumulative value; repeating above steps according to a preset gain value arrangement order to obtain a number of high frequency information cumulative values; and using the gain value corresponding to a maximum high frequency information cumulative value in gain adjustment for the image sensor.
Abstract: The present invention provides a method, an apparatus, and a system for processing object-based video files. The method is applied to a camera or a camera cluster. When the moving object enters a monitoring area of the camera or the camera cluster, the camera or the camera cluster starts to capture videos containing the moving object; color block information of the moving object according to a preset first algorithm is recorded by the camera or the camera cluster; the moving object is identified and marked according to the color block information of the moving object by the camera or the camera cluster; and a video file is generated by merging videos containing a specific moving object which are captured in a preset period of time and is uploaded to a storage space by the camera or the camera cluster.