Light supplement control method and device, camera equipment and storage medium

By adjusting the light output direction of the fill light, the brightness area is located outside the area of ​​interest, the impact of the fill light at night on the reading of the camera equipment is solved, and normal monitoring of the reading area is achieved.

CN120017950APending Publication Date: 2025-05-16ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311542086.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art cannot effectively eliminate the impact of night fill lights on camera equipment readings, especially the problems of fill light highlights and rainbow stripes.

Method used

By obtaining the pending image of the area of ​​interest of the target device, determine whether there is a brightness area (including fill light highlights and rainbow stripes), and adjust the light exit direction of the fill light so that the brightness area is outside the area of ​​interest when the brightness area is in the area of ​​interest.

Benefits of technology

It effectively avoids the impact of fill light highlights and rainbow stripes on the reading of the camera equipment, ensuring normal monitoring of the reading area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017950A_ABST
    Figure CN120017950A_ABST
Patent Text Reader

Abstract

The invention provides a light supplement control method and device, camera equipment and a storage medium, and relates to the technical field of image.The method comprises the steps that a to-be-processed image is acquired, and the to-be-processed image comprises a region of interest of target equipment; determining whether the to-be-processed image comprises a brightness area or not; the brightness area comprises light supplementing bright spots and / or stripes generated after the target equipment is subjected to light supplementing through a light supplementing lamp; the brightness value of the brightness area is greater than a preset brightness value; and when the to-be-processed image comprises a brightness region and the brightness region is located in the region of interest, adjusting the light emitting direction of the light supplementing lamp so as to enable the brightness region to be located outside the region of interest. According to the invention, both the light supplementing bright spots and the rainbow stripes are located outside the region of interest, so that the normal monitoring of the camera device on the reading of the reading region is not influenced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image technology, and in particular to a fill light control method, device, camera equipment and storage medium. Background Art

[0002] With the vigorous development of information technology, new demands have been put forward for the intelligence of equipment in various industries. For example, the application of meter readers for digital recording and abnormal monitoring of electric meters and other equipment in the power industry is becoming more and more common. Among them, meter readers are usually video cameras. Since the windows of equipment such as electric meters usually have glass or injection-molded optical plastics, in order to avoid the reflection of the window causing the image taken by the camera to be unclear, a polarizing film is usually attached to the window. The polarizing film solves the problem of unclear images caused by reflection, but it also introduces other problems. That is, when the fill light is turned on at night, fill light bright spots or rainbow stripes appear in the image. In order to prevent the fill light bright spots or rainbow stripes from affecting the reading, the fill light bright spots or rainbow stripes need to be processed.

[0003] In the related art, the reflected light is usually converted into light of uniform wavelength through coating method to reduce unnecessary reflection, thereby reducing the generation of rainbow fringes and reducing the impact of rainbow fringes on the reading of the camera equipment.

[0004] However, the above-mentioned related technologies can only reduce the generation of rainbow stripes, but cannot eliminate the influence of the fill light on the reading of the camera equipment. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a fill light control method, device, camera equipment and storage medium.

[0006] The present invention provides a fill light control method, comprising:

[0007] Acquire an image to be processed, wherein the image to be processed includes a region of interest of a target device;

[0008] Determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0009] When the image to be processed includes a brightness area and the brightness area is located in the region of interest, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the region of interest.

[0010] According to a fill light control method provided by the present invention, the step of adjusting the light emission direction of the fill light so that the brightness area is located outside the area of ​​interest includes:

[0011] The light emitting direction of the fill light is adjusted by a driving module based on a preset angle corresponding to a preset direction; the preset direction includes a horizontal direction and / or a vertical direction;

[0012] When the new brightness area generated after the light emitting direction is adjusted is located in the area of ​​interest, return to the step of adjusting the light emitting direction of the fill light based on a preset angle corresponding to the preset direction through the driving module until the new brightness area generated after the light emitting direction is adjusted is outside the area of ​​interest.

[0013] According to a fill light control method provided by the present invention, the step of determining whether the image to be processed includes a brightness area comprises:

[0014] Dividing the image to be processed into at least two image regions;

[0015] Determining a target brightness value for each of the image regions;

[0016] In the case that there is a target brightness value greater than the preset brightness value, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes the brightness area.

[0017] According to a fill light control method provided by the present invention, the step of determining a target brightness value of each image area includes:

[0018] When the fill light is turned on, determining a first brightness value of each of the image areas;

[0019] When the fill light is turned off, determining a second brightness value of each of the image areas;

[0020] For each of the image regions, a difference between the first brightness value and the second brightness value of the image region is determined as a target brightness value of the image region.

