CN112422798A - Photographing method and device, electronic equipment and storage medium - Google Patents

Photographing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112422798A
CN112422798A CN202011300625.1A CN202011300625A CN112422798A CN 112422798 A CN112422798 A CN 112422798A CN 202011300625 A CN202011300625 A CN 202011300625A CN 112422798 A CN112422798 A CN 112422798A
Authority
CN
China
Prior art keywords
camera
moving object
image
motion information
smear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011300625.1A
Other languages
Chinese (zh)
Inventor
张耀坤
彭乾坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011300625.1A priority Critical patent/CN112422798A/en
Publication of CN112422798A publication Critical patent/CN112422798A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The application discloses a photographing method, a photographing device, electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition that the shooting exposure time of the first camera is longer than a first preset threshold value, acquiring the motion information of the moving object through the second camera while acquiring the image of the moving object through the first camera; and based on the motion information of the moving object, correcting the smear image of the moving object acquired by the first camera to obtain a clear image of the moving object. By implementing the method, the motion information of the moving object reflects the actual motion condition of the moving object in the image acquisition process, so that the smear image shot by the first camera is corrected by utilizing the motion information of the moving object acquired by the second camera, and the smear in the image can be eliminated, so that the problem of image smear can be avoided when the electronic equipment shoots the moving object in the shooting scene in which the exposure time of the camera needs to be increased.

Description

