Method and device for controlling television, electronic equipment and storage medium

By obtaining user posture and facial image information in the preset area, combining the two to determine the rest state, and controlling the smart TV to enter the sleep mode when the rest state lasts greater than the preset time, the error control of the TV operation in the prior art is solved The problem of sleep aid mode improves accuracy and user experience.

CN119071574APending Publication Date: 2024-12-03QINGDAO HAIER MULTI MEDIA CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310646647.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The prior art is prone to miscontrolling the sleep-assisted mode of TV operation when judging whether a user is asleep because the user is lying down to watch TV, which affects the user experience and electricity cost.

Method used

By obtaining the user's posture information and facial image information in the preset area, combining the two to determine the user's rest state, and controlling the smart TV to enter the sleep mode when the rest state lasts greater than the preset time, reducing the chance of error control .

Benefits of technology

It improves the accuracy of judging the user's sleep state, ensures that the sleep aid mode is activated only after the user enters a stable sleep state, reduces the chance of accidentally controlling the TV to run the sleep aid mode, and reduces the cost of electricity bills and TV usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071574A_ABST
    Figure CN119071574A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image recognition, and discloses a method for controlling a television, which comprises the following steps: acquiring posture information and facial image information of a user under the condition that the user exists in a preset area; the preset area is an area for watching the smart television. And determining a rest state of the user according to the posture information and the facial image information, wherein the rest state is used for representing a sleep state or a non-sleep state. Under the condition that the rest state is the sleep state, the duration of the rest state is obtained. And when the duration is greater than the preset duration, controlling the smart television to operate according to the sleep-aiding mode. Therefore, the rest state of the user can be determined more accurately, and the probability of mistakenly controlling the television to operate the sleep-aiding mode can be reduced. The invention further discloses a device for controlling the television, electronic equipment and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition technology, for example, to a method, device, electronic device and storage medium for controlling a television. Background Art

[0002] At present, television is the most important entertainment tool in our daily life, but many TV programs are broadcast very late. People are prone to fall asleep due to fatigue while watching TV, and the TV is always in working state, which affects other people's sleep, wastes electricity, generates extra electricity bills, and increases the cost of using TV. In order to reduce the disturbance of TV to user's sleep, the existing technology usually determines whether the user is asleep based on the user's posture information, so as to control the TV to run the sleep-aiding mode.

[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0004] However, users may lie down and watch TV, which may lead to the TV being mistakenly controlled to run sleep-aid mode.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for controlling a television, so as to reduce the probability of mistakenly controlling a smart television to run a sleep-aiding mode.

[0008] In some embodiments, the method for controlling a television includes: when a user is present in a preset area, obtaining posture information and facial image information of the user; the preset area is an area for watching smart TV; determining the rest state of the user based on the posture information and facial image information, the rest state being used to characterize a sleeping state or a non-sleeping state; when the rest state is a sleeping state, obtaining a duration of the rest state; when the duration is greater than a preset duration, controlling the smart TV to operate in a sleep aid mode.

[0009] In some embodiments, obtaining the user's posture information includes: obtaining a picture to be identified; the picture to be identified is obtained by photographing a preset area; performing image recognition on the picture to be identified to obtain a picture to be identified with identification information; the identification information is used to characterize the position identification of the user's joints in the picture to be identified; and determining the user's posture information based on the picture to be identified with the identification information.

[0010] In some embodiments, determining the user's posture information based on the picture to be recognized with identification information includes: inputting the picture to be recognized with identification information into a preset posture recognition model to obtain the posture information.

[0011] In some embodiments, obtaining facial image information of a user includes: performing facial recognition on the user to obtain facial image information.

[0012] In some embodiments, determining the resting state of the user according to the posture information and the facial image information includes: when the posture information is a preset posture and the facial image information is a preset image, determining that the user is in a sleeping state.

[0013] In some embodiments, controlling the smart TV to operate in the sleep aid mode includes: reducing the playback volume of the smart TV according to a preset volume correction value until the playback volume is 0.

