Image generation method, device, electronic device and medium

By acquiring and exposing the first exposure area of ​​the moving object on the image sensor, and then exposing the second exposure area other than this area, the problem of image area deformation of the moving object is solved and the shooting effect is improved.

CN115278097BActive Publication Date: 2024-08-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210731467.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-08-27
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

When photographing moving objects, the electronic device exposes the multiple rows of photosensitive units of the image sensor line by line, causing the image area of ​​the moving object to deform, affecting the shooting effect.

Method used

By obtaining the first exposure area of ​​the image sensor, including the photosensitive area of ​​the moving object, exposure is performed, and after the exposure is completed, the second exposure area is exposed to generate a target image, thereby reducing the exposure time of the photosensitive unit of the moving object and avoiding deformation.

Benefits of technology

Effectively reduce the deformation of moving objects in the image area, improve the shooting effect, and ensure the integrity and clarity of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278097B
    Figure CN115278097B
Patent Text Reader

Abstract

The present application discloses an image generation method, device, electronic device and medium, which belongs to the field of photography technology. The image generation device includes an image sensor, and the method includes: obtaining a first exposure area of ​​the image sensor under the condition of controlling the image sensor to be exposed, the first exposure area includes a photosensitive area corresponding to a moving object; exposing the photosensitive unit corresponding to the first exposure area to obtain first image data; when the first exposure area is exposed, exposing the photosensitive unit corresponding to the second exposure area of ​​the image sensor to obtain second image data; generating a target image according to the first image data and the second image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of camera technology, and specifically relates to an image generation method, device, electronic equipment and medium. Background Art

[0002] Typically, when a user uses an electronic device to photograph a subject, the electronic device can control a rolling shutter of the electronic device to expose multiple rows of photosensitive units of an image sensor row by row to expose photosensitive units corresponding to the subject, thereby obtaining a captured image of the subject.

[0003] However, since the photographed object may be a moving object, the electronic device will expose the photosensitive unit corresponding to the moving object line by line, which will result in a longer exposure time for the photosensitive unit corresponding to the moving object. Therefore, the image area where the moving object is located in the obtained captured image may be deformed.

[0004] This results in poor shooting effect of the electronic device. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an image generation method, device, electronic device and medium, which can reduce the deformation of the image area where the moving object is located and improve the shooting effect of the electronic device.

[0006] In a first aspect, an embodiment of the present application provides an image generating method, which is applied to an image generating device, wherein the image generating device includes an image sensor, and the method includes: while controlling the image sensor to perform exposure, acquiring a first exposure area of ​​the image sensor, wherein the first exposure area includes a photosensitive area corresponding to a moving object; exposing a photosensitive unit corresponding to the first exposure area to obtain first image data; when the first exposure area is exposed, exposing a photosensitive unit corresponding to a second exposure area of ​​the image sensor to obtain second image data; and generating a target image based on the first image data and the second image data.

[0007] In a second aspect, an embodiment of the present application provides an image generating device, which includes an image sensor, and the image generating device also includes: an acquisition module, an exposure module, and a processing module. Among them, the acquisition module is used to acquire a first exposure area of ​​the image sensor while controlling the image sensor to be exposed, and the first exposure area includes a photosensitive area corresponding to a moving object. The exposure module is used to expose the photosensitive unit corresponding to the first exposure area acquired by the acquisition module to obtain first image data; and when the first exposure area is exposed, the photosensitive unit corresponding to the second exposure area of ​​the image sensor is exposed to obtain second image data, and the second exposure area includes an exposure area of ​​the image sensor other than the first exposure area. The processing module is used to generate a target image based on the first image data and the second image data obtained by the exposure module.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] 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 described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the first aspect.

[0011] 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 steps of the method described in the first aspect.

[0012] In an embodiment of the present application, when the image generating device controls the image sensor of the image generating device to perform exposure, the image generating device may first acquire a first exposure area of ​​the image sensor (i.e., an exposure area including a moving object), and then expose the photosensitive unit corresponding to the first exposure area to obtain first image data, and when the exposure of the first exposure area is completed, expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor (i.e., an exposure area including the image sensor other than the first exposure area) to obtain second image data, so that the image generating device may generate a target image based on the first image data and the second image data. Since the image generating device can first obtain the first exposure area corresponding to the moving object, and then directly expose the photosensitive unit corresponding to the first exposure area, and only expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor (that is, the exposure area including the image sensor except the first exposure area) after the exposure of the first exposure area is completed, that is, the image generating device can first expose the photosensitive unit corresponding to the first exposure area, rather than exposing the entire exposure area of ​​the image sensor line by line. Therefore, the exposure time of the photosensitive unit corresponding to the moving object can be reduced, thereby reducing the deformation phenomenon of the image area where the moving object is located. In this way, the shooting effect of the image generating device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is one of the flowcharts of the image generation method provided in the embodiment of the present application;

[0014] Figure 2 This is one of the schematic diagrams of the position relationship of the photosensitive units corresponding to the exposure area of ​​the embodiment of the present application;

[0015] Figure 3 This is the second flow chart of the image generation method provided in the embodiment of the present application;

[0016] Figure 4 is a circuit connection diagram of a real-sense pixel in an embodiment of the present application;

[0017] Figure 5 This is the third flow chart of the image generation method provided in the embodiment of the present application;

[0018] Figure 6 This is the fourth flowchart of the image generation method provided in the embodiment of the present application;

[0019] Figure 7 This is the second schematic diagram of the position relationship of the photosensitive units corresponding to the exposure area of ​​the embodiment of the present application;

[0020] Figure 8is a schematic diagram of the structure of an image generating device provided in an embodiment of the present application;