[0021] According to a fill light control method provided by the present invention, the preset angle is determined based on the focal length of the lens, the object distance, the distance between a first position on the fill light and a second position on the light board where the fill light is located, and the distance between corresponding positions in two adjacent image areas, and the image area is obtained by dividing the image to be processed.

[0022] According to a fill light control method provided by the present invention, the method further includes:

[0023] When the brightness area is outside the area of ​​interest, it is prohibited to adjust the light emitting direction of the fill light.

[0024] The present invention also provides a fill light control device, comprising:

[0025] An acquisition unit, used for acquiring an image to be processed, wherein the image to be processed includes a region of interest of a target device;

[0026] A determination unit, configured to determine whether the image to be processed includes a brightness region; the brightness region includes fill light highlights and / or stripes generated after the target device is fill-illuminated by a fill light; and the brightness value of the brightness region is greater than a preset brightness value;

[0027] The first adjustment unit is used to adjust the light emitting direction of the fill light so that the brightness area is located outside the region of interest when the image to be processed includes a brightness area and the brightness area is located in the region of interest.

[0028] The present invention also provides a camera device, comprising a housing, a camera head, a light board, a fill light, and a driving module, wherein the camera head, the light board, the fill light, and the driving module are all arranged in the housing, the fill light is arranged on the light board, and the driving module is connected to the light board;

[0029] The camera is used to obtain an image to be processed, wherein the image to be processed includes an area of ​​interest of a target device;

[0030] The camera is further used to determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by the fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0031] The camera is also used to control the driving module to adjust the light emission direction of the fill light through the light board when the image to be processed includes a brightness area and the brightness area is located in the area of ​​interest, so that the brightness area is located outside the area of ​​interest.

[0032] The present invention also provides a camera device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the fill light control methods described above is implemented.

[0033] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fill light control method as described above is implemented.

[0034] The present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned fill light control methods.

[0035] The fill light control method, device, camera device and storage medium provided by the present invention obtain an image to be processed including an area of ​​interest of a target device, determine whether the image to be processed includes a brightness area, that is, whether it includes fill light highlights or rainbow stripes generated by fill light on the target device, and when the image to be processed includes the brightness area and the brightness area is located in the area of ​​interest, adjust the light emission direction of the fill light so that the brightness area is located outside the area of ​​interest. In this way, both the fill light highlights and the rainbow stripes are located outside the area of ​​interest, so as not to affect the normal monitoring of the reading of the reading area by the camera device. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 It is a schematic diagram of the installation of the camera device and the device provided by the embodiment of the present invention;

[0038] Figure 2 is one of the schematic diagrams of the device provided by the embodiment of the present invention;

[0039] Figure 3 This is the second schematic diagram of the device provided by the embodiment of the present invention;

[0040] Figure 4 This is one of the flow charts of the fill light control method provided by an embodiment of the present invention;

[0041] Figure 5 This is a second flow chart of the fill light control method provided by an embodiment of the present invention;

[0042] Figure 6 is a schematic structural diagram of a fill light panel adjustment device provided in an embodiment of the present invention;

[0043] Figure 7 is a rotation schematic diagram of the fill light panel adjustment device provided by an embodiment of the present invention;

[0044] Figure 8 is a schematic diagram of the first motor controlling the fill light board to move along the X-axis direction before and after provided by an embodiment of the present invention;

[0045] Fig. 9 This is a third flow chart of the fill light control method provided by an embodiment of the present invention;

[0046] Fig.10is a schematic diagram of an image region obtained by dividing an image to be processed provided by an embodiment of the present invention;

[0047] Fig.11 is a schematic diagram of similar triangles provided by an embodiment of the present invention;

[0048] Fig.12 This is a fourth flow chart of the fill light control method provided by an embodiment of the present invention;

[0049] Fig.13 is a structural schematic diagram of a fill light control device provided by an embodiment of the present invention;

[0050] Fig.14 It is a schematic diagram of the physical structure of the camera device provided by the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] At present, the installation distance between the camera equipment and the electric meter and other equipment is usually close. Figure 1 Schematic diagram of the installation of the camera device and the device provided by the embodiment of the present invention, such as Figure 1 As shown, the installation distance between the camera device 101 and the device 102 is relatively close. In order to prevent the reflection of the environment during the day and the reflection of the fill light at night, which may cause unclear images, the windows of devices such as electric meters are usually made of glass or injection-molded optical plastics. In order to prevent the reflection of the window from causing unclear images taken by the camera device, a polarizing film is usually attached to the window, and the polarization directions of the lens window and the fill light window are orthogonal. Although this solution can solve the problem of unclear images caused by reflections of devices such as electric meters, it also introduces other problems: 1) For windows made of dark materials, compared with windows made of transparent materials, when the fill light is turned on at night, the transmittance of the incident light is reduced and the reflected light is enhanced, so that a bright spot of the fill light appears in the image, that is, the image formed by the fill light. If the bright spot of the fill light is located in the window area, the numbers in the window cannot be seen clearly. Figure 2 It is one of the schematic diagrams of the device provided by the embodiment of the present invention, and a fill light spot 201 is generated on the device. 2) Rainbow stripes, also called stress stripes, when polarized light passes through a transparent sample (such as a display panel of a computer), the stress of the sample causes it to have a birefringence effect. When observing through a polarizing film, rainbow stripes of the sample can be found. Generally, rainbow stripes appear in the brightest part of the picture; that is, when the fill light is turned on at night, fill light spots or rainbow stripes appear on the image screen. Figure 3 This is the second schematic diagram of the device provided by the embodiment of the present invention, on which rainbow stripes 301 are generated. In order to prevent the fill light or rainbow stripes from affecting the reading, the fill light or rainbow stripes need to be processed.

