An imaging device and image acquisition method
Patent Information
- Application Number
- CN202610945732.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-26
- Publication Date
- 2026-09-25
AI Technical Summary
基于此,从第一行的曝光开始,一直到最后一行的曝光结束,均需要使用补光灯进行辅助补光,一旦曝光过程中未进行辅助补光,就会导致图像存在条纹(补光时的行为亮,未补光时的行为暗,从而导致图像出现亮暗变化的条纹)
[0007]由以上技术方案可见,本申请实施例中,主控单元确定目标行的曝光起始时刻和曝光时长、目标行的补光起始时刻和补光时长,补光时长小于或等于曝光时长,图像的各行的补光时长相同。通过控制目标行的补光时长小于或等于目标行的曝光时长,能够减少成像设备的补光时间,降低成像设备的补光功耗(降低补光灯的功耗),避免补光功耗导致的温升增加(减少成像设备的温升),即不存在温升和功耗的限制,提升采图性能。通过降低成像设备的补光功耗,也能够提升成像设备的补光亮度,进一步提升图像质量。通过控制待采集图像的各行的补光时长相同,保证每行的补光时长一致,能够避免图像存在条纹(即每一行都有补光,且各行的补光时长相同,图像不会出现亮暗变化的条纹)。
Smart Images

Figure CN122824970A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine vision technology, and in particular to an imaging device and an image acquisition method. Background Technology
[0002] An industrial camera is a high-resolution camera used in industrial fields. It features high transmission speed, excellent color reproduction, and clear imaging, and is used in areas such as object defect detection and barcode recognition. Industrial cameras can capture parameters such as the length, angle, and area of the object being inspected. When using an industrial camera to photograph an object, supplementary lighting can be used to increase the brightness of the object.
[0003] For industrial cameras using rolling shutter exposure, the sensor needs to expose and scan line by line until all pixels in each line are exposed. Therefore, supplementary lighting is required from the first line of exposure until the last line is exposed. If supplementary lighting is not provided during the exposure process, it will result in stripes in the image (the illuminated areas are bright, while the unilluminated areas are dark, causing stripes of varying brightness).
[0004] In summary, supplementary lighting is required from the initial exposure of the first line until the final exposure, necessitating prolonged supplementary lighting. As industrial cameras become increasingly smaller, the power consumption of this lighting during extended use leads to increased camera temperature. Therefore, limitations in camera temperature and power consumption during industrial camera use result in reduced image acquisition performance. Summary of the Invention
[0005] This application provides an imaging device, which includes a main control unit, a sensor, a fill light driving unit, and a fill light; the main control unit is connected to the sensor, the main control unit is connected to the fill light driving unit, and the fill light driving unit is connected to the fill light; The main control unit is used to determine the exposure start time and exposure duration of the target row, the fill light start time and fill light duration of the target row, wherein the fill light duration is less than or equal to the exposure duration; the target row is at least one row of the image to be acquired, and the fill light duration of each row of the image to be acquired is the same; Based on the exposure start time, a first signal is sent to the sensor so that the sensor exposes the target row within the exposure duration and acquires image data of the target row; Based on the start time of the supplementary lighting, a second signal is sent to the supplementary lighting driver unit so that the supplementary lighting driver unit controls the supplementary lighting to perform supplementary lighting operation within the supplementary lighting duration.
[0006] This application provides an image acquisition method applied to the main control unit of an imaging device, wherein the imaging device further includes a sensor, a supplementary light driving unit, and a supplementary light, and the method includes: Determine the exposure start time and exposure duration of the target row, and the fill light start time and fill light duration of the target row, wherein the fill light duration is less than or equal to the exposure duration; wherein the target row is at least one row of the image to be acquired, and the fill light duration of each row of the image to be acquired is the same; Based on the exposure start time, a first signal is sent to the sensor so that the sensor exposes the target row within the exposure duration and acquires image data of the target row; Based on the start time of the supplementary lighting, a second signal is sent to the supplementary lighting driver unit so that the supplementary lighting driver unit controls the supplementary lighting to perform supplementary lighting operation within the supplementary lighting duration.
[0007] As can be seen from the above technical solutions, in this embodiment, the main control unit determines the exposure start time and exposure duration of the target row, the supplementary lighting start time and supplementary lighting duration of the target row, and the supplementary lighting duration is less than or equal to the exposure duration, with the supplementary lighting duration being the same for each row of the image. By controlling the supplementary lighting duration of the target row to be less than or equal to the exposure duration of the target row, the supplementary lighting time of the imaging device can be reduced, the supplementary lighting power consumption of the imaging device can be reduced (reducing the power consumption of the supplementary light), and the increase in temperature rise caused by supplementary lighting power consumption can be avoided (reducing the temperature rise of the imaging device). That is, there are no limitations on temperature rise and power consumption, thus improving image acquisition performance. By reducing the supplementary lighting power consumption of the imaging device, the supplementary lighting brightness of the imaging device can also be increased, further improving image quality. By controlling the supplementary lighting duration of each row of the image to be acquired to be the same, ensuring that the supplementary lighting duration of each row is consistent, it is possible to avoid the presence of stripes in the image (that is, each row has supplementary lighting, and the supplementary lighting duration of each row is the same, so the image will not have stripes with varying brightness). Attached Figure Description
[0008] Figure 1 This is a schematic diagram of the imaging device in one embodiment of this application; Figure 2 This is a schematic diagram of roller shutter exposure in one embodiment of this application; Figure 3 This is a schematic diagram of the imaging device in one embodiment of this application; Figure 4A This is a timing diagram of image exposure in one embodiment of this application; Figure 4B This is a timing diagram of image exposure in one embodiment of this application; Figure 4C This is a timing diagram of image exposure in one embodiment of this application; Figure 4D This is a timing diagram of image exposure in one embodiment of this application; Figure 5A This is a schematic diagram of the imaging device in one embodiment of this application; Figure 5B This is a schematic diagram of the structure of a second-order RC filter circuit in one embodiment of this application; Figure 5C This is a schematic diagram of the structure of the supplementary lighting driving unit in one embodiment of this application; Figure 6A This is a schematic diagram of the imaging device in one embodiment of this application; Figure 6B This is a schematic diagram of a first switching circuit and a second switching circuit in one embodiment of this application; Figure 7 This is a flowchart illustrating an image acquisition method according to one embodiment of this application. Detailed Implementation
[0009] This application proposes an imaging device, which can be an industrial camera or other types of cameras. There is no limitation on the type of imaging device, as long as it can realize the image acquisition function.
[0010] See Figure 1 The diagram shows the structure of an imaging device, which may include a main control unit 11, a sensor 12, a fill light drive unit 13, and a fill light 14. The main control unit 11 is connected to the sensor 12, the main control unit 11 is connected to the fill light drive unit 13, and the fill light drive unit 13 is connected to the fill light 14.
[0011] The main control unit 11 is used to determine the exposure start time and exposure duration of the target row, the fill light start time and fill light duration of the target row, wherein the fill light duration can be less than or equal to the exposure duration. The target row is at least one row of the image to be acquired, and the fill light duration is the same for all rows of the image to be acquired.
[0012] The main control unit 11 is used to send a first signal to the sensor 12 based on the exposure start time, so that the sensor 12 exposes the target row within the exposure time and acquires the image data of the target row.
[0013] The main control unit 11 is used to send a second signal to the fill light driving unit 13 based on the start time of the fill light, so that the fill light driving unit 13 controls the fill light 14 to perform fill light operation within the fill light duration.
[0014] For example, when the target row is a row of the image to be captured, the start time of the fill light is determined based on the start time of the exposure, and the fill light duration can be 1 / M of the exposure duration, where M can be greater than 1.
[0015] For example, when the target row is N consecutive rows of the image to be acquired, N can be greater than 1. The exposure start time of different rows is different, the exposure duration of different rows is the same, and the N consecutive rows correspond to the same supplementary light start time. The supplementary light start time can be determined based on the exposure start time of the last row in the N consecutive rows, and the supplementary light duration can be 1 / K of the exposure duration, where K can be greater than 1.
[0016] For example, the exposure duration can be an integer multiple of 2; N can be an integer multiple of 2.
[0017] For example, the imaging device further includes a filtering circuit located between the main control unit 11 and the fill light driving unit 13. The main control unit 11 is used to determine the image fill light start time and image fill light duration of the image to be acquired, and sends a third signal to the filtering circuit based on the image fill light start time; wherein, the image fill light start time is determined based on the exposure start time of the first row of the image to be acquired; the filtering circuit is used to send a fourth signal to the fill light driving unit 13, so that the fill light driving unit 13 controls the fill light 14 to perform fill light operation within the image fill light duration; wherein, the first voltage corresponding to the third signal is greater than the second voltage corresponding to the fourth signal; wherein, the fill light current corresponding to the second voltage is less than the fill light current corresponding to the first voltage.
[0018] For example, the third signal may include a PWM (Pulse-Width Modulation) signal and a filtering circuit for determining a second voltage based on the first voltage and the duty cycle of the PWM signal.
[0019] For example, the filter circuit may include a second-order RC filter circuit, which may include a first resistor, a second resistor, a first capacitor, and a second capacitor; the first resistor and the second resistor are connected in series, the first resistor and the first capacitor are connected in series, the second resistor and the second capacitor are connected in series, and the first capacitor and the second capacitor are connected in parallel.
[0020] For example, the main control unit 11 is used to determine the start time and duration of the fill light for the target row when the strobe fill light mode is enabled, and send a second signal to the fill light driving unit based on the start time of the fill light; or, when the constant light fill light mode is enabled, to determine the start time and duration of the image fill light for the image to be acquired, and send a third signal to the filter circuit based on the start time of the image fill light.
[0021] For example, if the frame rate of the imaging device is greater than a preset threshold, the strobe fill light mode can be enabled; if the frame rate of the imaging device is not greater than the preset threshold, the constant light fill light mode can be enabled.
[0022] For example, the imaging device may further include a first switching circuit and a second switching circuit. The first switching circuit is located between the main control unit 11 and the supplementary light driving unit 13, and the second switching circuit is located between the filter circuit and the supplementary light driving unit 13. The main control unit 11 is configured to send a first closing signal to the first switching circuit when the strobe supplementary light mode is enabled. The first closing signal is used to close the first switching circuit, thereby connecting the link between the main control unit 11 and the supplementary light driving unit 13. The main control unit 11 also sends a first opening signal to the second switching circuit when the constant-on supplementary light mode is enabled. The second closing signal is used to close the second switching circuit, thereby connecting the link between the filter circuit and the supplementary light driving unit 13. Furthermore, the main control unit 11 sends a second closing signal to the first switching circuit when the constant-on supplementary light mode is enabled. The second closing signal is used to close the second switching circuit, thereby connecting the link between the filter circuit and the supplementary light driving unit 13. The main control unit 11 also sends a second opening signal to the first switching circuit, thereby opening the first switching circuit, thereby disconnecting the link between the main control unit 11 and the supplementary light driving unit 13.
[0023] As can be seen from the above technical solutions, in this embodiment, the main control unit determines the exposure start time and exposure duration of the target row, the supplementary lighting start time and supplementary lighting duration of the target row, and the supplementary lighting duration is less than or equal to the exposure duration, with the supplementary lighting duration being the same for each row of the image. By controlling the supplementary lighting duration of the target row to be less than or equal to the exposure duration of the target row, the supplementary lighting time of the imaging device is reduced, thereby reducing the supplementary lighting power consumption of the imaging device (reducing the power consumption of the supplementary light), avoiding the increase in temperature rise caused by supplementary lighting power consumption (reducing the temperature rise of the imaging device), that is, there are no limitations on temperature rise and power consumption, thus improving image acquisition performance. By reducing the supplementary lighting power consumption of the imaging device, the supplementary lighting brightness of the imaging device can also be increased, further improving image quality. By controlling the supplementary lighting duration of each row of the image to be acquired to be the same, ensuring that the supplementary lighting duration of each row is consistent, it is possible to avoid the presence of stripes in the image (that is, each row has supplementary lighting, and the supplementary lighting duration of each row is the same, so the image will not have stripes with varying brightness).
[0024] The technical solutions described above in the embodiments of this application will be explained below in conjunction with specific application scenarios.
[0025] For imaging devices employing rolling shutter exposure, the imaging device can be an industrial camera or other types of cameras; the following explanation will use an industrial camera as an example. To achieve rolling shutter exposure, the imaging device's sensor needs to expose each row sequentially, scanning each row until all pixels in all rows have been exposed. For example, see... Figure 2 The image shown is a schematic diagram of roller shutter exposure.
[0026] For the first row of the image to be acquired, the red area represents the start time of exposure for the first row, the yellow area represents the exposure time (i.e., the time the sensor is in exposure mode), and the blue area represents the data output time (i.e., the output image data) for the first row. The times corresponding to the red and yellow areas represent the exposure duration for the first row. The first row needs to be exposed within this exposure duration, and the sensor needs to scan the first row within this exposure duration to obtain the image data for the first row.
[0027] For the second row of the image to be acquired, the red area represents the exposure start time, the yellow area represents the exposure time, and the blue area represents the sensor's data output time for the second row. The times corresponding to the red and yellow areas represent the exposure duration for the second row. The second row needs to be exposed within this exposure duration, and the sensor needs to scan the second row within this exposure duration to obtain the image data for the second row. Similarly, for the nth row of the image to be acquired (the image contains a total of n rows of image data), the red area represents the exposure start time, the yellow area represents the exposure time, and the blue area represents the sensor's data output time for the nth row. The times corresponding to the red and yellow areas represent the exposure duration for the nth row. The nth row needs to be exposed within this exposure duration, and the sensor needs to scan the nth row within this exposure duration to obtain the image data for the nth row. In this way, the image data from all rows can be combined to obtain the image to be acquired.
[0028] In summary, for a single frame of an image (the image to be captured), the exposure process begins with the first row, then the second row, the third row, and so on, until the last row is fully exposed, completing the exposure of one frame. Assuming the exposure time (exposure duration) for the first row is T1, the exposure time for the second row is T2, ..., and the exposure time for the last row is Tn, then the exposure time (image exposure duration) for one frame is T, where T = T1 + T2 + T3... + Tn.
[0029] Assuming the imaging device has a resolution of 3200×1944, meaning that one frame of the image needs to be exposed in 1944 rows, with 3200 pixels per row, then the exposure time for one row plus the data output time is 8.7us. The exposure time for one frame of the image is approximately T=8.7us×1944=17ms, meaning the data output time is approximately 0.
[0030] If the imaging device has a frame rate of 50 frames per second, that is, 50 exposures per second, then the maximum time for each frame is 1s / 50=20ms. Within these 20ms, the exposure time for each frame is 17ms.
[0031] Based on the characteristics of roller shutter exposure (from the exposure of the first line to the exposure of the last line, a fill light is required for auxiliary lighting), the brightness of the fill light needs to be consistent during the exposure process, and there should be no change in the brightness of the fill light. Therefore, the fill light needs to be on for 17ms in one frame of exposure time, and the on time of the fill light needs to reach 85% (17ms / 20ms=85%) to ensure that the image has no stripes.
[0032] In summary, it can be seen that the supplementary light lasts for a relatively long time. As imaging devices become smaller, the power consumption of the supplementary light during prolonged use leads to an increase in the temperature rise of the imaging device. During the use of imaging devices, there are limitations in temperature rise and power consumption, resulting in reduced image acquisition performance. Furthermore, the temperature rise of the imaging device limits the brightness of the supplementary light (the current of the supplementary light), thus resulting in poor image acquisition quality.
[0033] In response to the above findings, this embodiment proposes a supplementary lighting source design scheme for imaging devices (such as industrial cameras) employing rolling shutter exposure sensors. For example, rolling shutter exposure sensors have the following characteristics: 1. At the start of exposure, the sensor scans and exposes line by line until all pixels are fully exposed. This requires the supplementary lighting to maintain consistent brightness throughout the exposure process, and there should be no brightness variation (i.e., it needs to remain constantly lit during exposure), otherwise stripes will appear in the image. 2. If the brightness remains consistent throughout the entire exposure process (i.e., it remains constantly lit during exposure), the brightness of the supplementary lighting cannot be increased due to limitations in temperature rise and power consumption (too high brightness will significantly increase temperature rise and power consumption). However, improving the image acquisition performance of the imaging device requires increasing the brightness of the supplementary lighting (increasing the supplementary lighting current).
[0034] Based on this, the supplementary light source design scheme of the roller shutter exposure sensor in this embodiment can solve the problem that there cannot be any brightness change of the supplementary light during the exposure process (it needs to be kept constantly lit during the exposure process), otherwise stripes will be generated in the image, thereby improving the supplementary light brightness of the imaging device and reducing the power consumption of the imaging device.
[0035] The supplementary light source design of the roller shutter exposure sensor in this embodiment can provide constant illumination when the frame rate of the imaging device is low, and adjust the current to improve the image acquisition performance of the imaging device.
[0036] This application provides an imaging device (such as an industrial camera or other types of cameras) in its embodiments. See [link to relevant documentation]. Figure 3 The diagram shows the structure of an imaging device, which may include a main control unit 31, a sensor 32, a fill light drive unit 33, and a fill light 34. The main control unit 31 is connected to the sensor 32, the fill light drive unit 33 is connected to the fill light 34, and the fill light drive unit 33 is connected to the fill light 34.
[0037] The main control unit 31 and the sensor 32 can be connected via a data bus. The sensor 32 sends image data to the main control unit 31 via the data bus, that is, the sensor outputs image data for each line.
[0038] The main control unit 31 can transmit sensor control signals to the sensor 32, and can also transmit light source control signals to the supplementary lighting drive unit 33. The main control unit 31 and the sensor 32 are connected via a control signal line, and sensor control signals are transmitted between them through this line. In subsequent processes, all signals transmitted between the main control unit 31 and the sensor 32 are sensor control signals. Similarly, the main control unit 31 and the supplementary lighting drive unit 33 are connected via a control signal line, and light source control signals are transmitted between them through this line. In subsequent processes, all signals transmitted between the main control unit 31 and the supplementary lighting drive unit 33 are light source control signals.
[0039] The main control unit 31 (also known as the main control system) can be implemented by an FPGA (Field Programmable Gate Array), a SOC, or a combination of an FPGA and an SOC. It can also be implemented by other devices, such as a CPLD (Complex Programmable Logic Device). There are no restrictions on the implementation.
[0040] In addition to FPGA or SOC, the main control unit 31 may also include peripheral devices such as DDR (Double Data Rate Synchronous Dynamic Random Access Memory), FLASH, crystal, etc., which are not limited in terms of the structure of the main control unit 31.
[0041] Regarding sensor 32, it can be a rolling shutter exposure sensor or other types of sensors, as long as it supports rolling shutter exposure functionality. For example, sensor 32 is connected to main control unit 31 via a data bus, and sensor 32 sends image data to main control unit 31 via the data bus. Sensor 32 and main control unit 31 are also connected via signal lines (such as control signal lines), and main control unit 31 sends sensor control signals to sensor 32 via signal lines, such as the first signal in subsequent embodiments.
[0042] The fill light driving unit 33 is used to control the fill light 34 (i.e., fill light control). The fill light 34 can be an LED (Light Emitting Diode) light source or other types of light sources. The fill light 34 just needs to be able to achieve the fill light function.
[0043] The fill light driver unit 33 is connected to the main control unit 31 via a signal line (such as a control signal line). For example, the fill light driver unit 33 may include an EN (Enable) pin. The fill light driver unit 33 is connected to the signal line via the EN pin, and the signal line is connected to the main control unit 31. The main control unit 31 sends a light source control signal to the fill light driver unit 33 via the signal line, such as the second signal in subsequent embodiments.
[0044] Since the main control unit 31 sends sensor control signals to the sensor 32 via signal lines, and sends light source control signals to the fill light drive unit 33 via signal lines, the main control unit 31 can control the relationship between the fill light time of the fill light 34 and the exposure time of the sensor 32.
[0045] For example, the main control unit 31 can determine the exposure start time and exposure duration of the target row, where the target row can be at least one row of the image to be acquired. For instance, see... Figure 2 As shown, assuming the target row is the first row of the image to be captured, the red area of the first row represents the exposure start time of the target row, and the times corresponding to the red and yellow areas of the first row represent the exposure duration of the target row. This embodiment does not impose restrictions on the exposure start time and exposure duration of the target row. For example, the main control unit 31 can determine the start time of the fill light for the target row and the fill light duration for the target row, and the fill light duration for the target row can be less than or equal to the exposure duration for the target row. The target row can be at least one row of the image to be acquired. For example, the fill light duration for the target row is less than the exposure duration for the target row.
[0046] When determining the illumination duration for the target row, ensure that the illumination duration for each row of the image to be acquired is the same. For example, the illumination duration for the second row of the image to be acquired is the same as the illumination duration for the first row, the illumination duration for the third row is the same as the illumination duration for the second row, and so on.
[0047] In one possible implementation, when the target line is a line of the image to be acquired, the start time of the fill light for the target line can be determined based on the start time of the exposure of the target line, and the fill light duration for the target line can be 1 / M of the exposure duration of the target line, where M can be greater than 1 or equal to 1.
[0048] For example, the start time of the fill light for the target row is the same as the start time of the exposure for the target row, or the start time of the fill light for the target row is the sum of the start time of the exposure for the target row and X (us). X can be configured according to actual needs. The sum of X and the fill light duration for the target row is less than or equal to the exposure duration for the target row.
[0049] For example, M can be 2, 3, 4, etc., and there are no restrictions on the value of M. The fill light duration for the target row can be 1 / 2, 1 / 3, 1 / 4, etc., of the target row's exposure duration. See also Figure 4A The diagram shown illustrates the timing of image exposure. Here, we take an example where the fill light duration is 1 / 4 of the exposure duration. (See [link to relevant documentation]). Figure 4B The diagram shows the timing of image exposure, with the example where the fill light duration is 1 / 10 of the exposure duration.
[0050] This embodiment proposes a strobe illumination scheme for a roller shutter exposure sensor. The structure of the strobe illumination scheme can be found in [reference needed]. Figure 3 As shown. For the strobe lighting scheme, during the exposure process, if the lighting duration of the fill light is consistent when exposing each row (the fill light duration for each row of the image to be captured is the same), it can be guaranteed that the image to be captured has no stripes, and it is not necessary to have all the fill lights on during the exposure time of each row.
[0051] See Figure 4A and Figure 4B As shown, the first row of signals represents the clock signal. The second row of signals represents the frame start signal (Fsin). The main control unit 31 can send the frame start signal to the sensor 32. When the frame start signal changes from low level to high level, it indicates the start time of acquiring a frame of image. The sensor 32 starts acquiring a frame of image. That is, the frame start signal is used to control when to acquire a new frame of image.
[0052] The third line signal represents the exposure signal (sen_line0exp) of the first line of image data of the image to be acquired. The main control unit 31 can send the exposure signal of the first line of image data to the sensor 32. When the exposure signal is high, the sensor 32 needs to expose the first line of the image to be acquired.
[0053] The fourth line signal represents the fill light signal (line0_led) of the first line of image data of the image to be acquired. The main control unit 31 can send the fill light signal of the first line of image data to the fill light driving unit 33. When the fill light signal is high, the fill light driving unit 33 controls the fill light 34 to perform fill light operation.
[0054] exist Figure 4A In this process, the start time of the fill light (start time of the fill light signal) for the first row of the image to be acquired is the same as the start time of the exposure (start time of the exposure signal) for the first row of the image to be acquired, and the fill light duration for the first row of the image to be acquired is 1 / 4 of the exposure duration for the first row of the image to be acquired. Figure 4B In the image to be captured, the start time of the fill light for the first row is the same as the start time of the exposure for the first row, and the fill light duration for the first row is 1 / 10 of the exposure duration for the first row.
[0055] The fifth line signal represents the exposure signal (sen_line1exp) of the second line of image data of the image to be acquired. The main control unit 31 can send the exposure signal of the second line of image data to the sensor 32. When the exposure signal is high, the sensor 32 needs to expose the second line of the image to be acquired.
[0056] The sixth line signal represents the fill light signal (line1_led) of the second line of image data of the image to be acquired. The main control unit 31 can send the fill light signal of the second line of image data to the fill light driving unit 33. When the fill light signal is high, the fill light driving unit 33 controls the fill light 34 to perform fill light operation.
[0057] Obviously, the start time of the fill light for the second row of the image to be acquired is the same as the start time of the exposure for the second row. The duration of the fill light for the second row of the image to be acquired is 1 / 4 or 1 / 10 of the duration of the exposure for the second row of the image to be acquired.
[0058] The seventh line of signals represents the exposure signal of the nth line of image data in the image to be acquired. The main control unit 31 can send the exposure signal of the nth line of image data to the sensor 32. When the exposure signal is high, the sensor 32 needs to expose the nth line of the image to be acquired. The eighth line of signals represents the fill light signal of the nth line of image data in the image to be acquired. The main control unit 31 can send the fill light signal of the nth line of image data to the fill light drive unit 33. When the fill light signal is high, the fill light drive unit 33 controls the fill light 34 to perform fill light operation. The start time of the fill light for the nth line of the image to be acquired is the same as the start time of the exposure for the nth line. The fill light duration for the nth line of the image to be acquired is 1 / 4 or 1 / 10 of the exposure duration for the nth line.
[0059] The ninth line of signal can represent the complete supplementary light signal (i.e., the supplementary light signal for all lines of the image to be acquired, denoted as out_led_single signal). The gray area can represent that the supplementary light driving unit 33 controls the supplementary light 34 to perform supplementary light operation, and the non-gray area can represent that the supplementary light 34 does not need to perform supplementary light operation.
[0060] For example, see Figure 4B As shown, assuming the exposure time of the first row of image data to be acquired is T1 = 8.7us, and the supplementary lighting time for the first row is 1 / 10 of the exposure time of the first row, then the duration of the supplementary light on the first row is T1 × 10% = 0.87us. The exposure time of the second row of image data to be acquired is T2 = 8.7us, and the duration of the supplementary light on the second row is T2 × 10% = 0.87us, and so on. Therefore, the total duration of the supplementary light during the entire supplementary lighting process is 0.87us × 1944 = 1.7ms. (See also...) Figure 2 As shown, the fill light needs to be on for 17ms during the exposure time of one frame. Obviously, the fill light's on time is shortened to 10%.
[0061] See Figure 4A and Figure 4B As shown, at the beginning of each line of exposure, the main control unit 31 starts to output a control signal for the fill light to turn on, and controls the total output duration by adjusting the duration of the fill light.
[0062] In another possible implementation, when the target row is N consecutive rows of the image to be acquired, where N can be greater than 1, the main control unit determines the exposure start time and exposure duration of the target row. Different rows have different exposure start times, but different rows have the same exposure duration. When the main control unit determines the supplementary lighting start time and supplementary lighting duration of the target row, the N consecutive rows (i.e., the target row corresponds to the same N consecutive rows) correspond to the same supplementary lighting start time. This supplementary lighting start time can be determined based on the exposure start time of the last row in the N consecutive rows, and the supplementary lighting duration can be 1 / K of the exposure duration, where K can be greater than 1 or equal to 1.
[0063] For example, the start time of the fill light for the target row can be the same as the start time of the exposure of the last row in the N consecutive rows. Alternatively, the start time of the fill light for the target row can be the sum of the start time of the exposure of the last row in the N consecutive rows and Y (us). Y can be configured according to actual needs. The sum of Y and the fill light duration of the target row can be less than or equal to the exposure duration of the last row in the N consecutive rows.
[0064] For example, K can be 2, 3, 4, etc., and there is no restriction on the value of K. The fill light duration for the target row can be 1 / 2, 1 / 3, 1 / 4, etc., of the exposure duration of the target row. For example, since N rows in the target row have the same exposure duration, the fill light duration for the target row can be 1 / K of the exposure duration of any row.
[0065] For example, when the target row is N consecutive rows of the image to be captured, N can be an integer multiple of 2, such as 2, 4, 6, 8, etc. That is, the target row is 2 consecutive rows of the image to be captured, or the target row is 4 consecutive rows of the image to be captured, or the target row is 6 consecutive rows of the image to be captured, and so on.
[0066] For example, when the main control unit determines the exposure duration of the target row, the exposure duration can be an integer multiple of 2. That is, for each row in the target row (the exposure duration of N rows in the target row is the same), the exposure duration of that row can be an integer multiple of 2, such as 6us, 8us, 10us, etc., without any restrictions.
[0067] See Figure 4C The diagram shows the timing of image exposure. Here, we take two consecutive rows of the image to be captured (N = 2) as an example, and the supplementary lighting time as 1 / 10 of the exposure time (K = 10) as an example. See [link / reference]. Figure 4D The diagram shows the timing of image exposure. Here, we take four consecutive rows of the image to be captured (N equals 4) as the target row and 1 / 10 of the exposure time (K equals 10) as the supplementary lighting time.
[0068] This embodiment proposes a strobe illumination scheme for a roller shutter exposure sensor. The structure of the strobe illumination scheme can be found in [reference needed]. Figure 3 As shown. For the strobe lighting solution, refer to the following during the exposure process: Figure 4C As shown, the fill light signal is emitted every two line cycles. This ensures consistent fill light duration for each line, preventing image stripes, while also reducing fill light power consumption and minimizing the temperature rise of the imaging device. In this method, the exposure time must be a multiple of 2 to guarantee consistent fill light duration for each line.
[0069] Similarly, the supplementary light signal can be emitted every 4 line cycles, or every 8 line cycles, and so on, as long as the supplementary lighting meets the optical requirements of the sensor's image acquisition. For example, see... Figure 4D As shown, the fill light signal can be sent out once every 4 line cycles.
[0070] See Figure 4C As shown, the first row of signals represents the clock signal. The second row of signals represents the frame start signal (Fsin), which the main control unit 31 can send to the sensor 32.
[0071] The third line of signals represents the exposure signal (sen_line0exp) for the first line of image data to be acquired. When this exposure signal is high, the sensor 32 needs to expose the first line of the image to be acquired. The fourth line of signals represents the exposure signal (sen_line1exp) for the second line of image data to be acquired. When this exposure signal is high, the sensor 32 needs to expose the second line of the image to be acquired.
[0072] The fifth line signal represents the supplementary lighting signal (line0_led) for the first and second lines of the image data to be acquired, meaning the target lines are the first and second lines of the image to be acquired. The main control unit 31 can send the supplementary lighting signal for the first and second lines of the image data to the supplementary lighting drive unit 33. When this supplementary lighting signal is high, the supplementary lighting drive unit 33 controls the supplementary lighting lamp 34 to perform supplementary lighting operations. Figure 4C In the diagram, the first high level corresponds to the high level of the supplementary light signal (line0_led), and the second high level corresponds to the high level of the supplementary light signal (line1_led).
[0073] exist Figure 4C In the image, the start time of the fill light signal (line0_led) (i.e. the start time of the fill light for the target line, which is the first and second lines) is the same as the start time of the exposure for the second line of the image to be acquired.
[0074] The sixth line of signals represents the exposure signal (sen_line2exp) for the third line of image data to be acquired. When this exposure signal is high, sensor 32 needs to expose the third line of the image to be acquired. The seventh line of signals represents the exposure signal (sen_line3exp) for the fourth line of image data to be acquired. When this exposure signal is high, sensor 32 needs to expose the fourth line of the image to be acquired.
[0075] The eighth line signal represents the supplementary lighting signal (line1_led) for the 3rd and 4th lines of the image data to be acquired, meaning the target lines are the 3rd and 4th lines of the image to be acquired. The main control unit 31 can send the supplementary lighting signal for the 3rd and 4th lines of the image data to the supplementary lighting drive unit 33. When this supplementary lighting signal is high, the supplementary lighting drive unit 33 controls the supplementary lighting lamp 34 to perform supplementary lighting operations. Figure 4C In the diagram, the first high level corresponds to the high level of the fill light signal (line1_led), and the second high level corresponds to the high level of the fill light signal (line2_led).
[0076] exist Figure 4C In the image, the start time of the fill light signal (line1_led) (i.e. the start time of the fill light for the target line, which is the 3rd and 4th lines) is the same as the start time of the exposure for the 4th line of the image to be acquired.
[0077] The ninth line signal represents the exposure signal of the nth line of the image data to be acquired. When the exposure signal is high, the sensor 32 needs to expose the nth line of the image to be acquired.
[0078] The tenth line signal represents the supplementary light signal for the (n-1)th line image data and the nth line image data of the image to be acquired. The main control unit 31 can send the supplementary light signal to the supplementary light driving unit 33. When the supplementary light signal is at a high level, the supplementary light driving unit 33 controls the supplementary light 34 to perform supplementary light operation.
[0079] The eleventh line signal can represent the complete supplementary light signal (i.e., the supplementary light signal for all lines of the image to be acquired), and the gray area can represent the supplementary light driver unit 33 controlling the supplementary light 34 to perform supplementary light operation.
[0080] See Figure 4D As shown, the first row of signals represents the clock signal. The second row of signals represents the frame start signal (Fsin), which the main control unit 31 can send to the sensor 32.
[0081] The third line of signals represents the exposure signal of the first line of image data in the image to be acquired (sen_line0exp), the fourth line of signals represents the exposure signal of the second line of image data in the image to be acquired (sen_line1exp), the fifth line of signals represents the exposure signal of the third line of image data in the image to be acquired (sen_line2exp), and the sixth line of signals represents the exposure signal of the fourth line of image data in the image to be acquired (sen_line3exp).
[0082] The seventh line signal can represent the supplementary lighting signal (line0_led) for the first, second, third, and fourth lines of the image data to be acquired, i.e., the target lines are the first, second, third, and fourth lines of the image to be acquired. The main control unit 31 can send the supplementary lighting signals for the first, second, third, and fourth lines of the image data to the supplementary lighting drive unit 33. When the supplementary lighting signal is high, the supplementary lighting drive unit 33 controls the supplementary lighting lamp 34 to perform supplementary lighting operation.
[0083] exist Figure 4D In the image, the start time of the fill light signal (line0_led) (i.e. the start time of the fill light for the target line, which is lines 1-4) is the same as the start time of the exposure for line 4 of the image to be acquired.
[0084] The eighth line of signals represents the exposure signal of the fifth line of image data in the image to be acquired (sen_line4exp), the ninth line of signals represents the exposure signal of the sixth line of image data in the image to be acquired (sen_line5exp), the tenth line of signals represents the exposure signal of the seventh line of image data in the image to be acquired (sen_line6exp), and the eleventh line of signals represents the exposure signal of the eighth line of image data in the image to be acquired (sen_line7exp).
[0085] The twelfth line signal can represent the supplementary lighting signal (line1_led) for the 5th, 6th, 7th, and 8th lines of the image data to be acquired, i.e., the target lines are the 5th, 6th, 7th, and 8th lines of the image to be acquired. The main control unit 31 can send the supplementary lighting signals for the 5th, 6th, 7th, and 8th lines of the image data to the supplementary lighting drive unit 33. When the supplementary lighting signal is high, the supplementary lighting drive unit 33 controls the supplementary lighting lamp 34 to perform supplementary lighting operation.
[0086] exist Figure 4D In the image, the start time of the fill light signal (line1_led) (i.e. the start time of the fill light for the target line, which is lines 5-8) is the same as the start time of the exposure for line 8 of the image to be acquired.
[0087] The thirteenth line signal represents the exposure signal of the nth line of image data of the image to be acquired, and the fourteenth line signal represents the supplementary light signal of the (n-3), (n-2), (n-1) and nth lines of image data of the image to be acquired. The main control unit 31 sends the supplementary light signal to the supplementary light drive unit 33. When the supplementary light signal is high, the supplementary light drive unit 33 controls the supplementary light 34 to perform supplementary light operation.
[0088] The fifteenth line signal can represent the complete supplementary light signal (i.e., the supplementary light signal for all lines of the image to be acquired), and the gray area can represent the supplementary light driver unit 33 controlling the supplementary light 34 to perform supplementary light operation.
[0089] For example, the main control unit 31 can send a first signal to the sensor 32 based on the exposure start time, so that the sensor 32 exposes the target row within the exposure time and acquires the image data of the target row.
[0090] The main control unit 31 can send a second signal to the fill light driving unit 33 based on the start time of the fill light, so that the fill light driving unit 33 controls the fill light 34 to perform fill light operation within the fill light duration.
[0091] For example, see Figure 4A and Figure 4B As shown, the main control unit 31 sends a first signal to the sensor 32 based on the exposure start time of the first line of image data. The first signal is a high-level signal in the exposure signal (sen_line0exp). Alternatively, the main control unit 31 sends a first signal to the sensor 32, where the first signal is the exposure signal (sen_line0exp). The start time of the high-level signal in the first signal represents the exposure start time of the first line of image data, and the duration of the high-level signal in the first signal represents the exposure duration of the first line of image data. During the high-level signal period in the first signal, the sensor 32 exposes the first line and acquires the image data of the first line. The sensor 32 then sends the image data of the first line to the main control unit 31.
[0092] The main control unit 31 sends a second signal to the fill light driver unit 33 based on the start time of the fill light for the first line of image data. This second signal is a high-level signal within the fill light signal (line0_led). Alternatively, the main control unit 31 sends a second signal to the fill light driver unit 33, which is also a fill light signal (line0_led). The start time of the high-level signal in the second signal indicates the start time of the fill light for the first line of image data, and the duration of the high-level signal in the second signal indicates the duration of the fill light for the first line of image data. During the high-level signal period in the second signal, the fill light driver unit 33 controls the fill light 34 to perform the fill light operation.
[0093] Similarly, the main control unit 31 sends a first signal to the sensor 32 based on the exposure start time of the second row of image data. The first signal is a high-level signal in the exposure signal (sen_line1exp). Alternatively, the main control unit 31 sends a first signal to the sensor 32. The first signal is the exposure signal (sen_line1exp).
[0094] The main control unit 31 sends a second signal to the fill light driving unit 33 based on the fill light start time of the second line of image data. The second signal is a high-level signal in the fill light signal (line1_led). Alternatively, the main control unit 31 sends a second signal to the fill light driving unit 33. The second signal is the fill light signal (line1_led).
[0095] Similarly, for each row of the image to be acquired, the main control unit 31 sends a first signal in the manner described above, and the main control unit 31 sends a second signal to the fill light drive unit 33 in the manner described above.
[0096] For example, see Figure 4C As shown, the main control unit 31 sends a first signal to the sensor 32 based on the exposure start time of the first line of image data. The first signal is a high-level signal in the exposure signal (sen_line0exp), or the main control unit 31 sends a first signal to the sensor 32, where the first signal is the exposure signal (sen_line0exp). The main control unit 31 sends a first signal to the sensor 32 based on the exposure start time of the second line of image data. The first signal is a high-level signal in the exposure signal (sen_line1exp), or the main control unit 31 sends a first signal to the sensor 32, where the first signal is the exposure signal (sen_line1exp).
[0097] The main control unit 31 sends a second signal to the fill light driving unit 33 based on the fill light start time of the first and second lines of image data. The second signal is a high-level signal in the fill light signal (line0_led). Alternatively, the main control unit 31 sends a second signal to the fill light driving unit 33. The second signal is the fill light signal (line0_led).
[0098] Similarly, for every two rows of the image to be acquired, the main control unit 31 sends the first signal in the above manner, and the main control unit 31 sends the second signal to the fill light drive unit 33 in the above manner.
[0099] For example, see Figure 4DAs shown, the main control unit 31 sends a first signal (sen_line0exp) to the sensor 32 based on the exposure start time of the first row of image data. It sends a first signal (sen_line1exp) to the sensor 32 based on the exposure start time of the second row of image data. It sends a first signal (sen_line2exp) to the sensor 32 based on the exposure start time of the third row of image data. It sends a first signal (sen_line3exp) to the sensor 32 based on the exposure start time of the fourth row of image data. The main control unit 31 sends a second signal (line0_led) to the fill light driver unit 33 based on the fill light start times of the first, second, third, and fourth rows of image data.
[0100] Similarly, for every four rows of the image to be acquired, the main control unit 31 sends the first signal in the above manner, and the main control unit 31 sends the second signal to the fill light drive unit 33 in the above manner.
[0101] This application provides an imaging device, see [link to relevant documentation]. Figure 5A The diagram shows the structure of an imaging device, which may include a main control unit 51, a sensor 52, a filter circuit 53, a fill light drive unit 54, and a fill light 55. The main control unit 51 is connected to the sensor 52, and also to the filter circuit 53. The filter circuit 53 is connected to the fill light drive unit 54, meaning the filter circuit 53 is located between the main control unit 51 and the fill light drive unit 54. The fill light drive unit 54 is connected to the fill light 55.
[0102] The main control unit 51 and the sensor 52 can be connected via a data bus, and the sensor 52 sends image data to the main control unit 51 via the data bus. Sensor control signals can be transmitted between the main control unit 51 and the sensor 52, and light source control signals can be transmitted between the main control unit 51 and the filter circuit 53.
[0103] For example, the main control unit 51 and the filter circuit 53 can be connected through a control signal line. The main control unit 51 and the filter circuit 53 can transmit light source control signals through the control signal line. In subsequent processes, the signals transmitted between the main control unit 51 and the filter circuit 53 can all be light source control signals.
[0104] The filter circuit 53 can include a second-order RC (Resistor-Capacitance) filter circuit, or other types of filter circuits. The type of filter circuit 53 is not limited; taking a second-order RC filter circuit as an example, it can include a first resistor, a second resistor, a first capacitor, and a second capacitor. For example, the first and second resistors can be connected in series, the first resistor and the first capacitor can be connected in series, the second resistor and the second capacitor can be connected in series, or the first and second capacitors can be connected in parallel.
[0105] See Figure 5B The diagram shows the structure of a second-order RC filter circuit. The first end of the first resistor is connected to the main control unit 51, the second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is connected to the fill light driving unit 54 (such as the management device of the fill light driving unit 54). The first end of the first capacitor is connected to the second end of the first resistor, the second end of the first capacitor is connected to ground, the first end of the second capacitor is connected to the second end of the second resistor, and the second end of the second capacitor is connected to ground.
[0106] The fill light driver unit 54 is used to control the fill light 55. The fill light driver unit 54 is connected to the filter circuit 53 via signal lines (such as control signal lines). The fill light driver unit 54 may include an EN pin or a DIM pin (brightness control terminal or dimming pin). The fill light driver unit 54 is connected to the signal lines via the EN pin or DIM pin, and these signal lines are connected to the filter circuit 53. The filter circuit 53 sends signals to the fill light driver unit 54 via the signal lines.
[0107] See Figure 5C The diagram shows the structure of the fill light driving unit 54. The fill light driving unit 54 may include a management device, multiple resistors, multiple capacitors, MOSFETs, and multiple diodes. The management device is used to implement management functions. The fill light driving unit 54 receives signals sent by the filter circuit 53 through the management device, and sends signals to the fill light 55 through the management device.
[0108] The fill light driver unit 54 may include resistors R1 and R2, capacitor C1, and diode D1. Resistors R1 and R2 are connected in series, with R1 connected to the power supply and R2 connected to ground. Capacitor C1 is connected in parallel with resistor R2, and diode D1 is connected in parallel with capacitor C1. The fill light driver unit 54 may also include diode D2 and capacitor C2. Diode D2 is connected to diode D1 and is connected to the VCC pin of the management device. Capacitor C2 is connected to ground and is also connected to the VCC pin of the management device.
[0109] The fill light driver unit 54 may include a resistor R3, capacitors C3, C4, and C5. Resistor R3 is connected to the power supply terminal and also to the IN pin of the management device. Capacitors C3, C4, and C5 are connected in parallel and are all connected to the IN pin of the management device (i.e., connected to resistor R3). Furthermore, all three capacitors are connected to ground.
[0110] The fill light driver unit 54 may include diode D3, resistors R4, R5, and R6, capacitor C6, inductor L1, and MOSFET. Diode D3 is connected to the IN pin of the management device and also to the MOSFET. Resistor R4 is connected to the IN pin of the management device and also to the RS pin of the management device. Capacitor C6 is connected to the RS pin of the management device and also to the fill light 55. Figure 5C In the circuit, both ends of capacitor C6 are connected to fill light 55. Inductor L1 is connected to fill light 55 (i.e., inductor L1 is connected to capacitor C6), and inductor L1 is also connected to MOSFET.
[0111] Resistor R5 is connected to the DR pin of the management device and also to the MOSFET. Resistor R6 is connected to the GND pin of the management device and also to the MOSFET (i.e., resistor R6 is connected to resistor R5). The first terminal of the MOSFET is connected to resistors R5 and R6, the second terminal is connected to inductor L1 and diode D3, and the third terminal is connected to ground. Additionally, one end of the fill light 55 is connected to the RS pin of the management device, and the other end is connected to capacitor C6 and inductor L1.
[0112] For example, the main control unit 51 can determine the exposure start time and exposure duration of the target row, where the target row can be each row of the image to be acquired. For instance, see... Figure 2 As shown, the main control unit 51 can determine the exposure start time and exposure duration of the first row, the exposure start time and exposure duration of the second row, and so on. That is, the main control unit 51 can determine the exposure start time and exposure duration of each row.
[0113] For example, the main control unit 51 can determine the image illumination start time and image illumination duration of the image to be acquired. The image illumination start time can be determined based on the exposure start time of the first row of the image to be acquired, such as the image illumination start time being the exposure start time of the first row of the image to be acquired. In addition, the image illumination duration can be determined based on the exposure duration of the image to be acquired, such as the image illumination duration being the exposure duration of the image to be acquired (i.e., the complete exposure duration of all rows of the image to be acquired).
[0114] For example, the main control unit 51 can send a first signal to the sensor 52 based on the exposure start time, so that the sensor 52 exposes the target row within the exposure time and acquires the image data of the target row.
[0115] For example, the main control unit 51 sends a first signal to the sensor 52 based on the exposure start time of the first row of image data. The start time of the first signal represents the exposure start time of the first row of image data, and the duration of the first signal represents the exposure duration of the first row of image data. At the time corresponding to the first signal, the sensor 52 exposes the first row and acquires the image data of the first row. The main control unit 51 sends a first signal to the sensor 52 based on the exposure start time of the second row of image data. At the time corresponding to the first signal, the sensor 52 exposes the second row and acquires the image data of the second row, and so on.
[0116] For example, the main control unit 51 sends a third signal to the filter circuit 53 based on the start time of image illumination. That is, the main control unit 51 sends a third signal to the filter circuit 53 starting from the start time of image illumination.
[0117] The third signal may include a PWM signal, which is a signal that alternates between high and low levels. The voltage corresponding to the third signal can be denoted as the first voltage, which can be set according to actual needs, such as 3.3V. The duty cycle corresponding to the third signal (PWM signal) can be set according to actual needs. That is, the main control unit 51 can control the duty cycle corresponding to the third signal (PWM signal), and then control the second voltage corresponding to the fourth signal based on this duty cycle.
[0118] For example, after receiving the third signal, the filter circuit 53 sends a fourth signal to the fill light driving unit 54 based on the third signal, so that the fill light driving unit 54 controls the fill light 55 to perform fill light operation within the image fill light duration. For instance, when the filter circuit 53 sends the fourth signal to the fill light driving unit 54, the voltage corresponding to the fourth signal can be recorded as the second voltage. The second voltage can be less than the first voltage, and the current corresponding to the second voltage (i.e., the fill light current) is less than the current corresponding to the first voltage (i.e., the fill light current).
[0119] For example, the third signal is a signal that alternates between high and low levels, and the duration of the third signal is the duration of image illumination. The fourth signal is a high-level signal, and the duration of the fourth signal is the duration of image illumination. Based on this, the filter circuit 53 needs to convert the third signal into the fourth signal.
[0120] Considering that the fourth signal is a high-level signal, after receiving the fourth signal, the fill light driving unit 54 controls the fill light 55 to perform fill light operation during the high-level signal period of the fourth signal. Since the duration of the fourth signal is the image fill light duration, the fill light driving unit 54 can control the fill light 55 to perform fill light operation within the image fill light duration during the high-level signal period.
[0121] For example, regarding how to convert the third signal into the fourth signal, the filter circuit 53 can determine the second voltage based on the first voltage and the duty cycle of the third signal (PWM signal), and then convert the third signal into a high-level signal of the second voltage, which serves as the fourth signal. The duration of the third signal can be the image illumination duration, and the duration of the fourth signal can also be the image illumination duration.
[0122] For example, the second voltage can be determined using the following formula: D2 = D1 × T, where D2 represents the second voltage, D1 represents the first voltage (e.g., 3.3V), and T represents the duty cycle of the third signal (PWM signal). If the second voltage needs to be controlled to be 1 / 4 of the first voltage, then when the main control unit 51 sends the third signal, the corresponding duty cycle is 1 / 4; if the second voltage needs to be controlled to be 1 / 8 of the first voltage, then when the main control unit 51 sends the third signal, the corresponding duty cycle is 1 / 8, and so on.
[0123] For example, due to the characteristics of the roller shutter exposure sensor, at the start of exposure, the sensor scans and exposes line by line until all pixels are exposed. This requires the supplementary lighting to maintain a consistent brightness during the exposure process; there cannot be any change in the brightness of the supplementary lighting, otherwise stripes will appear in the image. This supplementary lighting method can be called a constant-on supplementary lighting method, meaning that the supplementary lighting needs to remain constantly on during the exposure process.
[0124] However, for imaging devices that integrate the fill light (light source) into the camera (such as industrial cameras), the fill light consumes a lot of power, resulting in a large temperature rise in the industrial camera. If the drive current of the fill light (the brightness of the fill light) is reduced, the fill light effect required for sensor exposure cannot be met.
[0125] Based on this, this embodiment proposes a constant-light supplementary lighting scheme for a roller shutter exposure sensor. The structure of the constant-light supplementary lighting scheme can be found in [reference needed]. Figure 5A As shown. For the constant-on fill light scheme, during the exposure process, the filter circuit 53 converts the third signal into a fourth signal. The second voltage corresponding to the fourth signal can be less than the first voltage corresponding to the third signal, and the fill light current corresponding to the second voltage can be less than the fill light current corresponding to the first voltage. This increases the flexibility of constant-on fill light by adjusting the current of the fill light by reducing the voltage.
[0126] For example, if the first voltage corresponding to the third signal is 3.3V and the duty cycle corresponding to the third signal is 10%, then the second voltage corresponding to the fourth signal is 0.33V. Thus, when the filter circuit 53 sends the fourth signal to the fill light driver unit 54, the fourth signal (voltage 0.33V) is used to ensure that the fill light current of the EN / DIM pin of the fill light driver unit 54 is 10% of the maximum current. Assuming the maximum current of the EN / DIM pin of the fill light driver unit 54 is 1A, then when the duty cycle of the third signal is 10%, the fourth signal is used to ensure that the fill light current of the EN / DIM pin of the fill light driver unit 54 is 0.1A.
[0127] This application provides an imaging device, see [link to relevant documentation]. Figure 6A The diagram shows the structure of an imaging device, which includes a main control unit 61, a sensor 62, a filter circuit 63, a supplementary light drive unit 64, a supplementary light 65, a first switch circuit 66, and a second switch circuit 67. The main control unit 61 is connected to the sensor 62. The main control unit 61 is connected to the filter circuit 63, which can be connected to the second switch circuit 67. The second switch circuit 67 is connected to the supplementary light drive unit 64; that is, the second switch circuit 67 is located between the filter circuit 63 and the supplementary light drive unit 64. The main control unit 61 can be connected to the second switch circuit 67; that is, the second switch circuit 67 is located between the main control unit 61 and the supplementary light drive unit 64. The main control unit 61 can be connected to the first switch circuit 66, which is connected to the supplementary light drive unit 64; that is, the first switch circuit 66 is located between the main control unit 61 and the supplementary light drive unit 64.
[0128] For example, when the strobe light supplement mode is enabled, the main control unit 61 can send a first closing signal to the first switching circuit 66 (the first switching circuit 66 can also be called a MOS switching circuit). The first closing signal can also be called a strobe light supplement switch circuit control signal. The first closing signal is used to close the first switching circuit 66. When the first closing signal is received, the first switching circuit 66 closes, so that the link between the main control unit 61 and the supplement light driving unit 64 is connected.
[0129] When the link between the main control unit 61 and the fill light driver unit 64 is established, the main control unit 61 can also send a second signal to the fill light driver unit 64 through the first switching circuit 66, so that the fill light driver unit 64 controls the fill light 65 to perform fill light operation. For example, when the strobe fill light mode is enabled, the main control unit 61 determines the fill light start time and fill light duration of the target row, and sends a second signal (the second signal is a light source control signal) to the fill light driver unit 64 based on the fill light start time. For the implementation process of the strobe fill light mode, please refer to [link to relevant documentation]. Figure 3 And related descriptions, which will not be repeated here.
[0130] When the strobe fill light mode is enabled, the main control unit 61 can also send a first disconnect signal to the second switching circuit 67 (which can also be called a MOS switching circuit). This first disconnect signal, also known as a constant-on fill light switch circuit control signal, is used to disconnect the second switching circuit 67. Upon receiving the first disconnect signal, the second switching circuit 67 disconnects, thus breaking the link between the filter circuit 64 and the fill light driver unit 64. Based on this, the main control unit 61 will not send light source control signals to the fill light driver unit 64 through the filter circuit 64.
[0131] For example, when the constant-on fill light mode is enabled, the main control unit 61 can send a second closing signal to the second switching circuit 67. The second closing signal can also be called the constant-on fill light switch circuit control signal. The second closing signal is used to close the second switching circuit 67. When the second closing signal is received, the second switching circuit 67 closes, which makes the link between the filter circuit 63 and the fill light driving unit 64 conduct, that is, the link between the main control unit 61, the filter circuit 63 and the fill light driving unit 64 is conducted.
[0132] When the link between the filter circuit 63 and the fill light driving unit 64 is established, the main control unit 61 can also send a third signal (the third signal is a light source control signal) to the filter circuit 63. The filter circuit 63 then sends a fourth signal to the fill light driving unit 64 via the second switching circuit 67, causing the fill light driving unit 64 to control the fill light 65 to perform fill light operation. For example, when the constant-on fill light mode is enabled, the main control unit 61 determines the start time and duration of the image fill light for the image to be acquired, and sends a third signal to the filter circuit 63 based on the start time. The filter circuit 63 then sends a fourth signal to the fill light driving unit 64. For details on the implementation process in the constant-on fill light mode, please refer to [link to relevant documentation]. Figure 5A And related descriptions.
[0133] When the constant-on fill light mode is enabled, the main control unit 61 can also send a second disconnect signal to the first switching circuit 66. The second disconnect signal can also be called the strobe fill light switch circuit control signal. The second disconnect signal is used to disconnect the first switching circuit 66. When the first switching circuit 66 receives the second disconnect signal, the first switching circuit 66 disconnects, thereby disconnecting the link between the main control unit 61 and the fill light driver unit 64.
[0134] For example, if the frame rate of the imaging device is greater than a preset threshold (which can be configured according to actual needs), the strobe fill light mode can be enabled, that is, the main control unit 61 determines to enable the strobe fill light mode. If the frame rate of the imaging device is not greater than the preset threshold, the constant-on fill light mode can be enabled, that is, the main control unit 61 determines to enable the constant-on fill light mode. The above are just examples of enabling the strobe fill light mode or the constant-on fill light mode. Other methods can also be used to enable the strobe fill light mode or the constant-on fill light mode, and there are no restrictions on this.
[0135] The filter circuit 63 is a second-order RC filter circuit, which includes a first resistor, a second resistor, a first capacitor, and a second capacitor. The first resistor and the second resistor are connected in series, the first resistor and the first capacitor are connected in series, the second resistor and the second capacitor are connected in series, and the first capacitor and the second capacitor are connected in parallel.
[0136] The fill light driver unit 64 may include an EN pin or a DIM pin. A first switching circuit 66 is connected to the EN pin or DIM pin of the fill light driver unit 64, and a second switching circuit 67 is also connected to the EN pin or DIM pin of the fill light driver unit 64. The fill light driver unit 64 may include a management device, multiple resistors, multiple capacitors, a MOSFET, and multiple diodes. For the structure of the fill light driver unit 64, please refer to [reference needed]. Figure 5C As shown, it will not be repeated here.
[0137] For the first switching circuit 66 and the second switching circuit 67, see [link / reference]. Figure 6B The diagram shows the structure of the first switching circuit 66 and the second switching circuit 67. The first switching circuit 66 is connected to the main control unit 61 through resistor R11. In this branch, the main control unit 61 sends a light source control signal (such as a second signal) to the first switching circuit 66. Capacitor C11 is connected to the first switching circuit 66 and is also connected to ground.
[0138] The first switching circuit 66 may also include a resistor R12. The first switching circuit 66 may also be connected to the main control unit 61 through the resistor R12. In this branch, the main control unit 61 sends a strobe light switch circuit control signal (such as a first closing signal or a second opening signal) to the first switching circuit 66.
[0139] The first switching circuit 66 may further include a resistor R13, a capacitor C12, a MOSFET Q11, a resistor R14, a transistor Q12, a resistor R15, and a capacitor C13. Resistor R13 and capacitor C12 are connected in parallel. One end of resistor R13 (capacitor C12) is connected to the first terminal of MOSFET Q11, and resistor R11 (capacitor C11) is also connected to the first terminal of MOSFET Q11. The other end of resistor R13 (capacitor C12) is connected to the second terminal of MOSFET Q11, and resistor R14 is also connected to the second terminal of MOSFET Q11. Furthermore, the third terminal of MOSFET Q11 is connected to the fill light driving unit 64 (such as the EN pin or DIM pin of a management device).
[0140] Resistor R14 is connected to the second terminal of MOSFET Q11, and resistor R14 is also connected to the first terminal of transistor Q12. The second terminal of transistor Q12 is connected to ground. Resistor R15 and capacitor C13 are connected in parallel. One end of resistor R15 (capacitor C13) is connected to the third terminal of transistor Q12, and resistor R12 is also connected to the third terminal of transistor Q12. The other end of resistor R15 (capacitor C13) is connected to ground.
[0141] The second switching circuit 67 includes a resistor R21, a capacitor C21, a MOSFET Q21, a resistor R22, a transistor Q22, a resistor R23, a capacitor C22, and a resistor R24. The second switching circuit 67 is connected to a filter circuit 63 via the MOSFET Q21. The filter circuit 63 is connected to the main control unit 61. In this branch, the main control unit 61 sends a light source control signal (such as a third signal) to the filter circuit 63, and the filter circuit 63 sends a fourth signal to the second switching circuit 67, which in turn sends the fourth signal to the supplementary lighting drive unit 64.
[0142] In addition, the second switching circuit 67 may also include a resistor R24. The second switching circuit 67 may also be connected to the main control unit 61 through the resistor R24. In this branch, the main control unit 61 sends a control signal for the constant-on supplementary light switch circuit (such as a second closed signal or a first open signal) to the second switching circuit 67.
[0143] Resistor R21 and capacitor C21 are connected in parallel. One end of resistor R21 (capacitor C21) is connected to the first terminal of MOSFET Q21, and filter circuit 63 is also connected to the first terminal of MOSFET Q21. The other end of resistor R21 (capacitor C21) is connected to the second terminal of MOSFET Q21, and resistor R22 is also connected to the second terminal of MOSFET Q21. Furthermore, the third terminal of MOSFET Q21 is connected to the fill light driver unit 54 (e.g., EN pin or DIM pin). Resistor R22 is connected to the first terminal of transistor Q22. The second terminal of transistor Q22 is connected to ground. Resistor R23 and capacitor C22 are connected in parallel. One end of resistor R23 (capacitor C22) is connected to the third terminal of transistor Q22, and the other end of resistor R23 (capacitor C22) is connected to ground. One end of resistor R24 is connected to the third terminal of transistor Q22, and the other end of resistor R24 is connected to main control unit 61.
[0144] In summary, this embodiment proposes a lighting scheme that is compatible with both constant-on lighting and strobe lighting. A first switching circuit 66 and a second switching circuit 67 are used to design a compatible lighting scheme for constant-on lighting and strobe lighting. Specifically, the first switching circuit 66 decides whether to enable or disable strobe lighting, while the second switching circuit 67 decides whether to enable or disable constant-on lighting. This increases the lighting flexibility of the rolling shutter exposure sensor, allowing the imaging device to use strobe lighting at high frame rates and constant-on lighting at low frame rates. Furthermore, the brightness can be adjusted by current during constant-on lighting.
[0145] To support both constant-on and strobe-flicker lighting schemes, the fill light driver unit 64 uses a driver circuit capable of digital PWM dimming and analog DIM dimming. When the strobe-flicker lighting mode is enabled, the fill light driver unit 64 uses digital PWM dimming, while when the constant-on lighting mode is enabled, the fill light driver unit 64 uses analog DIM dimming, achieving DIM analog current adjustment by controlling the PWM duty cycle.
[0146] This design addresses the compatibility of constant-on illumination and strobe illumination schemes. While strobe illumination offers lower overall average brightness, it consumes less power, making it suitable for high frame rate shooting. Constant-on illumination, on the other hand, boasts higher overall average brightness, but this higher brightness leads to greater power consumption, rendering it unsuitable for imaging devices. Therefore, an adjustable current design is implemented to increase the flexibility of constant-on illumination, enabling its use in low frame rate scenarios. Although the brightness of constant-on illumination is not as high as that of strobe illumination, the shorter illumination time of strobe illumination allows for greater brightness with the same power consumption.
[0147] As can be seen from the above technical solutions, this embodiment provides a strobe-based supplementary lighting scheme for a rolling shutter exposure sensor, solving the problem that the brightness of the supplementary light cannot change during the exposure process (it needs to remain constantly lit), otherwise stripes will appear in the image, thereby improving the supplementary lighting brightness of the imaging device and reducing the power consumption of the imaging device. Based on the characteristic that the sensor can ensure the image is stripe-free by ensuring the supplementary light is on for the same duration during each line of exposure, various power-saving strobe-based supplementary lighting schemes are provided. This embodiment provides a constant-on supplementary lighting scheme for a rolling shutter exposure sensor (i.e., a constant-on adjustable current supplementary lighting scheme), which can perform constant-on supplementary lighting when the frame rate of the imaging device is low, and the current can be adjusted. In this embodiment, a supplementary lighting driving circuit (such as a first switching circuit and a second switching circuit) is used to design a compatible scheme between the constant-on supplementary lighting scheme and the strobe-based supplementary lighting scheme, increasing the supplementary lighting flexibility of the rolling shutter exposure sensor imaging device.
[0148] Based on the same concept as the above method, this application proposes an image acquisition method applied to the main control unit of an imaging device. The imaging device may further include a sensor, a supplementary lighting drive unit, and a supplementary lighting unit. See [link to application details]. Figure 7 The diagram shown is a flowchart of the method, which may include: Step 701: Determine the exposure start time and exposure duration of the target row, and the fill light start time and fill light duration of the target row. The fill light duration can be less than or equal to the exposure duration. The target row can be at least one row of the image to be acquired, and the fill light duration of each row of the image to be acquired can be the same.
[0149] Step 702: Send a first signal to the sensor based on the exposure start time, so that the sensor exposes the target row within the exposure duration and acquires image data of the target row.
[0150] Step 703: Send a second signal to the fill light driving unit based on the fill light start time, so that the fill light driving unit controls the fill light to perform fill light operation within the fill light duration.
[0151] For example, when the target row is a single row of the image to be captured, the start time of the fill light is determined based on the start time of the exposure, and the fill light duration is 1 / M of the exposure duration, where M is greater than 1; when the target row is N consecutive rows of the image to be captured, N is greater than 1, the start times of the exposure are different for different rows, the exposure durations of different rows are the same, and the N consecutive rows correspond to the same start time of the fill light; the start time of the fill light is determined based on the start time of the exposure of the last row in the N consecutive rows, and the fill light duration is 1 / K of the exposure duration, where K is greater than 1.
[0152] For example, the exposure duration can be an integer multiple of 2; N can be an integer multiple of 2.
[0153] For example, the imaging device further includes a filtering circuit, which may be located between the main control unit and the fill light driving unit. The image acquisition method may further include: determining the image fill light start time and image fill light duration of the image to be acquired; sending a third signal to the filtering circuit based on the image fill light start time, so that the filtering circuit sends a fourth signal to the fill light driving unit, so that the fill light driving unit controls the fill light to perform fill light operation within the image fill light duration; wherein the image fill light start time is determined based on the exposure start time of the first row of the image to be acquired; wherein the first voltage corresponding to the third signal is greater than the second voltage corresponding to the fourth signal; wherein the fill light current corresponding to the second voltage is less than the fill light current corresponding to the first voltage.
[0154] For example, the third signal may include, but is not limited to, a PWM signal, and the second voltage corresponding to the fourth signal may be determined based on the first voltage of the third signal and the duty cycle of the PWM signal.
[0155] For example, the filter circuit may include a second-order RC filter circuit, which includes a first resistor, a second resistor, a first capacitor, and a second capacitor; the first resistor and the second resistor are connected in series, the first resistor and the first capacitor are connected in series, the second resistor and the second capacitor are connected in series, and the first capacitor and the second capacitor are connected in parallel.
[0156] For example, the image acquisition method may further include: when the strobe lighting mode is enabled, determining the start time and duration of the lighting for the target row, and sending a second signal to the lighting lamp driving unit based on the start time of the lighting; when the constant-on lighting mode is enabled, determining the start time and duration of the image lighting for the image to be acquired, and sending a third signal to the filtering circuit based on the start time of the image lighting.
[0157] For example, the image acquisition method further includes: if the frame rate of the imaging device is greater than a preset threshold, then a strobe fill light mode is enabled; if the frame rate of the imaging device is not greater than the preset threshold, then a constant light fill light mode is enabled.
[0158] For example, the imaging device may further include a first switching circuit and a second switching circuit, wherein the first switching circuit may be located between the main control unit and the supplementary light driving unit, and the second switching circuit may be located between the filter circuit and the supplementary light driving unit. Based on this, the image acquisition method further includes: When the strobe fill light mode is enabled, a first closing signal is sent to the first switching circuit to close the first switching circuit so that the link between the main control unit and the fill light driving unit is connected; and a first disconnect signal is sent to the second switching circuit to disconnect the second switching circuit so that the link between the filter circuit and the fill light driving unit is disconnected.
[0159] Alternatively, when the constant-on fill light mode is enabled, a second closing signal is sent to the second switching circuit to close the second switching circuit so that the link between the filter circuit and the fill light driving unit is connected; and a second disconnect signal is sent to the first switching circuit to disconnect the first switching circuit so that the link between the main control unit and the fill light driving unit is disconnected.
[0160] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. An imaging device, characterized in that, The imaging device includes a main control unit, a sensor, a fill light drive unit, and a fill light; the main control unit is connected to the sensor, the main control unit is connected to the fill light drive unit, and the fill light drive unit is connected to the fill light. The main control unit is used to determine the exposure start time and exposure duration of the target row, the fill light start time and fill light duration of the target row, wherein the fill light duration is less than or equal to the exposure duration; The target row is at least one row of the image to be acquired, and the supplementary lighting duration is the same for each row of the image to be acquired. Based on the exposure start time, a first signal is sent to the sensor so that the sensor exposes the target row within the exposure duration and acquires image data of the target row; Based on the start time of the supplementary lighting, a second signal is sent to the supplementary lighting driver unit so that the supplementary lighting driver unit controls the supplementary lighting to perform supplementary lighting operation within the supplementary lighting duration.
2. The imaging device according to claim 1, characterized in that, When the target row is a row of the image to be acquired, the start time of the fill light is determined based on the start time of the exposure, and the duration of the fill light is 1 / M of the exposure duration, where M is greater than 1; When the target row is N consecutive rows of the image to be acquired, where N is greater than 1, the exposure start time of different rows is different, the exposure duration of different rows is the same, and the N consecutive rows correspond to the same supplementary light start time; wherein, the supplementary light start time is determined based on the exposure start time of the last row in the N consecutive rows, and the supplementary light duration is 1 / K of the exposure duration, where K is greater than 1.
3. The imaging device according to claim 1 or 2, characterized in that, The exposure duration is an integer multiple of 2; N is an integer multiple of 2.
4. The imaging device according to claim 1, characterized in that, The imaging device also includes a filtering circuit, which is located between the main control unit and the fill light driving unit. The main control unit is used to determine the image illumination start time and image illumination duration of the image to be acquired, and to send a third signal to the filtering circuit based on the image illumination start time; wherein, the image illumination start time is determined based on the exposure start time of the first row of the image to be acquired; The filtering circuit is used to send a fourth signal to the fill light driving unit so that the fill light driving unit controls the fill light to perform fill light operation during the image fill light duration; Wherein, the first voltage corresponding to the third signal is greater than the second voltage corresponding to the fourth signal; The supplementary light current corresponding to the second voltage is less than the supplementary light current corresponding to the first voltage.
5. The imaging device according to claim 4, characterized in that, The third signal includes a pulse width modulation (PWM) signal, and the filtering circuit is used to determine the second voltage based on the first voltage and the duty cycle of the PWM signal.
6. The imaging device according to claim 4, characterized in that, The filtering circuit includes a second-order RC filtering circuit, which includes a first resistor, a second resistor, a first capacitor, and a second capacitor; the first resistor and the second resistor are connected in series, the first resistor and the first capacitor are connected in series, the second resistor and the second capacitor are connected in series, and the first capacitor and the second capacitor are connected in parallel.
7. The imaging device according to claim 4, characterized in that, The main control unit is used to determine the start time and duration of the fill light for the target row when the strobe fill light mode is enabled, and send a second signal to the fill light driving unit based on the start time of the fill light; or, when the constant light fill light mode is enabled, determine the start time and duration of the image fill light for the image to be acquired, and send a third signal to the filtering circuit based on the start time of the image fill light.
8. The imaging device according to claim 7, characterized in that, If the frame rate of the imaging device is greater than a preset threshold, then the strobe fill light mode is enabled; If the frame rate of the imaging device is not greater than a preset threshold, then the constant-on fill light mode is enabled.
9. The imaging device according to claim 7, characterized in that, The imaging device further includes a first switching circuit and a second switching circuit. The first switching circuit is located between the main control unit and the fill light driving unit, and the second switching circuit is located between the filter circuit and the fill light driving unit. The main control unit is configured to send a first closing signal to the first switching circuit when the strobe fill light mode is enabled, the first closing signal being used to close the first switching circuit so as to connect the link between the main control unit and the fill light driving unit; and to send a first disconnect signal to the second switching circuit, the first disconnect signal being used to disconnect the second switching circuit so as to disconnect the link between the filter circuit and the fill light driving unit. The main control unit is configured to, when the constant-on fill light mode is enabled, send a second closing signal to the second switching circuit, the second closing signal being used to close the second switching circuit so as to connect the link between the filter circuit and the fill light driving unit; and send a second disconnect signal to the first switching circuit, the second disconnect signal being used to disconnect the first switching circuit so as to disconnect the link between the main control unit and the fill light driving unit.
10. An image acquisition method, characterized in that, A main control unit used in an imaging device, the imaging device further including a sensor, a fill light driving unit, and a fill light, the method comprising: Determine the exposure start time and exposure duration of the target row, and the fill light start time and fill light duration of the target row, wherein the fill light duration is less than or equal to the exposure duration; wherein the target row is at least one row of the image to be acquired, and the fill light duration of each row of the image to be acquired is the same; Based on the exposure start time, a first signal is sent to the sensor so that the sensor exposes the target row within the exposure duration and acquires image data of the target row; Based on the start time of the supplementary lighting, a second signal is sent to the supplementary lighting driver unit so that the supplementary lighting driver unit controls the supplementary lighting to perform supplementary lighting operation within the supplementary lighting duration.
11. The method according to claim 10, characterized in that, When the target row is a single row of the image to be captured, the supplementary lighting start time is determined based on the exposure start time, and the supplementary lighting duration is 1 / M of the exposure duration, where M is greater than 1; when the target row is N consecutive rows of the image to be captured, where N is greater than 1, the exposure start times of different rows are different, and the exposure durations of different rows are the same, and the N consecutive rows correspond to the same supplementary lighting start time; the supplementary lighting start time is determined based on the exposure start time of the last row in the N consecutive rows, and the supplementary lighting duration is 1 / K of the exposure duration, where K is greater than 1; Alternatively, the exposure duration is an integer multiple of 2; N is an integer multiple of 2; Alternatively, the imaging device further includes a filtering circuit located between the main control unit and the fill light driving unit; the method further includes: determining the image fill light start time and image fill light duration of the image to be acquired; sending a third signal to the filtering circuit based on the image fill light start time, so that the filtering circuit sends a fourth signal to the fill light driving unit, so that the fill light driving unit controls the fill light to perform fill light operation within the image fill light duration; wherein, the image fill light start time is determined based on the exposure start time of the first row of the image to be acquired; wherein, the first voltage corresponding to the third signal is greater than the second voltage corresponding to the fourth signal; wherein, the fill light current corresponding to the second voltage is less than the fill light current corresponding to the first voltage; Alternatively, the third signal may include a pulse width modulation (PWM) signal, and the second voltage may be determined based on the first voltage of the third signal and the duty cycle of the PWM signal. Alternatively, the filter circuit includes a second-order RC filter circuit, which includes a first resistor, a second resistor, a first capacitor, and a second capacitor; the first resistor and the second resistor are connected in series, the first resistor and the first capacitor are connected in series, the second resistor and the second capacitor are connected in series, and the first capacitor and the second capacitor are connected in parallel. Alternatively, the method further includes: when the strobe fill light mode is enabled, determining the fill light start time and fill light duration of the target row, and sending a second signal to the fill light driving unit based on the fill light start time; when the constant light fill light mode is enabled, determining the image fill light start time and image fill light duration of the image to be acquired, and sending a third signal to the filter circuit based on the image fill light start time. Alternatively, the method further includes: if the frame rate of the imaging device is greater than a preset threshold, then enabling the strobe fill light mode; if the frame rate of the imaging device is not greater than the preset threshold, then enabling the constant light fill light mode. Alternatively, the imaging device further includes a first switching circuit and a second switching circuit, the first switching circuit being located between the main control unit and the fill light driving unit, and the second switching circuit being located between the filter circuit and the fill light driving unit; the method further includes: when the strobe fill light mode is enabled, sending a first closing signal to the first switching circuit, the first closing signal being used to close the first switching circuit to enable the link between the main control unit and the fill light driving unit; and sending a first disconnect signal to the second switching circuit, the first disconnect signal being used to disconnect the second switching circuit to disable the link between the filter circuit and the fill light driving unit; or, when the constant-on fill light mode is enabled, sending a second closing signal to the second switching circuit, the second closing signal being used to close the second switching circuit to enable the link between the filter circuit and the fill light driving unit; and sending a second disconnect signal to the first switching circuit, the second disconnect signal being used to disconnect the first switching circuit to disable the link between the main control unit and the fill light driving unit.