Search

CN-122027890-A - Mode switching control method and related equipment

CN122027890ACN 122027890 ACN122027890 ACN 122027890ACN-122027890-A

Abstract

A mode switching control method and related equipment comprise the steps of acquiring an image of a target area by adopting an image acquisition device as a detection image when the image acquisition device is in a night mode of turning on a light supplementing lamp, conducting block processing on the detection image to acquire a plurality of first image blocks, conducting tone detection processing on the plurality of first image blocks in the detection image to acquire tone detection information of the detection image, acquiring differences between the tone detection information of the detection image and tone reference information, wherein the tone reference information is used for representing tone characteristics of the image of the target area in a night period, and switching the image acquisition device to a daytime mode of turning off the light supplementing lamp if the differences reach a tone evaluation threshold value. The technical scheme of the embodiment of the invention can improve the accuracy, reliability and robustness of the mode switching of the image acquisition equipment.

Inventors

  • DENG BIAO
  • WANG DONGJIAN
  • Wang linshui

Assignees

  • 晶晨芯半导体(成都)有限公司

Dates

Publication Date
20260512
Application Date
20260106

Claims (14)

  1. 1. A mode switching control method, characterized by comprising: Acquiring an image of a target area by adopting the image acquisition equipment as a detection image when the image acquisition equipment is in a night mode that a light supplementing lamp is turned on; the detection image is subjected to blocking processing, and a plurality of first image blocks are obtained; performing tone detection processing on the plurality of first image blocks in the detection image to obtain tone detection information of the detection image; acquiring a difference between tone detection information and tone reference information of the detection image, the tone reference information being used to characterize tone characteristics of the image of the target area during a night time period; and if the difference reaches a tone evaluation threshold, switching the image acquisition equipment to a daytime mode that the light supplementing lamp is turned off.
  2. 2. The mode switching control method according to claim 1, wherein the tone reference information is acquired by; Under the condition that the image acquisition equipment is in a night mode of turning on the light supplementing lamp in a night period, acquiring an image of the target area by adopting the image acquisition equipment to serve as a calibration image; The calibration image is subjected to blocking processing, and a plurality of second image blocks are obtained; and performing tone detection processing on the plurality of second image blocks in the calibration image to acquire tone detection information of the calibration image as the tone reference information.
  3. 3. The mode switching control method according to claim 2, wherein the tone detection process includes: Acquiring pixel values of pixel points in each image block in an image to be processed in a target color space, wherein the image to be processed is the detection image or the calibration image, and the image block is the first image block or the second image block; Calculating the chromaticity ratio of each image block in a target color space based on the pixel value of the pixel point in each image block in the target color space; and acquiring the chromaticity ratio of the image to be processed in the target color space based on the chromaticity ratio of the image blocks in the target color space, and taking the chromaticity ratio as the tone detection information or the tone reference information.
  4. 4. The mode switching control method according to claim 3, wherein the obtaining the chromaticity value of the image to be processed in the target color space based on the chromaticity values of the plurality of image blocks in the target color space includes: acquiring the weight of each image block; and calculating a weighted average of the chromaticity ratio values of the image blocks in the target color space according to the weight of each image block, and taking the weighted average as the chromaticity ratio value of the image to be processed in the target color space.
  5. 5. The mode switching control method according to claim 4, wherein the weight of the image block is inversely related to the brightness of the image block.
  6. 6. The mode switching control method according to any one of claims 1 to 5, wherein the tone evaluation threshold is positively correlated with a change in brightness of the detection image.
  7. 7. The mode switching control method according to claim 6, wherein the step of acquiring the tone evaluation threshold value includes: performing brightness detection processing on the plurality of first image blocks in the detection image to obtain brightness change information of the detection image; and adjusting a basic threshold according to the brightness change information of the detection image to obtain the tone evaluation threshold.
  8. 8. The mode switching control method according to claim 7, wherein the performing luminance detection processing on the plurality of first image blocks in the detection image to obtain luminance change information of the detection image includes: acquiring brightness values of pixel points in each first image block; acquiring the brightness of each first image block based on the brightness value of the pixel point in each first image block; Acquiring a brightness average value and a brightness variance based on the brightness of the plurality of first image blocks; And acquiring the ratio between the brightness variance and the brightness average value as brightness change information of the detection image.
  9. 9. The mode switching control method according to claim 7, wherein said adjusting a base threshold value according to the brightness change information of the detected image to obtain the tone evaluation threshold value includes: ; Wherein, the The color tone evaluation threshold value is represented, Representing the luminance variance of the detected image, Representing the brightness of the detected image, Representing the base threshold.
  10. 10. A mode switching control device, characterized by comprising: The detection image acquisition module is used for acquiring an image of a target area by adopting the image acquisition equipment as a detection image when the image acquisition equipment is in a night mode that the light supplementing lamp is turned on; The image blocking processing module is used for blocking the detection image to obtain a plurality of first image blocks; The tone detection processing module is used for carrying out tone detection processing on the plurality of first image blocks in the detection image to obtain tone detection information of the detection image; An information difference acquisition module for acquiring a difference between tone detection information of the detection image and tone reference information for characterizing tone characteristics of an image of the target area during a night period; and the mode switching control module is used for switching the image acquisition equipment to a daytime mode that the light supplementing lamp is turned off if the difference reaches the tone evaluation threshold value.
  11. 11. An image capturing apparatus comprising the mode switching control device according to claim 10.
  12. 12. A computer device comprising at least one memory and at least one processor, the memory storing one or more computer instructions, wherein the one or more computer instructions are executable by the processor to implement the mode switch control method of any of claims 1-9.
  13. 13. A computer program product comprising computer program/instructions which, when executed by a processor, is adapted to implement a mode switch control method as claimed in any one of claims 1 to 9.
  14. 14. A storage medium storing one or more computer instructions for implementing the mode switching control method according to any one of claims 1 to 9.

