CN112399079A - Shooting method, shooting device, electronic equipment and readable storage medium - Google Patents

Shooting method, shooting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112399079A
CN112399079A CN202011194560.7A CN202011194560A CN112399079A CN 112399079 A CN112399079 A CN 112399079A CN 202011194560 A CN202011194560 A CN 202011194560A CN 112399079 A CN112399079 A CN 112399079A
Authority
CN
China
Prior art keywords
image
shooting
area
image frame
camera
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
CN202011194560.7A
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 CN202011194560.7A priority Critical patent/CN112399079A/en
Publication of CN112399079A publication Critical patent/CN112399079A/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/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
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a readable storage medium, belongs to the technical field of communication, and can solve the problem that shooting of a user is affected when irrelevant people appear in a user view area. The method comprises the following steps: acquiring N image frames acquired from the same area of the same shooting scene under the condition that a shooting preview picture contains a first shooting object; replacing the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame; the first image frame is at least one of N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject. The embodiment of the application is applied to a scene that a user uses the electronic equipment to shoot.

Description

Shooting method, shooting device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a shooting method, a shooting device, electronic equipment and a readable storage medium.
Background
With the improvement of the shooting function of the electronic equipment, users can use the electronic equipment to carry out shooting activities, and the shooting activities become an unavailable part in life of people.
In the related art, when a user sees a good scene in a tourist attraction, the user usually takes a picture of a person as a souvenir with the scene as a background, and records the good moment.
However, when a user shoots, other people often break into the self view range unintentionally, and if the user does not want to shoot the photo into the photo, the user needs to wait for the photo to leave before continuing shooting, and if the people flow in the scenic spot is large, the user usually needs to wait for a long time, or the photo is shot quickly while no people pass through the gap, so that the user is difficult to shoot a satisfactory photo.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a readable storage medium, which can solve the problem that normal shooting of a user is influenced when irrelevant people appear in a shooting preview picture.
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 shooting method, where the method includes: acquiring N image frames acquired in the same area of the same shooting scene under the condition that a shooting preview picture contains a first shooting object, wherein N is a positive integer greater than 1; replacing the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame; the first image frame is at least one of N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
In a second aspect, an embodiment of the present application further provides a shooting apparatus, including: the device comprises an acquisition module and a generation module; the shooting preview module is used for shooting a first shooting object in a shooting preview picture, and acquiring N image frames acquired in the same area of the same shooting scene, wherein N is a positive integer greater than 1; the generating module is used for replacing the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame; the first image frame is at least one of N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
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 shooting method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the 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 method according to the first aspect.
In the embodiment of the application, the first image frame and the second image frame of the first shooting object are acquired, the image of the area where the first shooting object is located in the first image frame is replaced by the image of the area which corresponds to the display position of the first area and does not contain the first shooting object in the second image frame, and the third image frame which does not contain the first shooting object is generated, so that when a user uses the electronic equipment to shoot, the electronic equipment can eliminate irrelevant people in a view range, and the purpose that when the user shoots a picture, the electronic equipment only shoots the object which the user wants to shoot is achieved.
Drawings
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is one of schematic diagrams of an interface applied by a shooting method according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an interface applied in a shooting method according to an embodiment of the present disclosure;
fig. 4 is a third schematic view of an interface applied by a shooting method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a shooting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment 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 shooting method provided by the embodiment of the application can be applied to scenes in which a user uses the electronic equipment to shoot.
In the technical solution provided in the embodiment of the present application, when a user uses a mobile phone to take a picture, if a photographic object 1 (or a photographic object 2, a photographic object 3, etc.) that the user does not want to appear in the picture appears in a shooting preview picture, the user may select the photographic object 1 on a screen of the mobile phone, and then the mobile phone may automatically recognize an outline of the photographic object 1 and eliminate the photographic object 1 in the generated picture. If there are many objects appearing in the shooting preview screen that the user does not want to appear in the photograph, or if the user has a large amount of people in the user's view range, the user can select the shooting subject and eliminate other people (for example, the shooting subject 1) in the shooting preview screen in the generated photograph. Specifically, the method for eliminating the photographic object 1 by the mobile phone is that the mobile phone can generate the image frame not containing the photographic object 1 by acquiring a plurality of image frames containing the photographic object 1 and fusing a plurality of frame images, so that when a user uses the mobile phone to shoot and other irrelevant people break into the user view range, the mobile phone can automatically eliminate the irrelevant people in the generated picture.
The shooting 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.
As shown in fig. 1, a shooting method provided in an embodiment of the present application may include the following steps 201 and 202:
step 201, when the shooting preview picture contains a first shooting object, the shooting device acquires N image frames collected in the same area of the same shooting scene, wherein N is a positive integer greater than 1.
Illustratively, the first photographic subject is a photographic subject which the user does not want to appear in the generated picture in the shooting preview screen of the electronic device.
For example, the number of the first photographic subjects may be one or more.
For example, the same region of the same shooting scene may be understood as a scene commonly contained in N image frames acquired by the electronic device in a relatively static state.
Illustratively, the electronic device may acquire N image frames in two ways:
mode 1:
in the mode 1, when the first photographic subject in the photographic preview picture is in a motion state (the relative displacement is greater than the preset value within a period of time), in order to collect as many pictures of the background area blocked by the first photographic subject as possible, the electronic device may collect N image frames within the preset time of the same scene, and eliminate the first photographic subject in the generated picture in a multi-frame image synthesis mode. For example, the electronic device acquires 10 image frames in 2 seconds.
Mode 2:
in the mode 2, when the first photographic subject in the photographic preview picture is in a static state (the relative displacement in a period of time is less than or equal to a preset value), the N image frames in the preset period of time are acquired in the mode 1, and it is difficult to acquire the image of the background area blocked by the first photographic subject. Therefore, the electronic device can acquire N image frames with different visual angles for the first shooting object, acquire more images of the background area shielded by the first shooting object, and further eliminate the first shooting object in the generated picture in a multi-frame image synthesis mode.
Step 202, the shooting device replaces the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame.
Wherein the first image frame is at least one of the N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
Illustratively, N is at least 2, that is, the electronic device needs to acquire at least two image frames to be able to eliminate the first photographic subject in the photographic preview screen.
For example, the photographing device may acquire the person outline of the first photographic subject in the first image frame and the second image frame through image recognition, where the first region is an overlapping region of the person outline in the first image frame, and the second region is a region corresponding to a display position of the first region in the second image frame and not including the person outline. The electronic device replaces the image of the first area of the first image frame with the image of the second area of the second image frame and generates a third image frame not containing the first photographic subject.
For example, the first region and the second region may be understood as a region where the first photographic subject is located in the first image frame acquired by the photographic device, and the region may be a rectangular region containing the first photographic subject. The second area is the same area as the first area in the first image frame in the second image frame acquired by the shooting device, and the position of the first shooting object in the second area is different from the position of the first shooting object in the first area due to different shooting angles or the position of the first shooting object, and the second area does not contain or only contains part of the first shooting object, so that the image containing the first shooting object in the first area can be replaced by the image containing the first shooting object in the second area, and the purpose of eliminating the first shooting object in the generated third image frame is achieved.
For example, in the above mode 1, as shown in fig. 2, two image frames 20A and 20B are acquired at an interval of 1 second for a shooting preview screen of the electronic device, where in the image frame 20A shown in fig. 2 (a), an area covered by the person 1 (i.e., the first shooting object) is an area 21A (i.e., the first area); in the shooting preview screen 20B shown in fig. 2 (B), the area 21A corresponds to the area 21B in the image frame 20B, and the area covered by the person 1 is the area 22B. Since the person 1 is greatly displaced within 1 second, the region 22B is the second region. The electronic device replaces the image of the area 21A in the image frame 20A with the image of the area 22B in the image frame 20B and generates an image frame 20C as shown in fig. 2 (C), and it can be seen that the person 1 has been eliminated in the image frame 20C.
Optionally, in this embodiment of the application, as described in manner 2, in a case where the first photographic subject is still, the electronic device may further eliminate the first photographic subject in the generated picture by acquiring the first photographic subject image frame at a different angle of view.
Illustratively, the first image frame and the second image frame are respectively image frames acquired by a camera from different shooting angles.
For example, after acquiring the N image frames, the electronic device may use the first image frame as a reference frame and use the second image frame as a reference frame. The first image frame is one image frame satisfying a predetermined condition among the N image frames. In one example, the predetermined condition includes at least one of: the brightness of the image frame reaches a preset brightness threshold value, and the definition of the image frame is highest.
Illustratively, the electronic device acquires an image to be processed of a second area in a second image frame, and converts the image to be processed into a target image with a view angle consistent with that of the first image frame through perspective transformation. Then, the electronic device replaces the image of the first area of the first image frame with the target image, and generates an image frame not including the first photographic subject. Further, since the sharpness of the image may be affected when the perspective transformation is performed, in order to ensure the sharpness of the generated picture, the first image frame may be an image frame taken by the electronic device from a front perspective, and the second image frame may be an image frame taken by the electronic device from a side perspective.
Further optionally, in this embodiment of the application, similarly to the case where two eyes of a person watch an object each time and the object is watched from two viewing angles, the N first frames at different viewing angles are acquired by different cameras of the electronic device.
Exemplarily, the electronic device includes: the camera comprises a first camera and a second camera. The first image frame and the second image frame are respectively image frames of different visual angles acquired by the first camera and the second camera at the same time.
Wherein, the shooting angles of the first camera and the second camera are different.
Exemplarily, in order to ensure that the first camera and the second camera can acquire images of the first photographic object at different viewing angles, the first camera and the second camera need to be located in a horizontal direction, and an included angle between a connecting line between the first camera and the second camera and the horizontal direction is smaller than a preset angle.
For example, as shown in fig. 3, a schematic diagram of the person 1 is shot from different perspectives by the camera N1 (i.e., the first camera) and the camera N2 (i.e., the second camera), and the camera N3 may be further included to improve the shooting effect, where the region S is a background region blocked by the person 1, the region S1 is a partial background region of the region S blocked by the person 1, which can be captured by the camera N1 from a left side perspective, and the region S2 is a partial background region of the region S blocked by the person 1, which can be captured by the camera N2 from a right side perspective. The electronic device may stitch and fuse the acquired images of the background areas of the area S1 and the area S2 with the images of the same area captured by the camera through an algorithm, so as to achieve the purpose of eliminating the person 1 in the generated picture. It should be noted that, if there is a blind area T1 in the area S, where both the area S1 and the area S2 cannot cover, the electronic device may fill the content in the blind area T1 through an algorithm by knowing the content of the area S1 and the area S2.
For example, if the area of the second region is smaller than the area of the first region, the electronic device replaces the image of the first region of the first image frame with the image of the second region of the second image frame, and then the generated image frame further includes an image residual of a part of the first photographic subject, the electronic device may fill the region covered by the image residual through an algorithm.
In this way, by acquiring the first image frame and the second image frame of the first shooting object, replacing the image of the area where the first shooting object is located in the first image frame with the image of the area which corresponds to the display position of the first area and does not contain the first shooting object in the second image frame, and generating the third image frame which does not contain the first shooting object, the electronic device can eliminate irrelevant people in the view range when a user uses the electronic device to shoot, and the purpose that the electronic device only shoots the object which the user wants to shoot when the user shoots a picture is achieved.
Alternatively, in the embodiment of the present application, in the case that there are few unrelated people in the viewing area of the electronic device, the user may eliminate the unrelated people in the generated picture by clicking the unrelated people in the shooting preview screen.
For example, before the step 202, the shooting method provided in the embodiment of the present application may further include the following step 202a 1:
in step 202a1, when at least one photographic subject is included in the shooting preview screen, the shooting device receives a first input from the user to a first photographic subject of the at least one photographic subject.
Illustratively, the step 202 may further include the following step 202a 2:
in response to the first input, the camera replaces the image of the first area with the image of the second area, generating a third image frame, step 202a 2.
Illustratively, the first input may be: the touch input of the user to the first shooting object in the shooting preview picture, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present invention. For example, the touch input may be a click input of the first photographing object in the photographing preview screen by the user or a slide input of the first photographing object in the photographing preview screen by the user.
Illustratively, after receiving a click input or a slide input of a first shooting object by a user, the electronic device identifies whether the user input position includes a person image within a preset range through a face recognition technology. When the electronic device recognizes that the preset range contains the person image, the electronic device acquires the feature information of the person (namely, the first shooting object). The characteristic information may include at least one of: facial feature information of the person, body feature information of the person (e.g., clothes color, body type, etc.).
Illustratively, after the electronic device acquires the feature information of the first photographic object, the electronic device identifies and acquires the position information of the first photographic object in each of the N image frames. Then, the first photographic subject is removed from the photo generated by the electronic device by the method of step 202.
Illustratively, the user can control the on or off of the functions through a switch control arranged on the camera application interface by the electronic equipment.
For example, as shown in fig. 4 (a), a shooting preview screen 40A of the electronic apparatus is shown. In the shooting picture 40A, the person 41A (i.e., the second shooting object) and the person 42A (i.e., the first shooting object) are included, and at this time, there are fewer people (the person 42A) in the shooting preview picture 40A, and therefore, the user can click on the person 42A, so that the electronic device eliminates the person 42A in the generated picture.
In this way, when there are fewer irrelevant people in the viewing range, the user can eliminate the irrelevant people by clicking or sliding the irrelevant people in the shooting preview picture.
Optionally, in this embodiment of the application, when there are many irrelevant people in the viewing area, or there are often irrelevant people who go in and out of the viewing area, the user may also determine the shooting subject, so that the electronic device automatically eliminates all other people except the shooting subject who enter the shooting preview picture.
For example, before the step 201, the shooting method provided in the embodiment of the present application may further include the following step 201a 1:
in step 201a1, when at least two subjects are included in the shooting preview screen, the shooting apparatus receives a second input to a second subject from the user.
The first shooting object is a shooting object except the second shooting object in at least two shooting objects.
Illustratively, the step 202 may further include the following step 202 b:
step 202b, in response to the second input, in the case that the first photographic subject enters the shooting preview picture, the shooting device acquires N image frames of the same area of the same shooting scene.
For example, the second input may be a user selection input of the second photographic subject in the photographing preview screen.
For example, the number of the second photographic subjects may be one or more. It is to be understood that the first photographic subject may be a complete person or object, or may be a part of a body of a person, such as an arm or a hand.
For example, when the number of the second photographic subjects is small, the selection input may be a click input of the second photographic subject by the user; when the number of the second photographic subjects is large, the selection input may be a frame selection input of the second photographic subject by the user.
For example, after receiving the selection input of the user to the second photographic subject, the electronic device locks the second photographic subject by identifying the characteristic information of the second photographic subject, so that the electronic device does not mistakenly eliminate the second photographic subject.
For example, as shown in fig. 4 (B), a shooting preview screen 40B of the electronic apparatus is shown. In the shooting picture 40B, the person 41B (i.e., the second shooting target), the person 42B, and the person 43B (i.e., the first shooting target) are included, and at this time, there are many irrelevant persons (the person 42B and the person 43B) in the shooting preview picture 40B, and therefore, the user can click on the person 41B, so that the electronic apparatus eliminates all persons other than the person 41B in the generated picture.
In this way, when there are many irrelevant people in the viewing range, the user can eliminate irrelevant people other than the shooting subject by selecting and operating the shooting subject in the shooting preview picture, and when other irrelevant people appear again in the viewing range, the user does not need to perform any other operation, and the electronic device can automatically eliminate the newly appeared irrelevant people.
Alternatively, when the first photographic subject is a still photographic subject, the electronic device needs to use N image frames acquired by two cameras to be able to eliminate the N image frames.
Illustratively, the electronic device includes a first camera and a second camera in a case where the first photographic subject is in a stationary state.
Illustratively, the step 201 may include the following steps 201 b:
and step 201b, the shooting device acquires N image frames collected by the first camera and the second camera in the same area of the same shooting scene.
Illustratively, the first camera and the second camera each capture at least one image frame.
Illustratively, the step 202 may include the following steps 202 b:
step 202b, the shooting device replaces the image of the first area of the first image frame acquired by the first camera with the image of the second area of the second image frame acquired by the second camera, and generates a third image frame.
Illustratively, the N image frames are image frames captured by the first camera and the second camera from different angles.
Therefore, the electronic equipment can eliminate the robbing of the glasses body in a static state in the shooting preview picture through the two cameras.
Alternatively, when the first photographic subject is a moving photographic subject, the electronic device only needs one camera to eliminate the first photographic subject.
Illustratively, the electronic device includes a third camera in a case where the first photographic subject is in a stationary state.
Illustratively, the step 201 may include the following step 201 c:
step 201c, the shooting device acquires N image frames of the third camera, which are acquired in the same area of the same shooting scene.
The first shooting object is located at different positions in at least two image frames of the N image frames.
Illustratively, since the first photographic subject is in a moving state and therefore has different positions in at least two image frames, it can be understood that the image containing the first photographic subject in the first region is replaced by the image containing the first photographic subject in the second region, thereby achieving the purpose of eliminating the first photographic subject in the generated third image frame.
Therefore, the electronic equipment only needs one camera, and the glasses robbing main body in a moving state in the shooting preview picture can be eliminated.
According to the shooting method provided by the embodiment of the application, when a user uses the electronic equipment to shoot, if a first shooting object which the user does not want to appear in a picture appears in a shooting preview picture, the electronic equipment can enable the electronic equipment to eliminate the first shooting object in the generated picture after receiving a first input of the user to the first shooting object. If more people appear in the shooting preview picture, which the user does not want to make appear in the picture, or the flow of people in the user's view range is large, the electronic device may only keep the second shooting object in the generated picture and eliminate all the first shooting objects after receiving the second input of the user to the second shooting object (i.e. the shooting subject). Specifically, the method for eliminating the first photographic subject by the electronic device includes the steps of acquiring a first image frame and a second image frame of the first photographic subject, replacing an image of a region where the first photographic subject is located in the first image frame with an image of a region which corresponds to a display position of the first region and does not contain the first photographic subject in the second image frame, and generating a third image frame which does not contain the first photographic subject.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The photographing method is exemplarily described with reference to one of the drawings in the embodiments of the present application. In specific implementation, the shooting methods shown in the above method drawings may also be implemented by combining with any other drawings that may be combined, which are illustrated in the above embodiments, and are not described herein again.
Fig. 5 is a schematic diagram of a possible structure of a camera according to an embodiment of the present disclosure, and as shown in fig. 5, a camera 600 includes: an obtaining module 601 and a generating module 602, wherein:
an obtaining module 601, configured to obtain N image frames acquired in a same area of a same shooting scene under the condition that a shooting preview picture includes a first shooting object, where N is a positive integer greater than 1; a generating module 602, configured to replace an image of a first region of a first image frame with an image of a second region of a second image frame, and generate a third image frame; the first image frame is at least one of N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
Optionally, as shown in fig. 5, the photographing apparatus 600 further includes: a receiving module 603; a receiving module 603, configured to receive a first input of a first photographic subject from the at least one photographic subject by a user when the at least one photographic subject is included in the photographic preview screen; the generating module 602 is specifically configured to replace the image of the first region with the image of the second region in response to the first input received by the receiving module 603, and generate the third image frame.
Optionally, the receiving module 603 is configured to receive a second input from the user to a second photographic subject when the shooting preview screen includes at least two photographic subjects, where the first photographic subject is a photographic subject other than the second photographic subject in the at least two photographic subjects; the acquiring module 601 is specifically configured to acquire N image frames of the same area of the same shooting scene in response to the second input received by the receiving module 603, in the case that the first shooting object appears in the shooting preview screen.
Optionally, the photographing apparatus 600 includes: a first camera and a second camera; the acquiring module 601 is specifically configured to acquire N image frames acquired by a first camera and a second camera for a same area of a same shooting scene; the generating module 602 is specifically configured to replace the image of the first area of the first image frame acquired by the first camera acquired by the acquiring module with the image of the second area of the second image frame acquired by the second camera, and generate a third image frame.
Optionally, the photographing apparatus 600 includes a third camera; the obtaining module 601 is specifically configured to obtain N image frames acquired by a third camera for a same area of a same shooting scene; and the first shooting object is positioned at different positions in at least two image frames in the N image frames.
It should be noted that, as shown in fig. 5, modules that are necessarily included in the camera 600 are indicated by solid line boxes, such as an acquisition module 601 and a generation module 602; modules that may be included in the camera 600 are illustrated with dashed boxes, as are the receiving modules 603.
The shooting 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. Illustratively, 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, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus 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 shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 4, and is not described here again to avoid repetition.
According to the shooting device provided by the embodiment of the application, when a user uses the electronic equipment to shoot, if a first shooting object which the user does not want to appear in a picture appears in a shooting preview picture, the electronic equipment can enable the electronic equipment to eliminate the first shooting object in the generated picture after receiving a first input of the user to the first shooting object. If more people appear in the shooting preview picture, which the user does not want to make appear in the picture, or the flow of people in the user's view range is large, the electronic device may only keep the second shooting object in the generated picture and eliminate all the first shooting objects after receiving the second input of the user to the second shooting object (i.e. the shooting subject). Specifically, the method for eliminating the first photographic subject by the electronic device includes the steps of acquiring a first image frame and a second image frame of the first photographic subject, replacing an image of a region where the first photographic subject is located in the first image frame with an image of a region which corresponds to a display position of the first region and does not contain the first photographic subject in the second image frame, and generating a third image frame which does not contain the first photographic subject.
Optionally, as shown in fig. 6, an electronic device M00 is further provided in this embodiment of the present application, and includes a processor M01, a memory M02, and a program or an instruction stored in the memory M02 and executable on the processor M01, where the program or the instruction when executed by the processor M01 implements each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
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.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., 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, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 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 input unit 104 is configured to acquire N image frames acquired in the same area of the same shooting scene under the condition that the preview picture includes the first shooting object, where N is a positive integer greater than 1; a processor 110 for replacing an image of a first region of the first image frame with an image of a second region of the second image frame, generating a third image frame; the first image frame is at least one of N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
In this way, by acquiring the first image frame and the second image frame of the first shooting object, replacing the image of the area where the first shooting object is located in the first image frame with the image of the area which corresponds to the display position of the first area and does not contain the first shooting object in the second image frame, and generating the third image frame which does not contain the first shooting object, the electronic device can be used for shooting by a user, and the electronic device can eliminate irrelevant people in a view-finding range, so that the purpose that the electronic device only shoots the object which the user wants to shoot when the user shoots a picture is achieved.
Alternatively, the user input unit 107 is configured to receive a first input of a user to a first photographic subject of the at least one photographic subject in a case where the at least one photographic subject is included in the photographing preview screen; the processor 110 is specifically configured to replace the image of the first region with the image of the second region in response to the first input received by the user input unit 107, and generate a third image frame.
In this way, when there are fewer irrelevant people in the viewing range, the user can eliminate the irrelevant people by clicking or sliding the irrelevant people in the shooting preview picture.
Alternatively, the user input unit 107 is configured to receive a second input from the user to a second photographic subject in a case where at least one photographic subject is included in the shooting preview screen, the first photographic subject being a photographic subject other than the second photographic subject in the at least one photographic subject; the input unit 104 is specifically configured to acquire N image frames for the same area of the same shooting scene in response to a second input received by the user input unit 107 in the case where the first photographic subject appears in the shooting preview screen.
In this way, when there are many irrelevant people in the viewing range, the user can eliminate irrelevant people other than the shooting subject by selecting and operating the shooting subject in the shooting preview picture, and when other irrelevant people appear again in the viewing range, the user does not need to perform any other operation, and the electronic device can automatically eliminate the newly appeared irrelevant people.
Optionally, the input unit 104 is specifically configured to acquire N image frames acquired by the first camera and the second camera for the same area of the same shooting scene; the processor 110 is specifically configured to replace the image of the first area of the first image frame acquired by the first camera acquired by the acquisition module with the image of the second area of the second image frame acquired by the second camera, and generate a third image frame.
Therefore, the electronic equipment can eliminate the robbing of the glasses body in a static state in the shooting preview picture through the two cameras.
Optionally, the input unit 104 is specifically configured to acquire N image frames acquired by a third camera for the same area of the same shooting scene; and the first shooting object is positioned at different positions in at least two image frames in the N image frames.
Therefore, the electronic equipment only needs one camera, and the glasses robbing main body in a moving state in the shooting preview picture can be eliminated.
According to the electronic device provided by the embodiment of the application, when a user uses the electronic device to shoot, if a first shooting object which the user does not want to appear in a picture appears in a shooting preview picture, the electronic device can eliminate the first shooting object in the generated picture after receiving a first input of the user to the first shooting object. If more people appear in the shooting preview picture, which the user does not want to make appear in the picture, or the flow of people in the user's view range is large, the electronic device may only keep the second shooting object in the generated picture and eliminate all the first shooting objects after receiving the second input of the user to the second shooting object (i.e. the shooting subject). Specifically, the method for eliminating the first photographic subject by the electronic device includes the steps of acquiring a first image frame and a second image frame of the first photographic subject, replacing an image of a region where the first photographic subject is located in the first image frame with an image of a region which corresponds to a display position of the first region and does not contain the first photographic subject in the second image frame, and generating a third image frame which does not contain the first photographic subject.
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 Processing Unit 1041 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 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, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 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 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
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 above shooting 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 above shooting 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 an electronic device (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 photographing method, characterized in that the method comprises:
acquiring N image frames acquired in the same area of the same shooting scene under the condition that a shooting preview picture contains a first shooting object, wherein N is a positive integer greater than 1;
replacing the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame;
wherein the first image frame is at least one of the N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
2. The method of claim 1, wherein before replacing the image of the first region of the first image frame with the image of the second region of the second image frame and generating the third image frame, the method further comprises:
receiving a first input of a user to a first photographic object in at least one photographic object under the condition that the photographic preview picture contains at least one photographic object;
the replacing the image of the first region of the first image frame with the image of the second region of the second image frame to generate a third image frame includes:
in response to the first input, replacing the image of the first region with the image of the second region, generating a third image frame.
3. The method of claim 1, wherein prior to said acquiring N image frames acquired for a same region of a same capture scene, the method further comprises:
receiving a second input of a second shooting object from a user when at least two shooting objects are contained in the shooting preview picture, wherein the first shooting object is a shooting object except the second shooting object in the at least two shooting objects;
the acquiring of the N image frames acquired from the same region of the same shooting scene under the condition that the shooting preview picture contains the first shooting object includes:
acquiring, in response to the second input, N image frames for the same area of the same photographing scene in a case where the first photographic subject enters the photographing preview screen.
4. The method of any one of claims 1 to 3, comprising a first camera and a second camera; the first shooting object is in a static state;
the acquiring of the N image frames acquired for the same region of the same shooting scene includes:
acquiring N image frames acquired by the first camera and the second camera in the same area of the same shooting scene;
the replacing the image of the first region of the first image frame with the image of the second region of the second image frame to generate a third image frame includes:
and replacing the image of the first area of the first image frame acquired by the first camera with the image of the second area of the second image frame acquired by the second camera to generate a third image frame.
5. The method of any one of claims 1 to 3, comprising a third camera; the first shooting object is in a motion state;
the acquiring of the N image frames acquired for the same region of the same shooting scene includes:
acquiring N image frames acquired by the third camera in the same area of the same shooting scene;
wherein the first photographic object is located at different positions in at least two image frames of the N image frames.
6. A camera, characterized in that the camera comprises: the device comprises an acquisition module and a generation module;
the acquisition module is used for acquiring N image frames acquired in the same area of the same shooting scene under the condition that a shooting preview picture contains a first shooting object, wherein N is a positive integer greater than 1;
the generating module is used for replacing the image of the first area of the first image frame with the image of the second area of the second image frame to generate a third image frame;
wherein the first image frame is at least one of the N image frames; the second image frame is at least one of the N image frames; the first area is an area where the first shooting object is located; the second area is an area which corresponds to the display position of the first area in the second image frame and does not contain the first shooting object; the third image frame does not include the first photographic subject.
7. The apparatus of claim 6, further comprising: a receiving module;
the receiving module is used for receiving a first input of a user to a first shooting object in at least one shooting object under the condition that the shooting preview picture contains at least one shooting object;
the generating module is specifically configured to replace the image of the first area with the image of the second area in response to the first input received by the receiving module, and generate a third image frame.
8. The apparatus of claim 6, further comprising: a receiving module;
the receiving module is used for receiving a second input of a second shooting object from a user under the condition that at least one shooting object is contained in the shooting preview picture, wherein the first shooting object is a shooting object except the second shooting object in the at least one shooting object;
the acquiring module is specifically configured to acquire, in response to a second input received by the receiving module, N image frames of a same area of a same shooting scene in a case where the first shooting object appears in the shooting preview screen.
9. The apparatus according to any one of claims 6 to 8, comprising: a first camera and a second camera;
the acquisition module is specifically configured to acquire N image frames acquired by the first camera and the second camera for a same area of a same shooting scene;
the generating module is specifically configured to replace the image of the first area of the first image frame acquired by the first camera acquired by the acquiring module with the image of the second area of the second image frame acquired by the second camera, and generate a third image frame.
10. The apparatus of any one of claims 6 to 8, comprising a third camera;
the acquisition module is specifically configured to acquire N image frames acquired by the third camera for the same area of the same shooting scene;
wherein the first photographic object is located at different positions in at least two image frames of the N image frames.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the photographing method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to any one of claims 1 to 5.
CN202011194560.7A 2020-10-30 2020-10-30 Shooting method, shooting device, electronic equipment and readable storage medium Pending CN112399079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194560.7A CN112399079A (en) 2020-10-30 2020-10-30 Shooting method, shooting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194560.7A CN112399079A (en) 2020-10-30 2020-10-30 Shooting method, shooting device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112399079A true CN112399079A (en) 2021-02-23

Family

ID=74598602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194560.7A Pending CN112399079A (en) 2020-10-30 2020-10-30 Shooting method, shooting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112399079A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005012660A (en) * 2003-06-20 2005-01-13 Nikon Corp Image forming method, and image forming apparatus
CN101938604A (en) * 2009-07-02 2011-01-05 联想(北京)有限公司 Image processing method and camera
CN104486546A (en) * 2014-12-19 2015-04-01 广东欧珀移动通信有限公司 Photographing method and device and mobile terminal
CN109035185A (en) * 2018-06-29 2018-12-18 努比亚技术有限公司 A kind of image processing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005012660A (en) * 2003-06-20 2005-01-13 Nikon Corp Image forming method, and image forming apparatus
CN101938604A (en) * 2009-07-02 2011-01-05 联想(北京)有限公司 Image processing method and camera
CN104486546A (en) * 2014-12-19 2015-04-01 广东欧珀移动通信有限公司 Photographing method and device and mobile terminal
CN109035185A (en) * 2018-06-29 2018-12-18 努比亚技术有限公司 A kind of image processing method and terminal

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112637500B (en) Image processing method and device
CN112532881B (en) Image processing method and device and electronic equipment
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113794834B (en) Image processing method and device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
CN113794829B (en) Shooting method and device and electronic equipment
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112511743B (en) Video shooting method and device
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN113891002B (en) Shooting method and device
CN113794833B (en) Shooting method and device and electronic equipment
CN112153291B (en) Photographing method and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN114245018A (en) Image shooting method and device
CN112399079A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113347355A (en) Image processing method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN111654623A (en) Photographing method and device and electronic equipment
CN114071016B (en) Image processing method, device, electronic equipment and 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210223