CN111142957A - Terminal awakening method, terminal and storage medium - Google Patents

Terminal awakening method, terminal and storage medium Download PDF

Info

Publication number
CN111142957A
CN111142957A CN201911418673.8A CN201911418673A CN111142957A CN 111142957 A CN111142957 A CN 111142957A CN 201911418673 A CN201911418673 A CN 201911418673A CN 111142957 A CN111142957 A CN 111142957A
Authority
CN
China
Prior art keywords
offset
matrix
zero
image
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911418673.8A
Other languages
Chinese (zh)
Inventor
余勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201911418673.8A priority Critical patent/CN111142957A/en
Publication of CN111142957A publication Critical patent/CN111142957A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The invention discloses a terminal awakening method, a terminal and a storage medium, wherein the terminal awakening method comprises the following steps: acquiring a human face thermal imaging image, and generating a digital matrix according to the human face thermal imaging image; calculating an offset matrix according to the digital matrix and a preset matrix; judging whether each offset value in the offset matrix is larger than zero or not, and counting the number of the offset values larger than zero in the offset matrix; acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix; and controlling the working state of the voice recognition module according to the number of the offset values larger than zero and the positions of the image areas corresponding to the offset values larger than zero in the offset matrix. The terminal can automatically control the working state of the voice control module, and the recognition accuracy is improved.

Description

