Screen control method and device, chip, medium and program product

By acquiring the protection status of the terminal device and analyzing its motion status data relative to the reflector, and combining Doppler frequency shift and machine learning models to process the ultrasonic received signal, the problem of traditional screen control being susceptible to environmental interference is solved, and more accurate and reliable screen status judgment is achieved.

CN121597022APending Publication Date: 2026-03-03SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511913647.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-17
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Traditional screen brightness control methods are easily affected by environmental reflectors, leading to decreased control accuracy and reliability, and impacting user experience.

Method used

By acquiring the protection status of the terminal device, obtaining and analyzing its motion status data relative to the reflector, and combining motion characteristics and characteristic intensity, the target screen status of the terminal device is determined. Doppler frequency shift relationship and machine learning model are used to process the ultrasonic received signal to improve the accuracy of judgment.

Benefits of technology

It improves the accuracy and reliability of screen control, reduces the impact of environmental interference on decision-making, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121597022A_ABST
    Figure CN121597022A_ABST
Patent Text Reader

Abstract

The invention relates to a screen control method and device, a chip, a medium and a program product. The method comprises the following steps: acquiring an identifier state of a protection identifier corresponding to the terminal equipment; in response to the fact that the identification state is the open state, motion state data of the terminal equipment relative to the reflector after the corresponding determination moment of the open state is obtained; determining a target screen state of the terminal equipment according to the motion state data; and controlling the screen of the terminal device to be in the target screen state. By adopting the method, the accuracy and reliability of screen control can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of control technology, and in particular to a screen control method, device, chip, medium, and program product. Background Technology

[0002] With the continuous improvement of the intelligence of electronic devices and control technology, automatic on / off control of electronic device screens has become one of the important functions to enhance user experience.

[0003] Traditionally, screen on / off is typically determined by proximity detection, which measures changes in the relative distance between the device and a reflective object (such as a person's ear) to trigger the screen to turn on or off. However, in real-world applications, reflective objects are often not limited to the ear and the user's head; they may include walls, desktops, or other environmental objects. This can lead to system misjudgments, causing the screen to turn on or off in a way that does not match the user's true intention. Such interference reduces the accuracy and reliability of control, impacting the user experience. Summary of the Invention

[0004] Therefore, it is necessary to provide a screen control method, device, chip, medium, and program product to address the aforementioned technical problems, thereby improving the accuracy and reliability of screen control.

[0005] In a first aspect, this application provides a screen control method, including:

[0006] Obtain the status of the protection identifier corresponding to the terminal device;

[0007] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0008] Based on motion status data, determine the target screen status of the terminal device;

[0009] The screen of the control terminal device is in the target screen state.

[0010] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; determining the target screen state of the terminal device based on the motion state data includes: updating the target proximity intensity with the feature intensity corresponding to the proximity feature in response to the proximity feature being greater than the target proximity intensity; updating the target distance intensity with the feature intensity corresponding to the distance feature in response to the distance feature being greater than the target distance intensity; and determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity in response to satisfying a preset sampled frame counting condition; wherein the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0011] In one embodiment, in response to satisfying a preset sampling frame counting condition, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity, including: in response to updating the target distance intensity, resetting the count value corresponding to the target distance intensity; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset counting threshold, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity.

[0012] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; correspondingly, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity, including at least one of the following: in response to the target proximity intensity being less than a preset proximity intensity threshold, and the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame count threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity not being less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity not being greater than a preset difference, or the number of consecutive proximity frames not being less than a target frame count threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0013] In one embodiment, the method further includes: acquiring the target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features; the target motion features include target approach features and target distance features; in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold, determining that the target screen state of the terminal device is a screen-off state; in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold, determining that the target screen state of the terminal device is a screen-on state; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames continuously determined as approach features starting from the current sampling frame; the number of consecutive target distance frames is used to characterize the number of second sampling frames continuously determined as distance features starting from the current sampling frame.

[0014] In one embodiment, the method further includes: setting the flag state to an on state in response to the terminal device moving away from the reflector; and setting the protection flag to a off state in response to the screen of the terminal device being in a target screen state.

[0015] Secondly, this application also provides a screen control device, comprising:

[0016] The first acquisition module is used to acquire the identification status of the protection identifier corresponding to the terminal device;

[0017] The second acquisition module is used to acquire motion state data of the terminal device relative to the reflector after a certain time corresponding to the open state in response to the flag state being open.

[0018] The first determining module is used to determine the target screen state of the terminal device based on the determined motion state data.

[0019] The control module is used to control the screen of the terminal device to be in the target screen state.

[0020] Thirdly, this application also provides a chip, including: a processor for retrieving and running a computer program from memory, causing a device with the chip mounted to perform the following steps:

[0021] Obtain the status of the protection identifier corresponding to the terminal device;

[0022] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0023] Based on motion status data, determine the target screen status of the terminal device;

[0024] The screen of the control terminal device is in the target screen state.

[0025] Fourthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0026] Obtain the status of the protection identifier corresponding to the terminal device;

[0027] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0028] Based on motion status data, determine the target screen status of the terminal device;

[0029] The screen of the control terminal device is in the target screen state.

[0030] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0031] Obtain the status of the protection identifier corresponding to the terminal device;

[0032] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0033] Based on motion status data, determine the target screen status of the terminal device;

[0034] The screen of the control terminal device is in the target screen state.

[0035] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0036] Obtain the status of the protection identifier corresponding to the terminal device;

[0037] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0038] Based on motion status data, determine the target screen status of the terminal device;

[0039] The screen of the control terminal device is in the target screen state.