[0014] In some embodiments, controlling the smart TV to operate in a sleep aid mode includes: reducing the display brightness of the smart TV according to a preset brightness correction value until the display brightness is 0.

[0015] In some embodiments, the device for controlling a television includes: a first acquisition module, configured to acquire posture information and facial image information of a user when a user is present in a preset area; the preset area is an area for watching smart TV; a determination module, configured to determine the user's rest state based on the posture information and facial image information, the rest state being used to characterize whether the user is in a sleeping state or an awake state; a second acquisition module, configured to acquire the duration of the rest state when the rest state is a sleeping state; and a control module, configured to control the smart TV to operate in a sleep aid mode when the duration is greater than a preset duration.

[0016] In some embodiments, the electronic device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for controlling a television when running the program instructions.

[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for controlling a television is executed.

[0018] The method, device, electronic device and storage medium for controlling a television provided by the embodiments of the present disclosure can achieve the following technical effects: by jointly determining the user's resting state based on the user's posture information and facial image information when there is a user in a preset area, the user's resting state can be determined more accurately than the method of determining the user's resting state only by the user's posture information. In addition, by obtaining the duration of the resting state, and only when the duration is greater than the preset duration, the smart TV is controlled to operate in the sleep-aiding mode. In this way, it can be determined that the user has entered a stable sleep state, and only when the user has entered a stable sleep state can the smart TV be controlled to operate in the sleep-aiding mode. Thereby, the probability of mistakenly controlling the TV to operate in the sleep-aiding mode can be reduced.

[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0021] Figure 1 is a schematic diagram of a method for controlling a television provided by an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of another method for controlling a television provided by an embodiment of the present disclosure;

[0023] Figure 3 is a schematic diagram of another method for controlling a television provided by an embodiment of the present disclosure;

[0024] Figure 4 is a schematic diagram of another method for controlling a television provided by an embodiment of the present disclosure;

[0025] Figure 5 is a schematic diagram of a device for controlling a television provided by an embodiment of the present disclosure;

[0026] Figure 6 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0028] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0029] Unless otherwise stated, the term "plurality" means two or more.

[0030] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0031] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0032] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0033] In the embodiments of the present disclosure, a smart TV refers to a TV product formed by introducing a microprocessor, sensor technology, and network communication technology into a TV. It has the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of a smart TV often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, a smart TV can be connected to electronic devices to enable users to remotely control and manage the smart TV.

[0034] In the embodiment of the present disclosure, the execution subject of the method for controlling a television is an electronic device, and the electronic device is a server, a computer, or a smart television, etc.

[0035] In some embodiments, when the electronic device is a server or a computer, the server or computer is connected to the smart TV through the Internet. The smart TV is provided with an image acquisition device, which is used to take a picture of a preset area to obtain a picture to be identified. The server or computer obtains the picture to be identified through the image acquisition device on the smart TV. The server or computer identifies the picture to be identified to obtain the rest state of the user in the preset area.

[0036] In some embodiments, when the electronic device is a smart TV, the smart TV is provided with an image acquisition device, and the smart TV uses the image acquisition device to take a picture of a preset area to obtain a picture to be identified. The smart TV identifies the picture to be identified to obtain the rest state of the user in the preset area.

[0037] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for controlling a television, including:

[0038] Step S101: When a user exists in a preset area, the electronic device obtains the user's posture information and facial image information. The preset area is an area where a smart TV can be watched.

[0039] Step S102: the electronic device determines the user's resting state according to the posture information and the facial image information. The resting state is used to represent a sleeping state or a non-sleeping state.

[0040] Step S103: when the resting state is the sleeping state, the electronic device obtains the duration of the resting state.

[0041] Step S104: when the duration is longer than the preset duration, the electronic device controls the smart TV to operate in a sleep aid mode.