[0021] Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0023] 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.

[0024] 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.

[0025] The image generation method, device, electronic device and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0026] Figure 1 A flowchart of an image generation method provided by an embodiment of the present application is shown, which is applied to an image generation device, and the image generation device includes an image sensor. Figure 1 As shown, the image generation method provided in the embodiment of the present application may include the following steps 101 to 104.

[0027] Step 101: When an image generating device controls an image sensor to perform exposure, the image generating device obtains a first exposure area of ​​the image sensor.

[0028] In the embodiment of the present application, a rolling shutter may be provided in the image generating device.

[0029] Optionally, in an embodiment of the present application, when a user triggers the image generating device to start a shooting application, the image generating device may display a preview interface of the shooting application, turn on the camera of the image generating device, and control a rolling shutter to expose the image sensor.

[0030] In the embodiment of the present application, the first exposure area includes a photosensitive area corresponding to the moving object.

[0031] Among them, the moving objects may include animals, people, etc.

[0032] It should be noted that the above-mentioned “photosensitive area corresponding to the moving object” can be understood as: in the captured image, the photosensitive area corresponding to the image area where the moving object is located.

[0033] It can be understood that the image generating device can expose the photosensitive unit corresponding to the first exposure area to obtain an image of the moving object.

[0034] Optionally, in the embodiment of the present application, the image generating device may obtain target position information of the first exposure area.

[0035] The target position information may include at least one of the following: position information of a target point of the first exposure area, size information of the first exposure area, etc. The target point may be any one of the following: an end point, a center point, etc.

[0036] In one example, the image generation device can collect the contour information of the moving object through a motion sensor, so that the image generation device can obtain the target position information of the first exposure area according to the contour information of the moving object. The motion sensor can be any one of the following: an infrared sensor, a laser sensor, a dynamic vision sensor, etc.

[0037] In another example, the image generating device can obtain a preview picture while controlling the image sensor to expose, and detect the preview picture to determine the area where the moving object is located, so that the image generating device can obtain the target position information of the first exposure area corresponding to the area based on the position information of the area.

[0038] In another example, at least two high-sensitivity photosensitive units (such as real-sensing pixels in the following embodiments) may be provided in the image sensor of the image generating device. When the image generating device controls the image sensor for exposure, the at least two high-sensitivity photosensitive units can detect the outline of a moving object. When some of the at least two high-sensitivity photosensitive units detect the outline of a moving object, the position information of the some high-sensitivity photosensitive units may be sent to the image generating device, so that the image generating device can obtain the target position information of the first exposure area according to the position information of the some high-sensitivity photosensitive units.

[0039] Step 102: The image generating device exposes the photosensitive unit corresponding to the first exposure area to obtain first image data.

[0040] Optionally, in an embodiment of the present application, the image generating device may expose the photosensitive unit corresponding to the first exposure area based on the target position information to obtain the first image data.

[0041] The image generating device may first determine the photosensitive unit corresponding to the first exposure area according to the target position information, and expose the photosensitive unit corresponding to the first exposure area line by line, and read the data corresponding to the photosensitive unit corresponding to the first exposure area line by line to obtain the first image data. The photosensitive unit may specifically be a photodiode.

[0042] Specifically, the image generating device may first expose the first row of photosensitive cells corresponding to the first exposure area one by one, and read the data corresponding to the first row of photosensitive cells when the exposure of the first row of photosensitive cells is completed, and then expose the second row of photosensitive cells corresponding to the first exposure area one by one, and read the data corresponding to the second row of photosensitive cells when the exposure of the second row of photosensitive cells is completed, and so on, until the photosensitive cells in the last row of photosensitive cells corresponding to the first exposure area are exposed one by one, and when the exposure of the last row of photosensitive cells is completed, the corresponding data in the last row of photosensitive cells is read to obtain the first image data.

[0043] Here, the image generating device may expose the first photosensitive unit in the first row of photosensitive units corresponding to the first exposure area, and then expose the second photosensitive unit in the first row of photosensitive units, and so on, until the last photosensitive unit in the first row of photosensitive units is exposed, so as to achieve exposure of the first row of photosensitive units corresponding to the first exposure area.

[0044] Step 103 : When the exposure in the first exposure area is completed, the image generating device exposes the photosensitive unit corresponding to the second exposure area of ​​the image sensor to obtain second image data.

[0045] In the embodiment of the present application, the second exposure area includes an exposure area in the image sensor except the first exposure area.

[0046] It can be understood that the second exposure area can be the entire exposure area in the image sensor, or the exposure area in the image sensor except the first exposure area.

[0047] Optionally, in an embodiment of the present application, the image generating device may first expose the photosensitive units corresponding to the second exposure area row by row, and read the data corresponding to the second exposure area row by row to obtain the second image data.

[0048] It should be noted that, for the description of the image generating device obtaining the second image data, reference can be made to the specific description of the image generating device obtaining the first image data, and the embodiments of the present application will not be repeated here. Optionally, in the embodiments of the present application, when the second exposure area includes an exposure area other than the first exposure area in the image sensor, if a row of photosensitive cells corresponding to the second exposure area and a row of first photosensitive cells corresponding to the first exposure area are located in the same row, since the first exposure area may be located in the middle, the image generating device may first expose a portion of the photosensitive cells in the row of photosensitive cells corresponding to the second exposure area (for example, the photosensitive cells on the left side of the first exposure area), and then expose another portion of the photosensitive cells in the row of photosensitive cells corresponding to the second exposure area (for example, the photosensitive cells on the right side of the first exposure area).