[0040] The aforementioned screen control method, device, chip, medium, and program product, by acquiring the identification status of the protection identifier corresponding to the terminal device, sets a global enabling condition for the subsequent determination of the target screen status. By responding to the identifier status being in the "on" state, it acquires the motion state data of the terminal device relative to the reflector after a predetermined moment corresponding to the "on" state, thus providing a data foundation for determining the target screen status. By determining the target screen status of the terminal device based on the motion state data, it is possible to fully analyze and determine the motion mode of the terminal device based on the motion state data, thereby more accurately identifying the user's true operational intent, reducing environmental interference, and ultimately determining the target screen status of the terminal device. This realizes a shift in decision-making basis from a single event to combined motion state data analysis, which is beneficial to improving the accuracy and reliability of target screen status judgment. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1A This is a flowchart illustrating a screen control method in one embodiment;

[0043] Figure 1B This is a schematic diagram of the time-frequency graph of the ultrasonic received signal in one embodiment;

[0044] Figure 2 This is a flowchart illustrating the steps for determining the state of the target screen in one embodiment;

[0045] Figure 3 This is a flowchart illustrating the screen control method in another embodiment;

[0046] Figure 4 This is a flowchart illustrating the screen control method in yet another embodiment;

[0047] Figure 5 This is a structural block diagram of the screen control device in one embodiment;

[0048] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0050] In one embodiment, such as Figure 1A As shown, a screen control method is provided. This embodiment illustrates the method applied to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0051] S110. Obtain the identification status of the protection identifier corresponding to the terminal device.

[0052] The terminal device may include at least one of a mobile terminal, a wearable smart device, and an Internet of Things (IoT) device with an interactive screen. The mobile terminal may include at least one of a smartphone, tablet computer, and e-reader, and the wearable smart device may include a smartwatch. This application does not limit the specific type of terminal device.

[0053] Here, the protection identifier can be understood as a global decision variable for determining the state of the target screen corresponding to the terminal device; that is, different identifier states correspond to different methods of determining the target screen state. For example, the identifier state can include an on state and an off state.

[0054] S120. In response to the flag being in the open state, obtain the motion state data of the terminal device relative to the reflector after a certain time corresponding to the open state.

[0055] Among them, the motion state data of the terminal device relative to the reflector can be understood as a set of data on the dynamic changes in the relative spatial relationship between the terminal device and the reflector.

[0056] In an optional embodiment, the terminal device can transmit an ultrasonic transmission signal and receive an ultrasonic reception signal after the ultrasonic transmission signal is reflected by a reflector; and extract motion state data from the ultrasonic reception signal.

[0057] Optionally, the motion state data may include motion features and the feature intensities of the corresponding motion features, which may include proximity features and distance features. For example, motion features may also include stationary features.

[0058] Among them, the static feature can be understood as the feature that the terminal device is relatively stationary relative to the reflector.

[0059] Among them, the proximity feature can be understood as the feature that the terminal device tends to move closer to the reflector, that is, the feature that the relative distance between the terminal device and the reflector shows a decreasing trend; the feature strength of the proximity feature can be understood as the quantitative value of the significance of the decreasing trend of the relative distance between the terminal device and the reflector.

[0060] Among them, the distance feature can be understood as the characteristic that the terminal device moves away from the reflector, that is, the characteristic that the relative distance between the terminal device and the reflector shows an increasing trend; the feature intensity of the distance feature can be understood as the quantitative value of the significance of the increasing trend of the relative distance between the terminal device and the reflector.

[0061] A reflector can be understood as an object within the sensing range of a terminal device that can reflect signals emitted by the terminal device.

[0062] Optionally, the ultrasonic received signal can be input into a trained motion state determination model to obtain motion state data corresponding to the ultrasonic received signal. The motion state determination model can be a traditional machine learning model or an AI model; this application does not limit the specific model type. For example, the motion state determination model may include a classifier for classifying motion features. The AI ​​model may include at least one of CNN (Convolutional Neural Network) and GRU (Gated Recurrent Unit).

[0063] Optionally, motion state data can be determined based on the Doppler frequency shift relationship and the received ultrasound signal. The Doppler frequency shift relationship can be expressed as:

[0064] ;

[0065] Where f0 is the transmission frequency, v is the velocity, c is the speed of sound, and Δf is the Doppler frequency shift. It is understandable that the Doppler frequency shift is positive when the terminal device is relatively close to the reflector, and negative when the terminal device is relatively far from the reflector; that is, the sign of the Doppler frequency shift can characterize the motion characteristics.

[0066] The following examples illustrate the motion state data using several motion scenarios of the terminal device and the reflector. The terminal device can be, for example, a mobile phone, and the reflector can be, for example, a human ear.

[0067] refer to Figure 1B The diagram shown is a schematic representation of the time-frequency graph of an ultrasonic received signal. The ultrasonic received signal can include both direct and reflected waves. Figure 1BIn the diagram, "①②⑤⑥⑨" represent direct waves, and "③④⑤⑦⑧" represent reflected waves. Direct waves exist throughout the entire transmission, and their instantaneous frequency is always equal to the transmission frequency f0. The amplitude of the reflected wave depends on the distance between the terminal device and the reflector, and its frequency depends on the relative speed between them.

[0068] When the terminal device is stationary at a distance from the reflector, it only receives the direct wave, such as... Figure 1B The "①" in the diagram does not contain reflected waves.