[0042] The method for controlling a television provided by the embodiment of the present disclosure is adopted. When a user is present in a preset area, the user's resting state is jointly determined based on the user's posture information and facial image information. Compared with the method of determining the user's resting state only by the user's posture information, the user's resting state can be determined more accurately, and the duration of the resting state is obtained, and the smart TV is controlled to run in the sleep-aiding mode only when the duration is greater than the preset duration. In this way, it can be determined that the user has entered a stable sleep state, and when the user has entered a stable sleep state, the smart TV is controlled to run in the sleep-aiding mode. Thereby, the probability of mistakenly controlling the TV to run the sleep-aiding mode can be reduced.

[0043] Optionally, obtaining the posture information of the user includes: obtaining a picture to be identified. The picture to be identified is obtained by photographing a preset area. Performing image recognition on the picture to be identified to obtain a picture to be identified with identification information. The identification information is used to characterize the position identification of the user's joints in the picture to be identified. Determine the posture information of the user based on the picture to be identified with the identification information. Due to different postures of the user, the location of their joints will usually change. Therefore, by determining the posture information of the user through the picture to be identified with the position identification of the user's joints, the posture of the user can be determined more accurately.

[0044] Optionally, obtaining the picture to be identified includes: photographing a preset area using an image acquisition device to obtain a photo of the preset area, and determining the photo of the preset area as the picture to be identified.

[0045] Optionally, determining the user's posture information based on the picture to be identified with identification information includes: inputting the picture to be identified with identification information into a preset posture recognition model to obtain the posture information.

[0046] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for controlling a television, including:

[0047] Step S201: When there is a user in a preset area, the electronic device obtains a picture to be identified. The picture to be identified is obtained by photographing the preset area.

[0048] Step S202: the electronic device performs image recognition on the image to be recognized, and obtains the image to be recognized with identification information. The identification information is used to represent the position identification of the user's joints in the image to be recognized.

[0049] Step S203: the electronic device determines the user's posture information according to the picture to be identified with identification information.

[0050] Step S204: the electronic device obtains the user's facial image information.

[0051] Step S205: the electronic device determines the user's resting state according to the posture information and the facial image information. The resting state is used to represent a sleeping state or a non-sleeping state.

[0052] Step S206: When the resting state is the sleeping state, the electronic device obtains the duration of the resting state.

[0053] Step S207: When the duration is longer than the preset duration, the electronic device controls the smart TV to operate in the sleep aid mode.

[0054] The method for controlling a television provided by the embodiment of the present disclosure is adopted. When a user exists in a preset area, the posture information of the user is determined according to a picture to be identified with position marks of the user's joints, so that the posture of the user can be determined more accurately. At the same time, the user's resting state is determined jointly according to the user's posture information and facial image information. Compared with the method of determining the user's resting state only by the user's posture information, the user's resting state can be determined more accurately, and by obtaining the duration of the resting state, and only when the duration is greater than the preset duration, the smart TV is controlled to run in the sleep-aiding mode. In this way, it can be determined that the user has entered a stable sleep state, and only when the user has entered a stable sleep state, the smart TV is controlled to run in the sleep-aiding mode. Thereby, the probability of mistakenly controlling the TV to run the sleep-aiding mode can be reduced.

[0055] Furthermore, the posture recognition model is obtained by the following method: a plurality of sample images are obtained, each sample image has identification information and a sample label, and the sample label is the user's posture information. The sample images are input into a preset neural network model for training to obtain a posture recognition model.

[0056] Optionally, obtaining the user's facial image information includes: performing facial recognition on the user to obtain the facial image information. In this way, the user's facial image information can be obtained.

[0057] Optionally, determining the resting state of the user according to the posture information and the facial image information includes: when the posture information is a preset posture and the facial image information is a preset image, determining that the user is in a sleeping state.

