Method and device for controlling automatic shutdown of projection equipment, computer equipment and storage medium
By utilizing the built-in camera and focus system of the projection device, combined with trapezoidal focus and optimal viewing distance judgment, the automatic shutdown function of the low-cost projection device is realized, solving the problem of increasing costs and improving the intelligence and user experience of the device.
Patent Information
- Application Number
- CN202510263252.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-06
AI Technical Summary
In the context of pursuing low-cost projection solutions, how to provide an effective automatic shutdown detection mechanism for low-cost projection equipment without significantly increasing costs has become a technical problem that needs to be solved urgently.
By judging the moving state of the projection device, combined with trapezoidal focus operation and the acquisition of the optimal viewing distance, the logical judgment of automatic shutdown is realized. This approach makes full use of the built-in camera and focus system of the projector, without additional hardware investment.
It realizes the intelligent automatic shutdown function for low-cost projection equipment without increasing manufacturing costs, reduces production costs, enhances the market competitiveness of the products, and improves the intelligent level and user experience of the equipment.
Smart Images

Figure CN120111196A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to projection equipment technology, and more specifically to a method, a device, a computer device and a storage medium for controlling automatic shutdown of a projection equipment. Background Art
[0002] In the field of projection technology, with the advancement of science and technology and the continuous improvement of user needs, the functions of projection equipment are becoming increasingly rich and intelligent. Among them, the safe use and intelligent management of projection equipment have become an important development direction. At present, projection equipment has widely adopted a variety of technical means to achieve a higher level of automatic control, especially in detecting environmental changes and responding to external stimuli.
[0003] A common safety and energy-saving measure is to use hardware devices with Time of Flight (TOF) technology to detect obstructions in front of the lens. This technology accurately measures the distance between the object and the projection lens by emitting and receiving reflected light signals. When an obstruction is detected approaching within a preset safe distance range, the projection device can automatically determine whether it needs to enter the shutdown state to avoid equipment damage or safety hazards caused by overheating or obstruction. This distance-based real-time detection mechanism not only improves the safety of the device, but also enhances the user experience.
[0004] Another technology is to use Hall switches to achieve non-contact signal triggering. The Hall switch is a magnetic sensor based on the Hall effect. When the external magnetic field strength reaches or exceeds the set threshold, the Hall element will output an electrical signal to trigger the switch. This technology is often used in projection equipment to control the on and off of power, the activation of protection mechanisms, and other scenarios due to its high precision and efficiency. The non-contact characteristics of the Hall switch reduce physical wear and improve the stability and service life of the system.
[0005] However, in the context of pursuing low-cost projection solutions, the realization of the above advanced functions faces challenges. Especially for low-cost projection devices that need to support functions such as projection into the screen, obstacle avoidance, keystone correction, and automatic shutdown, adding additional hardware devices (such as TOF sensors or Hall switches) to determine when to perform automatic shutdown operations will significantly increase manufacturing costs, thereby raising the user's usage threshold. This not only goes against the original intention of low-cost design, but may also limit the popularity and application of these advanced functions in the low-price market.
[0006] Therefore, how to provide an effective automatic shutdown detection mechanism for low-cost projection equipment without significantly increasing costs has become a technical problem that needs to be solved urgently. Summary of the invention
[0007] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, device, equipment and medium for controlling the automatic shutdown of a projection device.
[0008] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0009] In a first aspect, a method for controlling automatic shutdown of a projection device is provided, comprising:
[0010] Determine whether the projection device moves;
[0011] If the projection device moves, the trapezoidal focus operation is triggered to obtain the best focus position;
[0012] Obtain the best viewing distance of the projection device according to the best focus position;
[0013] Determine whether the projection device has achieved the optimal viewing distance;
[0014] If the projection device does not obtain the optimal viewing distance, the camera captures the image at the current position to obtain a captured image;
[0015] Analyze the pixel values of the captured images to obtain analysis results;
[0016] Determine whether the analysis results meet the set conditions;
[0017] If the analysis result meets the set situation, the projection device performs a power-off operation to enter a shutdown state.
[0018] In a second aspect, a device for controlling the automatic shutdown of a projection device is provided, comprising:
[0019] A first judging unit, used to judge whether the projection device moves;
[0020] A trigger unit, used to trigger a trapezoidal focus operation if the projection device moves, so as to obtain an optimal focus position;
[0021] An acquisition unit, used for acquiring an optimal viewing distance of the projection device according to an optimal focus position;
[0022] A second judging unit, used to judge whether the projection device has obtained the optimal viewing distance;
[0023] A capture unit, used for, if the projection device fails to obtain the optimal viewing distance, causing the camera to capture the image at the current position to obtain a captured image;
[0024] An analysis unit, used for analyzing pixel values of captured images to obtain analysis results;
[0025] A third judgment unit is used to judge whether the analysis result meets the set situation;
[0026] The execution unit is used for executing a power-off operation on the projection device to enter a shutdown state if the analysis result meets the set situation.
[0027] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for controlling the automatic shutdown of the projection device when executing the computer program.
[0028] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling the automatic shutdown of the projection device are implemented.
[0029] Compared with the traditional method which requires additional hardware equipment to determine whether the projection device should enter the shutdown state, the above-mentioned method of controlling the automatic shutdown of the projection device realizes the logical judgment of automatic shutdown by judging the moving state of the projection device and combining the trapezoidal focus operation and the acquisition of the optimal viewing distance. This method makes full use of the built-in camera and focus system of the projection device, does not require additional hardware investment, significantly reduces production costs, and enables low-cost projection solutions to have the function of intelligent automatic shutdown, thereby enhancing the market competitiveness of the product.
[0030] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0032] Figure 1 A schematic flow chart of a method for controlling automatic shutdown of a projection device provided by an embodiment of the present invention;
[0033] Figure 2 A schematic block diagram of a device for controlling automatic shutdown of a projection device provided by an embodiment of the present invention;
[0034] Figure 3 It is a schematic diagram of the structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0037] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0038] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0039] The prerequisite for applying the method of controlling the automatic shutdown of the projection device is that it needs to be applied to a projection device with a pan-tilt bracket and a structural projection device designed with lens protection. To ensure that the picture taken by the camera is completely black, try to add a black light-absorbing pad in the area corresponding to the position of the camera and the posture in the closed state to ensure that the light in the lens does not enter by mistake, causing incorrect calculation when the camera captures the picture.
[0040] See also Figure 1 In the specific embodiment shown, the present invention discloses a method for controlling the automatic shutdown of a projection device, comprising the following steps:
[0041] S110, determining whether the projection device moves; if the projection device does not move, maintaining the current projection state.
[0042] Specifically, the technical feature of determining whether the projection device has moved can be implemented by sensors integrated in the projection device, including but not limited to acceleration sensors, gyroscopes, or global positioning systems (GPS, although GPS is less commonly used in projection devices used in fixed locations). The following are specific implementation steps based on acceleration sensors and gyroscopes:
[0043] Initialize sensors: When the projection device starts, it first initializes the built-in accelerometer and gyroscope to ensure that they can accurately capture the movement status of the device.
[0044] Data collection: The sensor begins to continuously collect acceleration and angular velocity data of the projection device in three-dimensional space. These data can reflect the slight movement or rotation of the device in space.
[0045] Data processing: The collected data is processed by algorithms to identify whether the device has moved significantly. For example, a threshold can be set, and when the change in acceleration or angular velocity exceeds this threshold, the device is considered to have moved.
[0046] Status judgment: Based on the results of data processing, the system determines whether the projection device is in a stationary state or has moved.
[0047] By implementing the above-mentioned determination of whether the projection device has moved, this technical feature brings the following technical effects:
[0048] Improve the accuracy of automatic shutdown: By accurately judging whether the projection device is moving, automatic shutdown caused by misjudgment can be avoided, improving system stability and user experience.
[0049] Enhanced device intelligence: Combined with other features (such as trapezoidal focus and optimal viewing distance judgment), this method enables projection equipment to respond to environmental changes more intelligently and improves the overall intelligence level.
[0050] Reduce the risk of misoperation: When the projection device is accidentally moved, the corresponding protection measures (such as trapezoidal focus adjustment or automatic shutdown) can be triggered in time to avoid distortion of the projection image or damage to the device due to changes in the device position.
[0051] Improve user experience: By reducing the need for screen adjustments due to device movement and providing a timely automatic shutdown function, this method can improve the user's viewing experience and reduce the tediousness of manual operations.
[0052] S120, if the projection device moves, a trapezoidal focus operation is triggered to obtain an optimal focus position;
[0053] In one embodiment, the step of triggering the trapezoidal focus operation to obtain the best focus position includes:
[0054] By calculating the gradient information of the chessboard image, when the focus is accurate, the edge of the chessboard is clear and the gradient value is large; when the focus is inaccurate, the edge is blurred and the gradient value is small; obtain and compare the gradient information of the image at different focus positions, and find the position with the largest gradient value, which is the best focus position.
[0055] Specifically, each time the projection device is moved, the autofocus algorithm is triggered. The autofocus algorithm is calculated based on the image clarity. By calculating the gradient information of the checkerboard image, when the focus is accurate, the edge of the checkerboard is clear and the gradient value is large; when the focus is inaccurate, the edge is blurred and the gradient value is small. Then, by comparing the gradient information of the image at different focus positions, the position with the largest gradient value is found, which is the best focus position. In other words, in the projection device, the specific implementation steps for triggering the trapezoidal focus operation to obtain the best focus position are as follows:
[0056] Checkerboard image generation and projection: First, the projection device generates a test image containing a checkerboard pattern and projects it onto the screen. The checkerboard pattern is convenient for subsequent image gradient calculation due to its regular lines and intersections.
[0057] Image acquisition: The camera built into the projection device captures the checkerboard image projected on the screen.
[0058] Gradient information calculation: Use image processing algorithms to calculate the gradient information of the acquired checkerboard image. Gradient information reflects the rate of change of pixel values in an image and is an important indicator for evaluating the edge clarity of an image. When the focus is accurate, the edges of the checkerboard are clear, the pixel values change dramatically, and therefore the gradient value is large; when the focus is inaccurate, the edges are blurred, the pixel values change slowly, and the gradient value is small.
[0059] Focus position adjustment and gradient value comparison: The projection device changes the focus position by adjusting the focus mechanism (such as the focus ring or zoom mechanism inside the lens), and repeats the steps of collecting images and calculating gradient information. For each focus position, a gradient value is calculated.
[0060] Determine the best focus position: Compare the gradient values of the image at different focus positions and find the position with the largest gradient value. This position is the best focus position because the edge of the chessboard is clearest and the image quality is the best.
[0061] Autofocus trigger: In particular, every time the projection device is moved, the system triggers the autofocus algorithm, which automatically adjusts the focus position based on the above-mentioned image clarity calculation method until the best focus position is found.
[0062] By implementing the above-mentioned triggering trapezoidal focus operation to obtain the best focus position, this technical feature brings the following technical effects:
[0063] Improve focus accuracy: By calculating the gradient information of the checkerboard image and comparing the gradient values at different focus positions, the best focus position can be accurately found to ensure the clarity of the projected image.
[0064] Automation and intelligence: The triggering of the autofocus algorithm enables the projection device to automatically adjust the focus position after each movement without manual intervention by the user, thus improving the automation and intelligence level of the device.
[0065] Improve user experience: The implementation of the autofocus function avoids image blur caused by inaccurate focus and improves the user's viewing experience.
[0066] Enhanced device adaptability: This technical feature enables the projection device to maintain the best projection effect under different environmental conditions (such as projection screens at different distances, different lighting conditions, etc.), enhancing the adaptability and flexibility of the device.
[0067] S130, obtaining an optimal viewing distance of the projection device according to the optimal focus position;
[0068] Specifically, first, the optimal focus position of the projection device is determined through a trapezoidal focus operation, and the relevant information of the position, such as the lens position, focal length, etc., is recorded. Before the projection equipment leaves the factory, a series of calibration tests will be carried out, including recording the corresponding optimal focus position at different viewing distances. In this way, a database or lookup table of mapping relationships between focus positions and viewing distances is established. Once the optimal focus position is determined, the projection device will query the previously established mapping relationship to find the viewing distance corresponding to the focus position. If the current distance between the projection device and the screen does not match the optimal viewing distance, the device may guide the user or automatically adjust to the optimal viewing distance through sound prompts, screen displays, or automatic adjustment of the projection angle (if the device supports this function).
[0069] By implementing the above-mentioned method of obtaining the best viewing distance of the projection device according to the best focus position, this technical feature brings the following technical effects:
[0070] Improve viewing experience: By accurately calculating and adjusting to the optimal viewing distance, it can ensure that the audience can get clear, undistorted projection images at any position, thereby improving the viewing experience.
[0071] Intelligence and automation: The implementation of this technology enables the projection equipment to automatically adjust according to the focus position or prompt the user to adjust to the optimal viewing distance, realizing the intelligence and automation of the equipment.
[0072] Strong adaptability: Since the mapping relationship between focus position and viewing distance is established, this technology can adapt to projection screens of different sizes and resolutions, as well as different projection environments.
[0073] Easy to use: For users, there is no need to perform complicated calculations or adjustments. Just follow the device's prompts or automatic adjustment function to easily get the best viewing experience.
[0074] S140, determining whether the projection device has obtained the optimal viewing distance;
[0075] Specifically, in a projection device, the technical features of determining whether the projection device has obtained the optimal viewing distance generally involve the following key steps:
[0076] Focus position detection: The projection device first detects its current focus position, which is usually achieved by reading the state of the lens position sensor or the internal focus mechanism. The focus position is one of the key factors in determining the viewing distance.
[0077] Viewing distance calculation or query: Based on the detected focus position, the projection device may directly calculate the current viewing distance through a built-in algorithm, or obtain it by querying a pre-established database of mapping relationships between focus position and viewing distance.
[0078] Optimal viewing distance comparison: Once the current viewing distance is obtained, the projection device will compare it with the preset optimal viewing distance (which may be a range or specific value determined based on factors such as screen size, resolution, and projection lens characteristics).
[0079] Status determination and feedback: If the current viewing distance is consistent with the optimal viewing distance or is within the preset tolerance range, it is determined that the optimal viewing distance has been obtained; otherwise, it is determined that the optimal viewing distance has not been obtained. The device may feedback this status to the user through screen display, sound prompts, or indicator lights.
[0080] By implementing the above-mentioned determination of whether the projection device has obtained the optimal viewing distance, this technical feature brings the following technical effects:
[0081] Improve viewing quality: By determining and adjusting to the optimal viewing distance, the audience can be ensured to have the best visual experience, including optimization of clarity, color reproduction, and viewing angle.
[0082] Intelligence and user experience: This technical feature enables the projection device to automatically detect and adjust the viewing distance, reducing the complexity of user operations and improving the intelligence level of the device and user experience.
[0083] Flexibility and adaptability: Because the technology can be adjusted based on different screen sizes, resolutions and projection environments, it is highly flexible and adaptable to meet the needs and scenarios of different users.
[0084] Preventing misoperation: By providing users with feedback on the comparison between the current viewing distance and the optimal viewing distance, it is possible to effectively prevent a decrease in viewing experience due to misoperation or improper settings.
[0085] In one embodiment, after the step S140, the method further includes: if the projection device has obtained the optimal viewing distance, the following operations may be performed:
[0086] Maintain current projection settings: If the projection device is already at the optimal viewing distance, it may maintain the current focus, brightness, color and other settings to ensure the best viewing experience.
[0087] Provide feedback: The device may confirm to the user that the viewing distance is currently optimal through screen display, sound prompts or indicator lights, thereby enhancing the user's trust and satisfaction.
[0088] Enable the automatic adjustment function (if applicable): For projection devices that support the automatic adjustment function, if it detects that the viewing distance has changed slightly but is still within an acceptable range, it may automatically fine-tune parameters such as focus and brightness to maintain the best viewing experience.
[0089] Enter standby or energy-saving mode (optional): When the viewing environment is confirmed to be stable and the user may temporarily leave, the projection device may automatically enter standby or energy-saving mode to reduce energy consumption and extend the life of the device. However, this operation usually depends on the specific design of the device and the user's setting preferences.
[0090] Record and learn user preferences: For more advanced devices, it may be possible to record the user's preferences in different viewing scenarios and learn how to achieve the best viewing state faster in the future.
[0091] S150, if the projection device does not obtain the optimal viewing distance, the camera captures an image at the current position to obtain a captured image;
[0092] Specifically, once it is determined that the optimal viewing distance has not been obtained, the projection device will automatically activate the built-in camera module. This step may involve initializing the camera, connecting the power supply, and starting the camera driver. After the camera is activated, the projection device will control the camera to capture the image of the current projection environment. This usually includes adjusting the camera's focus, exposure and other parameters to ensure that the captured image is clear and accurate. After the capture is completed, the device will store the image data in the internal memory or external storage device to form a captured picture. The captured image will be stored and may be accompanied by some marking information, such as the capture time, device status (such as focus position, brightness setting, etc.) and possible user prompt information (such as "Please adjust the projection device to the optimal viewing distance").
[0093] By implementing the above-mentioned determination of whether the projection device has obtained the optimal viewing distance, this technical feature brings the following technical effects:
[0094] Auxiliary diagnosis and adjustment: The captured images can provide users with intuitive visual feedback, helping them understand the current state of the projection environment and adjust the position, angle or settings of the projection device accordingly to achieve the best viewing distance. At the same time, for technical support personnel, these images are also an important basis for diagnosing equipment problems and providing solutions.
[0095] Enhanced user experience: By automatically capturing and storing images, the projection device can provide timely reminders and auxiliary information when the user is not aware of the poor viewing distance, thereby enhancing the user's viewing experience and satisfaction.
[0096] Intelligence and Automation: This technical feature reflects the intelligence and automation level of the projection equipment. The equipment can autonomously detect, determine and respond to viewing distance issues without manual intervention or expertise from the user.
[0097] Data accumulation and analysis: The captured images accumulated over a long period of time can provide valuable data resources for device manufacturers to analyze user usage habits, device performance, and possible improvement directions.
[0098] S160, analyzing the pixel values of the captured image to obtain an analysis result;
[0099] In one embodiment, the step of analyzing the pixel values of the captured image to obtain the analysis result includes:
[0100] Analyze the pixel composition of the captured image and traverse the pixel value of each pixel to obtain the analysis result.
[0101] Specifically, the captured picture is a grayscale picture (i.e., grayscale image) or a color picture (i.e., color image). Among them, the image is generally composed of multiple pixels, and each pixel represents a point in the image. For grayscale images, each pixel can be represented by a grayscale value to represent the brightness. This value is usually between 0 and 255, where: 0 represents completely black; 255 represents completely white; other values represent different grayscales (transitions from black to white). For color images, each pixel has three channels: red (R), green (G), and blue (B). The values of these channels are usually combined into a brightness value to represent the brightness of the image. A common way to calculate brightness is to use the weighted average method:
[0102] L=0.299×R+0.587×G+0.114×B;
[0103] Among them, L is the brightness value, and R, G, and B are the values of the red, green, and blue channels of the pixel respectively.
[0104] Grayscale processing (if it is a color image): Convert the color image to a grayscale image, or use the grayscale image directly.
[0105] Traverse the pixels: check the grayscale value (or brightness value) of each pixel to get the analysis result.
[0106] More specifically, in the projection device or related image processing system, the step of analyzing the pixel values of the captured image to obtain the analysis result is implemented as follows:
[0107] Image acquisition: First, the system acquires the image captured by the camera of the projection device, which can be a grayscale image (containing only brightness information) or a color image (containing red, green, and blue three-channel color information).
[0108] Grayscale processing (if applicable): If the captured image is a color image, the system needs to grayscale it. This step calculates the weighted average of the red, green, and blue channel values of each pixel to obtain the grayscale value, and the formula is L = 0.299 × R + 0.587 × G + 0.114 × B. In this way, the color image is converted into a grayscale image containing only brightness information, which is convenient for subsequent analysis. If the captured image is already a grayscale image, this step is skipped.
[0109] Pixel traversal: Next, the system traverses each pixel in the grayscale image (or the grayscale image converted from the processed color image). For each pixel, the system reads its grayscale value (or brightness value), which reflects the brightness distribution of the image.
[0110] Analysis result generation: Based on the pixel values obtained during the traversal process, the system can generate a variety of analysis results. For example, statistics such as the average brightness of the image, the brightness histogram (showing the number of pixels with different brightness values), and the brightness standard deviation can be calculated to evaluate the brightness distribution and contrast of the image. In addition, the image can be further classified, identified, or anomaly detected based on specific algorithms or rules.
[0111] By implementing the above analysis to capture the pixel values of the image to obtain the analysis results, this technical feature brings the following technical effects:
[0112] Accurate analysis: By traversing the grayscale value (or brightness value) of each pixel, the system can accurately analyze the brightness distribution of the image and provide accurate data support for subsequent image processing, recognition or adjustment.
[0113] Strong adaptability: This technical feature is applicable to both grayscale images and color images (through grayscale processing). This increases the flexibility of the system, enabling it to handle multiple types of image inputs.
[0114] Algorithm scalability: Based on the analysis results of pixel values, the system can further implement more complex image processing algorithms, such as image enhancement, target detection, edge extraction, etc., thereby expanding the functionality and application scope of the system.
[0115] Data-driven decision making: Through the generated analysis results, the system can provide users with an intuitive image quality assessment, help users understand the status of the current projection environment, and adjust the position, angle or settings of the projection device accordingly to achieve the best viewing effect.
[0116] S170, determining whether the analysis result meets the set situation; if the analysis result does not meet the set situation, maintaining the current projection state.
[0117] Specifically, first, the system needs to clearly set the scenario, that is, a preset set of conditions or standards to evaluate whether the analysis results meet specific requirements. These set scenarios may be based on multiple aspects such as image brightness, contrast, color balance, clarity, etc., depending on the needs of the application scenario. The system has obtained a series of analysis results about the image through previous steps (such as image capture, pixel value analysis, etc.), including but not limited to average brightness, brightness histogram, contrast index, color deviation, etc. Next, the system compares the analysis results with the set scenarios. This step may involve complex logical judgments, threshold comparisons, or pattern matching algorithms to ensure that the degree of match between the analysis results and the set scenarios meets the preset standards. Based on the comparison results, the system determines whether the analysis results meet the set scenarios.
[0118] In one embodiment, the setting conditions include: grayscale images and color images; for grayscale images, each pixel value is set to be close to 0; for color images, each pixel brightness value is set to be lower than 10.
[0119] Specifically, for a grayscale image, if the value of each pixel is close to 0, or for a color image, if the brightness value of each pixel is lower than 10, the image is considered to be completely black, which meets the set situation.
[0120] S180, if the analysis result meets the set situation, the projection device performs a power-off operation to enter a shutdown state.
[0121] Specifically, before performing the power-off operation, the projection device may need to perform some preparations to ensure a smooth and safe power-off process. For example, the system may save the current working state, close the running programs or tasks, and release the occupied resources. After these preparations are completed, the system enters the preparation stage for the power-off operation. The projection device controls the internal power management system to gradually reduce the voltage and current, and finally cuts off the power supply to the projection lamp, circuit board and other components. The power-off process may include multiple stages, such as gradually reducing the brightness, turning off the cooling system such as the fan, and finally cutting off the main power supply. After the power-off operation is completed, the projection device enters a completely shut down state. At this time, all components inside the device have stopped working and no longer consume power. The system may feedback the shutdown status information to the user through indicator lights, screen displays or other methods.
[0122] By implementing the above-mentioned projection device to perform a power-off operation to enter a shutdown state, this technical feature brings the following technical effects:
[0123] Energy saving and environmental protection: By cutting off the power supply in time and entering the shutdown state, the projection equipment can reduce unnecessary power consumption when not in use, thereby saving energy and reducing the impact on the environment.
[0124] Extend equipment life: Frequent power on and off operations may cause damage to the lamp and other components of the projection equipment. By intelligently judging and executing power-off operations, unnecessary power on and off times can be reduced, thereby extending the overall life of the equipment.
[0125] Improve user experience: When the projector is not in use, it automatically enters the shutdown state, which can avoid unnecessary noise and heat, and provide users with a more comfortable and quiet environment. At the same time, this also reduces the trouble of users shutting down manually.
[0126] Enhanced system intelligence: This technical feature enables the projection device to intelligently judge and execute power-off operations based on the analysis results, thereby improving the intelligence and automation level of the system.
[0127] Support remote management: In some advanced projection devices, this technical feature can also be combined with a remote management system, allowing administrators to remotely monitor and control the power on and off status of the projection device through the network.
[0128] Compared with the traditional method, the present invention needs to add additional hardware equipment to determine whether the projection device should enter the shutdown state. The present invention realizes the logical judgment of automatic shutdown by judging the moving state of the projection device and combining the trapezoidal focus operation and the acquisition of the optimal viewing distance. This method makes full use of the built-in camera and focus system of the projection device, does not require additional hardware investment, significantly reduces the production cost, and enables low-cost projection solutions to have the function of intelligent automatic shutdown, thereby enhancing the market competitiveness of the product. In addition, the automatic shutdown method of the present invention not only realizes the safety management of the device, but also reduces the user's operation burden through intelligent judgment logic. The user does not need to manually turn off the projection device. The device will automatically power off and shut down when a specific situation is detected, which simplifies the operation process and improves the user experience; at the same time, due to the reduction in cost, the product price is more affordable, which reduces the user's use threshold. In addition, by integrating the trapezoidal focus and the optimal viewing distance judgment function, the present invention not only realizes automatic shutdown, but also improves the intelligence level of the projection device; the trapezoidal focus operation ensures the clarity of the projection picture, and the acquisition of the optimal viewing distance helps to optimize the viewing experience. The integration of these functions enables the projection device to adapt to different usage scenarios and environmental conditions more intelligently. In addition, the automatic shutdown mechanism of the present invention automatically cuts off the power when it detects that the projection device is not in a normal viewing state, avoiding safety hazards such as overheating and damage caused by long-term operation of the device or in an abnormal state; at the same time, through intelligent judgment logic, it reduces accidental shutdowns caused by misoperation or external interference, thereby improving the stability and reliability of the device.
[0129] Figure 2 FIG. 3 is a schematic block diagram of an apparatus 300 for controlling automatic shutdown of a projection device provided by an embodiment of the present invention. Figure 2 As shown, corresponding to the above method for controlling the automatic shutdown of a projection device, the present invention further provides a device 300 for controlling the automatic shutdown of a projection device. The device 300 for controlling the automatic shutdown of a projection device includes a unit for executing the above method for controlling the automatic shutdown of a projection device, and the device can be configured in a server. Figure 2 The device 300 for controlling the automatic shutdown of the projection device includes a first judgment unit 301, a trigger unit 302, an acquisition unit 303, a second judgment unit 304, a capture unit 305, an analysis unit 306, a third judgment unit 307 and an execution unit 308;
[0130] The first judging unit 301 is used to judge whether the projection device moves;
[0131] A trigger unit 302, configured to trigger a trapezoidal focus operation to obtain an optimal focus position if the projection device moves;
[0132] An acquisition unit 303 is used to acquire an optimal viewing distance of the projection device according to the optimal focus position;
[0133] The second judging unit 304 is used to judge whether the projection device has obtained the best viewing distance;
[0134] The capture unit 305 is used to capture the image of the current position by the camera to obtain a captured image if the projection device does not obtain the optimal viewing distance;
[0135] An analysis unit 306, used to analyze the pixel values of the captured image to obtain an analysis result;
[0136] The third judgment unit 307 is used to judge whether the analysis result meets the set situation;
[0137] The execution unit 308 is configured to execute a power-off operation on the projection device to enter a shutdown state if the analysis result meets the set condition.
[0138] In one embodiment, the trigger unit 302 includes:
[0139] By calculating the gradient information of the chessboard image, when the focus is accurate, the edge of the chessboard is clear and the gradient value is large; when the focus is inaccurate, the edge is blurred and the gradient value is small; obtain and compare the gradient information of the image at different focus positions, and find the position with the largest gradient value, which is the best focus position.
[0140] In one embodiment, the analysis unit 306 includes:
[0141] Analyze the pixel composition of the captured image and traverse the pixel value of each pixel to obtain the analysis result.
[0142] In one embodiment, the setting conditions include: grayscale images and color images; for grayscale images, each pixel value is set to be close to 0; for color images, each pixel brightness value is set to be lower than 10.
[0143] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the device 300 and each unit for controlling the automatic shutdown of the projection device can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0144] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, the server-side functions or steps of a method for controlling the automatic shutdown of a projection device are implemented.
[0145] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0146] Determine whether the projection device moves; if the projection device moves, trigger the trapezoidal focus operation to obtain the best focus position; obtain the best viewing distance of the projection device according to the best focus position; determine whether the projection device has obtained the best viewing distance; if the projection device has not obtained the best viewing distance, the camera captures the image of the current position to obtain a captured picture; analyze the pixel value of the captured picture to obtain an analysis result; determine whether the analysis result meets the set situation; if the analysis result meets the set situation, the projection device performs a power-off operation to enter a shutdown state.
[0147] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0148] Determine whether the projection device moves; if the projection device moves, trigger the trapezoidal focus operation to obtain the best focus position; obtain the best viewing distance of the projection device according to the best focus position; determine whether the projection device has obtained the best viewing distance; if the projection device has not obtained the best viewing distance, the camera captures the image of the current position to obtain a captured picture; analyze the pixel value of the captured picture to obtain an analysis result; determine whether the analysis result meets the set situation; if the analysis result meets the set situation, the projection device performs a power-off operation to enter a shutdown state.
[0149] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0150] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0151] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0152] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for controlling automatic shutdown of a projection device, characterized in that: include: Determine whether the projection device moves; If the projection device moves, the trapezoidal focus operation is triggered to obtain the best focus position; Obtain the best viewing distance of the projection device according to the best focus position; Determine whether the projection device has achieved the optimal viewing distance; If the projection device does not obtain the optimal viewing distance, the camera captures the image at the current position to obtain a captured image; Analyze the pixel values of the captured images to obtain analysis results; Determine whether the analysis results meet the set conditions; If the analysis result meets the set situation, the projection device performs a power-off operation to enter a shutdown state.
2. The method for controlling automatic shutdown of a projection device according to claim 1, characterized in that: The step of triggering the trapezoidal focus operation to obtain the best focus position includes: By calculating the gradient information of the chessboard image, when the focus is accurate, the edge of the chessboard is clear and the gradient value is large; when the focus is inaccurate, the edge is blurred and the gradient value is small; obtain and compare the gradient information of the image at different focus positions, and find the position with the largest gradient value, which is the best focus position.
3. The method for controlling automatic shutdown of a projection device according to claim 1, characterized in that: The step of analyzing the pixel values of the captured image to obtain the analysis result includes: Analyze the pixel composition of the captured image and traverse the pixel value of each pixel to obtain the analysis result.
4. The method for controlling automatic shutdown of a projection device according to claim 1, characterized in that: The setting conditions include: grayscale images and color images; for grayscale images, each pixel value is set to be close to 0; for color images, each pixel brightness value is set to be lower than 10.
5. A device for controlling automatic shutdown of a projection device, characterized in that: include: A first judging unit, used to judge whether the projection device moves; A trigger unit, used to trigger a trapezoidal focus operation if the projection device moves, so as to obtain an optimal focus position; An acquisition unit, used for acquiring an optimal viewing distance of the projection device according to an optimal focus position; A second judging unit, used to judge whether the projection device has obtained the optimal viewing distance; A capture unit, used for, if the projection device fails to obtain the optimal viewing distance, causing the camera to capture the image at the current position to obtain a captured image; An analysis unit, used for analyzing pixel values of captured images to obtain analysis results; A third judgment unit is used to judge whether the analysis result meets the set situation; The execution unit is used for executing a power-off operation on the projection device to enter a shutdown state if the analysis result meets the set situation.
6. The device for controlling automatic shutdown of a projection device according to claim 5, characterized in that: The trigger unit includes: By calculating the gradient information of the chessboard image, when the focus is accurate, the edge of the chessboard is clear and the gradient value is large; when the focus is inaccurate, the edge is blurred and the gradient value is small; obtain and compare the gradient information of the image at different focus positions, and find the position with the largest gradient value, which is the best focus position.
7. The device for controlling automatic shutdown of a projection device according to claim 5, characterized in that: The analysis unit includes: Analyze the pixel composition of the captured image and traverse the pixel value of each pixel to obtain the analysis result.
8. The device for controlling automatic shutdown of a projection device according to claim 5, characterized in that: The setting conditions include: grayscale images and color images; for grayscale images, each pixel value is set to be close to 0; for color images, each pixel brightness value is set to be lower than 10.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for controlling the automatic shutdown of a projection device as claimed in any one of claims 1 to 4 are implemented.
10. A storage medium, wherein the computer-readable storage medium stores a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling the automatic shutdown of a projection device as claimed in any one of claims 1 to 4 are implemented.