[0069] As the terminal device gradually approaches the reflector, the Doppler frequency shift of the reflected wave is positive. This approach includes both acceleration and deceleration. During acceleration, the Doppler frequency shift of the reflected wave is positive and increases, but at this point, the terminal device is too far from the reflector to receive a sufficiently large and discernible reflected wave. Figure 1B In diagram "③", as the phone slows down and approaches, the Doppler frequency shift of the reflected wave is positive and decreases, indicating the phone is now close enough to the ear to receive a sufficiently strong reflected wave (diagram "④"). Additionally, the direct wave is always received. Figure 1B The "②" in the text.

[0070] When the terminal device is close to the reflector, the Doppler frequency shift of the reflected wave is zero and the amplitude is relatively strong. Both the direct wave and the reflected wave have the frequency f0, which are superimposed on the time-frequency diagram. Figure 1B The signal “⑤” is understandable. Considering the “multipath effect”, the phase difference between the direct wave and the reflected wave is uncertain (depending on the distance between the terminal device and the reflector). Therefore, the superimposed signal “⑤” may have a larger amplitude than the pure direct wave “①②⑥⑨”, or it may have a smaller amplitude or the same amplitude as the pure direct wave “①②⑥⑨”.

[0071] As the terminal device moves away from the reflector, the Doppler frequency shift of the reflected wave becomes negative. This moving-away process includes both acceleration and deceleration. During acceleration, the Doppler frequency shift of the reflected wave becomes negative, the absolute value of the shift increases, and the terminal device is closer to the reflector, thus receiving a sufficiently strong reflected wave. Figure 1B The "⑦" in the diagram. When the device decelerates and moves away, the Doppler frequency shift of the reflected wave is negative, and the absolute value of the frequency shift decreases. However, at this point, the terminal device is too far from the reflector to receive a reflected wave with sufficient amplitude for identification. Figure 1B The "⑧" in the diagram. Additionally, the direct wave "⑥" is always received.

[0072] Finally, when the terminal device is stationary at a distance from the reflector, it only receives the direct wave, such as... Figure 1B The symbol “⑨” in the diagram does not reflect waves.

[0073] Based on the above determination process, the motion features and corresponding feature intensities under different sampling frames can be obtained. For example... Figure 1BIn the diagram, the sampling frames corresponding to "②④" exhibit proximity characteristics, the sampling frames corresponding to "⑥⑦" exhibit distance characteristics, and the sampling frames corresponding to "①, ⑤, or ⑨" exhibit stationary characteristics. For example, the summation of a portion of the area below each transmission frequency in the time-frequency graph corresponding to the ultrasonic received signal can be used as the distance characteristic intensity, and the summation of a portion of the area above it can be used as the proximity characteristic intensity.

[0074] For example, a terminal device can emit ultrasonic waves composed of superimposed sine waves of multiple frequencies through a signal transmitting module (such as a speaker). The terminal device's signal acquisition module (such as a microphone) receives the ultrasonic received signal reflected by a reflector. The ultrasonic received signal can include both direct and reflected ultrasonic waves, and is converted into a digital signal by an ADC (Analog-to-Digital Converter) module. The digital signal is preprocessed, for example, by performing STFT (Short-Time Fourier Transform) processing to obtain a time-frequency graph. The time-frequency graph is then frequency-separated, for example, by extracting frequency domain slices centered on each transmission frequency. Based on the frequency-separated frequency domain slices, motion state determination models or motion state data are determined based on Doppler frequency shift relationships.

[0075] S130. Determine the target screen state of the terminal device based on the motion state data.

[0076] In one optional embodiment, the target screen state may include a screen-on state and / or a screen-off state. In other optional embodiments, the target screen state may include a left-page-turning state and / or a right-page-turning state, or a volume-up state and / or a volume-down state. This application does not limit the specific content of the target screen state. For example, the target screen state can be determined by combining gesture commands and the current application scenario of the terminal device.

[0077] Understandably, reflectors can generally include at least one of the standard reflectors such as ears, palms, and faces; in practical use, reflectors can also include interfering reflectors such as desktops and walls. Since standard reflectors and interfering reflectors reflect different characteristic intensities, by introducing motion state data and combining it with the temporal sequence of motion features and the characteristic intensity of the corresponding motion features, interference from environmental reflectors can be suppressed or identified, thereby improving the accuracy of determining the target screen state.

[0078] In this context, a standard reflector can be understood as a predefined object that moves relative to the terminal device; an interfering reflector can be understood as any object other than the standard reflector that moves relative to the terminal device. The characteristic intensity corresponding to a standard reflector is typically greater than that corresponding to an interfering reflector. For example, the characteristic intensity corresponding to the human ear is typically medium, while the characteristic intensity of an interfering reflector is generally weak.

[0079] In an optional embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; accordingly, the target proximity intensity can be updated with the feature intensity corresponding to the proximity feature in response to the proximity feature being greater than the target proximity intensity; the target distance intensity can be updated with the feature intensity corresponding to the distance feature in response to the distance feature being greater than the target distance intensity; and the target screen state of the terminal device can be determined based on the updated target proximity intensity and the updated target distance intensity in response to the satisfaction of a preset sampled frame counting condition; wherein the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0080] The first and second preset intensity values ​​can be set by technicians according to their needs or experience, or determined through extensive experiments; this application does not impose any limitations on this. For example, the first preset intensity value can be negative infinity, and the second preset intensity value can be the maximum feature intensity farthest from the feature recorded before a certain time corresponding to the on state.

[0081] Understandably, motion state data can be continuously acquired, meaning that motion features and corresponding feature intensities of different sampled frames are continuously obtained. For each acquired sampled frame, the feature intensity of that frame is continuously compared with the corresponding target feature intensity, thereby continuously updating the target feature intensity to the maximum acquired feature intensity. The target feature intensity includes the target proximity intensity corresponding to the proximity feature and the target distance intensity corresponding to the distance feature.