[0058] In some embodiments, the preset posture is lying down, and the second preset image is a facial image with eyes closed. In this way, it can be determined that the user is in a sleeping state only when the user is lying down with eyes closed. Thus, the smart TV is controlled to operate in the sleep-aiding mode. Thus, it can be avoided that the smart TV is mistakenly controlled to operate in the sleep-aiding mode when the user is lying down and turning on the TV, or the user is sitting and closing his eyes to listen to the sound. In addition, the probability of mistakenly controlling the smart TV to operate in the sleep-aiding mode can be reduced.

[0059] Optionally, determining the resting state of the user according to the posture information and the facial image information includes: determining that the user is not in a sleeping state when the posture information is not a preset posture or the facial image information is not a preset image. In this way, as long as the posture information is not a preset posture or the facial image information is not a preset image, the user is directly determined to be in a sleeping state. The steps of determining whether the user is in a sleeping state can be reduced.

[0060] Optionally, determining the resting state of the user according to the posture information and the facial image information includes: determining that the user is not in a sleeping state when the posture information is not a preset posture and the facial image information is not a preset image. In this way, it can be more accurately determined that the user is not in a sleeping state.

[0061] Optionally, controlling the smart TV to operate in the sleep-aiding mode includes: reducing the playback volume of the smart TV according to a preset volume correction value until the playback volume is 0. In this way, the possibility of the user being awakened by the sound of the TV playback can be reduced.

[0062] Combination Figure 3 As shown, the embodiment of the present disclosure provides a method for controlling a television, including:

[0063] Step S301: When a user exists in a preset area, the electronic device obtains the user's posture information and facial image information. The preset area is an area for watching smart TV.

[0064] Step S302: the electronic device determines the user's resting state according to the posture information and the facial image information. The resting state is used to represent the sleeping state or the awake state.

[0065] Step S303: when the resting state is the sleeping state, the electronic device obtains the duration of the resting state.

[0066] Step S304: When the duration is longer than the preset duration, the electronic device reduces the playback volume of the smart TV according to the preset volume correction value until the playback volume is 0.

[0067] The method for controlling a television provided by the embodiment of the present disclosure is adopted. When a user exists in a preset area, the user's resting state is jointly determined based on the user's posture information and facial image information. Compared with the method of determining the user's resting state only by the user's posture information, the user's resting state can be determined more accurately, and the duration of the resting state is obtained, and the smart TV is controlled to operate in the sleep-aiding mode only when the duration is greater than the preset duration. In this way, it can be determined that the user has entered a stable sleep state, and when the user has entered a stable sleep state, the playback volume of the smart TV is reduced according to the preset volume correction value until the playback volume is 0. This can not only reduce the probability of mistakenly controlling the TV to reduce the playback volume. It can also reduce the possibility of the user being awakened by the sound of the TV.

[0068] Optionally, controlling the smart TV to operate in the sleep-aiding mode includes: reducing the brightness of the display screen of the smart TV according to a preset brightness correction value until the brightness of the display screen is 0. In this way, the probability of the TV light disturbing the user's sleep can be reduced. In addition, the power consumption of the TV can be reduced.

[0069] Combination Figure 4 As shown, the embodiment of the present disclosure provides a method for controlling a television, including:

[0070] Step S401: When a user exists in a preset area, the electronic device obtains the user's posture information and facial image information. The preset area is an area for watching smart TV.

[0071] Step S402: the electronic device determines the user's resting state according to the posture information and the facial image information. The resting state is used to represent a sleeping state or a non-sleeping state.

[0072] Step S403: when the resting state is the sleeping state, the electronic device obtains the duration of the resting state.

[0073] Step S404: When the duration is longer than the preset duration, the electronic device reduces the brightness of the display screen of the smart TV according to the preset brightness correction value until the brightness of the display screen is 0.

