CN110493503B - Image acquisition method, electronic equipment and storage medium - Google Patents

Image acquisition method, electronic equipment and storage medium Download PDF

Info

Publication number
CN110493503B
CN110493503B CN201910793967.2A CN201910793967A CN110493503B CN 110493503 B CN110493503 B CN 110493503B CN 201910793967 A CN201910793967 A CN 201910793967A CN 110493503 B CN110493503 B CN 110493503B
Authority
CN
China
Prior art keywords
information
rear camera
image
electronic equipment
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910793967.2A
Other languages
Chinese (zh)
Other versions
CN110493503A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910793967.2A priority Critical patent/CN110493503B/en
Publication of CN110493503A publication Critical patent/CN110493503A/en
Application granted granted Critical
Publication of CN110493503B publication Critical patent/CN110493503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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
    • 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/67Focus control based on electronic image sensor signals

Abstract

The embodiment of the application discloses an image acquisition method, which comprises the following steps: acquiring a first image associated with an operator of the electronic equipment through a front camera of the electronic equipment, and acquiring first information associated with the action of the operator in the first image; and if the first information accords with the first preset information, controlling a rear camera of the electronic equipment to acquire images. The embodiment of the application also discloses an electronic device and a storage medium.

Description

Image acquisition method, electronic equipment and storage medium
Technical Field
The present application relates to, but not limited to, the field of image capturing technologies, and in particular, to an image capturing method, an electronic device, and a storage medium.
Background
The electronic equipment industry is developed vigorously recently, the related technology is more and more diverse, and diversified electronic equipment provides great convenience for the life of people. The electronic equipment with the camera function enables people to take photos at will to be the best mode for recording the life infusion.
At present, in the process of image acquisition by using electronic equipment, an audio auxiliary shooting mode, a mode of detecting a shooting interface of a shot object or a mode of auxiliary shooting by using external equipment are mostly adopted for image acquisition. However, the image acquisition mode has the problems of high operation complexity and poor imaging effect.
Content of application
The embodiment of the application expects to provide an image acquisition method, electronic equipment and storage medium, has solved the operation complexity height that exists in the image acquisition process, and the poor problem of formation of image effect, has reduced the operation complexity of image acquisition effectively, has optimized the formation of image effect, has improved electronic equipment's intelligent degree.
The technical scheme of the application is realized as follows:
a method of image acquisition, the method comprising:
acquiring a first image associated with an operator of electronic equipment through a front camera of the electronic equipment, and acquiring first information associated with the action of the operator in the first image;
and if the first information accords with first preset information, controlling a rear camera of the electronic equipment to acquire images.
Optionally, before the first image associated with the operator of the electronic device is acquired by the front camera of the electronic device, the method further includes:
if the rear camera is in an open state, displaying a first preview interface corresponding to the rear camera on a display screen of the electronic equipment;
acquiring second information associated with the first preview interface;
and if the second information accords with second preset information, starting the front camera.
Optionally, the first preview interface includes a first control for opening the front-facing camera, and if the second information matches second preset information, opening the front-facing camera includes:
and if the second information represents the touch operation aiming at the first control, determining that the second information accords with the second preset information, and starting the front camera.
Optionally, if the second information conforms to second preset information, the front camera is turned on, including:
and if the second information represents that the focal length corresponding to the first preview interface accords with a preset focal length, starting the front camera.
Optionally, if the second information conforms to second preset information, after the front-facing camera is turned on, the method further includes:
and displaying a second preview interface corresponding to the rear camera on a display screen of the electronic equipment.
Optionally, the second preview interface includes a second control for triggering the rear camera to perform image acquisition, and after controlling the rear camera of the electronic device to perform image acquisition if the first information matches first preset information, the method further includes:
and acquiring touch operation aiming at the second control, and controlling the rear camera to acquire images.
Optionally, if the first information conforms to first preset information, controlling a rear camera of the electronic device to perform image acquisition, including:
acquiring first characteristic information in the first information; wherein the first feature information comprises gesture motion feature information and/or facial motion feature information;
and if the first characteristic information accords with preset characteristic information, controlling the rear camera to acquire images.
Optionally, the acquiring the first characteristic information in the first information includes:
acquiring each second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of second characteristic information; wherein the second feature information comprises the gesture motion feature information and/or the facial motion feature information; the first feature information includes the plurality of second feature information;
correspondingly, if first characteristic information accords with preset characteristic information, control rearmounted camera carries out image acquisition, include:
if a preset number of second characteristic information in the plurality of second characteristic information accords with the preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to collect images.
An electronic device, the electronic device comprising:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a first image associated with an operator of electronic equipment through a front camera of the electronic equipment and acquiring first information associated with the action of the operator in the first image;
and the first processing unit is used for controlling a rear camera of the electronic equipment to acquire an image if the first information accords with first preset information.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the image acquisition program stored in the memory so as to realize the steps of the image acquisition method.
A storage medium storing one or more programs executable by one or more processors to implement the steps of the image acquisition method described above.
According to the image acquisition method, the electronic equipment and the storage medium, a front camera of the electronic equipment is used for acquiring a first image associated with an operator of the electronic equipment, and first information associated with the action of the operator in the first image is acquired; if the first information accords with the first preset information, controlling a rear camera of the electronic equipment to acquire an image; that is to say, in the embodiment of the application, when the electronic device determines that the first information associated with the action of the operator accords with the first preset information in the image acquired by the front camera, the rear camera is triggered to acquire the image, so that the operation complexity of image acquisition is reduced, an external auxiliary device does not need to be added, and the imaging effect and the intelligent degree of the electronic device are improved.
Drawings
Fig. 1 is a schematic flowchart of an image acquisition method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another image acquisition method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another image acquisition method provided in an embodiment of the present application;
fig. 4 is a schematic view of an application scenario of an image acquisition method according to an embodiment of the present application;
fig. 5 is a schematic view of another application scenario of an image acquisition method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an image capturing method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device provided in 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.
In the related art, the electronic device with the camera function collects images by adopting three image collection modes, namely a first audio auxiliary shooting mode, namely, a specific word such as an eggplant is spoken to trigger image collection during image collection; the second way of detecting the shooting interface of the shot object is to make a specific motion, such as a V gesture, by the shot object in the shooting interface to trigger image acquisition; and the third mode of auxiliary shooting of the external equipment is that the electronic equipment is externally connected with a shutter, and image acquisition is triggered when the operation aiming at the external shutter is detected.
However, the first audio auxiliary shooting mode is limited by the audio environment during image acquisition, is inconvenient to use in a quiet environment, and cannot effectively trigger image acquisition in a noisy environment, and the mode is complex to implement and operate; the second mode is to detect the shooting interface of the shot object, the shooting interface is bound with the shot object with limited imaging effect, and the shot object is shot by the shot object; the third mode of auxiliary shooting by external equipment requires external auxiliary equipment, which increases the cost and the operation complexity of the photographer. Therefore, reducing the operation complexity of image acquisition and improving the imaging effect become problems to be solved urgently in the image acquisition process.
Based on the foregoing, an embodiment of the present application provides an image capturing method applied to an electronic device having a front camera and a rear camera, and referring to fig. 1, the method includes the following steps:
step 101, acquiring a first image associated with an operator of the electronic device through a front camera of the electronic device, and acquiring first information associated with the action of the operator in the first image.
In the embodiment of the present application, the electronic device may include a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a camera, a wearable device, and a fixed terminal device such as a desktop computer. It can be understood that the viewing directions of the rear camera and the front camera of the electronic device are different, that is, the viewing direction of the rear camera and the viewing direction of the front camera form a certain angle; for example, the viewing direction of the rear camera and the viewing direction of the front camera are 180 degrees, and the viewing direction of the rear camera and the viewing direction of the front camera are opposite.
In the embodiment of the application, the first image comprises an image which is acquired by a front camera in real time and is associated with an operator of the electronic equipment, namely a photographer; the first information includes information associated with an action of an operator. Illustratively, the first information includes facial motion information and/or gesture motion information of an operator of the electronic device; of course, the first information may also include head motion information, such as nodding and shaking, and the content of the first information is not specifically limited in this embodiment of the application.
And 102, if the first information accords with first preset information, controlling a rear camera of the electronic equipment to acquire an image.
In the embodiment of the application, the first preset information and the first information have the same information type; for example, when the first information includes facial motion information and/or gesture motion information of an operator of the electronic device, the first preset information includes preset facial motion information and/or preset gesture motion information. Here, the first information conforming to the first preset information may represent that the first information is identical to the first preset information. And controlling the rear camera to acquire images, wherein the control can comprise controlling the rear camera to photograph or make a video and the like.
It should be noted that, the electronic device may trigger the rear camera to perform image acquisition when it is determined that the first information conforms to the first preset information; that is to say, under the condition that electronic equipment has opened rear camera and front camera, electronic equipment can acquire the first information that accords with first preset information based on the image acquisition of front camera, triggers rear camera and carries out image acquisition operation, and the operator of this in-process electronic equipment need not to change the gesture of holding to electronic equipment, so, has reduced the shake of electronic equipment among the image acquisition process effectively, has reduced the complexity of operation, has improved the formation of image effect simultaneously.
In the embodiment of the application, the opening time of the front camera and the rear camera of the electronic equipment can be flexibly controlled; for example, the electronic device may turn on the front camera and the rear camera at the same time; for example, the electronic device may turn on the front camera first and then turn on the rear camera; for another example, the electronic device may turn on the rear camera first and then turn on the front camera.
In a first implementation scenario, the electronic device may acquire a first image through the front camera under the condition that the front camera and the rear camera are simultaneously turned on, acquire first information associated with an action of an operator in the first image, and control the rear camera to acquire the image under the condition that the first information conforms to first preset information.
In a second implementation scenario, when a front camera of an electronic device is in an open state, a rear camera of the electronic device is opened, and then a first image is acquired through the front camera, first information associated with an action of an operator in the first image is acquired, and then the rear camera is controlled to acquire the image under the condition that the first information conforms to first preset information.
In a third implementation scenario, under the condition that a rear camera of an electronic device is in an open state, the front camera of the electronic device is opened, a first image is collected through the front camera, first information related to the action of an operator in the first image is acquired, and then the rear camera is controlled to collect the image under the condition that the first information accords with first preset information. Here, for example, when the viewing direction of the rear camera is opposite to the viewing direction of the front camera, the electronic device turns on the front camera while an operator of the electronic device, i.e., a photographer, uses the rear camera of the electronic device to capture a beautiful scene, and at this time, the viewing direction of the front camera faces the photographer, so that the first image can be captured, facial movement information of the photographer and the like can be acquired based on the first image, and the rear camera is controlled to capture the image when the facial movement feature information conforms to the first preset information.
The image acquisition method provided by the embodiment of the application acquires a first image associated with an operator of the electronic equipment through a front camera of the electronic equipment, and acquires first information associated with the action of the operator in the first image; if the first information accords with the first preset information, controlling a rear camera of the electronic equipment to acquire an image; that is to say, in the embodiment of the application, when the electronic device acquires the first information meeting the first preset information based on the image acquired by the front camera, the rear camera is triggered to acquire the image, so that the operation complexity of image acquisition is reduced, an external auxiliary device does not need to be added, and the imaging effect and the intelligent degree of the electronic device are improved.
Based on the foregoing embodiments, an embodiment of the present application provides an image capturing method, which is applied to an electronic device having a front camera and a rear camera, and as shown in fig. 2, the method includes the following steps:
step 201, if the rear camera of the electronic device is in an open state, displaying a first preview interface corresponding to the rear camera on a display screen of the electronic device.
In this embodiment of the application, the first preview interface refers to a shooting interface of the rear camera in an open state of the rear camera. In practical application, under the condition that the electronic equipment starts the rear camera of the electronic equipment, a first preview interface corresponding to the rear camera is displayed on a display screen of the electronic equipment, so that an operator of the electronic equipment can determine final image acquisition content according to the content of the first preview interface.
Step 202, second information associated with the first preview interface is obtained.
In the embodiment of the application, the second information has an association relation with the first preview interface; for example, the second information may include information related to an object displayed in the first preview interface; the second information may also include information related to imaging parameters of the first preview interface. It is to be understood that, when the second information includes information related to the imaging parameters of the first preview interface, the second information may be displayed in the first preview interface as one of the objects displayed in the first preview interface.
And 203, if the second information accords with second preset information, starting the front camera.
In the embodiment of the application, the second preset information can be understood as a trigger condition for starting the front camera; the second information is the same as the second preset information in information type. Here, the second information may represent that the second information is the same as the second preset information in conformity with the second preset information. That is to say, under the condition that the electronic equipment opens the rear camera and the display screen of the electronic equipment displays the first preview interface corresponding to the rear camera, the detected second information associated with the first preview interface can be utilized, the second information conforms to the second preset information, and the opening of the front camera is triggered, so that the flexible control of the camera of the electronic equipment is realized, and meanwhile, the intelligent degree of the electronic equipment is improved.
In this embodiment of the application, if the second information matches the second preset information, the front camera is turned on in step 203, which can be implemented in the following two ways:
in a first manner, the first preview interface includes a first control for opening the front camera, and at this time, if the second information represents the touch operation for the first control, it is determined that the second information conforms to the second preset information, and the front camera is opened.
Here, the second information may be understood as information related to an object displayed in the first preview interface, such as the first control; further, the second information may be understood as touch operation information related to the first control displayed in the first preview interface.
In the embodiment of the application, when the electronic device opens the rear camera, an operator of the electronic device may perform touch operation on a first control in a first preview interface displayed on a display screen, and then the electronic device acquires the touch operation for the first control to generate second information, and then determines that the second information conforms to second preset information, and opens the front camera.
In practical application, the first control can be displayed on the first preview interface in the form of a specific identifier; the specific mark may include a micro expression mark such as a smiley face, a slide button, and the like, which is not particularly limited in this application.
When the rear camera is used, the front camera is used to acquire facial motion information of an operator of the electronic device, namely a photographer, wherein the facial motion information can be called micro expression, and the rear camera is controlled, so that shake in the shooting process of the rear camera can be reduced, and the imaging effect can be improved.
Illustratively, micro-expressions can be divided into two categories: the first type is default setting of the electronic equipment before leaving factory, such as smiling, blinking, beeping mouth and the like; the second type is the expression which is input by the user in a self-defining way. The second type of expression can be subjected to feature matching by acquiring images on a preview interface through a specific algorithm, and after the electronic equipment determines that the images are matched, the electronic equipment outputs a corresponding rear camera control command.
In the second mode, if the focal length corresponding to the second information representation first preview interface accords with the preset focal length, the front camera is started.
Here, the second information may be understood as information related to an imaging parameter of the first preview interface, such as a focal length; of course, at this time, the focal length corresponding to the first preview interface may be displayed in the first preview interface as one of the objects displayed in the first preview interface.
In the embodiment of the application, under the condition that the rear camera is turned on by the electronic equipment, an operator of the electronic equipment can shoot a long-distance object and a short-distance object through the rear camera; correspondingly, the focal length corresponding to the distant object is greater than the focal length corresponding to the close object. Here, the preset focal length may be understood as a tele focal length.
In practical application, when the electronic equipment starts the rear camera and an operator of the electronic equipment can shoot a remote object such as a person through the rear camera, the focal length corresponding to the first preview interface is a tele focal length and accords with a preset focal length, and the front camera is triggered to start, so that the operator can be ensured to use first information which accords with the first preset information and is collected by the front camera to trigger the rear camera to collect images under the condition that the holding posture of the electronic equipment is not changed; therefore, the shake of the electronic equipment in the image acquisition process is effectively reduced, the complexity of operation is reduced, and the imaging effect is improved.
And 204, displaying a second preview interface corresponding to the rear camera on a display screen of the electronic equipment.
And the second preview interface comprises a second control for triggering the rear camera to acquire images.
In the embodiment of the application, when the rear camera is turned on, and before and after the front camera is turned on, the viewing interface of the rear camera is the same, that is, the viewing angle of the rear camera is not changed, then, the second preview interface and the first preview interface are the same interface, and the first preview interface also includes the second control.
In some embodiments of the present application, when the rear camera is turned on, and before and after the front camera is turned on, the viewing interface of the rear camera is different, that is, the viewing angle of the rear camera is changed, then, the second preview interface is different from the first preview interface, and at this time, the first preview interface may still include the second control.
It should be noted that the electronic device in the embodiment of the present application may support more than two paths of data processing, and therefore, the electronic device may also turn on the front camera under the condition that the rear camera is turned on; however, in the embodiment of the present application, under the condition that the front camera and the rear camera are simultaneously turned on, only the second preview interface corresponding to the rear camera may be displayed on the display screen of the electronic device, that is, the preview interface corresponding to the front camera is not displayed on the display screen, so that power consumption of the electronic device may be saved.
Step 205, acquiring a first image associated with an operator of the electronic device through the front-facing camera, and acquiring first information associated with the action of the operator in the first image.
And step 206, if the first information accords with the first preset information, controlling the rear camera to acquire the image.
In some embodiments of the present application, in a scenario where the electronic device controls the rear camera to perform image acquisition through the first information associated with the action of the operator in the image acquired by the front camera, the control of the rear camera may be further implemented through the following steps,
and step 207, acquiring touch operation aiming at the second control, and controlling the rear camera to acquire images.
That is to say, when the rear camera of the electronic device is in an open state and the front camera of the electronic device is opened, the electronic device can control the rear camera based on information associated with the action of the operator in the image collected by the front camera in real time and can also control the rear camera based on the touch operation of the operator on the second control in the process of controlling the rear camera to collect the image through the first information; that is to say, in the image acquired by the electronic device using the front-facing camera, in the scene where the first information associated with the action of the operator controls the rear-facing camera to acquire the image, each control in the second preview interface corresponding to the rear-facing camera is in an activated state, and still can be used to trigger the rear-facing camera to execute the function of each control. It should be noted that, if the electronic device detects the first information conforming to the first preset information and the touch operation for the second control at the same time, the electronic device responds to the touch operation and controls the rear camera to perform image acquisition, so that the rear camera is accurately controlled.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides an image capturing method, which is applied to an electronic device having a front camera and a rear camera, and as shown in fig. 3, the method includes the following steps:
step 301, acquiring a first image associated with an operator of the electronic device through a front camera of the electronic device, and acquiring first information associated with an action of the operator in the first image.
Step 302, first characteristic information in the first information is obtained.
The first feature information comprises gesture action feature information and/or facial action feature information.
In the embodiment of the application, the first information may include information associated with the action of the operator in one image acquired by the front camera at the current time; that is, in one implementation, the electronic device may control the rear camera to perform image capturing based on information in one image captured by the front camera at a certain time.
In the embodiment of the application, the electronic equipment can flexibly select the first characteristic information under different image acquisition scenes.
For example, in an image capturing scenario, as shown in fig. 4 and 5, if an operator of the electronic device, that is, a photographer holds the electronic device with both hands, for example, a camera to capture a scene, the first feature information includes expression feature information, such as a smiling expression 41 in fig. 4 and a blinking expression 51 in fig. 5, at this time, the photographer does not need to make fingers to shoot or record a video, so that the shooting posture can be maintained more stably, a better imaging effect can be achieved, and the effect is particularly obvious in a high-power zoom situation, that is, in a long-focus scene.
For example, in another image capturing scenario, if an operator of the electronic device holds the electronic device with one hand, it is not convenient to click a second control, such as a photographing key or a video recording key, in a second preview interface on the display screen, and the first feature information includes expression feature information and/or gesture feature information, so that it is avoided that a hand not holding the electronic device is moved by a large margin to click the display screen, which results in a decrease in imaging quality, and meanwhile, accurate control of the rear camera is achieved.
For example, in another image capturing scenario, if an operator of the electronic device uses a stand, that is, the operator is a certain distance away from the electronic device, the first feature information includes expression feature information and/or gesture feature information, so that the operator can control the rear camera to capture an image through the first feature information in the image captured by the front camera without touching the electronic device, thereby effectively freeing both hands, ensuring stability of the photographing device, and improving imaging effect.
It should be noted that, in the process of image acquisition by an operator holding the electronic device, by the image acquisition method provided by the embodiment of the present application, the rear camera is triggered to perform image acquisition based on the micro-expression acquired by the front camera, and the operation of capturing in the zoom state can be realized, so that the shake of photographing in the zoom process is reduced.
In some embodiments of the application, the first image may further include a plurality of sub-images corresponding to a plurality of moments acquired by a front-facing camera in the target time period, and the step 302 of acquiring the first feature information in the first information may be implemented by: and acquiring each second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of second characteristic information.
The second feature information comprises gesture feature information and/or expression feature information. The first characteristic information includes a plurality of second characteristic information.
Here, the first image may further include a plurality of sub-images acquired by the front camera in the target time period and corresponding to different times in the plurality of times, that is, the first image may be understood as an image set including a plurality of frames of sub-images. That is, in another implementation manner, the electronic device may control the rear camera to perform image acquisition based on a plurality of sub-images acquired by the front camera at a plurality of times.
In the embodiment of the present application, the plurality of sub-images may be a plurality of multi-frame sub-images at different time instants extracted from a video captured in a target time period.
And 303, controlling the rear camera to acquire an image if the first characteristic information accords with preset characteristic information.
In this embodiment of the application, in step 303, if the first feature information matches the preset feature information, the rear camera is controlled to perform image acquisition, which may be implemented by the following steps: and if a preset number of second characteristic information in the plurality of second characteristic information accords with the preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to acquire images.
Here, the preset number may be less than or equal to a total number of the plurality of second characteristic information.
The electronic equipment compares the plurality of second feature information with preset feature information under the condition that the plurality of second feature information are obtained, and if a preset number of second feature information in the plurality of second feature information are determined to accord with the preset feature information, the first feature information is determined to accord with the preset feature information, so that the rear camera is controlled to collect images; therefore, the triggering of the shooting function of the rear camera by the misoperation of an operator of the electronic equipment is avoided, the misjudgment of the electronic equipment is reduced, and the accuracy of image acquisition of the electronic equipment by controlling the rear camera through the information in the image acquired by the front camera is improved.
In the embodiment of the application, if the preset number is smaller than the total number of the plurality of second feature information, in the process of comparing the plurality of second feature information with the preset feature information when the electronic device acquires the plurality of second feature information, once the preset number of second feature information accords with the preset feature information, the judgment of the second feature information which is not compared with the preset feature information in the plurality of second feature information is stopped, so that the first feature information accords with the preset feature information, and the rear camera is controlled to perform image acquisition; thus, the processing efficiency of the electronic equipment is improved.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiment, taking the micro expression, which is facial motion feature information acquired by a front camera of an electronic device, as an example to control a rear camera of the electronic device to perform image acquisition, an image acquisition method provided in an embodiment of the present application is further described, with reference to fig. 6, the method includes the following steps:
step 601, the electronic equipment opens the rear camera.
Step 602, under the condition that the electronic equipment opens the rear camera, the electronic equipment detects whether auxiliary shooting is started; if the electronic device determines that the auxiliary shooting is started, executing step 603; if the electronic device determines that the auxiliary photographing is not turned on, step 604 is performed. Here, the auxiliary shooting may be understood as micro-expression auxiliary shooting.
And step 603, the electronic equipment runs the front camera.
Here, when the electronic device turns on the rear camera, if the micro-expression auxiliary photographing function is selected, the electronic device synchronously turns on the rear camera, that is, the front camera is operated. Further, the electronic equipment acquires an image including the micro expression of the operator through the front camera.
And step 604, the electronic equipment displays a second preview interface corresponding to the rear camera on the display screen.
And step 605, performing expression matching on the micro expression in the image acquired by the front camera and the preset expression characteristic by the electronic equipment under the condition that the micro expression assisted shooting is started.
In the scene, when an operator touches a second control in a second preview interface, the rear camera responds to the touch operation, and normally framing and photographing are carried out; of course, in this state, when the micro expression in the image acquired by the front camera matches the preset expression feature, the rear camera may also perform the image acquisition operation.
Step 606, under the condition that the micro-expression auxiliary shooting is not started, the electronic device detects whether touch operation aiming at a second control in a second preview interface exists.
Step 607, triggering the rear camera to take a picture or make a video under the condition that the expression matching is successful; or triggering the rear camera to take a picture or pick up a picture under the condition that the touch operation aiming at the second control in the second preview interface is detected.
In the embodiment of the application, the electronic equipment can support more than two paths of data processing, so that the electronic equipment can start the front camera under the condition of starting the rear camera; however, in the embodiment of the present application, under the condition that the front camera and the rear camera are simultaneously turned on, only the second preview interface corresponding to the rear camera may be displayed on the display screen of the electronic device, that is, the preview interface corresponding to the front camera is not displayed on the display screen, so that power consumption of the electronic device may be saved. Meanwhile, the auxiliary shooting function and the normal shooting function of the electronic equipment can be overlapped in state, namely the auxiliary shooting does not influence the control of the rear camera by utilizing the second preview interface. The process of controlling shooting does not need physical contact, so that the vibration in the shooting process can be effectively reduced; in addition, the electronic equipment does not need to be held by an operator in a switching manner in the shooting process, the stability of the electronic equipment can be effectively kept, and the imaging effect is improved.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which may be applied to an image capturing method provided in the embodiments corresponding to fig. 1 to 3, and as shown in fig. 7, the electronic device 7 includes:
the acquiring unit 71 is used for acquiring a first image associated with an operator of the electronic equipment through the front camera and acquiring first information associated with the action of the operator in the first image;
and the first processing unit 72 is configured to control the rear camera to perform image acquisition if the first information matches the first preset information.
In other embodiments of the present application, the electronic device 7 further includes:
the second processing unit is used for displaying a first preview interface corresponding to the rear camera on a display screen of the electronic equipment if the rear camera of the electronic equipment is in an open state;
acquiring second information associated with the first preview interface;
and if the second information accords with second preset information, starting the front camera.
In other embodiments of the present application, the first preview interface includes a first control for turning on the front-facing camera, and the second processing unit is further configured to determine that the second information conforms to second preset information and turn on the front-facing camera if the second information represents a touch operation for the first control.
In other embodiments of the application, the second processing unit is further configured to start the front-facing camera if the second information indicates that the focal length corresponding to the first preview interface meets a preset focal length.
In other embodiments of the present application, the second processing unit is further configured to display a second preview interface corresponding to the rear camera on the display screen of the electronic device.
In other embodiments of the application, the second preview interface includes a second control for triggering the rear camera to perform image acquisition, and the electronic device 7 further includes a third processing unit for acquiring a touch operation for the second control and controlling the rear camera of the electronic device to perform image acquisition.
In other embodiments of the present application, the first processing unit 72 is further configured to obtain first feature information in the first information; the first feature information comprises gesture action feature information and/or facial action feature information;
and if the first characteristic information accords with the preset characteristic information, controlling the rear camera to acquire the image.
In other embodiments of the present application, the first image includes a plurality of sub-images corresponding to a plurality of times acquired by the front-end camera in the target time period, and the first processing unit 72 is further configured to acquire each second feature information in each sub-image in the plurality of sub-images to obtain a plurality of second feature information; the second feature information comprises gesture action feature information and/or facial action feature information; the first characteristic information includes a plurality of second characteristic information;
and if a preset number of second characteristic information in the plurality of second characteristic information accords with the preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to acquire images.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the image acquisition method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which may be applied to an image capturing method provided in the embodiments corresponding to fig. 1 to 3, and as shown in fig. 8, the electronic device 8 (the electronic device 8 in fig. 8 corresponds to the electronic device 7 in fig. 7) includes: a processor 81, a memory 82, and a communication bus 83, wherein:
the communication bus 83 is used to realize a communication connection between the processor 81 and the memory 82.
The processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
acquiring a first image associated with an operator of the electronic equipment through a front camera of the electronic equipment, and acquiring first information associated with the action of the operator in the first image;
and if the first information accords with the first preset information, controlling a rear camera of the electronic equipment to acquire images.
In other embodiments of the present application, the processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
if the rear camera of the electronic equipment is in an open state, displaying a first preview interface corresponding to the rear camera on a display screen of the electronic equipment;
acquiring second information associated with the first preview interface;
and if the second information accords with second preset information, starting the front camera.
In other embodiments of the present application, the first preview interface includes a first control for turning on the front camera, and the processor 81 is configured to execute the image capture program stored in the memory 82 to implement the following steps:
and if the second information represents the touch operation aiming at the first control, determining that the second information accords with second preset information, and starting the front camera.
In other embodiments of the present application, the processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
and if the second information represents that the focal length corresponding to the first preview interface accords with the preset focal length, starting the front camera.
In other embodiments of the present application, the processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
and displaying a second preview interface corresponding to the rear camera on a display screen of the electronic equipment.
In other embodiments of the present application, the second preview interface includes a second control for triggering the rear camera to perform image capture, and the processor 81 is configured to execute the image capture program stored in the memory 82 to implement the following steps:
and acquiring touch operation aiming at the second control, and controlling the rear camera to acquire images.
In other embodiments of the present application, the processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
acquiring first characteristic information in the first information; the first feature information comprises gesture action feature information and/or facial action feature information;
and if the first characteristic information accords with the preset characteristic information, controlling the rear camera to acquire the image.
In other embodiments of the present application, the first image includes a plurality of sub-images corresponding to a plurality of times acquired by the front camera in the target time period, and the processor 81 is configured to execute an image acquisition program stored in the memory 82 to implement the following steps:
acquiring each second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of second characteristic information; the second feature information comprises gesture action feature information and/or facial action feature information; the first characteristic information includes a plurality of second characteristic information;
correspondingly, if first characteristic information accords with preset characteristic information, control rear camera and carry out image acquisition, include:
and if a preset number of second characteristic information in the plurality of second characteristic information accords with the preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to acquire images.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the image acquisition method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
Based on the foregoing embodiments, embodiments of the application provide a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
acquiring a first image associated with an operator of the electronic equipment through a front camera of the electronic equipment, and acquiring first information associated with the action of the operator in the first image;
and if the first information accords with the first preset information, controlling a rear camera of the electronic equipment to acquire images.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the rear camera of the electronic equipment is in an open state, displaying a first preview interface corresponding to the rear camera on a display screen of the electronic equipment;
acquiring second information associated with the first preview interface;
and if the second information accords with second preset information, starting the front camera.
In other embodiments of the present application, the first preview interface includes a first control for opening the front camera, the one or more programs are executable by the one or more processors, and the following steps are further implemented:
and if the second information represents the touch operation aiming at the first control, determining that the second information accords with second preset information, and starting the front camera.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and if the second information represents that the focal length corresponding to the first preview interface accords with the preset focal length, starting the front camera.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and displaying a second preview interface corresponding to the rear camera on a display screen of the electronic equipment.
In other embodiments of the present application, the second preview interface includes a second control for triggering the rear camera to perform image acquisition, and the one or more programs are executable by the one or more processors and further implement the following steps:
and acquiring touch operation aiming at the second control, and controlling the rear camera to acquire images.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring first characteristic information in the first information; the first feature information comprises gesture action feature information and/or facial action feature information;
and if the first characteristic information accords with the preset characteristic information, controlling the rear camera to acquire the image.
In other embodiments of the present application, the first image includes a plurality of sub-images corresponding to a plurality of times acquired by a front camera in a target time period, and the one or more programs are executable by the one or more processors and further implement the following steps:
acquiring each second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of second characteristic information; the second feature information comprises gesture action feature information and/or facial action feature information; the first characteristic information includes a plurality of second characteristic information;
correspondingly, if first characteristic information accords with preset characteristic information, control rear camera and carry out image acquisition, include:
and if a preset number of second characteristic information in the plurality of second characteristic information accords with the preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to acquire images.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the image acquisition method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (7)

