CN117499526A - Shooting method, electronic device, chip system and computer readable storage medium - Google Patents

Shooting method, electronic device, chip system and computer readable storage medium Download PDF

Info

Publication number
CN117499526A
CN117499526A CN202311790575.3A CN202311790575A CN117499526A CN 117499526 A CN117499526 A CN 117499526A CN 202311790575 A CN202311790575 A CN 202311790575A CN 117499526 A CN117499526 A CN 117499526A
Authority
CN
China
Prior art keywords
interface
user
shooting
fingerprint
electronic device
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
CN202311790575.3A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311790575.3A priority Critical patent/CN117499526A/en
Publication of CN117499526A publication Critical patent/CN117499526A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/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

Abstract

The present disclosure relates to the field of terminals, and in particular, to a photographing method, an electronic device, a chip system, and a computer readable storage medium. The method comprises the following steps: detecting a first operation of a user when the electronic equipment is in a screen locking state; responding to the first operation, starting face recognition to obtain a first recognition result; if the first recognition result indicates that the face recognition passes, detecting a second operation of the user; responding to the second operation, starting fingerprint identification, and obtaining a second identification result; if the second recognition result indicates that fingerprint recognition passes, starting a camera application, and displaying a first interface, wherein the first interface is an interface of a shooting mode of the camera application; detecting a third operation of the user on the first interface; and responding to the third operation, and shooting to obtain a first photo. By the method, the camera can be quickly started to shoot in the screen locking state of the electronic equipment.

Description