[0074] The method for controlling a television provided by the embodiment of the present disclosure is adopted. When a user exists in a preset area, the user's resting state is jointly determined based on the user's posture information and facial image information. Compared with the method of determining the user's resting state only by the user's posture information, the user's resting state can be determined more accurately, and the duration of the resting state is obtained, and the smart TV is controlled to operate in the sleep-aiding mode only when the duration is greater than the preset duration. In this way, it can be determined that the user has entered a stable sleep state, and when the user has entered a stable sleep state, the brightness of the display screen of the smart TV is reduced according to the preset brightness correction value until the brightness of the display screen is 0. This not only reduces the probability of mistakenly controlling the TV to reduce the playback brightness. It can also reduce the probability of the TV light disturbing the user's sleep, and can reduce the power consumption of the TV.

[0075] Optionally, controlling the smart TV to operate in the sleep aid mode includes: reducing the playback volume of the smart TV according to a preset volume correction value until the playback volume is 0. Also, reducing the display brightness of the smart TV according to a preset brightness correction value until the display brightness is 0.

[0076] In some embodiments, when the smart TV enters sleep mode, the sound and light systems simultaneously enter the sleep aid mode to cooperate with each other so that the user can fall asleep. First, the sound system slowly lowers the volume and smoothly transitions to sleep-aiding music such as white noise or soothing music; at the same time as the sound system starts to change, the TV screen also begins to gradually reduce the brightness until the screen is completely turned off. If there is an ambient light, the ambient light performs this operation synchronously.

[0077] Optionally, combined Figure 5As shown, the embodiment of the present disclosure provides a device 500 for controlling a television, including: a first acquisition module 501, a determination module 502, a second acquisition module 503 and a control module 504. The first acquisition module 501 is configured to acquire the posture information and facial image information of the user when there is a user in a preset area. The preset area is an area for watching smart TV. The determination module 502 is configured to determine the resting state of the user based on the posture information and the facial image information, and the resting state is used to characterize that the user is in a sleeping state or a non-sleeping state. The second acquisition module 503 is configured to acquire the duration of the resting state when the resting state is a sleeping state. The control module 504 is configured to control the smart TV to operate in a sleep-aiding mode when the duration is greater than the preset duration.

[0078] The device for controlling a television provided by the embodiment of the present disclosure can determine the resting state of the user based on the user's posture information and facial image information when the user is present in a preset area. Compared with the method of determining the resting state of the user only by the user's posture information, the resting state of the user can be determined more accurately, and the duration of the resting state is obtained, and the smart TV is controlled to run in the sleep-aiding mode only when the duration is greater than the preset duration. In this way, it can be determined that the user has entered a stable sleep state, and the smart TV is controlled to run in the sleep-aiding mode only when the user has entered a stable sleep state. Thereby, the probability of mistakenly controlling the TV to run the sleep-aiding mode can be reduced.

[0079] Optionally, the first acquisition module is configured to acquire the user's posture information in the following manner: acquiring a picture to be identified. The picture to be identified is obtained by photographing a preset area. Performing image recognition on the picture to be identified to obtain a picture to be identified with identification information; the identification information is used to represent the position identification of the user's joints in the picture to be identified. Determining the user's posture information based on the picture to be identified with the identification information.

[0080] Optionally, determining the user's posture information based on the picture to be identified with identification information includes: inputting the picture to be identified with identification information into a preset posture recognition model to obtain the posture information.

[0081] Optionally, the first acquisition module is configured to acquire the facial image information of the user in the following manner: performing facial recognition on the user to obtain the facial image information.

[0082] Optionally, the determination module is configured to determine the resting state of the user according to the posture information and the facial image information in the following manner: when the posture information is a preset posture and the facial image information is a preset image, it is determined that the user is in a sleeping state.

[0083] Optionally, the control module is configured to control the smart TV to operate in the sleep aid mode in the following manner: reducing the playback volume of the smart TV according to a preset volume correction value until the playback volume is 0.

[0084] Optionally, the control module is configured to control the smart TV to operate in the sleep aid mode in the following manner: reducing the display screen brightness of the smart TV according to a preset brightness correction value until the display screen brightness is 0.