1. An image acquisition method, characterized in that the method comprises:
if a rear camera of the electronic equipment is in an open state, displaying a first preview interface corresponding to the rear camera on a display screen of the electronic equipment;
acquiring second information associated with the first preview interface;
if the second information represents that the focal length corresponding to the first preview interface accords with a preset focal length, starting a front camera of the electronic equipment;
acquiring a first image associated with an operator of the electronic equipment through the front camera, and acquiring first information associated with the action of the operator in the first image; the first image comprises a plurality of sub-images corresponding to a plurality of moments acquired by the front camera in a target time period;
acquiring each second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of second characteristic information; wherein each second feature information includes facial motion feature information; the first feature information includes the plurality of second feature information;
and when the rear camera is in a zooming state, if a preset number of second characteristic information in the plurality of second characteristic information accords with preset characteristic information, determining that the first characteristic information accords with the preset characteristic information, and controlling the rear camera to acquire images.
2. The method of claim 1, wherein the first preview interface comprises a first control for opening the front facing camera.
3. The method of claim 2, further comprising:
and displaying a second preview interface corresponding to the rear camera on a display screen of the electronic equipment.
4. The method according to claim 3, wherein the second preview interface includes a second control for triggering the rear camera to perform image capture, and after determining that the first feature information conforms to preset feature information and controlling the rear camera to perform image capture, the method further includes:
and acquiring touch operation aiming at the second control, and controlling the rear camera to acquire images.
5. An electronic device, characterized in that the electronic device comprises:
the second processing unit is used for displaying a first preview interface corresponding to a rear camera on a display screen of the electronic equipment if the rear camera of the electronic equipment is in an open state; acquiring second information associated with the first preview interface; if the second information represents that the focal length corresponding to the first preview interface accords with a preset focal length, starting a front camera of the electronic equipment;
the acquisition unit is used for acquiring a first image associated with an operator of the electronic equipment through the front camera and acquiring first information associated with the action of the operator in the first image; the first image comprises a plurality of sub-images corresponding to a plurality of moments acquired by the front camera in a target time period;
the first processing unit is used for acquiring each piece of second characteristic information in each sub-image in the plurality of sub-images to obtain a plurality of pieces of second characteristic information; wherein each second feature information includes facial motion feature information; the first feature information includes the plurality of second feature information;
the first processing unit is further configured to determine that the first feature information conforms to preset feature information if a preset number of the second feature information conforms to the preset feature information in the plurality of second feature information when the rear camera is in a zoom state, and control the rear camera to perform image acquisition.
6. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute an image acquisition program stored in the memory to implement the steps of the image acquisition method according to any one of claims 1 to 4.
7. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the image acquisition method as claimed in any one of claims 1 to 4.
CN201910793967.2A 2019-08-27 2019-08-27 Image acquisition method, electronic equipment and storage medium Active CN110493503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910793967.2A CN110493503B (en) 2019-08-27 2019-08-27 Image acquisition method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910793967.2A CN110493503B (en) 2019-08-27 2019-08-27 Image acquisition method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110493503A CN110493503A (en) 2019-11-22
CN110493503B true CN110493503B (en) 2022-02-08

Family

ID=68554203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910793967.2A Active CN110493503B (en) 2019-08-27 2019-08-27 Image acquisition method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110493503B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484387B (en) * 2021-06-16 2023-11-07 荣耀终端有限公司 Prompting method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825947A (en) * 2010-05-04 2010-09-08 中兴通讯股份有限公司 Method and device for intelligently controlling mobile terminal and mobile terminal thereof
CN103079034A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Perception shooting method and system
CN103491297A (en) * 2013-08-22 2014-01-01 英华达(南京)科技有限公司 Photographing method and device
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN106231175A (en) * 2016-07-09 2016-12-14 东莞市华睿电子科技有限公司 A kind of method that terminal gesture is taken pictures

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269415A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Automatic photo taking method for face recognition and mobile terminal
KR102020636B1 (en) * 2013-06-07 2019-09-10 삼성전자주식회사 Method for controlling electronic device based on camera, machine-readable storage medium and electronic device
CN104683680A (en) * 2013-11-28 2015-06-03 中国移动通信集团公司 A method, device and mobile terminal for automatically taking a picture
CN106657796A (en) * 2014-05-30 2017-05-10 张琴 Mobile terminal camera and lens switching method
CN104735357A (en) * 2015-03-27 2015-06-24 天脉聚源(北京)教育科技有限公司 Automatic picture shooting method and device
CN106503658A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 automatic photographing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825947A (en) * 2010-05-04 2010-09-08 中兴通讯股份有限公司 Method and device for intelligently controlling mobile terminal and mobile terminal thereof
CN103079034A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Perception shooting method and system
CN103491297A (en) * 2013-08-22 2014-01-01 英华达(南京)科技有限公司 Photographing method and device
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN106231175A (en) * 2016-07-09 2016-12-14 东莞市华睿电子科技有限公司 A kind of method that terminal gesture is taken pictures

