CN108388781B - Mobile terminal, image data acquisition method and related product - Google Patents

Mobile terminal, image data acquisition method and related product Download PDF

Info

Publication number
CN108388781B
CN108388781B CN201810094856.8A CN201810094856A CN108388781B CN 108388781 B CN108388781 B CN 108388781B CN 201810094856 A CN201810094856 A CN 201810094856A CN 108388781 B CN108388781 B CN 108388781B
Authority
CN
China
Prior art keywords
image data
camera
type
preset control
control
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.)
Expired - Fee Related
Application number
CN201810094856.8A
Other languages
Chinese (zh)
Other versions
CN108388781A (en
Inventor
王健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810094856.8A priority Critical patent/CN108388781B/en
Publication of CN108388781A publication Critical patent/CN108388781A/en
Application granted granted Critical
Publication of CN108388781B publication Critical patent/CN108388781B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a mobile terminal, an image data acquisition method and a related product, wherein the method comprises the following steps: detecting a starting request of a camera; selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and acquiring face image data according to the preset control, and executing face unlocking operation according to the face image data. The embodiment of the invention is beneficial to reducing the electric quantity consumption of the mobile terminal and the occupation of system resources, and improves the diversity of data acquisition of the mobile terminal.

Description

Mobile terminal, image data acquisition method and related product
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal, an image data acquisition method and a related product.
Background
With the popularization and application of smart phones in a large number, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and individuation and become indispensable electronic products in user life.
At present, a camera of a mobile terminal (e.g., a smart phone) is used in two native modes, one is a mode with a preview interface, which needs to transmit a control with an interface to a camera application for drawing and upload the control to the interface of the mobile terminal for displaying, and the other is a mode without the preview interface, in which the mobile terminal still transmits a control with an interface to the camera application for drawing but does not perform an interface display operation on the mobile terminal.
Disclosure of Invention
The embodiment of the invention provides a mobile terminal, an image data acquisition method and a related product, aiming at reducing the electric quantity consumption of the mobile terminal and the occupation of system resources and improving the diversity of data acquisition of the mobile terminal.
In a first aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a camera connected to the processor, where:
the memory is used for storing a preset control set;
the processor is used for detecting a starting request of the camera; the system comprises a preset control set and a control unit, wherein the preset control set is used for selecting a preset control in the preset control set according to the type of the starting request, and comprises a native control and the preset control;
the camera is used for acquiring face image data according to the preset control;
the processor is further configured to perform a face unlocking operation according to the face image data.
In a second aspect, an embodiment of the present invention provides an image data acquiring method, including:
detecting a starting request of a camera;
selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control;
and acquiring face image data according to the preset control, and executing face unlocking operation according to the face image data.
In a third aspect, an embodiment of the present invention provides an image data acquiring apparatus, including a detecting unit, a selecting unit, and an executing unit, wherein,
the detection unit is used for detecting a starting request of the camera;
the selecting unit is used for selecting a preset control in a preset control set according to the type of the starting request detected by the detecting unit, wherein the preset control set comprises a native control and the preset control;
the execution unit is used for acquiring the face image data according to the preset control selected by the selection unit and executing the face unlocking operation according to the face image data.
In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any of the methods in the second aspect of the present invention.
In a fifth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods in the second aspect of the present invention, and the computer includes a mobile terminal.
In a sixth aspect, the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods according to the second aspect of the embodiments of the present invention. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 2A is a schematic flow chart of a method for acquiring image data according to an embodiment of the present invention;
fig. 2B is a schematic view of an operation flow corresponding to a native control disclosed in the embodiment of the present invention;
fig. 2C is a schematic view of an operation flow corresponding to a preset control disclosed in the embodiment of the present invention;
FIG. 3 is a schematic flow chart of another image data acquisition method disclosed in the embodiments of the present invention;
FIG. 4 is a schematic flow chart diagram of another image data acquisition method disclosed in the embodiments of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of functional units of an image data acquisition apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present invention, where the mobile terminal 100 includes: the housing 110, the touch display screen 120, and the main board 130, wherein the main board 130 is provided with a processor 140, a memory 150, a camera 160, and the like, wherein,
the memory 140 is configured to store a preset control set;
the processor 150 is configured to detect a start request of the camera; the system comprises a preset control set and a control unit, wherein the preset control set is used for selecting a preset control in the preset control set according to the type of the starting request, and comprises a native control and the preset control;
the camera 160 is configured to obtain face image data according to the preset control;
the processor 150 is further configured to perform a face unlocking operation according to the face image data.
The camera 160 may be a front camera or a rear camera, and is not limited herein.
The touch display screen 120 includes a display driving circuit, a display screen, and a touch screen, where the display driving circuit is configured to control the display screen to display content according to display data and display parameters (e.g., brightness, color, saturation, etc.) of a picture, the touch screen is configured to detect a touch operation, and the display screen is an organic light emitting diode display screen OLED.
The size of the main board 130 may be any size and shape that can be accommodated by the mobile terminal, and is not limited herein.
The processor 140 is a control center of the mobile terminal, connects various parts of the entire mobile terminal by using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 150 and calling data stored in the memory 150, thereby integrally monitoring the mobile terminal. Optionally, the processor 140 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 140.
The memory 150 may be used to store software programs and modules, and the processor 140 executes various functional applications and data processing of the mobile terminal by operating the software programs and modules stored in the memory 150. The memory 150 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory 150 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In a possible example, in the aspect that the preset control in the preset control set is selected according to the type of the start request, the processor 140 is specifically configured to: determining the type of the starting request according to the starting request; and the preset control in the preset control set is selected when it is determined according to the type that the operation corresponding to the start request does not include a drawing operation for the preview interface of the camera 160.
In one possible example, the processor 140, after detecting the start request of the camera 160, is further configured to: determining the service type of the starting request according to the starting request; and the native control in the preset control set is selected when the operation corresponding to the starting request is judged to include the drawing operation aiming at the preview interface of the camera 160 according to the service type;
the camera 160 is configured to obtain image data of a preview interface of the camera 160;
the processor 140 is further configured to perform a processing operation of the image data and an interface rendering operation of the image data in parallel according to the native control.
In one possible example, in terms of the determining the type of the initiation request according to the initiation request, the processor 140 is specifically configured to: acquiring an event to be executed which triggers the starting request; and the method is used for determining the type of the starting request according to the event to be executed.
In this possible example, in terms of the determining the type of the initiation request according to the event to be executed, the processor 140 is specifically configured to: and querying a preset mapping relationship between the to-be-executed event and the type stored in the memory 150 by using the to-be-executed event as a query identifier, and determining the type of the start request corresponding to the to-be-executed event, where the type of the start request includes a first type and a second type, the operation corresponding to the first type includes a drawing operation for a preview interface of the camera 160, and the operation corresponding to the second type does not include a drawing operation for a preview interface of the camera 160.
In a possible example, in the aspect of acquiring the facial image data according to the preset control, the camera 160 is specifically configured to: determining image data of the camera 160 preview interface to be acquired as face image data according to the preset control; and for identifying at least one facial image in the camera 160 preview interface; and for determining the face image occupying the largest area of the preview interface of the camera 160 in the at least one face image; and the image data is used for obtaining the face image by adjusting the focal length of the camera 160, and the number of the pixel points of the image data is greater than a preset number threshold.
Referring to fig. 2A, fig. 2A is a schematic flowchart of an image data obtaining method according to an embodiment of the present invention, applied to a mobile terminal, where as shown in the figure, the image data obtaining method includes:
s201, the mobile terminal detects a starting request of a camera;
the method includes that a mobile terminal detects a start request of a camera in a screen-off state or in a screen-on state, the mobile terminal detects the start request of the camera, the mobile terminal detects a start request of a user for a camera application, the camera application triggers the start request of the camera to take a picture, the mobile terminal detects a screen to-be-unlocked event and performs face recognition unlocking on the start request of the camera, or the mobile terminal detects a payment unlocking event (for example, a to-be-unlocked event in a payment scene of an application such as a pay bank or a WeChat) and performs face unlocking recognition on the start request of the camera, and the like, and is not limited uniquely.
The mobile terminal comprises a face unlocking module, the face unlocking module is used for triggering the camera to acquire face image data, the face image data returned by the camera is processed, the face image data is matched with preset face image data, unlocking operation is triggered after the matching is successful, and unlocking events such as unlocking events and payment unlocking events can be triggered by the face unlocking module on a screen of the mobile terminal.
The start request of the camera may be a start request of a front camera, a start request of a rear camera, or a start request of two cameras, which is not limited herein.
S202, the mobile terminal selects a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control;
the type of the starting request can be classified according to an event targeted by the starting request, for example, the starting request is classified into a photographing type, an unlocking type, a payment type and the like, wherein the photographing type needs to perform interface drawing of image data and corresponds to a preview interface control in the native control, the unlocking type and the payment type do not need to perform interface drawing of the image data and correspond to a non-preview interface control in the native control or the preset control; or the type of the start request may be classified according to whether interface drawing display of the data acquired by the camera is required, for example, the data is classified into a first type requiring interface drawing and a second type not requiring interface drawing, and the like, which is not limited herein.
The native control comprises two photo controls which are commonly used by the current mobile terminal, as shown in fig. 2B, one is a control with a preview interface, the control is used for starting the camera to indicate that the camera needs to return data to an application or a module which sends the control for image data processing after acquiring image data, and the control comprises an interface to be drawn and indicates that the camera needs to draw the interface and upload the interface to a desktop for display after acquiring the image data; and the other control is a control without a preview interface, the use of the control to start the camera indicates that the camera also needs to return data to an application or a module sending the control for image data processing after acquiring image data, and the control also comprises an interface to be drawn, and indicates that the camera needs to draw the interface after acquiring the image data, but the interface does not need to be displayed on the interface of the mobile terminal. Therefore, in the native control, no matter there is a control with a preview interface or a control without a preview interface, copying and interacting of data between a camera application and an image rendering service corresponding to the camera and a calculation rendering operation of the central processing unit are required in the operations of rendering, uploading and displaying of image data, so that when an interface rendering operation is not required, the use of the control without the preview interface causes system resource waste and excessive consumption of electric quantity.
For example, as shown in fig. 2B, when the mobile terminal detects a start request of a camera, an application a triggering the start request sends a native control to the camera or controls a camera-type application of the camera, where the native control indicates that image data needs to be returned to an original application interface and provides an interface to be drawn, and therefore the camera or the camera-type application acquires the image data after receiving the native control, returns the image data to the application a for image data processing, performs interface drawing according to the image data, and uploads the image data to a desktop for display.
The preset control is a user-defined control required by the application, as shown in fig. 2C, the preset control indicates that the camera only needs to transmit the acquired image data to an application or a module which triggers the start of the camera, and an interface to be drawn is not provided, so that the camera application corresponding to the camera does not need to perform interface drawing and display operation on the acquired data.
For example, as shown in fig. 2C, when the mobile terminal detects a start request of a camera, an application a triggering the start request sends a preset control to the camera or controls a camera type application of the camera, where the preset control only indicates that image data needs to be returned to an original application interface, and therefore, the camera or the camera type application acquires the image data after receiving the preset control and returns the image data to the application a for image data processing.
And S203, the mobile terminal acquires the face image data according to the preset control and executes face unlocking operation according to the face image data.
The specific implementation manner of the mobile terminal acquiring the face image data according to the preview control may be various, for example, the image data in the preview interface may be acquired according to the current focal length, and then the image data is screened and identified to obtain the required face image data, or the required face image data may be acquired by blurring focusing or determining the distance from the camera in the process of acquiring the image data, and the like, which is not limited herein.
For example, the specific implementation manner of performing the face unlocking operation according to the face image data is various, and the specific implementation manner is not limited herein, and the face image recognition unlocking operation may be performed according to data of all pixel points of the face image, or may be performed according to unique feature data (such as scars, moles, and the like) of users in data of pixel points in a partial image of the face image.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In a possible example, the selecting a preset control in a preset control set according to the type of the start request includes:
determining the type of the starting request according to the starting request;
and when the operation corresponding to the starting request does not comprise the drawing operation aiming at the camera preview interface according to the type, selecting the preset control in the preset control set.
When the type is the payment type, the unlocking type or the second type, the operation corresponding to the starting request does not include a drawing operation for the camera preview interface.
The mobile terminal may preset a corresponding relationship between the type of the start request and whether the mobile terminal includes a drawing operation for the camera preview interface, and determine whether the operation corresponding to the type includes the drawing operation for the camera preview interface according to the corresponding relationship.
As can be seen, in this example, the mobile terminal first determines the type of the start request, and selects the preset control when it is determined according to the type of the start request that the operation corresponding to the type does not include the drawing operation for the camera preview interface, which is beneficial to accurately selecting the corresponding space by the mobile terminal and improves the accuracy of data processing.
In one possible example, after detecting the start request of the camera, the method further includes:
determining the type of the starting request according to the starting request;
when the operation corresponding to the starting request is judged to comprise drawing operation aiming at the camera preview interface according to the type, selecting the native control in the preset control set;
and acquiring image data of the camera preview interface, and executing the processing operation of the image data and the interface drawing operation of the image data in parallel according to the native control.
After the native control is determined, it may be determined that an event corresponding to the start request of the camera is not a face unlocking event, and therefore, the acquired image is not only a face image, but all image data in the current camera preview interface, or image data acquired according to the operation of the user.
As can be seen, in this example, when the mobile terminal determines that the corresponding operation includes a drawing operation for the camera preview interface according to the type of the start request, the mobile terminal selects the native control, and determines that the acquired image data is image data in the preview interface instead of face data according to the native control, which is beneficial to improving accuracy of data acquisition and increasing speed of data acquisition.
In one possible example, the determining the type of the initiation request according to the initiation request includes:
acquiring an event to be executed which triggers the starting request;
and determining the type of the starting request according to the event to be executed.
The event to be executed may be the above-mentioned event to be unlocked for payment, event to be unlocked for screen, event to be shot by camera, or the like, which is not limited herein.
For example, the mobile terminal detects that the event to be executed is a payment event to be unlocked, the face unlocking module executing the payment event to be unlocked triggers the starting request of the camera, and the type of the starting request can be determined according to the payment event to be unlocked.
The mobile terminal may be configured to preset, by a technician before shipment, a mapping relationship between the event to be executed and the type of the start request, and determine the type of the start request according to the mapping relationship.
Therefore, in this example, the mobile terminal first acquires the event to be executed that triggers the start request, and determines the type of the start request according to the event to be executed, which is beneficial to improving the convenience of data acquisition of the mobile terminal and improving the efficiency of data acquisition.
In this possible example, the determining the type of the initiation request according to the event to be executed includes:
and querying a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determining the type of the starting request corresponding to the event to be executed, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
Therefore, in this example, the mobile terminal divides the type of the start request into the first type and the second type according to whether the preview interface of the camera needs to be drawn, instead of dividing the type into a plurality of types according to the purpose of the event to be executed, so that the classification of the types is simplified, the convenience of the mobile terminal in selecting the control is improved, and the processing efficiency of the mobile terminal is improved.
In one possible example, the acquiring the facial image data according to the preset control includes:
determining image data of the camera preview interface to be acquired as face image data according to the preset control;
identifying at least one face image in the camera preview interface;
determining a face image occupying the largest area of the camera preview interface in the at least one face image;
and acquiring image data of the face image by adjusting the focal length of the camera, wherein the number of pixel points of the image data is greater than a preset number threshold.
The camera can determine that the face unlocking event is to be executed through the preset control, and therefore the image data to be acquired can be determined to be the face image data through the acquired preset control.
Therefore, in this example, the mobile terminal can inform the camera of the data to be acquired as the face image data by selecting the control instead of all data of the current camera preview interface, so that the pertinence of the camera to acquire the image data is improved, the data amount of image processing is reduced, and when a plurality of face images exist, the image occupying the largest area in the preview interface is acquired as the face image which is currently required.
Referring to fig. 3, fig. 3 is a schematic flowchart of an image data obtaining method according to an embodiment of the present invention, and the method is applied to a mobile terminal. As shown in the figure, the image data acquisition method includes:
s301, the mobile terminal detects a starting request of the camera.
S302, the mobile terminal determines the type of the starting request according to the starting request.
And S303, when the mobile terminal judges that the operation corresponding to the starting request does not include the drawing operation aiming at the camera preview interface according to the type, selecting the preset control in a preset control set.
The preset control set comprises a native control and the preset control.
S304, the mobile terminal determines the image data of the camera preview interface to be acquired as the face image data according to the preset control.
S305, the mobile terminal identifies at least one face image in the camera preview interface.
S306, the mobile terminal determines the face image occupying the largest area of the camera preview interface in the at least one face image.
S307, the mobile terminal obtains the image data of the face image by adjusting the focal length of the camera, and the number of the pixel points of the image data is larger than a preset number threshold.
And S308, the mobile terminal executes a face unlocking operation according to the face image data.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In addition, the mobile terminal firstly determines the type of the starting request, and selects the preset control when judging that the operation corresponding to the type does not include the drawing operation aiming at the camera preview interface according to the type of the starting request, so that the mobile terminal can accurately select the corresponding space, and the accuracy of data processing is improved.
In addition, the mobile terminal can inform the camera of the data to be acquired as the face image data through selecting the control instead of all data of the current camera preview interface, the pertinence of the camera to acquire the image data is improved, the data volume of image processing is reduced, and when a plurality of face images exist, the image occupying the largest area in the preview interface is acquired as the face image which is needed currently.
Referring to fig. 4, fig. 4 is a schematic flowchart of an image data obtaining method according to an embodiment of the present invention, and the method is applied to a mobile terminal. As shown in the figure, the image data acquisition method includes:
s401, the mobile terminal detects a starting request of the camera.
S402, the mobile terminal acquires the event to be executed which triggers the starting request.
And S403, the mobile terminal queries a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determines the type of the start request corresponding to the event to be executed, wherein the type of the start request comprises a first type and a second type.
The operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
S404, when the mobile terminal judges that the operation corresponding to the starting request does not include the drawing operation aiming at the camera preview interface according to the type, the mobile terminal selects the preset control in a preset control set.
The preset control set comprises a native control and the preset control.
S405, the mobile terminal determines the image data of the camera preview interface to be acquired as the face image data according to the preset control.
S406, the mobile terminal identifies at least one face image in the camera preview interface.
S407, the mobile terminal determines the face image occupying the largest area of the camera preview interface in the at least one face image.
S408, the mobile terminal obtains the image data of the face image by adjusting the focal length of the camera, and the number of the pixel points of the image data is larger than a preset number threshold.
And S409, the mobile terminal executes face unlocking operation according to the face image data.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In addition, the mobile terminal firstly acquires the event to be executed which triggers the starting request, and determines the type of the starting request according to the event to be executed, so that the convenience of acquiring the data of the mobile terminal is improved, and the data acquisition efficiency is improved. Moreover, the type of the starting request is divided into a first type and a second type according to whether a preview interface of the camera needs to be drawn or not, and is not divided into a plurality of types according to the purpose of the event to be executed, so that the classification of the types is simplified, the convenience of selecting the control by the mobile terminal is facilitated, and the processing efficiency of the mobile terminal is improved.
In addition, the mobile terminal can inform the camera of the data to be acquired as the face image data through selecting the control instead of all data of the current camera preview interface, the pertinence of the camera to acquire the image data is improved, the data volume of image processing is reduced, and when a plurality of face images exist, the image occupying the largest area in the preview interface is acquired as the face image which is needed currently.
In accordance with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in the drawing, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
detecting a starting request of a camera;
selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control;
and acquiring face image data according to the preset control, and executing face unlocking operation according to the face image data.
It can be seen that, in the embodiment of the present invention, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In a possible example, in the aspect of selecting a preset control in the preset control set according to the type of the start request, the instructions in the program are specifically configured to perform the following steps: determining the type of the starting request according to the starting request; and the preset control in the preset control set is selected when the operation corresponding to the starting request is judged not to include the drawing operation aiming at the camera preview interface according to the type.
In one possible example, the program further includes instructions for performing the steps of: after the starting request of the camera is detected, determining the type of the starting request according to the starting request; the native control in the preset control set is selected when the operation corresponding to the starting request is judged to comprise the drawing operation aiming at the camera preview interface according to the type; and the image data processing unit is used for acquiring the image data of the camera preview interface and executing the processing operation of the image data and the interface drawing operation of the image data in parallel according to the native control.
In one possible example, in the aspect of determining the type of the activation request according to the activation request, the instructions in the program are specifically configured to perform the following steps: acquiring an event to be executed which triggers the starting request; and the method is used for determining the type of the starting request according to the event to be executed.
In this possible example, in terms of the determining the type of the initiation request according to the event to be executed, the instructions in the program are specifically configured to perform the following steps: and querying a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determining the type of the starting request corresponding to the event to be executed, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
In a possible example, in the aspect of acquiring the facial image data according to the preset control, the instructions in the program are specifically configured to perform the following steps: determining image data of the camera preview interface to be acquired as face image data according to the preset control; the system comprises a camera preview interface, a display interface and a display interface, wherein the camera preview interface is used for displaying at least one face image; the face image which occupies the largest area of the camera preview interface in the at least one face image is determined; and the image data is used for acquiring the image data of the face image by adjusting the focal length of the camera, and the number of pixel points of the image data is greater than a preset number threshold.
The above description has introduced the solution of the embodiment of the present invention mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware 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 invention.
The embodiment of the present invention may perform the division of the functional units for the mobile terminal according to the method example described above, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of an image data acquisition apparatus 600 according to an embodiment of the present application. The image data acquisition apparatus 600 is applied to a mobile terminal, and the image data acquisition apparatus 600 includes: a detection unit 601, a selection unit 602, and an execution unit 603, wherein,
the detection unit 601 is configured to detect a start request of a camera;
the selecting unit 602 is configured to select a preset control in a preset control set according to the type of the start request detected by the detecting unit 601, where the preset control set includes a native control and the preset control;
the executing unit 603 is configured to obtain face image data according to the preset control selected by the selecting unit 602, and execute a face unlocking operation according to the face image data.
It can be seen that, in the embodiment of the application, the mobile terminal first detects a start request of the camera; secondly, selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control; and finally, acquiring the face image data according to the preset control, and executing face unlocking operation according to the face image data. Therefore, when the mobile terminal detects a starting request of the camera, the type of the starting request is determined through scene recognition, the preset control added besides the native control is selected according to the type of the starting request, the defects caused by the fact that the native control is used completely are avoided, the diversity of data acquisition of the mobile terminal is improved, in addition, only the face unlocking operation is executed on the acquired face image data according to the preset control, and the electric quantity consumption and the resource occupation caused by the fact that the native control previews the interface drawing operation when the camera is used are reduced.
In a possible example, in the aspect of selecting a preset control in a preset control set according to the type of the start request, the selecting unit 602 is specifically configured to: determining the type of the starting request according to the starting request; and the preset control in the preset control set is selected when the operation corresponding to the starting request is judged not to include the drawing operation aiming at the camera preview interface according to the type.
In a possible example, the selecting unit 602 is further configured to, after the start request of the camera is detected, determine a type of the start request according to the start request; the native control in the preset control set is selected when the operation corresponding to the starting request is judged to comprise the drawing operation aiming at the camera preview interface according to the type;
the executing unit 603 is further configured to obtain image data of the camera preview interface, and execute a processing operation of the image data and an interface drawing operation of the image data in parallel according to the native control selected by the selecting unit 602.
In a possible example, in the aspect of determining the type of the start request according to the start request, the selecting unit 602 is specifically configured to: acquiring an event to be executed which triggers the starting request; and the method is used for determining the type of the starting request according to the event to be executed.
In this possible example, in the aspect of determining the type of the start request according to the event to be executed, the selecting unit 602 is specifically configured to: and querying a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determining the type of the starting request corresponding to the event to be executed, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
In a possible example, in terms of the acquiring the face image data according to the preset control, the executing unit 603 is specifically configured to: determining image data of the camera preview interface to be acquired as face image data according to the preset control; the system comprises a camera preview interface, a display interface and a display interface, wherein the camera preview interface is used for displaying at least one face image; the face image which occupies the largest area of the camera preview interface in the at least one face image is determined; and the image data is used for acquiring the image data of the face image by adjusting the focal length of the camera, and the number of pixel points of the image data is greater than a preset number threshold.
The detecting unit 601 and the selecting unit 602 may be processors, and the executing unit 603 may be a camera and a processor.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (20)

1. A mobile terminal comprising a processor, a memory coupled to the processor, and a camera, wherein:
the memory is used for storing a preset control set;
the processor is used for detecting a starting request of the camera; and is used for selecting the preset control in the preset control set according to the type of the starting request, the preset control set comprises a native control and the preset control, the native control comprises a preview interface control and a non-preview interface control, the control with the preview interface and the control without the preview interface both provide interfaces to be drawn, the preset control does not provide an interface to be drawn, the native control is used for instructing the camera or a camera application controlling the camera to execute the operation of returning the acquired image data to the application triggering the starting request for image data processing and the operation of drawing the interface to be drawn according to the image data, the preset control is only used for indicating the camera or controlling a camera application of the camera to execute the operation of returning the acquired image data to the application triggering the starting request to process the image data;
the camera is used for acquiring face image data according to the preset control;
the processor is further configured to perform a face unlocking operation according to the face image data.
2. The mobile terminal according to claim 1, wherein in the aspect of selecting a preset control in the preset control set according to the type of the start request, the processor is specifically configured to: determining the type of the starting request according to the starting request; and the preset control in the preset control set is selected when the operation corresponding to the starting request is judged not to include the drawing operation aiming at the camera preview interface according to the type.
3. The mobile terminal of claim 1, wherein the processor, after detecting the request for activation of the camera, is further configured to: determining the type of the starting request according to the starting request; the native control in the preset control set is selected when the operation corresponding to the starting request is judged to comprise the drawing operation aiming at the camera preview interface according to the type;
the camera is used for acquiring image data of the camera preview interface;
the processor is further configured to execute the processing operation of the image data and the interface drawing operation of the image data in parallel according to the native control.
4. A mobile terminal according to claim 2 or 3, wherein, in said determining the type of the initiation request from the initiation request, the processor is specifically configured to: acquiring an event to be executed which triggers the starting request; and the method is used for determining the type of the starting request according to the event to be executed.
5. The mobile terminal according to claim 4, wherein in the aspect of determining the type of the initiation request according to the event to be executed, the processor is specifically configured to: and querying a preset mapping relation between the to-be-executed event and the type stored in the memory by using the to-be-executed event as a query identifier, and determining the type of the starting request corresponding to the to-be-executed event, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
6. The mobile terminal according to claim 1, wherein in the aspect of obtaining the face image data according to the preset control, the camera is specifically configured to: determining image data of the camera preview interface to be acquired as face image data according to the preset control; the system comprises a camera preview interface, a display interface and a display interface, wherein the camera preview interface is used for displaying at least one face image; the face image which occupies the largest area of the camera preview interface in the at least one face image is determined; and the image data is used for acquiring the image data of the face image by adjusting the focal length of the camera, and the number of pixel points of the image data is greater than a preset number threshold.
7. An image data acquisition method characterized by comprising:
detecting a starting request of a camera;
selecting a preset control in a preset control set according to the type of the starting request, wherein the preset control set comprises a native control and the preset control, the native control comprises a preview interface control and a non-preview interface control, the preview interface control and the non-preview interface control both provide interfaces to be drawn, the preset control does not provide an interface to be drawn, the native control is used for indicating the camera or controlling a camera application of the camera to execute the operation of returning the acquired image data to the application triggering the starting request for image data processing and executing the operation of drawing the interface to be drawn according to the image data, the preset control is only used for indicating the camera or controlling a camera application of the camera to execute the operation of returning the acquired image data to the application triggering the starting request to process the image data;
and acquiring face image data according to the preset control, and executing face unlocking operation according to the face image data.
8. The method according to claim 7, wherein the selecting a preset control in a preset control set according to the type of the start request comprises:
determining the type of the starting request according to the starting request;
and when the operation corresponding to the starting request does not comprise the drawing operation aiming at the camera preview interface according to the type, selecting the preset control in the preset control set.
9. The method of claim 7, wherein after detecting a request to activate a camera, the method further comprises:
determining the type of the starting request according to the starting request;
when the operation corresponding to the starting request is judged to comprise drawing operation aiming at the camera preview interface according to the type, selecting the native control in the preset control set;
and acquiring image data of the camera preview interface, and executing the processing operation of the image data and the interface drawing operation of the image data in parallel according to the native control.
10. The method according to claim 8 or 9, wherein the determining the type of the initiation request according to the initiation request comprises:
acquiring an event to be executed which triggers the starting request;
and determining the type of the starting request according to the event to be executed.
11. The method of claim 10, wherein the determining the type of the initiation request according to the event to be executed comprises:
and querying a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determining the type of the starting request corresponding to the event to be executed, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
12. The method according to claim 7, wherein the obtaining the facial image data according to the preset control comprises:
determining image data of the camera preview interface to be acquired as face image data according to the preset control;
identifying at least one face image in the camera preview interface;
determining a face image occupying the largest area of the camera preview interface in the at least one face image;
and acquiring image data of the face image by adjusting the focal length of the camera, wherein the number of pixel points of the image data is greater than a preset number threshold.
13. An image data acquisition apparatus, comprising a detection unit, a selection unit, and an execution unit, wherein,
the detection unit is used for detecting a starting request of the camera;
the selecting unit is configured to select a preset control in a preset control set according to the type of the start request detected by the detecting unit, where the preset control set includes a native control and the preset control, the native control includes a preview interface control and a non-preview interface control, both the preview interface control and the non-preview interface control provide an interface to be drawn, the preset control does not provide an interface to be drawn, the native control is configured to instruct the camera or control a camera application of the camera to execute an operation of returning acquired image data to an application triggering the start request for image data processing and an operation of drawing the interface to be drawn according to the image data, and the preset control is only configured to instruct the camera or control the camera application of the camera to execute an operation of returning acquired image data to the application triggering the start request for image data processing Operating;
the execution unit is used for acquiring the face image data according to the preset control selected by the selection unit and executing the face unlocking operation according to the face image data.
14. The apparatus according to claim 13, wherein in the aspect of selecting a preset control in a preset control set according to the type of the start request, the selecting unit is specifically configured to: determining the type of the starting request according to the starting request; and the preset control in the preset control set is selected when the operation corresponding to the starting request is judged not to include the drawing operation aiming at the camera preview interface according to the type.
15. The apparatus according to claim 13, wherein the selecting unit is further configured to, after the detection of the start request of the camera, determine a type of the start request according to the start request; the native control in the preset control set is selected when the operation corresponding to the starting request is judged to comprise the drawing operation aiming at the camera preview interface according to the type;
the execution unit is further configured to acquire image data of the camera preview interface, and execute a processing operation of the image data and an interface drawing operation of the image data in parallel according to the native control selected by the selection unit.
16. The apparatus according to claim 14 or 15, wherein, in the aspect of determining the type of the start request according to the start request, the selecting unit is specifically configured to: acquiring an event to be executed which triggers the starting request; and the method is used for determining the type of the starting request according to the event to be executed.
17. The apparatus according to claim 16, wherein in the aspect of determining the type of the start request according to the event to be executed, the selecting unit is specifically configured to: and querying a preset mapping relation between the event to be executed and the type by using the event to be executed as a query identifier, and determining the type of the starting request corresponding to the event to be executed, wherein the type of the starting request comprises a first type and a second type, the operation corresponding to the first type comprises a drawing operation aiming at the camera preview interface, and the operation corresponding to the second type does not comprise the drawing operation aiming at the camera preview interface.
18. The apparatus according to claim 13, wherein in the aspect of acquiring the face image data according to the preset control, the execution unit is specifically configured to: determining image data of the camera preview interface to be acquired as face image data according to the preset control; the system comprises a camera preview interface, a display interface and a display interface, wherein the camera preview interface is used for displaying at least one face image; the face image which occupies the largest area of the camera preview interface in the at least one face image is determined; and the image data is used for acquiring the image data of the face image by adjusting the focal length of the camera, and the number of pixel points of the image data is greater than a preset number threshold.
19. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs stored in the memory and configured for execution by the processor, the programs including instructions for performing the steps in the method of any of claims 7-12.
20. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 7-12, the computer comprising a mobile terminal.
CN201810094856.8A 2018-01-31 2018-01-31 Mobile terminal, image data acquisition method and related product Expired - Fee Related CN108388781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810094856.8A CN108388781B (en) 2018-01-31 2018-01-31 Mobile terminal, image data acquisition method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810094856.8A CN108388781B (en) 2018-01-31 2018-01-31 Mobile terminal, image data acquisition method and related product

Publications (2)

Publication Number Publication Date
CN108388781A CN108388781A (en) 2018-08-10
CN108388781B true CN108388781B (en) 2021-01-12

Family

ID=63074296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810094856.8A Expired - Fee Related CN108388781B (en) 2018-01-31 2018-01-31 Mobile terminal, image data acquisition method and related product

Country Status (1)

Country Link
CN (1) CN108388781B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091031A (en) * 2018-10-24 2020-05-01 北京旷视科技有限公司 Target object selection method and face unlocking method
CN109886009A (en) * 2019-01-03 2019-06-14 广东智媒云图科技股份有限公司 A kind of more equipment linkage unlocking methods, electronic equipment and storage medium
CN111209554B (en) * 2019-04-23 2021-08-31 云启智慧科技有限公司 Area analysis-based mobile terminal authorized access method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017204406A1 (en) * 2016-05-25 2017-11-30 엠텍비젼 주식회사 Device and method for detecting eye position of driver, and imaging device having rolling shutter driving type image sensor and lighting control method therefor

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101845318B1 (en) * 2010-11-29 2018-05-18 포토내이션 리미티드 Portrait image synthesis from multiple images captured on a handheld device
CN104539844A (en) * 2014-12-18 2015-04-22 深圳市金立通信设备有限公司 Terminal
CN104767937A (en) * 2015-03-27 2015-07-08 深圳市艾优尼科技有限公司 Photographing method
CN105959530A (en) * 2016-04-26 2016-09-21 乐视控股(北京)有限公司 Method and system for invoking a camera function according to an individualized property of an application
CN106060390A (en) * 2016-06-24 2016-10-26 联想(北京)有限公司 Information processing method and electronic device
CN106060391B (en) * 2016-06-27 2020-02-21 联想(北京)有限公司 Processing method and device for working mode of camera and electronic equipment
CN106775424A (en) * 2017-01-13 2017-05-31 维沃移动通信有限公司 A kind of screenshotss processing method and mobile terminal
CN107172345B (en) * 2017-04-07 2020-02-04 深圳市金立通信设备有限公司 Image processing method and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017204406A1 (en) * 2016-05-25 2017-11-30 엠텍비젼 주식회사 Device and method for detecting eye position of driver, and imaging device having rolling shutter driving type image sensor and lighting control method therefor

Also Published As

Publication number Publication date
CN108388781A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN109407936B (en) Screenshot method and related device
EP3125135A1 (en) Picture processing method and device
CN106407984B (en) Target object identification method and device
CN108388781B (en) Mobile terminal, image data acquisition method and related product
CN105979125A (en) Photographing method and system based on screen light supplement
CN105320695A (en) Picture processing method and device
CN111901896A (en) Information sharing method, information sharing device, electronic equipment and storage medium
EP3471015A1 (en) Face recognition method and related product
CN107480601B (en) Detection method and related product
CN109639896A (en) Block object detecting method, device, storage medium and mobile terminal
CN112565599A (en) Image shooting method and device, electronic equipment, server and storage medium
US10798302B2 (en) Method of capturing based on usage status of electronic device and related products
CN108429879B (en) Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium
CN107566746B (en) Photographing method and user terminal
CN104735348A (en) Double-camera photographing method and system
CN112748827A (en) Screenshot sharing method and device, terminal equipment and storage medium
CN108093177B (en) Image acquisition method and device, storage medium and electronic equipment
CN107657219B (en) Face detection method and related product
US10143033B2 (en) Communications apparatus, control method, and storage medium
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
CN105094975A (en) Method and device for calling application program
CN111373728B (en) Control method and device for camera application
CN110266926B (en) Image processing method, image processing device, mobile terminal and storage medium
CN105450867A (en) Communication method and device based on picture information
CN109408718B (en) Information pushing method and related product

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210112

CF01 Termination of patent right due to non-payment of annual fee