[0049] For example, Figure 2 The schematic diagram of the position relationship of the photosensitive units corresponding to the exposure area of ​​the embodiment of the present application is shown. Figure 2 As shown, the photosensitive units corresponding to the first exposure area (for example, area 10) include a row of first photosensitive units 11, and the second exposure area includes an exposure area other than area 10 in the image sensor. The photosensitive units corresponding to the second exposure area include a row of photosensitive units, and the row of photosensitive units and the row of first photosensitive units 11 are located in the same row, that is, the row of photosensitive units and the row of first photosensitive units 11 are in the same row on the image sensor. The image generating device can first expose the part of the photosensitive units 12 one by one, and then expose the other part of the photosensitive units 13 one by one.

[0050] Step 104: The image generating device generates a target image according to the first image data and the second image data.

[0051] Optionally, in an embodiment of the present application, the image generating device may first perform synthesis processing on the first image data and the second image data to obtain target image data, and then process the target image data through an image signal processor and compress it to generate a target image.

[0052] Optionally, in an embodiment of the present application, after the image generating device generates the target image, the image generating device may display the target image in a preview interface of a shooting application, or the image generating device may directly store the target image in a preset storage area (such as a storage area corresponding to an "album").

[0053] In the following, the second exposure area is taken as an example as an exposure area in the image sensor other than the first exposure area to illustrate how the image generating device generates the target image.

[0054] The second exposure area is an exposure area of ​​the image sensor other than the first exposure area:

[0055] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 3 As shown, the above step 104 can be specifically implemented through the following step 104a.

[0056] Step 104a: The image generating device fuses the first image data and the target image data to generate a target image.

[0057] In the embodiment of the present application, the target image data is image data corresponding to an exposure area other than the first exposure area in the second image data.

[0058] Further optionally, in the embodiment of the present application, the image generation device may first obtain the position information of the Q photosensitive units corresponding to the first exposure area and the position information of the T photosensitive units corresponding to the target image data, and restore the first image data corresponding to the Q photosensitive units according to the position information of the Q photosensitive units, and restore the target image data corresponding to the T photosensitive units according to the position information of the T photosensitive units, so that the image generation device can fuse the first image data and the target image data to generate the target image. Wherein, Q and T are both positive integers.

[0059] Specifically, the Q photosensitive units mentioned above may be all photosensitive units corresponding to the first exposure area; and the T photosensitive units mentioned above may be all photosensitive units corresponding to the target image data.

[0060] Specifically, the above-mentioned location information may be coordinate information.

[0061] The coordinate information may be coordinate information in a target coordinate system; the target coordinate system is a rectangular coordinate system with a specific photosensitive unit corresponding to the entire exposure area of ​​the image sensor as the origin. The specific photosensitive unit may be any one of the following: a photosensitive unit corresponding to the center of the entire exposure area of ​​the image sensor, or a photosensitive unit corresponding to the endpoint of the entire exposure area of ​​the image sensor.

[0062] Specifically, the position information (eg coordinate information) of all photosensitive units corresponding to all exposure areas of the image sensor is pre-stored in the image generating device, so that the image generating device can obtain the coordinate information of Q photosensitive units and the coordinate information of T photosensitive units from the coordinate information of all photosensitive units.

[0063] Specifically, for each of the Q photosensitive units, the image generating device may determine the coordinate information of a photosensitive unit as the coordinate information of a pixel point corresponding to the photosensitive unit in the synthesized image data, and then restore the image data corresponding to the photosensitive unit.

[0064] Specifically, for each of the T photosensitive units, the image generating device may determine the coordinate information of a photosensitive unit as the coordinate information of a pixel point corresponding to the photosensitive unit in the synthesized image data, and then restore the image data corresponding to the photosensitive unit.

[0065] It can be understood that the image generating device can first determine the coordinate information of the pixel points corresponding to the Q photosensitive units and the T photosensitive units, and then restore the image data corresponding to the Q photosensitive units and the T photosensitive units according to the determined coordinate information to generate the target image.

[0066] In an embodiment of the present application, Q photosensitive units collect image data corresponding to a moving object, and T photosensitive units collect image data corresponding to a background, so that an image generating device can first restore the image data corresponding to the Q photosensitive units and the T photosensitive units respectively according to the position information of the Q photosensitive units and the position information of the T photosensitive units to obtain a target image. Therefore, image anomalies in the target image can be avoided.

[0067] Thus, it can be known that the image generating device can fuse the first image data and the image data corresponding to the exposure area other than the first exposure area in the second image data to quickly obtain a complete image (ie, the target image).

[0068] For the second exposure area, which is the entire exposure area in the image sensor:

[0069] Optionally, in the embodiment of the present application, the above step 104 can be specifically implemented by the following step 104b.

[0070] Step 104b: The image generating device fuses the first image data and the target image data to generate a target image.

[0071] In the embodiment of the present application, the target image data is: image data corresponding to the second exposure area outside the first exposure area in the second image data.

[0072] Further optionally, in an embodiment of the present application, the image generating device may first obtain position information (e.g., coordinate information) of Q photosensitive units corresponding to the first image data and position information (e.g., coordinate information) of T photosensitive units corresponding to the second image data, and then determine the photosensitive units corresponding to the Q photosensitive units from the coordinate information of the T photosensitive units based on the coordinate information of the Q photosensitive units to determine the image data corresponding to the target image area in the second image data, and then the image generating device may fuse the first image data and the image data corresponding to the target image area to obtain fused image data, so that the image generating device may process the fused image data through an image signal processor to generate a target image.

[0073] It should be noted that for the description of the fusion processing, reference may be made to the specific description in the relevant technology, and the embodiments of the present application will not be elaborated here.