[0053] Based on this, the present invention provides a fill light control method, which obtains an image to be processed including an area of ​​interest of a target device, determines whether the image to be processed includes a brightness area, that is, whether it includes fill light highlights or rainbow stripes generated after the target device is filled with light by a fill light, and when the image to be processed includes the brightness area and the brightness area is located in the area of ​​interest, adjusts the light emission direction of the fill light so that the brightness area is located outside the area of ​​interest. In this way, both the fill light highlights and the rainbow stripes are located outside the area of ​​interest, so as not to affect the normal monitoring of the reading of the reading area by the camera device.

[0054] Combine the following Figure 4-Figure 12 The fill light control method of the present invention is described. The execution subject of the fill light control method can be a camera device, or a fill light control device arranged in the camera device, and the fill light control device can be implemented by software, hardware or a combination of the two.

[0055] Figure 4 FIG. 1 is a flow chart of a fill light control method provided by an embodiment of the present invention. Figure 4 As shown, the fill light control method includes the following steps:

[0056] Step 401: Acquire an image to be processed, where the image to be processed includes a region of interest of a target device.

[0057] Among them, the area of ​​interest can be a reading area or other areas that need attention. The target device including the area of ​​interest can be an electric meter or other instrument that needs to be read. Usually, the camera equipment is installed at a preset distance from the target device. The preset distance can be set based on demand, for example, the preset distance is 10 cm or 20 cm.

[0058] For example, the camera device can capture the image to be processed including the area of ​​interest of the target device in real time, or it can capture the image to be processed including the area of ​​interest of the target device when receiving a capture instruction from the user, or it can capture the image to be processed including the area of ​​interest of the target device based on a preset period.

[0059] Step 402, determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value.

[0060] The stripes may be rainbow stripes, and the preset brightness value may be set based on the brightness of the fill light highlight and / or the brightness of the stripes.

[0061] For example, when an image to be processed including an area of ​​interest of a target device is acquired, the brightness value of each pixel in the image to be processed is analyzed to determine whether there are pixels in the image to be processed whose brightness values ​​are greater than a preset brightness value. When it is determined that there are pixels in the image to be processed whose brightness values ​​are greater than the preset brightness value, based on the pixels whose brightness values ​​are greater than the preset brightness value, it is determined whether the image to be processed includes an area composed of pixels whose brightness values ​​are greater than the preset brightness value. When it is determined that the image to be processed includes an area composed of pixels whose brightness values ​​are greater than the preset brightness value, it is determined that the image to be processed includes a brightness area. When it is determined that the image to be processed does not include an area composed of pixels whose brightness values ​​are greater than the preset brightness value, it is determined that the image to be processed does not include a brightness area.

[0062] Step 403: When the image to be processed includes a brightness area and the brightness area is located in the region of interest, adjust the light emitting direction of the fill light so that the brightness area is located outside the region of interest.

[0063] For example, when it is determined that the image to be processed includes a brightness area, the area of ​​interest of the target device in the image to be processed is extracted, and based on the position information corresponding to the brightness area and the position information of the area of ​​interest, it is determined whether the brightness area is located in the area of ​​interest. When it is determined that the brightness area is outside the area of ​​interest, since the fill light spots and / or stripes in the brightness area do not affect the data displayed in the area of ​​interest, the light emitting direction of the fill light does not need to be adjusted; when it is determined that the brightness area is located in the area of ​​interest, since the fill light spots and / or stripes will cause the data displayed in the area of ​​interest to be blurred or covered, it is necessary to adjust the light emitting direction of the fill light so that the light emitting direction of the fill light is facing other areas on the target device except the area of ​​interest. In this way, the fill light spots and / or stripes generated after the fill light fills the target device are located outside the area of ​​interest, thereby not affecting the normal monitoring of the digital data in the area of ​​interest by the camera device.