Shooting method, electronic device, chip system and computer readable storage medium
Technical Field
The present disclosure relates to the field of terminals, and in particular, to a photographing method, an electronic device, a chip system, and a computer readable storage medium.
Background
Currently, many electronic devices have a photographing function. Taking a mobile phone as an example, in daily applications of the mobile phone, a user often encounters a scene that needs to quickly start a camera application in the mobile phone and take a photograph. However, when the mobile phone is in a screen locking state, a user needs to unlock the mobile phone and then open the camera to shoot, so that the whole process is complicated and shooting cannot be performed in time.
Disclosure of Invention
The application provides a shooting method, electronic equipment, a chip system and a computer readable storage medium, which can quickly start a camera to shoot in a screen locking state of the electronic equipment.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a photographing method is provided, including:
when the electronic equipment is in a screen locking state, detecting a first operation of a user, wherein the first operation is used for triggering face recognition;
responding to the first operation, starting face recognition to obtain a first recognition result;
if the first recognition result indicates that the face recognition passes, detecting a second operation of the user, wherein the second operation is used for triggering fingerprint recognition;
responding to the second operation, starting fingerprint identification, and obtaining a second identification result;
If the second recognition result indicates that fingerprint recognition passes, starting a camera application, and displaying a first interface, wherein the first interface is an interface of a shooting mode of the camera application;
detecting a third operation of the user on the first interface;
and responding to the third operation, and shooting to obtain a first photo.
The first operation of the user may include operations of the user to pick up the mobile phone, press a power key, operate (click, slide, etc.) on a screen, pull out a charging wire, etc.
Wherein the second operation by the user may include the user contacting a predetermined area on the display screen.
In this embodiment of the application, in electronic equipment being in the lock screen state, when face identification and fingerprint identification all discerns and pass through, electronic equipment can directly start the camera application, shows the shooting interface of camera application to reduce the start-up time of camera, do benefit to the timely shooting of user.
In some embodiments, the process of face recognition and fingerprint recognition may be out of order.
For example, in response to the first operation, detecting a second operation by the user; responding to the second operation, and starting face recognition and fingerprint recognition to obtain a first recognition result and a second recognition result; and if the first recognition result indicates that the face recognition passes and the second recognition result indicates that the fingerprint recognition passes, starting the camera application and displaying a first interface.
For another example, in response to the first operation, detecting a second operation by the user; responding to the second operation, starting fingerprint identification, and obtaining a second identification result; if the second recognition result indicates that the fingerprint recognition passes, starting face recognition to obtain a first recognition result; and if the first recognition result indicates that the face recognition passes, starting the camera application and displaying a first interface.
In other words, as long as the face recognition and the fingerprint recognition are both recognition passing, the electronic device may directly start the camera application to display the first interface.
In some implementations, if the second recognition result indicates that the fingerprint recognition fails, it indicates that the user does not set a quick shooting function for the current fingerprint information, and a third interface is displayed, where the third interface is an interface of a desktop application of the electronic device.
In some implementations, if the second operation is not detected, that is, the current user does not need to take a picture quickly, but only needs to perform a conventional unlocking screen, a fourth interface is displayed, where the fourth interface is an interface of a desktop application of the electronic device.
In an implementation manner of the first aspect, after initiating fingerprint identification, the method further includes:
If the second recognition result indicates that fingerprint recognition is passed, acquiring a first shooting parameter corresponding to first fingerprint information, wherein the first fingerprint information is currently input by the user;
starting a camera application and displaying a second interface, wherein the second interface is an interface of a shooting mode of the camera application, and the second interface comprises the first shooting parameters;
detecting a fourth operation of the second interface by a user;
and responding to the fourth operation, and shooting according to the first shooting parameters to obtain a second photo.
The fourth operation is used for triggering shooting of the electronic equipment. The fourth operation by the user may include clicking a capture control on the second interface, double clicking a screen, double clicking an electronic device backplate, and so forth.
In this embodiment of the present application, when the electronic device is in a screen locking state and both face recognition and fingerprint recognition are recognized, the electronic device may directly start a camera application, display a shooting interface of the camera application, and after a user performs a shooting operation, perform shooting according to shooting parameters corresponding to fingerprint information input by the current user. By the method, the starting time of the camera can be reduced, and timely shooting of a user is facilitated; in addition, shooting can be performed according to shooting parameters preset by a user, so that shooting effects meet user expectations while timely shooting is ensured, and user experience is improved.
In an implementation manner of the first aspect, the acquiring a first shooting parameter corresponding to the first fingerprint information includes:
acquiring a preset relation table, wherein the preset relation table comprises at least one group of relation data, and each group of relation data comprises a group of fingerprint information and a group of shooting parameters;
searching whether the first fingerprint information exists in the preset relation table;
and if the first fingerprint information exists in the preset relation table, acquiring the first shooting parameters corresponding to the first fingerprint information from the preset relation table.
According to the embodiment of the application, the shooting parameters corresponding to the fingerprint information input by the current user can be rapidly acquired through the corresponding relation between the preset fingerprint information and the shooting parameters. In this way, shooting parameters can be set quickly, which is beneficial to timely shooting.
In an implementation manner of the first aspect, after searching whether the first fingerprint information exists in the preset relation table, the method further includes:
and if the first fingerprint information does not exist in the preset relation table, determining a preset default parameter as a first shooting parameter corresponding to the first fingerprint information.
In the embodiment of the application, the fingerprint information which is not preset with the shooting parameters is set as the default parameters, so that the step of adjusting the shooting parameters by a user is reduced, and timely shooting is facilitated.
In an implementation manner of the first aspect, after the camera is started and the second interface is displayed, the method further includes:
detecting whether a preset object is contained in a current view finding frame of the second interface;
and if the current view-finding frame of the second interface contains a preset object, shooting according to the first shooting parameters to obtain a third photo.
In this embodiment of the application, in electronic equipment being in the lock screen state, when face identification and fingerprint identification all discerns and pass through, electronic equipment can directly start the camera application, can effectively reduce the start-up time of camera. When the camera viewfinder is identified to contain the preset object, the electronic equipment automatically shoots according to the first shooting parameters. Through the mode, the requirement of timely shooting of a user can be met, the requirement that the user shoots a specific object by adopting specific shooting parameters can also be met, the intelligent degree of shooting is improved, and the user experience is improved.
In an implementation manner of the first aspect, after initiating fingerprint identification, the method further includes:
And if the second recognition result indicates that the fingerprint recognition is not passed, displaying a third interface, wherein the third interface is an interface of a desktop application of the electronic equipment.
In the embodiment of the application, if the fingerprint identification fails, it is indicated that the user does not set the quick shooting function on the current fingerprint information, the electronic device is unlocked according to the normal unlocking step, and the user jumps to the interface of the desktop application. In this way, the unlocking operation of the electronic device is performed normally, and the daily operation of the user is not affected.
In an implementation manner of the first aspect, after detecting the second operation of the user, the method further includes:
and if the second operation is not detected, displaying a fourth interface, wherein the fourth interface is an interface of a desktop application of the electronic equipment.
In the embodiment of the present application, if the second operation is not detected, which indicates that the user does not need to shoot quickly, the electronic device is unlocked according to the normal unlocking step, and the user jumps to the interface of the desktop application. In this way, the unlocking operation of the electronic device is performed normally, and the daily operation of the user is not affected.
In an implementation manner of the first aspect, after the enabling of face recognition, the method further includes:
And if the first recognition result indicates that the face recognition fails, the face recognition is carried out again.
In a second aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any one of the first aspects when executing the computer program.
In a third aspect, there is provided a chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of the first aspects.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the method according to any of the first aspects.
Drawings
Fig. 1 is a schematic diagram of an application interface of mobile phone shooting provided in the related art;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a software architecture block diagram of an electronic device 100 of an embodiment of the present application;
fig. 4 is a schematic diagram of a setup procedure of a quick photographing function provided in the embodiment of the present application;
Fig. 5 is a schematic diagram of a setup procedure of a quick photographing function provided in another embodiment of the present application;
fig. 6 is a schematic diagram of a setting process of an added fingerprint according to an embodiment of the present application;
fig. 7 is a flowchart of a shooting method provided in an embodiment of the present application;
fig. 8 is a schematic diagram of a shooting procedure provided in an embodiment of the present application;
fig. 9 is a flowchart of a photographing method according to another embodiment of the present application;
fig. 10 is a schematic diagram of a photographing procedure according to another embodiment of the present application;
fig. 11 is a flowchart of a photographing method according to another embodiment of the present application;
fig. 12 is a schematic diagram of a photographing procedure according to another embodiment of the present application;
fig. 13 is a schematic diagram of an application scenario provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that in embodiments of the present application, "one or more" means one, two, or more than two; "and/or", describes an association relationship of the association object, indicating that three relationships may exist; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," "fourth," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Currently, many electronic devices have a photographing function. Taking a mobile phone as an example, in daily applications of the mobile phone, a user often encounters a scene that needs to quickly start a camera application in the mobile phone and take a photograph. In general, a user uses a mobile phone camera application to perform a photographing process is complicated.
For example, referring to fig. 1, when the mobile phone is in a locked state, as shown in (a) in fig. 1, the mobile phone is a lock interface 11. In this state, when photographing is required, the user first needs to unlock the mobile phone. Taking face recognition unlocking as an example, a user performs unlocking operation, such as aligning a front camera of a mobile phone to the face of the user. In response to the unlocking operation of the user, the mobile phone acquires the facial image of the user through the front-facing camera, performs face recognition according to the facial image of the user, unlocks the screen after the recognition is successful, and jumps to the desktop interface 12 shown in fig. 1 (b).
As shown in fig. 1 (b), the user clicks on the icon 101 of the camera application on the desktop interface 12. In response to the user clicking on the icon 101, the mobile phone jumps to the application interface 13 of the camera application as shown in fig. 1 (c).
The user can manually adjust shooting parameters such as ZOOM magnification, an Auto Focus (AF) distance, an Auto Exposure (AE) time "S", and the like on the application interface 13. After the shooting parameters are adjusted, the user clicks the "shoot" button 102 on the application interface 13. In response to the user clicking the "shoot" button 102, the mobile phone shoots according to shooting parameters adjusted by the user.
As shown in fig. 1, the process of shooting by the user using the mobile phone camera application is complicated, and the requirements of quickly starting the camera and timely shooting cannot be met.
Based on this, the embodiment of the application provides a shooting method. According to the shooting method provided by the embodiment of the application, the camera application in the electronic equipment can be started quickly, shooting is performed according to the shooting parameters set in advance, the requirement of timely shooting of a user can be met, and user experience is improved.
The shooting method provided by the embodiment of the application can be applied to electronic equipment with a screen and shooting functions. The electronic device includes a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone, a smart television, a wearable device, a tablet (Pad), a smart screen, a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and so on. The embodiment of the application does not limit the specific technology and the specific equipment form adopted by the electronic equipment.
Referring to fig. 2, a schematic structural diagram of an electronic device according to an embodiment of the present application is provided. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor modules 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, the processor 110 is configured to perform the photographing method in the embodiment of the present application.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
External memory interface 120 is generally referred to as external memory, which in the present embodiment refers to storage other than memory of an electronic device and a cache of a processor, which is generally non-volatile memory.
Internal memory 121, which may also be referred to as "memory," may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1. In some embodiments, the electronic device 100 displays a user interface through the display 194.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1. Illustratively, a camera 193 is used to capture images of a user looking at the display screen 194.
The electronic device 100 also includes various types of sensors that can convert various physical signals into electrical signals. Illustratively, the pressure sensor 180A is configured to sense a pressure signal, which may be converted to an electrical signal. The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc. The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. The bone conduction sensor 180M may acquire a vibration signal.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
For example, in the embodiment of the present application, the touch sensor 180K may detect a click operation of an icon of an application program by a user, and transmit the detected click operation to the application processor, determine that the click operation is used to start or run the application program, and further perform a running operation of the application program.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The above is a specific description of the embodiment of the present application taking the electronic device 100 as an example. It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
In addition, an operating system is run on the components. Such as iOS operating systems, android open source operating systems, windows operating systems, and the like. An operating application may be installed on the operating system.
The operating system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a system library and Android runtime (Android run), and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, electronic books, shopping, bluetooth, music, video, short messages, etc. For example: the camera application can comprise a quick start function, after the camera application is set, a user can quickly start the camera application in the electronic equipment, and the camera application can timely take a picture according to preset shooting parameters.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include monitoring data acquired by the sensor module 180 (e.g., acceleration data acquired by the acceleration sensor 180E, etc.), video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls, such as controls that display "shoot" buttons in a camera application, controls that display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a camera preview box may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification managers, are used to inform that the download is complete, message alerts (e.g., travel messages, etc.), etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
In an embodiment of the present application, the application framework layer may include a camera access interface, where the camera access interface is configured to provide an application programming interface and a programming framework for a camera application.
Android runtimes include core libraries and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system layer may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. The camera driving is used for driving the camera to collect images.
The shooting method according to the embodiment of the present application is described below with reference to the above-described hardware configuration and software configuration.
In the embodiment of the application, a user sets a quick shooting function of a camera application in the electronic equipment. Correspondingly, after the setting is completed, the camera application in the electronic equipment has a quick shooting function. Through the quick shooting function, a user can quickly start a camera application in the electronic device to shoot under the condition that the electronic device is in standby.
For convenience of explanation, a setting procedure of the quick photographing function will be first described.
In one implementation of setting the quick shoot function, the user may set the quick shoot function through a "setup" portal in the camera application.
As an example of the setting process, referring to fig. 4, a schematic diagram of the setting process of the quick photographing function provided in the embodiment of the present application is shown. As shown in fig. 4 (a), an application interface 21 for a camera application. The user clicks the "set" control 211 on the application interface 21, and in response to this user operation, the electronic device jumps to the set interface 22 as shown in fig. 4 (b). A "quick shoot" control 221 may be included in the setup interface 22. The user clicks the "quick shoot" control 221, and in response to this user operation, the electronic device jumps to the setting interface 23 shown in fig. 4 (c). As shown in fig. 4 (c), the setup interface 23 includes a "function open" control 231.
The user can turn on or off the quick photographing function of the camera application by operating the "function on" control 231. For example, when the "function open" control 231 is in an open state, the user may close the quick capture function of the camera application by operating (e.g., clicking or sliding, etc.) the "function open" control 231. When the "function open" control 231 is in the off state, the user can open the quick photographing function of the camera application by operating the "function open" control 231.
As shown in fig. 4 (c), the "function open" control 231 is in an off state. When the user clicks or slides the "function on" control 231, in response to the user operation, the electronic device jumps to the setup interface 24 as shown in fig. 4 (d). In the setting interface 24, the "function open" control 231 is in an open state, which indicates that the electronic device has opened the quick capture function of the camera application.
It will be appreciated that the quick shoot function may be turned on by default or turned off by default. For example, when the quick photographing function is turned on by default, the user opens the setting interface 23 shown in (c) in fig. 4 for the first time, and the "function on" control 231 in the setting interface 23 is in an on state. When the quick photographing function is turned off by default, the user opens the setting interface 23 shown in (c) in fig. 4 for the first time, and the "function on" control 231 in the setting interface 23 is in the off state.
When the quick photographing function is in an on state, a user can set photographing parameters required for the quick photographing function.
Continuing with the example of FIG. 4, when the "function on" control 231 in the setup interface 23 is in an on state, a "fingerprint list" is displayed in the setup interface 24, the "fingerprint list" including fingerprints that have been entered on the current electronic device. As shown in fig. 4 (d), 5 fingerprints that have been entered are included in the "fingerprint list".
The user can set shooting parameters for fingerprints already recorded on the electronic device so as to establish a corresponding relation between fingerprint information and the shooting parameters. As shown in (d) of fig. 4, the user clicks the setting button 241 corresponding to "fingerprint 5", and in response to the user operation, the electronic apparatus jumps to the setting interface 25 shown in (e) of fig. 4. As shown in (e) of fig. 4, the setting interface 25 includes a setting window 251 in which an input box 2511 of photographing parameters can be displayed, and a user can input parameter values within the input box 2511. As shown in (e) of fig. 4, a "ZOOM" magnification, "AF," and an automatic exposure time "S" or the like may be included in the input frame 2511. When the user operates the "save" control 2512 in the setting window 251, in response to the user operation, the electronic device saves the correspondence between the fingerprint information of "fingerprint 5" and the parameter value within the input box 2511, and jumps back to the setting interface 24 as shown in (d) of fig. 4. When the user operates the "delete" control 2513 in the setting window 251, in response to the user operation, the electronic device deletes the correspondence between the saved fingerprint information of "fingerprint 5" and the parameter values within the input box 2511, and deletes "fingerprint 5" from the "fingerprint list" and jumps to the setting interface 26 as shown in fig. 4 (f).
In some examples, when the user sets a shooting parameter for a certain fingerprint for the first time, the input box 2511 in the setting window 251 may be empty, or a default value may be displayed.
In some examples, for an unset fingerprint, the shooting parameter corresponding to the fingerprint may be set to a default value.
In another implementation of setting the quick capture function, the user may set the quick capture function through a setup application portal of the electronic device.
As another example of the setting manner, referring to fig. 5, a schematic diagram of a setting procedure of the quick photographing function provided in another embodiment of the present application is shown. As shown in fig. 5 (a), for the desktop 31 of the electronic device, the user clicks an icon 311 of the setting application on the desktop 31, and in response to the user operation, the electronic device jumps to the setting interface 32 as shown in fig. 5 (b). The user clicks the "auxiliary function" control 321 in the setting interface 32, and in response to this user operation, the electronic device jumps to the setting interface 33 as shown in (c) in fig. 5. The user clicks the "quick start and gesture" control 331 in the setup interface 33, and in response to this user operation, the electronic device jumps to the setup interface 34 as shown in fig. 5 (d). The user clicks the "quick shoot" control 341 in the setting interface 34, and in response to this user operation, the electronic apparatus jumps to the setting interface 35 as shown in (e) in fig. 5.
The setup interface 35 includes a "function open" control 351. The user can turn on or off the quick photographing function of the camera application by operating the "function on" control 351. For example, when the "function open" control 351 is in an open state, the user can close the quick capture function of the camera application by operating (e.g., clicking or sliding, etc.) the "function open" control 551. When the "function on" control 351 is in an off state, the user can start the quick photographing function of the camera application by operating the "function on" control 351.
As shown in fig. 5 (e), the "function open" control 351 is in an off state. When the user clicks or slides the "function on" control 351, in response to the user operation, the electronic device jumps to the setting interface 36 as shown in fig. 5 (f). In the setting interface 36, the "function on" control 351 is in an on state, indicating that the electronic device has opened the quick capture function of the camera application. When the quick photographing function is in an on state, a user can set photographing parameters required for the quick photographing function. The setting manner of the shooting parameters can be referred to the description in the embodiments (d) - (f) in fig. 4, and will not be described herein.
It should be noted that, the on state of the quick shooting function in the setting application is consistent with the on state of the quick shooting function in the camera application. For example, if the user turns on the quick shoot function through the "setup" portal in the camera application, the quick shoot function in the setup application is also turned on. If the user turns off the quick photographing function by setting the application portal, the quick photographing function in the camera application becomes a turned-off state.
In some examples, as shown in (d) of fig. 5, when the user operates the "quick shoot" control 341 in the setting interface 34, in response to the user operation, the electronic device may jump to the setting interface for quick shoot in the camera application, for example, to the setting interface 23 shown in (c) of fig. 4. The user then sets shooting parameters involved in the quick shooting function in a setting interface of the camera application.
As shown in the embodiments of fig. 4 and 5, the electronic device may provide a variety of setup portals for the quick capture function. It should be noted that, in the above embodiments, only several possible setting manners are shown, and as an example, the setting entrance and the setting manner of the quick shooting function in the embodiments of the present application are not specifically limited. It should be noted that, the setting results (including fingerprint information and corresponding shooting parameters) of various setting entries of the quick shooting function in the electronic device remain consistent.
In some application scenarios, a user needs to add fingerprint information and corresponding shooting parameters. In one implementation, fingerprint information may be added through a "setup" portal of the camera application. For example, taking fig. 4 as an example, in the setting interface 24 shown in (d) in fig. 4, the user can add fingerprint information by operating the "newly added fingerprint" control. In another implementation, the fingerprint information may be newly added through a setup application portal of the electronic device. For example, taking fig. 5 as an example, in the setting interface 32 shown in (b) in fig. 5, the user can enter the setting interface of "biometric and password" by operating the "biometric and password" control, and perform a user operation on the setting interface to add fingerprint information. In another implementation, in the "setting" of the camera application, a "newly added fingerprint" control is provided, and when the user operates the "newly added fingerprint" control, the electronic device jumps to a setting interface of "biometric identification and password" in the setting application, so that the user adds fingerprint information in the setting interface.
As an example of adding fingerprint information, referring to fig. 6, a schematic diagram of a setting procedure of an added fingerprint provided in the embodiment of the present application is shown. As shown in fig. 6 (a), the setting interface 24 in the embodiment of fig. 4, that is, the interface for setting the quick photographing function in the "setting" of the camera application is shown. The setup interface 24 may provide access to the newly added fingerprint. As shown in fig. 6 (a), when the user operates the "new fingerprint" control 242 on the setting interface 24, in response to the user operation, the electronic device jumps to the setting interface 41 shown in fig. 6 (b), and the setting interface 41 is a setting interface of "biometric identification and password" in the setting application of the electronic device. The user adds fingerprint information in a setup application of the electronic device. As shown in fig. 6 (b), when the user operates the "fingerprint" control 411, in response to the user operation, the electronic device jumps to the setting interface 42 shown in fig. 6 (c). In the device interface 42 a "fingerprint list" is displayed, which includes the currently entered fingerprint.
It will be appreciated that the fingerprint information contained in the "fingerprint list" of each application in the electronic device remains consistent. For example, the fingerprint included in the "fingerprint list" in the setting interface 42, the fingerprint included in the "fingerprint list" on the setting page of the quick photographing function in the camera application (as shown in fig. 6 (a)), and the fingerprint included in the "fingerprint list" on the setting page of the quick photographing function in the setting application (as shown in fig. 5 (f)) are kept identical.
Continuing with the example of FIG. 6, when the user operates a "New fingerprint" control 421 in the setup interface 42, in response to the user operation, the electronic device jumps to the setup interface 43 as shown in FIG. 6 (d). And the user performs fingerprint input according to the prompt information in the interface. For example, when the user operates the "start entry" control 431 in the setting interface 43, in response to the user operation, the electronic device displays a prompt box of the fingerprint sensing area, the user presses a finger in the prompt box, and the electronic device acquires fingerprint information of the user. When the fingerprint entry is successful, the electronic device displays a setup interface 44 as shown in fig. 6 (e). When the user operates the "done" control 441 in the setting interface 44, in response to the user operation, the electronic device holds the fingerprint information that has just been entered, updates the "fingerprint list" of the respective applications in the electronic device, and jumps to the setting interface 45 as shown in (f) in fig. 6. The setting interface 45 is an interface for setting the quick photographing function in the "setting" of the camera application. As shown in the setting interface 45, a "fingerprint 6" is added to the "fingerprint list" of the camera application, that is, the name of the fingerprint information that has just been entered. The user may continue to set shooting parameters for the newly added fingerprint in the setting interface of the quick shooting function of the camera application.
4-6, through interaction between a user and the electronic device, the electronic device correlates fingerprint information selected by the user with shooting parameters input by the user according to user operation, so as to obtain a corresponding relationship between at least one group of fingerprint information and shooting parameters, and stores the corresponding relationship. When the step of the photographing method is executed later, the electronic device can process according to the corresponding relation between the stored fingerprint information and the photographing parameters so as to realize the rapid photographing function.
In some implementations, the electronic device may generate a preset relationship table including at least one set of relationship data, each set of relationship data including a set of fingerprint information and a set of shooting parameters.
In some implementations, the electronic device may correlate the face image, the fingerprint information, and the shooting parameters. For example, the preset relationship table includes at least one set of relationship data, and each set of relationship data includes a face image, a set of fingerprint information and a set of shooting parameters.
Based on the setting of the quick shooting function, when the quick shooting function is in an on state, a user can quickly start a camera application in the electronic equipment to shoot under the condition that the electronic equipment is in a standby state. The shooting method provided by the embodiment of the present application is described below. Referring to fig. 7, a flowchart of a photographing method provided in an embodiment of the present application is shown. By way of example and not limitation, as shown in fig. 7, the photographing method may include the steps of:
S701, detecting a first operation of a user when the electronic equipment is in a screen locking state, wherein the first operation is used for triggering face recognition.
The first operation of the user may include operations of the user to pick up the mobile phone, press a power key, operate (click, slide, etc.) on a screen, pull out a charging wire, etc.
The screen locking state can be a screen locking state of screen extinction or a screen locking state of screen brightness. The screen-lighting and screen-locking state indicates that the touch display screen is lightened, so that information such as date and time can be displayed, but the display interface does not display a main application interface or other application program interfaces. For example, after a switch key of a mobile phone is pressed, a touch display screen of the mobile phone will be lightened, but a user wants to use the mobile phone and needs to perform an unlocking operation to access a main application interface or other application program interfaces of the mobile phone.
It should be noted that, in some application scenarios, when the electronic device is in a standby state, the screen of the electronic device may also be in a locked state. Therefore, in the embodiments of the present application, as long as the screen of the electronic device is in a locked state (i.e., the main application interface or other application interfaces of the electronic device may be operated only when unlocking is required), the electronic device may be said to be in a screen-locked state.
S702, responding to the first operation, starting face recognition to obtain a first recognition result.
In some implementations, when the first operation is detected, a front camera in the electronic device acquires a face image, and face recognition is performed according to the face image to obtain a first recognition result. If the face image is matched with the face image stored in the electronic equipment in advance, the first recognition result indicates that the face recognition passes; if the face image is not matched with the face image stored in the electronic equipment in advance, the first recognition result indicates that the face recognition is failed.
In some implementations, if the first recognition result indicates that the face recognition fails, the face recognition is performed again.
And S703, if the first recognition result indicates that the face recognition passes, detecting a second operation of the user, wherein the second operation is used for triggering fingerprint recognition.
If the second operation is not detected, the current user does not need to take a picture quickly and only needs to take a normal unlocking screen, and a fourth interface is displayed, wherein the fourth interface is an interface of a desktop application of the electronic equipment.
In some implementations, the second operation by the user may include the user contacting the display screen. Specifically, if the display screen of the electronic device is a capacitive screen, the electronic device may determine whether the user touches the display screen according to the capacitive signal of the display screen. For example, for a self-capacitive touch display screen, after a user touches the screen, the capacitance value of the touch area increases; in the case of a mutual capacitive touch display, the capacitance of the touch area decreases after the user touches the screen. The electronic device can judge whether the user touches the display screen according to the change of the capacitance value.
In other implementations, the second operation by the user may include the user contacting a predetermined area on the display screen. For example, in order to save electric power, when the electronic device locks the screen, only a partial area of the display screen may be scanned and detected, that is, the area where the scanning and detection are performed may be identified as an operation of the user, while other areas are in a non-working state and cannot detect the operation of the user. The area for scanning detection may be an area including fingerprint recognition, for example, if the fingerprint detector is disposed in the lower half area of the display screen, only the lower half area of the display screen may be scanned and detected when the screen is locked.
It will be appreciated that the above-mentioned division of the area is only an example, and the preset area may be set according to different scenes and different user requirements in actual application.
In some implementations, after the face recognition is passed, the fingerprint identification may be displayed in a preset area (i.e., a fingerprint identification area) of the display screen, so as to indicate that the user performs the second operation. In other implementations, after the first operation is detected, the fingerprint identification identifier is displayed in a preset area of the display screen, so that the user can perform the second operation while performing face recognition, which is beneficial to saving recognition time.
And S704, responding to the second operation, starting fingerprint identification, and obtaining a second identification result.
In some implementations, when the second operation is monitored, the electronic device obtains first fingerprint information of the user through a sensor under the display screen, performs fingerprint identification according to the first fingerprint information, and obtains a second identification result. If the first fingerprint information is matched with the fingerprint information stored in the electronic equipment in advance, the second recognition result indicates that the fingerprint recognition is passed; if the first fingerprint information is not matched with the fingerprint information stored in the electronic equipment in advance, the second recognition result indicates that the fingerprint recognition is failed.
And S705, if the second recognition result indicates that the fingerprint recognition is passed, starting a camera application, and displaying a first interface, wherein the first interface is an interface of a shooting mode of the camera application.
And if the second recognition result indicates that the fingerprint recognition is not passed, indicating that the user does not set a quick shooting function for the current fingerprint information, displaying a third interface, wherein the third interface is an interface of desktop application of the electronic equipment.
In some embodiments, the processes of face recognition and fingerprint recognition in S702-S704 described above may be out of order.
For example, in response to the first operation, detecting a second operation by the user; responding to the second operation, and starting face recognition and fingerprint recognition to obtain a first recognition result and a second recognition result; and if the first recognition result indicates that the face recognition passes and the second recognition result indicates that the fingerprint recognition passes, starting the camera application and displaying a first interface.
For another example, in response to the first operation, detecting a second operation by the user; responding to the second operation, starting fingerprint identification, and obtaining a second identification result; if the second recognition result indicates that the fingerprint recognition passes, starting face recognition to obtain a first recognition result; and if the first recognition result indicates that the face recognition passes, starting the camera application and displaying a first interface.
In other words, as long as the face recognition and the fingerprint recognition are both recognition passing, the electronic device may directly start the camera application to display the first interface.
S706, detecting a third operation of the user on the first interface.
The third operation is used for triggering shooting of the electronic equipment. The third operation by the user may include clicking a capture control on the first interface, double clicking a screen, double clicking an electronic device backplate, and so forth.
S707, in response to the third operation, shooting to obtain a first photo.
Exemplary, referring to fig. 8, a schematic diagram of a shooting procedure provided in an embodiment of the present application is shown. As shown in fig. 8 (a), the screen lock interface 51 of the electronic device is shown, and the electronic device is in a screen lock state. When the user performs a first operation (e.g., the user picks up the cell phone, presses a power key, operates on a screen (clicks, slides, etc.), pulls out a charging wire, etc.), the electronic device activates face recognition in response to the first operation, displaying a recognition interface 52 as shown in (b) of fig. 8. The identification interface 52 may include an identification of face recognition (e.g., the "face ID" shown in fig. 8 (b)) to indicate to the user that face recognition is currently being performed. An identification 501 of the fingerprint identification area may also be included in the identification interface 52 to prompt the user to enter fingerprint information. In case a second operation of the user is detected (e.g. the user's finger presses the identification 501 of the fingerprint identification area), the electronic device may perform face recognition and fingerprint identification in sequence. When the face recognition passes and the fingerprint recognition passes, the electronic device jumps to the photographing interface 53 as shown in (c) of fig. 8. The electronic equipment starts the camera application after unlocking the screen and jumps to the shooting interface of the camera application. When the user performs a third operation (e.g., clicks on the capture control 502, double clicks on a screen, double clicks on a back panel of the electronic device, etc.), the electronic device captures a first photograph in response to the third operation. As shown in fig. 8 (d), the photographing interface 54 displays a first photograph in a preview box 503.
As shown in fig. 7 and fig. 8, in the case that the electronic device is in the screen locking state, when both face recognition and fingerprint recognition are recognized, the electronic device can directly start the camera application to display the shooting interface of the camera application, so that the starting time of the camera is reduced, and the user can shoot in time.
Referring to fig. 9, a flowchart of a photographing method according to another embodiment of the present application is shown. As an example and not by way of limitation, as shown in fig. 9, the photographing method may include the steps of:
s901, when the electronic equipment is in a screen locking state, detecting a first operation of a user, wherein the first operation is used for triggering face recognition.
S902, responding to the first operation, starting face recognition, and obtaining a first recognition result.
S903, if the first recognition result indicates that the face recognition passes, detecting a second operation of the user, wherein the second operation is used for triggering fingerprint recognition.
S904, responding to the second operation, starting fingerprint identification, and obtaining a second identification result.
Steps S901 to S904 are the same as steps S701 to S704, and specific reference may be made to the descriptions of steps S701 to S704, and the description thereof will not be repeated here.
And S905, if the second recognition result indicates that the fingerprint recognition is passed, acquiring a first shooting parameter corresponding to the first fingerprint information.
The first fingerprint information is the fingerprint information currently input by the user.
As described in step S904, a preset relationship table is stored in the electronic device. Accordingly, one implementation of S905 includes: acquiring a preset relation table; searching whether the first fingerprint information exists in the preset relation table; if the first fingerprint information exists in the preset relation table, acquiring the first shooting parameters corresponding to the first fingerprint information from the preset relation table; if the first fingerprint information does not exist in the preset relation table, a preset default parameter can be determined to be a first shooting parameter corresponding to the first fingerprint information.
According to the embodiment of the application, the shooting parameters corresponding to the fingerprint information input by the current user can be rapidly acquired through the corresponding relation between the preset fingerprint information and the shooting parameters. In this way, shooting parameters can be set quickly, which is beneficial to timely shooting.
In one implementation manner, if the second recognition result indicates that the fingerprint recognition fails, it is indicated that the user does not set shooting parameters for the current fingerprint information, and a third interface is displayed, where the third interface is an interface of a desktop application of the electronic device.
S906, starting a camera application, and displaying a second interface, wherein the second interface is an interface of a shooting mode of the camera application, and the second interface comprises the first shooting parameters.
In the embodiment of the application, the shooting parameters corresponding to the fingerprint information input by the current user are displayed through the second interface, so that the user experience is improved.
S907, detecting a fourth operation of the second interface by the user.
The fourth operation is used for triggering shooting of the electronic equipment. The fourth operation by the user may include clicking a capture control on the second interface, double clicking a screen, double clicking an electronic device backplate, and so forth.
S908, responding to the fourth operation, shooting according to the first shooting parameters, and obtaining a second photo.
Exemplary, referring to fig. 10, a schematic diagram of a photographing procedure according to another embodiment of the present application is provided. As shown in fig. 10 (a), a screen lock interface 61 of the electronic device is shown, and the electronic device is in a screen lock state. When the user performs a first operation (e.g., the user picks up the cell phone, presses a power key, operates on a screen (clicks, slides, etc.), pulls out a charging wire, etc.), the electronic device starts face recognition in response to the first operation, displaying a recognition interface 62 as shown in (b) of fig. 10. The identification interface 62 may include an identification of face recognition (e.g., the "face ID" shown in fig. 10 (b)) to indicate to the user that face recognition is currently being performed. An identification 601 of the fingerprint identification area may also be included in the identification interface 62 to prompt the user to enter fingerprint information. In case a second operation of the user is detected (e.g. the user's finger presses the identification 601 of the fingerprint identification area), the electronic device may perform face recognition and fingerprint identification in sequence. When the face recognition passes and the fingerprint recognition passes, the electronic device jumps to the photographing interface 63 as shown in (c) of fig. 10. The electronic equipment starts the camera application after unlocking the screen and jumps to the shooting interface of the camera application. The photographing interface 63 includes a parameter display area 603 therein, and the parameter display area 603 displays therein a first photographing parameter corresponding to fingerprint information currently input by a user. When the user performs a third operation (e.g., clicks on the photographing control 602, double-clicks on the screen or double-clicks on the back panel of the electronic device, etc.), in response to the third operation, the electronic device photographs a second picture according to the first photographing parameter (e.g., white balance "ISO" of 200, exposure time "S" of 1/100, "AF" of 35, and ZOOM of 0.5 as shown in (c) of fig. 10). As shown in fig. 10 (d) with the capture interface 64, a second photograph is displayed within the preview pane 604.
Compared with the application scene shown in the embodiment of fig. 8, in the application scene shown in the embodiment of fig. 10, the shooting parameters corresponding to the fingerprint information currently input by the user are displayed on the shooting interface, and when the user performs the shooting operation, shooting is performed according to the shooting parameters. By the method, the shooting effect is more in line with the expectations of users, the steps of parameter adjustment of the users are reduced, the shooting efficiency is improved, and timely shooting requirements are met.
As shown in fig. 9 and fig. 10, when the electronic device is in the screen locking state and both face recognition and fingerprint recognition are recognized, the electronic device may directly start the camera application, display a shooting interface of the camera application, and after the user performs a shooting operation, perform shooting according to shooting parameters corresponding to fingerprint information input by the current user. By the method, the starting time of the camera can be reduced, and timely shooting of a user is facilitated; in addition, shooting can be performed according to shooting parameters preset by a user, so that shooting effects meet user expectations while timely shooting is ensured, and user experience is improved.
Referring to fig. 11, a flowchart of a photographing method according to another embodiment of the present application is shown. As an example and not by way of limitation, as shown in fig. 11, the photographing method may include the steps of:
S1101, detecting a first operation of a user when the electronic equipment is in a screen locking state, wherein the first operation is used for triggering face recognition.
S1102, responding to the first operation, starting face recognition and obtaining a first recognition result.
And S1103, if the first recognition result indicates that the face recognition passes, detecting a second operation of the user, wherein the second operation is used for triggering fingerprint recognition.
S1104, responding to the second operation, starting fingerprint identification, and obtaining a second identification result.
S1105, if the second recognition result indicates that fingerprint recognition passes, acquiring a first shooting parameter corresponding to the first fingerprint information.
And S1106, starting a camera application, and displaying a second interface, wherein the second interface is an interface of a shooting mode of the camera application, and the second interface comprises the first shooting parameters.
Steps S1101 to S1106 are the same as steps S901 to S906, and specific reference may be made to the descriptions of steps S901 to S906, and are not repeated here.
S1107, detecting whether a preset object is contained in the view-finding frame of the second interface.
In this embodiment of the present application, the preset object may include category information of the photographing object, a sample image of the photographing object, and the like.
In some implementations, a trained detection model may be stored in the electronic device, which may be used to detect multiple types of photographic subjects, such as "people", "animals", and the like. The electronic equipment displays a plurality of types which can be identified by the detection model through the interactive interface so as to be selected by a user. After the user selects, the electronic device sets the type selected by the user as a preset object. Correspondingly, in the detection process of the execution S1107, the electronic equipment acquires an image in a camera viewfinder, and inputs the image into a trained detection model for image detection; if the detection result shows that the type corresponding to the image is the preset object, judging that the view frame of the current second interface contains the preset object.
In other implementations, the user may input a sample image of the photographed object into the electronic device, and after the electronic device acquires the sample image, the sample image is set as a preset object and stored. Correspondingly, in the detection process of the execution S1107, the electronic equipment acquires an image in a camera viewfinder, and performs matching processing on the image and a sample image; and if the matching result shows that the two images contain the same shooting object, judging that the current viewfinder of the second interface contains the preset object.
It should be noted that the foregoing is merely an example of a preset object and a detection manner thereof, in practical application, other preset objects may be set as required, or whether the viewfinder of the camera includes the preset object may be judged by adopting other detection manners, which is not specifically limited in the embodiment of the present application.
S1108, if the current view-finding frame of the second interface contains a preset object, shooting according to the first shooting parameters to obtain a third photo.
Exemplary, referring to fig. 12, a schematic diagram of a photographing procedure according to another embodiment of the present application is provided. As shown in fig. 12 (a), a screen lock interface 71 of the electronic device is shown, and the electronic device is in a screen lock state. When the user performs a first operation (e.g., the user picks up the cell phone, presses a power key, operates on a screen (clicks, slides, etc.), pulls out a charging wire, etc.), the electronic device activates face recognition in response to the first operation, displaying a recognition interface 72 as shown in (b) of fig. 12. The identification interface 72 may include an identification of face recognition (e.g., the "face ID" shown in fig. 12 (b)) to indicate that the user is currently performing face recognition. An identification 701 of the fingerprint identification area may also be included in the identification interface 72 to prompt the user to enter fingerprint information. In case that the second operation of the user is detected (e.g., the user's finger presses the identification 701 of the fingerprint recognition area), the electronic device may perform face recognition and fingerprint recognition in sequence. When the face recognition passes and the fingerprint recognition passes, the electronic device jumps to the photographing interface 73 as shown in (c) in fig. 12. The electronic equipment starts the camera application after unlocking the screen and jumps to the shooting interface of the camera application. The photographing interface 73 includes a parameter display area 702 therein, and the parameter display area 702 displays therein a first photographing parameter corresponding to fingerprint information currently input by a user. After the electronic device starts the camera application, it is detected whether the image in the viewfinder 703 of the camera contains a preset object. If the image in the viewfinder 703 of the camera includes the preset object, the electronic device photographs according to the first photographing parameter, and obtains a third photograph. As shown in (c) and (d) of fig. 12, when the image in the viewfinder 703 contains a preset object, the electronic device performs shooting according to the shooting parameters in the parameter display area 702, and the resulting third photograph is displayed in the preview frame 704.
Compared with the application scene shown in the embodiment of fig. 10, the application scene shown in the embodiment of fig. 12 can automatically capture images when a preset object appears in the viewfinder, and does not need to wait for user operation. The mode can improve shooting efficiency and meet the requirement of timely shooting.
In this embodiment of the application, in electronic equipment being in the lock screen state, when face identification and fingerprint identification all discerns and pass through, electronic equipment can directly start the camera application, can effectively reduce the start-up time of camera. When the camera viewfinder is identified to contain the preset object, the electronic equipment automatically shoots according to the first shooting parameters. Through the mode, the requirement of timely shooting of a user can be met, the requirement that the user shoots a specific object by adopting specific shooting parameters can also be met, the intelligent degree of shooting is improved, and the user experience is improved.
As shown in the embodiments of fig. 7 to fig. 12, compared with the application scenario shown in the embodiment of fig. 1, the photographing method provided in the embodiment of the present application can quickly start the camera and photograph when the electronic device is in the screen locking state, skip the step of jumping to the desktop, reduce the operation steps of the user, provide the photographing efficiency, and facilitate the improvement of the user experience.
And under the condition that the second operation of the user (namely the operation for triggering fingerprint identification) is not detected or the fingerprint identification is not passed, the electronic equipment can unlock by looking at the normal unlocking flow and jump to the desktop application. In this way, the unlocking operation of the electronic device is performed normally, and the daily operation of the user is not affected.
Exemplary, referring to fig. 13, a schematic diagram of an application scenario provided in an embodiment of the present application is shown. As shown in fig. 13 (a), a screen lock interface 81 of the electronic device is shown, and the electronic device is in a screen lock state. When the user performs a first operation (e.g., the user picks up the cell phone, presses a power key, operates on a screen (clicks, slides, etc.), pulls out a charging wire, etc.), the electronic device starts face recognition in response to the first operation, displaying a recognition interface 82 as shown in (b) of fig. 13. The identification interface 82 may include an identification of face recognition (e.g., the "face ID" shown in fig. 13 (b)) to indicate that the user is currently performing face recognition. An identification 801 of the fingerprint identification area may also be included in the identification interface 82 to prompt the user to enter fingerprint information.
In this case, if the face recognition passes, but the second operation of the user is not detected, or the fingerprint recognition does not pass, the electronic device jumps to the desktop interface 83 shown in fig. 13 (c).
In another case, if the second operation of the user is detected and both face recognition and fingerprint recognition are passed, the electronic device starts the camera and jumps to the photographing interface 84 shown in fig. 13 (d).
According to the shooting method, the flexibility is high, and a user can control the electronic equipment to unlock a screen or quickly start camera shooting through user operation. Through the mode, the user experience is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
The embodiments of the present application also provide a computer readable storage medium storing a computer program, where the computer program can implement the steps in the above-mentioned method embodiments when executed by a processor.
The embodiments of the present application also provide a computer program product enabling a terminal device to carry out the steps of the above-described respective method embodiments when the computer program product is run on the terminal device.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a first device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. Finally, it should be noted that: the foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A photographing method, comprising:
when the electronic equipment is in a screen locking state, detecting a first operation of a user, wherein the first operation is used for triggering face recognition;
Responding to the first operation, starting face recognition to obtain a first recognition result;
if the first recognition result indicates that the face recognition passes, detecting a second operation of the user, wherein the second operation is used for triggering fingerprint recognition;
responding to the second operation, starting fingerprint identification, and obtaining a second identification result;
if the second recognition result indicates that fingerprint recognition passes, starting a camera application, and displaying a first interface, wherein the first interface is an interface of a shooting mode of the camera application;
detecting a third operation of the user on the first interface;
and responding to the third operation, and shooting to obtain a first photo.
2. The photographing method of claim 1, wherein after starting fingerprint recognition, the method further comprises:
if the second recognition result indicates that fingerprint recognition is passed, acquiring a first shooting parameter corresponding to first fingerprint information, wherein the first fingerprint information is currently input by the user;
starting a camera application and displaying a second interface, wherein the second interface is an interface of a shooting mode of the camera application, and the second interface comprises the first shooting parameters;
Detecting a fourth operation of the second interface by a user;
and responding to the fourth operation, and shooting according to the first shooting parameters to obtain a second photo.
3. The photographing method according to claim 2, wherein the acquiring the first photographing parameter corresponding to the first fingerprint information comprises:
acquiring a preset relation table, wherein the preset relation table comprises at least one group of relation data, and each group of relation data comprises a group of fingerprint information and a group of shooting parameters;
searching whether the first fingerprint information exists in the preset relation table;
and if the first fingerprint information exists in the preset relation table, acquiring the first shooting parameters corresponding to the first fingerprint information from the preset relation table.
4. A photographing method according to claim 3, wherein after looking up whether the first fingerprint information exists in the preset relationship table, the method further comprises:
and if the first fingerprint information does not exist in the preset relation table, determining a preset default parameter as a first shooting parameter corresponding to the first fingerprint information.
5. The photographing method of claim 2, wherein after the camera application is started and the second interface is displayed, the method further comprises:
Detecting whether a preset object is contained in a current view finding frame of the second interface;
and if the current view-finding frame of the second interface contains a preset object, shooting according to the first shooting parameters to obtain a third photo.
6. The photographing method of any one of claims 1 to 5, wherein after fingerprint recognition is initiated, the method further comprises:
and if the second recognition result indicates that the fingerprint recognition is not passed, displaying a third interface, wherein the third interface is an interface of a desktop application of the electronic equipment.
7. The photographing method of any of claims 1 to 5, wherein after detecting the second operation of the user, the method further comprises:
and if the second operation is not detected, displaying a fourth interface, wherein the fourth interface is an interface of a desktop application of the electronic equipment.
8. The photographing method of any one of claims 1 to 5, wherein after enabling face recognition, the method further comprises:
and if the first recognition result indicates that the face recognition fails, the face recognition is carried out again.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 8 when the computer program is executed.
10. A chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1 to 8.
11. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 8.
CN202311790575.3A 2023-12-25 2023-12-25 Shooting method, electronic device, chip system and computer readable storage medium Pending CN117499526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311790575.3A CN117499526A (en) 2023-12-25 2023-12-25 Shooting method, electronic device, chip system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311790575.3A CN117499526A (en) 2023-12-25 2023-12-25 Shooting method, electronic device, chip system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117499526A true CN117499526A (en) 2024-02-02

Family

ID=89671140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311790575.3A Pending CN117499526A (en) 2023-12-25 2023-12-25 Shooting method, electronic device, chip system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117499526A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679047A (en) * 2012-09-18 2014-03-26 英业达科技有限公司 System and method for providing application program protection in handheld-type device
CN103869985A (en) * 2014-03-27 2014-06-18 联想(北京)有限公司 Information processing method and terminal device
CN103886237A (en) * 2014-03-26 2014-06-25 深圳市亚略特生物识别科技有限公司 Control method and system for electronic device with fingerprint sensor and touch screen
CN104573485A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for starting terminal application
CN105138261A (en) * 2015-07-30 2015-12-09 努比亚技术有限公司 Shooting parameter adjustment apparatus and method
CN105786577A (en) * 2016-03-22 2016-07-20 上海斐讯数据通信技术有限公司 Quick photographing method and device of fingerprint mobile terminal as well as fingerprint mobile terminal
CN106210295A (en) * 2016-06-30 2016-12-07 深圳市智汇十方科技有限公司 A kind of interruption-free photographic method and system
CN109583356A (en) * 2018-11-23 2019-04-05 Oppo广东移动通信有限公司 Fingerprint identification method and Related product
CN109815668A (en) * 2019-01-10 2019-05-28 北京珠穆朗玛移动通信有限公司 Dual system method for controlling mobile terminal, mobile terminal and storage medium
CN110134459A (en) * 2019-05-15 2019-08-16 Oppo广东移动通信有限公司 Using starting method and Related product
CN113727018A (en) * 2021-06-24 2021-11-30 荣耀终端有限公司 Shooting method and equipment
CN114125145A (en) * 2021-10-19 2022-03-01 华为技术有限公司 Method and equipment for unlocking display screen

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679047A (en) * 2012-09-18 2014-03-26 英业达科技有限公司 System and method for providing application program protection in handheld-type device
CN103886237A (en) * 2014-03-26 2014-06-25 深圳市亚略特生物识别科技有限公司 Control method and system for electronic device with fingerprint sensor and touch screen
CN103869985A (en) * 2014-03-27 2014-06-18 联想(北京)有限公司 Information processing method and terminal device
CN104573485A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for starting terminal application
CN105138261A (en) * 2015-07-30 2015-12-09 努比亚技术有限公司 Shooting parameter adjustment apparatus and method
CN105786577A (en) * 2016-03-22 2016-07-20 上海斐讯数据通信技术有限公司 Quick photographing method and device of fingerprint mobile terminal as well as fingerprint mobile terminal
CN106210295A (en) * 2016-06-30 2016-12-07 深圳市智汇十方科技有限公司 A kind of interruption-free photographic method and system
CN109583356A (en) * 2018-11-23 2019-04-05 Oppo广东移动通信有限公司 Fingerprint identification method and Related product
CN109815668A (en) * 2019-01-10 2019-05-28 北京珠穆朗玛移动通信有限公司 Dual system method for controlling mobile terminal, mobile terminal and storage medium
CN110134459A (en) * 2019-05-15 2019-08-16 Oppo广东移动通信有限公司 Using starting method and Related product
CN113727018A (en) * 2021-06-24 2021-11-30 荣耀终端有限公司 Shooting method and equipment
CN114125145A (en) * 2021-10-19 2022-03-01 华为技术有限公司 Method and equipment for unlocking display screen

Similar Documents

Publication Publication Date Title
CN114205522B (en) Method for long-focus shooting and electronic equipment
CN109635542B (en) Biological identification interaction method, graphical interaction interface and related device
US20170017367A1 (en) Entry points to image-related applications in a mobile device
CN115689963B (en) Image processing method and electronic equipment
EP4199499A1 (en) Image capture method, graphical user interface, and electronic device
US20230224574A1 (en) Photographing method and apparatus
WO2023093169A1 (en) Photographing method and electronic device
CN115115679A (en) Image registration method and related equipment
CN116055868B (en) Shooting method and related equipment
EP4318281A1 (en) Unlocking method and electronic device
CN114449171B (en) Method for controlling camera, terminal device, storage medium and program product
CN114489429B (en) Terminal equipment, long screen capturing method and storage medium
CN115442509B (en) Shooting method, user interface and electronic equipment
CN117499526A (en) Shooting method, electronic device, chip system and computer readable storage medium
CN116684725B (en) Layout method and device of application interface, electronic equipment, storage medium and chip
CN113179362B (en) Electronic device and image display method thereof
CN116193243B (en) Shooting method and electronic equipment
CN114245011B (en) Image processing method, user interface and electronic equipment
CN116723382B (en) Shooting method and related equipment
WO2024088253A1 (en) Display method for foldable screen and electronic device
WO2024036998A1 (en) Display method, storage medium, and electronic device
WO2023072113A1 (en) Display method and electronic device
EP4296840A1 (en) Method and apparatus for scrolling to capture screenshot
EP4361805A1 (en) Method for generating theme wallpaper, and electronic device
CN117453086A (en) Sensitive resource access behavior recording method and electronic equipment

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