[0074] In an embodiment of the present application, Q photosensitive units collect image data corresponding to the moving object in the target image, and T photosensitive units collect image data corresponding to the moving object and the background in the target image, so that the image generating device can fuse the first image data and the target image area to generate the target image.

[0075] As can be seen, since the image generating device can fuse the image data corresponding to the target image area in the first image data and the second image data, the deformation phenomenon of the moving object in the target image can be alleviated.

[0076] In an embodiment of the present application, the image generating device may first acquire a first exposure area corresponding to a moving object, and then directly expose the photosensitive unit corresponding to the first exposure area, rather than exposing the entire exposure area of ​​the image sensor row by row. Thus, the time for exposing the photosensitive unit corresponding to the moving object can be reduced.

[0077] In the image generating method provided by the embodiment of the present application, when the image generating device controls the image sensor of the image generating device to perform exposure, the image generating device can first obtain a first exposure area of ​​the image sensor (i.e., an exposure area including a moving object), and then expose the photosensitive unit corresponding to the first exposure area to obtain first image data, and when the exposure of the first exposure area is completed, expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor (i.e., an exposure area including the image sensor except the first exposure area) to obtain second image data, so that the image generating device can generate a target image based on the first image data and the second image data. Since the image generating device can first obtain the first exposure area corresponding to the moving object, and then directly expose the photosensitive unit corresponding to the first exposure area, and only expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor (that is, the exposure area including the image sensor except the first exposure area) after the exposure of the first exposure area is completed, that is, the image generating device can first expose the photosensitive unit corresponding to the first exposure area, rather than exposing the entire exposure area of ​​the image sensor line by line. Therefore, the exposure time of the photosensitive unit corresponding to the moving object can be reduced, thereby reducing the deformation phenomenon of the image area where the moving object is located. In this way, the shooting effect of the image generating device can be improved.

[0078] In the following, an example in which at least two high-sensitivity pixels (such as real-sensing pixels) are provided in the image sensor of the shooting device is used to illustrate how the shooting device obtains motion information.

[0079] Figure 4 FIG. 2 shows a circuit connection diagram of a real-sense pixel. Figure 4 As shown, a real-sense pixel circuit may include: a first current amplification module 20 , a second current amplification module 21 , an analog-to-digital conversion module 22 , a logic judgment module 23 and a signal control module 24 .

[0080] The first current amplification module 20 includes: a pixel PD1, a first end of which is grounded, and a second end of which is connected to a first end of a first capacitor C1; an NPN transistor 25, a base of which is connected to a second end of the first capacitor C1, a base of which is also connected to a first power source V0 via a first resistor R1, a collector of which is connected to a first end of a second capacitor C2, a collector of which is also connected to the first power source V0 via a second resistor R2, and an emitter of which is grounded; a second end of the second capacitor C2 is grounded via a third resistor R3, and a second end of the second capacitor C2 is also connected to a first switch tube T1.

[0081] The analog-to-digital conversion module 22 includes: an analog-to-digital converter (ADC) 26, a first end of the analog-to-digital converter ADC26 is connected to the second end of the second capacitor C2, and a second end of the analog-to-digital converter ADC26 is also connected to the first end of the logic judgment module 23;

[0082] A first end of the signal control module 24 is connected to a second end of the logic judgment module 23, and a second end of the signal control module 24 is connected to the first switch tube T1;

[0083] The second current amplification module 21 includes: a pixel PD2, a first end of which is grounded, and a second end of which is connected to a first end of a third capacitor C3; an NPN transistor 27, a base of which is connected to a second end of the third capacitor C3, a base of which is also connected to a second power supply V1 via a fourth resistor R4, a collector of which is connected to a first end of a fourth capacitor C4, a collector of which is also connected to the second power supply V1 via a fifth resistor R5, and an emitter of which is grounded; a second end of the fourth capacitor C4 is grounded via a sixth resistor R6, and a second end of the fourth capacitor C4 is also connected to a second switch tube T2; a second end of the fourth capacitor C4 is also connected to an analog-to-digital converter ADC, and a second end of the signal control module 24 is also connected to the second switch tube T2.

[0084] Among them, the function of the first current amplification module 20 is to use the photodiode PD1 to convert the light signal into a current signal first, and amplify the current signal through the resistor R1, the resistor R2 and the transistor, and then convert it into a voltage signal 1 through the resistor R3, and output the voltage signal 1 to the analog-to-digital conversion module 12.

[0085] In the analog-to-digital conversion module 22, V ADC Vref and Vref are the working voltage and reference voltage of the analog-to-digital converter (ADC) 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 20 is input into the analog-to-digital conversion module 22, 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 23.

[0086] In the logic judgment module 23, VH and VL are the maximum and minimum values ​​of the photosensitive digital signal 2'' of the photosensitive diode PD1 at the previous moment, that is, VH and VL indicate the voltage range of the photosensitive digital signal 2' of the photosensitive diode PD1 at the previous moment. The logic judgment module 23 can compare the photosensitive digital signal 1' with the VH and VL of the photosensitive diode PD1 at the previous moment, respectively. If the photosensitive digital signal 1' exceeds the range of VH and VL, the logic judgment module 23 can output a request signal to the signal control module 24, and the request signal is used to request the output of the voltage signal output by the first current amplification module 20, that is, the voltage signal 1.

[0087] After receiving the request signal output by the logic judgment module 23, the signal control module 24 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 first switch tube T1, a first analog signal output module and a multiplexing switch module connected in sequence.

[0088] It can be understood that the functions of the components of the second current amplifying module 21 are similar to those of the first current amplifying module 20, and the functions of the second analog signal output module and the second switch tube T2 are similar to those of the first analog signal output module and the first switch tube T1, so they are not repeated here.