[0064] The fill light control method provided by the present invention obtains an image to be processed including an area of ​​interest of a target device, determines whether the image to be processed includes a brightness area, that is, whether it includes fill light highlights or rainbow stripes generated after the target device is filled with light by a fill light, and when the image to be processed includes the brightness area and the brightness area is located in the area of ​​interest, adjusts the light emission direction of the fill light so that the brightness area is located outside the area of ​​interest. In this way, both the fill light highlights and the rainbow stripes are located outside the area of ​​interest, so as not to affect the normal monitoring of the reading of the reading area by the camera device.

[0065] In one embodiment, Figure 5 FIG. 2 is a flow chart of the fill light control method provided by an embodiment of the present invention. Figure 5 As shown, in the above step 403, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the area of ​​interest, which can be specifically achieved by the following steps:

[0066] Step 4031: adjusting the light emitting direction of the fill light based on a preset angle corresponding to a preset direction through a driving module; the preset direction includes a horizontal direction and / or a vertical direction.

[0067] Among them, the camera device can be connected to the fill light board adjustment device, which includes a driving module, a transmission component and a fill light board provided with a fill light, and the driving module is connected to the fill light board through the transmission component; the fill light board adjustment device can be a part of the camera device or a separate device. When the preset direction includes the horizontal direction, the driving module can be a motor including an output shaft, and when the motor rotates, the output shaft of the motor needs to ensure that the fill light board can move horizontally through the transmission component; when the preset direction includes the vertical direction, the driving module can also be a motor including an output shaft, and when the motor rotates, the output shaft of the motor needs to ensure that the fill light board can move vertically through the transmission component; Figure 6 is a schematic diagram of the structure of the fill light board adjustment device provided by an embodiment of the present invention, such as Figure 6 As shown, when the preset direction includes the horizontal direction and the vertical direction, the driving module includes a first motor 601 and a second motor 602. When the first motor 601 is rotating, the output shaft of the first motor 601 needs to ensure that the fill light board 603 can move horizontally through the transmission component, thereby enabling the fill light 604 to move horizontally; when the second motor 602 is rotating, the output shaft of the second motor 602 needs to ensure that the fill light board 603 can move vertically through the transmission component, thereby enabling the fill light 604 to move vertically.

[0068] Figure 7 FIG. 1 is a rotation diagram of the fill light panel adjustment device provided by an embodiment of the present invention. Figure 7 As shown, the driving module includes a first motor and a second motor. The first motor controls the fill light board to move along the X-axis direction, and the second motor controls the fill light board to move along the Y-axis direction. Taking the first motor controlling the fill light board to move along the X-axis direction as an example, Figure 8 is a schematic diagram of the first motor controlling the fill light board to move along the X-axis direction before and after the embodiment of the present invention, such as Figure 8 As shown, the first motor rotates based on the preset angle θx, so that the fill light moves from point B to point C. The second position point O on the fill light board is taken as the reference point. Since the reference point and the fill light are both located on the fill light board, no matter how the fill light board moves, the distance X between the reference point and the fill light remains unchanged before and after the fill light board moves. Therefore, it can be concluded that Among them, Δx represents the horizontal distance between the positions of the fill light before and after it moves, that is, Δx represents the distance from point D to point C, point D is the vertical point of the line from point B to point O and point C, the second position can be the center point of the edge of the fill light board or any point, then X is the distance from point O to point B or the distance from point O to point C. Similarly, Among them, θy is the rotation angle of the second motor, Y is the distance between the second position on the fill light board and the fill light, Δx represents the vertical distance between the positions of the fill light before and after movement, and the second position here can be the center position of the side where the fill light board is connected to the transmission component, etc.

[0069] For example, when it is determined that the image to be processed includes fill light spots and / or stripes, and that the fill light spots and / or stripes are located in the area of ​​interest, the processor of the camera device sends an adjustment instruction to the driving module, and the adjustment instruction includes a preset direction and a preset angle of rotation of the driving module, so that when the driving module receives the adjustment instruction, it responds to the adjustment instruction, controls the motor to rotate based on a preset angle corresponding to the preset direction, and drives the fill light board to move along the preset direction through the transmission of the transmission component, thereby changing the position of the fill light on the fill light board relative to the target device, that is, adjusting the light emission direction of the fill light.

[0070] Step 4032, when the new brightness area generated after the light emitting direction is adjusted is located in the said area of ​​interest, return to the step of adjusting the light emitting direction of the fill light based on the preset angle corresponding to the preset direction through the driving module until the new brightness area generated after the light emitting direction is adjusted is located outside the said area of ​​interest.

