CN107483838A - Shooting method, device, equipment and medium based on front camera and rear camera - Google Patents

Shooting method, device, equipment and medium based on front camera and rear camera Download PDF

Info

Publication number
CN107483838A
CN107483838A CN201710910949.9A CN201710910949A CN107483838A CN 107483838 A CN107483838 A CN 107483838A CN 201710910949 A CN201710910949 A CN 201710910949A CN 107483838 A CN107483838 A CN 107483838A
Authority
CN
China
Prior art keywords
frame
camera
shooting
splicing
picture
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.)
Withdrawn
Application number
CN201710910949.9A
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710910949.9A priority Critical patent/CN107483838A/en
Publication of CN107483838A publication Critical patent/CN107483838A/en
Withdrawn legal-status Critical Current

Links

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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a shooting method, a shooting device, shooting equipment and a shooting medium based on front and rear cameras, wherein the method comprises the following steps: acquiring frame pictures respectively acquired by front and rear cameras at present; analyzing the frame pictures, and determining attribute information of each frame picture; determining a target splicing mode according to the attribute information of each frame picture; and according to the target splicing mode, splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present. The method realizes intelligent determination of the optimal splicing mode according to the attribute information of the frame picture, so that the spliced and shot image is more three-dimensional and natural and is rich in aesthetic feeling, the shooting effect is improved, the personalized requirements of users are met, and the user experience is improved.

Description