Description

Mode switching control method and related equipment Technical Field The embodiment of the invention relates to the field of data processing, in particular to a mode switching control method and related equipment. Background Video monitoring is performed by adopting image acquisition equipment (such as a video camera, a video camera and a video camera), namely real-time monitoring and recording are realized through image acquisition, transmission and processing, and the method is widely applied to the fields of public security, traffic management, home protection and the like. The image pickup apparatus is generally required to switch between a night mode in which the light supplement lamp is turned on and a daytime mode in which the light supplement lamp is not turned on when image pickup is performed. Then, the mode switching control scheme of the existing image acquisition device still needs to be improved in terms of accuracy, reliability and robustness. Disclosure of Invention The embodiment of the invention solves the problem of providing a mode switching control method and related equipment, which can improve the accuracy, reliability and robustness of the mode switching control of image acquisition equipment. In order to solve the above problems, an embodiment of the present invention provides a mode switching control method, including: Acquiring an image of a target area by adopting the image acquisition equipment as a detection image when the image acquisition equipment is in a night mode that a light supplementing lamp is turned on; the detection image is subjected to blocking processing, and a plurality of first image blocks are obtained; performing tone detection processing on the plurality of first image blocks in the detection image to obtain tone detection information of the detection image; acquiring a difference between tone detection information and tone reference information of the detection image, the tone reference information being used to characterize tone characteristics of the image of the target area during a night time period; and if the difference reaches a tone evaluation threshold, switching the image acquisition equipment to a daytime mode that the light supplementing lamp is turned off. Alternatively, the tone reference information is acquired by; Under the condition that the image acquisition equipment is in a night mode of turning on the light supplementing lamp in a night period, acquiring an image of the target area by adopting the image acquisition equipment to serve as a calibration image; The calibration image is subjected to blocking processing, and a plurality of second image blocks are obtained; and performing tone detection processing on the plurality of second image blocks in the calibration image to acquire tone detection information of the calibration image as the tone reference information. The tone detection process includes: Acquiring pixel values of pixel points in each image block in an image to be processed in a target color space, wherein the image to be processed is the detection image or the calibration image, and the image block is the first image block or the second image block; Calculating the chromaticity ratio of each image block in a target color space based on the pixel value of the pixel point in each image block in the target color space; and acquiring the chromaticity ratio of the image to be processed in the target color space based on the chromaticity ratio of the image blocks in the target color space, and taking the chromaticity ratio as the tone detection information or the tone reference information. Optionally, the acquiring the chromaticity ratio of the image to be processed in the target color space based on the chromaticity ratio of the image blocks in the target color space includes: acquiring the weight of each image block; and calculating a weighted average of the chromaticity ratio values of the image blocks in the target color space according to the weight of each image block, and taking the weighted average as the chromaticity ratio value of the image to be processed in the target color space. Optionally, the weight of the image block is inversely related to the brightness of the image block. Optionally, the tone evaluation threshold is positively correlated with a brightness change of the detected image. Optionally, the step of obtaining the tone evaluation threshold includes: performing brightness detection processing on the plurality of first image blocks in the detection image to obtain brightness change information of the detection image; and adjusting a basic threshold according to the brightness change information of the detection image to obtain the tone evaluation threshold. Optionally, the step of obtaining the tone evaluation threshold includes: performing brightness detection processing on the plurality of first image blocks in the detection image to obtain brightness change information of the detection image; and a