[0082] By following the above update steps, the maximum distance intensity and the maximum proximity intensity over a period of time can be obtained. Based on these maximum distance intensity and maximum proximity intensity, the target screen state of the terminal device can be determined. This avoids the situation where the determined target screen state does not match the user's intention due to the influence of interfering reflectors, which is a problem when judging based on a single motion feature.

[0083] In an optional embodiment, in response to an update of the target distance intensity, the count value corresponding to the target distance intensity can be reset; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset count threshold, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity.

[0084] The count value indicates the duration of the target's distance from the target. After the target's distance from the target is updated, the count value corresponding to that distance is reset. This count value can also be understood as the length of time elapsed after the distance feature disappears. For example, time t1 corresponds to distance feature x1, and the target distance intensity of distance feature x1 is Q1; times t2-t4 correspond to approaching features, and time t4 is the current time. It can be seen that the current count value represents the length of time elapsed from t1 to the current time, that is, the length of time elapsed after the distance feature corresponding to the target distance intensity Q1 disappeared. When time t5 corresponds to distance feature x2, the count value is reset to 0.

[0085] The preset counting threshold can be set by technicians according to their needs or experience, or determined through a large number of experiments. This application does not impose any restrictions on it.

[0086] Optionally, if the target proximity intensity is not updated, the target screen state of the terminal device can be determined based on the target proximity intensity before the update; similarly, if the target distance intensity is not updated, the target screen state of the terminal device can be determined based on the target distance intensity before the update.

[0087] In an optional embodiment, the target screen state may include a screen-on state; correspondingly, the target screen state of the terminal device may be determined to be a screen-on state in response to the following: the target proximity intensity is less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity is greater than a preset difference, and the number of consecutive proximity frames is less than a preset frame number threshold.

[0088] In an optional embodiment, the target screen state may include a screen-off state; accordingly, the target screen state of the terminal device may be determined to be a screen-off state in response to the target approach intensity being not less than a preset approach intensity threshold, or the difference between the target distance intensity and the target approach intensity being not greater than a preset difference, or the number of consecutive approach frames being not less than a target frame number threshold.

[0089] Among them, the number of consecutive proximity frames is used to indicate the number of sampling frames that are continuously determined to be proximity features starting from the target sampling frame. The target sampling frame is the sampling frame at the time when the determined count value is greater than the preset count threshold.

[0090] The preset proximity intensity threshold, preset difference, and target frame number threshold can be set by technicians according to their needs or experience, or determined through a large number of experiments. This application does not impose any restrictions on these.

[0091] To facilitate understanding, a specific embodiment will now be used as an example for illustration. It is understandable that, based on a single event triggering method, when the phone is placed flat on a table away from the user's ear, interference from the reflective surface (i.e., the table) cannot be eliminated. Therefore, the phone screen still turns off based on the proximity event, which clearly does not meet user needs.

[0092] Regarding the screen control method provided in the above embodiments, when the protection flag is enabled, the device continuously acquires motion state data of the terminal device relative to the reflector. During the process of moving the phone away from the ear and placing it flat on the table, the maximum approach intensity and maximum distance intensity are continuously updated. When the counting condition of the preset sampling frame is met, that is, when the count value corresponding to the maximum distance intensity is greater than the preset counting threshold, the target screen state is determined by comprehensively considering the maximum approach intensity, the maximum distance intensity, and the number of consecutive approach frames. Since the feature intensity corresponding to the desktop is generally weak, the target screen state can be determined to be on by condition judgment, that is, the interference of the desktop as an interfering reflector on the process of determining the target screen state is eliminated.

[0093] S140, The screen of the control terminal device is in the target screen state.

[0094] In one optional embodiment, the protection flag may be set to the off state in response to the terminal device's screen being in a target screen state. In another optional embodiment, the protection flag may be set to the off state in response to determining the target screen state of the terminal device.

[0095] In one optional embodiment, the continuous proximity frame count may be reset in response to the terminal device’s screen being in a target screen state; in another optional embodiment, the continuous proximity frame count may be reset in response to determining the target screen state of the terminal device.

[0096] The aforementioned screen control method establishes a global enabling condition for subsequent target screen state determination steps by acquiring the identification status of the protection identifier corresponding to the terminal device. In response to the identifier status being enabled, it acquires the motion state data of the terminal device relative to the reflector after a predetermined moment corresponding to the enabled state, thus providing a data foundation for determining the target screen state. By determining the target screen state of the terminal device based on the motion state data, it allows for a thorough analysis and judgment of the terminal device's motion pattern, thereby more accurately identifying the user's true operational intent, reducing environmental interference, and ultimately determining the target screen state. This represents a shift in decision-making criteria from a single event to a combination of motion state data analysis, which is beneficial for improving the accuracy and reliability of target screen state judgment.

[0097] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment, in which a step of determining the target screen state is added.

[0098] refer to Figure 2 The steps for determining the target screen state are shown below, including:

[0099] S210. Obtain the target motion characteristics and target feature intensity of the target motion characteristics of the terminal device relative to the reflector in the current sampling frame; the target motion characteristics include target approach characteristics and target distance characteristics.

[0100] Referring to the foregoing, the ultrasonic received signal can be input into a trained motion state determination model to obtain motion state data corresponding to the ultrasonic received signal. The motion state data can include the target motion features and the target feature intensity of the target motion features in the current sampling frame. Alternatively, motion state data can be determined based on the Doppler frequency shift relationship and the ultrasonic received signal.

[0101] S220, In response to the protection flag being in the off state and the number of consecutive frames of the target approaching the target feature not being less than the first preset frame number threshold, the target screen state of the terminal device is determined to be the screen off state.