Terminal awakening method, terminal and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a terminal wake-up method, a terminal, and a storage medium.
Background
At present, the voice AI technology is widely popularized and practically applied to televisions, and currently, common voice awakening modes include a far-field voice awakening mode and a voice bluetooth remote controller mode, the far-field voice awakening mode is high in usability but not high in stability, and the voice bluetooth remote controller mode is high in stability but low in usability. A special voice awakening mode is required in a far-field voice awakening mode, so that the false recognition rate is high; in the voice Bluetooth remote controller mode, the voice input can be waken up only by pressing a voice key, and the operation steps are complex.
Therefore, it is necessary to provide a terminal wake-up method to solve the above technical problems.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a terminal awakening method, a terminal and a storage medium, and aims to solve the problems that a common voice awakening mode cannot simultaneously avoid high false recognition rate and complex operation.
In order to achieve the above object, the terminal wake-up method provided by the present invention comprises the following steps:
acquiring a human face thermal imaging image, and generating a digital matrix according to the human face thermal imaging image;
calculating an offset matrix according to the digital matrix and a preset matrix, wherein the offset matrix comprises a plurality of offset values which are arranged in an array manner, and the offset values correspond to the image areas of the human face thermal imaging image one by one;
judging whether each offset value in the offset matrix is larger than zero or not, and counting the number of the offset values larger than zero in the offset matrix;
acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix;
and controlling the working state of the voice recognition module according to the number of the offset values larger than zero and the positions of the image areas corresponding to the offset values larger than zero in the offset matrix.
Preferably, the step of controlling the working state of the speech recognition module according to the number of the offset values greater than zero and the positions of the image areas corresponding to the offset values greater than zero in the offset matrix includes:
judging whether the number of the offset values larger than zero is larger than a preset number or not;
if the number of the offset values larger than zero is larger than the preset number, judging whether the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are continuously arranged, controlling the voice recognition module to be released from the dormant state.
Preferably, the step of obtaining a face thermography image and generating a digital matrix according to the face thermography image includes:
acquiring a human face thermal imaging image at preset intervals, and generating a digital matrix according to the human face thermal imaging images;
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, the step of controlling the speech recognition module to release the dormant state comprises the following steps:
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, acquiring and increasing the times of historical detection offset;
judging whether the frequency value of the historical detection deviation is greater than a preset frequency;
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to be in a dormant state;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are not continuously arranged, updating the historical detection offset to be zero.
Preferably, if the value of the number of times of the historical detection offset is greater than the preset number of times, the step of controlling the speech recognition module to release from the sleep state includes:
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to receive and recognize a voice control instruction and generating control information corresponding to the voice control instruction;
and sending the control information to an external device.
Preferably, the step of transmitting the control information to an external device is followed by:
detecting a current first motion angular velocity, and judging whether the first motion angular velocity is equal to zero or not;
and if the first motion angular velocity is equal to zero, controlling the voice recognition module to enter a dormant state.
Preferably, the step of obtaining a face thermography image and generating a digital matrix according to the face thermography image comprises:
detecting a current second motion angular speed, and judging whether the second motion angular speed is greater than a preset angular speed or not;
if the second motion angular velocity is larger than the preset angular velocity, detecting infrared rays with the wavelength of 2-22 mu m to generate the human face thermal imaging image.
Preferably, the step of obtaining a face thermography image and generating a digital matrix according to the face thermography image includes:
acquiring a face thermal imaging image, wherein the face thermal imaging image is composed of a plurality of image areas;
acquiring the temperature of each image area, and generating a digital matrix according to the temperature value of each image area;
the step of calculating the offset matrix according to the digital matrix and the preset matrix comprises the following steps:
and subtracting the temperature value in the digital matrix from a preset value corresponding to the temperature value in the preset matrix to obtain the offset matrix.
To achieve the above object, the present invention further provides a terminal, including a thermopile, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the terminal wake-up method as described above.
Preferably, the terminal comprises a plurality of thermopiles, and the plurality of thermopiles are arranged at intervals.
To achieve the above object, the present invention further provides a storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the terminal wake-up method as described above.
In the terminal awakening method, a digital matrix is generated by acquiring a human face thermal imaging image and according to the human face thermal imaging image; calculating an offset matrix according to the digital matrix and a preset matrix, wherein the offset matrix comprises a plurality of offset values which are arranged in an array manner, and the offset values correspond to the image areas of the human face thermal imaging image one by one; judging whether each offset value in the offset matrix is larger than zero or not, and counting the number of the offset values larger than zero in the offset matrix; acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix; and controlling the working state of the voice recognition module according to the number of the offset values larger than zero and the positions of the image areas corresponding to the offset values larger than zero in the offset matrix, so that the recognition accuracy of the working state of the voice recognition module controlled by the terminal is improved, meanwhile, the automatic awakening of the voice recognition module of the terminal is realized, and the complicated operation is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a terminal wake-up method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a terminal wake-up method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a terminal wake-up method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a terminal awakening method, a terminal and a storage medium.
As shown in fig. 1, the method of the present invention is applicable to terminals, including but not limited to the following terminals: tablet, computer, television, remote controller, etc. The terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a touch-sensitive pad, touch screen, keyboard, and the optional user interface 1003 may also comprise a standard wired, wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. The terminal is further provided with a gyroscope, and the terminal acquires the first motion angular velocity through the gyroscope.
Optionally, the terminal may further include an RF (Radio Frequency) circuit, an audio circuit, a WiFi module, and the like. Of course, the terminal may also be configured with other sensors such as barometer, hygrometer and thermometer, which are not described herein.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a terminal wake-up program.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a terminal wake-up program stored in the memory 1005 and perform the following operations:
acquiring a human face thermal imaging image, and generating a digital matrix according to the human face thermal imaging image;
calculating an offset matrix according to the digital matrix and a preset matrix, wherein the offset matrix comprises a plurality of offset values which are arranged in an array manner, and the offset values correspond to the image areas of the human face thermal imaging image one by one;
judging whether each offset value in the offset matrix is larger than zero or not, and counting the number of the offset values larger than zero in the offset matrix;
acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix;
and controlling the working state of the voice recognition module according to the number of the offset values larger than zero and the positions of the image areas corresponding to the offset values larger than zero in the offset matrix.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
judging whether the number of the offset values larger than zero is larger than a preset number or not;
if the number of the offset values larger than zero is larger than the preset number, judging whether the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are continuously arranged, controlling the voice recognition module to be released from the dormant state.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
acquiring a human face thermal imaging image at preset intervals, and generating a digital matrix according to the human face thermal imaging images;
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, the step of controlling the speech recognition module to release the dormant state comprises the following steps:
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, acquiring and increasing the times of historical detection offset;
judging whether the frequency value of the historical detection deviation is greater than a preset frequency;
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to be in a dormant state;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are not continuously arranged, updating the historical detection offset to be zero.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to receive and recognize a voice control instruction and generating control information corresponding to the voice control instruction;
and sending the control information to an external device.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
detecting a current first motion angular velocity, and judging whether the first motion angular velocity is equal to zero or not;
and if the first motion angular velocity is equal to zero, controlling the voice recognition module to enter a dormant state.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
detecting a current second motion angular speed, and judging whether the second motion angular speed is greater than a preset angular speed or not;
if the second motion angular velocity is larger than the preset angular velocity, detecting infrared rays with the wavelength of 2-22 mu m to generate the human face thermal imaging image.
Further, the processor 1001 may call a terminal wake-up program stored in the memory 1005, and further perform the following operations:
acquiring a face thermal imaging image, wherein the face thermal imaging image is composed of a plurality of image areas;
acquiring the temperature of each image area, and generating a digital matrix according to the temperature value of each image area;
the step of calculating the offset matrix according to the digital matrix and the preset matrix comprises the following steps:
and subtracting the temperature value in the digital matrix from a preset value corresponding to the temperature value in the preset matrix to obtain the offset matrix.
Based on the above hardware structure, various embodiments of terminal wake-up in the present application are proposed.
Referring to fig. 2, a first embodiment of the present invention provides a terminal wake-up method, where the terminal wake-up method includes:
step S100, obtaining a face thermal imaging image, and generating a digital matrix according to the face thermal imaging image;
in this embodiment, a Passive infrared detector (PIR) module may be disposed in the terminal, the PIR module may detect infrared rays with a wavelength within a range of 2 μm to 22 μm, the PIR module may obtain the face thermal imaging map when detecting infrared rays emitted by a face, may obtain temperature values of each position of the face according to the face thermal imaging map, and may generate a digital matrix according to each temperature value.
Preferably, the passive infrared detector module may be a plurality of thermopiles on a terminal, for example: the terminal is provided with eight thermopiles which are arranged in a row, the eight thermopiles can be used for simultaneously measuring the temperature of 8 adjacent points, the eight thermopiles are equivalent to a thermal imaging instrument with 8-pixel resolution, and a human face thermal imaging image can be obtained through the thermal imaging instrument. Preferably, the detection angle of the thermal imager may be set, for example: if the detection angle is set to 100 degrees, the thermal imaging camera can detect whether a human face exists in the front of 100 degrees.
In this embodiment, can form the thermal imaging picture of thermal imaging appearance in order to obtain the people's face through setting up a plurality of thermopiles on the terminal, the people's face thermal imaging picture that every interval preset time obtained a plurality of thermopiles and obtained has realized detecting the people's face in front of the terminal thermal imaging appearance in real time.
Step S110, calculating an offset matrix according to the digital matrix and a preset matrix, wherein the offset matrix comprises a plurality of offset values which are arranged in an array mode, and the offset values correspond to the image areas of the face thermal imaging image one by one;
in this embodiment, each element value in the preset matrix is the same, each element value is set by a person skilled in the art, the offset matrix is obtained by subtracting the preset matrix from the digital matrix, the offset matrix includes a plurality of offset values arranged in an array, the face thermal imaging graph is composed of a plurality of image areas, and the offset values correspond to the image areas of the face thermal imaging graph one to one.
Step S120, judging whether each offset value in the offset matrix is larger than zero, and counting the number of the offset values larger than zero in the offset matrix;
in this embodiment, the offset value is equal to the corresponding temperature value minus a preset value, because each offset corresponds to each position of the thermal imaging map of the face, when the offset value is greater than zero, it indicates that the temperature at the position corresponding to the offset is higher, and this position may be a heat source position on the thermal imaging map of the face, that is, a face position.
Step S130, acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix;
step S140, controlling the working state of the speech recognition module according to the number of the offset values greater than zero and the positions of the image areas corresponding to the offset values greater than zero in the offset matrix.
In this embodiment, a thermal imaging graph is acquired and a digital matrix is generated, an offset matrix is calculated according to the digital matrix and a preset matrix, and a terminal counts the number of offset values greater than zero in the offset matrix and the offset values greater than zero in the offset matrix according to the offset matrix, so that the working state of the voice recognition module is automatically controlled, wherein the working state is a sleep state release state and a sleep state entry state, the working state of the voice recognition module can be controlled by acquiring a face thermal imaging graph by the terminal, the working state of the voice recognition module is controlled without a user through keys or other operations, the voice recognition module can be prevented from being controlled by the terminal to release the sleep state and receive interference, and the recognition accuracy of the terminal is improved.
Further, a second embodiment is proposed based on the first embodiment, and referring to fig. 3, in this embodiment, the step S140 includes:
step S200, judging whether the number of the offset values larger than zero is larger than a preset number;
in this embodiment, by counting the number of offset values greater than zero in the offset matrix and determining whether the number of offset values greater than zero in the offset matrix is greater than a preset number, it can be determined whether the face is close to the terminal when the face thermal imaging image is acquired, so that erroneous recognition of the terminal when the face is far away from the terminal is prevented.
Step S210, if the number of the offset values larger than zero is larger than the preset number, judging whether the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged;
if the number of the offset values larger than zero is smaller than or equal to the preset number, no processing is performed;
in this embodiment, if the number of offset values greater than zero in the offset matrix is greater than the preset number, it indicates that the position where the temperature on the face thermal imaging graph is higher is more, and it may be considered that, when the face thermal imaging graph is acquired, the face is closer to the terminal, and it is determined that there is a face close to the terminal, which is the first condition for the terminal to control the speech recognition module to release the sleep state.
Preferably, when the number matrix is a 15 × 9-order matrix, the preset number may be set to be 112 in 14 × 8, and when the number of offset values greater than zero in the offset matrix is counted to be greater than 112, it is considered that a human face approaches the terminal.
Step S220, if the positions of the image regions corresponding to the offset values greater than zero in the offset matrix are continuously arranged, controlling the speech recognition module to release the sleep state.
In this embodiment, if the number of offset values greater than zero in the offset matrix is greater than the preset number, the position of the offset value greater than zero in the offset matrix may be obtained by an indexing method. The continuous arrangement of the positions of the offset values larger than zero in the offset matrix is a second condition for the terminal to control the speech recognition module to release the dormant state, and the terminal can be prevented from mistakenly recognizing other heating objects by judging whether the positions of the offset values larger than zero in the offset matrix are continuously arranged.
Further, a third embodiment is proposed based on the second embodiment, and referring to fig. 3, in this embodiment, the step S100 includes:
step S300, acquiring a human face thermal imaging image at intervals of preset time, and generating a digital matrix according to each human face thermal imaging image;
in this embodiment, the obtaining of the face thermal imaging images obtained by the plurality of thermopiles at preset intervals may specifically be obtaining the face thermal imaging images obtained by the plurality of thermopiles in a manner of 10 frames per second, that is, obtaining the face thermal imaging images obtained by the plurality of thermopiles at intervals of 0.1 second.
Step S220 includes:
step S310, if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, acquiring and increasing the times of historical detection offset;
step S320, judging whether the time value of the historical detection deviation is greater than a preset time;
step S330, if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to release the dormant state;
if the time value of the historical detection deviation is less than or equal to the preset time, no processing is carried out;
in step S340, if the positions of the image regions corresponding to the offset values greater than zero in the offset matrix are not continuously arranged, the number of times of updating the historical detection offset is zero.
In this embodiment, the terminal may be provided with a counter for recording a value of the number of times of the historical detection offset, and if the positions of the image areas corresponding to the offset values greater than zero in the offset matrix are continuously arranged, the value of the number of times of the historical detection offset is increased, and the counter is incremented by one; if the positions of the image areas corresponding to the offset values which are greater than zero in the offset matrix are not continuously arranged, the number value of the historical detection offsets is updated to be zero, the counter is cleared, and only when the number value of the historical detection offsets is greater than the preset number, the terminal controls the voice recognition module to be in a dormant state, so that the terminal is prevented from being mistakenly recognized due to the influence of the surrounding environment.
Further, a fourth embodiment is proposed based on the third embodiment, and referring to fig. 4, the step S330 includes:
step S500, if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to receive and recognize a voice control instruction and generating control information corresponding to the voice control instruction;
step S510, sending the control information to an external device.
In this embodiment, a voice recognition Module (MIC) may be set in the terminal, the terminal controls the voice recognition module to release from a dormant state, the user may pass through the voice recognition module to the terminal sends a voice control instruction, the terminal receives and recognizes the voice control instruction, generates control information corresponding to the voice control instruction, and the terminal sends the control information to the external device to control the external device.
Further, a fifth embodiment is proposed based on the fourth embodiment, and referring to fig. 4, in this embodiment, after step S510, the method includes:
step S600, detecting a current first motion angular velocity, and judging whether the first motion angular velocity is equal to zero or not;
step S610, if the first motion angular velocity is equal to zero, controlling the voice recognition module to enter a dormant state;
and if the first motion angular speed is not equal to zero, not processing.
In this embodiment, a gyroscope may be disposed in the terminal, and the gyroscope is configured to detect a first angular velocity of the terminal, and when the first angular velocity of the terminal is equal to zero, it indicates that the terminal has been placed stably, and then enters a sleep state. Through judging that first angular velocity is zero, realize automatic control speech recognition module gets into the dormancy state, need not user manual operation, has increased user's use experience.
Further, a sixth embodiment is proposed based on the first embodiment, and in this embodiment, the step S100 includes, before:
detecting a current second motion angular speed, and judging whether the second motion angular speed is greater than a preset angular speed or not;
if the second motion angular velocity is larger than the preset angular velocity, detecting infrared rays with the wavelength of 2-22 mu m to generate the human face thermal imaging image;
and if the second motion angular velocity is less than or equal to the preset angular velocity, not processing.
In this embodiment, when the second moving angular velocity of the terminal is greater than the preset angular velocity, it indicates that the terminal is in a moving state and may be being picked up by a user for use, and at this time, infrared rays with a wavelength of 2 μm to 22 μm are detected to detect a face of the user.
Further, a seventh embodiment is proposed based on the first embodiment, and in this embodiment, the step S100 includes:
acquiring a human face thermal imaging image, wherein the human face thermal imaging image consists of a plurality of image areas;
acquiring the temperature of each image area, and generating a digital matrix according to the temperature of each image area;
in this embodiment, the face thermal imaging graph obtained by the thermal imaging camera is composed of a plurality of image areas, the size of each image area is the same, and a digital matrix can be generated by obtaining the temperature of each image area, where an element value of the digital matrix is a temperature value corresponding to each image area.
The step S110 includes:
and subtracting the detection value in the digital matrix from the preset value corresponding to the detection value in the preset matrix to obtain the offset matrix.
In this embodiment, let the number matrix be A, the predetermined matrix be B, the offset matrix be C, and let the matrices A and B be m × n order matrices,
Figure BDA0002351823630000111
the offset matrix can be derived
Figure BDA0002351823630000112
Wherein, the element a in the digital matrix A11,a12,...,amnIs a temperature value; presetting element B in matrix B11,b1,...,bmnThe preset values are all the same, and preferably can be set to 29; element a in offset matrix C11-b11,a12-b12,...,amn-bmnIs an offset.
Preferably, the terminal may also perform calculation only by using the number matrix to control the speech recognition module to release from the sleep state, for example, directly compare each element in the number matrix with a preset value, and count the number of each element greater than the preset value.
In this embodiment, the offset matrix is obtained by subtracting the detection value in the digital matrix from the preset value in the preset matrix corresponding to the position of the detection value, because the element value of the offset matrix is simple, the operation speed can be increased.
Furthermore, the invention also provides a storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of playground management as described above.
The specific embodiment of the storage medium of the present invention is substantially the same as the embodiments of the terminal wake-up method described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A terminal wake-up method is characterized by comprising the following steps:
acquiring a human face thermal imaging image, and generating a digital matrix according to the human face thermal imaging image;
calculating an offset matrix according to the digital matrix and a preset matrix, wherein the offset matrix comprises a plurality of offset values which are arranged in an array manner, and the offset values correspond to the image areas of the human face thermal imaging image one by one;
judging whether each offset value in the offset matrix is larger than zero or not, and counting the number of the offset values larger than zero in the offset matrix;
acquiring the position of each image area corresponding to the offset value which is greater than zero in the offset matrix;
and controlling the working state of the voice recognition module according to the number of the offset values larger than zero and the positions of the image areas corresponding to the offset values larger than zero in the offset matrix.
2. The terminal wake-up method according to claim 1, wherein the step of controlling the operating state of the voice recognition module according to the number of the offset values greater than zero and the positions of the image areas corresponding to the offset values greater than zero in the offset matrix comprises:
judging whether the number of the offset values larger than zero is larger than a preset number or not;
if the number of the offset values larger than zero is larger than the preset number, judging whether the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are continuously arranged, controlling the voice recognition module to be released from the dormant state.
3. The terminal wake-up method according to claim 2, wherein the step of obtaining a face thermography image and generating a digital matrix from the face thermography image comprises:
acquiring a human face thermal imaging image at preset intervals, and generating a digital matrix according to the human face thermal imaging images;
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, the step of controlling the speech recognition module to release the dormant state comprises the following steps:
if the positions of the image areas corresponding to the offset values larger than zero in the offset matrix are continuously arranged, acquiring and increasing the times of historical detection offset;
judging whether the frequency value of the historical detection deviation is greater than a preset frequency;
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to be in a dormant state;
and if the positions of the image areas corresponding to the offset values which are larger than zero in the offset matrix are not continuously arranged, updating the historical detection offset to be zero.
4. The terminal wake-up method according to claim 3, wherein the step of controlling the voice recognition module to release from the sleep state if the value of the number of times of the historical detection offset is greater than the preset number of times comprises:
if the time value of the historical detection deviation is greater than the preset time, controlling the voice recognition module to receive and recognize a voice control instruction and generating control information corresponding to the voice control instruction;
and sending the control information to an external device.
5. A terminal wake-up method according to claim 4, wherein the step of transmitting the control information to an external device is followed by:
detecting a current first motion angular velocity, and judging whether the first motion angular velocity is equal to zero or not;
and if the first motion angular velocity is equal to zero, controlling the voice recognition module to enter a dormant state.
6. The terminal wake-up method according to claim 1, wherein the step of obtaining a face thermography image and generating a digital matrix from the face thermography image comprises:
detecting a current second motion angular speed, and judging whether the second motion angular speed is greater than a preset angular speed or not;
if the second motion angular velocity is larger than the preset angular velocity, detecting infrared rays with the wavelength of 2-22 mu m to generate the human face thermal imaging image.
7. The terminal wake-up method according to claim 1, wherein the step of obtaining a face thermography image and generating a digital matrix from the face thermography image comprises:
acquiring a face thermal imaging image, wherein the face thermal imaging image is composed of a plurality of image areas;
acquiring the temperature of each image area, and generating a digital matrix according to the temperature value of each image area;
the step of calculating the offset matrix according to the digital matrix and the preset matrix comprises the following steps:
and subtracting the temperature value in the digital matrix from a preset value corresponding to the temperature value in the preset matrix to obtain the offset matrix.
8. A terminal comprising a thermopile, a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of a terminal wake-up method according to any one of claims 1 to 7 when executing the program.
9. The terminal of claim 8, wherein the terminal comprises a plurality of thermopiles, the plurality of thermopiles being spaced apart.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the terminal wake-up method according to any one of claims 1 to 7.
CN201911418673.8A 2019-12-31 2019-12-31 Terminal awakening method, terminal and storage medium Pending CN111142957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911418673.8A CN111142957A (en) 2019-12-31 2019-12-31 Terminal awakening method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911418673.8A CN111142957A (en) 2019-12-31 2019-12-31 Terminal awakening method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111142957A true CN111142957A (en) 2020-05-12