[0071] For example, after the light emitting direction of the fill light is adjusted based on a preset angle corresponding to a preset direction through the driving module, if a new brightness area generated after the light emitting direction is adjusted is outside the area of ​​interest of the target device, the control of the driving module is stopped, that is, the adjustment of the light emitting direction of the fill light is stopped; if the new brightness area generated after the light emitting direction is adjusted is within the area of ​​interest of the target device, the step of adjusting the light emitting direction of the fill light based on the preset angle corresponding to the preset direction through the driving module is continued until the new brightness area generated after the light emitting direction is adjusted is outside the area of ​​interest of the target device, so as to ensure that the generated new brightness area does not affect the digital monitoring of the area of ​​interest by the camera device.

[0072] In this embodiment, the driving module continuously adjusts the light emitting direction of the fill light based on a preset angle corresponding to a preset direction until a new brightness area generated after the light emitting direction is adjusted is located outside the area of ​​interest, so as to ensure that the newly generated brightness area does not affect the digital monitoring of the area of ​​interest by the camera equipment. That is, the present invention converts the moving distance of the brightness area into the angle that the fill light board adjustment device needs to adjust, thereby realizing automatic adjustment of the light emitting direction of the fill light, and further improving the accuracy of the digital reading of the area of ​​interest by the camera equipment.

[0073] In one embodiment, Fig. 9 FIG. 3 is a flow chart of the fill light control method provided by an embodiment of the present invention. Fig. 9 As shown, the above step 402 determines whether the image to be processed includes a brightness area, which can be specifically achieved by the following steps:

[0074] Step 4021: Divide the image to be processed into at least two image areas.

[0075] For example, the image to be processed is divided into at least two image areas based on the underlying logic of the image sensor, and the size of each image area is the same.

[0076] Step 4022: Determine the target brightness value of each image area.

[0077] For example, when all image regions corresponding to the image to be processed are obtained, the target brightness value of each image region is counted based on automatic exposure (AutoExposure, AE).

[0078] Step 4023: When there is a target brightness value greater than the preset brightness value, determine that the image area corresponding to the target brightness value greater than the preset brightness value includes the brightness area.

[0079] For example, when the target brightness value of each image area is statistically obtained, each target brightness value is compared with the preset brightness value to determine whether there is a target brightness value greater than the preset brightness value among all the target brightness values. When it is determined that there is a target brightness value greater than the preset brightness value among all the target brightness values, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes a brightness area, that is, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes fill light bright spots and / or stripes; when it is determined that there is no target brightness value greater than the preset brightness value among all the target brightness values, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value does not include a brightness area, that is, it does not include fill light bright spots and / or stripes.

[0080] Fig.10 is a schematic diagram of an image region obtained by dividing an image to be processed according to an embodiment of the present invention, such as Fig.10 As shown, the image to be processed can be divided into 8*8 image areas. With the black circle as the origin, a rectangular coordinate system is established to divide the image to be processed into four quadrants. The corresponding coordinates are marked in each image area. It can be seen that the image area corresponding to the coordinate (1,1) is located in the first quadrant, the image area corresponding to the coordinate (-1,1) is located in the second quadrant, the image area corresponding to the coordinate (-1,-1) is located in the third quadrant, and the image area corresponding to the coordinate (1,-1) is located in the fourth quadrant. The image area corresponding to the coordinate (1,1), the image area corresponding to the coordinate (-1,1), the image area corresponding to the coordinate (-1,-1) and the image area corresponding to the coordinate (1,-1) constitute the central area. The region of interest is taken as the central area. If the brightness area is the image area corresponding to the coordinate (1,1) in the first quadrant, it means that the brightness area is located in the region of interest. The light emitting direction of the fill light can be adjusted so that the new brightness area generated by the adjusted light emitting direction of the fill light is located in the image area corresponding to the coordinate (2,2) in the first quadrant, so that the brightness area is located outside the region of interest.

[0081] In addition, based on the established rectangular coordinate system, when the above-mentioned preset direction includes the horizontal direction and the vertical direction, the first motor and the second motor can be controlled to rotate at the same time, so that the new brightness area generated by the fill light moves outward from the diagonal direction of the same quadrant. For example, the image area corresponding to the coordinate (1,1) is the brightness area, and the new brightness area generated by the adjusted light emitting direction of the fill light moves from the coordinate (1,1) to the coordinate (2,2); when the above-mentioned preset direction includes the horizontal direction, the first motor can be controlled to rotate, so that the new brightness area generated by the fill light moves from the same quadrant to the diagonal direction. Move outward in the horizontal direction, for example, the image area corresponding to the coordinate (1,1) is the brightness area, then the new brightness area generated by the adjusted light emitting direction of the fill light moves from the coordinate (1,1) to the coordinate (2,1); when the above-mentioned preset direction includes the vertical direction, the second motor can be controlled to rotate so that the new brightness area generated by the fill light moves outward from the vertical direction of the same quadrant, for example, the image area corresponding to the coordinate (1,1) is the brightness area, then the new brightness area generated by the adjusted light emitting direction of the fill light moves from the coordinate (1,1) to the coordinate (1,2).

