CN113114936B - Method and system for solving conflict between face unlocking and photographing - Google Patents
Method and system for solving conflict between face unlocking and photographing Download PDFInfo
- Publication number
- CN113114936B CN113114936B CN202110379839.0A CN202110379839A CN113114936B CN 113114936 B CN113114936 B CN 113114936B CN 202110379839 A CN202110379839 A CN 202110379839A CN 113114936 B CN113114936 B CN 113114936B
- Authority
- CN
- China
- Prior art keywords
- camera
- face
- face unlocking
- front camera
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Lock And Its Accessories (AREA)
Abstract
The invention discloses a method and a system for solving conflict between face unlocking and photographing, wherein after face unlocking is triggered, if camera resources are occupied, whether a front camera is started or not is judged, if the front camera is directly used for executing face unlocking logic, otherwise, the front camera is started and then the face unlocking logic is executed. By using the method and the device, the user does not need to quit the camera or related applications when needing to unlock the equipment by the face, and can unlock the face only by directly triggering the face unlocking event without influencing the logic of the camera of the related applications.
Description
Technical Field
The invention relates to the technical field of intelligent tablets, in particular to a method and a system for solving conflict between face unlocking and photographing in intelligent equipment.
Background
Along with the improvement of safety awareness, more and more users can set up face unlocking for the intelligent tablet to protect tablet privacy, but the android system occupies the restriction on the resource use of hardware such as a camera in a single process, so that the face unlocking and the camera function can only be used one at a time. Therefore, on the premise of system locking, if a user needs to enter the system (for example, needs to read an album or use a photo) during photographing with a camera or using an application that needs to occupy camera resources, the user needs to exit the camera or the application, trigger face unlocking, and open the camera or the application after entering the system, which affects user experience.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method for solving conflict between face unlocking and photographing.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for solving conflict between face unlocking and photographing comprises the following specific processes:
when a user triggers a face unlocking event, judging the current on-off state of a camera;
if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic;
and if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
The invention also provides a system for realizing the method, which comprises the following steps:
the human face unlocking triggering module: the face unlocking event is used for triggering a face unlocking event by a user;
the human face unlocking execution module: the camera control system is used for judging the current on-off state of the camera after a user triggers a face unlocking event; if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic; and if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
The invention has the beneficial effects that: by using the method and the device, if the camera resources are occupied on the premise of locking the system, the user does not need to quit the camera or related applications when needing to unlock the face, and the user can unlock the face only by triggering the face unlocking event without influencing the logic of the camera of the related applications.
Drawings
FIG. 1 is a schematic flow chart of a method of embodiment 1 of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, and it should be noted that the present embodiment is based on the technical solution, and the detailed implementation and the specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
Example 1
The embodiment provides a method for solving conflict between face unlocking and photographing, as shown in fig. 1, the specific process is as follows:
when a user triggers a face unlocking event, judging the current on-off state of a camera;
if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic;
And if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
Example 2
The present embodiment provides a system for implementing the method described in embodiment 1, including:
the human face unlocking triggering module: the face unlocking event is used for triggering a face unlocking event by a user;
the human face unlocking execution module: the camera control system is used for judging the current on-off state of the camera after a user triggers a face unlocking event; if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic; and if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.
Claims (2)
1. A method for solving conflict between face unlocking and photographing is characterized by comprising the following specific processes:
when a user triggers a face unlocking event, judging the current on-off state of a camera;
if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic;
and if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
2. A system for implementing the method of claim 1, comprising:
the human face unlocking triggering module: the face unlocking event is used for triggering a face unlocking event by a user;
the human face unlocking execution module: the camera control system is used for judging the current on-off state of the camera after a user triggers a face unlocking event; if the camera is currently in an open state, judging whether the camera is opened by a front camera or not, if so, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic, and if the camera is currently opened by a rear camera, opening the front camera, acquiring the current frame image of the front camera, identifying the face information in the image, and executing the face unlocking logic; and if the camera resources are not occupied currently, directly starting the front camera, acquiring a current frame image of the front camera, identifying face information in the image, and executing face unlocking logic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110379839.0A CN113114936B (en) | 2021-04-08 | 2021-04-08 | Method and system for solving conflict between face unlocking and photographing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110379839.0A CN113114936B (en) | 2021-04-08 | 2021-04-08 | Method and system for solving conflict between face unlocking and photographing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113114936A CN113114936A (en) | 2021-07-13 |
CN113114936B true CN113114936B (en) | 2022-07-29 |
Family
ID=76714740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110379839.0A Active CN113114936B (en) | 2021-04-08 | 2021-04-08 | Method and system for solving conflict between face unlocking and photographing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113114936B (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8284267B2 (en) * | 2009-03-11 | 2012-10-09 | O2Micro Inc. | Virtual camera for sharing a physical camera |
CN103995787A (en) * | 2014-05-15 | 2014-08-20 | Tcl集团股份有限公司 | Regulation and control method and device for camera applications |
CN105068945A (en) * | 2015-08-03 | 2015-11-18 | Tcl集团股份有限公司 | Camera distribution method and system for Android system |
CN105955779B (en) * | 2016-05-03 | 2020-06-09 | 深圳Tcl数字技术有限公司 | Process closing method and device |
US20180146139A1 (en) * | 2016-11-18 | 2018-05-24 | Microsoft Technology Licensing, Llc | Dynamically switching control sharing of camera resources |
CN107528938B (en) * | 2017-07-26 | 2020-09-29 | 维沃移动通信有限公司 | Video call method, terminal and computer readable storage medium |
CN109359452A (en) * | 2018-08-30 | 2019-02-19 | 奇酷互联网络科技(深圳)有限公司 | Mobile terminal and face recognition limit the method, apparatus of application function |
CN111405175B (en) * | 2020-03-03 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Camera control method, device, computer equipment and storage medium |
-
2021
- 2021-04-08 CN CN202110379839.0A patent/CN113114936B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113114936A (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190332513A1 (en) | Method and apparatus for dealing with abnormality of application program and storage medium | |
EP3112979B1 (en) | Method and device for waking up mcu | |
WO2015158045A1 (en) | Privacy protection method for electronic device and electronic device | |
CN111581665B (en) | Data processing method and device and electronic equipment | |
EP3499350A1 (en) | Display interface control method and device | |
CN111639334A (en) | Control method and device of electrochromic glass and electronic equipment | |
CN104751086A (en) | Terminal anti-theft method | |
CN103577070A (en) | Method and device for taking photos quickly without unlocking screen | |
CN105975304A (en) | Restarting method and apparatus for mobile device | |
CN105975344A (en) | Control method and device preventing application from excessively using sensor | |
CN112822388A (en) | Shooting mode triggering method, device, equipment and storage medium | |
CN106485117A (en) | A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system | |
CN113114936B (en) | Method and system for solving conflict between face unlocking and photographing | |
CN106203163A (en) | A kind of abnormality eliminating method, device and terminal unit | |
WO2019000972A1 (en) | Prompting information output method and apparatus | |
CN106296140A (en) | A kind of method and device of the sub-red packet of antitheft generating | |
CN107563163A (en) | A kind of screen unlocked by fingerprint method and terminal | |
CN105740671A (en) | Message content display method and device | |
CN106778173A (en) | The method and device that a kind of application lock based on intelligent operating system is set | |
CN116089096A (en) | Load resource scheduling method and electronic equipment | |
CN103777933B (en) | The method of show process information and device | |
CN109492439A (en) | Information protecting method, terminal device and computer readable storage medium | |
CN109165501A (en) | Mobile terminal, intelligent terminal and its method for secret protection and storage medium | |
CN113778696A (en) | Thread control method, thread control device, and storage medium | |
CN108668025B (en) | Method for quickly closing photographing interface and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |