CN111787228A - Shooting method, shooting device, storage medium and mobile terminal - Google Patents

Shooting method, shooting device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111787228A
CN111787228A CN202010717316.8A CN202010717316A CN111787228A CN 111787228 A CN111787228 A CN 111787228A CN 202010717316 A CN202010717316 A CN 202010717316A CN 111787228 A CN111787228 A CN 111787228A
Authority
CN
China
Prior art keywords
preview frame
shooting
preview
target
determining
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
CN202010717316.8A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010717316.8A priority Critical patent/CN111787228A/en
Publication of CN111787228A publication Critical patent/CN111787228A/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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • 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)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, a storage medium and a mobile terminal, wherein the method comprises the following steps: receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets; if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets; determining whether at least one preview frame in the target preview frame set has preset characteristic information; and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot. Can avoid the manual switching of user to make a video recording the module to reduce user's complex operation nature, and then improve the user experience when shooing.

Description

Shooting method, shooting device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications, and in particular, to a shooting method, an apparatus, a storage medium, and a mobile terminal.
Background
Nowadays, photographing is an indispensable part of people's life, so mobile terminals such as mobile phones are gradually favored by users due to the photographing function, and users can photograph different objects by adopting different camera modules on the mobile terminals.
Among the prior art, after the user carries out shooting mode selection, need the manual module of making a video recording of switching, for example: after the user selects the portrait mode, the user generally needs to manually switch from the rear camera module to the front camera module to perform self-shooting, but the manual operation mode is obviously more cumbersome.
Therefore, the prior art has defects and needs to be improved urgently.
Disclosure of Invention
The embodiment of the application provides a shooting method, which can avoid manual switching of a camera module by a user so as to reduce the operation complexity of the user and further improve the experience of the user in shooting.
The embodiment of the application provides a shooting method, which is applied to a mobile terminal with a first camera module and a second camera module which have different shooting directions, and comprises the following steps:
receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets;
if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets;
determining whether at least one preview frame in the target preview frame set has preset characteristic information;
and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot.
The embodiment of the present application further provides a shooting device, which is applied to a mobile terminal having a first camera module and a second camera module with different shooting directions, and includes:
the acquisition unit is used for receiving a shooting instruction, starting the first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets;
the first determining unit is used for determining a target preview frame set from the plurality of groups of preview frame sets if the current shooting mode is detected to be switched to a preset shooting mode;
a second determining unit, configured to determine whether at least one preview frame in the target preview frame set has preset feature information;
and the switching unit is used for switching the first camera module into a second camera module for shooting if the preset characteristic information does not exist in each preview frame in the target preview frame set.
An embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the shooting method as described above.
The embodiment of the application further provides a mobile terminal, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the shooting method described above by calling the computer program stored in the memory.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets; if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets; determining whether at least one preview frame in the target preview frame set has preset characteristic information; and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot. Can avoid the manual switching of user to make a video recording the module to reduce user's complex operation nature, and then improve the user experience when shooing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a shooting method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of the shooting method according to the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal 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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. 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.
Referring to fig. 1, fig. 1 is a first flowchart of a shooting method according to an embodiment of the present disclosure. The shooting method comprises the following steps:
step 101, receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets.
The shooting preview mode can be started by a user on a mobile terminal with a camera module, or the mobile terminal is triggered by a physical key to enter the shooting preview mode and display a shooting preview interface; the mobile terminal without the camera module may also be triggered to enter the shooting preview mode when the mobile terminal is externally connected with the camera device, and the manner of triggering the mobile terminal to enter the shooting preview interface is all one of the shooting instructions, but not limited to the above mentioned triggering manner, and the present disclosure is not limited thereto. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and the like, and various application programs, such as applications having an entertainment function (e.g., a video application, a shooting application, a game application, and reading software) and applications having a service function (e.g., a map navigation application, a dining application, and the like), are stored in the mobile terminal.
Specifically, the preview frame is an image frame in the shooting preview interface, and the first camera module can perform caching.
In some embodiments, the step of acquiring a plurality of sets of preview frames includes:
(1) and recording a first time stamp entering the shooting preview mode, and acquiring a plurality of groups of preview frame sets according to a preset time period.
When entering the shooting preview mode, recording the entering time (namely, a first time stamp) when entering the shooting preview mode, and dividing the preview frames in a preset time period into a group.
For example, if the preset time period is 2s, dividing the preview frame data cached by the first camera module within 2s into a group of preview frame sets.
And 102, if the current shooting mode is detected to be switched to the preset shooting mode, determining a target preview frame set from the plurality of groups of preview frame sets.
Wherein, the photographing mode may include: a portrait mode, a video mode, a panorama mode, and the like. The preset shooting mode is one of the multiple shooting modes.
In some embodiments, the step of determining a target set of preview frames from the plurality of sets of preview frames comprises:
(1) determining first acquisition time for acquiring each group of preview frame sets, and sequentially comparing the first acquisition time of each group of preview frame sets according to the first time stamp;
(2) and determining the preview frame set with the longest first acquisition time from the first time stamp as a target preview frame set.
The first acquisition time of each group of preview frame sets in the multiple groups of preview frame sets can be determined, and the first acquisition time is the acquisition time of the first frame preview frame in each group of preview frame sets. And sequentially comparing the time interval between the first acquisition time and the first time stamp of each group of preview frames, and determining a preview frame set corresponding to the first acquisition time with the longest time interval as a target preview set.
The purpose of this step is: through determining the target preview set with the longest first timestamp interval of entering the shooting preview interface, whether the current first camera module is suitable for the preset shooting mode can be determined more accurately.
And 103, determining whether at least one preview frame in the target preview frame set has preset characteristic information.
And judging whether the first camera module is suitable for a preset shooting mode or not, and determining whether the characteristic information applied to the preset shooting mode exists in the preview frame or not. For example, the preset shooting mode is a portrait mode, and therefore it is necessary to determine whether the preview frames in the target preview frame set have facial feature information.
In some embodiments, the step of determining whether at least one preview frame in the target preview frame set has preset feature information includes:
(1) determining a second acquisition time of each preview frame in the target preview frame set;
(2) determining a detection priority of each preview frame in the set of target preview frames based on the second acquisition time and the first timestamp;
(3) and detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
The acquisition time (namely, the second acquisition time) of each preview frame in the target preview frame set can be determined, the preview frame with the longest time interval between the acquisition time and the first time stamp is taken as a priority detection object, and the detection sequence of each preview frame is determined by analogy. And sequentially detecting each preview frame in the target preview frame set according to the detection sequence. When judging whether the preview frame in the target preview frame set has the preset characteristic information, a detection priority can be set, and some preview frames are detected preferentially through the detection priority, so that the detection speed is accelerated.
And step 104, if each preview frame in the target preview frame set does not have preset characteristic information, switching the first camera module into a second camera module for shooting.
And if the preset characteristic information does not exist in each preview frame in the target preview frame set, the first camera module is proved to be not suitable for the preset shooting mode. For example: each preview frame in the target preview frame set does not have facial feature information, so that the fact that the face cannot be shot by adopting the first camera module is proved, and when the human face enters a human image mode, the first camera module can be switched to a second camera module with a different shooting direction from that of the first camera module for shooting.
In some embodiments, further comprising:
and if the preset characteristic information exists in at least one preview frame in the target preview frame set, continuously using the first camera module to shoot.
And if the fact that at least one preview frame in the target preview frame set has the preset characteristic information is detected, the fact that the first camera module is applicable to a preset shooting mode is proved. Therefore, when the shooting preview mode is switched to the preset shooting mode, the first camera module can be continuously adopted for shooting.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets; if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets; determining whether at least one preview frame in the target preview frame set has preset characteristic information; and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot. Can avoid the manual switching of user to make a video recording the module to reduce user's complex operation nature, and then improve the user experience when shooing.
In some embodiments, there is provided a photographing method as shown in fig. 2, the photographing method including:
step 201, receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, recording a first timestamp entering the shooting preview mode, and acquiring a plurality of groups of preview frame sets according to a preset time period.
The shooting preview mode can be started by a user on a mobile terminal with a camera module, or the mobile terminal is triggered by a physical key to enter the shooting preview mode and display a shooting preview interface; the mobile terminal without the camera module may also be triggered to enter the shooting preview mode when the mobile terminal is externally connected with the camera device, and the manner of triggering the mobile terminal to enter the shooting preview interface is all one of the shooting instructions, but not limited to the above mentioned triggering manner, and the present disclosure is not limited thereto. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and the like, and various application programs, such as applications having an entertainment function (e.g., a video application, a shooting application, a game application, and reading software) and applications having a service function (e.g., a map navigation application, a dining application, and the like), are stored in the mobile terminal.
Specifically, when entering the shooting preview mode, the entry time (i.e., the first timestamp) when entering the shooting preview mode is recorded, and the preview frames in the preset time period are divided into one group.
For example, if the preset time period is 2s, dividing the preview frame data cached by the first camera module within 2s into a group of preview frame sets.
Step 202, if it is detected that the current shooting mode is switched to the preset shooting mode, determining first obtaining time for obtaining each group of preview frame sets, and sequentially comparing the first obtaining time for each group of preview frame sets according to the first time stamp.
Wherein, the photographing mode may include: a portrait mode, a video mode, a panorama mode, and the like. The preset shooting mode is one of the multiple shooting modes.
Specifically, a first obtaining time of each group of preview frame sets in the multiple groups of preview frame sets may be determined, where the first obtaining time is a obtaining time of a first frame preview frame in each group of preview frame sets. And sequentially comparing the time interval between the first acquisition time and the first time stamp of each group of preview frames, and determining a preview frame set corresponding to the first acquisition time with the longest time interval as a target preview set.
The purpose of this step is: through determining the target preview set with the longest first timestamp interval of entering the shooting preview interface, whether the current first camera module is suitable for the preset shooting mode can be determined more accurately.
Step 203, determining the preview frame set with the longest time between the first acquisition time and the first time stamp as a target preview frame set.
And step 204, determining a second acquisition time of each preview frame in the target preview frame set.
And judging whether the first camera module is suitable for a preset shooting mode or not, and determining whether the characteristic information applied to the preset shooting mode exists in the preview frame or not. For example, the preset shooting mode is a portrait mode, and therefore it is necessary to determine whether the preview frames in the target preview frame set have facial feature information.
Step 205, determining a detection priority of each preview frame in the target preview frame set based on the second acquisition time and the first timestamp.
And step 206, detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
The acquisition time (namely, the second acquisition time) of each preview frame in the target preview frame set can be determined, the preview frame with the longest time interval between the acquisition time and the first time stamp is taken as a priority detection object, and the detection sequence of each preview frame is determined by analogy. And sequentially detecting each preview frame in the target preview frame set according to the detection sequence. When judging whether the preview frame in the target preview frame set has the preset characteristic information, a detection priority can be set, and some preview frames are detected preferentially through the detection priority, so that the detection speed is accelerated.
And step 207, if each preview frame in the target preview frame set does not have preset characteristic information, switching the first camera module into a second camera module to shoot.
And if the preset characteristic information does not exist in each preview frame in the target preview frame set, the first camera module is proved to be not suitable for the preset shooting mode. For example: each preview frame in the target preview frame set does not have facial feature information, so that the fact that the face cannot be shot by adopting the first camera module is proved, and when the human face enters a human image mode, the first camera module can be switched to a second camera module with a different shooting direction from that of the first camera module for shooting.
And step 208, if at least one preview frame in the target preview frame set has preset feature information, continuing to use the first camera module to shoot.
And if the fact that at least one preview frame in the target preview frame set has the preset characteristic information is detected, the fact that the first camera module is applicable to a preset shooting mode is proved. Therefore, when the shooting preview mode is switched to the preset shooting mode, the first camera module can be continuously adopted for shooting.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets; if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets; determining whether at least one preview frame in the target preview frame set has preset characteristic information; and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot. Can avoid the manual switching of user to make a video recording the module to reduce user's complex operation nature, and then improve the user experience when shooing.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present disclosure. The photographing apparatus includes: an acquisition unit 31, a first determination unit 32, a second determination unit 33, and a switching unit 34.
The acquiring unit 31 is configured to receive a shooting instruction, start the first camera module to enter a shooting preview mode, and acquire a plurality of groups of preview frame sets;
the first determining unit 32 is configured to determine a target preview frame set from the multiple groups of preview frame sets if it is detected that the current shooting mode is switched to a preset shooting mode;
the second determining unit 33 is configured to determine whether at least one preview frame in the target preview frame set has preset feature information;
the switching unit 34 is configured to switch the first camera module to a second camera module for shooting if the preset feature information does not exist in each preview frame in the target preview frame set.
In some embodiments, the obtaining unit 31 may further include:
the recording subunit is used for recording a first timestamp for entering the shooting preview mode and acquiring a plurality of groups of preview frame sets according to a preset time period;
the first determination unit includes:
the comparison unit is used for determining first acquisition time for acquiring each group of preview frame sets and sequentially comparing the first acquisition time of each group of preview frame sets according to the first time stamp;
and the first determining subunit is used for determining the preview frame set with the first acquisition time being longest from the first timestamp as the target preview frame set.
In some embodiments, the second determining unit 33 may further include:
the second determining subunit is configured to determine a second obtaining time of each preview frame in the target preview frame set;
a third determining subunit, configured to determine, based on the second obtaining time and the first timestamp, a detection priority of each preview frame in the target preview frame set;
and the detection subunit is used for detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
Based on the above method, the present invention also provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the photographing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a block diagram showing a specific structure of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the shooting method, the storage medium, and the terminal provided in the above embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the photographing method, apparatus, storage medium and mobile terminal in the above embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, realizes the function of mutual chip identification. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content for displaying the shot may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 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 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets;
if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets;
determining whether at least one preview frame in the target preview frame set has preset characteristic information;
and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot.
In some embodiments, when acquiring the plurality of sets of preview frames, the processor 380 may further execute the following instructions:
recording a first timestamp entering the shooting preview mode, and acquiring a plurality of groups of preview frame sets according to a preset time period;
the step of determining a target preview frame set from the plurality of groups of preview frame sets comprises:
determining first acquisition time for acquiring each group of preview frame sets, and sequentially comparing the first acquisition time of each group of preview frame sets according to the first time stamp;
and determining the preview frame set with the longest first acquisition time from the first time stamp as a target preview frame set.
In some embodiments, when determining whether at least one preview frame in the target preview frame set has preset feature information, the processor 380 may further execute the following instructions:
determining a second acquisition time of each preview frame in the target preview frame set;
determining a detection priority of each preview frame in the set of target preview frames based on the second acquisition time and the first timestamp;
and detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
In some embodiments, processor 380 may also execute instructions to:
and if the preset characteristic information exists in at least one preview frame in the target preview frame set, continuously using the first camera module to shoot.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above detailed description is given to a shooting method, a shooting device, a shooting storage medium, and a mobile terminal provided in the embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the technical solutions and core ideas of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A shooting method is applied to a mobile terminal with a first camera module and a second camera module which have different shooting directions, and is characterized by comprising the following steps:
receiving a shooting instruction, starting a first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets;
if the current shooting mode is detected to be switched to a preset shooting mode, determining a target preview frame set from the multiple groups of preview frame sets;
determining whether at least one preview frame in the target preview frame set has preset characteristic information;
and if the preset characteristic information does not exist in each preview frame in the target preview frame set, switching the first camera module into a second camera module to shoot.
2. The shooting method according to claim 1, wherein the step of acquiring a plurality of sets of preview frames comprises:
recording a first timestamp entering the shooting preview mode, and acquiring a plurality of groups of preview frame sets according to a preset time period;
the step of determining a target preview frame set from the plurality of groups of preview frame sets comprises:
determining first acquisition time for acquiring each group of preview frame sets, and sequentially comparing the first acquisition time of each group of preview frame sets according to the first time stamp;
and determining the preview frame set with the longest first acquisition time from the first time stamp as a target preview frame set.
3. The shooting method according to claim 2, wherein the step of determining whether at least one preview frame in the target preview frame set has preset feature information comprises:
determining a second acquisition time of each preview frame in the target preview frame set;
determining a detection priority of each preview frame in the set of target preview frames based on the second acquisition time and the first timestamp;
and detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
4. The photographing method according to claim 1, wherein the method further comprises:
and if the preset characteristic information exists in at least one preview frame in the target preview frame set, continuously using the first camera module to shoot.
5. The photographing method according to any one of claims 1 to 4, wherein the preset feature information is face feature information.
6. The utility model provides a shoot device, is applied to and possesses the first module of making a video recording and the second of making a video recording module that the direction is different including shooting in the mobile terminal, its characterized in that includes:
the acquisition unit is used for receiving a shooting instruction, starting the first camera module to enter a shooting preview mode, and acquiring a plurality of groups of preview frame sets;
the first determining unit is used for determining a target preview frame set from the plurality of groups of preview frame sets if the current shooting mode is detected to be switched to a preset shooting mode;
a second determining unit, configured to determine whether at least one preview frame in the target preview frame set has preset feature information;
and the switching unit is used for switching the first camera module into a second camera module for shooting if the preset characteristic information does not exist in each preview frame in the target preview frame set.
7. The imaging apparatus according to claim 6, wherein the acquisition unit includes:
the recording subunit is used for recording a first timestamp for entering the shooting preview mode and acquiring a plurality of groups of preview frame sets according to a preset time period;
the first determination unit includes:
the comparison unit is used for determining first acquisition time for acquiring each group of preview frame sets and sequentially comparing the first acquisition time of each group of preview frame sets according to the first time stamp;
and the first determining subunit is used for determining the preview frame set with the first acquisition time being longest from the first timestamp as the target preview frame set.
8. The photographing apparatus according to claim 7, wherein the second determination unit includes:
the second determining subunit is configured to determine a second obtaining time of each preview frame in the target preview frame set;
a third determining subunit, configured to determine, based on the second obtaining time and the first timestamp, a detection priority of each preview frame in the target preview frame set;
and the detection subunit is used for detecting whether at least one preview frame in the target preview frame set has preset characteristic information according to the detection priority.
9. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, which when run on a computer causes the computer to execute the photographing method according to any one of claims 1 to 5.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the memory having stored therein a computer program, the processor being configured to execute the photographing method according to any one of claims 1 to 5 by calling the computer program stored in the memory.
CN202010717316.8A 2020-07-23 2020-07-23 Shooting method, shooting device, storage medium and mobile terminal Pending CN111787228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010717316.8A CN111787228A (en) 2020-07-23 2020-07-23 Shooting method, shooting device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010717316.8A CN111787228A (en) 2020-07-23 2020-07-23 Shooting method, shooting device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN111787228A true CN111787228A (en) 2020-10-16