[0082] It should be noted that, taking the example of dividing the image to be processed into two image areas, the image to be processed can be divided into two image areas of equal size along the width direction, or the image to be processed can be divided into two image areas of equal size along the height direction; taking the two image areas divided along the width direction as an example, the two image areas are the first image area and the second image area from left to right, respectively. If the area where the area of ​​interest is located is the first image area, and the brightness area is located within the area of ​​interest, the first motor is controlled to rotate, or the first motor and the second motor are controlled to rotate at the same time, so that the new brightness area generated by the fill light moves from the first image area to the second image area.

[0083] In this embodiment, the image to be processed is divided into at least two image areas, and the target brightness value of each image area is counted. When there is a target brightness value greater than a preset brightness value, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes the brightness area, thereby achieving accurate determination of the brightness area.

[0084] In one embodiment, the above step 4022 determines the target brightness value of each image area, which can be implemented in the following way:

[0085] When the fill light is turned on, the first brightness value of each of the image areas is determined; when the fill light is turned off, the second brightness value of each of the image areas is determined; for each of the image areas, the difference between the first brightness value and the second brightness value of the image area is determined as the target brightness value of the image area.

[0086] For example, in order to eliminate the influence of external ambient light (for example, light from street lamps) on the brightness of the image area, the brightness value of each image area is counted separately at night when the fill light is turned on and when the fill light is turned on. That is, when the fill light is turned on, the first brightness value of each image area is counted, and when the fill light is turned off, the second brightness value of each image area is counted. Then, for each image area, the first brightness value and the second brightness value of the image area are subtracted, and the difference obtained by the subtraction is determined as the actual target brightness value of the image area.

[0087] In this embodiment, at night, when the fill light is turned on and off, the brightness value of each image area is counted separately, and the two brightness values ​​corresponding to the image area are subtracted, and the difference obtained by the subtraction is determined as the actual brightness value of the image area, thereby avoiding the influence of external ambient light on the brightness of the image area and improving the accuracy of determining the brightness value of the image area.

[0088] In one embodiment, the preset angle is determined based on the focal length of the lens, the object distance, the distance between a first position on the fill light and a second position on the light board where the fill light is located, and the distance between corresponding positions in two adjacent image areas, and the image area is obtained by dividing the image to be processed.

[0089] For example, assuming that the pixel size of the image sensor in the camera device is a micrometer (μm), the width of the image to be processed is H, the height is V, the total number of pixels in the width direction is b, and the total number of pixels in the height direction is c. If the image to be processed is divided into multiple image regions based on n*n, the distance required to move from one image region to another adjacent image region in the width direction is The distance required to move from one image area to another adjacent image area in the height direction is Fig.11 is a schematic diagram of similar triangles provided by an embodiment of the present invention, such as Fig.11 As shown, according to the principle of similar triangles, we can get Combined with the above and Finally, the formula (1) corresponding to the preset angle θx in the width direction and the formula (2) corresponding to the preset angle θy in the height direction can be obtained. The width direction is the horizontal direction, and the height direction is the vertical direction.

[0090]

[0091]

[0092] Among them, f represents the focal length of the lens in the camera device, and v2 represents the object distance after the back focus changes.

[0093] The object distance v2 after the back focus change can be determined based on the following method: since the fill light bright spots and / or stripes are caused by the fill light incident on the surface of the area of ​​interest and then reflected to the lens and presented in the image, but since the camera device can achieve automatic focusing through a voice coil motor (VCM), the current distance from the camera device to the target device can be calculated based on the factory records of the camera device and the back focus change of the target device when it is automatically focused. Specifically, formula (6) can be obtained based on the following formulas (3) to (5):

[0094] 1 / f=1 / v1+1 / s1 (3)

[0095] 1 / f=1 / v2+1 / s2 (4)

[0096] s2=s1+a (5)

[0097] v2=1 / {1 / f-[f*v1 / (v1-f)+a]} (6)

[0098] Wherein, f is the focal length of the lens, v1 is the object distance when the camera device leaves the factory, s1 is the image distance when the camera device leaves the factory, v2 is the object distance after the back focus changes, that is, the current distance from the camera device to the target device, s2 is the image distance after the back focus changes, and a is the back focus change for refocusing the target device.

[0099] It should be noted that the above-mentioned preset angle can be adjusted based on the maximum adjustable angle of the driving module and the number of image regions into which the image to be processed is divided, and the present invention does not limit this.

