CN110688973A - Equipment control method and related product - Google Patents

Equipment control method and related product Download PDF

Info

Publication number
CN110688973A
CN110688973A CN201910944673.5A CN201910944673A CN110688973A CN 110688973 A CN110688973 A CN 110688973A CN 201910944673 A CN201910944673 A CN 201910944673A CN 110688973 A CN110688973 A CN 110688973A
Authority
CN
China
Prior art keywords
face
face image
acquiring
preset
target
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.)
Granted
Application number
CN201910944673.5A
Other languages
Chinese (zh)
Other versions
CN110688973B (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 CN201910944673.5A priority Critical patent/CN110688973B/en
Publication of CN110688973A publication Critical patent/CN110688973A/en
Application granted granted Critical
Publication of CN110688973B publication Critical patent/CN110688973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • 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/172Classification, e.g. identification

Abstract

The application discloses a device control method and a related product, which are applied to electronic devices, wherein the method comprises the following steps: acquiring a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image; acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module; and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value. The embodiment of the application has the advantage of high user experience.

Description

Equipment control method and related product
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an apparatus control method and a related product.
Background
With the development of science and technology, intelligent terminal products have become popular electronic consumer products, which mainly provide all-around communication entertainment functions such as communication, information, internet access, application, multimedia and the like, and as the functions of the intelligent terminal products are more and more expanded, the dependence degree of users on the intelligent terminal products is more and more strong, and the use frequency and the use duration are greatly increased. At present, a method for effectively controlling the use duration of the mobile phone is still lacking, so that the study and working time are seriously affected by excessive use of the mobile phone by some people, even the eyesight and physical problems are caused, and the user experience is low.
Disclosure of Invention
The embodiment of the application provides an equipment control method and a related product, which are used for managing and controlling the use duration of electronic equipment, so that the influence on normal life and health of a user due to the long-time use of the electronic equipment is avoided, and the user experience is improved.
In a first aspect, an embodiment of the present application provides an apparatus control method, where the method is applied to an electronic apparatus, and the method includes:
acquiring a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
In a second aspect, an embodiment of the present application provides an apparatus control device, which is applied to an electronic apparatus, where the apparatus includes:
the identification unit is used for acquiring a face image of a target object and performing gender identification on the face image to obtain the target gender of the face image;
the comparison unit is used for acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
the determining unit is used for acquiring the used time length of the electronic equipment and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, a communication interface, and one or more programs, stored in the memory and configured to be executed by the processor, the programs including instructions for performing some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is executed by a processor to implement part or all of the steps described in the method according to the first aspect of the present application.
It can be seen that, in the embodiment of the application, firstly, a face image of a target object is acquired, and gender identification is performed on the face image to obtain the target gender of the face image; then obtaining a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module; and finally, acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value. Therefore, the face database is determined according to the gender, the number of face modules in the face database can be effectively reduced, the comparison times of the face image and the face modules are reduced, and the face recognition rate is improved; a target duration threshold is determined according to the collected face image, so that the diversity of user requirements can be met; the device control strategy is determined according to the used time and the target time threshold, and the used time of the electronic device can be controlled, so that the influence on normal life and health of a user due to the long-time use of the electronic device is avoided, and the improvement of user experience is facilitated.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
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 disclosed in an embodiment of the present application;
fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another apparatus control method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another apparatus control method provided in an embodiment of the present application;
fig. 5 is a scene interaction diagram of a device control method according to an embodiment of the present application;
fig. 6 is a schematic view of a scene interaction of another device control method provided in an embodiment of the present application;
fig. 7 is a schematic view of a scene interaction of another device control method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present application;
fig. 9 is a block diagram showing functional units of the device control apparatus 900 according to the embodiment of the present application.
Detailed Description
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 some, not all, embodiments of the present invention. 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," "third," and "fourth," etc. in the description and claims of the invention 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, result, 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.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
Electronic devices may include a variety of handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices communicatively connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth having wireless communication capabilities. 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 disclosed in an embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 include skin sensors, wherein the skin sensors are used to collect skin data, such as moisture content, lipid content, etc., the sensors 170 may further include ambient light sensors, proximity sensors based on light and capacitance, fingerprint recognition modules, touch sensors (e.g., based on light touch sensors and/or capacitive touch sensors, wherein the substance sensors are used to collect skin capacitance, touch sensors may be part of a touch screen, or may be used independently as a touch sensor structure), such as acceleration sensors and other sensors.
The electronic device 100 may further include a camera 140, the camera 140 including: infrared camera, color image camera and so on, the camera can be leading camera or rear camera, and the fingerprint identification module can be integrated in the display screen below for gather the fingerprint image, the fingerprint identification module can be following at least one: optical fingerprint identification module, or ultrasonic fingerprint identification module etc. do not do the restriction here. The front camera can be arranged below the front display screen, and the rear camera can be arranged below the rear display screen. Of course, the front camera or the rear camera may not be integrated with the display screen, and certainly in practical applications, the front camera or the rear camera may also be a lifting structure.
Input-output circuit 150 may also include one or more display screens, and when multiple display screens are provided, such as 2 display screens, one display screen may be provided on the front of the electronic device and another display screen may be provided on the back of the electronic device, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
Referring to fig. 2, fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure, applied to the electronic apparatus described in fig. 1, where the apparatus control method includes:
step 201, collecting a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
optionally, before the face image of the target object is collected, the electronic device is monitored, and when it is monitored that the electronic device executes an unlocking function, a camera of the electronic device is started, where the camera is used to collect the face image.
Wherein, the mode of starting the camera can include: fingerprint recognition activation, voice print recognition activation, gesture activation, and the like, without limitation.
Optionally, performing gender identification on the face image to obtain a target gender of the face image, including: the method comprises the steps of taking a face image as an input of a preset gender identification model to obtain a target gender corresponding to the face image, wherein the gender identification model comprises a plurality of convolution layers, a plurality of full-connection layers and an output layer, the convolution layers are used for conducting convolution filtering on the face image for multiple times to obtain a convolution result, the full-connection layers are used for conducting weighting operation on the convolution result output by the convolution layers to obtain an operation result, the output layer is used for classifying the operation result to determine a category corresponding to the operation result, and the target gender is the gender corresponding to the category.
The gender identification model may be stored in a preset database, or may be stored in a preset server, which is not limited herein.
Step 202, acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
optionally, before obtaining the face database corresponding to the target gender, user information input by a user and duration data corresponding to the user information are received, where the user information includes: and storing the user information to a face database corresponding to the user gender.
For example, receiving the first user information includes: the method comprises the steps that the gender of a first user and the face of the first user are determined, and if the gender of the first user is female, the information of the first user is stored in a female face database; and if the gender of the first user is male, storing the first user information into a male face database.
Optionally, comparing the face image with a face template in the face database to obtain a first face module matched with the face image, including: the face image is used as the input of a preset feature extraction model to obtain the face features corresponding to the face image, the face template is used as the input of the feature extraction model to obtain the template features corresponding to the face template, the face features and the template features are subjected to matching calculation to obtain a plurality of matching degrees, the maximum value of the matching degrees is obtained, whether the maximum value is greater than a preset matching degree threshold value or not is judged, and if the maximum value is greater than the matching degree threshold value, the face module corresponding to the maximum value is determined to be the first face module.
Optionally, comparing the face image with a face template in the face database to obtain a first face module matched with the face image, including: the method comprises the steps of obtaining a preset face matching model, wherein the face matching model is used for matching a face to obtain a matching degree, taking a face image and a face template as input of the face matching model to obtain a plurality of matching degrees, obtaining a maximum value in the matching degrees, judging whether the maximum value is larger than a preset matching degree threshold value, and if the maximum value is larger than the matching degree threshold value, determining a face module corresponding to the maximum value as the first face module.
Optionally, after the first face module is determined, a target user corresponding to the first face module is determined, a mapping relationship between a preset user and the duration threshold is obtained, and a target duration threshold corresponding to the user is determined according to the mapping relationship between the user and the duration threshold.
The mapping relationship between the face module and the duration threshold may include:
user' s Time length threshold (minutes)
First user 60
Second user 120
Third user 180
Fourth user 240
And is not limited herein.
Step 203, obtaining the used time length of the electronic equipment, and determining an equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
Optionally, determining a device control policy of the electronic device according to a relationship between the used duration and the target duration threshold includes: judging whether the used time length is greater than the target time length threshold value, if the used time length is not greater than the target time length threshold value, acquiring an eye image corresponding to the face image, performing data extraction on the eye image to obtain eye data, wherein the eye data can comprise a plurality of symptom data (such as eye red blood silk proportion, eye muscle tightness, eye swelling degree and the like), determining a plurality of symptom scores corresponding to the plurality of symptom data, acquiring eye weights corresponding to the eye data, the eye weights can comprise a plurality of weight data, the plurality of weight data correspond to the plurality of symptom data one by one, performing weighted calculation on the plurality of symptom scores according to the plurality of weight data to determine fatigue scores corresponding to the eye image, judging whether the fatigue scores are greater than a preset fatigue threshold value or not, and if the fatigue scores are greater than the fatigue threshold value, and acquiring a preset brightness value, and adjusting the brightness of the current display screen of the electronic equipment according to the preset brightness value.
In an implementation manner of the present application, the determining a device control policy of the electronic device according to the relationship between the used duration and the target duration threshold specifically includes: judging whether the used time length is greater than the target time length threshold value, if so, acquiring a current application program of the electronic equipment, and determining the equipment control strategy according to the current application program; if the used time length is not greater than the target time length threshold value, setting a timer, acquiring a current application program of the electronic equipment when the sum of the time length of the timer and the used time length is greater than the target time length threshold value, and determining the equipment control strategy according to the current application program.
Further, after setting a timer, acquiring a current application of the electronic device, determining a target application category corresponding to the current application, determining a target single-use duration corresponding to the target application category according to a mapping relationship between the application category and the single-use duration, setting the application timer, and displaying preset application information when the time of the application timer is equal to the target single-use duration, wherein the preset application information includes: the target single-use duration and the preset time period are used for reminding a target object to lock the electronic equipment, and the preset application information is also used for reminding the target object to keep the electronic equipment in a locked state in the preset time period.
Optionally, determining a usage device control policy for implementing the electronic device according to the relationship between the used duration and the target duration threshold may further include: judging whether the used time length is greater than the target time length threshold value, if the used time length is greater than the target time length threshold value, calculating the time difference between the used time length and the target time length threshold value, acquiring the mapping relation between the time difference range and the strategy, determining the target time difference range corresponding to the time difference, and determining the equipment control strategy corresponding to the target time difference range according to the mapping relation between the time difference range and the strategy.
In a possible implementation manner, the determining the device control policy according to the current application specifically includes: determining an application type corresponding to the current application; acquiring a preset application type set, and judging whether the preset application type set contains the application type; if the preset application type set does not contain the application type, displaying preset information, setting a timer, and executing screen locking operation when the duration of the timer meets the preset duration; if the preset application type set contains the application type, acquiring a preset brightness value, and adjusting the current display screen brightness of the electronic equipment according to the preset brightness value.
Wherein the application type may include: game-type applications, video-type applications, office-type applications, etc., without limitation thereto.
Further, the game-like application may include: the queen people glory, sparkling and warm, stimulating the battlefield, etc., without limitation; the video-class application may include: love art, youku video, etc., without limitation herein; the office-like application may include: documents, totipotent scan, and the like, without limitation.
The preset brightness value may be: 10. 20, 30, etc., without limitation.
Wherein, the preset duration may be: 30s, 60s, etc., again without limitation.
In an implementation manner of the present application, the determining the device control policy according to the current application specifically includes: determining the function operation currently executed by the current application program; acquiring a preset function operation set, and judging whether the function operation set comprises the function operation; if the function operation set does not contain the function operation, executing screen locking operation; and if the function operating machine comprises the function operation, acquiring a background application program of the electronic equipment, and stopping running the background application program.
Wherein the functional operations may include: an image capture function, a sound recording function, a video function, and the like, without limitation.
In an implementation manner of the present application, if a first face template matching the face image is not obtained by the comparison, the method further includes: matching the face image with the face template to obtain a plurality of matching degrees; if the maximum value of the matching degrees is not greater than the threshold value of the matching degree, performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; the method comprises the steps that m local face images are used as input of a preset age identification model to obtain estimated ages of the face images, wherein the age identification model comprises a plurality of age identification sub-modules and a weighting module, the age identification sub-modules are used for calculating m age parameters corresponding to the m local face images, and the weighting module is used for carrying out weighting calculation on the m age parameters; and extracting a target duration threshold corresponding to the estimated age.
Optionally, the multiple age identification submodules include m local age identification submodules, the m local age identification submodules correspond to the m local face images one to one, and the m local face images are used as input of the m local age identification submodules to obtain m age parameters corresponding to the m local face images.
In conjunction with the above method, the following is described as an example: acquiring a user face image, performing matching operation on the user face image and a face template to obtain a plurality of matching degrees, wherein the maximum value of the plurality of matching degrees is smaller than a preset matching degree threshold value, segmenting the user face image to obtain an eye image, a nose image and a mouth image, and inputting the eye image, the nose image and the mouth image as an age identification model to obtain an estimated age corresponding to the user face image of 25.
In an implementation manner of the present application, if the comparison does not result in the first face template matching the face image, the method further includes: performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; determining m positions corresponding to the m local face images, and acquiring m local face template sets corresponding to the m positions, wherein any one local face template set in the m local face template sets comprises: x local face templates corresponding to x preset ages, wherein x is an integer larger than 0; determining m age parameters corresponding to the m local face images according to the m local face template sets; acquiring m weight values corresponding to the m positions, and performing weighting operation on the m age parameters according to the m weight values to determine the estimated age of the face image; and acquiring a mapping relation between a preset age and the service time, and determining the time threshold corresponding to the estimated age as the target time threshold according to the mapping relation between the age and the time threshold.
Wherein the splitting operation may include: the face image is segmented by a binarization positioning method, the face image is segmented by a generalized symmetric method, the face image is segmented by a mosaic method, and the like, which is not limited herein.
Wherein, the m positions are m positions corresponding to the face image.
Wherein, the m local face template sets correspond to the m positions one by one.
Optionally, before performing the segmentation operation on the face image, the method further includes: obtaining m local template sets, wherein the m local template sets correspond to m individual face positions, and any one of the m local template sets comprises: x ages and a local sample set to which the x ages correspond, the local sample set comprising: and a plurality of local samples are used for generating x local face templates corresponding to the x ages according to the local sample set, and the local face templates are updated according to the x local face templates to obtain an updated local template set, namely a local face template set.
In a possible implementation manner, the determining m age parameters corresponding to the m local face images according to the m local face template sets includes: performing parameter determination operation on the m personal face images according to the m local face templates to obtain the m age parameters, wherein the parameter determination operation comprises: acquiring an ith local face image, wherein i is more than 0 and less than or equal to m; determining an ith local face template set corresponding to the ith local face image, and acquiring x local face templates contained in the ith local face template set; taking the ith local face image and the x local face templates as the input of a preset neural network model to obtain x probabilities; and determining that the preset age corresponding to the maximum value of the x probabilities is the ith age parameter, and enabling i to be i + 1.
Wherein, the m local face templates correspond to the m personal face images one by one.
In a possible implementation manner, the electronic device further includes: a skin sensor, the method further comprising: receiving skin data returned by the skin sensor, wherein the skin data comprises: moisture content and oil content of the face; determining the water-oil ratio according to the facial moisture content and the facial oil content; and acquiring a water-oil ratio threshold corresponding to the target gender, judging whether the water-oil ratio is greater than the water-oil ratio threshold, acquiring a background application program of the electronic equipment if the water-oil ratio is greater than the water-oil ratio threshold, and stopping running the background application program.
Optionally, after the background application program stops running, calculating a ratio difference between the water-oil ratio and the water-oil ratio threshold, if the ratio difference is greater than a preset difference threshold, displaying preset information, setting a timer, and executing a screen locking operation when the duration of the timer meets a preset duration; and if the proportion difference is not larger than the difference threshold, acquiring a preset brightness value, and adjusting the current display screen brightness of the electronic equipment according to the preset brightness value.
In a possible implementation manner, before acquiring a face image of a target object, monitoring the electronic device, and when it is monitored that the electronic device executes an unlocking function, acquiring historical unlocking operation information, where the historical unlocking operation information includes: the method comprises the steps of obtaining a plurality of historical operating times, obtaining current time, calculating a plurality of time intervals corresponding to the historical operating times and the current time, determining the minimum value of the time intervals as a target time interval, judging whether the target time interval is larger than a preset interval threshold, obtaining the used time length of the electronic equipment if the target time interval is not larger than the interval threshold, determining unlocking operation information corresponding to the minimum value, extracting a target time length threshold corresponding to the unlocking operation information, and determining a device control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold.
Wherein the interval threshold may include: 30s, 60s, 90s, etc., without limitation.
In a possible implementation manner, the electronic device further includes: the infrared sensor, before carrying out gender discernment to the facial image and obtaining the target gender of the facial image, still include: receiving body temperature data of the target object acquired by the infrared sensor; and judging whether the body temperature data is greater than a preset body temperature threshold value, and if so, executing screen locking operation.
The infrared sensor may be disposed in a sensing area of the electronic device, and the sensing area may be disposed at any position in a display screen of the electronic device, wherein the sensing area may be square, circular, quadrilateral, and the like, which is not limited herein.
The body temperature threshold may be a body temperature threshold set by a user, or may be a default body temperature threshold, where the range of the body temperature threshold may include: 36.5-37.5 ℃.
In a possible implementation, the method further includes: if the body temperature data is not larger than the body temperature threshold value, receiving the distance between the target object and the electronic equipment, which is acquired by the infrared sensor; and judging whether the distance is greater than a preset safety distance, if the distance is not greater than the preset safety distance, acquiring a preset safety prompt, and sending a prompt to the target object according to the safety prompt.
The safety distance may be a safety distance set by a user, or may be a default safety distance, which is not limited herein.
The reminding is used for reminding the target object of keeping a safe distance from the electronic equipment.
In a possible implementation manner, the electronic device further includes: infrared camera module, gather target object's facial image, include: the method comprises the steps of obtaining current brightness, judging whether the current brightness is lower than a preset brightness threshold value, and controlling the infrared camera module to collect a face image of a target object if the current brightness is lower than the brightness threshold value.
Wherein, the brightness threshold may be: 20. 30, 60, etc., without limitation.
The embodiment of the present application does not limit the order between the above-described implementation manners.
It can be seen that, in the embodiment of the application, firstly, a face image of a target object is acquired, and gender identification is performed on the face image to obtain the target gender of the face image; then obtaining a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module; and finally, acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value. Therefore, the face database is determined according to the gender, the number of face modules in the face database can be effectively reduced, the comparison times of the face image and the face modules are reduced, and the face recognition rate is improved; determining a target duration threshold according to the acquired face image, so that different requirements of different users can be met; the device control strategy is determined according to the used time and the target time threshold, and the used time of the electronic device can be controlled, so that the influence on normal life and health of a user due to the long-time use of the electronic device is avoided, and the improvement of user experience is facilitated.
Referring to fig. 3, consistent with the embodiment shown in fig. 2, in a possible application scenario, the device control method shown in fig. 2 may be embodied as the method shown in fig. 3, fig. 3 is a flowchart of another device control method provided in this application, and is applied to the electronic device described in fig. 1, where the device control method includes:
step 301, collecting a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
step 302, acquiring a face database corresponding to the target gender, and comparing the face image with a face module in the face database;
step 303, if a first face template matched with the face image is not obtained by comparison, performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1;
step 304, determining m positions corresponding to the m local face images, and obtaining m local face template sets corresponding to the m positions, wherein any one local face template set in the m local face template sets includes: x local face templates corresponding to x preset ages, wherein x is an integer larger than 0;
step 305, determining m age parameters corresponding to the m local face images according to the m local face template sets;
step 306, obtaining m weights corresponding to the m positions, and performing weighting operation on the m age parameters according to the m weights to determine the estimated age of the face image;
step 307, acquiring a mapping relation between a preset age and a use time length, and determining a time length threshold corresponding to the estimated age as the target time length threshold according to the mapping relation between the age and the time length threshold;
and 308, acquiring the used time length of the electronic equipment, and determining an equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
For the detailed description of steps 301 to 308, reference may be made to corresponding steps of the device control method described in fig. 2, and details are not repeated here.
It can be seen that firstly, a face image of a target object is collected, and gender identification is performed on the face image to obtain the target gender of the face image; acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if a first face template matched with the face image is not obtained by comparison, performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; comparing the m local face images with the m local face template sets to obtain m age parameters, and determining the estimated age of the face images according to the m age parameters; acquiring a mapping relation between a preset age and a use time length, and determining a time length threshold corresponding to the estimated age as the target time length threshold according to the mapping relation between the age and the time length threshold; and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value. So, can inject the user to the non-database and carry out the long control of duration of using, satisfy user's diversified demand, simultaneously, through discerning age with facial image segmentation, be favorable to improving the efficiency and the degree of accuracy of age discernment to improve user experience.
Referring to fig. 4, consistent with the embodiment shown in fig. 2, in a possible application scenario, the device control method shown in fig. 2 may be embodied as the method shown in fig. 4, where fig. 4 is a flowchart of another device control method provided in this embodiment, and is applied to the electronic device described in fig. 1, where the device control method includes:
step 401, collecting a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
step 402, obtaining a face database corresponding to the target gender, and comparing the face image with a face module in the face database;
step 403, if a first face template matched with the face image is not obtained by comparison, performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1;
step 404, inputting the m local face images as a preset age identification model to obtain the estimated age of the face images;
step 405, extracting a target duration threshold corresponding to the estimated age;
and 406, acquiring the used time length of the electronic equipment, and determining an equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
For the detailed description of steps 401 to 406, reference may be made to corresponding steps of the device control method described in fig. 2, and details are not repeated here.
It can be seen that, in the embodiment of the application, firstly, a face image of a target object is collected, and gender identification is performed on the face image to obtain the target gender of the face image; acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if a first face template matched with the face image is not obtained by comparison, performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; taking the m local face images as the input of a preset age identification model to obtain the estimated age of the face images; extracting a target duration threshold corresponding to the estimated age; and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value. Thus, the accuracy of age identification is improved by segmenting the face image into partial face images to perform age identification; the local face image is identified through the age identification model, so that the rate of age identification is improved; and determining a target duration threshold according to the estimated age, meeting the diversity of user requirements and being beneficial to improving the user experience.
Referring to fig. 5, fig. 5 is a scene interaction diagram of a device control method according to an embodiment of the present application, and as shown in fig. 5, the electronic device in fig. 5 may be the electronic device described in fig. 1.
In the embodiment of the application, the electronic equipment receives an unlocking instruction of a target object at first, then receives a face image collected by a camera of the electronic equipment, then performs gender identification on the face image, determines the gender corresponding to the face image, and acquires a face database corresponding to the gender; comparing the face image with the face database, determining a first face module when the face image is successfully compared with the face database, determining a target user according to the first face module, and acquiring a mapping relation between a preset user and a time length threshold value to determine a target time length threshold value corresponding to the target user.
When the comparison between the face image and the face database is unsuccessful, the face image is segmented to obtain a plurality of face subimages, the estimated age of the face image is determined according to the plurality of face subimages, and a preset mapping relation between the age and a time length threshold is obtained to determine a target time length threshold corresponding to the estimated age.
The face database is divided according to the gender, so that the face comparison data volume is reduced, the face comparison rate is increased, and the equipment control rate is increased; determining a first face template when the face comparison is successful, and determining a template duration threshold according to the first face template to meet the diversity of user requirements; when the face comparison is unsuccessful, the estimated age is determined according to the face image, the target duration threshold is determined according to the estimated age, the equipment control of limiting users to the non-face database is achieved, the face image is divided into local face images for age recognition, the speed and accuracy of age recognition are improved, and therefore the improvement of user experience is facilitated.
Referring to fig. 6, fig. 6 is a scene interaction diagram of another device control method according to an embodiment of the present application, and as shown in fig. 6, the electronic device in fig. 6 may be the electronic device described in fig. 1.
In the embodiment of the application, the electronic equipment receives an unlocking instruction of a target object at first, then receives a face image collected by a camera of the electronic equipment, then performs gender identification on the face image, determines the gender corresponding to the face image, and acquires a face database corresponding to the gender; comparing the face image with the face database, when the face image is unsuccessfully compared with the face database, performing segmentation operation on the face image to obtain a plurality of face subimages, acquiring a plurality of local face template sets to determine the plurality of face subimages to determine a plurality of age parameters corresponding to the face image, acquiring a plurality of preset weights, calculating the plurality of age parameters according to the plurality of weights to obtain an estimated age, acquiring a mapping relation between the preset age and a time length threshold to determine a target time length threshold corresponding to the estimated age.
The face database is divided according to the gender, so that the face comparison data volume is reduced, the face comparison rate is increased, and the equipment control rate is increased; when the face comparison is unsuccessful, the estimated age is determined according to the face image, the target duration threshold is determined according to the estimated age, the equipment control of a non-face database limited user is achieved, the face image is divided into a local face image and a local face template to conduct age identification, the speed and accuracy of the age identification are improved, and therefore the improvement of user experience is facilitated.
Referring to fig. 7, fig. 7 is a scene interaction diagram of another device control method according to an embodiment of the present application, and as shown in fig. 7, the electronic device in fig. 7 may be the electronic device described in fig. 1.
In the embodiment of the application, the electronic equipment receives an unlocking instruction of a target object at first, then receives a face image collected by a camera of the electronic equipment, then performs gender identification on the face image, determines the gender corresponding to the face image, and acquires a face database corresponding to the gender; comparing the face image with the face database, when the face image is unsuccessfully compared with the face database, performing segmentation operation on the face image to obtain a plurality of face subimages, calculating the plurality of face subimages as a preset age identification submodule to obtain an estimated age, acquiring a mapping relation between the preset age and a time length threshold value, and determining a target time length threshold value corresponding to the estimated age.
The face database is divided according to the gender, so that the face comparison data volume is reduced, the face comparison rate is increased, and the equipment control rate is increased; and when the face comparison is unsuccessful, the estimated age is determined according to the face image, the target duration threshold value is determined according to the estimated age, the equipment control of a non-face database limited user is realized, the face image is divided into local face images to be used as the input of an age identification model for age identification, the speed and the accuracy of the age identification are improved, and the improvement of the user experience is facilitated.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present disclosure, where as shown in the diagram, the electronic device 800 includes: an application processor 810, a memory 820, a communication interface 830, and one or more programs 821, wherein the one or more programs 821 are stored in the memory 820 and configured to be executed by the application processor 810, and wherein the one or more programs 821 comprise instructions for:
acquiring a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database to obtain a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
In one possible example, in terms of determining a device control policy of the electronic device according to the relationship between the used duration and the target duration threshold, the instructions in the program are specifically configured to: judging whether the used time length is greater than the target time length threshold value, if so, acquiring a current application program of the electronic equipment, and determining the equipment control strategy according to the current application program; if the used time length is not greater than the target time length threshold value, setting a timer, acquiring a current application program of the electronic equipment when the sum of the time length of the timer and the used time length is greater than the target time length threshold value, and determining the equipment control strategy according to the current application program.
In one possible example, in determining the device control policy in accordance with the current application, the instructions in the program are specifically configured to: determining an application type corresponding to the current application; acquiring a preset application type set, and judging whether the preset application type set contains the application type; if the preset application type set does not contain the application type, displaying preset information, setting a timer, and executing screen locking operation when the duration of the timer meets the preset duration; if the preset application type set contains the application type, acquiring a preset brightness value, and adjusting the current display screen brightness of the electronic equipment according to the preset brightness value.
In one possible example, the instructions in the program are further to perform the following operations: determining the function operation currently executed by the current application program; acquiring a preset function operation set, and judging whether the function operation set comprises the function operation; if the function operation set does not contain the function operation, executing screen locking operation; and if the function operating machine comprises the function operation, acquiring a background application program of the electronic equipment, and stopping running the background application program.
In one possible example, if the comparison does not result in a first face template matching the face image, the instructions in the program are further configured to: performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; if the maximum value of the matching degrees is not greater than the threshold value of the matching degree, the m local face images are used as the input of a preset age identification model to obtain the estimated age of the face images, wherein the age identification model comprises a plurality of age identification sub-modules and a weighting module, the age identification sub-modules are used for calculating m age parameters corresponding to the m local face images, and the weighting module is used for carrying out weighting calculation on the m age parameters; and extracting a target duration threshold corresponding to the estimated age.
In one possible example, if the comparison does not result in a first face template matching the face image, the instructions in the program are further configured to: performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; determining m positions corresponding to the m local face images, and acquiring m local face template sets corresponding to the m positions, wherein any one local face template set in the m local face template sets comprises: x local face templates corresponding to x preset ages, wherein x is an integer larger than 0; determining m age parameters corresponding to the m local face images according to the m local face template sets; acquiring m weight values corresponding to the m positions, and performing weighting operation on the m age parameters according to the m weight values to determine the estimated age of the face image; and acquiring a mapping relation between a preset age and the service time, and determining the time threshold corresponding to the estimated age as the target time threshold according to the mapping relation between the age and the time threshold.
In one possible example, in terms of determining m age parameters corresponding to the m local face images according to the m local face template sets, the instructions in the program are specifically configured to perform the following operations: performing parameter determination operation on the m personal face images according to the m local face templates to obtain the m age parameters, wherein the parameter determination operation comprises: acquiring an ith local face image, wherein i is more than 0 and less than or equal to m; determining an ith local face template set corresponding to the ith local face image, and acquiring x local face templates contained in the ith local face template set; taking the ith local face image and the x local face templates as the input of a preset neural network model to obtain x probabilities; and determining that the preset age corresponding to the maximum value of the x probabilities is the ith age parameter, and enabling i to be i + 1.
In one possible example, the electronic device further comprises: an infrared sensor, wherein in terms of before the gender identification is performed on the face image to obtain the target gender of the face image, the instructions in the program are further configured to: receiving body temperature data of the target object acquired by the infrared sensor; and judging whether the body temperature data is greater than a preset body temperature threshold value, and if so, executing screen locking operation.
In one possible example, the instructions in the program are further to perform the following operations: if the body temperature data is not larger than the body temperature threshold value, receiving the distance between the target object and the electronic equipment, which is acquired by the infrared sensor; and judging whether the distance is greater than a preset safety distance, if the distance is not greater than the preset safety distance, acquiring a preset safety prompt, and sending a prompt to the target object according to the safety prompt.
In one possible example, the electronic device further comprises: and the infrared camera module is used for acquiring the face image of the target object, and the instruction in the program is also used for executing the following operations: the method comprises the steps of obtaining current brightness, judging whether the current brightness is lower than a preset brightness threshold value, and controlling the infrared camera module to collect a face image of a target object if the current brightness is lower than the brightness threshold value.
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 control 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. 9 is a block diagram showing functional units of the device control apparatus 900 according to the embodiment of the present application. The device control apparatus 900 is applied to an electronic device, and the device control apparatus 900 includes an identification unit 901, a comparison unit 902, and a determination unit 903, where:
the identification unit 901 is configured to acquire a face image of a target object, and perform gender identification on the face image to obtain a target gender of the face image;
a comparing unit 902, configured to obtain a face database corresponding to the target gender, compare the face image with a face module in the face database to obtain a first face module matched with the face image, and extract a target duration threshold corresponding to the first face module;
a determining unit 903, configured to obtain a used duration of the electronic device, and determine a device control policy of the electronic device according to a relationship between the used duration and the target duration threshold.
In an implementation manner of the present application, in terms of determining the device control policy of the electronic device according to the relationship between the used duration and the target duration threshold, the determining unit 903 is specifically configured to: judging whether the used time length is greater than the target time length threshold value, if so, acquiring a current application program of the electronic equipment, and determining the equipment control strategy according to the current application program; if the used time length is not greater than the target time length threshold value, setting a timer, acquiring a current application program of the electronic equipment when the sum of the time length of the timer and the used time length is greater than the target time length threshold value, and determining the equipment control strategy according to the current application program.
In an implementation manner of the present application, in terms of determining the device control policy according to the current application, the determining unit 903 is specifically configured to: determining an application type corresponding to the current application; acquiring a preset application type set, and judging whether the preset application type set contains the application type; if the preset application type set does not contain the application type, displaying preset information, setting a timer, and executing screen locking operation when the duration of the timer meets the preset duration; if the preset application type set contains the application type, acquiring a preset brightness value, and adjusting the current display screen brightness of the electronic equipment according to the preset brightness value.
In an implementation manner of the present application, in terms of the determining the device control policy according to the current application, the determining unit 903 is further configured to: determining the function operation currently executed by the current application program; acquiring a preset function operation set, and judging whether the function operation set comprises the function operation; if the function operation set does not contain the function operation, executing screen locking operation; and if the function operating machine comprises the function operation, acquiring a background application program of the electronic equipment, and stopping running the background application program.
In an implementation manner of the present application, if the comparison does not obtain the first face template matched with the face image, the comparing unit 902 is further configured to: performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; if the maximum value of the matching degrees is not greater than the threshold value of the matching degree, the m local face images are used as the input of a preset age identification model to obtain the estimated age of the face images, wherein the age identification model comprises a plurality of age identification sub-modules and a weighting module, the age identification sub-modules are used for calculating m age parameters corresponding to the m local face images, and the weighting module is used for carrying out weighting calculation on the m age parameters; and extracting a target duration threshold corresponding to the estimated age.
In an implementation manner of the present application, if the comparison does not obtain the first face template matched with the face image, the comparing unit 902 is further configured to: performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1; determining m positions corresponding to the m local face images, and acquiring m local face template sets corresponding to the m positions, wherein any one local face template set in the m local face template sets comprises: x local face templates corresponding to x preset ages, wherein x is an integer larger than 0; determining m age parameters corresponding to the m local face images according to the m local face template sets; acquiring m weight values corresponding to the m positions, and performing weighting operation on the m age parameters according to the m weight values to determine the estimated age of the face image; and acquiring a mapping relation between a preset age and the service time, and determining the time threshold corresponding to the estimated age as the target time threshold according to the mapping relation between the age and the time threshold.
In an implementation manner of the present application, in terms of determining m age parameters corresponding to m local face images according to the m local face template sets, the comparing unit 902 is specifically configured to: performing parameter determination operation on the m personal face images according to the m local face templates to obtain the m age parameters, wherein the parameter determination operation comprises: acquiring an ith local face image, wherein i is more than 0 and less than or equal to m; determining an ith local face template set corresponding to the ith local face image, and acquiring x local face templates contained in the ith local face template set; taking the ith local face image and the x local face templates as the input of a preset neural network model to obtain x probabilities; and determining that the preset age corresponding to the maximum value of the x probabilities is the ith age parameter, and enabling i to be i + 1.
In an implementation manner of the present application, the electronic device further includes: an infrared sensor, configured to, before the performing gender identification on the face image to obtain a target gender of the face image, the identifying unit 901 is further configured to: receiving body temperature data of the target object acquired by the infrared sensor; and judging whether the body temperature data is greater than a preset body temperature threshold value, and if so, executing screen locking operation.
In an implementation manner of the present application, the identifying unit 901 is further configured to: if the body temperature data is not larger than the body temperature threshold value, receiving the distance between the target object and the electronic equipment, which is acquired by the infrared sensor; and judging whether the distance is greater than a preset safety distance, if the distance is not greater than the preset safety distance, acquiring a preset safety prompt, and sending a prompt to the target object according to the safety prompt.
In an implementation manner of the present application, the electronic device further includes: the infrared camera module is configured to, in the aspect of acquiring the face image of the target object, the identification unit 901 is further configured to: the method comprises the steps of obtaining current brightness, judging whether the current brightness is lower than a preset brightness threshold value, and controlling the infrared camera module to collect a face image of a target object if the current brightness is lower than the brightness threshold value.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling 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 an electronic device.
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 an electronic device.
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 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 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 (13)

1. A device control method, applied to an electronic device, the method comprising:
acquiring a face image of a target object, and performing gender identification on the face image to obtain the target gender of the face image;
acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
and acquiring the used time length of the electronic equipment, and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
2. The method according to claim 1, wherein the determining the device control policy of the electronic device according to the relationship between the used duration and the target duration threshold specifically comprises:
judging whether the used time length is greater than the target time length threshold value, if so, acquiring a current application program of the electronic equipment, and determining the equipment control strategy according to the current application program;
if the used time length is not greater than the target time length threshold value, setting a timer, acquiring a current application program of the electronic equipment when the sum of the time length of the timer and the used time length is greater than the target time length threshold value, and determining the equipment control strategy according to the current application program.
3. The method according to claim 2, wherein the determining the device control policy according to the current application specifically comprises:
determining an application type corresponding to the current application;
acquiring a preset application type set, and judging whether the preset application type set contains the application type;
if the preset application type set does not contain the application type, displaying preset information, setting a timer, and executing screen locking operation when the duration of the timer meets the preset duration;
if the preset application type set contains the application type, acquiring a preset brightness value, and adjusting the current display screen brightness of the electronic equipment according to the preset brightness value.
4. The method according to claim 2, wherein the determining the device control policy according to the current application specifically comprises:
determining the function operation currently executed by the current application program;
acquiring a preset function operation set, and judging whether the function operation set comprises the function operation;
if the function operation set does not contain the function operation, executing screen locking operation;
and if the function operating machine comprises the function operation, acquiring a background application program of the electronic equipment, and stopping running the background application program.
5. The method of claim 1, wherein if the comparison does not result in a first face template matching the face image, the method further comprises:
performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1;
the method comprises the steps that m local face images are used as input of a preset age identification model to obtain estimated ages of the face images, wherein the age identification model comprises a plurality of age identification sub-modules and a weighting module, the age identification sub-modules are used for calculating m age parameters corresponding to the m local face images, and the weighting module is used for carrying out weighting calculation on the m age parameters;
and extracting a target duration threshold corresponding to the estimated age.
6. The method of claim 1, wherein if the comparison does not result in a first face template matching the face image, the method further comprises:
performing segmentation operation on the face image to obtain m local face images, wherein m is an integer greater than 1;
determining m positions corresponding to the m local face images, and acquiring m local face template sets corresponding to the m positions, wherein any one local face template set in the m local face template sets comprises: x local face templates corresponding to x preset ages, wherein x is an integer larger than 0;
determining m age parameters corresponding to the m local face images according to the m local face template sets;
acquiring m weight values corresponding to the m positions, and performing weighting operation on the m age parameters according to the m weight values to determine the estimated age of the face image;
and acquiring a mapping relation between a preset age and the service time, and determining the time threshold corresponding to the estimated age as the target time threshold according to the mapping relation between the age and the time threshold.
7. The method according to claim 6, wherein said determining m age parameters corresponding to the m partial face images according to the m partial face template sets comprises:
performing parameter determination operation on the m personal face images according to the m local face templates to obtain the m age parameters, wherein the parameter determination operation comprises:
acquiring an ith local face image, wherein i is more than 0 and less than or equal to m;
determining an ith local face template set corresponding to the ith local face image, and acquiring x local face templates contained in the ith local face template set;
taking the ith local face image and the x local face templates as the input of a preset neural network model to obtain x probabilities;
and determining that the preset age corresponding to the maximum value of the x probabilities is the ith age parameter, and enabling i to be i + 1.
8. The method of claim 1, wherein the electronic device further comprises: the infrared sensor, before carrying out gender discernment to the facial image and obtaining the target gender of the facial image, still include:
receiving body temperature data of the target object acquired by the infrared sensor;
and judging whether the body temperature data is greater than a preset body temperature threshold value, and if so, executing screen locking operation.
9. The method of claim 8, further comprising:
if the body temperature data is not larger than the body temperature threshold value, receiving the distance between the target object and the electronic equipment, which is acquired by the infrared sensor;
and judging whether the distance is greater than a preset safety distance, if the distance is not greater than the preset safety distance, acquiring a preset safety prompt, and sending a prompt to the target object according to the safety prompt.
10. The method of claim 1, wherein the electronic device further comprises: infrared camera module, gather target object's facial image, include:
the method comprises the steps of obtaining current brightness, judging whether the current brightness is lower than a preset brightness threshold value, and controlling the infrared camera module to collect a face image of a target object if the current brightness is lower than the brightness threshold value.
11. An apparatus control device, wherein the method is applied to an electronic apparatus, and the apparatus comprises:
the identification unit is used for acquiring a face image of a target object and performing gender identification on the face image to obtain the target gender of the face image;
the comparison unit is used for acquiring a face database corresponding to the target gender, comparing the face image with a face module in the face database, if so, obtaining a first face module matched with the face image, and extracting a target duration threshold corresponding to the first face module;
the determining unit is used for acquiring the used time length of the electronic equipment and determining the equipment control strategy of the electronic equipment according to the relation between the used time length and the target time length threshold value.
12. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 7.
CN201910944673.5A 2019-09-30 2019-09-30 Equipment control method and related product Active CN110688973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944673.5A CN110688973B (en) 2019-09-30 2019-09-30 Equipment control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944673.5A CN110688973B (en) 2019-09-30 2019-09-30 Equipment control method and related product

Publications (2)

Publication Number Publication Date
CN110688973A true CN110688973A (en) 2020-01-14
CN110688973B CN110688973B (en) 2022-05-13

Family

ID=69111612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944673.5A Active CN110688973B (en) 2019-09-30 2019-09-30 Equipment control method and related product

Country Status (1)

Country Link
CN (1) CN110688973B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507889A (en) * 2020-04-13 2020-08-07 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112488650A (en) * 2020-11-26 2021-03-12 万翼科技有限公司 Conference atmosphere adjusting method, electronic equipment and related products
CN112672021A (en) * 2020-12-25 2021-04-16 维沃移动通信有限公司 Language identification method and device and electronic equipment
CN113147771A (en) * 2021-05-10 2021-07-23 前海七剑科技(深圳)有限公司 Active interaction method and device based on vehicle-mounted virtual robot
CN113361409A (en) * 2021-06-07 2021-09-07 黑蜂智造(深圳)科技有限公司 Tooth image data processing method and device, electronic equipment and readable storage medium
CN114511914A (en) * 2022-04-19 2022-05-17 亿慧云智能科技(深圳)股份有限公司 Face recognition method and device and terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547271A (en) * 2010-12-24 2012-07-04 瀚斯宝丽股份有限公司 Video content output device and method capable of filtering video contents according to looker age
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106649710A (en) * 2016-12-20 2017-05-10 北京奇虎科技有限公司 Picture pushing method, device and mobile terminal
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face
CN107592425A (en) * 2017-09-29 2018-01-16 努比亚技术有限公司 Using addiction measure of supervision, mobile terminal and computer-readable recording medium
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN107643977A (en) * 2015-03-25 2018-01-30 广东欧珀移动通信有限公司 The method and Related product of Anti-addiction
CN109040451A (en) * 2018-08-08 2018-12-18 珠海格力电器股份有限公司 A kind of method, apparatus, terminal device and storage medium that control equipment uses
CN109255219A (en) * 2017-07-12 2019-01-22 上海荆虹电子科技有限公司 A kind of temperature sense unlocking method and system based on bio-identification terminal
CN109885461A (en) * 2019-01-07 2019-06-14 武汉游戏群科技有限公司 A kind of system of Anti-addiction, method and smart machine

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547271A (en) * 2010-12-24 2012-07-04 瀚斯宝丽股份有限公司 Video content output device and method capable of filtering video contents according to looker age
CN107643977A (en) * 2015-03-25 2018-01-30 广东欧珀移动通信有限公司 The method and Related product of Anti-addiction
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106649710A (en) * 2016-12-20 2017-05-10 北京奇虎科技有限公司 Picture pushing method, device and mobile terminal
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face
CN109255219A (en) * 2017-07-12 2019-01-22 上海荆虹电子科技有限公司 A kind of temperature sense unlocking method and system based on bio-identification terminal
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN107592425A (en) * 2017-09-29 2018-01-16 努比亚技术有限公司 Using addiction measure of supervision, mobile terminal and computer-readable recording medium
CN109040451A (en) * 2018-08-08 2018-12-18 珠海格力电器股份有限公司 A kind of method, apparatus, terminal device and storage medium that control equipment uses
CN109885461A (en) * 2019-01-07 2019-06-14 武汉游戏群科技有限公司 A kind of system of Anti-addiction, method and smart machine

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507889A (en) * 2020-04-13 2020-08-07 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112488650A (en) * 2020-11-26 2021-03-12 万翼科技有限公司 Conference atmosphere adjusting method, electronic equipment and related products
CN112672021A (en) * 2020-12-25 2021-04-16 维沃移动通信有限公司 Language identification method and device and electronic equipment
CN113147771A (en) * 2021-05-10 2021-07-23 前海七剑科技(深圳)有限公司 Active interaction method and device based on vehicle-mounted virtual robot
CN113361409A (en) * 2021-06-07 2021-09-07 黑蜂智造(深圳)科技有限公司 Tooth image data processing method and device, electronic equipment and readable storage medium
CN114511914A (en) * 2022-04-19 2022-05-17 亿慧云智能科技(深圳)股份有限公司 Face recognition method and device and terminal equipment

Also Published As

Publication number Publication date
CN110688973B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN110688973B (en) Equipment control method and related product
US10223574B2 (en) Method for fingerprint template update and terminal device
CN107451449B (en) Biometric unlocking method and related product
CN109583356B (en) Fingerprint identification method and related product
US9779527B2 (en) Method, terminal device and storage medium for processing image
EP3051464A1 (en) Authenticating a user through fingerprint recognition
WO2019019836A1 (en) Unlocking control method and related product
CN107580114B (en) Biometric identification method, mobile terminal, and computer-readable storage medium
EP3249578A1 (en) Fingerprint unlocking method and terminal
CN107545166B (en) Biometric identification method and related product
CN107657218B (en) Face recognition method and related product
CN108427873B (en) Biological feature identification method and mobile terminal
CN107463818B (en) Unlocking control method and related product
CN110210395B (en) Vein image acquisition method and related product
EP4206983A1 (en) Fingerprint identification method and electronic device
CN107451450B (en) Biometric identification method and related product
CN109144245B (en) Equipment control method and related product
CN109376702B (en) Fingerprint identification method and related product
WO2019015418A1 (en) Unlocking control method and related product
CN105577886A (en) Mobile terminal unlocking device and method
CN111599460A (en) Telemedicine method and system
CN111881813B (en) Data storage method and system of face recognition terminal
CN110188666B (en) Vein collection method and related products
CN114302088A (en) Frame rate adjusting method and device, electronic equipment and storage medium
CN117130469A (en) Space gesture recognition method, electronic equipment and chip system

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