Eye protection projection method and device and computer readable storage medium
By using image recognition technology in projection equipment to identify the head and body areas of a person and adjusting the brightness of the optical engine, the misjudgment and interaction impact of TOF technology when detecting people are solved, achieving accurate eye protection and a good user experience.
Patent Information
- Application Number
- CN202510892580.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-11-11
AI Technical Summary
Existing projection devices use Time-of-Flight (TOF) technology for full-screen eye protection when a person is detected passing by, which leads to misjudgment of static objects and affects the user's interactive experience.
The image acquisition component captures images of the projection area, identifies the head and body regions, calculates the intersection and union ratios, obtains the coordinates of the head region in the optical engine coordinate system, adjusts the optical engine brightness according to the direction and speed of movement, locally reduces the brightness to protect the human eye, and switches to interactive mode when a gesture is detected.
It achieves precise protection of the human eye, avoids misjudgment, improves the user interaction experience, and ensures the real-time eye protection effect of the projection device by reducing brightness locally to follow the person's movement.
Smart Images

Figure CN120935339A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of projection technology, and in particular to an eye-friendly projection method, apparatus and computer-readable storage medium. Background Technology
[0002] Projection equipment uses an optical engine to project onto a fixed area. When a person walks across the projection area, the light emitted by the projector can easily irritate the human eye, thus causing damage.
[0003] In existing technologies, Time-of-Flight (TOF) technology is typically used to implement full-screen eye protection when someone is detected passing through the projection area, which involves dimming or turning off the entire light source of the optical engine. However, TOF cannot effectively capture static object data in this process, and it is prone to misjudging static obstacles near the projection area. Furthermore, since dimming or turning off the entire light source of the optical engine affects the user's interaction with the projection device. Therefore, how to reduce the impact of projection devices on the human eye without affecting the interactive experience between the projection device and the user has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides an eye-protection projection method, apparatus, and computer-readable storage medium to at least address the problem of how to reduce the impact of projection devices on human eyes in related technologies.
[0005] In a first aspect, embodiments of this application provide an eye-protection projection method. The method is applied to a projection device, which includes an image acquisition component and an optical engine. The method includes:
[0006] The image acquisition component captures several frames of projected images of the projection area;
[0007] For any frame of the projected image, when a person is detected in the projected image, the head region and body region of the person are determined, and the ratio of the intersection and union between the head region and the body region is obtained. If the ratio of the intersection and union is greater than a preset threshold, the coordinates of the head region in the optical-mechanical coordinate system are obtained.
[0008] Obtain the direction and speed of the person's movement, determine the compensation value of the head region coordinates, and update the coordinates based on the compensation value to obtain the target region;
[0009] Following the order in which the projected images are acquired, and based on the target area in each frame of the projected image, the optical engine is controlled to reduce its brightness to follow the target area until no person can be detected in the projected image, at which point the brightness of the optical engine is restored to its initial brightness.
[0010] In one embodiment, when a person is detected in the projected image, determining the person's head region and body region includes:
[0011] Using a target detection algorithm, when a person enters the projection area, their real ID is obtained.
[0012] When multiple people are detected in the projected image, the detection ID of each person is obtained. If the detection ID is the same as the real ID, then there is a real person in the projected image, and the head and body regions of the real person are determined.
[0013] If the detected ID is different from the real ID, the person corresponding to the detected ID is a fake person, and the head and body areas of the fake person are deleted in the projected image.
[0014] In one embodiment, obtaining the person's direction and speed of movement, and determining compensation values for the coordinates of the head region, includes:
[0015] Obtain the direction and speed of motion. The direction of motion includes positive and negative directions. The positive direction represents the direction in which the person moves forward and has a value of +1. The negative direction represents the direction in which the person moves backward and has a value of -1.
[0016] The compensation value is obtained by multiplying the direction of motion, the speed of motion, and the preset compensation duration.
[0017] In one embodiment, determining the coordinates of the head region in the optomechanical coordinate system includes:
[0018] The coordinates of the head region in the coordinate system of the image acquisition component are obtained through the image acquisition component.
[0019] The coordinates of the image acquisition component are transformed into the optical-mechanical coordinate system using a preset transformation coordinate system.
[0020] In one embodiment, obtaining the preset transformation coordinate system includes:
[0021] The grid image is obtained by capturing the grid projected by the optical engine through the image acquisition component, and the coordinates of each intersection point in the grid image are determined in the coordinate system of the image acquisition component.
[0022] The coordinates of each intersection point of the grid are obtained in the optomechanical coordinate system. The intersection point coordinates in the component coordinate system and the optomechanical coordinate system are obtained based on the image, and the preset transformation coordinate system is obtained.
[0023] In one embodiment, after controlling the optical engine to reduce the brightness of the target area, the method further includes:
[0024] If a target gesture is detected in the projection area, the gesture interaction mode is activated, and the brightness of the optical engine is controlled to the initial brightness.
[0025] Secondly, embodiments of this application provide an eye-protection projection device, which is applied to a projection device, the projection device including an image acquisition component and an optical engine, and the method includes:
[0026] The projection image acquisition module is used to capture several frames of projection images of the projection area through the image acquisition component.
[0027] The coordinate acquisition module is used to determine the head region and body region of any person when a person is detected in the projected image, and obtain the ratio of the intersection and union between the head region and the body region. If the ratio of the intersection and union is greater than a preset threshold, the coordinates of the head region in the optical-mechanical coordinate system are obtained.
[0028] The target area acquisition module is used to obtain the direction and speed of human movement, determine the compensation value of the head region coordinates, and update the coordinates based on the compensation value to obtain the target area;
[0029] The follow module is used to control the optical engine to reduce its brightness according to the target area in each frame of the projected image, based on the order in which the projected images are obtained, until no person can be detected in the projected image, and then restore the brightness of the optical engine to its initial brightness.
[0030] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the eye-protection projection method as described in the first aspect above.
[0031] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the eye-protection projection method as described in the first aspect above.
[0032] The eye-protection projection method, apparatus, and computer-readable storage medium provided in this application have at least the following technical effects.
[0033] The image acquisition component captures several frames of projected images. When a person is detected in the projected images, the head and body regions of that person are acquired. If the ratio of the intersection to the union of the head and body regions is greater than a preset threshold, then the head and body regions belong to the same person. This avoids false detections and prevents false triggers, allowing the projection device to track and protect the eyes of the current person. The direction and speed of the person's movement are acquired to determine a compensation value for the head region coordinates. The head region coordinates are updated based on the compensation value to obtain the target area. The optical engine is then controlled to reduce the brightness of the target area, thus protecting the eyes by reducing local brightness. Furthermore, the optical engine reduces brightness by following the target area in each frame of the projected image, achieving precise eye protection by tracking the person's movement.
[0034] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0035] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0036] Figure 1 This is a flowchart illustrating an eye-protection projection method according to an exemplary embodiment;
[0037] Figure 2 This is a schematic diagram illustrating the effect of eye-protection projection according to an exemplary embodiment;
[0038] Figure 3 This is a flowchart illustrating a follow-up eye-protection projection according to an exemplary embodiment;
[0039] Figure 4 This is a flowchart illustrating the interactive experience and eye protection process according to an exemplary embodiment;
[0040] Figure 5 This is a block diagram illustrating an eye-protection projection device according to an exemplary embodiment;
[0041] Figure 6 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to 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. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0043] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.
[0044] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0045] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.
[0046] Firstly, embodiments of this application provide an eye-friendly projection method. Figure 1 This is a flowchart illustrating an eye-protection projection method according to an exemplary embodiment, such as... Figure 1 As shown, eye-protection projection methods include:
[0047] Step S101: Capture several frames of projected images of the projection area using the image acquisition component.
[0048] The projection device is equipped with a Time-of-Flight (TOF) sensor. When a person enters the projection area, the TOF sensor detects the presence of a pedestrian and activates the image acquisition component to capture images of the projection area, obtaining several frames of projected images. These images include the projected content and the person in the projection area. The image acquisition component includes a camera.
[0049] The projected image is obtained to provide eye protection for people in the projection area. The specific implementation method will be explained in detail in the following steps.
[0050] Step S102: For any frame of the projected image, when a person is detected in the projected image, determine the head region and body region of the person, and obtain the ratio of the intersection and union between the head region and the body region. If the ratio of the intersection and union is greater than a preset threshold, then determine the coordinates of the head region in the optical-mechanical coordinate system.
[0051] For any given frame of the projected image, a target detection algorithm detects the presence of a person within the image and identifies the person's head and body regions. These regions are represented as bounding boxes, and there is overlap between them. The area of the overlapping portion of the head and body regions is taken as the intersection, and the difference between the total area of the head and body regions and the intersection is taken as the union. The ratio of the intersection to the union of the head and body regions is obtained. If this ratio is greater than a preset threshold, it can be determined that the head and body regions belong to the same person, and the coordinates of the head region in the optical-mechanical coordinate system are obtained.
[0052] When a person enters the projection area, there may also be people in the projected image. However, the people in the projected image are not the objects to be detected in this application. Therefore, to obtain the head and body regions of a person in the projected image, it is necessary to remove the people present in the projected image. Specific methods include:
[0053] Step S201: When a person enters the projection area, the real ID identifier is obtained through the target detection algorithm.
[0054] When a person enters the projection area, the target detection algorithm assigns a real ID identifier to the person entering the projection area. The real ID identifier represents the labeling of the person entering the projection area.
[0055] Step S202: When multiple people are detected in the projected image, the detection ID of each person is obtained. If the detection ID is the same as the real ID, then there is a real person in the projected image, and the head region and body region of the real person are determined.
[0056] When multiple people are detected in the projected image, the detection ID of each person in the image is obtained. The presence of multiple people includes situations where multiple real moving people are present in front of the projected image, or where people in the projected image and real moving people are present simultaneously. The detection ID is the ID identifier of the target person obtained by the target detection algorithm. If the target person has an ID identifier, then that target ID identifier becomes the detection ID identifier. If the target person does not have an ID identifier, a detection ID identifier is configured through the algorithm, and this configured detection ID identifier is different from the real ID identifier.
[0057] In the case of multiple real moving people in front of the projected image, the detection algorithm determines whether the detected ID and the real ID are consistent. If they are consistent, it means that all the detected people are real people, and the head area and body area of each person are determined.
[0058] The situation where there are both people in the projected image and people actually moving in front of the projected image is explained in detail in step S203.
[0059] Step S203: If the detected ID identifier and the real ID identifier are different, then the person corresponding to the detected ID identifier is a fake person, and the head and body regions of the fake person are deleted in the projected image.
[0060] In cases where both a person in the projected image and a person actually moving in front of the projected image exist simultaneously, it is determined whether the detection ID and the real ID are consistent. If they are inconsistent, the person corresponding to the detection ID is the person in the projected image. The coordinates of the body and head regions of both the person actually moving and the person in the projected image are obtained. The coordinates of the head and body regions corresponding to the person detected in the projected image are deleted, and only the coordinates of the head and body regions corresponding to the person actually moving are retained. This ensures eye protection for the real person and avoids misidentification of other fake people.
[0061] Continuing with step S102, if the ratio of the intersection to the union of the head region and the body region is greater than a preset threshold, it can be determined that the head region and the body region belong to the same person, and the coordinates of the head region in the optomechanical coordinate system can be obtained. Obtaining the coordinates of the head region in the optomechanical coordinate system specifically includes:
[0062] Step S211: Obtain the coordinates of the head region in the coordinate system of the image acquisition component through the image acquisition component.
[0063] The image acquisition component acquires the projected head image and obtains the head region using an object detection algorithm. The coordinates of the head region are then determined within the coordinate system of the image acquisition component.
[0064] In one embodiment, the head region is a rectangular detection box encompassing the entire face region, and the coordinates of the four vertices of the rectangular detection box in the coordinate system of the image acquisition component are obtained. If the face region is occluded or the rectangular detection box is partially occluded, the center coordinates of the face region are obtained, and the detection box is expanded based on the center coordinates. The expansion range is determined according to the size of the human body in the body region to ensure that the coordinates of the four vertices of the rectangular detection box are obtained.
[0065] Step S212: Convert the coordinates in the projected image into coordinates in the optomechanical coordinate system using a preset transformation coordinate system.
[0066] The coordinates of the image acquisition component obtained in step S212 are transformed into the coordinates of the optomechanical coordinate system using a preset transformation coordinate system. The optomechanical coordinate system is the coordinate system that the optomechanical system carries from the factory.
[0067] It should also be noted that the default method for obtaining the coordinate system transformation is as follows:
[0068] The optical engine projects a grid onto the projection area, and the image acquisition component captures an image of the grid in the projection area. Based on the grid image, the coordinates of each intersection point in the image acquisition component's coordinate system are obtained. The optical engine then obtains the coordinates of each intersection point in the projected grid based on its own coordinate system. Finally, a preset transformed coordinate system is obtained by comparing the coordinates of the same intersection point in both the image acquisition component's coordinate system and the optical engine's coordinate system.
[0069] Continuing with step S102, determine the head area when a person enters the projection area using the above information to ensure that eye protection can be applied to the head area subsequently. The optical engine of the projection device only affects the human eye; therefore, only the head area is captured to improve the accuracy of eye protection.
[0070] Step S103: Obtain the direction and speed of the person's movement, determine the compensation value of the head region coordinates, and update the coordinates according to the compensation value to obtain the target region.
[0071] Based on the movement of the head region in each frame of the projected image, the direction and speed of human movement are determined. The direction of movement includes horizontal and vertical directions. Within the horizontal and vertical directions, there are positive and negative directions. The positive direction is the direction the person moves forward, and the negative direction is the direction the person moves backward. These directions are represented numerically: a positive direction is assigned a value of +1, and a negative direction is assigned a value of -1.
[0072] The compensation value for the head region is obtained by multiplying the movement direction, movement speed, and preset compensation duration. For example, if the preset compensation duration is 20ms, the formula * movement direction * 20 * movement speed / 1000 is satisfied to obtain the compensation values for the head region in the horizontal and vertical directions.
[0073] Based on the compensation value, the coordinates of the head region are updated, expanding the area covered by the head region. This avoids situations where the person has left the identified head region due to recognition delay, preventing subsequent eye protection from failing.
[0074] Step S104: Following the order in which the projected images are obtained, and based on the target area in each frame of the projected image, control the optical engine to reduce its brightness by following the target area until no person can be detected in the projected image, and then restore the brightness of the optical engine to its initial brightness.
[0075] Following the order in which the projected images are obtained, and based on the target area in each frame of the projected image, the optical engine is controlled to project a local eye-protection UI onto the target area to reduce the brightness of the target area. Figure 2 This is a schematic diagram illustrating the effect of eye-protection projection according to an exemplary embodiment, such as... Figure 2 As shown, when a person is within the projection area, the area around their head is displayed as a localized eye-protection UI on the projection screen. This localized eye-protection UI is dimmer than other non-target areas within the projection area, resulting in a lower brightness projected by the optical engine onto the target area, thus protecting the eyes.
[0076] In one embodiment, Figure 3 This is a flowchart illustrating a follow-up eye-protection projection according to an exemplary embodiment, such as... Figure 3 As shown, the TOF sensor in the projection device detects that an object has passed through the projection area and the user has activated the projection eye protection mode. The camera within the projection device then detects whether a person is present in the projection area. If no person is found, the eye protection mode ends. If a person is present, the device tracks and detects whether the person's body and head areas match, i.e., whether they belong to the same person. If the detection result is a mismatch, the detection is repeated. If the detection result is a match, the device checks whether the person is within the projection area. If so, it determines the compensation value for the head area coordinates based on the direction and speed of movement. The head area coordinates are updated based on the compensation value to determine the target area, and a localized eye protection UI is projected onto the target area to reduce the brightness of the local optical engine, achieving an eye-protection effect. After the localized eye protection UI is projected, the camera detects the person in the projection area again to obtain the target area. The position of the localized eye protection UI is updated based on the target area to control the brightness of the optical engine as the person moves. When the camera can no longer detect a person in the projection area, the localized eye protection UI is turned off, and the projection screen returns to its initial brightness.
[0077] In another embodiment, the projection device includes a gesture interaction mode. The target gesture is captured by a camera within the projection device to activate the gesture interaction mode. A localized eye-protection UI occupies a partial area of the entire projection screen, while other areas remain at their initial brightness. Therefore, when a user displays the target gesture in a non-target area, the projection device can capture the gesture and activate the gesture interaction mode to provide a better user experience. Figure 4 This is a flowchart illustrating an interactive experience and eye protection based on an exemplary embodiment, such as... Figure 4As shown, the projector uses a TOF sensor to detect if an object has passed by. If no object is detected, the detection process repeats until an object is detected before proceeding. If an object is detected, the camera is activated to detect if it is a person. If a person is present in the projection area and is actually moving (not just a person in the projected image), the eye protection conditions are met, and the projector enters eye protection mode to perform eye protection operations. The camera detects the movement of the person in the projection area and adjusts the brightness of the optical engine accordingly until the camera determines that the person has left the projection area. At this point, eye protection mode ends, and the optical engine brightness is restored to its initial level. If a target gesture is detected during the eye protection operation, indicating that the gesture control conditions are met, a gesture prompt appears on the projection screen for the user to confirm whether to activate the gesture control function. If the user confirms activation, eye protection mode is exited, the optical engine returns to its initial brightness, and the projector enters gesture interaction mode to provide an interactive experience. If the user does not activate the gesture control function, eye protection operations continue until the eye protection mode ends. It should also be noted that if, after evaluation, neither the eye protection condition nor the gesture control condition is met, the TOF sensor will be used again to determine whether an object has passed by.
[0078] Furthermore, the parameters set by various devices in this application, as well as the parameters of the identified head and body regions, can be adaptively adjusted according to the actual parameters of the devices used in the specific application.
[0079] In summary, the eye-protection projection method provided in this application acquires an image of the projection area, obtains the head region of a person actually moving within the projection area, and compensates for the head region to obtain the target area. This reduces the impact of the delay caused by recognition and detection on the subsequent brightness reduction range of the optical engine. Based on the position of the target area in each frame of the projection image, the optical engine is controlled to follow the movement of the target area, projecting a local eye-protection UI onto the target area to reduce the brightness of the local area until the person leaves the projection area and the target area no longer exists. By reducing the brightness of the head region following the target area, the real-time efficiency of protecting the eyes is improved, and the accuracy of eye protection is improved by using local brightness reduction. Furthermore, by using local brightness reduction, non-target areas still maintain their initial brightness, so gesture interaction can be implemented in non-target areas. Gesture interaction modes are triggered by the target gesture, satisfying the user's interactive experience. This enables the projection device to reduce the brightness of the optical engine as the person moves, achieving real-time eye protection, and ensuring the interactive experience of the projection device through local brightness reduction.
[0080] Secondly, embodiments of this application provide an eye-protection projection device. Figure 5 This is a block diagram illustrating an eye-protection projection device according to an exemplary embodiment. Figure 5 As shown, the eye-protection projection device includes:
[0081] The projection image acquisition module is used to capture several frames of projection images of the projection area through the image acquisition component.
[0082] The coordinate acquisition module is used to determine the head region and body region of any person when a person is detected in the projected image, and obtain the ratio of the intersection and union between the head region and the body region. If the ratio of the intersection and union is greater than a preset threshold, the coordinates of the head region in the optical-mechanical coordinate system are obtained.
[0083] The target region acquisition module is used to obtain the direction and speed of human movement, determine the compensation value of the head region coordinates, and update the coordinates based on the compensation value to obtain the target region;
[0084] The follow module is used to control the optical engine to reduce its brightness according to the target area in each frame of the projected image, based on the order in which the projected images are obtained, until no person can be detected in the projected image, and then restore the brightness of the optical engine to its initial brightness.
[0085] In summary, the eye-protection projection device provided in this application captures several frames of projected images using an image acquisition component. When a person is detected in the projected images, the device acquires the person's head and body regions. If the ratio of the intersection to the union of the head and body regions is greater than a preset threshold, then the head and body regions belong to the same person. This avoids false detections and triggering of false triggers by the detection algorithm, and allows the projection device to track and protect the eyes of the current person. The device acquires the person's movement direction and speed to determine a compensation value for the head region coordinates. The head region coordinates are updated based on the compensation value to obtain the target region. The optical engine is then controlled to reduce the brightness of the target region, thus protecting the eyes by reducing local brightness. Furthermore, the optical engine reduces brightness by following the target region in each frame of the projected image, achieving precise eye protection by following the person's movement.
[0086] It should be noted that the eye-protection projection device provided in this embodiment is used to implement the above-described embodiments, and details already described will not be repeated. As used above, terms such as "module," "unit," and "subunit" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the above embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0087] Thirdly, embodiments of this application provide an electronic device, Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. (e.g.) Figure 6 As shown, the electronic device may include a processor 81 and a memory 82 storing computer program instructions.
[0088] Specifically, the processor 81 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0089] The memory 82 may include a mass storage device for data or instructions. For example, and not limitingly, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include removable or non-removable (or fixed) media. Where appropriate, the memory 82 may be internal or external to a data processing device. In a particular embodiment, the memory 82 is non-volatile memory. In a particular embodiment, the memory 82 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only ROM (PROM), an erasable programmable read-only ROM (EPROM), an electrically erasable programmable read-only ROM (EEPROM), an electrically alterable read-only ROM (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), Extended Data Out Dynamic Random-Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.
[0090] The memory 82 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 81.
[0091] The processor 81 reads and executes computer program instructions stored in the memory 82 to implement any of the eye-protection projection methods in the above embodiments.
[0092] In one embodiment, the eye-protection projection device may further include a communication interface 83 and a bus 80. Wherein, as... Figure 6 As shown, the processor 81, memory 82, and communication interface 83 are connected through bus 80 and complete communication with each other.
[0093] The communication interface 83 is used to enable communication between the various modules, devices, units, and / or equipment in the embodiments of this application. The communication port 83 can also enable data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.
[0094] Bus 80 includes hardware, software, or both, that couples the components of the eye-care projection device together. Bus 80 includes, but is not limited to, at least one of the following: data bus, address bus, control bus, expansion bus, and local bus. For example, and not as a limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0095] Fourthly, embodiments of this application provide a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the eye-protection projection method provided in the first aspect.
[0096] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0097] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, is used to cause the terminal device to perform the steps of implementing the eye-protection projection method provided in the first aspect.
[0098] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0099] 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 specification.
[0100] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. 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 patent application should be determined by the appended claims.
Claims
1. An eye-friendly projection method, characterized in that, The method is applied to a projection device, the projection device including an image acquisition component and an optical engine, and the method includes: The image acquisition component captures several frames of projected images of the projection area. For any frame of the projected image, when a person is detected in the projected image, the head region and body region of the person are determined, and the ratio of the intersection and union between the head region and the body region is obtained. If the ratio of the intersection and union is greater than a preset threshold, the coordinates of the head region in the optical-mechanical coordinate system are obtained. The direction and speed of the person's movement are obtained, and the compensation value of the coordinates of the head region is determined. The coordinates are updated according to the compensation value to obtain the target region. According to the order in which the projected images are obtained, the optical engine is controlled to reduce its brightness according to the target area in each frame of the projected image until the person can no longer be detected in the projected image, and then the brightness of the optical engine is restored to its initial brightness.
2. The eye-protection projection method according to claim 1, characterized in that, The step of determining the head region and body region of the person when a person is detected in the projected image includes: Using a target detection algorithm, when the person enters the projection area, their real ID is obtained; When multiple people are detected in the projected image, the detection ID of each person is obtained. If the detection ID is the same as the real ID, then a real person exists in the projected image, and the head and body regions of the real person are determined. If the detection ID and the real ID are different, then the person corresponding to the detection ID is a fake person, and the head and body regions of the fake person are deleted from the projected image.
3. The eye-protection projection method according to claim 1, characterized in that, The step of obtaining the person's direction of movement and speed, and determining the compensation value for the coordinates of the head region, includes: The motion direction and the motion speed are obtained, wherein the motion direction includes a positive direction and a negative direction, the positive direction represents the direction in which the person moves forward and has a value of +1, and the negative direction represents the direction in which the person moves backward and has a value of -1; The compensation value is obtained by multiplying the direction of motion, the speed of motion, and the preset compensation duration.
4. The eye-protection projection method according to claim 1, characterized in that, Determining the coordinates of the head region in the optomechanical coordinate system includes: The coordinates of the head region in the coordinate system of the image acquisition component are obtained through the image acquisition component; The coordinates of the image acquisition component are transformed into the coordinates of the optomechanical coordinate system using a preset transformation coordinate system.
5. The eye-protecting projection method according to claim 4, characterized in that, Obtaining the preset transformation coordinate system includes: The image component captures the grid projected by the optical engine to obtain a grid image, and the coordinates of each intersection point in the grid image are determined in the coordinate system of the image acquisition component. The coordinates of each intersection point of the grid are obtained in the optomechanical coordinate system. Based on the image, the intersection point coordinates in the component coordinate system and the intersection point coordinates in the optomechanical coordinate system are obtained to obtain the preset transformation coordinate system.
6. The eye-protection projection method according to claim 1, characterized in that, After controlling the optical engine to reduce the brightness of the target area, the method further includes: If a target gesture is detected in the projection area, the gesture interaction mode is activated, and the brightness of the optical engine is controlled to the initial brightness.
7. An eye-protection projection device, characterized in that, The apparatus is applied to a projection device, the projection device including an image acquisition component and an optical engine, and the method includes: A projection image acquisition module is used to capture several frames of projection images of the projection area through the image acquisition component; The coordinate acquisition module is used to determine the head region and body region of the person when a person is detected in any frame of the projected image, and to obtain the ratio of the intersection and union between the head region and the body region. If the ratio of the intersection and union is greater than a preset threshold, the coordinates of the head region in the optical-mechanical coordinate system are obtained. The target region acquisition module is used to obtain the direction and speed of the person's movement, determine the compensation value of the coordinates of the head region, and update the coordinates according to the compensation value to obtain the target region; The follow module is used to control the optical engine to reduce its brightness according to the target area in each frame of the projected image, based on the order in which the projected images are obtained, until the person can no longer be detected in the projected image, and then restore the brightness of the optical engine to its initial brightness.
8. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the eye-protection projection method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the eye-protection projection method as described in any one of claims 1 to 6.