Shooting method, device, equipment and medium based on front camera and rear camera
Technical Field
The invention relates to the technical field of image processing, in particular to a shooting method, a shooting device, shooting equipment and a shooting medium based on front and rear cameras.
Background
Nowadays, almost all electronic devices (such as mobile phones, tablet computers, and the like) have a shooting function, and most of the electronic devices also have a front camera and a rear camera at the same time, so that users can shoot from different angles.
In the actual use process, the electronic equipment can realize the double-lens shooting function through the front camera and the rear camera. Namely, the electronic equipment can start the front camera and the rear camera simultaneously to take pictures and synthesize the pictures. For example, when a user opens the double-lens shooting function to shoot, a favorite photo frame can be set for the picture shot by the front camera, the display position and size of the picture shot by the front camera are adjusted, then the shooting key is pressed, the front camera and the rear camera can shoot simultaneously at the moment, and a photo with shooting areas of the front camera and the rear camera is generated.
However, with the dual-lens shooting function, the layout mode of the shot picture is simple, manual setting by a user is required, the operation is complicated, and the shooting effect is poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a shooting method based on front and rear cameras, which intelligently determines an optimal splicing manner according to attribute information of a frame, so that an image obtained by splicing is more stereoscopic, natural and aesthetic, a shooting effect is improved, a personalized requirement of a user is met, and user experience is improved.
The second purpose of the invention is to provide a shooting device based on front and back cameras.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a computer-readable storage medium.
A fifth object of the invention is to propose an application.
In order to achieve the above object, a first embodiment of the present invention provides a front and back camera-based shooting method, where the method includes:
acquiring frame pictures respectively acquired by front and rear cameras at present;
analyzing the frame pictures and determining attribute information of each frame picture;
determining a target splicing mode according to the attribute information of each frame picture;
and splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
In the shooting method based on the front and rear cameras provided by this embodiment, frame pictures currently and respectively collected by the front and rear cameras are obtained to analyze the frame pictures, attribute information of each frame picture is determined, then a corresponding target splicing mode is determined according to the attribute information of each frame picture, and the frame pictures collected by the front and rear cameras are spliced and shot according to the determined target splicing mode. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
In addition, the shooting method based on front and back cameras provided by the above embodiment of the present invention may further have the following additional technical features:
in an embodiment of the present invention, before obtaining frame pictures respectively acquired by front and rear cameras currently, the method further includes:
and receiving a starting instruction of a front camera and a rear camera splicing shooting mode.
In another embodiment of the present invention, the attribute information of the frame picture includes one or more of the following information: the color and the brightness of the frame picture, the type of the shot object contained in the frame picture, the distance between the shot object and the camera and the motion state of the shot object.
In another embodiment of the present invention, the method further comprises:
acquiring current audio data;
if the current audio data comprises user voice, analyzing the current audio data and the frame picture, and determining the frame picture of the current speaking user;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
after the frame picture of the current speaking user is amplified, the frame picture is spliced and shot with other frame pictures.
In another embodiment of the present invention, before the acquiring the current audio data, the method further includes:
and determining that the frame pictures respectively acquired by the front camera and the rear camera at present comprise face images.
In another embodiment of the present invention, the frame images currently and respectively collected by the front and rear cameras each include a portrait area;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
splicing and shooting a portrait area included in any frame of picture with another frame of picture;
or,
and splicing and shooting the portrait areas in the two frame pictures with a preset background image.
In another embodiment of the present invention, the current frame pictures respectively collected by the front and rear cameras are both scene pictures;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
and if the current shooting mode is determined to be panoramic shooting, splicing and shooting the multi-frame pictures continuously collected by the front camera and the rear camera to generate a panoramic image.
In order to achieve the above object, a second embodiment of the present invention provides a front and back camera based shooting device, including:
the first acquisition module is used for acquiring frame pictures respectively acquired by the front camera and the rear camera at present;
the first analysis module is used for analyzing the frame pictures and determining the attribute information of each frame picture;
the first determining module is used for determining a target splicing mode according to the attribute information of each frame picture;
and the processing module is used for splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
In the shooting device based on the front and rear cameras provided by this embodiment, frame pictures currently and respectively collected by the front and rear cameras are obtained to analyze the frame pictures, attribute information of each frame picture is determined, then a corresponding target splicing manner is determined according to the attribute information of each frame picture, and the frame pictures collected by the front and rear cameras are spliced and shot according to the determined target splicing manner. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
In addition, the photographing device based on front and rear cameras provided by the above embodiment of the present invention may further have the following additional technical features:
in one embodiment of the present invention, further comprising:
and the receiving module is used for receiving a starting instruction of a front camera and a rear camera splicing shooting mode.
In another embodiment of the present invention, the attribute information of the frame picture includes one or more of the following information: the color and the brightness of the frame picture, the type of the shot object contained in the frame picture, the distance between the shot object and the camera and the motion state of the shot object.
In another embodiment of the present invention, the method further comprises:
the second acquisition module is used for acquiring current audio data;
the second analysis module is used for analyzing the current audio data and the frame picture if the current audio data comprises the user voice, and determining the frame picture of the current speaking user;
the processing module specifically comprises:
after the frame picture of the current speaking user is amplified, the frame picture is spliced and shot with other frame pictures.
In another embodiment of the present invention, before the second obtaining module, the method further includes:
and the second determining module is used for determining that the frame pictures respectively acquired by the front camera and the rear camera at present comprise face images.
In another embodiment of the present invention, the frame images currently and respectively collected by the front and rear cameras each include a portrait area;
the processing module specifically comprises:
splicing and shooting a portrait area included in any frame of picture with another frame of picture;
or,
and splicing and shooting the portrait areas in the two frame pictures with a preset background image.
In another embodiment of the present invention, the current frame pictures respectively collected by the front and rear cameras are both scene pictures;
the processing module specifically comprises:
and if the current shooting mode is determined to be panoramic shooting, splicing and shooting the multi-frame pictures continuously collected by the front camera and the rear camera to generate a panoramic image.
To achieve the above object, a third aspect of the present invention provides an electronic device, including: the device comprises a memory, a processor and a display screen;
the memory for storing executable program code;
the display screen is used for displaying the spliced image;
the processor is configured to read the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the front-back camera-based shooting method described in the embodiment of the first aspect.
In the electronic device provided in this embodiment, frame pictures currently and respectively acquired by the front and rear cameras are acquired to analyze the frame pictures, determine attribute information of each frame picture, determine a corresponding target splicing manner according to the attribute information of each frame picture, and splice and shoot the frame pictures acquired by the front and rear cameras according to the determined target splicing manner. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
To achieve the above object, a fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the front-back camera-based shooting method described in the first embodiment.
To achieve the above object, a fifth embodiment of the present invention provides an application program, which when executed by a processor implements the front-back camera-based shooting method described in the first embodiment.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a front-rear camera-based photographing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a person and a landscape in a frame image being fused to obtain a mosaic image according to an embodiment of the present invention;
fig. 3 is a flowchart of a front-rear camera-based photographing method according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a person piecing together to obtain a pieced image according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a person piecing together to obtain a pieced image according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a front-back camera-based photographing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The embodiment of the invention mainly aims to solve the problems that when the electronic equipment is used for double-lens shooting at present, the existing shooting picture presentation layout mode is simple, the manual layout of a user is needed, the operation is complicated, and the shooting effect is poor, and provides a shooting method based on front and rear cameras.
The shooting method based on the front camera and the rear camera comprises the steps of obtaining frame pictures respectively collected by the front camera and the rear camera at present, analyzing the frame pictures, determining attribute information of each frame picture, determining a corresponding target splicing mode according to the attribute information of each frame picture, and splicing and shooting the frame pictures collected by the front camera and the rear camera according to the determined target splicing mode. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
The following describes in detail a photographing method based on front and rear cameras according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart of a front-rear camera-based photographing method according to an embodiment of the present invention.
As shown in fig. 1, the front and rear camera-based photographing method may include the steps of:
step 101, acquiring frame pictures respectively acquired by front and rear cameras at present.
Specifically, the front-back camera-based shooting method provided in this embodiment may be executed by the front-back camera-based shooting device provided in the present invention, where the device is configured in an electronic device to process frame pictures collected by the front-back camera.
In the embodiment of the present invention, the electronic device may be any hardware device having a shooting function, such as: smart phones, personal digital assistants, PCs, tablet computers, and the like, which are not specifically limited in this respect.
In a specific implementation, before S101, the method may further include:
and receiving a starting instruction of a front camera and a rear camera splicing shooting mode.
Specifically, if a user wants to use front and rear cameras on the electronic device to perform split shooting, the front and rear camera split shooting mode can be started in the following manners, for example, as follows:
in a first implementation, a function icon of a dual-lens shooting function in a camera of the electronic device is clicked to start a front camera and a rear camera splicing shooting function.
In the second implementation mode, the function of splicing and shooting front and rear cameras is started in a voice input mode.
It should be noted that the above two implementation manners are only exemplary and are not intended to specifically limit the present invention.
Furthermore, after the front camera and the rear camera are started to be in the split mode according to the starting instruction, frame pictures of the shooting area at the current moment can be collected through the front camera and the rear camera respectively.
Step 102, analyzing the frame picture, and determining the attribute information of each frame picture.
Specifically, after the shooting devices based on the front and rear cameras acquire frame images acquired by the front and rear cameras, real-time calculation can be performed on each frame image to determine attribute information corresponding to each frame image.
The attribute information of the frame picture may include one or more of the following information: the color and brightness of the frame picture, the type of the shot object contained in the frame picture, the distance between the shot object and the camera, and the motion state of the shot object.
In this embodiment, the type of the shot object can be determined by combining the object outline, color, face recognition, networking and gallery comparison in big data. For example, the photographic subject type is a person, an animal, a still or a landscape, or the like.
And 103, determining a target splicing mode according to the attribute information of each frame picture.
Specifically, in actual application, different splicing strategies may be configured in advance in the electronic device. Therefore, after the attribute information of each frame picture is determined, the corresponding splicing mode can be matched in the splicing strategy according to the attribute information.
For example, when it is determined that the attribute information of the frame picture is the type of the photographed object, and the types of the photographed objects are a person and a landscape, matching is performed in a plurality of different matching strategies according to the person and the landscape, so as to obtain a matching mode for fusing the person and the landscape.
And 104, splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
For example, as shown in fig. 2, if the determined target matching method is to blend a person and a landscape in a frame, the person contour is obtained from the corresponding frame through a matting method, and then the obtained person contour is blended with the landscape in another frame and captured to obtain a matching image.
Wherein, the matting mode in this embodiment may be, but is not limited to: magic wand, path editor, etc.
Further, after the shooting is completed, the shot picture can be presented in a display interface of the electronic equipment, so that the user can conveniently preview and view the shot picture.
In the shooting method based on the front and rear cameras provided by this embodiment, frame pictures respectively collected by the front and rear cameras are obtained to analyze the frame pictures, attribute information corresponding to each frame picture is determined, then a corresponding target splicing manner is determined according to the attribute information of each frame picture, and the frame pictures collected by the front and rear cameras are spliced and shot according to the determined target splicing manner. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
Fig. 3 is a flowchart of a front-back camera-based shooting method according to an embodiment of the present invention.
As shown in fig. 3, the shooting method based on front and back cameras according to the embodiment of the present invention may include the following steps:
step 301, acquiring frame pictures currently and respectively acquired by front and rear cameras.
Step 302, determining whether the frame pictures respectively acquired by the front camera and the rear camera currently comprise face images, if yes, executing step 303, and if not, executing step 307.
Optionally, in this embodiment, a face detection technology may be used to perform face analysis on the acquired frame pictures to determine whether the frame pictures acquired by the front and rear cameras include a face image.
The face detection technology is that for any given image, a certain strategy is adopted to search the image to determine whether the image contains a face, and if so, the position, size and posture of one face are returned.
Step 303, acquiring current audio data, and determining whether the current audio data includes a user voice, if so, executing step 304, otherwise, executing step 306.
Specifically, when it is determined that the frame pictures respectively acquired by the front camera and the rear camera include the face images, the audio data corresponding to the acquired frame pictures is further acquired, the acquired audio data is processed through audio recognition, and whether the current audio data includes the user voice is determined.
Step 304, analyzing the current audio data and frame picture, and determining the frame picture of the current speaking user.
And 305, amplifying the frame picture of the current speaking user, and then performing splicing shooting with other frame pictures.
For example, if it is detected that the user Amy is currently speaking in the frame pictures acquired by the rear camera of the front and rear cameras, the frame picture where the user Amy is located is amplified and displayed, and then the amplified frame picture and the frame picture acquired by the front camera are spliced and photographed, as shown in fig. 4.
Further, if it is detected that the user in the frame image collected by the front camera starts speaking after the split shooting is completed, the frame image collected by the front camera may be amplified, and then the amplified frame image and the frame image collected by the rear camera are subjected to split shooting.
That is to say, the present embodiment can continuously acquire the frame images and the audio data acquired by the front and rear cameras, perform real-time analysis on the acquired frame images and audio data, switch the amplification operation of the frame images in real time according to the analysis result, and then perform the splicing shooting operation as needed.
And step 306, performing splicing shooting on the portrait area included in any frame of picture and another frame of picture.
Specifically, the portrait area in the frame picture can be pieced together and photographed in the following manner, for example, as follows:
in a first implementation manner, one of the two frames of pictures with stronger background light is selected as a spliced background, then a portrait area in the other frame of picture is obtained, and the obtained portrait area is fused with the portrait area, which can be specifically shown in fig. 5.
The portrait areas may be arranged in a parallel manner, or may be arranged adaptively according to the characteristics of the portrait areas, which is not limited in this application.
In a second implementation manner, the frame pictures collected by the rear camera are spliced on the frame pictures collected by the front camera.
In a third implementation mode, the frame pictures collected by the front camera are spliced on the frame pictures collected by the rear camera.
In a fourth implementation manner, the portrait areas in the two frame pictures are spliced with a preset background image for shooting.
That is to say, in this embodiment, the portrait areas may be respectively obtained from the two frames of pictures, then the favorite background images are obtained from the preset gallery, and the obtained portrait areas are merged onto the obtained background images.
The preset image library may be pre-stored in the electronic device by the user, or may be on the network side, which is not limited in this embodiment.
And 307, scene pictures are respectively obtained in the frame pictures currently collected by the front camera and the rear camera.
And 308, if the current shooting mode is determined to be panoramic shooting, splicing and shooting the multi-frame pictures continuously collected by the front camera and the rear camera to generate a panoramic image.
Specifically, the user who uses electronic equipment can evenly rotate electronic equipment after starting the panorama shooting mode to make the sustainable multiframe picture of gathering of front and back camera, and carry out the amalgamation with the multiframe picture that obtains and obtain panoramic image, thereby make panoramic image can show wider scene, consequently have stronger visual impact force, satisfied user demand.
In the shooting method based on the front camera and the rear camera, the front camera and the rear camera acquire corresponding frame pictures, and an optimal splicing mode is intelligently determined according to the attribute information of the frame pictures, so that the spliced and shot images are more three-dimensional and natural and are rich in aesthetic feeling, the shooting effect is improved, the personalized requirements of users are met, and the user experience is improved.
The following describes a photographing apparatus based on front and rear cameras according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 6 is a schematic structural diagram of a photographing device based on front and rear cameras according to an embodiment of the present invention.
Referring to fig. 6, the apparatus includes: the device comprises a first acquisition module 11, a first analysis module 12, a first determination module 13 and a processing module 14.
The first obtaining module 11 is configured to obtain frame pictures currently and respectively collected by front and rear cameras;
the first analyzing module 12 is configured to analyze the frame pictures and determine attribute information of each frame picture;
wherein the attribute information of the frame picture comprises one or more of the following information: the color and the brightness of the frame picture, the type of the shot object contained in the frame picture, the distance between the shot object and the camera and the motion state of the shot object.
The first determining module 13 is configured to determine a target splicing mode according to the attribute information of each frame;
the processing module 14 is configured to perform splicing shooting on the frame pictures currently and respectively acquired by the front and rear cameras according to the target splicing manner.
Specifically, in the embodiment of the present invention, the photographing device based on front and rear cameras further includes: further comprising:
and the receiving module is used for receiving a starting instruction of a front camera and a rear camera splicing shooting mode.
Further, in another embodiment of the present invention, the front and rear camera-based photographing apparatus further includes: the device comprises a second determining module, a second obtaining module and a second analyzing module.
And the second determining module is used for determining that the frame pictures respectively acquired by the front camera and the rear camera at present comprise face images.
The second acquisition module is used for acquiring current audio data;
the second analysis module is used for analyzing the current audio data and the frame picture if the current audio data comprises the user voice, and determining the frame picture of the current speaking user;
the processing module 14 specifically includes:
after the frame picture of the current speaking user is amplified, the frame picture is spliced and shot with other frame pictures.
In another embodiment of the present invention, the front and rear camera-based photographing apparatus further includes:
the frame pictures respectively collected by the front camera and the rear camera at present comprise portrait areas;
the processing module 14 specifically includes:
splicing and shooting a portrait area included in any frame of picture with another frame of picture;
or,
and splicing and shooting the portrait areas in the two frame pictures with a preset background image.
In another embodiment of the present invention, the front and rear camera-based photographing apparatus further includes:
scene pictures are respectively obtained in the frame pictures currently collected by the front camera and the rear camera;
the processing module 14 specifically includes:
and if the current shooting mode is determined to be panoramic shooting, splicing and shooting the multi-frame pictures continuously collected by the front camera and the rear camera to generate a panoramic image.
It should be noted that, for the implementation process and the technical principle of the photographing apparatus based on front and back cameras of this embodiment, reference is made to the foregoing explanation of the embodiment of the photographing method based on front and back cameras, and details are not described here again.
In the shooting device based on the front and rear cameras provided by this embodiment, frame pictures currently and respectively collected by the front and rear cameras are obtained to analyze the frame pictures, attribute information of each frame picture is determined, then a corresponding target splicing manner is determined according to the attribute information of each frame picture, and the frame pictures collected by the front and rear cameras are spliced and shot according to the determined target splicing manner. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
In order to implement the above embodiments, the present invention further provides an electronic device.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 7, the electronic apparatus includes: a memory 21, a processor 22 and a display 23;
the memory 21 is used for storing executable program codes;
the display screen 23 is used for displaying the spliced images;
the processor 22 is configured to read the executable program code stored in the memory 21 to run a program corresponding to the executable program code, so as to implement the front-back camera-based shooting method described in the first embodiment.
It should be noted that, for the implementation process and the technical principle of the electronic device of this embodiment, reference is made to the foregoing explanation of the embodiment of the shooting method based on front and back cameras, and details are not described here again.
In the electronic device provided in this embodiment, frame pictures currently and respectively acquired by the front and rear cameras are acquired to analyze the frame pictures, determine attribute information of each frame picture, determine a corresponding target splicing manner according to the attribute information of each frame picture, and splice and shoot the frame pictures acquired by the front and rear cameras according to the determined target splicing manner. Therefore, when the double-camera shooting is carried out, the optimal splicing mode is intelligently determined according to the attribute information of the frame picture, so that the image shot by splicing is more three-dimensional and natural, is rich in aesthetic feeling, improves the shooting effect, meets the personalized requirement of a user, and improves the user experience.
In order to achieve the above object, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the front-rear camera-based photographing method described in the embodiment of the first aspect. The method comprises the following steps: acquiring frame pictures respectively acquired by front and rear cameras at present; analyzing the frame pictures and determining attribute information of each frame picture; determining a target splicing mode according to the attribute information of each frame picture; and splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
In order to achieve the above object, the present invention further discloses an application program, which when executed by a processor implements the front-back camera-based shooting method according to the embodiment of the first aspect. The method comprises the following steps: acquiring frame pictures respectively acquired by front and rear cameras at present; analyzing the frame pictures and determining attribute information of each frame picture; determining a target splicing mode according to the attribute information of each frame picture; and splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A shooting method based on front and back cameras is characterized by comprising the following steps:
acquiring frame pictures respectively acquired by front and rear cameras at present;
analyzing the frame pictures and determining attribute information of each frame picture;
determining a target splicing mode according to the attribute information of each frame picture;
and splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
2. The method of claim 1, wherein before the obtaining of the frame pictures respectively acquired by the front camera and the rear camera, the method further comprises:
and receiving a starting instruction of a front camera and a rear camera splicing shooting mode.
3. The method of claim 1, wherein the attribute information of the frame picture includes one or more of the following information: the color and the brightness of the frame picture, the type of the shot object contained in the frame picture, the distance between the shot object and the camera and the motion state of the shot object.
4. The method of any of claims 1-3, further comprising:
acquiring current audio data;
if the current audio data comprises user voice, analyzing the current audio data and the frame picture, and determining the frame picture of the current speaking user;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
and after the frame picture of the current speaking user is amplified, the frame picture is spliced and shot with other frame pictures.
5. The method of claim 4, wherein prior to obtaining the current audio data, further comprising:
and determining that the frame pictures respectively acquired by the front camera and the rear camera at present comprise face images.
6. The method of any one of claims 1-3, wherein the frames currently acquired by the front and back cameras respectively comprise a portrait area;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
splicing and shooting a portrait area included in any frame of picture with another frame of picture;
or,
and splicing and shooting the portrait areas in the two frame pictures with a preset background image.
7. The method according to any one of claims 1 to 3, wherein the current frames respectively acquired by the front and rear cameras are both scene pictures;
the frame pictures that to the current difference of front and back camera is gathered are carried out the amalgamation and are shot, include:
and if the current shooting mode is determined to be panoramic shooting, splicing and shooting the multi-frame pictures continuously collected by the front camera and the rear camera to generate a panoramic image.
8. The utility model provides a shoot device based on front and back camera which characterized in that includes:
the first acquisition module is used for acquiring frame pictures respectively acquired by the front camera and the rear camera at present;
the first analysis module is used for analyzing the frame pictures and determining the attribute information of each frame picture;
the first determining module is used for determining a target splicing mode according to the attribute information of each frame picture;
and the processing module is used for splicing and shooting the frame pictures respectively collected by the front camera and the rear camera at present according to the target splicing mode.
9. An electronic device, comprising: the device comprises a memory, a processor and a display screen;
the memory for storing executable program code;
the display screen is used for displaying the spliced image;
the processor is used for reading the executable program codes stored in the memory to run programs corresponding to the executable program codes, so as to realize the front-back camera-based shooting method according to any one of claims 1 to 7.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the front and rear camera-based photographing method according to any one of claims 1 to 7.
CN201710910949.9A 2017-09-29 2017-09-29 Shooting method, device, equipment and medium based on front camera and rear camera Withdrawn CN107483838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710910949.9A CN107483838A (en) 2017-09-29 2017-09-29 Shooting method, device, equipment and medium based on front camera and rear camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710910949.9A CN107483838A (en) 2017-09-29 2017-09-29 Shooting method, device, equipment and medium based on front camera and rear camera