[0089] The second analog signal output module and the second switch tube T2 constitute a second path for outputting the voltage signal (analog) of the second current amplification module 21 .

[0090] It should be noted that in actual implementation, the signal control module 24 can control the simultaneous output of the voltage signal 1 of the first current amplification module 20 and the voltage signal 2 of the second current amplification module 21, and control the multiplexing switch module to process the two voltage signals (i.e., voltage signal 1 and voltage signal 2), and finally the multiplexing switch module outputs voltage signal 1, voltage signal 2, and voltage signal 1+voltage signal 2.

[0091] In this way, voltage signal 1 and voltage signal 2 can be used to determine the phase difference and perform distance or speed measurement; and voltage signal 1 + voltage signal 2 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.

[0092] In the embodiment of the present application, each of the at least two real-sensing pixels can be independent of each other, and each real-sensing pixel can sense the change in the brightness of the external environment in real time according to the pixel clock frequency, convert the change in the ambient brightness into a change in current, and then convert it into a change in a digital signal.

[0093] If the change in the digital signal of some of the at least two real-sensing pixels exceeds a preset threshold, the some real-sensing pixels will report to the system to request readout, and output a data packet containing the position information, brightness information, and time information of the some real-sensing pixels.

[0094] It can be understood that since the change in the position of the moving object will cause the ambient brightness to change, it will cause the digital signals corresponding to certain real-sensing pixels to change; thus, the electronic device can obtain the outline of the moving object through the digital signal changes and coordinate information corresponding to the certain real-sensing pixels, thereby determining the motion information of the moving object within the field of view of the image sensor.

[0095] Optionally, in an embodiment of the present application, at least two real-sensing pixels are distributed in the image sensor according to a predetermined density, and the at least two real-sensing pixels may be arranged in an array in the image sensor of the shooting device.

[0096] Further optionally, in the embodiment of the present application, the size and density of at least two real-sense pixels can be flexibly adjusted according to the actual application scenario, which is not limited in the embodiment of the present application.

[0097] Optionally, in an embodiment of the present application, the above coordinate information may be a coordinate position in a target coordinate system; the target coordinate system is a rectangular coordinate system with a specific pixel of the image sensor as the origin. The specific pixel may be any of the following: a pixel located at the center of the image sensor, a pixel located at an end point of the image sensor.

[0098] It can be understood that if the change in the digital signal corresponding to a real-sensing pixel exceeds a preset range, it can be considered that the real-sensing pixel corresponds to the contour of a moving object. Therefore, the image generating device can determine the contour of the moving object based on the coordinate information of the real-sensing pixel.

[0099] Optionally, in the embodiment of the present application, the image sensor includes real-sense pixels. Figure 1 ,like Figure 5 As shown, before the above step 101, the image generation method provided in the embodiment of the present application may further include the following step 201, and the above step 101 may be specifically implemented by the following step 101a.

[0100] Step 201: An image generating device obtains brightness change information of real-sense pixels.

[0101] In the embodiment of the present application, the above-mentioned real-sensing pixel may include at least two real-sensing pixels.

[0102] In the embodiment of the present application, when the change amount of the digital signal output by the real-sensing pixel is greater than a preset threshold, the real-sensing pixel can send brightness change information to the image generating device.

[0103] In the embodiment of the present application, the brightness change information may specifically be a light-sensitive signal value of a real-sense pixel.

[0104] Step 101a: The image generating device determines a first exposure area based on the brightness change information and the position information of the real-sense pixels.

[0105] Further optionally, the position information of the real-sense pixel may specifically be: coordinate information of the real-sense pixel.

[0106] In the case where the real-sensing pixel includes multiple real-sensing pixels, the image generating device can determine the area enclosed by the multiple real-sensing pixels as the first exposure area based on the brightness change information and the position information of the multiple real-sensing pixels, so that the image generating device can obtain the coordinate information of the endpoints of the first exposure area and the size information of the first exposure area to obtain the first exposure area.

[0107] As can be seen, since the image generating device can determine the first exposure area according to the brightness change information and position information of the real-sensing pixels, the accuracy of the image generating device in determining the first exposure area can be improved.

[0108] The following will provide examples of the process in which the image generating device exposes the photosensitive units corresponding to the first exposure area and the second exposure area.

[0109] The process of exposing the photosensitive unit corresponding to the first exposure area by the image generating device:

[0110] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 6 As shown, the above step 102 can be specifically implemented through the following steps 102a and 102b.

[0111] Step 102a: The image generating device determines N rows of first photosensitive units according to the position information of the first exposure area.

[0112] Further optionally, in an embodiment of the present application, the image generating device may determine all first photosensitive units corresponding to the first exposure area from pre-stored coordinate information of all photosensitive units corresponding to all exposure areas of the image sensor to determine N rows of first photosensitive units.

[0113] Step 102b: The image generating device exposes N rows of first photosensitive units row by row to obtain first image data.

[0114] Further optionally, in the embodiment of the present application, the image generating device may first expose the first row of first photosensitive cells in the N rows of first photosensitive cells one by one, and when the exposure of the first row of first photosensitive cells is completed, read the data corresponding to the first row of first photosensitive cells, and then expose the second row of first photosensitive cells in the N rows of first photosensitive cells one by one, and when the exposure of the second row of first photosensitive cells is completed, read the data corresponding to the second row of first photosensitive cells, and so on, until the last row of first photosensitive cells in the N rows of first photosensitive cells are exposed one by one, and when the exposure of the last row of first photosensitive cells is completed, read the data corresponding to the last row of first photosensitive cells, so as to obtain the first image data.