[0102] The target consecutive proximity frame number is used to characterize the number of first sampling frames consecutively identified as proximity features, starting from the current sampling frame. The first preset frame number threshold can be set by a technician according to needs or experience, or determined through a large number of experiments; this application does not impose any limitations on it.

[0103] S230, in response to the protection flag being in the off state and the target being far away from the feature having a continuous distance of no less than a second preset frame number threshold, the target screen state of the terminal device is determined to be on.

[0104] The target consecutive moving-away frame number is used to characterize the number of second sampling frames continuously determined as moving-away features, starting from the current sampling frame. The second preset frame number threshold can be set by technicians according to their needs or experience, or determined through a large number of experiments; this application does not impose any limitations on it.

[0105] Optionally, the flag state can be set to an "on" state in response to the terminal device moving away from the reflector. For example, the flag state can be set to an "on" state in response to the protection flag being in an "off" state, the number of consecutive frames in which the target moves away from the feature being not less than a second preset frame number threshold, and the target feature intensity being greater than a preset moving away intensity threshold.

[0106] Understandably, by introducing a preset distance threshold, a prerequisite is provided for activating the marking state, namely, avoiding activation of the marking state under low target feature intensity. The preset distance threshold can be set by technicians according to their needs or experience, or determined through extensive experiments; this application does not impose any limitations on this.

[0107] For example, the target distance strength can be updated in response to the protection flag being in the off state and the number of consecutive frames in which the target distance feature moves away being not less than a second preset frame number threshold. Specifically, if the motion feature corresponding to the previous sampled frame is a proximity feature, then the target feature strength corresponding to the current sampled frame is used as the target distance strength; if the motion feature corresponding to the previous sampled frame is a distance feature, then if the target feature strength corresponding to the current sampled frame is greater than the target distance strength, the target distance strength is updated with the target feature strength corresponding to the current sampled frame.

[0108] For example, after setting the flag state to the enabled state, the number of consecutive frames the target approaches, the number of consecutive frames the target moves away, and the count value corresponding to the target moving away feature can be reset, and the target feature intensity (i.e., target approach intensity) of the target approach feature can be set to negative infinity. The number of consecutive frames the target approaches, the number of consecutive frames the target moves away, the count value, and the target approach intensity have been explained above and will not be repeated here.

[0109] In the above steps, when the protection flag is off, the accuracy of determining the target screen state can be improved by comparing the number of consecutive moving away frames and consecutive moving near frames with the corresponding preset frame number thresholds. By setting the flag state to on in response to the protection flag being off, the number of consecutive moving away frames of the target moving away feature being not less than the second preset frame number threshold, and the target feature strength of the target moving away feature being greater than the preset moving away strength, the flag state is automatically switched, which is beneficial to improving the user experience.

[0110] Based on the technical solutions of the above embodiments, the screen control method is further refined.

[0111] refer to Figure 3 The diagram shown is a flowchart of a screen control method in another embodiment.

[0112] First, it can be determined whether the protection indicator is on or off.

[0113] With the protection flag off, the classifier output type is determined, i.e., whether the motion feature is a moving-away feature, a moving-closer feature, or a stationary feature. The following are exemplary explanations of these three cases: First, if the motion feature is a moving-away feature, the recorded target moving-away intensity is updated, and it is determined whether the number of consecutive moving-away frames exceeds a second preset frame threshold. If it does, the target screen state is determined to be on. Then, it is further determined whether the feature intensity corresponding to the moving-away feature (i.e., the moving-away intensity) exceeds a preset moving-away intensity threshold. If so, the protection flag is turned on, and the moving-closer intensity (i.e., the recorded target moving-closer intensity) is set to negative infinity; otherwise, the process ends. Second, if the motion feature is a moving-closer feature, it is determined whether the number of consecutive moving-closer frames exceeds a first preset frame threshold. If it does, the target screen state is determined to be off; if it does not exceed the first preset frame threshold, the process ends. Third, if the motion feature is a stationary feature, the process ends.

[0114] With the protection flag enabled, the classifier output type is determined, i.e., whether the motion feature is a moving away feature, a moving near feature, or a stationary feature. The following provides illustrative examples of these three cases: First, if the motion feature is a moving away feature, the protection frame count (i.e., the count value corresponding to the target moving away intensity) is set to zero, and the target moving away intensity is updated. Second, if the motion feature is a moving near feature, the target moving near intensity is updated. Third, if the motion feature is a stationary feature, no action is taken, and the process returns to continue determining the classifier output type. Then, as the protection frame count gradually increases, if the protection frame count exceeds a preset count threshold, the results of the three conditions are checked for truth. If true, the target screen remains on; otherwise, the target screen is off. After determining the target screen state, the protection flag is disabled.

[0115] The settlement results for the three conditions have been explained above. For example, the target screen state of the terminal device can be determined to be on when the target proximity intensity is less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity is greater than a preset difference, and the number of consecutive proximity frames is less than a preset frame count threshold. For example, the target screen state of the terminal device can be determined to be off when the target proximity intensity is not less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity is not greater than a preset difference, or the number of consecutive proximity frames is not less than a target frame count threshold.

[0116] The update steps for the target distance intensity and target proximity intensity have been explained above and will not be repeated here.

[0117] Based on the technical solutions of the above embodiments, the screen control method will be described in detail.

[0118] refer to Figure 4 The diagram shown is a flowchart of a screen control method in another embodiment, including:

[0119] S401, Receive the ultrasonic signal reflected by the reflector after the emitted ultrasonic wave is emitted.

