State detection method and device, nonvolatile storage medium and computer equipment
By obtaining and analyzing the lightness data of the initial area of the TV, the TV and switching status of the TV machine is determined, and the problem that cannot detect the TV switch status in existing technologies cannot be detected in a long distance, and the needs of long -distance detection and energy saving and environmental protection are realized.
Patent Information
- Application Number
- CN202411143782.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-01-24
AI Technical Summary
The prior art cannot detect the status of the TV switch from a long distance, which limits users' needs for remote operation and energy conservation and environmental protection.
By obtaining the original illumination data of the initial area of the TV, the target illumination data of the target area is determined, and the switch status of the TV is determined based on the illumination difference to achieve long-distance detection.
The function of remotely detecting the switch status of the TV is realized, solving the problem of inability to detect the TV from a distance in the existing technology, and improving the user experience and energy-saving efficiency.
Smart Images

Figure CN119364074A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of television switch detection, and in particular to a state detection method, device, non-volatile storage medium and computer equipment. Background Art
[0002] The purpose of TV switch automatic recognition technology is to improve user experience and achieve more convenient and intelligent TV control, which is in line with the current energy-saving and environmental protection concepts. At present, the main domestic TV switch automatic recognition technology solutions are as follows: one is based on human body sensing; the second is based on image recognition; the third is based on sound recognition; the fourth is based on Bluetooth connection; the fifth is based on wearable devices such as smart bracelets or watches.
[0003] Although the above-mentioned TV switch automatic recognition technology can realize the recognition of the TV switch state, it requires the user to be close to the TV to realize the technology, and the TV switch state cannot be recognized by remote operation.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a state detection method, an apparatus, a non-volatile storage medium and a computer device, so as to at least solve the technical problem in the related art that the switch state of a television cannot be detected at a long distance.
[0006] According to one aspect of an embodiment of the present invention, a state detection method is provided, including: obtaining original illuminance data of an initial area of a television set within a preset angle range at a current moment; determining target illuminance data of a target area corresponding to the television set at the current moment based on the original illuminance data at the current moment, wherein the target area is part or all of the initial area; and determining the on / off state of the television set based on the target illuminance data at the current moment.
[0007] Optionally, obtaining original illuminance data of an initial area of the television within a preset angle range at the current moment includes: obtaining image data of the initial area at the current moment; and determining original illuminance data at the current moment based on the image data.
[0008] Optionally, the on / off state of the television is determined based on the target light illumination data at the current moment, including: obtaining the historical light illumination data of the previous moment before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data of the previous moment before the current moment is greater than a first preset threshold, determining that the television is in the on state at the current moment.
[0009] Optionally, the on / off state of the TV is determined based on the target light illumination data at the current moment, including: detecting whether the difference between the target light illumination data at the current moment and the first preset light illumination data is less than a second preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than the second preset threshold value, determining that the TV is in the on state at the current moment.
[0010] Optionally, when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than a second preset threshold value, it is determined that the TV is in the on state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data, and the difference between the historical light illumination data and the first preset light illumination data is also less than the second preset threshold value, it is determined that the TV is in the on state at the current moment.
[0011] Optionally, the on / off state of the television is determined based on the target light illumination data at the current moment, including: obtaining the historical light illumination data of the previous moment before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data of the previous moment before the current moment is greater than a third preset threshold, determining that the television is in the off state at the current moment.
[0012] Optionally, the on / off state of the TV is determined based on the target light illumination data at the current moment, including: detecting whether the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than the fourth preset threshold value, determining that the TV is in the off state at the current moment.
[0013] Optionally, when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold, it is determined that the TV is in the off state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data, and the difference between the historical light illumination data and the second preset light illumination data is also less than the fourth preset threshold, it is determined that the TV is in the off state at the current moment.
[0014] According to another aspect of an embodiment of the present invention, a state detection device is also provided, including: an acquisition module, used to acquire the original illuminance data of the initial area of the TV within a preset angle range at the current moment; a first determination module, used to determine the target illuminance data of the target area corresponding to the TV at the current moment based on the original illuminance data at the current moment, wherein the target area is part or all of the initial area; and a second determination module, used to determine the on / off state of the TV based on the target illuminance data at the current moment.
[0015] According to another aspect of an embodiment of the present invention, a state detection system is further provided, including: a wireless module, a light intensity sensor, and a host computer, wherein any one of the above state detection methods is executed when the system is running.
[0016] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided. The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned status detection methods.
[0017] According to another aspect of the embodiments of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above-mentioned state detection methods is executed.
[0018] According to another aspect of the embodiments of the present invention, a lighting product is provided, which is connected to a computer device. After the computer device executes the above-mentioned state detection method, the lighting product can achieve: based on the on / off state of the TV at the current moment, select a corresponding mode of light.
[0019] In an embodiment of the present invention, a state detection method is adopted, by obtaining the original illuminance data of the initial area of the television within a preset angle range at the current moment; according to the original illuminance data at the current moment, the target illuminance data of the target area corresponding to the television at the current moment is determined, wherein the target area is part or all of the initial area; according to the target illuminance data at the current moment, the on / off state of the television is determined, thereby achieving the purpose of detecting the on / off state of the television by using the target surface illuminance detection technology, thereby realizing the technical effect of detecting the on / off state of the television at a long distance, and further solving the technical problem that the on / off state of the television cannot be detected at a long distance in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1A hardware structure block diagram of a computer terminal for implementing a state detection method is shown;
[0022] Figure 2 is a flow chart of a state detection method provided according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of initial area partitioning provided according to an optional embodiment of the present invention;
[0024] Figure 4 is a block diagram of the internal structure of a TSIM sensor provided according to an optional embodiment of the present invention;
[0025] Figure 5 is a structural block diagram of a state detection device provided according to an embodiment of the present invention;
[0026] Figure 6 It is a framework diagram of a state detection system provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an embodiment of the present invention, a method embodiment of state detection is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a state detection method. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0032] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the state detection method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the state detection method of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0034] Figure 2 is a flow chart of a state detection method provided according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0035] Step S201, obtaining original illuminance data of an initial area of the television within a preset angle range at the current moment.
[0036] In this step, the collection of the original illuminance data in the initial area is achieved by a TSIM (Target Surface Illumination Measurement) sensor. Among them, the TSIM sensor is a sensor for detecting the illuminance of the target surface, which can convert the illuminance into an electrical signal output for subsequent processing, display or control. The target surface illuminance sensor mainly works based on the principle of photoelectric effect. Specifically, it uses a detection component to receive light and converts it into a corresponding electrical signal according to the illuminance. These electrical signals are then processed by the processor system and output as binary signals or other forms of measurable signals. The preset angle range is the angle range that the lens can obtain. The initial area obtained will include the target area where the TV is located. The specific size of the initial area can be determined according to the distance from the plane where the TV is located. For example, when the distance from the TV is far, the initial area will be relatively large.
[0037] Step S202, determining the target illuminance data of the target area corresponding to the television at the current moment according to the original illuminance data at the current moment, wherein the target area is a part or all of the initial area.
[0038] In this step, Figure 3 Schematic diagram of initial area partitioning according to an optional embodiment of the present invention. Figure 3 As shown, the initial area transmitted back by the TSIM sensor is partitioned into two areas: TV area A and area B outside the TV, wherein TV area A can be a target area that can reflect the illumination information of the TV, and TV area A can also be larger than the range of the TV, or be a part of the TV screen. In the original illumination data transmitted back by the TSIM sensor, the host computer discards the data of area B and only processes the data of area A. By first obtaining the original illumination data and then determining the target illumination data therefrom, there is no need for the control device to only obtain the area where the TV is located, thereby achieving the technical effect of remotely detecting the switch status of the TV.
[0039] In addition, the determination of the target illuminance data can also be calculated by adding weights. For example, the initial area can also be divided into the TV area and the area outside the TV. After the user has used the TV for a period of time, the regional weights can be allocated based on the user's feedback. A higher weight can be allocated to the TV area, and a lower weight can be allocated to the area outside the TV. The original illuminance data of the TV area and the original illuminance data outside the TV are added according to their respective corresponding weights to obtain the target illuminance data. The above method of determining the target illuminance data based on weights can avoid the error caused by directly discarding the original illuminance data of the area outside the TV.
[0040] Step S203, determining the on / off state of the television according to the target light intensity data at the current moment.
[0041] In this step, when the TV is not turned on, the TV screen is black and has a low reflectivity to light, so the target light illuminance data collected by the TSIM sensor is a lower value. After the TV is turned on, the TV screen starts to play, and the light from the TV screen can cause its illuminance to increase. Therefore, the target light illuminance data collected by the TSIM sensor is a higher value. Therefore, the switch state of the TV can be judged by the size of the target light illuminance data collected by the TSIM sensor.
[0042] Through the above steps, the detection of the on / off state of the TV can be performed when there is no user near the TV. Therefore, the detection interval can be set in advance to achieve automatic detection of the on / off state of the TV. For example, the on / off state of the TV can be detected every 10 minutes. After the device is turned on, the user can remotely obtain the on / off state information of the TV in real time, avoiding energy waste and electricity expenses caused by not using the TV for a long time.
[0043] Through the above steps, the purpose of using the target surface illumination detection technology to detect the switch state of the TV is achieved, thereby realizing the technical effect of long-distance detection of the switch state of the TV, and further solving the technical problem of the related technology that the switch state of the TV cannot be detected at a long distance.
[0044] As an optional embodiment, obtaining original illuminance data of an initial area of a television within a preset angle range at the current moment includes: obtaining image data of the initial area at the current moment; and determining original illuminance data at the current moment based on the image data.
[0045] Optionally, the original illuminance data of the initial area may be collected by a TSIM sensor, wherein the TSIM sensor may include multiple structures. Figure 4 is a block diagram of the internal structure of a TSIM sensor provided according to an optional embodiment of the present invention, such as Figure 4 As shown, the TSIM sensor may include a lens, a CMOS (Complementary Metal-Oxide-Semiconductor Sensor) sensor, and a DPU (Data Processing Unit), wherein information is transmitted between the lens and the CMOS sensor in an optical form, and the CMOS sensor then transmits the information to the data processing unit in a wired manner. The lens collects and transmits images within a preset angle range to the CMOS sensor, and after completing the photoelectric conversion in the CMOS sensor, transmits the information in pixels to the DPU, which then processes the raw data and converts it into illuminance information, and then transmits the illuminance information of all pixels to the outside. Since the illuminance information is collected by shooting the target screen with a lens, the TSIM sensor itself can be kept away from the target surface to be measured, and due to the protection of the lens, the sensor is not easily interfered by other light sources near its own position, so the detection device can be installed on the ceiling of the user's room or other places away from the TV wall.
[0046] As an optional embodiment, determining the on / off state of a television set based on target light illumination data at a current moment includes: obtaining historical light illumination data at a previous moment before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data at a previous moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data at a previous moment before the current moment is greater than a first preset threshold, determining that the television set is in the on state at the current moment.
[0047] Optionally, the on / off state of the TV can be determined by the following method: when the host computer of the device for detecting the on / off state recognizes that the target light illuminance data at the current moment is significantly higher than the target light illuminance data at the previous moment, for example, the difference between the two is greater than 100 lux, it can be considered that the TV is in the on state at the current moment. Specifically, the first preset threshold can be determined according to actual conditions. Among them, because the illuminance accuracy collected by the TSIM sensor is ±50 lux, in order to improve the accuracy of the judgment result, the illuminance difference threshold for judging whether the TV is turned on should be no less than 50 lux.
[0048] As an optional embodiment, determining the on / off state of a television set based on target light illumination data at a current moment includes: detecting whether the difference between the target light illumination data at a current moment and the first preset light illumination data is less than a second preset threshold value; when the detection result is that the difference between the target light illumination data at a current moment and the first preset light illumination data is less than the second preset threshold value, determining that the television set is in the on state at the current moment.
[0049] Optionally, when the TV is turned on, although the picture of the TV will change, causing the collected target light illumination data to change continuously. But the target light illumination data should always be near the first preset light illumination data. Therefore, the difference between the target light illumination data and the first preset light illumination data can be detected. If the difference is less than the second preset threshold, it can be considered that the TV is in the on state at the current moment. The first preset light illumination data can be determined in a variety of ways. For example, the light illumination data of the TV in the on state at multiple moments can be obtained in advance, and the light illumination data obtained by the average value of the light illumination data corresponding to each of the multiple moments is used as the first preset light illumination data.
[0050] As an optional embodiment, when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than the second preset threshold value, it is determined that the TV is in the on state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data, and the difference between the historical light illumination data and the first preset light illumination data is also less than the second preset threshold value, it is determined that the TV is in the on state at the current moment.
[0051] Optionally, when judging whether the TV is in the on state, since the on / off process of different brands of TVs is different, an algorithm based on time judgment can be added, that is, when the target light illuminance data at the current moment reaches the first preset light illuminance data or is near the first preset light illuminance data, the target light illuminance data in the previous period of time is detected. If the light illuminance data in the previous period of time is also near or equal to the first preset light illuminance data, it can be determined that the TV is in the on state at the current moment. By judging the relationship between the target light illuminance data at the moment before the current moment and the first preset light illuminance data, the probability of misjudgment of the on detection is reduced, and it is avoided that the target light illuminance data of the TV at the current moment is high due to an emergency and is misjudged as the on state.
[0052] As an optional embodiment, determining the on / off state of a television set based on target light illumination data at a current moment includes: obtaining historical light illumination data at the moment before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data at the moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data at the moment before the current moment is greater than a third preset threshold, determining that the television set is in an off state at the current moment.
[0053] Optionally, the on / off state of the TV can be determined by the following method: the relationship between the target illuminance data at the current moment and the historical illuminance data at the previous moment can be determined. If the target illuminance data at the current moment is less than the historical illuminance data at the previous moment, and the difference is greater than the third preset threshold, the TV is considered to be in the off state at the current moment. That is, when the host computer recognizes that the target illuminance data at the current moment is significantly lower than the target illuminance data at the previous moment, for example, the third preset threshold can be set to 100lux, that is, when the difference between the two is greater than 100lux, it can be considered that the TV is already in the off state. Similarly, the illuminance accuracy collected by the TSIM sensor is ±50lux, so the illuminance difference threshold for judging whether the TV is turned off cannot be less than 50lux.
[0054] As an optional embodiment, determining the on / off state of a television set based on target light illumination data at a current moment includes: detecting whether the difference between the target light illumination data at a current moment and the second preset light illumination data is less than a fourth preset threshold value; when the detection result is that the difference between the target light illumination data at a current moment and the second preset light illumination data is less than the fourth preset threshold value, determining that the television set is in an off state at the current moment.
[0055] Optionally, when the TV is in the off state, the illuminance data collected by the TSIM sensor is the second preset illuminance, wherein, since the TV screen is black and has a low reflectivity to light, the second preset illuminance data is a lower value, and the second preset illuminance can be determined by pre-collecting the target illuminance data in the off state, for example, the second preset illuminance data can be obtained by calculating the average value of the target illuminance data in the off state over a period of time. When the target illuminance data obtained by the host computer after processing is equal to the second preset illuminance data, or is close to the second preset illuminance data, it means that the TV screen is a darker color or black at the current moment, and it can be determined that the TV is in the off state.
[0056] As an optional embodiment, when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold, it is determined that the TV is in the off state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data, and the difference between the historical light illumination data and the second preset light illumination data is also less than the fourth preset threshold, it is determined that the TV is in the off state at the current moment.
[0057] Optionally, since the TV may have a black screen when playing a program, the target illuminance data detected in the power-on state may also be near the second preset illuminance data, and the TV at the current moment may be mistakenly judged to be in the power-off state. Therefore, when judging that the TV is turned off, the host computer needs to add an algorithm based on time judgment. The host computer saves the illuminance maintained for a long time when the TV is in the power-off state as the second preset illuminance data. After the TV recognizes that it is turned on, the next time the TV illuminance data is equal to the second preset illuminance data, the host computer compares the illuminance data collected within a period of time before the second preset illuminance data, for example, comparing the illuminance data within 10 minutes. If the illuminance data within 10 minutes remains unchanged near the second preset illuminance data, it is considered that the TV has been turned off. The algorithm based on time judgment can improve the judgment accuracy and reduce the probability of misjudging it as the power-off state during the TV playback process.
[0058] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0059] Through the description of the above implementation methods, those skilled in the art can clearly understand that the state detection method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0060] According to an embodiment of the present invention, a device for implementing the above method is also provided. Figure 5 is a structural block diagram of a device provided according to an embodiment of the present invention, such as Figure 5 As shown, the device includes: an acquisition module 51, a first determination module 52 and a second determination module 53. The device is described below.
[0061] The acquisition module 51 is used to acquire the original illuminance data of the initial area of the television within a preset angle range at the current moment.
[0062] The first determination module 52 is connected to the acquisition module 51 and is used to determine the target illuminance data of the target area corresponding to the TV at the current moment according to the original illuminance data at the current moment, wherein the target area is part or all of the initial area.
[0063] The second determining module 53 is connected to the first determining module 52 and is used to determine the on / off state of the television according to the target light illumination data at the current moment.
[0064] It should be noted that the acquisition module 51, the first determination module 52 and the second determination module 53 correspond to steps S201 to S203 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.
[0065] According to an embodiment of the present invention, a state detection system is also provided, including: a wireless module, a light intensity sensor and a host computer. Figure 6 is a framework diagram of a state detection system provided according to an embodiment of the present invention, such as Figure 6 As shown, the system mainly includes TSIM sensor, wireless module and host computer. The TSIM sensor and the host computer exchange data through wireless module by wireless communication. The original light intensity data collected by the TSIM sensor is transmitted to the host computer, and the host computer processes the data through a certain algorithm to obtain the final TV on / off state. Specifically, the TSIM sensor collects the image data in the initial area through the lens, and converts the image data into original light intensity data, and then transmits the original light intensity data to the host computer through the wireless module for processing. The host computer first deletes the part of the original light intensity data that does not belong to the TV area to obtain the target light intensity data. Finally, the host computer can detect the TV on / off state in real time according to the size of the target light intensity data according to the state detection instruction.
[0066] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0067] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the state detection method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned state detection method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0068] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the original illuminance data of the initial area of the TV within the preset angle range at the current moment; determine the target illuminance data of the target area corresponding to the TV at the current moment based on the original illuminance data at the current moment, wherein the target area is part or all of the initial area; determine the on / off state of the TV based on the target illuminance data at the current moment.
[0069] Optionally, the processor may also execute the program code of the following steps: obtaining original illuminance data of the initial area of the TV within a preset angle range at the current moment, including: obtaining image data of the initial area at the current moment; and determining the original illuminance data at the current moment based on the image data.
[0070] Optionally, the processor may also execute the program code of the following steps: determining the on / off state of the TV according to the target light illumination data at the current moment, including: obtaining the historical light illumination data of the previous moment before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data of the previous moment before the current moment is greater than a first preset threshold, determining that the TV is in the on state at the current moment.
[0071] Optionally, the processor may also execute the program code of the following steps: determining the on / off state of the TV according to the target light illumination data at the current moment, including: detecting whether the difference between the target light illumination data at the current moment and the first preset light illumination data is less than a second preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than the second preset threshold value, determining that the TV is in the on state at the current moment.
[0072] Optionally, the processor may also execute program code for the following steps: when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than a second preset threshold, determining that the TV is in the on state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is greater than the historical light illumination data, and the difference between the historical light illumination data and the first preset light illumination data is also less than the second preset threshold, determining that the TV is in the on state at the current moment.
[0073] Optionally, the processor may also execute the program code of the following steps: determining the on / off state of the TV according to the target light illumination data at the current moment, including: obtaining the historical light illumination data of the previous moment before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data at the current moment and the historical light illumination data of the previous moment before the current moment is greater than a third preset threshold, determining that the TV is in the off state at the current moment.
[0074] Optionally, the processor may also execute the program code of the following steps: determining the on / off state of the TV according to the target light illumination data at the current moment, including: detecting whether the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than the fourth preset threshold value, determining that the TV is in the off state at the current moment.
[0075] Optionally, the processor may also execute program code for the following steps: when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold, determining that the TV is in the off state at the current moment, including: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; when the target light illumination data at the current moment is less than the historical light illumination data, and the difference between the historical light illumination data and the second preset light illumination data is also less than the fourth preset threshold, determining that the TV is in the off state at the current moment.
[0076] By adopting the embodiment of the present invention, a state detection method is provided, which obtains the original illuminance data of the initial area of the television within a preset angle range at the current moment; determines the target illuminance data of the target area corresponding to the television at the current moment according to the original illuminance data at the current moment, wherein the target area is part or all of the initial area; determines the on / off state of the television according to the target illuminance data at the current moment, thereby achieving the purpose of detecting the on / off state of the television by using the target surface illuminance detection technology, thereby realizing the technical effect of detecting the on / off state of the television at a long distance, and further solving the technical problem that the on / off state of the television cannot be detected at a long distance in the related technology.
[0077] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0078] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the state detection method provided in the above embodiment.
[0079] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0080] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining original illuminance data of an initial area of the TV within a preset angle range at the current moment; determining target illuminance data of a target area corresponding to the TV at the current moment based on the original illuminance data at the current moment, wherein the target area is part or all of the initial area; determining the on / off state of the TV based on the target illuminance data at the current moment.
[0081] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: acquiring image data of the initial area at the current moment; and determining original illuminance data at the current moment based on the image data.
[0082] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining historical light illumination data of the previous moment before the current moment; when the target light illumination data of the current moment is greater than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data of the current moment and the historical light illumination data of the previous moment before the current moment is greater than a first preset threshold value, determining that the TV is in the on state at the current moment.
[0083] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: detecting whether the difference between the target light illumination data at the current moment and the first preset light illumination data is less than a second preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the first preset light illumination data is less than the second preset threshold value, determining that the TV is in the on state at the current moment.
[0084] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; determining that the TV is in the on state at the current moment when the target light illumination data at the current moment is greater than the historical light illumination data, and the difference between the historical light illumination data and the first preset light illumination data is also less than a second preset threshold.
[0085] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining historical light illumination data of the previous moment before the current moment; when the target light illumination data of the current moment is less than the historical light illumination data of the previous moment before the current moment, and the difference between the target light illumination data of the current moment and the historical light illumination data of the previous moment before the current moment is greater than a third preset threshold, determining that the TV is in the off state at the current moment.
[0086] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: detecting whether the difference between the target light illumination data at the current moment and the second preset light illumination data is less than a fourth preset threshold value; when the detection result is that the difference between the target light illumination data at the current moment and the second preset light illumination data is less than the fourth preset threshold value, determining that the TV is in the off state at the current moment.
[0087] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining historical light illumination data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; determining that the TV is in the off state at the current moment when the target light illumination data at the current moment is less than the historical light illumination data, and the difference between the historical light illumination data and the second preset light illumination data is also less than a fourth preset threshold.
[0088] An embodiment of the present invention further provides a lighting product connected to a computer device. In this embodiment, after the computer device executes the above-mentioned state detection method, the lighting product can achieve: based on the switch state of the TV at the current moment, select a corresponding mode of light.
[0089] Optionally, the lighting product can be installed on a wall near the TV to adjust the lighting effect around the TV according to the on / off status of the TV. For example, when the TV is detected to be on, the lighting product can be adjusted to a brighter light mode to protect the user's eyesight; when the TV is detected to be off, the lighting product can be adjusted to a darker light mode to save energy.
[0090] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0091] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0092] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0096] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A state detection method, characterized in that: include: Obtaining original illuminance data of an initial area of the TV within a preset angle range at the current moment; Determine the target illuminance data of the target area corresponding to the TV at the current moment according to the original illuminance data at the current moment, wherein the target area is part or all of the initial area; The on / off state of the television is determined according to the target light illumination data at the current moment.
2. The method according to claim 1, characterized in that The obtaining of original illuminance data of an initial area of the television within a preset angle range at the current moment includes: Acquire image data of the initial area at the current moment; The original illuminance data at the current moment is determined according to the image data.
3. The method according to claim 1, characterized in that The step of determining the on / off state of the television according to the target light illumination data at the current moment includes: Obtaining historical illuminance data of the moment before the current moment; When the target light illuminance data at the current moment is greater than the historical light illuminance data at the previous moment of the current moment, and the difference between the target light illuminance data at the current moment and the historical light illuminance data at the previous moment of the current moment is greater than a first preset threshold, it is determined that the TV is in the on state at the current moment.
4. The method according to claim 1, characterized in that: The step of determining the on / off state of the television according to the target light illumination data at the current moment includes: Detecting whether the difference between the target light illuminance data at the current moment and the first preset light illuminance data is less than a second preset threshold; When the detection result is that the difference between the target illuminance data at the current moment and the first preset illuminance data is less than the second preset threshold, it is determined that the television is in the on state at the current moment.
5. The method according to claim 4, characterized in that When the detection result shows that the difference between the target illuminance data at the current moment and the first preset illuminance data is less than the second preset threshold, determining that the television is in the on state at the current moment includes: Acquire historical illuminance data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; When the target illuminance data at the current moment is greater than the historical illuminance data, and the difference between the historical illuminance data and the first preset illuminance data is also less than the second preset threshold, it is determined that the TV is in the on state at the current moment.
6. The method according to claim 1, characterized in that The step of determining the on / off state of the television according to the target light illumination data at the current moment includes: Obtaining historical illuminance data of the moment before the current moment; When the target light illuminance data at the current moment is less than the historical light illuminance data at the previous moment of the current moment, and the difference between the target light illuminance data at the current moment and the historical light illuminance data at the previous moment of the current moment is greater than a third preset threshold, it is determined that the TV is in the off state at the current moment.
7. The method according to claim 1, characterized in that The step of determining the on / off state of the television according to the target light illumination data at the current moment includes: Detecting whether a difference between the target light illuminance data at the current moment and the second preset light illuminance data is less than a fourth preset threshold; When the detection result is that the difference between the target illuminance data at the current moment and the second preset illuminance data is less than the fourth preset threshold, it is determined that the television is in the off state at the current moment.
8. The method according to claim 7, characterized in that When the detection result shows that the difference between the target illuminance data at the current moment and the second preset illuminance data is less than the fourth preset threshold, determining that the television is in the off state at the current moment includes: Acquire historical illuminance data of historical moments before the current moment, wherein the historical moments are one or more moments before the current moment; When the target illuminance data at the current moment is less than the historical illuminance data, and the difference between the historical illuminance data and the second preset illuminance data is also less than the fourth preset threshold, it is determined that the TV is in the off state at the current moment.
9. A state detection device, characterized in that: include: An acquisition module, used to acquire original illuminance data of an initial area of the TV within a preset angle range at the current moment; A first determination module, configured to determine target illuminance data of a target area corresponding to the television at the current moment according to the original illuminance data at the current moment, wherein the target area is a part or all of the initial area; The second determination module is used to determine the on / off state of the television according to the target light illumination data at the current moment.
10. A state detection system, characterized in that: include: A wireless module, a light intensity sensor and a host computer for executing the state detection method according to any one of claims 1 to 8; The light intensity sensor is used to obtain the original light intensity data of the initial area of the TV within the preset angle range at the current moment; The wireless module is used to transmit the original light illumination data.
11. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the state detection method according to any one of claims 1 to 8.
12. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes the state detection method according to any one of claims 1 to 8.
13. A lighting product connected to a computer device, according to the state detection method according to any one of claims 1 to 8, characterized in that: include: Based on the on / off state of the television at the current moment, a corresponding mode of light is selected.