Publications (1)

Publication Number Publication Date
CN107483838A true CN107483838A (en) 2017-12-15

Family

ID=60605409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710910949.9A Withdrawn CN107483838A (en) 2017-09-29 2017-09-29 Shooting method, device, equipment and medium based on front camera and rear camera

Country Status (1)

Country Link
CN (1) CN107483838A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113284044A (en) * 2021-05-08 2021-08-20 口碑(上海)信息技术有限公司 Image generation method and device and electronic equipment
CN114449180A (en) * 2020-11-04 2022-05-06 北京小米移动软件有限公司 Image processing method and device, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938825A (en) * 2012-11-12 2013-02-20 北京小米科技有限责任公司 Method and device for shooting pictures and recording videos
CN103379256A (en) * 2012-04-25 2013-10-30 华为终端有限公司 Method and device for processing image
CN104349044A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Method and electronic equipment for shooting panoramic picture
CN105094957A (en) * 2015-06-10 2015-11-25 小米科技有限责任公司 Video conversation window control method and apparatus
CN105162961A (en) * 2015-08-04 2015-12-16 深圳先进技术研究院 Panorama camera cell phone and panorama photographing method
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal
CN105979163A (en) * 2015-11-06 2016-09-28 乐视移动智能信息技术(北京)有限公司 Shooting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379256A (en) * 2012-04-25 2013-10-30 华为终端有限公司 Method and device for processing image
CN102938825A (en) * 2012-11-12 2013-02-20 北京小米科技有限责任公司 Method and device for shooting pictures and recording videos
CN104349044A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Method and electronic equipment for shooting panoramic picture
CN105094957A (en) * 2015-06-10 2015-11-25 小米科技有限责任公司 Video conversation window control method and apparatus
CN105162961A (en) * 2015-08-04 2015-12-16 深圳先进技术研究院 Panorama camera cell phone and panorama photographing method
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal
CN105979163A (en) * 2015-11-06 2016-09-28 乐视移动智能信息技术(北京)有限公司 Shooting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449180A (en) * 2020-11-04 2022-05-06 北京小米移动软件有限公司 Image processing method and device, electronic device and storage medium
CN113284044A (en) * 2021-05-08 2021-08-20 口碑(上海)信息技术有限公司 Image generation method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106375674B (en) Method and apparatus for finding and using video portions related to adjacent still images
EP2728853B1 (en) Method and device for controlling a camera
US7855737B2 (en) Method of making a digital camera image of a scene including the camera user
CN110636276B (en) Video shooting method and device, storage medium and electronic equipment
CN113630545B (en) Shooting method and equipment
US9195880B1 (en) Interactive viewer for image stacks
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN114071010B (en) Shooting method and equipment
CN110798627B (en) Shooting method, shooting device, storage medium and terminal
KR20120012201A (en) Method for photographing panorama picture
WO2022022726A1 (en) Image capture method and device
CN114598819B (en) Video recording method and device and electronic equipment
CN111654624B (en) Shooting prompting method and device and electronic equipment
KR20150091064A (en) Method and system for capturing a 3d image using single camera
CN110177216B (en) Image processing method, image processing device, mobile terminal and storage medium
CN114071009B (en) Shooting method and equipment
CN104735353B (en) A kind of method and device for the photo that pans
CN107483838A (en) Shooting method, device, equipment and medium based on front camera and rear camera
US9374525B2 (en) Shooting apparatus and shooting method
US20160055662A1 (en) Image extracting apparatus, image extracting method and computer readable recording medium for recording program for extracting images based on reference image and time-related information
CN104869283A (en) Shooting method and electronic equipment
US20230281916A1 (en) Three dimensional scene inpainting using stereo extraction
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN112653841B (en) Shooting method and device and electronic equipment
JP2006128793A (en) Image pickup device and control method thereof

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
CB03 Change of inventor or designer information

Inventor after: Gan Yu

Inventor after: Li Yuan

Inventor after: Hou Wenpei

Inventor after: Qiao Li

Inventor after: Jiao Diqin

Inventor after: Yu Zhilan

Inventor after: Gong Xue

Inventor after: Zhu Mingen

Inventor after: Chen Xiaoqing

Inventor after: Guo Jianan

Inventor after: Li Yuan

Inventor before: Gan Yu

Inventor before: Li Yuan

Inventor before: Hou Wenpei

Inventor before: Qiao Li

Inventor before: Jiao Diqin

Inventor before: Yu Zhilan

Inventor before: Zhangliang Yuxiao

Inventor before: Zhu Mingen

Inventor before: Chen Xiaoqing

Inventor before: Guo Jianan

Inventor before: Li Yuan

CB03 Change of inventor or designer information
WW01 Invention patent application withdrawn after publication

Application publication date: 20171215

WW01 Invention patent application withdrawn after publication