Family

ID=70523152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911418673.8A Pending CN111142957A (en) 2019-12-31 2019-12-31 Terminal awakening method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111142957A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130314536A1 (en) * 2009-03-02 2013-11-28 Flir Systems, Inc. Systems and methods for monitoring vehicle occupants
CN105844240A (en) * 2016-03-23 2016-08-10 深圳云天励飞技术有限公司 Method and device for detecting human faces in infrared temperature measurement system
US20170110887A1 (en) * 2015-09-16 2017-04-20 Energous Corporation Systems and methods of object detection in wireless power charging systems
CN106650666A (en) * 2016-12-26 2017-05-10 北京旷视科技有限公司 Method and device for detection in vivo
GB2547909A (en) * 2016-03-01 2017-09-06 Rismanchi Vahid System for computer-assisted communication and/or computer-assisted human analysis
CN109754814A (en) * 2017-11-08 2019-05-14 阿里巴巴集团控股有限公司 A kind of sound processing method, interactive device
CN109976506A (en) * 2017-12-28 2019-07-05 深圳市优必选科技有限公司 Awakening method, storage medium and the robot of a kind of electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130314536A1 (en) * 2009-03-02 2013-11-28 Flir Systems, Inc. Systems and methods for monitoring vehicle occupants
US20170110887A1 (en) * 2015-09-16 2017-04-20 Energous Corporation Systems and methods of object detection in wireless power charging systems
GB2547909A (en) * 2016-03-01 2017-09-06 Rismanchi Vahid System for computer-assisted communication and/or computer-assisted human analysis
CN105844240A (en) * 2016-03-23 2016-08-10 深圳云天励飞技术有限公司 Method and device for detecting human faces in infrared temperature measurement system
CN106650666A (en) * 2016-12-26 2017-05-10 北京旷视科技有限公司 Method and device for detection in vivo
CN109754814A (en) * 2017-11-08 2019-05-14 阿里巴巴集团控股有限公司 A kind of sound processing method, interactive device
CN109976506A (en) * 2017-12-28 2019-07-05 深圳市优必选科技有限公司 Awakening method, storage medium and the robot of a kind of electronic equipment