Photographing method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a photographing method, a photographing device, electronic equipment and a storage medium.
Background
With the popularization of electronic devices and the rapid development of imaging technologies, users have higher and higher requirements on the photographing of electronic devices in different scenes, and have higher and higher requirements on the final presentation effect of images obtained by photographing. In the prior art, under a photographing scene that the exposure time of a camera needs to be increased, the problem of image smear is easily caused when an electronic device shoots a moving object.
Disclosure of Invention
The embodiment of the application aims to provide a photographing method, a photographing device, electronic equipment and a storage medium, and can solve the problem that in the prior art, under a photographing scene in which the exposure time of a camera needs to be increased, the electronic equipment is easy to generate image smear when a moving object is photographed.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a photographing method, where the method includes:
under the condition that the shooting exposure time of a first camera is greater than a first preset threshold value, acquiring the motion information of a moving object through a second camera while acquiring the image of the moving object through the first camera;
and based on the motion information, correcting the smear image of the moving object acquired by the first camera to obtain a clear image of the moving object.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the acquisition module is used for acquiring the motion information of the moving object through the second camera while acquiring the image of the moving object through the first camera under the condition that the shooting exposure time of the first camera is greater than a first preset threshold;
and the processing module is used for correcting the smear image of the moving object acquired by the first camera based on the motion information to obtain a clear image of the moving object.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the photographing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the photographing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the photographing method according to the first aspect.
In the embodiment of the application, under the condition that the shooting exposure time of the first camera is longer than a first preset threshold, the first camera is used for collecting images of a moving object, and meanwhile, the second camera is used for collecting the motion information of the moving object; and based on the motion information of the moving object, correcting the smear image of the moving object acquired by the first camera to obtain a clear image of the moving object. Compared with the prior art, in the embodiment of the application, for the moving object needing to be photographed, the main camera (namely the first camera) of the electronic device is used for photographing the moving object, the auxiliary camera (namely the second camera) is opened to collect the motion information of the moving object in real time, and the motion information of the moving object reflects the actual motion condition of the moving object in the image collection process, so that the motion information of the moving object collected by the auxiliary camera is used for correcting the smear image shot by the main camera, the smear in the image can be eliminated, and the problem of image smear can be avoided when the electronic device shoots the moving object in the photographing scene in which the exposure time of the camera needs to be increased.
Drawings
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application;
FIG. 2 is an exemplary diagram of a photo preview interface provided in an embodiment of the present application;
fig. 3 is an exemplary diagram of an image acquired by a first camera during a long exposure of a moving object according to an embodiment of the present application;
fig. 4 is an exemplary diagram of motion information of a moving object acquired by a second camera according to the embodiment of the present application;
FIG. 5 is an exemplary diagram of a smear image correction process provided by an embodiment of the present application;
fig. 6 is a block diagram of a photographing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a hardware structure diagram of an electronic device implementing various embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The embodiment of the application provides a photographing method and device, electronic equipment and a storage medium.
The photographing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
It should be noted that the photographing method provided in the embodiment of the present application is applicable to an electronic device, and in practical application, the electronic device may include: the mobile terminal includes a smart phone, a tablet computer, a personal digital assistant, and the like, which is not limited in the embodiment of the present application.
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application, and as shown in fig. 1, the method may include the following steps: step 101 and step 102, wherein,
in step 101, when the shooting exposure time of the first camera is greater than a first preset threshold, the first camera collects images of a moving object and the second camera collects motion information of the moving object.
In the embodiment of the application, the first camera is a main camera of the electronic equipment and is used for collecting images; the second camera is an auxiliary camera of the electronic equipment and is used for collecting motion information of the moving object.
In consideration of the advantages of a DVS (Dynamic Vision Sensor) camera having low delay, low power consumption, a high Dynamic range, and the like, in this embodiment of the application, the second camera may be a DVS camera, and the DVS camera acquires motion information of a moving object.
In this embodiment, the motion information may include: contour and position information of moving objects.
In an embodiment provided by the present application, the shooting exposure duration of the first camera may be preset by a user, for example, the shooting mode of the first camera is set to a long exposure shooting mode, in this case, the following steps may be added before step 101:
and under the condition that the shooting mode of the first camera is a long exposure shooting mode, determining that the shooting exposure time of the first camera is greater than a first preset threshold value.
In the embodiment of the application, under the condition that the shooting mode of the first camera of the electronic device is the long exposure shooting mode, that is, under the condition that the exposure time of the first camera of the electronic device is long, the second camera is automatically started while the first camera is started, so that the good balance between the long exposure and the picture effect is ensured.
In another embodiment provided by the present application, whether to increase the shooting exposure time period of the first camera may be determined according to the brightness of the environment where the electronic device is located, and if the brightness of the environment where the electronic device is located is less than a certain value, it is determined to increase the shooting exposure time period of the first camera, at this time, the following steps may be added before step 101:
and under the condition that the brightness of the current photographing environment of the electronic equipment is lower than a second preset threshold, determining that the photographing exposure time of the first camera is longer than a first preset threshold.
In the embodiment of the application, under the condition that the ambient brightness degree of the environment where the electronic equipment is located at present is less than the second preset threshold value, that is, under the condition that the light of the environment where the electronic equipment is located at present is darker (be in the environment that light is darker promptly), the second camera is opened automatically when opening the first camera, in order to improve the luminance and the visual effect of the gained image of shooing under the dark environment, optimize the effect of shooing under the dark environment, can satisfy the requirement of user to the effect of shooing under the environment that light is darker, promote user experience.
In step 102, based on the motion information of the moving object, the smear image of the moving object collected by the first camera is corrected to obtain a clear image of the moving object.
In the embodiment of the application, the smear image of the moving object can be corrected based on the motion information of the moving object, so that smear blurring in the finally obtained image is avoided, the exposure time of the camera is further prolonged, the image achieves higher brightness and better visual effect, and user experience is improved.
In an embodiment provided by the present application, when the motion information includes contour and position information, the step 102 may specifically include the following steps:
determining an image area where a moving object is located in a smear image of the moving object acquired by a first camera; and synthesizing the outline of the moving object into the smear image according to the position information of the moving object, and filling pixels in the image area into the outline to obtain a clear image of the moving object.
In the embodiment of the application, an image of a moving object in a smear image can be firstly identified through an image matching algorithm, an image area of the image in the smear image is determined, then, the position of the moving object in the image acquisition process is combined, the outline of the moving object is synthesized to the corresponding position in the smear image, and finally, pixels in the image area are filled into the synthesized outline to obtain a clear image of the moving object.
For convenience of understanding, the technical solution of the present application is described by taking the first camera as a main camera and the second camera as a DVS camera as an example, with reference to the exemplary diagrams shown in fig. 2 to fig. 5.
After the user unlocks the electronic device, the user clicks the camera APP to enter a photographing interface, an object to be photographed, such as a rolling ball, is aimed, after the photographing button is clicked as shown in fig. 2, the electronic device simultaneously starts the main camera and the DVS camera, so that when the main camera photographs the ball, the DVS camera captures the outline and the position information of the ball in real time, fig. 3 shows a smear image of the ball photographed by the main camera during long exposure, and fig. 4 shows the outline and the position information of the ball output by the DVS camera in real time. Then, the outline of the ball is synthesized to the corresponding position in the smear image collected by the main camera by utilizing the position information collected by the DVS camera, the pixel of the ball in the image area of the smear image is filled in the synthesized outline, and the clear image of the ball is obtained as shown in figure 5, so that the exposure time can be prolonged, the image brightness is improved, meanwhile, the problems of smear blur and the like are avoided, and the imaging brightness and the visual effect are improved.
Therefore, in the embodiment of the application, the main camera and the auxiliary DVS camera are simultaneously opened when photographing, the DVS camera can be used for recording the outline, the position and other information of a moving object in real time, and the smear problem generated by long exposure of the main camera is corrected, so that the exposure time can be further increased, the photographing effect in a dark environment is optimized, and the user experience is improved.
As can be seen from the above embodiments, in the embodiment, for a moving object to be photographed, when a main camera (i.e., a first camera) of an electronic device is used to photograph the moving object, an auxiliary camera (i.e., a second camera) is turned on to collect motion information of the moving object in real time, and the motion information of the moving object reflects an actual motion situation of the moving object in an image collection process, so that a smear image captured by the main camera is corrected by using the motion information of the moving object collected by the auxiliary camera, thereby eliminating the smear in the image, and enabling the electronic device to avoid the problem of image smear when photographing the moving object in a photographing scene in which the exposure duration of the camera needs to be increased.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution main body may be a photographing device, or a control module in the photographing device for executing the loading photographing method. The embodiment of the present application takes the example where the photographing apparatus executes the loading photographing method, and the photographing apparatus provided in the embodiment of the present application is described.
Fig. 6 is a block diagram of a photographing apparatus according to an embodiment of the present application, and as shown in fig. 6, the photographing apparatus 600 may include: an acquisition module 601 and a processing module 602, wherein,
the acquisition module 601 is configured to acquire, when a shooting exposure duration of a first camera is greater than a first preset threshold, an image of a moving object by the first camera and acquire motion information of the moving object by a second camera at the same time;
a processing module 602, configured to perform correction processing on the smear image of the moving object acquired by the first camera based on the motion information, so as to obtain a clear image of the moving object.
As can be seen from the above embodiments, in the embodiment, for a moving object to be photographed, when a main camera (i.e., a first camera) of an electronic device is used to photograph the moving object, an auxiliary camera (i.e., a second camera) is turned on to collect motion information of the moving object in real time, and the motion information of the moving object reflects an actual motion situation of the moving object in an image collection process, so that a smear image captured by the main camera is corrected by using the motion information of the moving object collected by the auxiliary camera, thereby eliminating the smear in the image, and enabling the electronic device to avoid the problem of image smear when photographing the moving object in a photographing scene in which the exposure duration of the camera needs to be increased.
Optionally, as an embodiment, the second camera is a DVS camera.
Optionally, as an embodiment, the motion information includes contour and position information;
the processing module 602 may include:
the image area determining submodule is used for determining an image area where the moving object is located in the smear image aiming at the smear image of the moving object acquired by the first camera;
and the image synthesis submodule is used for synthesizing the outline of the moving object into the smear image according to the position information of the moving object, and filling pixels in the image area into the outline to obtain a clear image of the moving object.
Optionally, as an embodiment, the photographing apparatus 600 may further include:
the first determining module is used for determining that the shooting exposure time of the first camera is greater than a first preset threshold under the condition that the brightness of the current shooting environment is lower than a second preset threshold.
Optionally, as an embodiment, the photographing apparatus 600 may further include:
and the second determining module is used for determining that the shooting exposure time length of the first camera is greater than a first preset threshold value under the condition that the shooting mode of the first camera is a long exposure shooting mode.
The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The photographing device provided by the embodiment of the application can realize each process realized by the method embodiment, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in an embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to, when a shooting exposure duration of a first camera is greater than a first preset threshold, acquire an image of a moving object through the first camera, and simultaneously acquire motion information of the moving object through a second camera; and based on the motion information, correcting the smear image of the moving object acquired by the first camera to obtain a clear image of the moving object.
It can be seen that, in the embodiment of the present application, for a moving object to be photographed, when a main camera (i.e., a first camera) of an electronic device is used to photograph the moving object, an auxiliary camera (i.e., a second camera) is turned on to collect motion information of the moving object in real time, and since the motion information of the moving object reflects an actual motion condition of the moving object in an image collection process, a smear image shot by the main camera is corrected by using the motion information of the moving object collected by the auxiliary camera, thereby eliminating the smear in the image, so that in a photographing scene in which the exposure duration of the camera needs to be increased, the electronic device can avoid the problem of image smear when shooting the moving object.
Optionally, as an embodiment, the second camera is a motion vision sensor DVS camera.
Optionally, as an embodiment, the motion information includes contour and position information; at this time, the processor 810 is further configured to determine, for the smear image of the moving object acquired by the first camera, an image area where the moving object is located in the smear image; and synthesizing the outline of the moving object into the smear image according to the position information of the moving object, and filling pixels in the image area into the outline to obtain a clear image of the moving object.
Optionally, as an embodiment, the processor 810 is further configured to determine that the shooting exposure duration of the first camera is greater than a first preset threshold when the brightness of the current shooting environment is lower than a second preset threshold.
Optionally, as an embodiment, the processor 810 is further configured to determine that the shooting exposure time duration of the first camera is greater than a first preset threshold when the shooting mode of the first camera is the long-exposure shooting mode.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of taking a picture, the method comprising:
under the condition that the shooting exposure time of a first camera is greater than a first preset threshold value, acquiring the motion information of a moving object through a second camera while acquiring the image of the moving object through the first camera;
and based on the motion information, correcting the smear image of the moving object acquired by the first camera to obtain a clear image of the moving object.
2. The method of claim 1, wherein the second camera is a motion vision sensor (DVS) camera.
3. The method of claim 2, wherein the motion information comprises contour and position information;
the correcting the smear image of the moving object acquired by the first camera based on the motion information to obtain a clear image of the moving object includes:
determining an image area where the moving object is located in a smear image of the moving object acquired by the first camera;
and synthesizing the outline of the moving object into the smear image according to the position information of the moving object, and filling pixels in the image area into the outline to obtain a clear image of the moving object.
4. The method according to claim 1, wherein in a case that a shooting exposure time of a first camera is longer than a first preset threshold, before acquiring motion information of a moving object by a second camera while acquiring an image of the moving object by the first camera, further comprising:
and under the condition that the brightness of the current photographing environment is lower than a second preset threshold, determining that the photographing exposure time of the first camera is greater than a first preset threshold.
5. The method according to claim 1, wherein in a case that a shooting exposure time of a first camera is longer than a first preset threshold, before acquiring motion information of a moving object by a second camera while acquiring an image of the moving object by the first camera, further comprising:
and under the condition that the shooting mode of the first camera is a long exposure shooting mode, determining that the shooting exposure time of the first camera is greater than a first preset threshold value.
6. A photographing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the motion information of the moving object through the second camera while acquiring the image of the moving object through the first camera under the condition that the shooting exposure time of the first camera is greater than a first preset threshold;
and the processing module is used for correcting the smear image of the moving object acquired by the first camera based on the motion information to obtain a clear image of the moving object.
7. The apparatus of claim 6, wherein the second camera is a DVS camera.
8. The apparatus of claim 7, wherein the motion information comprises contour and position information;
the processing module comprises:
the image area determining submodule is used for determining an image area where the moving object is located in the smear image aiming at the smear image of the moving object acquired by the first camera;
and the image synthesis submodule is used for synthesizing the outline of the moving object into the smear image according to the position information of the moving object, and filling pixels in the image area into the outline to obtain a clear image of the moving object.
9. The apparatus of claim 6, further comprising:
the first determining module is used for determining that the shooting exposure time of the first camera is greater than a first preset threshold under the condition that the brightness of the current shooting environment is lower than a second preset threshold.
10. The apparatus of claim 6, further comprising:
and the second determining module is used for determining that the shooting exposure time length of the first camera is greater than a first preset threshold value under the condition that the shooting mode of the first camera is a long exposure shooting mode.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the photographing method according to any one of claims 1 to 5.
CN202011300625.1A 2020-11-18 2020-11-18 Photographing method and device, electronic equipment and storage medium Pending CN112422798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011300625.1A CN112422798A (en) 2020-11-18 2020-11-18 Photographing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011300625.1A CN112422798A (en) 2020-11-18 2020-11-18 Photographing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112422798A true CN112422798A (en) 2021-02-26

Family

ID=74774509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011300625.1A Pending CN112422798A (en) 2020-11-18 2020-11-18 Photographing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112422798A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766136A (en) * 2021-09-23 2021-12-07 西安维沃软件技术有限公司 Shooting method and electronic equipment
WO2023093681A1 (en) * 2021-11-26 2023-06-01 华为技术有限公司 Image processing method, image processing system and electronic device
US11902673B2 (en) 2021-07-29 2024-02-13 Samsung Electronics Co., Ltd. Electronic device for compensating for time delay of dynamic vision sensor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101406041A (en) * 2006-05-08 2009-04-08 三菱电机株式会社 Method for reducing blur in an image of a scene and method for deblurring an image of a scene
CN109040523A (en) * 2018-08-16 2018-12-18 Oppo广东移动通信有限公司 Artifact eliminating method, device, storage medium and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101406041A (en) * 2006-05-08 2009-04-08 三菱电机株式会社 Method for reducing blur in an image of a scene and method for deblurring an image of a scene
CN109040523A (en) * 2018-08-16 2018-12-18 Oppo广东移动通信有限公司 Artifact eliminating method, device, storage medium and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11902673B2 (en) 2021-07-29 2024-02-13 Samsung Electronics Co., Ltd. Electronic device for compensating for time delay of dynamic vision sensor
CN113766136A (en) * 2021-09-23 2021-12-07 西安维沃软件技术有限公司 Shooting method and electronic equipment
CN113766136B (en) * 2021-09-23 2023-08-22 西安维沃软件技术有限公司 Shooting method and electronic equipment
WO2023093681A1 (en) * 2021-11-26 2023-06-01 华为技术有限公司 Image processing method, image processing system and electronic device

