CN108429879B - Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium - Google Patents

Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium Download PDF

Info

Publication number
CN108429879B
CN108429879B CN201810150142.4A CN201810150142A CN108429879B CN 108429879 B CN108429879 B CN 108429879B CN 201810150142 A CN201810150142 A CN 201810150142A CN 108429879 B CN108429879 B CN 108429879B
Authority
CN
China
Prior art keywords
camera
service
preset service
priority
preset
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
CN201810150142.4A
Other languages
Chinese (zh)
Other versions
CN108429879A (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 CN201810150142.4A priority Critical patent/CN108429879B/en
Publication of CN108429879A publication Critical patent/CN108429879A/en
Application granted granted Critical
Publication of CN108429879B publication Critical patent/CN108429879B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements

Abstract

The embodiment of the application discloses electronic equipment, a camera control method and a related product. The method comprises the following steps: in the process that a face recognition service uses a camera to collect a face image, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state; when a use request of the preset service for the camera is detected, determining the use priority of the preset service for the camera; and when the fact that the use priority of the preset service is higher than that of the face recognition service for the camera is detected, the use right of the camera is distributed to the preset service. The embodiment of the application is favorable for improving the reliability and the practicability of the preset service using the camera.

Description

Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium
Technical Field
The application relates to the technical field of mobile terminals, in particular to an electronic device, a camera control method and a related product.
Background
With the progress of society and the development of science, information interaction is more and more frequent, and in order to ensure the safety of information, the identity of a user needs to be verified, so biometric identification is often used, for example: fingerprint identification, face identification, iris identification, vein identification, palm print identification and other biological identification technologies.
At present, a digital password, a combined password of numbers and letters, a fingerprint password and a face image are generally used as an unlocking password of a screen locking interface, and particularly, the convenience and the safety of unlocking the screen locking interface are greatly improved by using a face recognition service.
Disclosure of Invention
The embodiment of the application provides electronic equipment, a camera control method and a related product, and can improve the reliability and the practicability of service or application using a camera.
In a first aspect, an embodiment of the present application provides an electronic device, including a processor, a camera connected to the processor, and a memory, where,
the camera is used for starting the service and application which need to use the camera;
the memory is used for storing the face image acquired by the camera;
the processor is used for detecting a use request of a preset service for the camera in the process that the face recognition service uses the camera to collect a face image, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state; the camera management system comprises a camera, a preset service module and a control module, wherein the camera is used for acquiring a preset service request of the preset service; and the system is used for allocating the use right of the camera to the preset service when the use priority of the preset service is higher than the use priority of the face recognition service for the camera.
In a second aspect, an embodiment of the present application provides a camera control method, including:
in the process that a face recognition service uses a camera to collect a face image, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state;
when a use request of the preset service for the camera is detected, determining the use priority of the preset service for the camera;
and when the fact that the use priority of the preset service is higher than that of the face recognition service for the camera is detected, the use right of the camera is distributed to the preset service.
In a third aspect, an embodiment of the present application provides an electronic device, including a detection unit, a determination unit and a processing unit,
the detection unit is used for detecting a use request of a preset service for the camera in the process that the face recognition service uses the camera to collect a face image, the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state;
the determining unit is configured to determine a usage priority of the preset service for the camera when a usage request of the preset service for the camera is detected;
the processing unit is used for allocating the use right of the camera to the preset service when detecting that the use priority of the preset service for the camera is higher than the use priority of the face recognition service for the camera.
In a fourth aspect, an embodiment of the present application provides an electronic device, 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 performing the steps of any of the methods of the first aspect of the embodiment of the present application.
In a fifth aspect, this application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps as described in any one of the methods of the first aspect of this application.
In a sixth aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. The reliability and the practicability of the preset service using the camera are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 application, 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 an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a camera control method disclosed in an embodiment of the present application;
fig. 3 is a schematic flowchart of another camera control method disclosed in the embodiment of the present application;
fig. 4 is a schematic flowchart of another camera control method disclosed in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a face camera control device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the accompanying 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 application. 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 electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, where the electronic device 100 includes: the electronic device comprises a shell 110, a circuit board 120 arranged in the shell 110, a display screen 130 and a camera 140 which are arranged on the shell 110, wherein a processor 121, a sensor 122 and a memory 123 are arranged on the circuit board 120, the sensor 122 and the memory 123 are connected with the processor 121, and the processor 121 is connected with the display screen 130; wherein the content of the first and second substances,
the camera 140 is used for enabling services and applications which need to use the camera;
the memory 123 is configured to store a face image acquired by the camera;
the processor 121 is configured to detect a use request of a preset service for the camera in a process that the face recognition service uses the camera to acquire a face image, where the preset service includes services that need to use the camera except for the face recognition service, and the electronic device is in a bright-screen and locked-screen state; the camera management system comprises a camera, a preset service module and a control module, wherein the camera is used for acquiring a preset service request of the preset service; and the system is used for allocating the use right of the camera to the preset service when the use priority of the preset service is higher than the use priority of the face recognition service for the camera.
The sensor comprises multiple types of sensors of the electronic equipment, such as a distance sensor, and the distance sensor can be used for acquiring the face of the current user when the distance between the face of the current user and the electronic equipment is detected to be within a preset distance range, so that the definition and the integrity of the acquired face image of the face of the user can be improved.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In one possible example, in terms of the determining the priority of use of the preset service for the camera, the processor 121 is specifically configured to: inquiring whether the target service set comprises the preset service or not; and if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; and the priority used for determining the new setting is the use priority of the preset service for the camera.
In one possible example, in terms of the determining the priority of use of the preset service for the camera, the processor 121 is specifically configured to: querying a preset use priority set aiming at the camera, and determining a use priority corresponding to the preset service, wherein the use priority set comprises a corresponding relation between the service and the use priority aiming at the camera.
In one possible example, in terms of assigning the right to use the camera to the preset service, the processor 121 is specifically configured to: recovering the use right of the face recognition service for the camera; and the use right of the camera is configured for the preset service.
In one possible example, the application associated with the preset service includes any one of: the system comprises a video chat application, a screen locking camera application and a third party photographing application.
Referring to fig. 2, fig. 2 is a schematic flowchart of a camera control method provided in the embodiment of the present application, and is applied to the electronic device shown in fig. 1, where as shown in the diagram, the camera control method includes:
s201, in the process that the electronic equipment uses the camera to collect the face image in the face recognition service, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state.
The preset service includes a service that requires a camera in addition to the face recognition service, and the preset service is associated with an application, for example, a video chat service that may be WeChat.
The camera of the electronic device has exclusivity, when a preset service is used for the camera, the right of use of the camera needs to be applied first, in the process of using the camera, other preset services cannot be applied to the right of use of the camera, namely the camera cannot be used, and only after the preset service using the camera releases the right of use of the camera, other preset services can be applied to use the camera. The preset service using the camera does not release the right of use of the camera, and other preset services cannot use the camera.
The method comprises the steps that a camera is used for acquiring a face image in a face recognition service, the face recognition service has the right of using the camera at the moment, when the face recognition service is performed on a screen locking interface, a screen locking camera cannot be opened and cannot receive video chat messages, when a comprehensive screen mobile phone with the face recognition service is used, the face recognition service can be automatically performed when the mobile phone is in a bright screen state, although the process of the face recognition service is short, sometimes a user only wants to use the screen locking camera service, the face recognition service is performed preferentially at the moment, the user cannot use the screen locking camera service, and the camera can be used only after the face recognition successfully unlocks the mobile phone.
When the electronic equipment is in a bright screen and locked screen state, face recognition service can be carried out, in the process that the face recognition service uses the camera, the electronic equipment can detect the use request of the camera by preset service, and the preset service is the service which needs to use the camera except the face recognition service.
S202, when the electronic equipment detects the use request of the preset service for the camera, determining the use priority of the preset service for the camera.
The method comprises the steps that in the process that a camera is used for acquiring a face image by face recognition service, if a use request of preset service for the camera is detected, the priority of the preset service for the camera can be determined, the default of the electronic equipment is that the preset service for the camera is used without priority, namely, the preset service for the camera is the same level, and in the method, the priority of the preset service for the camera in use can be set.
S203, when detecting that the use priority of the preset service is higher than that of the face recognition service for the camera, the electronic equipment allocates the use right of the camera to the preset service.
When detecting that the use priority of the preset service is higher than that of the face recognition service for the camera, the electronic equipment controls the face recognition service to release the use right of the camera, and allocates the use right of the camera to the preset service.
When the face recognition service acquires the face image, if the preset service needs to use the camera but the priority of the preset service is lower than that of the face recognition service, the face recognition service is continuously executed, the electronic equipment is unlocked after the face recognition service is successful, and the use request of the preset service for the camera can be responded again.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In one possible example, the determining the priority of use of the preset service for the camera includes: inquiring whether the target service set comprises the preset service or not; if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; determining the newly set priority as the use priority of the preset service for the camera.
All services needing to use the camera except for face recognition in the electronic equipment can be preset services, a user can perform priority ranking on part of the preset services, and the preset services with the priority ranking are set as a target service set.
When the face recognition service is performed, if a preset service is detected and the target service set comprises the preset service, the use priority of the preset service for the camera can be set, and the priority is changed to be higher than the use priority of the face recognition service team camera.
In this example, in the face recognition process, when the preset service is detected, the priority of the preset service is changed to make the priority of the preset service for using the camera higher than the priority of the face recognition service team camera, so that the priority of the preset service for using the camera is dynamically adjusted, and thus the face recognition process can be interrupted and the preset service can be started.
In one possible example, the determining the priority of use of the preset service for the camera includes: querying a preset use priority set aiming at the camera, and determining a use priority corresponding to the preset service, wherein the use priority set comprises a corresponding relation between the service and the use priority aiming at the camera.
The user can set the priority of the camera for the preset service through the electronic equipment, when two preset services use the camera at the same time, the preset service with high priority can apply for the use right of the camera, or when the preset service with low priority uses the camera, the preset service with high priority also uses the camera, the electronic equipment can control the preset service with low priority to release the use right of the camera, and the use right of the camera is distributed to the preset service with high priority.
When a preset service is detected, determining a use priority corresponding to the preset service by inquiring a preset use priority set aiming at the camera, wherein the use priority set comprises a corresponding relation between the service and the use priority aiming at the camera.
As can be seen, in this example, by querying a preset usage priority set for the camera, a usage priority corresponding to a preset service and a usage priority corresponding to a face recognition service can be determined, so as to determine whether to execute the face recognition service or the preset service currently.
In one possible example, the assigning the right to use the camera to the preset service includes: recovering the use right of the face recognition service for the camera; and configuring the use right of the camera for the preset service.
The right of use of the camera is distributed to the preset service, the right of use of the camera by the face recognition service needs to be recovered first, namely the right of use of the camera is released by the face recognition service, then the right of use of the camera is distributed to the preset service, and the face recognition service is stopped when the right of use of the camera is released by the face recognition service.
It can be seen that, in this example, when the electronic device is in the bright-screen lock-screen interface, in the process of performing the face recognition service, if it is detected that the preset service that uses the camera has a higher priority than the face recognition service requires the use of the camera, the face recognition service is stopped in time, and the right of use of the camera is configured to the preset service, so that the preset service can be used on the lock-screen interface.
In one possible example, the application associated with the preset service includes any one of: the system comprises a video chat application, a screen locking camera application and a third party photographing application.
The preset service is associated with an application, and the associated application may include a video chat application (such as WeChat, QQ and the like), an online live broadcast application (such as live pepper and live broadcast), a screen-lock camera application and a third-party photographing application (such as a beauty camera and a beauty show).
The priority of the preset service is set, for example, the priority ranking of the preset service may be: video chat application, screen locking camera application, face recognition service, third party photographing application. For example, after the priority ranking is set, when a user picks up the mobile phone, the screen locking interface is presented after the mobile phone is turned on, then the mobile phone starts to start the camera to perform the face recognition service, at this time, the wechat application sends a video chat request, and the face recognition service can be stopped from allocating the use right of the camera to the video chat service of the wechat application.
Therefore, in this example, the preset service can be set by the user, and meanwhile, the priority of the preset service for using the camera can be dynamically adjusted, so that the user can dynamically adjust the priority of the application or service requiring the use of the camera to the camera according to the use requirement of the camera of the electronic device, thereby being beneficial to adjusting the sequence of enabling the preset service by the electronic device.
Referring to fig. 3, fig. 3 is a schematic flowchart of a camera control method provided in the embodiment of the present application, and is applied to the electronic device shown in fig. 1, where as shown in the diagram, the camera control method includes:
s301, in the process that the electronic equipment uses the camera to collect the face image in the face recognition service, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state.
S302, when the electronic equipment detects that the preset service is used for the camera, whether a target service set comprises the preset service is inquired.
And S303, if the target service set comprises the preset service, the electronic equipment sets the use priority of the preset service for the camera to be higher than that of the face recognition service.
S304, the electronic equipment determines the newly set priority as the use priority of the preset service for the camera.
S305, when detecting that the use priority of the preset service is higher than that of the face recognition service for the camera, the electronic equipment allocates the use right of the camera to the preset service.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In addition, in the face recognition process, when the preset service is detected, the priority of the preset service is changed to enable the use priority of the preset service to the camera to be higher than that of the face recognition service team, so that the purpose of dynamically adjusting the priority of the preset service to use the camera is achieved, the face recognition process can be interrupted, and the preset service is started.
Referring to fig. 4, fig. 4 is a schematic flowchart of a camera control method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1, where as shown in the diagram, the camera control method includes:
s401, in the process that the electronic equipment uses the camera to collect the face image in the face recognition service, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state.
S402, when the electronic equipment detects the use request of the preset service for the camera, determining the use priority of the preset service for the camera.
S403, when the electronic equipment detects that the use priority of the preset service is higher than that of the face recognition service for the camera, recovering the use right of the face recognition service for the camera.
S404, the electronic equipment configures the use right of the camera for the preset service.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In addition, when the electronic equipment is in a bright screen lock screen interface, in the process of carrying out face recognition service, if the fact that the camera is required to be used by the preset service with the priority higher than that of the face recognition service is detected, the face recognition service is stopped in time, the use right of the camera is configured to the preset service, and therefore the preset service can be used on the lock screen interface.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes 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 programs include instructions for performing the following steps;
in the process that a face recognition service uses a camera to collect a face image, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state;
when a use request of the preset service for the camera is detected, determining the use priority of the preset service for the camera;
and when the fact that the use priority of the preset service is higher than that of the face recognition service for the camera is detected, the use right of the camera is distributed to the preset service.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In one possible example, in the determining the priority of use of the preset service for the camera, the instructions in the program are specifically configured to: inquiring whether the target service set comprises the preset service or not; if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; determining the newly set priority as the use priority of the preset service for the camera.
In one possible example, in the determining the priority of use of the preset service for the camera, the instructions in the program are specifically configured to: querying a preset use priority set aiming at the camera, and determining a use priority corresponding to the preset service, wherein the use priority set comprises a corresponding relation between the service and the use priority aiming at the camera.
In one possible example, in the aspect of assigning the right to use the camera to the preset service, the instructions in the program are specifically configured to: recovering the use right of the face recognition service for the camera; and configuring the use right of the camera for the preset service.
In one possible example, the application associated with the preset service includes any one of: the system comprises a video chat application, a screen locking camera application and a third party photographing application.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. 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 application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, 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 application 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 a camera control apparatus 600 according to an embodiment of the present application. The camera control apparatus 600 is applied to an electronic apparatus, and the camera control apparatus 600 includes a detection unit 601, a determination unit 602, and a processing unit 603, wherein,
the detection unit 601 is configured to detect a use request of a preset service for the camera in a process that a face recognition service uses the camera to acquire a face image, where the preset service includes services that need to use the camera except for the face recognition service, and the electronic device is in a bright-screen and locked-screen state;
the determining unit 602 is configured to determine, when a usage request of the preset service for the camera is detected, a usage priority of the preset service for the camera;
the processing unit 603 is configured to, when it is detected that the usage priority of the preset service for the camera is higher than the usage priority of the face recognition service for the camera, allocate the usage right of the camera to the preset service.
It can be seen that, in the embodiment of the present application, an electronic device firstly detects a preset service for a use request of a camera in a process that a face recognition service uses the camera to acquire a face image, the preset service includes services that the camera needs to be used except for the face recognition service, the electronic device is in a bright screen lock screen state, secondly, when the preset service is detected for the use request of the camera, the use priority of the camera is determined to be targeted by the preset service, and finally, when the use priority of the preset service is detected to be higher than the use priority of the camera to be targeted by the face recognition service, the use right of the camera is allocated to the preset service. Because in the process of using the camera to collect the face image in the face recognition service, the preset service is detected to the use request of the camera, the use right of the camera can be determined according to the use priority of the preset service to the camera and the use priority of the face recognition service to the camera, and the reliability and the practicability of the preset service using the camera are improved.
In one possible example, in terms of the determining the priority of the preset service for use of the camera, the determining unit 602 is specifically configured to: inquiring whether the target service set comprises the preset service or not; and if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; and the priority used for determining the new setting is the use priority of the preset service for the camera.
In one possible example, in terms of the determining the priority of the preset service for use of the camera, the determining unit 602 is specifically configured to: querying a preset use priority set aiming at the camera, and determining a use priority corresponding to the preset service, wherein the use priority set comprises a corresponding relation between the service and the use priority aiming at the camera.
In one possible example, in terms of assigning the right to use the camera to the preset service, the processing unit 603 is specifically configured to: recovering the use right of the face recognition service for the camera; and the use right of the camera is configured for the preset service.
In one possible example, the application associated with the preset service includes any one of: the system comprises a video chat application, a screen locking camera application and a third party photographing application.
Wherein the detection unit 601 may be a processor and a camera, and the determination unit 602 and the processing unit 603 may be a processor.
Embodiments of the present application also provide 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 application 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 application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. 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 in this application.
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 several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the above-described 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 through some interfaces, devices or units, and may be in an electrical 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 application 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 application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including 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-mentioned method of the embodiments of the present application. 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 foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, 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 application.

Claims (9)

1. An electronic device comprising a processor, a camera coupled to the processor, and a memory, wherein,
the camera is used for starting the service and application which need to use the camera;
the memory is used for storing the face image acquired by the camera;
the processor is used for detecting a use request of a preset service for the camera in the process that the face recognition service uses the camera to collect a face image, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state; the camera management system comprises a camera, a preset service module and a control module, wherein the camera is used for acquiring a preset service request of the preset service; the camera management system is used for allocating the use right of the camera to the preset service when the fact that the use priority of the preset service is higher than the use priority of the face recognition service for the camera is detected;
wherein, in respect of the determining the priority of use of the preset service for the camera, the processor is specifically configured to: inquiring whether the target service set comprises the preset service or not; and if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; and the priority used for determining the new setting is the use priority of the preset service for the camera.
2. The electronic device of claim 1, wherein in connection with the assigning of the right to use of the camera to the preset service, the processor is specifically configured to: recovering the use right of the face recognition service for the camera; and the use right of the camera is configured for the preset service.
3. The electronic device of claim 1, wherein the application associated with the preset service comprises any one of: the system comprises a video chat application, a screen locking camera application and a third party photographing application.
4. A camera control method is applied to electronic equipment, and is characterized by comprising the following steps:
in the process that a face recognition service uses a camera to collect a face image, detecting a use request of a preset service for the camera, wherein the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state;
when a use request of the preset service for the camera is detected, determining the use priority of the preset service for the camera;
when the fact that the use priority of the preset service is higher than that of the face recognition service for the camera is detected, the use right of the camera is distributed to the preset service;
the determining the use priority of the preset service for the camera comprises:
inquiring whether the target service set comprises the preset service or not;
if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service;
determining the newly set priority as the use priority of the preset service for the camera.
5. The method of claim 4, wherein the assigning the right to use the camera to the preset service comprises:
recovering the use right of the face recognition service for the camera;
and configuring the use right of the camera for the preset service.
6. The method of claim 4, wherein the application associated with the preset service comprises any one of the following:
the system comprises a video chat application, a screen locking camera application and a third party photographing application.
7. A camera control device is applied to electronic equipment and is characterized by comprising a detection unit, a determination unit and a processing unit,
the detection unit is used for detecting a use request of a preset service for the camera in the process that the face recognition service uses the camera to collect a face image, the preset service comprises services needing to use the camera except the face recognition service, and the electronic equipment is in a bright screen and locked screen state;
the determining unit is configured to determine a usage priority of the preset service for the camera when a usage request of the preset service for the camera is detected;
the processing unit is used for allocating the use right of the camera to the preset service when detecting that the use priority of the preset service for the camera is higher than the use priority of the face recognition service for the camera;
wherein, in the aspect of determining the priority of the preset service for use of the camera, the determining unit is specifically configured to: inquiring whether the target service set comprises the preset service or not; and if the target service set comprises the preset service, setting the use priority of the preset service for the camera to be higher than that of the face recognition service; and the priority used for determining the new setting is the use priority of the preset service for the camera.
8. An electronic device comprising 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, the programs comprising instructions for performing the steps of the method of any of claims 4-6.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 4-6.
CN201810150142.4A 2018-02-13 2018-02-13 Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium Expired - Fee Related CN108429879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810150142.4A CN108429879B (en) 2018-02-13 2018-02-13 Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810150142.4A CN108429879B (en) 2018-02-13 2018-02-13 Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108429879A CN108429879A (en) 2018-08-21
CN108429879B true CN108429879B (en) 2020-12-25

Family

ID=63157036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810150142.4A Expired - Fee Related CN108429879B (en) 2018-02-13 2018-02-13 Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108429879B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345887B (en) * 2018-09-29 2021-03-16 北京金山安全软件有限公司 Task execution duration obtaining method and device and electronic equipment
CN112399232A (en) * 2019-08-18 2021-02-23 海信视像科技股份有限公司 Display equipment, camera priority use control method and device
CN112351323A (en) * 2020-08-21 2021-02-09 海信视像科技股份有限公司 Display device and video collection file generation method
CN111833573B (en) * 2020-07-09 2021-06-04 哈尔滨市科佳通用机电股份有限公司 Door opening and closing detection system for railway rail side equipment box
CN113518183B (en) * 2021-07-23 2023-06-27 北京字节跳动网络技术有限公司 Camera calling method and device and electronic equipment
CN113778641B (en) * 2021-08-09 2022-08-19 荣耀终端有限公司 Method for controlling camera, electronic device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001148846A (en) * 1999-11-19 2001-05-29 Nec Corp Remote monitoring control system
CN103106117A (en) * 2012-12-25 2013-05-15 青岛海信电器股份有限公司 Resource allocation method and electronic equipment
CN103677848A (en) * 2013-12-27 2014-03-26 厦门雅迅网络股份有限公司 Camera control method based on Android
CN103793246A (en) * 2014-01-22 2014-05-14 深圳Tcl新技术有限公司 Method and system for coordinating camera resources
CN105068945A (en) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 Camera distribution method and system for Android system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001148846A (en) * 1999-11-19 2001-05-29 Nec Corp Remote monitoring control system
CN103106117A (en) * 2012-12-25 2013-05-15 青岛海信电器股份有限公司 Resource allocation method and electronic equipment
CN103677848A (en) * 2013-12-27 2014-03-26 厦门雅迅网络股份有限公司 Camera control method based on Android
CN103793246A (en) * 2014-01-22 2014-05-14 深圳Tcl新技术有限公司 Method and system for coordinating camera resources
CN105068945A (en) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 Camera distribution method and system for Android system

Also Published As

Publication number Publication date
CN108429879A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN108429879B (en) Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium
CN107729836B (en) Face recognition method and related product
CN105553928B (en) Communication method, device and system based on biological feature recognition
CN107808127B (en) Face recognition method and related product
CN104767713B (en) Account binding method, server and system
US9697346B2 (en) Method and apparatus for identifying and associating devices using visual recognition
US10880091B2 (en) Control method for enrolling face template data and related product
CN107657219B (en) Face detection method and related product
CN106656985B (en) Backup account login method, device and system
EP2391967B1 (en) Password protected secure device
CN107437016B (en) Application control method and related product
CN107172194B (en) Virtual SIM card management method and device and communication terminal
CN110971830B (en) Anti-shake method for video shooting and related device
CN111246451A (en) Function setting method and device of SIM card, storage medium and terminal
CN107563338B (en) Face detection method and related product
CN104937602B (en) Privacy protection method and electronic equipment
CN112256424A (en) Virtual resource processing method, device and system, electronic equipment and storage medium
CN108063665B (en) Communication method and terminal device
CN113114623B (en) Data connection method, device, terminal equipment and computer readable storage medium
CN105025482B (en) Communication information processing method and equipment thereof
CN107483716B (en) File control method and related product
EP3148233B1 (en) Implementation method and apparatus for virtual communication card
CN107465810B (en) Data control method and related product
US10419599B2 (en) Certificate loading method and related product
CN107423604B (en) Application control 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: 20201225

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