Family

ID=72763330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010717316.8A Pending CN111787228A (en) 2020-07-23 2020-07-23 Shooting method, shooting device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111787228A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770052A (en) * 2021-01-04 2021-05-07 重庆紫光华山智安科技有限公司 Snapshot data determination method and device, computer equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051795A (en) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 Method for switching front camera and rear camera of mobile terminal and mobile terminal
US20150319364A1 (en) * 2012-05-22 2015-11-05 Zte Corporation Method and device for switching between double cameras
CN106454139A (en) * 2016-12-22 2017-02-22 广东欧珀移动通信有限公司 Shooting method and mobile terminal
CN106874044A (en) * 2017-01-20 2017-06-20 维沃移动通信有限公司 A kind of camera changing method and mobile terminal
CN107465856A (en) * 2017-08-31 2017-12-12 广东欧珀移动通信有限公司 Image capture method, device and terminal device
CN108197554A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 A kind of camera starts method, mobile terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150319364A1 (en) * 2012-05-22 2015-11-05 Zte Corporation Method and device for switching between double cameras
CN103051795A (en) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 Method for switching front camera and rear camera of mobile terminal and mobile terminal
CN106454139A (en) * 2016-12-22 2017-02-22 广东欧珀移动通信有限公司 Shooting method and mobile terminal
CN106874044A (en) * 2017-01-20 2017-06-20 维沃移动通信有限公司 A kind of camera changing method and mobile terminal
CN107465856A (en) * 2017-08-31 2017-12-12 广东欧珀移动通信有限公司 Image capture method, device and terminal device
CN108197554A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 A kind of camera starts method, mobile terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770052A (en) * 2021-01-04 2021-05-07 重庆紫光华山智安科技有限公司 Snapshot data determination method and device, computer equipment and readable storage medium
CN112770052B (en) * 2021-01-04 2022-11-22 重庆紫光华山智安科技有限公司 Snapshot data determination method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109597556B (en) Screen capturing method and terminal
CN108234875B (en) Shooting display method and device, mobile terminal and storage medium
US11363196B2 (en) Image selection method and related product
CN111176602B (en) Picture display method and device, storage medium and intelligent device
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
CN110990341A (en) Method, device, electronic equipment and medium for clearing data
CN111131612B (en) Screen color temperature control method and device, storage medium and mobile terminal
CN105635553B (en) Image shooting method and device
CN110020690B (en) Cheating behavior detection method, device and storage medium
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN105513098B (en) Image processing method and device
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN111372003A (en) Camera switching method and device and terminal
CN110855896A (en) Shooting method and device, storage medium and terminal equipment
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN114140655A (en) Image classification method and device, storage medium and electronic equipment
CN111064886B (en) Shooting method of terminal equipment, terminal equipment and storage medium
CN109344284B (en) Song file playing method, device, equipment and storage medium
CN108924292B (en) Terminal control method, device, mobile terminal and storage medium
CN112468870A (en) Video playing method, device, equipment and storage medium
CN111464829A (en) Method, device and equipment for switching media data and storage medium
CN110830723B (en) Shooting method, shooting device, storage medium and mobile terminal
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal

Legal Events

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

Application publication date: 20201016

RJ01 Rejection of invention patent application after publication