[0085] Combination Figure 6 As shown, an embodiment of the present disclosure provides an electronic device 600, including a processor (processor) 601 and a memory (memory) 602. Optionally, the device may also include a communication interface (CommunicationInterface) 603 and a bus 604. The processor 601, the communication interface 603, and the memory 602 may communicate with each other through the bus 604. The communication interface 603 may be used for information transmission. The processor 601 may call the logic instructions in the memory 602 to execute the method for controlling a television in the above embodiment.

[0086] By using the electronic device provided by the embodiment of the present disclosure, when there is a user in a preset area, the user's resting state is jointly determined based on the user's posture information and facial image information. Compared with the method of determining the user's resting state only by the user's posture information, the user's resting state can be determined more accurately, and by obtaining the duration of the resting state, and only when the duration is greater than the preset duration, the smart TV is controlled to operate in the sleep-aiding mode. In this way, it can be determined that the user has entered a stable sleep state, and only when the user has entered a stable sleep state can the smart TV be controlled to operate in the sleep-aiding mode. Thereby, the probability of mistakenly controlling the TV to operate in the sleep-aiding mode can be reduced.

[0087] In addition, the logic instructions in the memory 602 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0088] The memory 602 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 601 executes the function application and data processing by running the program instructions / modules stored in the memory 602, that is, the method for controlling the television in the above embodiment is implemented.

[0089] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 602 may include a high-speed random access memory and may also include a non-volatile memory.

[0090] An embodiment of the present disclosure provides a storage medium storing program instructions, wherein the program instructions, when executed, execute the above method for controlling a television.

[0091] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0092] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0093] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0094] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0095] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0096] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling a television, characterized in that: include: When a user exists in a preset area, obtaining the user's posture information and facial image information; The preset area is the area for watching smart TV; Determine the user's rest state based on the posture information and the facial image information, where the rest state is used to represent a sleeping state or a non-sleeping state; When the rest state is a sleeping state, obtain the duration of the rest state; When the duration is longer than the preset time, the smart TV is controlled to operate in the sleep-aid mode.

2. The method according to claim 1, characterized in that Get the user's posture information, including: Obtaining a picture to be identified; the picture to be identified is obtained by photographing a preset area; Perform image recognition on the image to be identified to obtain the image to be identified with identification information; the identification information is used to represent the position of the user's joints in the image to be identified; Determine the user's posture information based on the image to be identified with identification information.

3. The method according to claim 2, characterized in that Determine the user's posture information based on the image to be identified with identification information, including: The image to be identified with identification information is input into the preset posture recognition model to obtain posture information.

4. The method according to claim 1, characterized in that: Get the user's facial image information, including: Perform facial recognition on the user to obtain facial image information.

5. The method according to claim 1, characterized in that Determine the user's resting state based on posture information and facial image information, including: When the posture information is a preset posture and the facial image information is a preset image, it is determined that the user is in a sleeping state.

6. The method according to claim 1, characterized in that Control the smart TV to run in sleep-aid mode, including: The playback volume of the smart TV is reduced according to the preset volume correction value until the playback volume is 0.

7. The method according to claim 1, characterized in that Control the smart TV to run in sleep-aid mode, including: The display brightness of the smart TV is reduced according to the preset brightness correction value until the display brightness is 0.

8. A device for controlling a television, characterized in that: include: A first acquisition module is configured to acquire the user's posture information and facial image information when there is a user in the preset area; The preset area is the area for watching smart TV; a determination module, configured to determine a resting state of the user according to the posture information and the facial image information, wherein the resting state is used to indicate whether the user is in a sleeping state or a non-sleeping state; The second acquisition module is configured to acquire the duration of the rest state when the rest state is the sleep state; The control module is configured to control the smart TV to operate in a sleep-aiding mode when the duration is greater than a preset duration.

9. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a television according to any one of claims 1 to 7 when running the program instructions.

10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for controlling a television according to any one of claims 1 to 7 is executed.