[0115] For example, Figure 7 The schematic diagram of the position relationship of the photosensitive units corresponding to the exposure area of ​​the embodiment of the present application is shown. Figure 7 As shown, the image generating device can determine N rows of first photosensitive units, for example, 700 rows of first photosensitive units, i.e., the 1401st to 2200th photosensitive units in rows 1300 to 2000, based on the position information of the first exposure area, so that the image generating device can first expose the photosensitive units from the 1401st to the 2200th photosensitive units in the 1300th row one by one, and then read the data corresponding to the photosensitive units from the 1401st to the 2200th photosensitive units in the 1300th row one by one, and so on, until the photosensitive units from the 1401st to the 2200th photosensitive units in the 2000th row are exposed one by one, and then read the data corresponding to the photosensitive units from the 1401st to the 2200th photosensitive units in the 2000th row one by one, so as to obtain the first image data.

[0116] Thus, it can be seen that since the image generating device can expose the N rows of first photosensitive units row by row after determining the N rows of first photosensitive units, a complete first image can be quickly obtained, thereby reducing the exposure time of the photosensitive units corresponding to the moving object, thereby reducing the deformation phenomenon of the image area where the moving object is located, and thus, the shooting effect of the image generating device can be improved.

[0117] The process of exposing the photosensitive unit corresponding to the second exposure area by the image generating device:

[0118] Take the second exposure area as an example, which is an exposure area in the image sensor except the first exposure area.

[0119] Optionally, in the embodiment of the present application, the above step 103 can be specifically implemented by the following steps 103a and 103b.

[0120] Step 103a: When the exposure of the first exposure area is completed, the image generating device determines M rows of second photosensitive units according to the position information of the second exposure area.

[0121] In the embodiment of the present application, M is a positive integer.

[0122] Further optionally, in an embodiment of the present application, the image generating device may determine all second photosensitive units corresponding to the second exposure area from pre-stored coordinate information of all photosensitive units corresponding to all exposure areas of the image sensor to determine M rows of second photosensitive units.

[0123] Step 103b: The image generating device exposes M rows of second photosensitive units row by row to obtain second image data.

[0124] Further optionally, in the embodiment of the present application, the image generating device may first expose the first row of second photosensitive cells among the M rows of second photosensitive cells one by one, and when the exposure of the first row of second photosensitive cells is completed, read the data corresponding to the first row of second photosensitive cells, and then expose the second row of second photosensitive cells among the M rows of second photosensitive cells one by one, and when the exposure of the second row of second photosensitive cells is completed, read the data corresponding to the second row of second photosensitive cells, and so on, until the last row of second photosensitive cells among the M rows of second photosensitive cells are exposed one by one, and when the exposure of the last row of second photosensitive cells is completed, read the data corresponding to the last row of second photosensitive cells, so as to obtain second image data.

[0125] It can be seen that since the image generating device can expose M rows of second photosensitive units row by row, a complete second image can be quickly obtained, thereby reducing the exposure time of the photosensitive units corresponding to the background image, thus improving the shooting effect of the image generating device.

[0126] Of course, it may be the case that a row of second photosensitive cells corresponding to the second exposure area is located in the same row as a row of first photosensitive cells in the first exposure area. In this way, when the image generating device exposes the row of second photosensitive cells, the image generating device may first expose a portion of the second photosensitive cells in the row that are located before the first photosensitive cells in the row, and then expose another portion of the second photosensitive cells that are located after the first photosensitive cells in the row, so as to obtain second image data.

[0127] The following will provide examples of how the image generating device exposes a row of second photosensitive units.

[0128] Optionally, in the embodiment of the present application, the M rows of second photosensitive cells include N rows of third photosensitive cells and N rows of fourth photosensitive cells, and for each row of third photosensitive cells in the N rows of third photosensitive cells and each row of fourth photosensitive cells in the N rows of fourth photosensitive cells, a row of third photosensitive cells, a row of fourth photosensitive cells, and a row of first photosensitive cells are located in the same row (i.e., the same row of photosensitive cells corresponding to the exposure area of ​​the image sensor), and the first photosensitive cells in the row of first photosensitive cells are located between the third photosensitive cells in the row of third photosensitive cells and the fourth photosensitive cells in the row of fourth photosensitive cells. Specifically, the above step 103a can be implemented by the following steps 103b1 and 103b2.

[0129] Step 103b1: the image generating device exposes the third photosensitive unit in the i-th row.

[0130] In the embodiment of the present application, i is a positive integer less than or equal to N.

[0131] Step 103b2: When the exposure of the third photosensitive unit in the i-th row is completed, the image generating device exposes the fourth photosensitive unit in the i-th row.

[0132] For example, combining Figure 7, the M rows of second photosensitive cells (for example, 3000 rows of photosensitive cells) include a part of the rows of photosensitive cells (for example, 1299 rows of photosensitive cells, i.e., the 1st to 4000th photosensitive cells of the 1st to 1299th rows), N rows of third photosensitive cells (for example, 700 rows of photosensitive cells, i.e., the 1st to 1400th photosensitive cells of the 1300th to 1999th rows), N rows of fourth photosensitive cells (for example, 700 rows of photosensitive cells, i.e., the 2201st to 4000th photosensitive cells of the 1300th to 1999th rows), and another part of the rows of photosensitive cells (for example, 1001 rows of photosensitive cells, i.e., the 1st to 4000th photosensitive cells of the 2000th to 3000th rows), so that the image generating device can first expose the 1st to 4000th photosensitive cells of the 1st to 1299th rows row by row, and read the data corresponding to the 1st to 4000th photosensitive cells of the 1st to 1299th rows one by one. The image generating device may expose the 1st to 1400th photosensitive units in the 1300th row one by one, and then expose the 2201st to 4000th photosensitive units in the 1300th row one by one, and then read the data corresponding to the 1st to 1400th photosensitive units in the 1301st row, and read the data corresponding to the 2201st to 4000th photosensitive units in the 1301st row one by one, and so on, until the 1st to 1400th photosensitive units in the 1999th row are exposed one by one, and the 2201st to 4000th photosensitive units in the 1999th row are exposed one by one, and finally the image generating device may expose the 1st to 4000th photosensitive units in the 2000th to 3000th rows one by one, and read the data corresponding to the 1st to 4000th photosensitive units in the 2001st to 3000th rows one by one, to obtain the second image data.