[0120] S402. Based on the ultrasonic received signal, determine the motion state data of the terminal device relative to the reflector; the motion state data includes motion characteristics and the characteristic intensity corresponding to the motion characteristics, and the motion characteristics include approach characteristics and distance characteristics.

[0121] S403. Obtain the status of the protection identifier.

[0122] S404. In response to the protection flag being in the off state and the number of consecutive proximity frames of the proximity feature not being less than the first preset frame number threshold, the target screen state of the control terminal device is set to the off state.

[0123] S405. In response to the protection flag being in the off state and the number of consecutive moving away frames of the feature not being less than the second preset frame number threshold, the target screen state of the control terminal device is set to the on state.

[0124] S406. In response to the feature strength of a feature far away being greater than a preset strength threshold, the protection flag is set to the on state.

[0125] S407. In response to the feature strength corresponding to the proximity feature being greater than the target proximity strength, update the target proximity strength with the feature strength corresponding to the proximity feature.

[0126] S408. In response to the feature strength corresponding to the distance feature being greater than the target distance strength, update the target distance strength with the feature strength corresponding to the distance feature and reset the count value corresponding to the target distance strength; the count value is used to indicate the duration of the target distance strength.

[0127] S409A, in response to a count value greater than a preset count threshold, if the target approach intensity is less than a preset approach intensity threshold, and the difference between the target moving away intensity and the target approach intensity is greater than a preset difference, and the number of consecutive approach frames is less than a preset frame number threshold, then the target screen state of the control terminal device is set to the on state.

[0128] S409B, In response to a count value greater than a preset count threshold, if the target approach intensity is not less than a preset approach intensity threshold, or the difference between the target distance intensity and the target approach intensity is not greater than a preset difference, or the number of consecutive approach frames is not less than a target frame number threshold, then the target screen state of the control terminal device is set to a screen-off state.

[0129] S410. Set the protection flag to the off state.

[0130] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0131] Based on the same inventive concept, this application also provides a screen control device for implementing the screen control method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more screen control device embodiments provided below can be found in the limitations of the screen control method described above, and will not be repeated here.

[0132] In one exemplary embodiment, such as Figure 5 As shown, a screen control device is provided, including: a first acquisition module 510, a second acquisition module 520, a first determination module 530, and a control module 540. Wherein:

[0133] The first acquisition module 510 is used to acquire the identification status of the protection identifier corresponding to the terminal device;

[0134] The second acquisition module 520 is used to acquire motion state data of the terminal device relative to the reflector after a certain time corresponding to the open state in response to the identification state being open.

[0135] The first determining module 530 is used to determine the target screen state of the terminal device based on the determined motion state data.

[0136] The control module 540 is used to control the screen of the terminal device to be in the target screen state.

[0137] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; correspondingly, the first determining module 530 includes: a first updating unit, configured to update the target proximity intensity with the feature intensity corresponding to the proximity feature in response to the feature intensity corresponding to the proximity feature being greater than the target proximity intensity; a second updating unit, configured to update the target distance intensity with the feature intensity corresponding to the distance feature in response to the feature intensity corresponding to the distance feature being greater than the target distance intensity; and a determining unit, configured to determine the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity in response to a preset sampled frame counting condition being met; wherein the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0138] In one embodiment, the determining unit includes: a resetting subunit, configured to reset a count value corresponding to the target distance intensity in response to an update of the target distance intensity; the count value is used to indicate the duration of the target distance intensity; and a determining subunit, configured to determine the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity in response to a count value greater than a preset count threshold.

[0139] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; correspondingly, the determining subunit includes at least one of the following: in response to the target proximity intensity being less than a preset proximity intensity threshold, and the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame count threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity being not less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity being not greater than a preset difference, or the number of consecutive proximity frames being not less than a target frame count threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0140] In one embodiment, the apparatus further includes: a third acquisition module, configured to acquire the target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features; the target motion features include target approach features and target distance features; a second determination module, configured to determine that the target screen state of the terminal device is a screen-off state in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold; and a third determination module, configured to determine that the target screen state of the terminal device is a screen-on state in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames consecutively determined as approach features starting from the current sampling frame; and the number of consecutive target distance frames is used to characterize the number of second sampling frames consecutively determined as distance features starting from the current sampling frame.

[0141] In one embodiment, the above-mentioned device further includes: a first setting module, configured to set the flag state to an on state in response to the terminal device moving away from the reflector; and a second setting module, configured to set the protection flag to a off state in response to the screen of the terminal device being in a target screen state.

[0142] Each module in the aforementioned screen control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0143] The above-described screen control method can be executed by a chip or a chip module. The screen control method device can be, for example, a chip or a chip module. Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for various devices and products applied to or integrated into a chip, all included modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs running on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into a chip module, all included modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each of its components / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or in different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.

[0144] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a screen control method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0145] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0146] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0147] Obtain the status of the protection identifier corresponding to the terminal device;

[0148] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0149] Based on motion status data, determine the target screen status of the terminal device;

[0150] The screen of the control terminal device is in the target screen state.

[0151] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; when the processor executes the computer program, it further implements the following steps: in response to the feature intensity corresponding to the proximity feature being greater than the target proximity intensity, updating the target proximity intensity with the feature intensity corresponding to the proximity feature; in response to the feature intensity corresponding to the distance feature being greater than the target distance intensity, updating the target distance intensity with the feature intensity corresponding to the distance feature; in response to satisfying a preset sampled frame counting condition, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity; wherein, the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0152] In one embodiment, when the processor executes the computer program, it further implements the following steps: in response to an update of the target distance intensity, resetting a count value corresponding to the target distance intensity; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset count threshold, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity.

[0153] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; when the processor executes the computer program, it further implements the following steps: in response to the target proximity intensity being less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame number threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity not being less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity not being greater than a preset difference, or the number of consecutive proximity frames not being less than a target frame number threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0154] In one embodiment, when the processor executes the computer program, it further implements the following steps: acquiring the target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features; the target motion features include target approach features and target distance features; in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold, determining that the target screen state of the terminal device is a screen-off state; in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold, determining that the target screen state of the terminal device is a screen-on state; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames continuously determined as approach features starting from the current sampling frame; the number of consecutive target distance frames is used to characterize the number of second sampling frames continuously determined as distance features starting from the current sampling frame.

[0155] In one embodiment, the processor, when executing the computer program, further implements the following steps: in response to the terminal device moving away from the reflector, setting the flag state to an on state; in response to the screen of the terminal device being in a target screen state, setting the protection flag to a off state.

[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0157] Obtain the status of the protection identifier corresponding to the terminal device;

[0158] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0159] Based on motion status data, determine the target screen status of the terminal device;

[0160] The screen of the control terminal device is in the target screen state.

[0161] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; when the computer program is executed by the processor, it further implements the following steps: in response to the feature intensity corresponding to the proximity feature being greater than the target proximity intensity, updating the target proximity intensity with the feature intensity corresponding to the proximity feature; in response to the feature intensity corresponding to the distance feature being greater than the target distance intensity, updating the target distance intensity with the feature intensity corresponding to the distance feature; in response to satisfying a preset sampled frame counting condition, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity; wherein the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0162] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: in response to an update of the target distance intensity, resetting a count value corresponding to the target distance intensity; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset count threshold, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity.

[0163] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; when the computer program is executed by the processor, it further implements the following steps: in response to the target proximity intensity being less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame number threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity not being less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity not being greater than a preset difference, or the number of consecutive proximity frames not being less than a target frame number threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0164] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: acquiring the target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features; the target motion features include target approach features and target distance features; in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold, determining that the target screen state of the terminal device is a screen-off state; in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold, determining that the target screen state of the terminal device is a screen-on state; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames continuously determined as approach features from the current sampling frame forward; the number of consecutive target distance frames is used to characterize the number of second sampling frames continuously determined as distance features from the current sampling frame forward.

[0165] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: in response to the terminal device moving away from the reflector, setting the flag state to an on state; in response to the screen of the terminal device being in a target screen state, setting the protection flag to a off state.

[0166] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0167] Obtain the status of the protection identifier corresponding to the terminal device;

[0168] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0169] Based on motion status data, determine the target screen status of the terminal device;

[0170] The screen of the control terminal device is in the target screen state.

[0171] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; when the computer program is executed by the processor, it further implements the following steps: in response to the feature intensity corresponding to the proximity feature being greater than the target proximity intensity, updating the target proximity intensity with the feature intensity corresponding to the proximity feature; in response to the feature intensity corresponding to the distance feature being greater than the target distance intensity, updating the target distance intensity with the feature intensity corresponding to the distance feature; in response to satisfying a preset sampled frame counting condition, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity; wherein the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0172] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: in response to an update of the target distance intensity, resetting a count value corresponding to the target distance intensity; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset count threshold, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity.

[0173] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; when the computer program is executed by the processor, it further implements the following steps: in response to the target proximity intensity being less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame number threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity not being less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity not being greater than a preset difference, or the number of consecutive proximity frames not being less than a target frame number threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0174] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: acquiring the target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features; the target motion features include target approach features and target distance features; in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold, determining that the target screen state of the terminal device is a screen-off state; in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold, determining that the target screen state of the terminal device is a screen-on state; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames continuously determined as approach features from the current sampling frame forward; the number of consecutive target distance frames is used to characterize the number of second sampling frames continuously determined as distance features from the current sampling frame forward.

[0175] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: in response to the terminal device moving away from the reflector, setting the flag state to an on state; in response to the screen of the terminal device being in a target screen state, setting the protection flag to a off state.

[0176] In one embodiment, a chip is provided, comprising: a processor for retrieving and running a computer program from memory, causing a device on which the chip is mounted to perform the following steps:

[0177] Obtain the status of the protection identifier corresponding to the terminal device;

[0178] In response to the flag being in the open state, the motion state data of the terminal device relative to the reflector is obtained after a certain time corresponding to the open state.

[0179] Based on motion status data, determine the target screen status of the terminal device;

[0180] The screen of the control terminal device is in the target screen state.

[0181] In one embodiment, the motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion feature; the motion features include proximity features and distance features; the device with the chip installed can further perform the following steps: in response to the feature intensity corresponding to the proximity feature being greater than the target proximity intensity, update the target proximity intensity with the feature intensity corresponding to the proximity feature; in response to the feature intensity corresponding to the distance feature being greater than the target distance intensity, update the target distance intensity with the feature intensity corresponding to the distance feature; in response to satisfying a preset sampled frame counting condition, determine the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity; wherein, the initial value of the target proximity intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

[0182] In one embodiment, the device with the chip installed may further perform the following steps: in response to an update of the target distance intensity, resetting the count value corresponding to the target distance intensity; the count value is used to indicate the duration of the target distance intensity; in response to the count value being greater than a preset count threshold, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity.