[0100] In this embodiment, the preset angle corresponding to the horizontal direction and the preset angle corresponding to the vertical direction are determined based on the focal length of the lens, the object distance, the distance between the first position on the fill light and the second position on the light board where the fill light is located, and the distance between the corresponding positions in two adjacent image areas, so as to facilitate the subsequent adjustment of the light output direction of the fill light based on the preset angles.

[0101] In one embodiment, Fig.12 FIG. 4 is a flow chart of the fill light control method provided by an embodiment of the present invention. Fig.12 As shown, the fill light control method also includes the following steps:

[0102] Step 404: When the brightness area is outside the area of ​​interest, it is prohibited to adjust the light emitting direction of the fill light.

[0103] For example, when it is determined that the brightness area is outside the area of ​​interest, since the fill light bright spots and / or stripes in the brightness area do not affect the data displayed in the area of ​​interest, the light emitting direction of the fill light can be kept unchanged, and adjusting the light emitting direction of the fill light is prohibited.

[0104] In this embodiment, when the brightness area is outside the area of ​​interest, it is prohibited to adjust the light emitting direction of the fill light to reduce the power consumption of the camera device.

[0105] The fill light control device provided by the present invention is described below. The fill light control device described below and the fill light control method described above can be referred to each other.

[0106] Fig.13 is a schematic diagram of the structure of a fill light control device provided by an embodiment of the present invention. Fig.13 As shown, the fill light control device 1300 includes an acquisition unit 1301, a determination unit 1302 and a first adjustment unit 1303; wherein:

[0107] An acquisition unit 1301 is used to acquire an image to be processed, where the image to be processed includes a region of interest of a target device;

[0108] A determination unit 1302 is configured to determine whether the image to be processed includes a brightness region; the brightness region includes fill light highlights and / or stripes generated after the target device is fill-illuminated by a fill light; and the brightness value of the brightness region is greater than a preset brightness value;

[0109] The first adjustment unit 1303 is used to adjust the light emitting direction of the fill light so that the brightness area is located outside the region of interest when the image to be processed includes a brightness area and the brightness area is located in the region of interest.

[0110] The fill light control device provided by the present invention obtains an image to be processed including an area of ​​interest of a target device, determines whether the image to be processed includes a brightness area, that is, whether it includes fill light highlights or rainbow stripes generated after the target device is filled with light by a fill light, and when the image to be processed includes the brightness area and the brightness area is located in the area of ​​interest, adjusts the light emitting direction of the fill light so that the brightness area is located outside the area of ​​interest. In this way, both the fill light highlights and the rainbow stripes are located outside the area of ​​interest, so as not to affect the normal monitoring of the reading of the reading area by the camera device.

[0111] Based on any of the foregoing embodiments, the first adjusting unit 1303 is specifically configured to:

[0112] The light emitting direction of the fill light is adjusted by a driving module based on a preset angle corresponding to a preset direction; the preset direction includes a horizontal direction and / or a vertical direction;

[0113] When the new brightness area generated after the light emitting direction is adjusted is located in the area of ​​interest, return to the step of adjusting the light emitting direction of the fill light based on a preset angle corresponding to the preset direction through the driving module until the new brightness area generated after the light emitting direction is adjusted is outside the area of ​​interest.

[0114] Based on any of the foregoing embodiments, the determining unit 1302 is specifically configured to:

[0115] Dividing the image to be processed into at least two image regions;

[0116] Determining a target brightness value for each of the image regions;

[0117] In the case that there is a target brightness value greater than the preset brightness value, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes the brightness area.

[0118] Based on any of the foregoing embodiments, the determining unit 1302 is further specifically configured to:

[0119] When the fill light is turned on, determining a first brightness value of each of the image areas;

[0120] When the fill light is turned off, determining a second brightness value of each of the image areas;

[0121] For each of the image regions, a difference between the first brightness value and the second brightness value of the image region is determined as a target brightness value of the image region.

[0122] Based on any of the above embodiments, the preset angle is determined based on the focal length of the lens, the object distance, the distance between the first position on the fill light and the second position on the light board where the fill light is located, and the distance between corresponding positions in two adjacent image areas, and the image area is obtained by dividing the image to be processed.

[0123] Based on any of the above embodiments, the fill light control device further includes:

[0124] The second adjustment unit is used to prohibit adjusting the light emitting direction of the fill light when the brightness area is outside the area of ​​interest.

[0125] An embodiment of the present invention provides a camera device, comprising a housing, a camera head, a light board, a fill light, and a driving module, wherein the camera head, the light board, the fill light, and the driving module are all arranged in the housing, the fill light is arranged on the light board, and the driving module is connected to the light board;

[0126] The camera is used to obtain an image to be processed, wherein the image to be processed includes an area of ​​interest of a target device;

