Image acquisition method and image acquisition device
By adjusting the output electrical signal of the circuit driving device, the light source device and the image sensor are controlled to acquire images at different light intensities, solving the problem of a smaller upper limit of the line frequency of the image sensor and achieving higher line frequency and production efficiency.
Patent Information
- Application Number
- CN202411946361.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the upper limit of the line frequency of the image sensor is small, which limits the running speed of the production line and affects the production efficiency.
By adjusting the output electrical signal of the circuit driving device, the light source device is controlled to light up at intervals under different light intensities, and the image sensor is respectively controlled to collect bright field sub-feature images and dark field sub-feature images to reduce the exposure time and increase the line frequency.
It realizes higher line frequency of image sensors, meets the needs of high-speed production lines, is suitable for image acquisition in high-speed and high-dynamic scenes, and improves production efficiency.
Smart Images

Figure CN119767150A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image acquisition technology, and in particular, relates to an image acquisition method and an image acquisition device. Background Art
[0002] By collecting bright field images and dark field images of the object to be inspected, defects of the object to be inspected can be detected based on the collected bright field images and dark field images. In the related art, the acquisition of bright field images and dark field images is mainly achieved by controlling the pulse width of the bright field and dark field output by the image sensor respectively. However, the upper limit of the line frequency of the image sensor in the above method is small, the operating speed of the production line is limited, and the production efficiency is affected. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes an image acquisition method and an image acquisition device, which can reduce the exposure time requirement of the image sensor, thereby obtaining a higher line frequency, meeting the production line movement speed requirement, and being suitable for image acquisition of high-speed and high-dynamic scenes, thereby improving production efficiency.
[0004] In a first aspect, the present application provides an image acquisition method, wherein a light source device is connected to a circuit driving device; the method comprises:
[0005] Adjusting the output electrical signal corresponding to the circuit driving device to control the light source device to light up at intervals based on the first light intensity and the second light intensity;
[0006] When the light source device is illuminated based on the first light intensity, the image sensor is controlled to be exposed for a first time duration to capture a bright field sub-feature image corresponding to the object to be photographed; when the light source device is illuminated based on the second light intensity, the image sensor is controlled to be exposed for a second time duration to capture a dark field sub-feature image corresponding to the object to be photographed, so as to obtain a target image corresponding to the object to be photographed; the first time duration is greater than or equal to the second time duration.
[0007] According to the image acquisition method of the present application, the output electrical signal corresponding to the circuit driving device is adjusted to control the light source device to light up at intervals under the first light intensity and the second light intensity. When the light source device is at different light intensities, the image sensor is controlled to acquire the bright field sub-feature image and the dark field sub-feature image corresponding to the object to be photographed, respectively, to obtain the target image. There is no need to connect the light source device to the controller through a long wire, which reduces the transmission loss of large current, improves the effect of achieving large current stroboscopic effect, and can reduce the demand for exposure time of the image sensor, thereby obtaining a higher line frequency, meeting the movement speed requirements of the production line, and being suitable for image acquisition in high-speed and high-dynamic scenes, thereby improving production efficiency.
[0008] According to the image acquisition method of the present application, the step of adjusting the output electrical signal corresponding to the circuit driving device to control the light source device to light up at intervals based on the first light intensity and the second light intensity includes:
[0009] When the output electrical signal corresponding to the circuit driving device is adjusted to a first value, the light source device is controlled to light up based on the first light intensity, and the output electrical signal is maintained at the first value for a third time period;
[0010] When the output electrical signal corresponding to the circuit driving device is adjusted to a second value, the light source device is controlled to light up based on the second light intensity, and the output electrical signal is maintained at the second value for a fourth time period.
[0011] According to the image acquisition method of the present application, the third duration is the same as the fourth duration, and the first value is different from the second value;
[0012] or;
[0013] The third duration is different from the fourth duration, and the first value is the same as the second value;
[0014] or;
[0015] The third duration is different from the fourth duration, and the first value is different from the second value.
[0016] According to the image acquisition method of the present application, the output electrical signal is an output current.
[0017] According to the image acquisition method of the present application, the step of adjusting the output electrical signal corresponding to the circuit driving device includes:
[0018] Based on the lighting brightness and the lighting duration, the output electrical signal corresponding to the circuit driving device is adjusted.
[0019] According to the image acquisition method of the present application, when the light source device is illuminated based on the first light intensity, the image sensor is controlled to be exposed for a first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; when the light source device is illuminated based on the second light intensity, the image sensor is controlled to be exposed for a second time length to acquire a dark field sub-feature image corresponding to the object to be photographed, so as to obtain a target image corresponding to the object to be photographed, including:
[0020] Determining an image acquisition period based on a line frequency of the image sensor;
[0021] In the image acquisition cycle, and when the light source device is illuminated based on the first light intensity, the image sensor is controlled to be exposed for the first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; and in the case where the light source device is illuminated based on the second light intensity, the image sensor is controlled to be exposed for the second time length to acquire a dark field sub-feature image corresponding to the object to be photographed, so as to obtain multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images acquired in the image acquisition cycle;
[0022] The target image is obtained based on the multiple frames of bright field sub-feature images and the multiple frames of dark field sub-feature images.
[0023] According to the image acquisition method of the present application, obtaining the target image based on the multiple frames of bright field sub-feature images and the multiple frames of dark field sub-feature images includes:
[0024] Splitting the target image into a plurality of bright field sub-images and a plurality of dark field sub-images based on an arrangement order of the plurality of frames of bright field sub-feature images and the plurality of frames of dark field sub-feature images in the target image;
[0025] Based on the acquisition time of each of the bright field sub-images, stitching the bright field sub-images to obtain a target bright field image;
[0026] Based on the acquisition time of each of the dark field sub-images, each of the dark field sub-images is spliced to obtain a target dark field image.
[0027] According to the image acquisition method of the present application, the method further includes:
[0028] Acquire a differential signal output by a mobile device where the object to be photographed is located;
[0029] Based on the differential signal, the circuit driving device and the image sensor are controlled so that the lighting time of the light source device and the exposure time of the image sensor are synchronously triggered.
[0030] In a second aspect, the present application provides an image acquisition device, wherein a light source device is connected to a circuit driving device; the device comprises:
[0031] A first processing module, used for adjusting the output electrical signal corresponding to the circuit driving device, so as to control the light source device to light up at intervals based on the first light intensity and the second light intensity;
[0032] A second processing module is used to control the image sensor to expose for a first time duration to capture a bright field sub-feature image corresponding to the object to be photographed when the light source device is lit based on the first light intensity; and to control the image sensor to expose for a second time duration to capture a dark field sub-feature image corresponding to the object to be photographed when the light source device is lit based on the second light intensity, so as to obtain a target image corresponding to the object to be photographed; the first time duration is greater than or equal to the second time duration.
[0033] According to the image acquisition device of the present application, the output electrical signal corresponding to the circuit driving device is adjusted to control the light source device to light up at intervals under the first light intensity and the second light intensity. When the light source device is at different light intensities, the image sensor is controlled to acquire the bright field sub-feature image and the dark field sub-feature image corresponding to the object to be photographed, respectively, to obtain the target image. There is no need to connect the light source device to the controller through a long wire, which reduces the transmission loss of large current, improves the effect of achieving large current stroboscopic effect, and can reduce the demand for exposure time of the image sensor, thereby obtaining a higher line frequency, meeting the movement speed requirements of the production line, and being suitable for image acquisition in high-speed and high-dynamic scenes, thereby improving production efficiency.
[0034] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image acquisition method as described in the first aspect above when executing the computer program.
[0035] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the image acquisition method as described in the first aspect above.
[0036] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the image acquisition method as described in the first aspect above.
[0037] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0038] By adjusting the output electrical signal corresponding to the circuit driving device, the light source device is controlled to light up at intervals under the first light intensity and the second light intensity. When the light source device is at different light intensities, the image sensor is controlled to collect the bright field sub-feature image and the dark field sub-feature image corresponding to the object to be photographed, so as to obtain the target image. There is no need to connect the light source device to the controller through a long wire, which reduces the transmission loss of large current, improves the effect of achieving large current stroboscopic, and can reduce the demand for exposure time of the image sensor, thereby obtaining a higher line frequency, meeting the movement speed requirements of the production line, and being suitable for image acquisition in high-speed and high-dynamic scenes, thereby improving production efficiency.
[0039] Furthermore, by setting the first numerical value, the second numerical value, the third duration and the fourth duration, the brightness and lighting duration of the light source device can be effectively adjusted, and by setting different numerical values for the first numerical value, the second numerical value, the third duration and the fourth duration, the dynamic range of the image captured by the image sensor is improved, so that the image captured by the image sensor can include more light and dark details, improve image quality, and thus improve the accuracy of subsequent defect detection.
[0040] Furthermore, by setting the output electrical signal corresponding to the circuit driving device to different values, and setting different values for the duration of maintaining the value of the output electrical signal, the dynamic range of the captured target image can be customized, and the setting method is flexible, thereby improving the user experience.
[0041] Furthermore, by controlling the synchronization of the exposure time of the image sensor and the lighting time of the light source device through the differential signal output by the mobile device where the object to be photographed is located, the accuracy of the image captured by the image sensor can be improved, and the invalid image captured due to the non-overlapping exposure time of the image sensor and the lighting time of the light source device can be alleviated, thereby improving the effectiveness and usability of the captured images.
[0042] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0044] Figure 1 This is one of the flowcharts of the image acquisition method provided in the embodiment of the present application;
[0045] Figure 2 It is one of the structural schematic diagrams of the image acquisition device provided in the embodiment of the present application;
[0046] Figure 3This is one of the principle schematic diagrams of the image acquisition method provided in the embodiment of the present application;
[0047] Figure 4 This is the second principle schematic diagram of the image acquisition method provided in the embodiment of the present application;
[0048] Figure 5 This is the third principle schematic diagram of the image acquisition method provided in the embodiment of the present application;
[0049] Figure 6 This is the second flow chart of the image acquisition method provided in the embodiment of the present application;
[0050] Figure 7 This is the third flow chart of the image acquisition method provided in the embodiment of the present application;
[0051] Figure 8 This is the fourth flowchart of the image acquisition method provided in the embodiment of the present application;
[0052] Fig. 9 This is the second structural schematic diagram of the image acquisition device provided in the embodiment of the present application;
[0053] Fig.10 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0054] Reference numerals:
[0055] Image sensor 210 ; light source device 220 ; moving device 230 . DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0057] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0058] The image acquisition method, image acquisition device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0059] The image acquisition method may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.
[0060] The terminal includes but is not limited to portable communication devices such as mobile phones or tablet computers. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer.
[0061] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.
[0062] The image acquisition method provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the image acquisition method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The image acquisition method provided in the embodiment of the present application is described below using the electronic device as an example of the execution subject.
[0063] like Figure 1 As shown, the image acquisition method includes: step 110 and step 120.
[0064] Step 110, adjusting the output electrical signal corresponding to the circuit driving device to control the light source device 220 to light up at intervals based on the first light intensity and the second light intensity;
[0065] In this step, the light source device 220 is a light source for forming a bright field environment and a dark field environment.
[0066] The circuit driving device is a control circuit for adjusting the brightness of the light source device 220 .
[0067] The circuit driving device may be a MOS (Metal-Oxide-Semiconductor) constant current driving device or an IGBT (Insulated Gate Bipolar Transistor) constant current driving device.
[0068] Of course, the circuit driving device may also be other circuits capable of adjusting the brightness of the light source device 220, and this application does not limit this.
[0069] The output electrical signal is an electrical signal for adjusting the brightness of the light source device 220 .
[0070] The output electrical signal may be output current, output voltage, output power, etc.
[0071] In some embodiments, the output electrical signal may be an output current.
[0072] In this embodiment, when the output electrical signal is an output current, the brightness of the light source device 220 can be directly adjusted by the output current.
[0073] According to the image acquisition method provided in the embodiment of the present application, by determining the output electrical signal as the output current, the brightness of the light source device 220 can be directly adjusted, thereby improving the control efficiency of the light source device 220.
[0074] It can be understood that, when the output electrical signal is an output voltage, the output current of the light source device 220 can be changed by adjusting the output voltage.
[0075] When the output electrical signal is output power, the output current of the light source device 220 can be changed by adjusting the output power.
[0076] The first illumination intensity is the illumination intensity for forming a bright field environment.
[0077] The second illumination intensity is the illumination intensity for forming a dark field environment.
[0078] The brightness corresponding to the first illumination intensity and the brightness corresponding to the second illumination intensity may be different.
[0079] Of course, in the actual implementation process, the first illumination intensity may also be the illumination intensity for forming a dark field, and the second illumination intensity may also be the illumination intensity for forming a bright field.
[0080] In the actual implementation process, the output electrical signal corresponding to the circuit driving device can be adjusted so that the light source device 220 can be lit at the first light intensity or the second light intensity, that is, the brightness of the light source device 220 is adjusted by analog dimming.
[0081] After the light source device 220 is set to light up for a period of time at the first light intensity by the circuit driving device, the light source device 220 can be set to light up for a period of time at the second light intensity, so that the light source device 220 is lit at intervals based on the first light intensity and the second light intensity.
[0082] Of course, the light source device 220 may also be controlled to light up at intervals at different light intensities in any other feasible manner, which is not limited in the present application.
[0083] Step 120: When the light source device 220 is illuminated based on the first light intensity, control the image sensor 210 to expose for a first time length to capture the bright field sub-feature image corresponding to the object to be photographed; when the light source device 220 is illuminated based on the second light intensity, control the image sensor 210 to expose for a second time length to capture the dark field sub-feature image corresponding to the object to be photographed, so as to obtain a target image corresponding to the object to be photographed.
[0084] In this step, the object to be photographed is an object that needs to be photographed in a bright field environment and a dark field environment.
[0085] The objects to be photographed may be lithium-ion battery separators, lithium-ion battery pole pieces, and membrane materials.
[0086] The image sensor 210 is used to capture an image to be captured.
[0087] The image sensor 210 may be a line array camera or an area array camera capable of performing line-by-line scanning.
[0088] Of course, in the actual implementation process, the image sensor 210 can also be any other image sensor 210 that can capture the object to be captured, and this application does not limit this.
[0089] The first duration is the exposure duration of the image sensor 210 for capturing an image in a bright field environment.
[0090] The second duration is the exposure duration of the image sensor 210 in a dark field environment to collect images.
[0091] The first duration is greater than or equal to the second duration.
[0092] The second duration needs to be greater than the exposure duration corresponding to the image sensor 210 .
[0093] The specific values of the first duration and the second duration may be determined based on the line frequency of the image sensor 210 , which is not limited in the present application.
[0094] It is understandable that the movement speed of the mobile device 230 where the object to be photographed is located may be different for different production lines.
[0095] The moving speed of the mobile device 230 where the object to be photographed is located may range from 250 m / min to 450 m / min.
[0096] When the moving speed range of the mobile device 230 where the object to be photographed is located is 250 m / min to 450 m / min, the line frequency range of the image sensor 210 may be 100 k to 180 k.
[0097] When the line frequency range of the image sensor 210 is 100 k to 180 k, the line period range of the image sensor 210 may be 11.1 us to 20 us.
[0098] The line period is the duration corresponding to an image acquisition by the image sensor 230 in a bright field environment and a dark field environment respectively.
[0099] The correlation between the line frequency and the line period can be determined based on the following formula:
[0100] Line frequency = (unit time / line period)*2.
[0101] The greater the line frequency of the image sensor 210 , the smaller the line period of the image sensor 210 .
[0102] It should be noted that, in the actual implementation process, the line frequency value and the line period value of the image sensor 210 may be determined based on the actual movement speed of the mobile device 230 where the object to be photographed is located.
[0103] The following describes the photographing process of the image sensor 210 by taking the product in the field of lithium battery separators as an example.
[0104] The production line speed of the object to be photographed in the lithium battery separator field may reach 350m / min, and the frequency of the image sensor 210 for photographing the object to be photographed needs to be above 70k, that is, the line frequency of the image sensor 210 needs to be above 70k.
[0105] When the line frequency of the image sensor 210 is 70k, that is, the image sensor 210 needs to capture 70k lines of images within a unit time (such as 1s), the line period of the image sensor 210 can be 14.2us, that is, the image sensor 210 performs an image capture once in a bright field environment and once in a dark field environment, and the total exposure time required is 14.2us (that is, the sum of the first time length and the second time length is 14.2us).
[0106] The line frequency is the number of lines of images that the image sensor 210 can capture within a unit of time.
[0107] The first duration may be 7.1 us, and the second duration may be 7.1 us.
[0108] The first duration may be 7.2 us, and the second duration may be 7 us.
[0109] Of course, the first duration and the second duration may also be other values, which are not limited in this application.
[0110] The bright field sub-feature image is an image obtained by scanning the object to be photographed in a bright field environment.
[0111] The dark field sub-feature image is an image obtained by scanning the object to be photographed in a dark field environment.
[0112] The target image is an image of the object to be photographed under different light intensities acquired by the image sensor 210 .
[0113] The target image can be used to detect defects on the object to be photographed.
[0114] like Figure 2 As shown, in the actual implementation process, the light source device 220 irradiating the object to be photographed can be controlled to light up alternately at a first light intensity and a second light intensity. When the light source device 220 is lit at the first light intensity, the image sensor 210 is controlled to perform image acquisition with a first exposure time to obtain a bright field sub-feature image corresponding to the object to be photographed. When the light source device 220 is lit at the second light intensity, the image sensor 210 is controlled to perform image acquisition with a second exposure time to obtain a dark field sub-feature image corresponding to the object to be photographed.
[0115] It should be noted that the image sensor 210 may collect bright field sub-feature images and dark field sub-feature images multiple times, and output alternately arranged bright field sub-feature images and dark field sub-feature images to obtain a target image.
[0116] The inventors found during the research and development process that in the related art, the acquisition of bright field images and dark field images is mainly achieved by controlling the pulse width of the bright field and dark field output by the image sensor 210. However, the upper limit of the line frequency of the image sensor 210 in the above method is relatively small, and the operating speed of the production line is limited, which affects the production efficiency.
[0117] In addition, the traditional light source device 220 needs to be connected to the controller through a longer extension cord with a larger cross-sectional area, which has a high transmission loss for large currents. The actual power is affected by the length of the extension cord, which is not conducive to the realization of large current stroboscopic operation and is not conducive to mass use.
[0118] The present application adjusts the output electrical signal corresponding to the circuit driving device, and controls the light source device 220 to light up at intervals based on the first light intensity and the second light intensity. There is no need to connect the light source device 220 to the controller through a long wire, which reduces the transmission loss of large currents and improves the effect of achieving large current stroboscopic effect. The setting method is simple and easy to operate, which is conducive to batch use. When the light source device 220 is at different light intensities, the image sensor 210 is controlled to capture the object to be photographed, and a bright field sub-feature image and a dark field sub-feature image are obtained, thereby obtaining a target image. The brightness of the light source device 220 can be changed by adjusting the output electrical signal corresponding to the circuit driving device to form a bright field environment and a dark field environment. In the process of controlling the image sensor 210 to capture images, there is no need to impose too many restrictions on the exposure time of the image sensor 210, and the upper limit of the line frequency of the image sensor 210 is increased to meet the movement speed requirements of the production line. It is suitable for image acquisition of high-speed and high-dynamic scenes, thereby improving production efficiency.
[0119] According to the image acquisition method provided in the embodiment of the present application, the output electrical signal corresponding to the circuit driving device is adjusted to control the light source device 220 to light up at intervals under the first light intensity and the second light intensity. When the light source device 220 is at different light intensities, the image sensor 210 is controlled to respectively acquire the bright field sub-feature image and the dark field sub-feature image corresponding to the object to be photographed to obtain the target image. There is no need to connect the light source device 220 to the controller through a long wire, which reduces the transmission loss of large current, improves the effect of achieving large current stroboscopic effect, and can reduce the exposure time requirement of the image sensor 210, thereby obtaining a higher line frequency, meeting the movement speed requirements of the production line, and being suitable for image acquisition in high-speed and high-dynamic scenes, thereby improving production efficiency.
[0120] In some embodiments, adjusting the output electrical signal corresponding to the circuit driving device may further include:
[0121] Based on the lighting brightness and the lighting duration, the output electrical signal corresponding to the circuit driving device is adjusted.
[0122] In this embodiment, the lighting brightness is the brightness of the light source device 220 when it is lit.
[0123] The lighting brightness includes: the brightness corresponding to the first light intensity and the brightness corresponding to the second light intensity.
[0124] It should be noted that the brightness corresponding to the first light intensity may be different from the brightness corresponding to the second light intensity.
[0125] The lighting duration is the duration that the light source device 220 is maintained at any lighting brightness.
[0126] The specific values of the lighting brightness and lighting duration can be customized by the user or determined based on actual conditions, and this application does not limit them.
[0127] In the actual implementation process, the output electrical signal corresponding to the circuit driving device can be adjusted through a Field-Programmable Gate Array (FPGA).
[0128] A program may be pre-set in the field programmable gate array, and the lighting brightness and lighting duration need to be set in the pre-set program, so that the output electrical signal corresponding to the circuit driving device is adjusted through the pre-set program in the field programmable gate array.
[0129] According to the image acquisition method provided in the embodiment of the present application, by setting the lighting brightness and lighting duration, the output electrical signal corresponding to the circuit driving device can be effectively adjusted to the required numerical value, so that based on the output electrical signal corresponding to the circuit driving device, the light source device 220 can be controlled to light up at the required lighting brightness and lighting duration, thereby improving the control efficiency and control accuracy of the light source device 220.
[0130] In some embodiments, step 110 may further include:
[0131] When the output electrical signal corresponding to the regulating circuit driving device is the first value, the light source device 220 is controlled to light up based on the first light intensity, and the output electrical signal is maintained at the first value for a third time period;
[0132] When the output electrical signal corresponding to the regulating circuit driving device is the second value, the light source device 220 is controlled to light up based on the second light intensity, and the output electrical signal is maintained at the second value for a fourth time period.
[0133] In this embodiment, the first value is the size of the output electrical signal that the circuit driving device needs to set when the light source device 220 is at the first light intensity.
[0134] The second value is the size of the output electrical signal that the circuit driving device needs to set when the light source is transposed to the second light intensity.
[0135] It can be understood that the magnitude of the first value needs to be smaller than the maximum electrical signal that the circuit driving device can reach.
[0136] The specific values of the first value and the second value can be user-defined or determined based on actual conditions, and this application does not limit this.
[0137] The third duration is the duration during which the light source device 220 is lit at the first light intensity.
[0138] The fourth duration is the duration during which the light source device 220 is illuminated at the second light intensity.
[0139] The specific values of the third duration and the fourth duration may be user-defined or determined based on actual conditions, such as the movement speed of the object to be photographed and the line frequency of the image sensor 210, etc., and this application does not limit this.
[0140] In the actual implementation process, the circuit driving device can be adjusted so that the output electrical signal corresponding to the circuit driving device is set to a first value, and the output electrical signal corresponding to the circuit driving device is set to maintain a third time period at the first value to form a bright field environment that lasts for a third time period.
[0141] The circuit driving device can be adjusted so that the output electrical signal corresponding to the circuit driving device is set to a second value, and the output electrical signal corresponding to the circuit driving device is set to maintain a fourth time period at the second value to form a dark field environment lasting for a fourth time period.
[0142] Taking the line frequency of the image sensor 210 as 70k as an example, the line period corresponding to collecting one bright field sub-feature image and one dark field sub-feature image is 14.2us.
[0143] The following takes the first exposure duration of the image sensor 210 as 7.1us (bright field exposure duration) and the second exposure duration as 7.1us (dark field exposure duration) as an example to illustrate the process of controlling the image sensor 210 to collect bright field sub-feature images and dark field sub-feature images.
[0144] The first value of the output electrical signal corresponding to the circuit driving device may be 2000 mA, the third duration may be 2.5 us, the second value may be 100 mA, and the fourth duration may be 0.5 us.
[0145] It should be noted that the dynamic range of the image captured by the image sensor 210 can be based on the following formula:
[0146] Dynamic range = bright field effective exposure time × bright field current value / dark field effective exposure time × dark field current value;
[0147] Calculated.
[0148] Dynamic range is the range between the lightest and darkest parts of a captured image.
[0149] The effective exposure time is the time during which the light source device 220 is simultaneously lit when the image sensor 210 is exposed; for example, the exposure time of the image sensor 210 is 4us, the light source device 220 is lit for 2us, and the effective exposure time is 2us.
[0150] When the first value can be 2000mA, the third duration can be 2.5us, the second value can be 100mA, the fourth duration can be 0.5us, the first duration is 7.1us, and the second duration is 7.1us, the effective exposure time of the bright field is 2.5us, the effective exposure time of the dark field is 0.5us, the bright field current value is 2000mA, and the dark field current value is 100mA. It can be calculated that the dynamic range under the setting conditions is 100:1, so that the captured image has a larger range and contains more light and dark details, which helps to improve the accuracy of subsequent defect detection.
[0151] During the research and development process, the inventor found that in the related technology, the image acquisition method suitable for high-speed and high-dynamic shooting scenes has a low dynamic range, so that the image contains fewer light and dark details, which makes the accuracy of subsequent defect detection low.
[0152] The present application sets the output electrical signal corresponding to the circuit driving device to a first value, so that the light source device 220 is illuminated based on the first light intensity, effectively forming a bright field environment, and sets the output electrical signal corresponding to the circuit driving device to a second value, so that the light source device 220 is illuminated based on the second light intensity, effectively forming a dark field environment, and by customizing the maintenance time of the bright field environment and the maintenance time of the dark field environment, under this lighting condition, the limitation on the sampling frequency of the image sensor 210 caused by the bright field environment and the dark field environment formed by setting the bright field exposure time and the dark field exposure time of the image sensor 210 is alleviated, and a higher dynamic range can be achieved, thereby improving the quality of the captured image.
[0153] According to the image acquisition method provided in the embodiment of the present application, by setting the first numerical value, the second numerical value, the third duration and the fourth duration, the brightness and lighting duration of the light source device 220 can be effectively adjusted, and by setting different numerical values for the first numerical value, the second numerical value, the third duration and the fourth duration, the dynamic range of the image captured by the image sensor 210 is improved, so that the image captured by the image sensor 210 can include more light and dark details, improve the image quality, and thus improve the accuracy of subsequent defect detection.
[0154] In some embodiments, the third duration is the same as the fourth duration, and the first value is different from the second value;
[0155] or;
[0156] The third duration is different from the fourth duration, and the first value is the same as the second value;
[0157] or;
[0158] The third duration is different from the fourth duration, and the first value is different from the second value.
[0159] In this embodiment, in order to make the sampling frequency of the image sensor 210 suitable for high-speed and high-dynamic application scenarios and to improve the dynamic range of the captured image, the third time length, the fourth time length, the first value and the second value can be set to appropriate values based on the calculation method of the dynamic range and by limiting the settings of the third time length and the fourth time length through the sampling frequency.
[0160] The first exposure time of the image sensor 210 is 7.1 us, and the second exposure time is 7.1 us, which can meet the application scenarios of high speed and high dynamic, that is, ensure the sampling frequency of the image sensor 210.
[0161] When the third duration is the same as the fourth duration, the first value and the second value may be set to different values based on the requirements of the dynamic range.
[0162] When the first value and the second value are the same, the third duration and the fourth duration may be set to different values based on the requirements of the dynamic range.
[0163] It should be noted that, when the first value and the second value are the same, image acquisition can be performed by adjusting the exposure time of the image sensor 210 to form a bright field environment and a dark field environment.
[0164] When the third duration and the fourth duration are different, the first value and the second value may be set to different values based on the proportional relationship between the third duration and the fourth duration and taking into account a required dynamic range.
[0165] According to the image acquisition method provided in the embodiment of the present application, by setting the output electrical signal corresponding to the circuit driving device to different values, and setting different values for the duration of maintaining the value of the output electrical signal, the dynamic range of the captured target image can be customized, and the setting method is flexible, thereby improving the user experience.
[0166] In some embodiments, step 120 may further include:
[0167] Determining an image acquisition period based on a line frequency of the image sensor 210;
[0168] In an image acquisition cycle, when the light source device 220 is illuminated based on the first light intensity, the image sensor 210 is controlled to be exposed for a first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; when the light source device 220 is illuminated based on the second light intensity, the image sensor 210 is controlled to be exposed for a second time length to acquire a dark field sub-feature image corresponding to the object to be photographed, thereby obtaining multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images acquired in the image acquisition cycle;
[0169] A target image is obtained based on multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images.
[0170] In this embodiment, the image acquisition period is the time duration from when the image sensor 210 starts to acquire an image to when it outputs the image.
[0171] In the actual implementation process, the image acquisition period can be determined based on the specific setting of the line frequency of the image sensor 210. For example, when the line frequency is 70k, an image is output every 2 seconds or every 3 seconds. This application does not limit this.
[0172] In some embodiments, on the basis of considering the line frequency of the image sensor, the size of the object to be photographed may be further considered to determine the image acquisition period.
[0173] The specific value of the image acquisition period can be customized by the user or determined based on actual conditions, and this application does not limit it.
[0174] It can be understood that during the image acquisition cycle, the light source device 220 is illuminated at intervals based on the first light intensity and the second light intensity, and the image sensor 210 can continuously capture alternating bright field sub-feature images and dark field sub-feature images to obtain multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images.
[0175] The multiple frames of bright field sub-feature images and the multiple frames of dark field sub-feature images acquired by the image sensor 210 during the image acquisition cycle may be as follows: Figure 3 Image shown.
[0176] According to the image acquisition method provided in the embodiment of the present application, by continuously acquiring bright field sub-feature images and dark field sub-feature images within an image acquisition cycle, alternating bright field sub-feature images and dark field sub-feature images are obtained, multiple frames of high-resolution images are effectively acquired, the operating state of the object to be photographed is captured in a short time, the target image is obtained, and the continuity of the acquired multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images is ensured.
[0177] In some embodiments, obtaining a target image based on multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images includes:
[0178] Splitting the target image into a plurality of bright field sub-images and a plurality of dark field sub-images based on an arrangement order of the plurality of frames of bright field sub-feature images and the plurality of frames of dark field sub-feature images in the target image;
[0179] Based on the acquisition time of each bright field sub-image, each bright field sub-image is stitched to obtain a target bright field image;
[0180] Based on the acquisition time of each dark field sub-image, each dark field sub-image is spliced to obtain a target dark field image.
[0181] In this embodiment, the arrangement order is the order in which the bright field sub-feature images and the dark field sub-feature images are arranged.
[0182] In the target image, the bright field sub-feature image may be before the dark field sub-feature image, that is, the first row of the target image is the bright field sub-feature image, the second row is the dark field sub-feature image, the third row of the target image is the bright field sub-feature image, the fourth row is the dark field sub-feature image, and so on.
[0183] The bright field sub-feature image may also be after the dark field sub-feature image, that is, the first line of the target image is the dark field sub-feature image, the second line is the bright field sub-feature image, the third line of the target image is the dark field sub-feature image, the fourth line is the bright field sub-feature image, and so on.
[0184] The bright field sub-image is a row of images taken in a bright field environment in the target image.
[0185] The dark field sub-image is a row of images taken in a dark field environment in the target image.
[0186] It can be understood that the image sensor 210 continuously captures images within the image sampling, and the output target image includes a plurality of bright field sub-images and a plurality of dark field sub-images.
[0187] The target bright field image is an image formed by stitching together multiple frames of bright field sub-images collected during the image sampling period when the object to be photographed is in a bright field environment.
[0188] The target bright field image can represent the motion state of the object to be photographed in a bright field environment.
[0189] The target dark field image is an image formed by stitching together multiple frames of dark field sub-images collected during the image sampling period when the object to be photographed is in a dark field environment.
[0190] The target dark field image can represent the motion state of the object to be photographed in a dark field environment.
[0191] In the actual implementation process, the target image can be split into frames of bright field sub-feature images and frames of dark field sub-feature images based on the arrangement order of multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images in the target image.
[0192] Based on the acquisition time corresponding to each frame of the bright field sub-feature image, the bright field sub-feature images are spliced into one image, and the following is obtained: Figure 4 Bright field image of the target shown.
[0193] Based on the acquisition time corresponding to each frame of the dark field sub-feature image, the dark field sub-feature images are spliced into one image, and the following is obtained: Figure 5 Dark field image of the target shown.
[0194] According to the image acquisition method provided in the embodiment of the present application, by splitting the target image, the bright field sub-feature image and the dark field sub-feature image can be separated, and the bright field sub-feature image is spliced based on the acquisition time corresponding to the bright field sub-feature image, and the dark field sub-feature image is spliced based on the acquisition time corresponding to the dark field sub-feature image, so as to obtain the complete motion state of the object to be photographed in the bright field environment within the image acquisition period and the complete motion state of the object to be photographed in the dark field environment, which is convenient for subsequent analysis and improves the user experience.
[0195] In some embodiments, the method may further include:
[0196] Acquire a differential signal output by the mobile device 230 where the object to be photographed is located;
[0197] Based on the differential signal, the circuit driving device and the image sensor 210 are controlled so that the lighting time of the light source device 220 and the exposure time of the image sensor 210 are synchronously triggered.
[0198] In this embodiment, the moving device 230 is a device that drives the object to be photographed to move.
[0199] The moving device 230 may be a moving machine roller, or a roller or other device capable of outputting a differential signal.
[0200] like Figure 2 As shown, the mobile device 230 may be the mobile device 230 corresponding to the detection surface.
[0201] In the actual implementation process, when the mobile device 230 starts to move, the object to be photographed also starts to move. At this time, the mobile device 230 can output a differential signal.
[0202] A differential signal is an electrical signal composed of two signals that are opposite to each other but correlated.
[0203] The moving device 230 may output a differential signal through an encoder.
[0204] In the actual implementation process, the differential signal is transmitted to the light source device 220 and the image sensor 210 through the corresponding transmission card, so that the lighting moment of the light source device 220 and the exposure moment of the image sensor 210 are triggered synchronously.
[0205] It should be noted that, based on the differential signal, multiple image sensors 210 and one light source device 220 can be controlled to be triggered synchronously.
[0206] like Figure 6As shown, in the actual execution process, the mobile device 230 outputs a differential signal through the encoder to trigger the synchronization card, and the synchronization card divides the differential signal into multiple synchronization signal outputs to trigger the light source device 220 and the acquisition card respectively. Finally, the image sensor 210 is triggered by the acquisition card signal, thereby achieving synchronous triggering of the lighting moment of the light source device 220 and the exposure moment of the image sensor 210.
[0207] like Figure 7 As shown, in the actual execution process, the mobile device 230 outputs a differential signal through the encoder to trigger the synchronization card, and the synchronization card divides the differential signal into multiple synchronization signal outputs. Through the two signal output ports of the acquisition card, the target output port sends a trigger signal to the image sensor 210, and the other output port sends a trigger signal to the light source device 220, thereby realizing the synchronous triggering of the lighting moment of the light source device 220 and the exposure moment of the image sensor 210.
[0208] like Figure 8 As shown, in the actual execution process, the mobile device 230 outputs a differential signal through the encoder to trigger the synchronization card, and the synchronization card divides the differential signal into multiple synchronization signal outputs. The acquisition card first triggers the image sensor 210, and sends a trigger signal to the light source device 220 through the input and output ports of the image sensor 210, so as to realize the synchronous triggering of the lighting moment of the light source device 220 and the exposure moment of the image sensor 210.
[0209] It should be noted that when the trigger signal sent by the image sensor 210 is a single-ended signal, the single-ended signal can be converted into a differential signal through a signal adapter board to achieve synchronous triggering of the lighting time of the light source device 220 and the exposure time of the image sensor 210.
[0210] According to the image acquisition method provided in the embodiment of the present application, the exposure time of the image sensor 210 and the lighting time of the light source device 220 are controlled to be synchronized through the differential signal output by the mobile device 230 where the object to be photographed is located, which can improve the accuracy of the captured image of the image sensor 210, alleviate the invalid image captured due to the non-overlapping exposure time of the image sensor 210 and the lighting time of the light source device 220, and improve the effectiveness and availability of the captured image.
[0211] The image acquisition method provided in the embodiment of the present application can be executed by an image acquisition device. In the embodiment of the present application, the image acquisition device provided in the embodiment of the present application is described by taking the image acquisition method executed by the image acquisition device as an example.
[0212] The embodiment of the present application also provides an image acquisition device.
[0213] like Fig. 9 As shown, the image acquisition device includes: a first processing module 910 and a second processing module 920 .
[0214] The first processing module 910 is used to adjust the output electrical signal corresponding to the circuit driving device to control the light source device 220 to light up at intervals based on the first light intensity and the second light intensity;
[0215] The second processing module 920 is used to control the image sensor 210 to expose for a first time duration to capture a bright field sub-feature image corresponding to the object to be photographed when the light source device 220 is illuminated based on the first light intensity; and to control the image sensor 210 to expose for a second time duration to capture a dark field sub-feature image corresponding to the object to be photographed when the light source device 220 is illuminated based on the second light intensity, so as to obtain a target image corresponding to the object to be photographed; the first time duration is greater than or equal to the second time duration.
[0216] According to the image acquisition device provided in the embodiment of the present application, the output electrical signal corresponding to the circuit driving device is adjusted to control the light source device 220 to light up at intervals under the first light intensity and the second light intensity. When the light source device 220 is at different light intensities, the image sensor 210 is controlled to collect the bright field sub-feature image and the dark field sub-feature image corresponding to the object to be photographed, respectively, to obtain the target image. There is no need to connect the light source device 220 to the controller through a long wire, which reduces the transmission loss of large current, improves the effect of achieving large current stroboscopic effect, and can reduce the exposure time requirement of the image sensor 210, thereby obtaining a higher line frequency, meeting the movement speed requirements of the production line, and being suitable for image acquisition in high-speed and high-dynamic scenes, thereby improving production efficiency.
[0217] In some embodiments, the first processing module 910 may also be used to:
[0218] When the output electrical signal corresponding to the circuit driving device is the first value, the light source device 220 is controlled to light up based on the first light intensity, and the output electrical signal is maintained at the first value for a third time period;
[0219] When the output electrical signal corresponding to the circuit driving device is the second value, the light source device 220 is controlled to light up based on the second light intensity, and the output electrical signal is maintained at the second value for a fourth time period.
[0220] In some embodiments, the second processing module 920 may also be used to:
[0221] Determining an image acquisition period based on a line frequency of the image sensor 210;
[0222] In an image acquisition cycle, when the light source device 220 is illuminated based on the first light intensity, the image sensor 210 is controlled to be exposed for a first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; when the light source device 220 is illuminated based on the second light intensity, the image sensor 210 is controlled to be exposed for a second time length to acquire a dark field sub-feature image corresponding to the object to be photographed, thereby obtaining multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images acquired in the image acquisition cycle;
[0223] A target image is obtained based on multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images.
[0224] In some embodiments, the second processing module 920 may also be used to:
[0225] Splitting the target image into a plurality of bright field sub-images and a plurality of dark field sub-images based on an arrangement order of the plurality of frames of bright field sub-feature images and the plurality of frames of dark field sub-feature images in the target image;
[0226] Based on the acquisition time of each bright field sub-image, each bright field sub-image is stitched to obtain a target bright field image;
[0227] Based on the acquisition time of each dark field sub-image, each dark field sub-image is spliced to obtain a target dark field image.
[0228] In some embodiments, the apparatus may further include a third processing module, configured to:
[0229] Acquire a differential signal output by the mobile device 230 where the object to be photographed is located;
[0230] Based on the differential signal, the lighting time of the light source device 220 and the exposure time of the image sensor 210 are controlled to be triggered synchronously.
[0231] The image acquisition device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0232] The image acquisition device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0233] The image acquisition device provided in the embodiment of the present application can achieve Figures 1 to 8 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0234] In some embodiments, Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001, a memory 1002, and a computer program stored in the memory 1002 and executable on the processor 1001. When the program is executed by the processor 1001, each process of the above-mentioned image acquisition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0235] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0236] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned image acquisition method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0237] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0238] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned image acquisition method when executed by a processor.
[0239] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0240] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image acquisition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0241] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0242] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0243] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0244] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0245] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0246] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. An image acquisition method, characterized in that: The light source device is connected to the circuit driving device; the method comprises: Adjusting the output electrical signal corresponding to the circuit driving device to control the light source device to light up at intervals based on the first light intensity and the second light intensity; When the light source device is illuminated based on the first light intensity, the image sensor is controlled to be exposed for a first time duration to capture a bright field sub-feature image corresponding to the object to be photographed; when the light source device is illuminated based on the second light intensity, the image sensor is controlled to be exposed for a second time duration to capture a dark field sub-feature image corresponding to the object to be photographed, so as to obtain a target image corresponding to the object to be photographed; the first time duration is greater than or equal to the second time duration.
2. The image acquisition method according to claim 1, characterized in that: The step of adjusting the output electrical signal corresponding to the circuit driving device to control the light source device to light up at intervals based on the first light intensity and the second light intensity includes: When the output electrical signal corresponding to the circuit driving device is adjusted to a first value, the light source device is controlled to light up based on the first light intensity, and the output electrical signal is maintained at the first value for a third time period; When the output electrical signal corresponding to the circuit driving device is adjusted to a second value, the light source device is controlled to light up based on the second light intensity, and the output electrical signal is maintained at the second value for a fourth time period.
3. The image acquisition method according to claim 2, characterized in that: The third duration is the same as the fourth duration, and the first value is different from the second value; or; The third duration is different from the fourth duration, and the first value is the same as the second value; or; The third duration is different from the fourth duration, and the first value is different from the second value.
4. The image acquisition method according to any one of claims 1 to 3, characterized in that: The output electrical signal is an output current.
5. The image acquisition method according to any one of claims 1 to 3, characterized in that: The step of adjusting the output electrical signal corresponding to the circuit driving device comprises: Based on the lighting brightness and the lighting duration, the output electrical signal corresponding to the circuit driving device is adjusted.
6. The image acquisition method according to any one of claims 1 to 3, characterized in that: wherein, when the light source device is lit based on the first light intensity, controlling the image sensor to be exposed for a first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; When the light source device is lit based on the second light intensity, controlling the image sensor to be exposed for a second time length to collect a dark field sub-feature image corresponding to the object to be photographed, so as to obtain a target image corresponding to the object to be photographed, including: Determining an image acquisition period based on a line frequency of the image sensor; In the image acquisition cycle, and when the light source device is illuminated based on the first light intensity, the image sensor is controlled to be exposed for the first time length to acquire a bright field sub-feature image corresponding to the object to be photographed; and in the case where the light source device is illuminated based on the second light intensity, the image sensor is controlled to be exposed for the second time length to acquire a dark field sub-feature image corresponding to the object to be photographed, so as to obtain multiple frames of bright field sub-feature images and multiple frames of dark field sub-feature images acquired in the image acquisition cycle; The target image is obtained based on the multiple frames of bright field sub-feature images and the multiple frames of dark field sub-feature images.
7. The image acquisition method according to claim 6, characterized in that: The obtaining the target image based on the multiple frames of bright field sub-feature images and the multiple frames of dark field sub-feature images includes: Splitting the target image into a plurality of bright field sub-images and a plurality of dark field sub-images based on an arrangement order of the plurality of frames of bright field sub-feature images and the plurality of frames of dark field sub-feature images in the target image; Based on the acquisition time of each of the bright field sub-images, stitching the bright field sub-images to obtain a target bright field image; Based on the acquisition time of each of the dark field sub-images, each of the dark field sub-images is spliced to obtain a target dark field image.
8. The image acquisition method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire a differential signal output by a mobile device where the object to be photographed is located; Based on the differential signal, the circuit driving device and the image sensor are controlled so that the lighting time of the light source device and the exposure time of the image sensor are synchronously triggered.
9. An image acquisition device, characterized in that: The light source device is connected to the circuit driving device; including: A first processing module, used for adjusting the output electrical signal corresponding to the circuit driving device, so as to control the light source device to light up at intervals based on the first light intensity and the second light intensity; A second processing module is used to control the image sensor to expose for a first time duration to capture a bright field sub-feature image corresponding to the object to be photographed when the light source device is lit based on the first light intensity; and to control the image sensor to expose for a second time duration to capture a dark field sub-feature image corresponding to the object to be photographed when the light source device is lit based on the second light intensity, so as to obtain a target image corresponding to the object to be photographed; the first time duration is greater than or equal to the second time duration.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the image acquisition method according to any one of claims 1 to 8 is implemented.