[0183] In one embodiment, the target screen state includes a screen-on state and / or a screen-off state; the device with the chip installed can also perform the following steps: in response to the target proximity intensity being less than a preset proximity intensity threshold, the difference between the target distance intensity and the target proximity intensity being greater than a preset difference, and the number of consecutive proximity frames being less than a preset frame number threshold, the target screen state of the terminal device is determined to be a screen-on state; in response to the target proximity intensity being not less than a preset proximity intensity threshold, or the difference between the target distance intensity and the target proximity intensity being not greater than a preset difference, or the number of consecutive proximity frames being not less than a target frame number threshold, the target screen state of the terminal device is determined to be a screen-off state; wherein, the number of consecutive proximity frames is used to indicate the number of sampling frames continuously determined as proximity features forward from the target sampling frame, and the target sampling frame is the sampling frame at the time when the determination count value is greater than the preset count threshold.

[0184] In one embodiment, the device equipped with the chip may further perform the following steps: acquiring the target motion features and target feature intensity of the target motion features relative to the reflector in the current sampling frame; the target motion features include target approach features and target distance features; in response to the protection flag being in a closed state and the number of consecutive target approach frames of the target approach feature not being less than a first preset frame number threshold, determining that the target screen state of the terminal device is a screen-off state; in response to the protection flag being in a closed state and the number of consecutive target distance frames of the target distance feature not being less than a second preset frame number threshold, determining that the target screen state of the terminal device is a screen-on state; wherein, the number of consecutive target approach frames is used to characterize the number of first sampling frames continuously determined as approach features from the current sampling frame forward; the number of consecutive target distance frames is used to characterize the number of second sampling frames continuously determined as distance features from the current sampling frame forward.

[0185] In one embodiment, the device with the chip installed may further perform the following steps: in response to the terminal device moving away from the reflector, setting the flag state to an on state; in response to the screen of the terminal device being in a target screen state, setting the protection flag to a off state.

[0186] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0187] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0188] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A screen control method, characterized in that, Applied to a terminal device, the method includes: Obtain the identification status of the protection identifier corresponding to the terminal device; In response to the flag being in an open state, the motion state data of the terminal device relative to the reflector is acquired after a certain time corresponding to the open state. Based on the motion state data, the target screen state of the terminal device is determined; Control the screen of the terminal device to be in the target screen state.

2. The method according to claim 1, characterized in that, The motion state data includes motion features of at least one sampled frame and the feature intensity of the corresponding motion features; the motion features include proximity features and distance features. Determining the target screen state of the terminal device based on the motion state data includes: In response to the fact that the feature intensity corresponding to the proximity feature is greater than the target proximity intensity, the target proximity intensity is updated with the feature intensity corresponding to the proximity feature; In response to the feature intensity corresponding to the distance feature being greater than the target distance intensity, the target distance intensity is updated with the feature intensity corresponding to the distance feature. In response to meeting the preset sampling frame counting condition, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity. Wherein, the initial value of the target approach intensity is a first preset intensity value, and the initial value of the target distance intensity is a second preset intensity value.

3. The method according to claim 2, characterized in that, The step of determining the target screen state of the terminal device in response to satisfying a preset sampling frame counting condition, based on the updated target proximity intensity and the updated target distance intensity, includes: In response to an update of the target distance intensity, a count value corresponding to the target distance intensity is reset; the count value is used to indicate the duration of the target distance intensity. In response to the count value being greater than a preset count threshold, the target screen state of the terminal device is determined based on the updated target proximity intensity and the updated target distance intensity.

4. The method according to claim 3, characterized in that, The target screen state includes a screen-on state and / or a screen-off state; correspondingly, determining the target screen state of the terminal device based on the updated target proximity intensity and the updated target distance intensity includes at least one of the following: In response to the target approach intensity being less than a preset approach intensity threshold, the difference between the target moving away intensity and the target approach intensity being greater than a preset difference, and the number of consecutive approach frames being less than a preset frame threshold, the target screen state of the terminal device is determined to be a screen-on state. In response to the target approach intensity being no less than a preset approach intensity threshold, or the difference between the target distance intensity and the target approach intensity being no greater than a preset difference, or the number of consecutive approach frames being no less than a target frame number threshold, the target screen state of the terminal device is determined to be a screen-off state. The consecutive proximity frame count is used to indicate the number of sampling frames that are consecutively identified as proximity features starting from the target sampling frame. The target sampling frame is the sampling frame at the time when the count value is greater than the preset count threshold.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: The target motion features of the terminal device relative to the reflector in the current sampling frame and the target feature intensity of the target motion features are obtained; the target motion features include target approach features and target distance features. In response to the protection flag being in an off state and the number of consecutive frames of the target proximity feature not being less than a first preset frame number threshold, the target screen state of the terminal device is determined to be a screen-off state. In response to the protection flag being in the off state and the number of consecutive frames the target moves away from the feature being not less than a second preset frame number threshold, the target screen state of the terminal device is determined to be the on state. The number of consecutive approaching frames of the target is used to characterize the number of first sampling frames that are consecutively determined as the approaching feature starting from the current sampling frame; the number of consecutive moving away frames of the target is used to characterize the number of second sampling frames that are consecutively determined as the moving away feature starting from the current sampling frame.

6. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to the terminal device moving away from the reflector, the identifier state is set to the on state; In response to the terminal device's screen being in the target screen state, the protection flag is set to the off state.

7. A screen control device, characterized in that, Applied to a terminal device, the device includes: The first acquisition module is used to acquire the identification status of the protection identifier corresponding to the terminal device; The second acquisition module is used to acquire motion state data of the terminal device relative to the reflector after a certain time corresponding to the open state in response to the identification state being open. The first determining module is used to determine the target screen state of the terminal device based on the motion state data. The control module is used to control the screen of the terminal device to be in the target screen state.

8. A chip, characterized in that, include: A processor for retrieving and running a computer program from memory, causing a device on which the chip is mounted to perform the method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.