Similar Documents

Publication Publication Date Title
EP3163498B1 (en) Alarming method and device
KR102171616B1 (en) Method and device for preventing incorrect contact of terminal
CN109639970B (en) Shooting method and terminal equipment
CN109361865B (en) Shooting method and terminal
US10452890B2 (en) Fingerprint template input method, device and medium
EP3121557B1 (en) Method and apparatus for determining spatial parameter based on an image
KR101754154B1 (en) Fever Patient Monitering Syatem at Public Place by Using Multiple Band Camera and Statistical Sampling and Method thereof
US20170123587A1 (en) Method and device for preventing accidental touch of terminal with touch screen
US20200201688A1 (en) Method for sending warning information, storage medium and terminal
US10122916B2 (en) Object monitoring method and device
CN104349047B (en) Image picking-up apparatus and its image pickup method
US20170006216A1 (en) Method and device for acquiring iris image
CN105895073B (en) Notification information sending method and device
US20190121298A1 (en) Method and apparatus for controlling alarm clock
WO2020088092A1 (en) Key point position determining method and apparatus, and electronic device
US20150288764A1 (en) Method and apparatus for controlling smart terminal
KR20180046679A (en) Method of sensing fingerprint and electronic apparatus including the same
CN105451011B (en) The method and apparatus of regulation power
CN108154090B (en) Face recognition method and device
US11574502B2 (en) Method and device for identifying face, and computer-readable storage medium
JP7472281B2 (en) Electronic device and focusing method
CN111142957A (en) Terminal awakening method, terminal and storage medium
US10739913B2 (en) Protective film detection method and apparatus, and storage medium
CN108960097B (en) Method and device for obtaining face depth information
CN107613140B (en) Alarm clock setting prompting method, mobile terminal and computer readable storage medium

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