[0133] Thus, it can be known that, since the image generating device can expose at least one row of third photosensitive units and at least one row of fourth photosensitive units one by one, the exposure time of the photosensitive units corresponding to the background image can be reduced, thereby quickly obtaining the second image.

[0134] The image generation method provided in the embodiment of the present application may be executed by an image generation device. In the embodiment of the present application, an image generation device executing the image generation method is taken as an example to illustrate the image generation device provided in the embodiment of the present application.

[0135] Figure 8 FIG. 1 shows a possible structural diagram of an image generating device involved in an embodiment of the present application, wherein the image generating device includes an image sensor. Figure 8As shown, the image generating device 60 further includes: an acquisition module 61, an exposure module 62 and a processing module 63. The acquisition module 61 is used to acquire a first exposure area of ​​the image sensor while controlling the image sensor to be exposed, and the first exposure area includes a photosensitive area corresponding to the moving object. The exposure module 62 is used to expose the photosensitive unit corresponding to the first exposure area to obtain first image data; and when the first exposure area is exposed, the photosensitive unit corresponding to the second exposure area of ​​the image sensor is exposed to obtain second image data. The processing module 63 is used to generate a target image according to the first image data and the second image data obtained by the exposure module 62.

[0136] In a possible implementation, the exposure module 62 is specifically used to determine N rows of first photosensitive units according to the position information of the first exposure area; and expose the N rows of first photosensitive units row by row to obtain first image data; wherein N is a positive integer.

[0137] In a possible implementation, the exposure module 62 is specifically used to determine M rows of second photosensitive units according to the position information of the second exposure area; and expose the M rows of second photosensitive units row by row to obtain second image data; wherein M is a positive integer.

[0138] In a possible implementation, the processing module 63 is specifically used to fuse the first image data and the target image data to generate a target image, wherein the target image data is image data corresponding to the exposure area other than the first exposure area in the second image data.

[0139] In a possible implementation, the image sensor includes real-sensing pixels. The acquisition module 61 is further used to acquire brightness change information of the real-sensing pixels. The processing module 63 is further used to determine the first exposure area based on the brightness change information acquired by the acquisition module 61 and the position information of the real-sensing pixels.

[0140] The image generating device provided by the embodiment of the present application can first obtain a first exposure area corresponding to a moving object, and then directly expose the photosensitive unit corresponding to the first exposure area, and only after the exposure of the first exposure area is completed, the photosensitive unit corresponding to the second exposure area of ​​the image sensor (that is, the exposure area including the image sensor except the first exposure area) is exposed. That is, the image generating device can first expose the photosensitive unit corresponding to the first exposure area, rather than exposing the entire exposure area of ​​the image sensor line by line. Therefore, the exposure time of the photosensitive unit corresponding to the moving object can be reduced, thereby reducing the deformation phenomenon of the image area where the moving object is located. In this way, the shooting effect of the image generating device can be improved.

[0141] The image generating 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 is not specifically limited.

[0142] The image generation 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.

[0143] The image generation device provided in the embodiment of the present application can achieve Figures 1 to 7 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.

[0144] Optionally, in the embodiment of the present application, Fig. 9 As shown, an embodiment of the present application further provides an electronic device 80, including a processor 81 and a memory 82, wherein the memory 82 stores programs or instructions that can be executed on the processor 81, and when the program or instructions are executed by the processor 81, the various process steps of the above-mentioned image generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0145] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0146] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0147] The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, and the sensor 105 includes an image sensor.

[0148] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 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.

[0149] Among them, the processor 110 is used to obtain a first exposure area of ​​the image sensor while controlling the image sensor to perform exposure, the first exposure area including a photosensitive area corresponding to the moving object; and to expose the photosensitive unit corresponding to the first exposure area to obtain first image data; and then, when the exposure of the first exposure area is completed, to expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor to obtain second image data, the second exposure area including an exposure area of ​​the image sensor other than the first exposure area; and, generate a target image based on the first image data and the second image data.

[0150] The electronic device provided by the embodiment of the present application can first obtain a first exposure area corresponding to a moving object, and then directly expose the photosensitive unit corresponding to the first exposure area, and only expose the photosensitive unit corresponding to the second exposure area of ​​the image sensor (that is, the exposure area including the image sensor except the first exposure area) after the exposure of the first exposure area is completed. That is, the electronic device can first expose the photosensitive unit corresponding to the first exposure area, rather than exposing all the exposure areas of the image sensor line by line. Therefore, the exposure time of the photosensitive unit corresponding to the moving object can be reduced, thereby reducing the deformation phenomenon of the image area where the moving object is located. In this way, the shooting effect of the electronic device can be improved.

[0151] Optionally, in an embodiment of the present application, the processor 110 is specifically configured to determine N rows of first photosensitive units according to position information of the first exposure area; and expose the N rows of first photosensitive units row by row to obtain first image data.