[0127] The camera is further used to determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by the fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0128] The camera is also used to control the driving module to adjust the light emission direction of the fill light through the light board when the image to be processed includes a brightness area and the brightness area is located in the area of ​​interest, so that the brightness area is located outside the area of ​​interest.

[0129] Fig.14 is a schematic diagram of the physical structure of the camera device provided by an embodiment of the present invention, such as Fig.14As shown, the camera device may include: a processor 1410, a communication interface 1420, a memory 1430 and a communication bus 1440, wherein the processor 1410, the communication interface 1420 and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute the fill light control method, which includes: acquiring an image to be processed, wherein the image to be processed includes a region of interest of a target device;

[0130] Determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0131] When the image to be processed includes a brightness area and the brightness area is located in the region of interest, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the region of interest.

[0132] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0133] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the fill light control method provided by the above methods, the method includes: acquiring an image to be processed, the image to be processed includes a region of interest of a target device;

[0134] Determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0135] When the image to be processed includes a brightness area and the brightness area is located in the region of interest, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the region of interest.

[0136] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fill light control method provided by the above methods is implemented, and the method includes: acquiring an image to be processed, wherein the image to be processed includes a region of interest of a target device;

[0137] Determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value;

[0138] When the image to be processed includes a brightness area and the brightness area is located in the region of interest, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the region of interest.

[0139] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fill light control method, characterized in that: include: Acquire an image to be processed, wherein the image to be processed includes a region of interest of a target device; Determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by a fill light; the brightness value of the brightness area is greater than a preset brightness value; When the image to be processed includes a brightness area and the brightness area is located in the region of interest, the light emitting direction of the fill light is adjusted so that the brightness area is located outside the region of interest.

2. The fill light control method according to claim 1, characterized in that: The step of adjusting the light emission direction of the fill light so that the brightness area is located outside the area of ​​interest includes: The light emitting direction of the fill light is adjusted by a driving module based on a preset angle corresponding to a preset direction; the preset direction includes a horizontal direction and / or a vertical direction; When the new brightness area generated after the light emitting direction is adjusted is located in the area of ​​interest, return to the step of adjusting the light emitting direction of the fill light based on a preset angle corresponding to the preset direction through the driving module until the new brightness area generated after the light emitting direction is adjusted is outside the area of ​​interest.

3. The fill light control method according to claim 1, characterized in that: The determining whether the image to be processed includes a brightness area includes: Dividing the image to be processed into at least two image regions; Determining a target brightness value for each of the image regions; In the case that there is a target brightness value greater than the preset brightness value, it is determined that the image area corresponding to the target brightness value greater than the preset brightness value includes the brightness area.

4. The fill light control method according to claim 3, characterized in that: Determining the target brightness value of each of the image areas includes: When the fill light is turned on, determining a first brightness value of each of the image areas; When the fill light is turned off, determining a second brightness value of each of the image areas; For each of the image regions, a difference between the first brightness value and the second brightness value of the image region is determined as a target brightness value of the image region.

5. The fill light control method according to claim 2, characterized in that: The preset angle is determined based on the focal length of the lens, the object distance, the distance between the first position on the fill light and the second position on the light board where the fill light is located, and the distance between corresponding positions in two adjacent image areas, and the image area is obtained by dividing the image to be processed.

6. The fill light control method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the brightness area is outside the area of ​​interest, it is prohibited to adjust the light emitting direction of the fill light.

7. A fill light control device, characterized in that: include: An acquisition unit, used for acquiring an image to be processed, wherein the image to be processed includes a region of interest of a target device; A determination unit, configured to determine whether the image to be processed includes a brightness region; the brightness region includes fill light highlights and / or stripes generated after the target device is fill-illuminated by a fill light; and the brightness value of the brightness region is greater than a preset brightness value; The first adjustment unit is used to adjust the light emitting direction of the fill light so that the brightness area is located outside the region of interest when the image to be processed includes a brightness area and the brightness area is located in the region of interest.

8. A camera device, characterized in that: It includes a housing, a camera, a light board, a fill light and a driving module, wherein the camera, the light board, the fill light and the driving module are all arranged in the housing, the fill light is arranged on the light board, and the driving module is connected to the light board; The camera is used to obtain an image to be processed, wherein the image to be processed includes an area of ​​interest of a target device; The camera is further used to determine whether the image to be processed includes a brightness area; the brightness area includes fill light highlights and / or stripes generated after the target device is filled with light by the fill light; the brightness value of the brightness area is greater than a preset brightness value; The camera is also used to control the driving module to adjust the light emission direction of the fill light through the light board when the image to be processed includes a brightness area and the brightness area is located in the area of ​​interest, so that the brightness area is located outside the area of ​​interest.

9. A camera device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the fill light control method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fill light control method according to any one of claims 1 to 6 is implemented.