Similar Documents

Publication Publication Date Title
EP3633975B1 (en) Photographic method, photographic apparatus, and mobile terminal
CN112672060B (en) Shooting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN112822412B (en) Exposure method, exposure device, electronic equipment and storage medium
CN112637500B (en) Image processing method and device
CN112333382B (en) Shooting method and device and electronic equipment
CN113794834B (en) Image processing method and device and electronic equipment
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN111654624B (en) Shooting prompting method and device and electronic equipment
CN112672055A (en) Photographing method, device and equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN115278047A (en) Shooting method, shooting device, electronic equipment and storage medium
CN114286004A (en) Focusing method, shooting device, electronic equipment and medium
CN114390206A (en) Shooting method and device and electronic equipment
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN112291474A (en) Image acquisition method and device and electronic equipment
CN112887515A (en) Video generation method and device
CN112399092A (en) Shooting method and device and electronic equipment
CN112312024A (en) Photographing processing method and device and storage medium
CN112367464A (en) Image output method and device and electronic equipment
CN112738398A (en) Image anti-shake method and device and electronic equipment
CN112367470B (en) Image processing method and device and electronic equipment
CN112492216B (en) Shooting control method and shooting control device
CN114143448B (en) Shooting method, shooting device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226

RJ01 Rejection of invention patent application after publication