[0152] Thus, it can be seen that since the electronic device can expose the N rows of first photosensitive units row by row after determining them, a complete first image can be quickly obtained, thereby reducing the exposure time of the photosensitive units corresponding to the moving object, thereby reducing the deformation phenomenon of the image area where the moving object is located, and thus, the shooting effect of the electronic device can be improved.

[0153] Optionally, in an embodiment of the present application, the processor 110 is specifically configured to determine M rows of second photosensitive units according to position information of the second exposure area; and expose the M rows of second photosensitive units row by row to obtain second image data.

[0154] It can be seen that since the electronic device can expose M rows of second photosensitive units row by row, the exposure time of the photosensitive units corresponding to the background image can be reduced, so that the second image can be obtained quickly, thus improving the shooting effect of the electronic device.

[0155] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to fuse the first image data and the target image data to generate a target image.

[0156] The target image data is image data corresponding to an exposure area other than the first exposure area in the second image data.

[0157] As can be seen, the electronic device can fuse the first image data and the image data corresponding to the exposure area other than the first exposure area in the second image data to quickly obtain a complete image (ie, a target image).

[0158] Optionally, in an embodiment of the present application, the above-mentioned image sensor includes real-sense pixels.

[0159] The processor 110 is further configured to obtain brightness change information of the real-sensing pixels; and determine the first exposure area based on the brightness change information and the position information of the real-sensing pixels.

[0160] As can be seen, since the electronic device can determine the first exposure area according to the brightness change information and position information of the real-sensing pixel, the accuracy of the electronic device in determining the first exposure area can be improved.

[0161] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0162] The memory 109 can be used to store software programs and various data. The memory 109 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 109 may include a volatile memory or a non-volatile memory, or the memory 109 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 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0163] The processor 110 may include one or more processing units; optionally, the processor 110 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 110.

[0164] 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 image generation method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0165] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0166] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0167] 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.

[0168] 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 above-mentioned image generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0169] 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.

[0170] 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 described in each embodiment of the present application.

[0171] 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. An image generation method, applied to an image generation device, wherein the image generation device comprises an image sensor, characterized in that: The method comprises: In a case where the image sensor is controlled to perform exposure, a first exposure area of ​​the image sensor is acquired, where the first exposure area includes a photosensitive area corresponding to the moving object; Exposing the photosensitive unit corresponding to the first exposure area to obtain first image data; When the first exposure area is exposed, exposing the photosensitive unit corresponding to the second exposure area of ​​the image sensor to obtain second image data, wherein the second exposure area includes the exposure area of ​​the image sensor except the first exposure area; A target image is generated according to the first image data and the second image data.

2. The method according to claim 1, characterized in that Exposing the photosensitive unit corresponding to the first exposure area to obtain first image data includes: Determine N rows of first photosensitive units according to the position information of the first exposure area; Exposing the N rows of first photosensitive units row by row to obtain the first image data; Wherein, N is a positive integer.

3. The method according to claim 1, characterized in that When the first exposure area is exposed, exposing the photosensitive unit corresponding to the second exposure area of ​​the image sensor to obtain the second image data includes: Determine M rows of second photosensitive units according to the position information of the second exposure area; Exposing the M rows of second photosensitive units row by row to obtain the second image data; Wherein, M is a positive integer.

4. The method according to claim 1, characterized in that: Generating a target image according to the first image data and the second image data includes: Fusing the first image data with the target image data to generate the target image; The target image data is image data corresponding to an exposure area other than the first exposure area in the second image data.

5. The method according to claim 1, characterized in that The image sensor includes real-sense pixels; Before acquiring the first exposure area of ​​the image sensor, the method further includes: Obtaining brightness change information of the real-sense pixel; The first exposure area is determined based on the brightness change information and the position information of the real-sense pixel.

6. An image generating device, characterized in that: The image generating device comprises an image sensor, and the image generating device further comprises: an acquisition module, an exposure module and a processing module; The acquisition module is used to acquire a first exposure area of ​​the image sensor when controlling the image sensor to perform exposure, wherein the first exposure area includes a photosensitive area corresponding to the moving object; The exposure module is used to expose the photosensitive unit corresponding to the first exposure area acquired by the acquisition module to obtain first image data; and when the first exposure area is exposed, the photosensitive unit corresponding to the second exposure area of ​​the image sensor is exposed to obtain second image data, wherein the second exposure area includes an exposure area of ​​the image sensor other than the first exposure area; The processing module is used to generate a target image according to the first image data and the second image data obtained by the exposure module.

7. The image generating device according to claim 6, characterized in that: The exposure module is specifically configured to determine N rows of first photosensitive units according to the position information of the first exposure area; and expose the N rows of first photosensitive units row by row to obtain the first image data; Wherein, N is a positive integer.

8. The image generating device according to claim 6, characterized in that: The exposure module is specifically used to determine M rows of second photosensitive units according to the position information of the second exposure area; and expose the M rows of second photosensitive units row by row to obtain the second image data; Wherein, M is a positive integer.

9. The image generating device according to claim 6, characterized in that: The processing module is specifically used to fuse the first image data and the target image data to generate the target image; The target image data is image data corresponding to an exposure area other than the first exposure area in the second image data.

10. The image generating device according to claim 6, characterized in that: The image sensor includes real-sense pixels; The acquisition module is further used to acquire brightness change information of the real-sense pixel; The processing module is further used to determine the first exposure area based on the brightness change information obtained by the acquisition module and the position information of the real-sensing pixel.

11. 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 image generation method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the image generating method according to any one of claims 1 to 5 are implemented.