Also Published As

Publication number Publication date
CN110493503A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106572299B (en) Camera opening method and device
CN107770452B (en) Photographing method, terminal and related medium product
KR101078057B1 (en) Mobile terminal had a function of photographing control and photographing control system used image recognition technicque
KR101772177B1 (en) Method and apparatus for obtaining photograph
US9185286B2 (en) Combining effective images in electronic device having a plurality of cameras
US9106836B2 (en) Imaging apparatus, control method for the same, and recording medium, where continuous shooting or single shooting is performed based on touch
CN103685940A (en) Method for recognizing shot photos by facial expressions
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
US20210297595A1 (en) Method and apparatus for processing video data
KR20100069498A (en) Photographing method and apparatus using pose estimation of face
CN112887617B (en) Shooting method and device and electronic equipment
EP3822742B1 (en) Method, apparatus and device for triggering shooting mode, and storage medium
CN109155817B (en) Photographing method and terminal
CN110493503B (en) Image acquisition method, electronic equipment and storage medium
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
CN106791407B (en) Self-timer control method and system
US8866934B2 (en) Image pickup apparatus capable of deleting video effect superimposed on moving image, method of controlling the apparatus, and moving image-recording apparatus, as well as storage medium
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
TW201714074A (en) A method for taking a picture and an electronic device using the method
CN112887624B (en) Shooting method and device and electronic equipment
US11252341B2 (en) Method and device for shooting image, and storage medium
CN113315904B (en) Shooting method, shooting device and storage medium
CN114078280A (en) Motion capture method, motion capture device, electronic device and storage medium
CN113315903A (en) Image acquisition method and device, electronic equipment and storage medium
WO2023181862A1 (en) Information processing device, information processing method, storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant