Photographing method, photographing device, electronic device and storage medium
By setting up a signal control circuit for each photosensitive element in the image sensor and adjusting the signal voltage and conversion gain, the problems of dead pixels, bad lines and ripples in mobile phone camera images are solved, and the dark uniformity and color accuracy of the image are improved. Improved image quality.
Patent Information
- Application Number
- CN202210726999.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-06-24
AI Technical Summary
Dead pixels, bad lines and ripples often exist in images taken by mobile phone cameras, resulting in low image quality and insufficient dark current unevenness, affecting the dark state uniformity and color accuracy of the image.
Set up a signal control circuit for each photosensitive element in the image sensor. By adjusting the signal voltage and conversion gain, the target compensation magnification of the photosensitive element is determined to eliminate dead pixels, bad lines and ripples in the initial image, and improve the dark state of the image. Uniformity and color accuracy.
Effectively eliminate dead pixels, bad lines and ripples in the initial image, improve the quality of the output image, improve dark state uniformity and color accuracy, and enhance the imaging performance of the image sensor.
Smart Images

Figure CN115278096B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of camera technology, and specifically relates to a shooting method, a shooting device, an electronic device and a storage medium. Background Art
[0002] Currently, mobile phone cameras have more and more photo-taking functions, and consumers have higher and higher requirements for the mobile phone photo-taking experience.
[0003] In the related art, images taken by mobile phone cameras may have problems such as bad pixels, bad lines, and ripples, resulting in low image quality. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, a shooting device, an electronic device and a storage medium, which can eliminate bad pixels and bad lines in the initial image, and can also eliminate the ripple phenomenon in the image caused by the AC light source, thereby improving the dark state uniformity and color accuracy of the image, thereby improving the output image quality.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, which is applied to a shooting device, wherein the shooting device includes an image sensor and a signal control circuit, wherein the image sensor includes at least one photosensitive element, and each photosensitive element is correspondingly provided with a signal control circuit, and the signal control circuit includes a first control module and a second control module; the first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element; the second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; wherein the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into an output voltage; the shooting method includes: based on an initial image captured by the image sensor, determining a target compensation magnification of a compensation photosensitive element and a signal control circuit corresponding to the compensation photosensitive element; adjusting the output voltage signal of the target control module based on the target compensation magnification, wherein the target control module includes at least one of the following: a first control module of the signal control circuit, and a second control module of the signal control circuit; and outputting target image data based on the adjusted signal control circuit.
[0006] In a second aspect, an embodiment of the present application provides a shooting device, which includes an image sensor and a signal control circuit. The image sensor includes at least one photosensitive element, and a signal control circuit is corresponding to each photosensitive element. The signal control circuit includes a first control module and a second control module; the first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element; the second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; wherein the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into an output voltage; the shooting device also includes: a determination module, which is used to determine the compensation photosensitive element and the target compensation magnification of the signal control circuit corresponding to the compensation photosensitive element based on the initial image captured by the image sensor; an adjustment module, which is used to adjust the output voltage signal of the target control module based on the target compensation magnification, wherein the target control module includes at least one of the following: a first control module of the signal control circuit, and a second control module of the signal control circuit; an output module, which is used to output target image data based on the adjusted signal control circuit.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory can be a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method of the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application 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 steps of the method of the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.
[0011] In the embodiment of the present application, after the image sensor acquires the initial image, the processor analyzes the acquired initial image to determine the compensation photosensitive element that needs to be compensated and the target compensation magnification for compensating the compensation photosensitive element. Then, the first control module and / or the second control module corresponding to the compensation photosensitive element compensates the output voltage signal according to the target compensation magnification, and outputs the target image data after compensation, so as to improve the image quality of the target image data output by the shooting device.
[0012] In the embodiment of the present application, a signal control circuit is correspondingly provided for each photosensitive element in the image sensor in the shooting device. After the initial image is captured, the target compensation magnification of the signal voltage by the signal control circuit can be adjusted based on the initial image to eliminate bad pixels and bad lines in the initial image, and accurately deduct the dark current, and can also eliminate the ripple phenomenon in the image caused by the AC light source, improve the dark state uniformity and color accuracy of the image, and thus improve the output image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A structural block diagram of a photographing device provided in an embodiment of the present application is shown;
[0014] Figure 2 A schematic diagram showing a process flow of a photographing method provided in an embodiment of the present application is shown;
[0015] Figure 3 A circuit diagram of a first control module in an embodiment of the present application is shown;
[0016] Figure 4 A circuit diagram of a second control module in an embodiment of the present application is shown;
[0017] Figure 5 A circuit diagram of a signal control circuit in an embodiment of the present application is shown;
[0018] Figure 6 One of the distribution diagrams of pixels provided in an embodiment of the present application is shown;
[0019] Figure 7 The second schematic diagram of pixel distribution provided by the embodiment of the present application is shown;
[0020] Figure 8 A circuit diagram of a real-sense pixel provided in an embodiment of the present application is shown;
[0021] Fig. 9 A waveform diagram of energy received by a conventional pixel in an image sensor provided by an embodiment of the present application is shown;
[0022] Fig.10 A schematic diagram showing the refraction of light through the edge of a lens provided in an embodiment of the present application is shown;
[0023] Fig.11 A circuit diagram of a photographing device provided in an embodiment of the present application is shown;
[0024] Fig.12 A structural block diagram of a photographing device provided in an embodiment of the present application is shown;
[0025] Fig.13 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;
[0026] Fig.14 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] 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.
[0028] 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.
[0029] The following is combined with Figures 1 to 14 , the shooting method, shooting device, electronic device and storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0030] In some embodiments of the present application, a photographing method is provided, which is applied to a photographing device. Figure 1 1 shows a structural block diagram of a photographing device 100 provided in an embodiment of the present application. Figure 1 As shown, the shooting device 100 includes an image sensor 110 and a signal control circuit 120, the image sensor 110 includes at least one photosensitive element 112, and each photosensitive element 112 is correspondingly provided with a signal control circuit 120, the signal control circuit 120 includes a first control module 122 and a second control module 124; the first control module 122 is connected to the first end of the photosensitive element 112, and the first control module 122 is used to adjust the signal voltage corresponding to the photosensitive element; the second control module 124 is connected to the first control module 122, and the second control module 124 is used to adjust the conversion gain; wherein the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module 122 into the output voltage.
[0031] In an embodiment of the present application, the shooting device includes an image sensor and a signal control circuit. The image sensor includes a photosensitive element. The photosensitive element can convert the light intensity of the light into an electrical signal for output after receiving the light. Each photosensitive element is provided with a corresponding signal control circuit. The signal control circuit includes a first control module and a second control module. The first control module is connected to the photosensitive element, and the first control module can adjust the signal voltage of the electrical signal output by the photosensitive element. The second control module is connected to the first control module, and the second control module can adjust the conversion gain of the electrical signal output by the first control module.
[0032] Specifically, the electrical signal output by the photosensitive element can be adjusted in two stages by the first control module and the second control module in sequence, thereby adjusting the signal voltage of the electrical signal.
[0033] In the embodiment of the present application, when the image sensor of the electronic device has multiple photosensitive elements, during the operation of the image sensor formed by the multiple photosensitive elements, there may be problems such as insufficient consistency of dark current, insufficient consistency of photosensitivity, and bad pixels and bad lines in the captured image. By adjusting the signal voltage through the first control module corresponding to each photosensitive element and adjusting the conversion gain through the corresponding second control module, the problems of insufficient consistency of dark current, insufficient consistency of photosensitivity, and bad pixels and bad lines in the captured image can be solved.
[0034] Figure 2 A schematic diagram of the process of the shooting method provided in the embodiment of the present application is shown. Figure 2 As shown, the shooting method includes:
[0035] Step 202, based on the initial image captured by the image sensor, determining a compensation photosensitive element and a target compensation magnification of a signal control circuit corresponding to the compensation photosensitive element;
[0036] The image sensor includes a plurality of photosensitive elements. When the image sensor captures an initial image, the processor can identify problems existing in the initial image, such as bad lines in the initial image, ripples in the initial image due to changes in the brightness of the ambient light source, that is, identifying problems with uneven electrical signals in the initial image. The first pixel with a problem in the initial image can be found, thereby determining the photosensitive element corresponding to the first pixel, that is, the compensation photosensitive element. After finding the compensation photosensitive element, the target compensation magnification of the signal control circuit corresponding to the compensation photosensitive element corresponding to the first pixel can be determined based on the brightness relationship between the first pixel with a problem and the normal pixel in the initial image.
[0037] Step 204, adjusting the output voltage signal of the target control module based on the target compensation ratio;
[0038] Wherein, the target control module includes at least one of the following: a first control module of the signal control circuit, a second control module of the signal control circuit;
[0039] After the target compensation magnification is determined, the output voltage signal can be adjusted according to the target compensation magnification so that the voltage signal output by the compensated photosensitive element is close to the voltage signal output by the normal photosensitive element.
[0040] In the embodiment of the present application, the first control module and the second control module can adjust the amplification factor of the voltage signal output by the photosensitive element, so by adjusting at least one of the first control module and the second control module, the target compensation factor of the compensation photosensitive element can be adjusted.
[0041] Step 206: Control the circuit based on the adjusted signal to output target image data.
[0042] In the embodiment of the present application, after the image sensor acquires the initial image, the processor analyzes the acquired initial image to determine the compensation photosensitive element that needs to be compensated and the target compensation magnification for compensating the compensation photosensitive element. Then, the first control module and / or the second control module corresponding to the compensation photosensitive element compensates the output voltage signal according to the target compensation magnification, and outputs the target image data after compensation, so as to improve the image quality of the target image data output by the shooting device.
[0043] In some possible implementations, the ripples in the captured image are compensated. When the shooting device is shooting under an AC light source, the light energy received by each photosensitive element is different due to the changing frequency of the light source. After the initial image is captured, the compensation photosensitive element that needs to be compensated can be determined, as well as the numerical relationship between the light energy received by the compensation photosensitive element and the light energy received by the normal photosensitive element. According to the above numerical relationship, the target compensation magnification can be determined, and the output voltage signals of the first control module and the second control module corresponding to the compensation photosensitive element are adjusted based on the target compensation magnification. The target image data is output by the adjusted first control module and the second control module, thereby eliminating the ripples in the target image data.
[0044] In some other possible implementations, compensation is performed for the uneven dark current values of different pixel points in the captured image, the dark current is accurately deducted, the compensating photosensitive element and the target compensation magnification corresponding to the compensating photosensitive element are determined, the output voltage signals of the first control module and the second control module corresponding to the compensating photosensitive element are adjusted based on the target compensation magnification, and the target image data is output by the adjusted first control module and the second control module, thereby eliminating bad pixels and bad lines in the target image data.
[0045] In the embodiment of the present application, a signal control circuit is correspondingly provided for each photosensitive element in the image sensor in the shooting device. After the initial image is captured, the target compensation magnification of the signal voltage by the signal control circuit can be adjusted based on the initial image to eliminate bad pixels and bad lines in the initial image, eliminate the ripple phenomenon in the image caused by the AC light source, and improve the dark state uniformity and color accuracy of the image, thereby improving the output image quality.
[0046] In some embodiments of the present application, the first control module includes: N first switch elements and N capacitive elements, each first switch element is connected to the photosensitive element through a capacitive element, and N is a positive integer;
[0047] The second control module includes: M second switch elements and M signal amplifiers, each signal amplifier is connected to the first control module via a second switch element, and M is a positive integer;
[0048] Among them, the first control module is connected to the photosensitive element, and the first control module includes N first switch elements and N capacitive elements. The N first switch elements can control the N capacitive elements, and the signal voltage corresponding to the photosensitive element can be adjusted by adjusting the on-off state of the N first switch elements.
[0049] The second control module is connected to the first control module, and the second control module includes M second switch elements and M signal amplifiers, wherein each signal amplifier corresponds to a second switch element and is connected to the first control module through the corresponding second switch element, and the conversion gain of the signal voltage corresponding to the first control module into the output voltage can be adjusted by adjusting the on-off state of the M second switch elements.
[0050] Specifically, by adjusting the on / off states of the N first switch elements in the first control module and the M second switch elements in the second control module respectively, the output voltage of the signal output by the shooting device can be adjusted.
[0051] In the embodiment of the present application, the on-off states of different combinations of N first switch elements and M second switch elements can obtain different actual compensation ratios. By adjusting the N first switch elements and M second switch elements, the actual compensation ratio of the signal control circuit is made the target compensation ratio.
[0052] The output voltage signal of the target control module is adjusted based on the target compensation ratio, including:
[0053] Based on the target compensation ratio, P target switching elements are controlled to be in a conduction state to adjust the output voltage signal of the target control module, P≤M+N, wherein the P target switching elements are switching elements among the N first switching elements and the M second switching elements.
[0054] In an embodiment of the present application, in the process of adjusting the output voltage signal of the target control module based on the target compensation ratio, P target switch elements among the N first switch elements and the M second switch elements are controlled to be in a conductive state so that the actual compensation ratio of the signal control circuit is the target compensation ratio.
[0055] Specifically, after determining the target compensation ratio, the actual compensation ratio corresponding to the combination of different on-off states of the N first switch elements and the M second switch elements is obtained, and P target switch elements among the N first switch elements and the M second switch elements are controlled to be in the on state, so that the actual compensation ratio is the target compensation ratio.
[0056] In some possible embodiments, the correspondence between the actual compensation ratios corresponding to the combinations of different on-off states of N first switch elements and M second switch elements can be pre-stored in the shooting device before the shooting device leaves the factory. After determining the target compensation ratio, the corresponding combination of on-off states can be found to control the P target switch elements to be in the on state, thereby improving the efficiency of the actual compensation ratio of the control signal control circuit.
[0057] In the embodiment of the present application, the P target switch elements may be some of the N first switch elements and the M second switch elements, or may be all of the switch elements. The embodiment of the present application does not limit the specific values of P, N, and M. The numbers of N and M may be set according to actual needs, and the larger the numbers of N and M, the wider the adjustment range of the actual compensation ratio of the signal control circuit.
[0058] In the embodiment of the present application, a corresponding capacitive element and a first switch are set in the first control module, and a corresponding signal amplifier and a second switch are set in the second control module. By adjusting the on-off state of the first switch and the second switch, the actual compensation magnification of the signal control circuit is adjusted to the target compensation magnification, so as to compensate the signal voltage output by the signal control circuit corresponding to the compensation photosensitive element. It is achieved that the actual compensation magnification of each compensation photosensitive element in multiple photosensitive elements can be adjusted to the target compensation magnification, thereby improving the accuracy of the adjustment.
[0059] In some embodiments of the present application, when P target switch elements are switch elements among N first switch elements; based on the target compensation ratio, the P target switch elements are controlled to be in a conductive state, including: obtaining the first compensation ratio corresponding to the first control module when each first switch element is in a conductive state; according to the target compensation ratio and the first compensation ratio, controlling the P target switch elements among the N first switch elements to be in a conductive state.
[0060] In the embodiment of the present application, each of the P target switch components is a first switch component, and a first compensation magnification of each first switch component in a pass state is obtained, and the first compensation magnification is a compensation magnification corresponding to when each capacitive element is connected. After the first compensation magnification corresponding to each first switch component is obtained, P target switch components among the N first switch components can be determined according to the target compensation magnification, and the P target switch components are controlled to be in a pass state.
[0061] In the embodiment of the present application, the capacitance values of the capacitive elements corresponding to the N first switch elements are different, and the N capacitive elements are connected in parallel with each other, and the capacitive elements are connected in series with the first switch element. By controlling the on-off state of the first switch element, the parallel number of the N capacitive elements can be adjusted to adjust the amplification factor of the first control module, and the amplification factor of the first control module is adjusted to the target compensation ratio.
[0062] Figure 3 FIG. 4 shows a circuit diagram of a first control module in an embodiment of the present application. Figure 3 As shown, the number of capacitive elements and first switch elements is 3, and the three capacitive elements are FD1, FD2, and FD3, respectively. The first control module also includes a power supply VDD1. The first switch elements corresponding to FD1, FD2, and FD3 are TCG1, TCG2, and TCG3, respectively. FD1 and TCG1, FD2 and TCG2, and FD3 and TCG3 are connected in parallel between the power supply VDD1 and the ground terminal. The capacitance ratio of FD1:FD2:FD3 is set to 1:2:4, that is, the first compensation magnification corresponding to the first switch element is 1, the first compensation magnification corresponding to the second switch element is 2, and the first compensation magnification corresponding to the third switch element is 4. By controlling TCG1, TCG2, and TCG3 to maintain the passage in different combinations, a capacitance combination of 1 / 2 / 3 / 4 / 5 / 6 / 7 times that of FD1 can be obtained. For example: closing TCG1 and TCG2, so that FD1 and FD2 are connected in parallel, a capacitance value 3 times that of FD1 can be obtained, that is, the actual compensation magnification is 3. When the target compensation ratio is determined to be 6, TCG2 and TCG3 are closed, FD2 and FD3 are connected in parallel, and the actual compensation ratio reaches the target compensation ratio of 6. In the embodiment of the present application, when the actual compensation ratio is adjusted, the target compensation ratio can be estimated. For example, if the target compensation ratio is 6.82, the target compensation ratio can be estimated to be 7.
[0063] In the embodiment of the present application, the capacitance of FD2 and FD3 can be adjusted so that when TCG2 or TCG3 is closed, the target compensation ratio is less than 1, for example, 0.5. The adjustment method is similar to the target compensation ratio being greater than 1, and will not be described in detail here. In the embodiment of the present application, the first compensation ratio corresponding to different capacitive elements connected to the circuit is obtained, and the target compensation ratio is achieved by controlling different first switch elements to be closed.
[0064] In some embodiments of the present application, when P target switch elements are switch elements among M second switch elements; based on the target compensation ratio, the P target switch elements are controlled to be in a conductive state, including: obtaining the second compensation ratio corresponding to the second control module when each second switch element is in a conductive state; according to the target compensation ratio and the second compensation ratio, controlling the P target switch elements among the N second switch elements to be in a conductive state.
[0065] In the embodiment of the present application, each of the P target switch components is a second switch component, and a second compensation magnification of each second switch component in a pass state is obtained, and the second compensation magnification is a compensation magnification corresponding to a different number of signal amplifiers connected. After the second compensation magnification corresponding to each second switch component is obtained, the P target switch components among the M second switch components can be determined according to the target compensation magnification, and the P target switch components are controlled to be in a pass state.
[0066] In the embodiment of the present application, the amplification factors corresponding to the signal amplifiers corresponding to the M second switch components can be set to be the same, or the amplification factors corresponding to the signal amplifiers corresponding to the M second switch components can be set to be different. By controlling the on-off state of the second switch component, the number of signals flowing through the M signal amplifiers can be adjusted, that is, the amplification level of the signal can be adjusted to adjust the amplification factor of the second control module, and the amplification factor of the second control module can be adjusted to the target compensation ratio.
[0067] Figure 4 : shows a circuit diagram of the second control module in an embodiment of the present application, such as Figure 4As shown, the number of signal amplifiers and second switch elements is 3, and the three signal amplifiers are SF1, SF2, and SF3 respectively. The first switch elements corresponding to SF1, SF2, and SF3 are TCG4, TCG5, and TCG6 respectively. The second control module also includes power supply VDD2, power supply VDD3, and power supply VDD4. Power supply VDD2, power supply VDD3, and power supply VDD4 are respectively connected to the three signal amplifiers SF1, SF2, and SF3. The amplification factor of SF1, SF2, and SF3 is 1.2. Control TCG4 and TCG6 to be disconnected, and the signal is amplified by two stages of SF2 and SF3, and the amplification factor is 1.2×1.2=1.44. When the target compensation ratio is determined to be 1.728, TCG1 is closed, and TCG5 and TCG6 are disconnected, so that the signal passes through SF1, SF2, and SF3, and the actual compensation ratio reaches the target compensation ratio of 1.728.
[0068] In the embodiment of the present application, when the actual compensation ratio is adjusted, the target compensation ratio can be estimated. For example, if the target compensation ratio is 1.46, the target compensation ratio can be estimated to be 1.44.
[0069] like Figure 4 As shown, in the embodiment of the present application, assuming that the amplification factor of SF3 among the three signal amplifiers is 0.8, when the target compensation factor is 0.8, TCG4 and TCG5 are disconnected so that the signal passes through SF3, and the actual compensation factor reaches the target compensation factor of 0.8. In the embodiment of the present application, the second compensation factors corresponding to different second switch components in the on state are obtained, and the target compensation factor is achieved by controlling the closing of different second switch components.
[0070] In some embodiments of the present application, the target switch element includes a first switch element and a second switch element, and based on the target compensation ratio, controlling P target switch elements to be in a pass state includes: determining a first target ratio and a second target ratio according to the target compensation ratio, wherein the target compensation ratio is the product of the first target ratio and the second target ratio; controlling X first switch elements to be in a pass state to adjust an output voltage signal of the first control module according to the first target ratio, where X is a positive integer; controlling Y second switch elements to be in a pass state to adjust the output voltage signal of the first control module according to the second target ratio, where Y is a positive integer, wherein P=X+Y.
[0071] In the embodiment of the present application, the P target switch components include X first switch components and Y second switch components. The target compensation ratio is the product of the first target ratio corresponding to the X first switch components and the second target ratio corresponding to the Y second switch components.
[0072] Specifically, after determining the target compensation magnification, the first target magnification and the second target magnification are calculated according to the target compensation magnification, the first compensation magnification corresponding to the first control module when each first switch is in the on state, and the second compensation magnification corresponding to the second control module when each second switch is in the on state. X first switches are controlled to be in the on state so that the actual compensation magnification of the first control module is the first target magnification, and Y second switches are controlled to be in the on state so that the actual compensation magnification of the second control module is the second target magnification. At this time, the signal output by the photosensitive element is compensated by the first control module and the second control module in sequence to obtain the target image data.
[0073] Figure 5 : shows a circuit diagram of a signal control circuit in an embodiment of the present application, such as Figure 5 As shown, the number of capacitive elements and first switch elements in the first control module is 3, and the first control module also includes power supply VDD1. The first switch elements corresponding to FD1, FD2, and FD3 are TCG1, TCG2, and TCG3, respectively. FD1 and TCG1, FD2 and TCG2, and FD3 and TCG3 are connected in parallel between the power supply VDD1 and the ground terminal. The capacitance ratio of FD1:FD2:FD3 is set to 1:2:4. The number of signal amplifiers and second switch elements in the second control module is 3, and the three signal amplifiers are SF1, SF2, and SF3, respectively. The first switch elements corresponding to SF1, SF2, and SF3 are TCG4, TCG5, and TCG6, respectively. The second control module also includes power supply VDD2, power supply VDD3, and power supply VDD4, and the power supply VDD2, power supply VDD3, and power supply VDD4 are connected to the three signal amplifiers SF1, SF2, and SF3, respectively. The amplification factors of SF1, SF2, and SF3 are all 1.2. For example: when the target compensation ratio is determined to be 4.3, the first target ratio of the first control module is determined to be 3, and the second target ratio of the second control module is determined to be 1.44. Then, TCG1 and TCG2 are controlled to be in the on state, and TCG3 is controlled to be in the off state, so that the actual compensation ratio of the first control module reaches the first target ratio of 3. TCG5 is controlled to be in the on state, and TCG4 and TCG6 are controlled to be in the off state, so that the actual compensation ratio of the second control module reaches the second target ratio of 1.44. At this time, the actual compensation ratio of the signal control circuit composed of the first control module and the second control module is 4.32, which is approximately equal to the target compensation ratio of 4.3.
[0074] In the embodiment of the present application, in the process of determining the first target magnification and the second target magnification according to the target compensation magnification, the first target magnification and the second target magnification may be estimated so that the actual compensation magnification is close to the target compensation magnification.
[0075] In an embodiment of the present application, when the P target switch elements include both the first switch element and the second switch element, the product of the actual compensation ratio of the first control module and the actual compensation ratio of the second control module is the actual compensation ratio of the signal control circuit.
[0076] By controlling X of the N first switch elements to be in a pass state, the actual compensation magnification of the first control module reaches the first target magnification, and at the same time controlling Y of the M second switch elements to be in a pass state, the actual compensation magnification of the second control module reaches the second target magnification, so that the actual compensation magnification of the signal control circuit reaches the target compensation magnification. By adjusting the actual compensation magnifications of the first control module and the second control module respectively, the accuracy of the actual compensation magnification of the signal control circuit relative to the target compensation magnification can be improved, and accurate compensation of the initial image is achieved.
[0077] In some embodiments of the present application, an image sensor includes real-sense pixels.
[0078] In an embodiment of the present application, the image sensor also includes real-sensing pixels, which can collect brightness change information. The number of real-sensing pixels is multiple, and the real-sensing pixels can independently sense the changes in the brightness of the external environment in real time according to the pixel clock frequency, and convert the changes in the ambient brightness into changes in electrical signals.
[0079] In the embodiment of the present application, the real-sense pixel can report not only brightness information but also time information and coordinate information of the real-sense pixel to the processor, and the processor can determine brightness change information based on the above information. The real-sense pixels are distributed in the regular pixels (R, G, B), and the distribution forms include but are not limited to being distributed on one side of the regular pixels and being distributed between the regular pixels.
[0080] Figure 6 FIG. 1 shows one of the distribution diagrams of pixels provided in an embodiment of the present application, such as Figure 6 As shown, a plurality of real-sense pixels 602 are distributed on one side of a plurality of regular pixels 604 .
[0081] Figure 7 FIG. 2 shows a second schematic diagram of pixel distribution provided in an embodiment of the present application. Figure 7 As shown, a plurality of real-sense pixels 702 are distributed between a plurality of regular pixels 704 .
[0082] The embodiment of the present application does not specifically limit the distribution form of the real-sense pixels, and the distribution form of the real-sense pixels can be configured according to actual needs.
[0083] Figure 8 The circuit diagram of the real-sense pixel provided in the embodiment of the present application is shown in FIG. Figure 8As shown, the real-sensing pixel includes a first photosensitive module and a second photosensitive module, an analog-to-digital conversion module, a logic judgment module and a signal control module, a multiplexing switch module, and switches T1 and T2. The output end of the first photosensitive module is connected to the analog-to-digital conversion module, the analog-to-digital conversion module is connected to the logic judgment module, the logic judgment module is connected to the signal control module, the output end of the signal control module is connected to the control end of the switch T1, the first end of the switch T1 is connected to the output end of the first photosensitive module, and the second end of the switch T1 is connected to the analog signal output module. The control end of the switch T2 is connected to the output end of the signal control module, the first end of the switch T2 is connected to the output end of the second photosensitive module, the second end of the switch T2 is connected to the analog signal output module, and the analog signal output module is connected to the multiplexing switch module.
[0084] The first photosensitive module includes a photosensitive diode PD1 and a first current amplifying module, the first current amplifying module includes a first resistor R1, a second resistor R2, a capacitor C1, a capacitor C2 and a third resistor R3, and the first photosensitive module also includes a power supply V0, which is connected to the first current amplifying module. The second photosensitive module includes a photosensitive diode PD2 and a second current amplifying module, the second current amplifying module includes a fourth resistor R4, a fifth resistor R5, a capacitor C3, a capacitor C4 and a sixth resistor R6, and the second photosensitive module also includes a power supply V1, which is connected to the second current amplifying module.
[0085] The function of the first current amplification module is to use the photodiode PD1 to convert the light signal into a current signal first, and amplify the current signal through the first resistor R1, the second resistor R2 and the transistor, and then convert it into a voltage signal 1 through the third resistor R3, and output the voltage signal 1 to the analog-to-digital conversion module.
[0086] In the analog-to-digital conversion module, VADC and Vref are the working voltage and reference voltage of the analog-to-digital conversion module respectively. The function of the digital-to-analog conversion module is to convert analog quantities such as voltage and current into digital quantities for subsequent processing. After the voltage signal 1 output by the first current amplification module is input into the analog-to-digital conversion module, it is compared and transformed with the reference voltage Vref to become a photosensitive digital signal 1', and the photosensitive digital signal 1' is output to the logic judgment module.
[0087] In the logic judgment module, VH and VL are the maximum threshold and minimum threshold of the light-sensitive digital of the photodiode PD1 at the last moment, that is, VH and VL indicate the voltage range of the light-sensitive digital signal 2' of the photodiode PD1 at the last moment. The logic judgment module can compare the light-sensitive digital signal 1' with the VH and VL of the photodiode PD1 at the last moment respectively. If the light-sensitive digital signal 1' exceeds the range of VH and VL, the logic judgment module can output a request signal to the signal control module, and the request signal is used to request the output of the voltage signal output by the first current amplification module, that is, the voltage signal 1.
[0088] After receiving the request signal output by the logic judgment module, the signal control module can arbitrate when to output the voltage signal 1 and output a control signal to the multiplexing switch module. The control signal is used to control the output of the voltage signal 1 through the first path. The first path includes: a switch T1, a first analog signal output module and a multiplexing switch module connected in sequence.
[0089] It can be understood that the functions of the components of the second current amplification module are similar to those of the first current amplification module, and the functions of the second analog signal output module and the switch T2 are similar to those of the first analog signal output module and the switch T1, so they are not described in detail.
[0090] The second analog signal output module and the switch T2 constitute a second path for outputting the voltage signal (analog) of the second current amplification module. The second path includes: the switch T2, the first analog signal output module and the multiplexing switch module connected in sequence.
[0091] It should be noted that in actual implementation, the signal control module can control the simultaneous output of the voltage signal 1 of the first current amplification module and the voltage signal 3 of the second current amplification module, and control the multiplexing switch module to process the two voltage signals (i.e., voltage signal 1 and voltage signal 3), and finally the multiplexing switch module outputs voltage signal 1, voltage signal 3, and voltage signal 1+voltage signal 3.
[0092] In this way, voltage signal 1 and voltage signal 3 can be used to determine the phase difference, perform distance measurement and speed measurement; and voltage signal 1 + voltage signal 3 is the photosensitive signal value of the real-sensing pixel (for example, the brightness information captured by the real-sensing pixel), which is used for subsequent image processing. The real-sensing pixels can independently sense the changes in the brightness of the external environment in real time with the pixel clock frequency, convert the changes in the ambient brightness into changes in current, and then convert them into changes in digital signals. If the change in the digital signal of a real-sensing pixel exceeds the preset values VH and VL (VH and VL are the preset values obtained by adding and subtracting the threshold value of the digital signal value of the real-sensing pixel at the previous clock frequency), the system will report the request to read out, and output a data packet with coordinate information, brightness information, and time information. Therefore, the real-sensing pixel has better real-time performance, better signal redundancy, and higher precision. Therefore, the real-sensing pixel can detect the changing law of brightness information, and judge the frequency of the light source based on this, with higher real-time performance and precision.
[0093] In the related art, when taking photos in an AC light source environment, the AC light source irradiates different pixels in the image sensor with different light energies, resulting in different brightness at different locations in the captured image and a ripple effect in the captured image.
[0094] Fig. 9 FIG. 4 shows a waveform diagram of energy received by a conventional pixel in an image sensor provided by an embodiment of the present application. Fig. 9 As shown, the exposure amount of the regular pixel X1 in the first row is different from the light energy received by the regular pixel X2 in the fourth row, resulting in a ripple phenomenon in the image captured by the image capture device.
[0095] Based on the initial image captured by the image sensor, a target compensation ratio of a compensation photosensitive element and a signal control circuit corresponding to the compensation photosensitive element is determined, including: controlling the image sensor to capture the initial image; obtaining brightness change information of real-sensing pixels based on the initial image; determining the light source frequency based on the brightness change information; and determining the compensation photosensitive unit and a target compensation ratio of a signal control circuit corresponding to the compensation photosensitive element based on the light source frequency.
[0096] In an embodiment of the present application, it is possible to compensate for the ripples in the initial image obtained by taking a photo under an AC light source environment. After the initial image is taken, the brightness change information obtained by the real-sense pixels in the initial image is obtained, and the brightness change information is the brightness change information of the AC light source during the initial image shooting process. The light source frequency of the AC light source can be determined based on the brightness change information, and the compensation photosensitive element among the multiple photosensitive elements and the target compensation magnification of the corresponding signal control circuit can be determined based on the light source frequency.
[0097] Specifically, the image sensor automatically controls the exposure and object, and outputs the initial image to the preview interface. At this time, the real-sensing pixel obtains the brightness change information. The real-sensing pixel obtains the image brightness information at a preset frequency. Under the AC light source, the brightness value corresponding to the brightness information of the real-sensing pixel changes, that is, the brightness change information. The light source frequency of the AC light source can be determined based on the brightness change information. According to the light source frequency, the target compensation magnification corresponding to each row of photosensitive elements can be determined, and the signal control circuit corresponding to each row of photosensitive elements can be adjusted according to the target compensation magnification of each row of photosensitive elements, thereby eliminating ripples.
[0098] Exemplarily, during the exposure process of the first row of photosensitive elements, the light energy obtained by the first row of photosensitive elements is 10, while the exposure of the second row of photosensitive elements is delayed for a period of time. Therefore, within the same exposure time, due to the enhanced energy of the light source, the light energy obtained by the second row of photosensitive elements is 13. At this time, there is a ripple phenomenon in the output initial image. Therefore, in order to eliminate the ripple phenomenon, the target compensation magnification of the signal control circuit corresponding to the second row of photosensitive elements can be set to 0.769 times, so that the energy obtained by the second row of photosensitive elements after compensation is the same as that of the first row of photosensitive elements. Repeat the above steps for the remaining rows of photosensitive elements so that the energy obtained by the exposure of all rows of photosensitive elements will be the same, thereby eliminating the ripple effect caused by the AC light source.
[0099] In an embodiment of the present application, the brightness change information caused by the AC light source during the initial image shooting process is obtained through real-sensing pixels, and the light source frequency of the AC light source can be determined based on the brightness change information. The target compensation magnification of the compensation photosensitive element and its corresponding signal control circuit is determined based on the light source frequency, and the actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for the different light energies received by different photosensitive elements, eliminating the ripple phenomenon that appears in the initial image, and improving the imaging quality of the target image data.
[0100] In some embodiments of the present application, a target compensation ratio of a compensation photosensitive element and a signal control circuit corresponding to the compensation photosensitive element is determined based on an initial image captured by an image sensor, including: controlling the image sensor to capture the initial image; and determining a target compensation ratio of a compensation photosensitive unit and a signal control circuit corresponding to the compensation photosensitive element based on pixel values of the initial image.
[0101] In the embodiment of the present application, it is possible to compensate for the uneven dark current, bad pixels and bad lines of the image sensor.
[0102] Specifically, the image sensor is controlled to collect a completely black initial image, and the pixel value of the initial image is obtained. The pixel value of each pixel in the completely black initial image can be used as the dark current value corresponding to each photosensitive element. According to the dark current value, it can be calculated whether the photosensitive element corresponding to each pixel in the completely black initial image is a compensation photosensitive element, and the target compensation magnification of the compensation photosensitive element.
[0103] Exemplarily, an entirely black initial image is captured by an image sensor, and the pixel value of each pixel in the entirely black initial image is counted to obtain a pixel value statistical table, in which each cell represents a pixel.
[0104] The pixel value statistics table is shown in Table 1:
[0105] Table 1
[0106] 85 86 89 64 64 64 64 64 90 88 84 64 64 64 64 64 88 87 84 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 48 52 64 64 64 64 64 64 46 49
[0107] As shown in Table 1, the initial image is an 8×8 pixel matrix, and the pixel value of each pixel in the all-black image can be calculated, and the pixel value is the dark current value of the corresponding photosensitive element. It can be seen that there are pixel points with pixel values of 85, 86, 89, 90, 88, 84, 87, 48, 52, 46, and 49 in Table 1, which are quite different from the pixel point with a pixel value of 64. Therefore, the photosensitive elements corresponding to the above pixel points need to be compensation photosensitive elements, and the above compensation photosensitive elements need to set the corresponding target compensation magnification. The details are shown in Table 2:
[0108] Table 2
[0109]
[0110]
[0111] In the process of capturing the target image data, the compensation photosensitive element is compensated through the signal control circuit based on the target compensation magnification in Table 2, thereby compensating for the uneven dark current in the image sensor.
[0112] In an embodiment of the present application, when there is a large difference between the dark current value of the photosensitive elements in one row and the dark current values of the photosensitive elements in other rows, this will cause color cast in the images captured by the image sensor in the dark. Based on the target compensation ratio, the signal control circuit corresponding to the photosensitive elements in this row is adjusted to compensate for the uneven dark current, thereby avoiding the color cast problem caused by the uneven dark current.
[0113] In an embodiment of the present application, an entirely black initial image is captured by an image sensor, and pixel values in the initial image are determined to obtain dark current values of the photosensitive element corresponding to each pixel in the initial image, and a compensation photosensitive element and a corresponding target compensation magnification are determined based on the dark current values. The actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for uneven dark current, avoiding the problem of color cast caused by uneven dark current, and improving the imaging quality of the target image data.
[0114] In some embodiments of the present application, a compensation photosensitive element and a target compensation ratio of a signal control circuit corresponding to the compensation photosensitive element are determined based on an initial image captured by an image sensor, including: controlling the image sensor to capture an initial image, wherein the initial image includes at least two image areas; calculating R channel data, G channel data, and B channel data corresponding to each image area; and determining a compensation photosensitive element corresponding to each image area and a target compensation ratio of a signal control circuit corresponding to the compensation photosensitive element based on the R channel data, the G channel data, and the B channel data.
[0115] Among them, the R channel data is the red light channel data, the G channel data is the green light channel data, the B channel data is the blue light channel data, and the initial image is a gray card image.
[0116] In the embodiment of the present application, the lateral chromatic aberration of the image sensor can be compensated.
[0117] In the embodiment of the present application, the imaging principle of the image sensor is lens imaging. Since light passing through the center of the lens and through the edge of the lens will produce different refractions, and different light passing through the edge of the lens will also produce different refractions, there is lateral chromatic aberration in the captured image.
[0118] Fig.10 FIG. 1 is a schematic diagram showing the refraction of light through the edge of a lens provided in an embodiment of the present application. Fig.10 As shown, the imaging point of the red light 1008 after being refracted by the lens 1002 is close to the optical axis 1006 of the photosensitive element 1004, the imaging point of the blue light 1010 after being refracted by the lens 1002 is far away from the optical axis 1006 of the photosensitive element 1004, and the imaging point of the green light 1012 after being refracted by the lens 1002 is between the imaging point of the red light 1008 and the imaging point of the blue light 1010.
[0119] Specifically, a uniform gray card image is captured by an image sensor, and the captured initial image is divided into multiple image areas, and the R channel data, G channel data, and B channel data of each area are calculated. The corresponding target compensation magnification is set for the photosensitive element corresponding to each image area, so that the R channel data, G channel data, and B channel data in each image area are equal, and the R channel data, G channel data, and B channel data between different image areas are equal. Among them, the R channel data, the G channel data, and the B channel data are the brightness values of red pixels, green pixels, and blue pixels, respectively. Among them, the brightness values of red pixels, green pixels, and blue pixels in the image area are all average values of pixel brightness. Therefore, in the process of dividing the image area, the fewer the number of pixels included in the image area, the better the calibration effect, that is, the more image areas the initial image is divided into, the better the calibration effect.
[0120] Exemplarily, the initial image is divided into 64×64 image areas, and the R channel data, G channel data, and B channel data of each image area are calculated. Among them, the R channel data of the first image area is 100, the G channel data is 88, and the B channel data is 100, then the target compensation magnification is set for the photosensitive element corresponding to the red pixel and the photosensitive element corresponding to the blue pixel, so that the brightness value of the red pixel and the brightness value of the blue pixel in each image area become 88.
[0121] In an embodiment of the present application, a uniform gray card image is collected by an image sensor to obtain an initial image, and the initial image is divided into multiple image areas. A corresponding target compensation magnification is set for a signal control circuit corresponding to a photosensitive element corresponding to each image area, and the R channel data, G channel data, and B channel data in each image area are adjusted, thereby eliminating lateral chromatic aberration in the target image and improving the imaging quality of the target image data.
[0122] In some embodiments of the present application, Fig.11 : shows a circuit diagram of a photographing device provided in an embodiment of the present application, such as Fig.11As shown, the first control module 1102 includes a first capacitor FD1, a second capacitor FD2 and a third capacitor FD3. Among them, the first end of the first capacitor FD1 is grounded, and the second end of the first capacitor FD1 is connected to the first end of the photosensitive element PD1 through the first switch tube TG1; the first end of the second capacitor FD2 is grounded, and the second end of the second capacitor FD2 is connected to the first end of the photosensitive element PD1 through the second switch tube TG2; the first end of the third capacitor FD3 is grounded, and the second end of the third capacitor FD3 is connected to the first end of the photosensitive element PD1 through the third switch tube TG3. In the embodiment of the present application, the shooting device 1100 also includes a seventh switch tube TX1, an eighth switch tube RST and a power supply VDD1, the first end of the seventh switch tube TX1 is connected to the photosensitive element PD1, and the second end of the seventh switch tube TX1 is connected to the first control module 1102. The power supply VDD1 is connected to the first end of the eighth switch tube RST, and the second end of the eighth switch tube RST is connected to the first control module 1102.
[0123] In the embodiment of the present application, the first control module 1102 includes three capacitive elements and three switch tubes. The three capacitive elements are divided into a first capacitor FD1, a second capacitor FD2, and a third capacitor FD3. The three switch tubes are divided into a first switch tube TG1 connected to the first capacitor FD1, a second switch tube TG2 connected to the second capacitor FD2, and a third switch tube TG3 connected to the third capacitor FD3. Among them, the first capacitor FD1 is connected in series with the first switch tube TG1, the second capacitor FD2 is connected in series with the second switch tube TG2, the third capacitor FD3 is connected in series with the third switch tube TG3, and the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3 are connected in parallel.
[0124] In the embodiment of the present application, the capacitance values of the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3 may be the same or different. For example, the capacitance ratio of the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3 is 1:2:4, and the amplification factor of the first control module is 1 to 7 times.
[0125] In the case where the target control module includes a first control module, the output voltage signal of the target control module is adjusted based on the target compensation ratio, including: based on the target compensation ratio, controlling the first target switch tube to be in a connected state to adjust the output voltage signal of the first control module; wherein the first target switch tube includes at least one of the following: a first switch tube, a second switch tube, and a third switch tube.
[0126] In the embodiment of the present application, the first capacitor is connected in series with the first switch tube, the second capacitor is connected in series with the second switch tube, the third switch tube is connected in series with the third capacitor, and the first capacitor, the second capacitor and the third capacitor are connected in parallel. By controlling the on-off relationship of the first switch tube, the second switch tube and the third switch tube, the combination of the first capacitor, the second capacitor and the third capacitor connected in parallel can be adjusted.
[0127] Exemplarily, the capacitance ratio of the first capacitor FD1: the second capacitor FD2: the third capacitor FD3 is set to 1:3:6, that is, the compensation ratio corresponding to the first switch tube TG1 is 1, the compensation ratio corresponding to the second switch tube TG2 is 3, and the compensation ratio corresponding to the third switch tube TG3 is 6. By controlling the first switch tube TG1, the second switch tube TG2 and the third switch tube TG3 to maintain the passage in different combinations, a capacitance combination of 1 / 3 / 4 / 6 / 7 / 9 times that of the first capacitor FD1 can be obtained. When the target compensation ratio is 7, the first switch tube TG1 and the third switch tube TG3 are controlled to be closed, and a capacitance value of 7 times that of the first capacitor FD1 can be obtained, that is, the actual compensation ratio of the first control module reaches the target compensation ratio of 7.
[0128] In the embodiment of the present application, by setting the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3 connected in parallel in the first control module, and respectively setting the first switch tube TG1, the second switch tube TG2 and the third switch tube TG3 for controlling the on and off of the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3, the effect of conveniently connecting the first capacitor FD1, the second capacitor FD2 and the third capacitor FD3 to the circuit is achieved, and the effect of quickly adjusting the actual compensation ratio of the first control module is achieved.
[0129] like Fig.11 As shown, in some embodiments of the present application, the second control module includes 1104: a first target source follower SF1, a second target source follower SF2, and a third target source follower SF3.
[0130] Among them, the first end of the first target source follower SF1 is connected to the first control module through the fourth switch tube TG4; the first end of the second target source follower SF2 is connected to the first control module through the fifth switch tube TG5, and the first end of the second target source follower SF2 is also connected to the second end of the first target source follower SF1; the first end of the third target source follower SF3 is connected to the first control module through the sixth switch tube TG6, the first end of the third target source follower SF3 is also connected to the second end of the second target source follower SF2, and the second end of the third target source follower SF3 is connected to the output end Vout of the signal control circuit;
[0131] In the case where the target control module includes a second control module, adjusting the output voltage signal of the target control module based on the target compensation ratio includes:
[0132] Based on the target compensation ratio, controlling the second target switch tube to be in a connected state to adjust the output voltage signal of the second control module;
[0133] The second target switch tube includes at least one of the following: a fourth switch tube, a fifth switch tube, and a sixth switch tube.
[0134] In the embodiment of the present application, the second control module 1104 further includes: power supply VDD2, power supply VDD3, power supply VDD4 and a ninth switch tube SET. The third end of the first target source follower SF1 is connected to the power supply VDD2, the third end of the second target source follower SF2 is connected to the power supply VDD3, the third end of the third target source follower SF3 is connected to the power supply VDD4, and the ninth switch tube SET is connected between the third target source follower SF3 and the output end Vout of the signal control circuit.
[0135] The magnification factors of the first target source follower SF1 , the second target source follower SF2 and the third target source follower SF3 may be the same or different.
[0136] When the fourth switch tube TG4 is controlled to be closed, and the fifth switch tube TG5 and the sixth switch tube TG6 are disconnected, the signal is amplified in three stages through the first target source follower SF1, the second target source follower SF2 and the third target source follower SF3. At this time, the actual compensation ratio of the second control module is the product of the amplification factors of the first target source follower SF1, the second target source follower SF2 and the third target source follower SF3.
[0137] When the fifth switch tube TG5 is controlled to be closed, and the fourth switch tube TG4 and the sixth switch tube TG6 are disconnected, the signal is amplified at the second target source follower SF2 and the third target source follower SF3. At this time, the actual compensation ratio of the second control module is the product of the amplification factors of the second target source follower SF2 and the third target source follower SF3.
[0138] When the sixth switch tube TG6 is controlled to be closed and the fourth switch tube TG4 and the fifth switch tube TG5 are opened, the signal is amplified by the third target source follower SF3. At this time, the actual compensation ratio of the second control module is the amplification ratio of the third target source follower SF3.
[0139] After the target compensation ratio is determined, the fourth switch tube TG4 , the fifth switch tube TG5 and the sixth switch tube TG6 are controlled to be combined in different ways to adjust the actual compensation ratio of the second control module to reach the target compensation ratio.
[0140] In an embodiment of the present application, by setting a first target source follower SF1, a second target source follower SF2 and a third target source follower SF3 that can perform multi-stage amplification of the signal in the second control module, and correspondingly setting a fourth switch tube TG4, a fifth switch tube TG5 and a sixth switch tube TG6, the adjustment and control of the amplification level of the signal by the second control module is realized, and the effect of quickly adjusting the actual compensation ratio of the second control module is achieved.
[0141] When the shooting device 1100 starts to expose, the eighth switch tube RST and the seventh switch tube TX1 are closed at the same time to clear the photosensitive element PD1, and then the two are disconnected to start exposure. The electron-hole pairs generated by light irradiation will separate due to the existence of the PD1 electric field, and the electrons move to the n region and the holes move to the p region. In the reset stage of the shooting device 1100, when the exposure is completed, the eighth switch tube RST is controlled to close and the first control module 1102 is reset to a high level. After the reset is completed, the reset level of the first control module 1102 is read out. The fourth open light tube TX1 is controlled to close, and the charge is completely transferred from the photosensitive area to the output of the first control module 1102, and then output to the second control module 1104, and then amplified by the second control module 1104 and output.
[0142] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, a shooting method performed by a shooting device is taken as an example to illustrate the shooting device provided in the embodiment of the present application.
[0143] In some embodiments of the present application, a shooting device is provided. The shooting device includes an image sensor and a signal control circuit, the image sensor includes at least one photosensitive element, each photosensitive element is provided with a corresponding signal control circuit, the signal control circuit includes a first control module and a second control module; the first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element; the second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; wherein the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into the output voltage.
[0144] Fig.12 The structural block diagram of the shooting device provided in the embodiment of the present application is shown as follows: Fig.12As shown, the shooting device includes an image sensor and a signal control circuit. The image sensor includes at least one photosensitive element. Each photosensitive element is correspondingly provided with a signal control circuit. The signal control circuit includes a first control module and a second control module.
[0145] The first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element;
[0146] The second control module is connected to the first control module, and the second control module is used to adjust the conversion gain;
[0147] Wherein, the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into the output voltage;
[0148] The photographing device 1200 further includes:
[0149] A determination module 1202 is used to determine a compensation photosensitive element and a target compensation magnification of a signal control circuit corresponding to the compensation photosensitive element based on an initial image captured by the image sensor;
[0150] The adjustment module 1204 is used to adjust the output voltage signal of the target control module based on the target compensation ratio, wherein the target control module includes at least one of the following: a first control module of the signal control circuit, and a second control module of the signal control circuit;
[0151] The output module 1206 is used to control the circuit based on the adjusted signal to output the target image data.
[0152] In the embodiment of the present application, a signal control circuit is correspondingly provided for each photosensitive element in the image sensor in the shooting device. After the initial image is captured, the target compensation magnification of the signal voltage by the signal control circuit can be adjusted based on the initial image to eliminate bad pixels and bad lines in the initial image, eliminate the ripple phenomenon in the image caused by the AC light source, and improve the dark state uniformity and color accuracy of the image, thereby improving the output image quality.
[0153] In some embodiments of the present application, the first control module includes: N first switch elements and N capacitive elements, each first switch element is connected to the photosensitive element through a capacitive element, and N is a positive integer;
[0154] The adjustment module 1204 is further used to control P target switch elements to be in a conduction state based on the target compensation ratio to adjust the output voltage signal of the target control module, P≤M+N, wherein the P target switch elements are switch elements among the N first switch elements and the M second switch elements.
[0155] In the embodiment of the present application, a corresponding capacitive element and a first switch are set in the first control module, and a corresponding signal amplifier and a second switch are set in the second control module. By adjusting the on-off state of the first switch and the second switch, the actual compensation magnification of the signal control circuit is adjusted to the target compensation magnification, so as to compensate the signal voltage output by the signal control circuit corresponding to the compensation photosensitive element. It is achieved that the actual compensation magnification of each compensation photosensitive element in multiple photosensitive elements can be adjusted to the target compensation magnification, thereby improving the accuracy of the adjustment.
[0156] In some embodiments of the present application, when the P target switching elements are switching elements among the N first switching elements;
[0157] The photographing device 1200 further includes:
[0158] An acquisition module, used for acquiring a first compensation magnification corresponding to the first control module when each first switch element is in a conductive state;
[0159] The control module is used to control P target switch elements among the N first switch elements to be in a conduction state according to the target compensation ratio and the first compensation ratio.
[0160] In the embodiment of the present application, the first compensation ratios corresponding to different capacitive elements connected to the circuit are obtained, and the target compensation ratio is achieved by controlling the closing of different first switches.
[0161] In some embodiments of the present application, when the P target switching elements are switching elements among the M second switching elements;
[0162] The photographing device 1200 further includes:
[0163] An acquisition module, used for acquiring a second compensation magnification corresponding to the second control module when each second switch element is in a conductive state;
[0164] The control module obtains the second compensation magnification corresponding to the second control module when each second switch element is in a conducting state.
[0165] In the embodiment of the present application, the second compensation ratios corresponding to different second switch elements being in the on state are obtained, and the target compensation ratio is achieved by controlling the closing of different second switch elements.
[0166] In some embodiments of the present application, the target switch element includes a first switch element and a second switch element, and the determination module 1202 is used to determine a first target magnification and a second target magnification according to the target compensation magnification, wherein the target compensation magnification is the product of the first target magnification and the second target magnification;
[0167] The adjustment module 1204 is used to control X first switch elements to be in a conduction state to adjust the output voltage signal of the first control module according to the first target ratio, where X is a positive integer; and control Y second switch elements to be in a conduction state to adjust the output voltage signal of the first control module according to the second target ratio, where Y is a positive integer, wherein P=X+Y.
[0168] In an embodiment of the present application, when the P target switch elements include both the first switch element and the second switch element, the product of the actual compensation ratio of the first control module and the actual compensation ratio of the second control module is the actual compensation ratio of the signal control circuit.
[0169] By controlling X of the N first switch elements to be in a pass state, the actual compensation magnification of the first control module reaches the first target magnification, and at the same time controlling Y of the M second switch elements to be in a pass state, the actual compensation magnification of the second control module reaches the second target magnification, so that the actual compensation magnification of the signal control circuit reaches the target compensation magnification. By adjusting the actual compensation magnifications of the first control module and the second control module respectively, the accuracy of the actual compensation magnification of the signal control circuit relative to the target compensation magnification can be improved, and accurate compensation of the initial image is achieved.
[0170] In some embodiments of the present application, the image sensor includes real-sense pixels. The shooting device 1200 also includes:
[0171] An acquisition module, used for controlling the image sensor to acquire an initial image;
[0172] An acquisition module, used for acquiring brightness change information of real-sense pixels based on an initial image;
[0173] The determination module 1202 is further configured to determine the light source frequency based on the brightness change information;
[0174] The determination module 1202 is further used to determine the target compensation magnification of the compensation photosensitive unit and the signal control circuit corresponding to the compensation photosensitive element based on the frequency of the light source.
[0175] In an embodiment of the present application, the brightness change information caused by the AC light source during the initial image shooting process is obtained through real-sensing pixels, and the light source frequency of the AC light source can be determined based on the brightness change information. The target compensation magnification of the compensation photosensitive element and its corresponding signal control circuit is determined based on the light source frequency, and the actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for the different light energies received by different photosensitive elements, eliminating the ripple phenomenon that appears in the initial image, and improving the imaging quality of the target image data.
[0176] In some embodiments of the present application, the photographing device 1200 further includes:
[0177] An acquisition module, used for controlling the image sensor to acquire an initial image;
[0178] The determination module 1202 is further used to determine the target compensation magnification of the compensation photosensitive unit and the signal control circuit corresponding to the compensation photosensitive element based on the pixel value of the initial image.
[0179] In an embodiment of the present application, an entirely black initial image is captured by an image sensor, and pixel values in the initial image are determined to obtain dark current values of the photosensitive element corresponding to each pixel in the initial image, and a compensation photosensitive element and a corresponding target compensation magnification are determined based on the dark current values. The actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for uneven dark current, avoiding the problem of color cast caused by uneven dark current, and improving the imaging quality of the target image data.
[0180] In some embodiments of the present application, the photographing device 1200 further includes:
[0181] An acquisition module, used for controlling the image sensor to acquire an initial image, wherein the initial image includes at least two image areas;
[0182] A calculation module, used for calculating R channel data, G channel data and B channel data corresponding to each image area;
[0183] The determination module 1202 is used to determine the compensation photosensitive element corresponding to each image area and the target compensation magnification of the signal control circuit corresponding to the compensation photosensitive element based on the R channel data, the G channel data and the B channel data.
[0184] In an embodiment of the present application, a uniform gray card image is collected by an image sensor to obtain an initial image, and the initial image is divided into multiple image areas. A corresponding target compensation magnification is set for a signal control circuit corresponding to a photosensitive element corresponding to each image area, and the R channel data, G channel data, and B channel data in each image area are adjusted, thereby eliminating lateral chromatic aberration in the target image and improving the imaging quality of the target image data.
[0185] The shooting 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. It 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., and the embodiment of the present application does not make specific limitations.
[0186] The shooting 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.
[0187] The shooting device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.
[0188] Optionally, an embodiment of the present application further provides an electronic device, which includes a shooting device as in any of the above embodiments, and thus has all the beneficial effects of the shooting device in any of the embodiments, which will not be elaborated herein.
[0189] Optionally, an embodiment of the present application further provides an electronic device, Fig.13 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Fig.13 As shown, the electronic device 1300 includes a processor 1302, a memory 1304, and a program or instruction stored in the memory 1304 and executable on the processor 1302. When the program or instruction is executed by the processor 1302, each process of the embodiment of the above-mentioned shooting method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0190] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0191] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0192] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409 and a processor 1410 and other components.
[0193] The electronic device further includes: an image sensor and a signal control circuit, the image sensor includes at least one photosensitive element, each photosensitive element is provided with a corresponding signal control circuit, and the signal control circuit includes a first control module and a second control module;
[0194] The first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element;
[0195] The second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; wherein the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into the output voltage.
[0196] Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0197] The processor 1410 is used to determine the target compensation magnification of the compensation photosensitive element and the signal control circuit corresponding to the compensation photosensitive element based on the initial image captured by the image sensor;
[0198] The processor 1410 is configured to adjust an output voltage signal of a target control module based on a target compensation ratio, wherein the target control module includes at least one of the following: a first control module of a signal control circuit, and a second control module of the signal control circuit;
[0199] The processor 1410 is used to control the circuit based on the adjusted signal to output the target image data.
[0200] In the embodiment of the present application, a signal control circuit is correspondingly provided for each photosensitive element in the image sensor in the shooting device. After the initial image is captured, the target compensation magnification of the signal voltage by the signal control circuit can be adjusted based on the initial image to eliminate bad pixels and bad lines in the initial image, and to improve the dark state uniformity and color accuracy of the image, thereby improving the output image quality.
[0201] Further, the first control module includes: N first switch elements and N capacitive elements, each first switch element is connected to the photosensitive element through a capacitive element, and N is a positive integer;
[0202] Processor 1410 is used to control P target switch elements to be in a conduction state based on the target compensation ratio to adjust the output voltage signal of the target control module, P≤M+N, wherein the P target switch elements are switch elements among the N first switch elements and the M second switch elements.
[0203] In the embodiment of the present application, a corresponding capacitive element and a first switch are set in the first control module, and a corresponding signal amplifier and a second switch are set in the second control module. By adjusting the on-off state of the first switch and the second switch, the actual compensation magnification of the signal control circuit is adjusted to the target compensation magnification, so as to compensate the signal voltage output by the signal control circuit corresponding to the compensation photosensitive element. It is achieved that the actual compensation magnification of each compensation photosensitive element in multiple photosensitive elements can be adjusted to the target compensation magnification, thereby improving the accuracy of the adjustment.
[0204] Further, in the case where the P target switching elements are switching elements among the N first switching elements;
[0205] The processor 1410 is configured to obtain a first compensation magnification corresponding to the first control module when each first switch element is in a conductive state;
[0206] The processor 1410 is used to control P target switch elements among the N first switch elements to be in a conduction state according to the target compensation ratio and the first compensation ratio.
[0207] In the embodiment of the present application, the first compensation ratios corresponding to different capacitive elements connected to the circuit are obtained, and the target compensation ratio is achieved by controlling the closing of different first switches.
[0208] Further, in the case where the P target switching elements are switching elements among the M second switching elements;
[0209] The processor 1410 is configured to obtain a second compensation magnification corresponding to the second control module when each second switch element is in a conductive state;
[0210] The processor 1410 is used for controlling the second compensation ratio corresponding to the second control module when each second switch element is in a conducting state.
[0211] In the embodiment of the present application, the second compensation ratios corresponding to different second switch elements being in the on state are obtained, and the target compensation ratio is achieved by controlling the closing of different second switch elements.
[0212] Further, the target switch element includes a first switch element and a second switch element, and the processor 1410 is used to determine a first target magnification and a second target magnification according to the target compensation magnification, wherein the target compensation magnification is the product of the first target magnification and the second target magnification;
[0213] The processor 1410 is used to control X first switch elements to be in a conduction state to adjust the output voltage signal of the first control module according to a first target ratio, where X is a positive integer; and control Y second switch elements to be in a conduction state to adjust the output voltage signal of the first control module according to a second target ratio, where Y is a positive integer, wherein P=X+Y.
[0214] In an embodiment of the present application, when the P target switch elements include both the first switch element and the second switch element, the product of the actual compensation ratio of the first control module and the actual compensation ratio of the second control module is the actual compensation ratio of the signal control circuit.
[0215] By controlling X of the N first switch elements to be in a pass state, the actual compensation magnification of the first control module reaches the first target magnification, and at the same time controlling Y of the M second switch elements to be in a pass state, the actual compensation magnification of the second control module reaches the second target magnification, so that the actual compensation magnification of the signal control circuit reaches the target compensation magnification. By adjusting the actual compensation magnifications of the first control module and the second control module respectively, the accuracy of the actual compensation magnification of the signal control circuit relative to the target compensation magnification can be improved, and accurate compensation of the initial image is achieved.
[0216] Further, the image sensor includes real-sense pixels. The processor 1410 is used to control the image sensor to capture an initial image;
[0217] Processor 1410, used to obtain brightness change information of real-sense pixels based on the initial image;
[0218] Processor 1410, configured to determine the frequency of the light source based on the brightness change information;
[0219] The processor 1410 is used to determine the target compensation magnification of the compensation photosensitive unit and the signal control circuit corresponding to the compensation photosensitive element based on the frequency of the light source.
[0220] In an embodiment of the present application, the brightness change information caused by the AC light source during the initial image shooting process is obtained through real-sensing pixels, and the light source frequency of the AC light source can be determined based on the brightness change information. The target compensation magnification of the compensation photosensitive element and its corresponding signal control circuit is determined based on the light source frequency, and the actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for the different light energies received by different photosensitive elements, eliminating the ripple phenomenon that appears in the initial image, and improving the imaging quality of the target image data.
[0221] Further, the processor 1410 is used to control the image sensor to capture an initial image;
[0222] Processor 1410 is used to determine a target compensation magnification of a compensation photosensitive unit and a signal control circuit corresponding to the compensation photosensitive element based on the pixel value of the initial image.
[0223] In an embodiment of the present application, an entirely black initial image is captured by an image sensor, and pixel values in the initial image are determined to obtain dark current values of the photosensitive element corresponding to each pixel in the initial image, and a compensation photosensitive element and a corresponding target compensation magnification are determined based on the dark current values. The actual compensation magnification of the signal control circuit is adjusted according to the target compensation magnification, thereby achieving compensation for uneven dark current, avoiding the problem of color cast caused by uneven dark current, and improving the imaging quality of the target image data.
[0224] Further, the processor 1410 is used to control the image sensor to capture an initial image, where the initial image includes at least two image areas;
[0225] Processor 1410, used to calculate R channel data, G channel data and B channel data corresponding to each image area;
[0226] Processor 1410 is used to determine the compensation photosensitive element corresponding to each image area and the target compensation magnification of the signal control circuit corresponding to the compensation photosensitive element based on the R channel data, the G channel data and the B channel data.
[0227] In an embodiment of the present application, a uniform gray card image is collected by an image sensor to obtain an initial image, and the initial image is divided into multiple image areas. A corresponding target compensation magnification is set for a signal control circuit corresponding to a photosensitive element corresponding to each image area, and the R channel data, G channel data, and B channel data in each image area are adjusted, thereby eliminating lateral chromatic aberration in the target image and improving the imaging quality of the target image data.
[0228] It should be understood that in the embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0229] The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0230] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.
[0231] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0232] The processor is the processor in the electronic device 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.
[0233] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the embodiment of the above-mentioned shooting method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0234] 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.
[0235] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the above-mentioned shooting method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0236] 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.
[0237] 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 prior art, 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 of each embodiment of the present application.
[0238] 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.
Claims
1. A shooting method, applied to a shooting device, characterized in that: The shooting device includes an image sensor and a signal control circuit, the image sensor includes at least one photosensitive element, each of the photosensitive elements is correspondingly provided with a signal control circuit, and the signal control circuit includes a first control module and a second control module; The first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element; The second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; Wherein, the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into the output voltage; The shooting method comprises: Determining a compensation photosensitive element and a target compensation magnification of a signal control circuit corresponding to the compensation photosensitive element based on an initial image captured by the image sensor; The output voltage signal of the target control module is adjusted based on the target compensation ratio, wherein the target control module comprises: a first control module of the signal control circuit and a second control module of the signal control circuit; Based on the adjusted signal control circuit, output the target image data; The first control module includes: N first switch elements and N capacitive elements, each of the first switch elements is connected to the photosensitive element via one of the capacitive elements, and N is a positive integer; The second control module comprises: M second switch elements and M signal amplifiers, each of the signal amplifiers is connected to the first control module via one of the second switch elements, and M is a positive integer; The adjusting the output voltage signal of the target control module based on the target compensation ratio includes: Based on the target compensation ratio, P target switch elements are controlled to be in a conduction state to adjust the output voltage signal of the target control module, P≤M+N, wherein the P target switch elements are switch elements among the N first switch elements and the M second switch elements; different combinations of the on-off states of the N first switch elements and the M second switch elements can obtain different actual compensation ratios, and the actual compensation ratio of the signal control circuit is made to be the target compensation ratio by adjusting the N first switch elements and the M second switch elements; The target switch element includes the first switch element and the second switch element, and the controlling P target switch elements to be in a conducting state based on the target compensation ratio includes: Determining a first target magnification and a second target magnification according to the target compensation magnification, wherein the target compensation magnification is the product of the first target magnification and the second target magnification; Controlling X of the first switch elements to be in a conducting state to adjust the output voltage signal of the first control module according to the first target ratio, where X is a positive integer; Control Y second switch elements to be in a conducting state to adjust the output voltage signal of the second control module according to the second target ratio, where Y is a positive integer, and P=X+Y.
2. The shooting method according to claim 1, characterized in that: The image sensor includes real-sense pixels; The method of determining the target compensation magnification of the compensation photosensitive element and the signal control circuit corresponding to the compensation photosensitive element based on the initial image collected by the image sensor includes: Controlling the image sensor to collect an initial image; Acquire brightness change information of the real-sense pixel based on the initial image; Determine the light source frequency based on the brightness change information; Based on the light source frequency, a target compensation magnification of a compensation photosensitive element and a signal control circuit corresponding to the compensation photosensitive element is determined.
3. The shooting method according to claim 1, characterized in that: The method of determining the target compensation magnification of the compensation photosensitive element and the signal control circuit corresponding to the compensation photosensitive element based on the initial image collected by the image sensor includes: Controlling the image sensor to collect an initial image; Based on the pixel values of the initial image, a target compensation magnification of a compensation photosensitive element and a signal control circuit corresponding to the compensation photosensitive element is determined.
4. The shooting method according to claim 1, characterized in that: The method of determining the target compensation magnification of the compensation photosensitive element and the signal control circuit corresponding to the compensation photosensitive element based on the initial image collected by the image sensor includes: Controlling the image sensor to collect an initial image, wherein the initial image includes at least two image areas; Calculate the R channel data, the G channel data and the B channel data corresponding to each of the image regions; Based on the R channel data, the G channel data and the B channel data, the compensation photosensitive element corresponding to each image area and the target compensation magnification of the signal control circuit corresponding to the compensation photosensitive element are determined.
5. The shooting method according to claim 1, characterized in that: The first control module comprises: A first capacitor, wherein a first end of the first capacitor is grounded, and a second end of the first capacitor is connected to a first end of the photosensitive element through a first switch tube; A second capacitor, wherein a first end of the second capacitor is grounded, and a second end of the second capacitor is connected to the first end of the photosensitive element through a second switch tube; A third capacitor, a first end of the third capacitor is grounded, and a second end of the third capacitor is connected to the first end of the photosensitive element through a third switch tube; In a case where the target control module includes the first control module, adjusting the output voltage signal of the target control module based on the target compensation ratio includes: Based on the target compensation ratio, controlling the first target switch tube to be in a connected state to adjust the output voltage signal of the first control module; The first target switch tube includes at least one of the following: the first switch tube, the second switch tube, and the third switch tube.
6. The shooting method according to claim 1, characterized in that: The second control module includes: A first target source follower, wherein a first end of the first target source follower is connected to the first control module via a fourth switch tube; A second target source follower, wherein a first end of the second target source follower is connected to the first control module via a fifth switch tube, and the first end of the second target source follower is also connected to a second end of the first target source follower; A third target source follower, wherein a first end of the third target source follower is connected to the first control module through a sixth switch tube, the first end of the third target source follower is also connected to a second end of the second target source follower, and the second end of the third target source follower is connected to an output end of the signal control circuit; In a case where the target control module includes the second control module, adjusting the output voltage signal of the target control module based on the target compensation ratio includes: Based on the target compensation ratio, controlling the second target switch tube to be in a connected state to adjust the output voltage signal of the second control module; Wherein, the second target switch tube includes at least one of the following: the fourth switch tube, the fifth switch tube, and the sixth switch tube.
7. A photographing device, characterized in that: The shooting device includes an image sensor and a signal control circuit, the image sensor includes at least one photosensitive element, each of the photosensitive elements is correspondingly provided with a signal control circuit, and the signal control circuit includes a first control module and a second control module; The first control module is connected to the first end of the photosensitive element, and the first control module is used to adjust the signal voltage corresponding to the photosensitive element; The second control module is connected to the first control module, and the second control module is used to adjust the conversion gain; Wherein, the conversion gain is used to indicate the gain of converting the signal voltage corresponding to the first control module into the output voltage; The photographing device further includes: A determination module, configured to determine a compensation photosensitive element and a target compensation magnification of a signal control circuit corresponding to the compensation photosensitive element based on an initial image captured by the image sensor; An adjustment module, used for adjusting the output voltage signal of the target control module based on the target compensation ratio, wherein the target control module comprises: a first control module of the signal control circuit and a second control module of the signal control circuit; An output module, used for outputting target image data based on the adjusted signal control circuit; The first control module includes: N first switch elements and N capacitive elements, each of the first switch elements is connected to the photosensitive element via one of the capacitive elements, and N is a positive integer; The second control module comprises: M second switch elements and M signal amplifiers, each of the signal amplifiers is connected to the first control module via one of the second switch elements, and M is a positive integer; The adjustment module is further used to control P target switch elements to be in a conduction state based on the target compensation magnification to adjust the output voltage signal of the target control module, P≤M+N, wherein the P target switch elements are switch elements among the N first switch elements and the M second switch elements; different combinations of the on-off states of the N first switch elements and the M second switch elements can obtain different actual compensation magnifications, and by adjusting the N first switch elements and the M second switch elements, the actual compensation magnification of the signal control circuit is made to be the target compensation magnification; The target switch element includes the first switch element and the second switch element; The determination module is configured to determine a first target magnification and a second target magnification according to the target compensation magnification, wherein the target compensation magnification is a product of the first target magnification and the second target magnification; The adjustment module is used to control X of the first switch elements to be in a conduction state, so as to adjust the output voltage signal of the first control module according to the first target ratio, where X is a positive integer; Control Y second switch elements to be in a conducting state to adjust the output voltage signal of the second control module according to the second target ratio, where Y is a positive integer, and P=X+Y.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 6 are implemented.
9. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the shooting method according to any one of claims 1 to 6 are implemented.
