Eye protection projection method and device, projection equipment and storage medium
By dynamically acquiring the depth-of-field image monitoring of the TOF sensor and reducing the brightness of the projection display area, the problem of potential damage to the eyes caused by the light source of the projection equipment is solved, and the eye-protection display of the projection equipment and human eye protection in multiple environments are realized.
Patent Information
- Application Number
- CN202411026811.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-11
AI Technical Summary
The high-intensity light source of the projection equipment may cause damage to the eyes during use, posing a safety hazard.
By dynamically acquiring the depth of field image collected by the time-of-flight TOF sensor, monitoring whether there is a target moving object in the eye protection monitoring area, and reducing the screen brightness of the projection display area when there is a target moving object, using real-time and intelligent projection brightness adjustment to generate black Mask to reduce direct light.
It effectively prevents bright projection light from irradiating human eyes, greatly reduces the potential threat to vision, realizes eye-protecting display of projection equipment, and ensures human eye protection in various display environments.
Smart Images

Figure CN118764595A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection technology, and in particular to an eye-protection projection method, device, projection equipment and storage medium. Background Art
[0002] Projection equipment is a device that can project images or videos onto a screen. It is generally composed of a projection imaging system and an optical magnification system. The projection signal is processed by the imaging technology of the device to become an image signal, and then it can be projected and displayed on the screen through the amplification of the optical system. The light source of the device is mostly a high-intensity gas discharge light source, LED (Light Emitting Diode) light source or a new light source represented by a laser light source. During the projection process, the light source has a high illumination. During use, the user is likely to enter the area where the image is projected by the projection device. At this time, if the human eye accidentally looks directly at the light source of the projection device, it may cause certain damage to the eyes, posing certain safety hazards.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide an eye-protection projection method, device, projection equipment and storage medium, so as to realize eye-protection display of the projection equipment.
[0005] To achieve the above purpose, the present application embodiment provides an eye protection projection method, the method comprising:
[0006] Dynamically acquire a depth of field image collected by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where a projection screen of a projection device is located, and the eye protection monitoring area surrounds the projection display area;
[0007] Monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image;
[0008] When there is a target moving object in the eye protection monitoring area, the picture brightness of the projection display area is reduced.
[0009] In one embodiment, the step of reducing the image brightness of the projection display area includes:
[0010] Determine first object position information of the target moving object in the image coordinate system of the depth of field image;
[0011] According to the first object position information, a target eye protection area in the projection display area is determined, and the image brightness of the target eye protection area is reduced.
[0012] In one embodiment, the step of determining the target eye protection area in the projection display area according to the first object position information includes:
[0013] Respectively acquiring first projection position information of the projection display area in the image coordinate system and second projection position information in a preset space coordinate system;
[0014] generating a perspective matrix according to the first projection position information and the second projection position information;
[0015] Based on the perspective matrix, performing perspective transformation on the first object position information to obtain second object position information of the target moving object in the spatial coordinate system;
[0016] The target eye protection area is determined according to the second projection position information and the second object position information.
[0017] In one embodiment, the step of reducing the image brightness of the projection display area includes:
[0018] A black mask is generated in the projection display area to reduce the image brightness of the projection display area.
[0019] In one embodiment, the step of monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image includes:
[0020] Determine a display parameter difference value between eye protection monitoring areas of a plurality of continuously acquired depth of field images, and determine that a candidate moving object exists in the eye protection monitoring area when the display parameter difference value is greater than a preset difference threshold;
[0021] Performing contour recognition on the candidate moving object to obtain a candidate contour;
[0022] When the similarity between the candidate contour and the preset portrait contour is greater than a preset contour similarity threshold, the candidate moving object is determined to be the target moving object.
[0023] In one embodiment, before the step of determining the candidate moving object as the target moving object, the method further includes:
[0024] Performing facial feature recognition on the candidate moving object;
[0025] In the case where it is identified that the candidate moving object has facial features, a step of determining the candidate moving object as the target moving object is performed.
[0026] In addition, to achieve the above-mentioned purpose, the embodiment of the present application further proposes an eye protection projection device, which is applied to a projection device, and the device comprises:
[0027] An acquisition module is configured to dynamically acquire a depth image collected by a time-of-flight TOF sensor, wherein the depth image includes a preset eye protection monitoring area and a projection display area where a projection screen of a projection device is located, and the eye protection monitoring area surrounds the projection display area
[0028] A monitoring module, configured to monitor whether there is a target moving object in the eye protection monitoring area according to the depth of field image;
[0029] The brightness reduction module is configured to reduce the image brightness of the projection display area when there is a target moving object in the eye protection monitoring area.
[0030] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also proposes a projection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the eye-protection projection method described above.
[0031] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the eye-protection projection method described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also proposes a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the eye-protection projection method described above are implemented.
[0033] One or more technical solutions proposed in the embodiments of the present application have at least the following technical effects: by dynamically acquiring a depth of field image collected by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where the projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area; and then, based on the depth of field image, real-time monitoring is performed to determine whether there is a target moving object in the eye protection monitoring area, and when there is a target moving object in the eye protection monitoring area, the screen brightness of the projection display area is timely reduced. The embodiments of the present application effectively avoid high-brightness projection light from irradiating the human eye through instant and intelligent projection brightness adjustment, greatly reducing the potential threat to vision and realizing eye protection display of the projection device. In addition, the TOF sensor can still maintain excellent recognition capabilities in a dark light source environment, is not limited by light conditions, and ensures human eye protection in a variety of display environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 A schematic diagram of a flow chart provided for Embodiment 1 of the eye protection projection method of the present application;
[0037] Figure 2 A scene diagram of an eye protection projection method provided in an embodiment of the present application Figure 1 ;
[0038] Figure 3 A scene diagram of an eye protection projection method provided in an embodiment of the present application Figure 2 ;
[0039] Figure 4 A scene diagram of an eye protection projection method provided in an embodiment of the present application Figure 3 ;
[0040] Figure 5 This is a flow chart of a more complete embodiment of the present application;
[0041] Figure 6 A scene diagram of an eye protection projection method provided in an embodiment of the present application Figure 4 ;
[0042] Figure 7 A scene diagram of an eye protection projection method provided in an embodiment of the present application Figure 5 ;
[0043] Figure 8 This is a schematic diagram of the framework structure of the eye-protection projection device in an embodiment of the present application;
[0044] Fig. 9 Schematic diagram of the device structure of the hardware operating environment of the projection device involved in the eye-protection projection method in the embodiment of the present application.
[0045] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] In conventional technology, the light source of the projection device has a high illumination, and the user is likely to enter the area of the image projected by the projection device during use; at this time, if the human eye accidentally looks directly at the light source of the projection device, it may cause certain damage to the eyes, posing certain safety hazards.
[0049] The embodiment of the present application provides a solution by dynamically acquiring a depth of field image collected by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where the projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area; then, based on the depth of field image, real-time monitoring is performed to determine whether there is a target moving object in the eye protection monitoring area, and when there is a target moving object in the eye protection monitoring area, the screen brightness of the projection display area is promptly reduced. The embodiment of the present application effectively avoids high-brightness projection light from irradiating the human eye through instant and intelligent projection brightness adjustment, greatly reduces the potential threat to vision, and realizes eye protection display of the projection device. In addition, the TOF sensor can still maintain excellent recognition capabilities in a dark light source environment, is not limited by light conditions, and ensures all-weather, uninterrupted human eye protection.
[0050] Reference Figure 1 , Figure 1 This is a flow chart of the first embodiment of the eye-protection projection method of the present application.
[0051] It should be noted that the execution subject of the eye protection projection method can be a projection device, for example, a projector, or an eye protection projection device that is connected to the projection device in communication. The eye protection projection device can be a local device or a network device. This embodiment does not limit this. For the sake of convenience, the following description of each embodiment is omitted. The eye protection projection method includes:
[0052] Step S10, dynamically acquiring a depth of field image collected by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where a projection screen of a projection device is located, and the eye protection monitoring area surrounds the projection display area;
[0053] In a feasible embodiment, a depth of field image captured by an associated TOF sensor is dynamically acquired, wherein the depth of field image includes a preset eye protection monitoring area and an area where a projection image projected by a projection device is located (i.e., a projection display area), and the projection display area is surrounded by the eye protection monitoring area.
[0054] A TOF sensor, or time-of-flight sensor, is a sensor that calculates distance based on the signal's flight time. It determines the distance from each point in the corresponding scene to the sensor (i.e., depth data) by measuring the time required for light, sound waves, or other types of signals to be emitted and received, and generates a depth image based on the depth data. The depth image can intuitively show the distance relationship between different objects in the scene and the TOF sensor. In particular, nearby objects may appear as darker colors or more obvious outlines in the depth image, while distant objects may appear as lighter colors or more blurred outlines.
[0055] Exemplarily, the TOF sensor may be disposed in the projection device, or may be an external TOF sensor.
[0056] For example, refer to Figure 2 A TOF sensor 120 is provided in the projection device 110. The projection picture projected by the projection device 110 is in the projection display area 111, and the projection display area 111 is surrounded by a preset eye protection monitoring area 130. The depth of field image 121 collected by the TOF sensor 120 includes the projection display area 111 and the eye protection monitoring area 130.
[0057] Step S20, monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image;
[0058] In a feasible embodiment, based on the depth of field image, it is dynamically monitored whether there is a target moving object in the eye protection monitoring area; when there is no target moving object in the eye protection monitoring area, it indicates that no user is about to pass through the projection display area of the projection device, then step S20 is continued to be executed, and based on the depth of field image, it is monitored whether there is a target moving object in the eye protection monitoring area.
[0059] Exemplarily, the target moving object may be a person.
[0060] Step S30, when there is a target moving object in the eye protection monitoring area, reducing the image brightness of the projection display area.
[0061] In a feasible embodiment, when there is a target moving object in the eye protection monitoring area, it indicates that a user may be about to cross into the projection display area of the projection device. Since high-brightness projection light irradiating the human eye may cause potential damage to vision, the screen brightness of the projection display area is reduced so that the screen brightness of the projection display area of the projection device is adjusted to a softer, non-glaring safety level; this effectively prevents the light damage that the user may suffer when inadvertently stepping into the projection display area. Since the projection display area is surrounded by the eye protection display area, the user's movement trajectory and speed can be captured in advance, so that there is enough time to predict the user's next move and respond in advance.
[0062] For example, the effect of reducing the image brightness of the projection display area can be achieved by reducing the grayscale value of the projection display area.
[0063] Exemplarily, the image brightness of the entire projection display area may be reduced.
[0064] Exemplarily, a local target eye protection area can be determined from the projection display area, and the image brightness of the target eye protection area can be locally reduced.
[0065] In one feasible embodiment, step S30, the step of reducing the image brightness of the projection display area includes:
[0066] Step S31, generating a black mask in the projection display area to reduce the image brightness of the projection display area.
[0067] In a feasible embodiment, a black mask is generated in the projection display area to achieve the effect of reducing the brightness of the image in the projection display area.
[0068] The black mask is generated in the projection display area by superimposing one or more black layers with specific shapes and sizes on the projection screen of the projection device, thereby blocking or reducing the brightness of the projection display area to reduce direct damage to human eyes.
[0069] In this embodiment, the depth of field image collected by the time-of-flight TOF sensor is dynamically acquired, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where the projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area; then, according to the depth of field image, whether there is a target moving object in the eye protection monitoring area is monitored in real time, and when there is a target moving object in the eye protection monitoring area, the screen brightness of the projection display area is timely reduced. The embodiment of the present application effectively avoids direct exposure of high-brightness projection light to the human eye through instant and intelligent projection brightness adjustment, greatly reduces the potential threat to vision, and realizes the eye protection display of the projection device. In addition, the TOF sensor can still maintain excellent recognition capabilities in a dark light source environment, is not limited by light conditions, and ensures all-weather, uninterrupted human eye protection.
[0070] Based on the above first embodiment, a second embodiment of the eye protection projection method of the present application is proposed. In this embodiment, step S20, the step of monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image includes:
[0071] Step S21, determining a display parameter difference value between eye protection monitoring areas of a plurality of continuously acquired depth of field images, and determining that a candidate moving object exists in the eye protection monitoring area when the display parameter difference value is greater than a preset difference threshold;
[0072] In a feasible embodiment, a differential operation is performed on the multiple depth of field images acquired continuously to determine the display parameter difference value between the eye protection monitoring areas of the depth of field images, wherein the display parameter may be brightness, color, etc., and the multiple depth of field images may be two, three, four, etc. Then, the size relationship between the display parameter difference value and the preset difference threshold is determined; when the display parameter difference value is greater than the preset difference threshold, it indicates that the difference between the eye protection monitoring areas of the multiple depth of field images acquired continuously is obvious, which is caused by the presence of a moving object in the image, so it is determined that there is a candidate moving object in the eye protection monitoring area. When the display parameter difference value is less than or equal to the preset difference threshold, it indicates that the difference between the eye protection monitoring areas of the multiple depth of field images acquired continuously is small, and there is no moving object.
[0073] Step S22, performing contour recognition on the candidate moving object to obtain a candidate contour;
[0074] Step S23: when the similarity between the candidate contour and the preset portrait contour is greater than a preset contour similarity threshold, the candidate moving object is determined to be a target moving object.
[0075] In a feasible embodiment, after determining that there is a candidate moving object in the eye protection monitoring area, it is necessary to further determine whether the candidate moving object is a person; then the outline of the candidate moving object is identified to obtain a candidate outline. Then determine the size relationship between the similarity between the candidate outline and the preset portrait outline and the preset outline similarity threshold; when the similarity between the candidate outline and the preset portrait outline is greater than the preset outline similarity threshold, it indicates that the similarity between the candidate outline and the portrait outline is high, and it can be basically determined that the candidate moving object is a person (i.e., the target moving object). When the similarity between the candidate outline and the preset portrait outline is less than or equal to the preset outline similarity threshold, it indicates that the similarity between the candidate outline and the portrait outline is low, and it may be other non-human objects.
[0076] In this embodiment, contour recognition is used to accurately determine whether the moving object is a person, so that when a user passes through the projection display area of the projection device, the image brightness of the area is timely reduced, effectively avoiding direct exposure of high-brightness projection light to the human eye, greatly reducing the potential threat to vision, and realizing eye-protection display of the projection device.
[0077] In a feasible implementation manner, before the step of determining the candidate moving object as the target moving object in step S23, the method further includes:
[0078] Step S221, performing facial feature recognition on the candidate moving object;
[0079] Step S222, when it is identified that the candidate moving object has facial features, a step of determining the candidate moving object as a target moving object is executed.
[0080] In a feasible embodiment, when it is determined that the candidate moving object is a person, it can be further determined whether the eyes of the candidate moving object will be exposed to the projection light when passing through the projection display area. Then, the facial features of the candidate moving object are recognized; when the facial features of the candidate moving object are recognized, it indicates that the candidate moving object is likely to be facing the front or side relative to the projection device, so when the candidate moving object passes through the projection display area, its eyes are likely to be exposed to the projection light, so step S23 is executed to determine that the candidate moving object is the target moving object. When the facial features of the candidate moving object are not recognized, it indicates that the candidate moving object may be an object with a similar outline to a person, or the candidate moving object is facing the back relative to the projection device; in this case, when the candidate moving object passes through the projection display area, its eyes will not be exposed to the projection light, so there is no need to reduce the screen brightness of the projection display area to ensure the projection display effect.
[0081] In this embodiment, the accuracy of human body recognition is further improved through further facial feature recognition, so that when a user passes through the projection display area of the projection device, the image brightness of the area is timely reduced, effectively avoiding direct exposure of high-brightness projection light to the human eye, greatly reducing the potential threat to vision, and realizing eye-protection display of the projection device.
[0082] Based on the above first and / or second embodiments, a third embodiment of the eye protection projection method of the present application is proposed. In this embodiment, step S30, the step of reducing the image brightness of the projection display area includes:
[0083] Step S32, determining first object position information of the target moving object in the image coordinate system of the depth of field image;
[0084] In a feasible embodiment, an image coordinate system is established based on the depth of field image, and position information of the target moving object in the image coordinate system (ie, first object position information) is determined.
[0085] Exemplarily, the first object position information includes the coordinates of the target moving object in the image coordinate system. Since the image captured by the TOF sensor is a depth image, the distance between the target moving object and the TOF sensor and the projection device can be determined based on the first object position information.
[0086] Exemplarily, the origin of the image coordinate system is determined based on the depth of field image, wherein the origin of the image coordinate system can be selected at the center, upper left corner or other points of specific significance of the image, and the intersection of the optical axis of the TOF sensor and the image plane (i.e., the principal point) can also be selected. Then, the X-axis is established in the horizontal direction pointing to the image, the Y-axis is established in the vertical direction pointing to the image, and the Z-axis is established in the direction perpendicular to the image plane, thereby establishing the image coordinate system.
[0087] In a feasible implementation manner, step S32, the step of determining first object position information of the target moving object in the image coordinate system of the depth of field image includes:
[0088] Step S321, obtaining the head outline of the target moving object and determining the minimum circumscribed rectangle of the head outline;
[0089] Step S322: determining the position information of each vertex of the minimum circumscribed rectangle of the head outline in the image coordinate system as the first object position information.
[0090] In a feasible embodiment, contour recognition is performed on the target moving object to obtain the head contour of the target moving object; then the minimum circumscribed rectangle of the head contour is determined; then the position information of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system is determined as the first object position information.
[0091] Exemplarily, the coordinates of each vertex of the minimum circumscribed rectangle of the head outline in the image coordinate system are determined as the first object position information.
[0092] In this embodiment, by identifying the head position of the target moving object, the determined target eye protection area can have as small an area as possible while protecting the user's eyes from direct or scattered projection light, thereby reducing the impact of the eye protection display area on the display effect of the projection picture.
[0093] Step S33, determining a target eye protection area in the projection display area according to the first object position information, and reducing the image brightness of the target eye protection area.
[0094] In a feasible embodiment, a target eye protection area in the projection display area is determined according to the first object position information, so as to reduce the image brightness of the target eye protection area in a targeted manner.
[0095] Exemplarily, a black mask is generated in the target eye protection area, thereby achieving the effect of reducing the brightness of the image in the target eye protection area.
[0096] In one feasible implementation, step S33, the step of determining the target eye protection area in the projection display area according to the first object position information includes:
[0097] Step S331, respectively obtaining first projection position information of the projection display area in the image coordinate system and second projection position information in the preset spatial coordinate system of the projection device;
[0098] Step S332, generating a perspective matrix according to the first projection position information and the second projection position information;
[0099] In one feasible embodiment, the position information of the projection display area in the image coordinate system (i.e., the first projection position information) is obtained, and the pitch angle, roll angle, and yaw angle of the projection device are determined in advance based on the sensor data collected by the gyroscope and TOF (Time of flight) sensor associated with the projection device, and a spatial coordinate system is established; and then the position information of the projection image in the preset spatial coordinate system (i.e., the second projection position information) is obtained. A perspective matrix is generated based on the position information of the projection display area in the two coordinate systems.
[0100] Exemplarily, the center point of the projection device, gyroscope or TOF sensor is used as the origin of the spatial coordinate system; the X-axis is established in the horizontal direction of the viewing angle of the projection device (i.e., the projection screen), the Y-axis is established in the vertical direction of the viewing angle of the projection device (i.e., the projection screen), and the Z-axis is established in a direction perpendicular to the plane formed by the X-axis and the Y-axis to obtain the spatial coordinate system.
[0101] Step S333, performing perspective transformation on the first object position information based on the perspective matrix to obtain second object position information of the target moving object in the spatial coordinate system;
[0102] Step S334: determining a target eye protection area according to the second projection position information and the second object position information.
[0103] In a feasible embodiment, based on the perspective matrix, the first object position information is perspectively transformed to obtain the second object position information of the target moving object in the spatial coordinate system, thereby realizing the coordinate conversion. Since the target moving object has been converted to the spatial coordinate system of the projection device, the target eye protection area can be determined according to the second object position information of the target moving object, which may include the position information, size information, etc. of the target eye protection area.
[0104] For example, refer to Figure 3, perform contour recognition on the target moving object to obtain the head contour of the target moving object; determine the minimum circumscribed rectangle of the head contour, and determine the coordinates of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system as the first object position information. Perform perspective change on the first object position information based on the perspective matrix to obtain the second object position information of the target moving object in the spatial coordinate system. According to the first preset ratio and the maximum and minimum values of the second object position information in the longitudinal direction, determine the boundary of the target eye protection area 112 in the longitudinal direction of the spatial coordinate system; determine the boundary of the projection display area 111 in the transverse direction of the spatial coordinate system as the boundary of the target eye protection area 112 in the transverse direction of the spatial coordinate system; and then determine the target eye protection area 112 according to the boundaries of the target eye protection area 112 in the transverse and longitudinal directions of the spatial coordinate system. The target eye protection area 112 is set on a specific horizontal plane within the projection display area 111, and the horizontal plane is located in the height range where the head of the target moving object is located when passing through the projection display area 111, so as to maximize the protection of the user's eyes from damage by direct or scattered projection light.
[0105] For example, refer to Figure 4 , perform contour recognition on the target moving object to obtain the head contour of the target moving object; determine the minimum circumscribed rectangle of the head contour, and determine the coordinates of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system as the first object position information. Perform perspective changes on the first object position information based on the perspective matrix to obtain the second object position information of the target moving object in the spatial coordinate system. According to the second preset ratio and the second object position information, the regional position information of the target eye protection area 112 in the spatial coordinate system is obtained; and the regional position information will be dynamically updated according to the change of the second object position information, referring to Figure 4The target eye protection area 112 in the solid line frame is the current area position of the target eye protection area 112, and the target eye protection area 112 in the dotted line frame is the area position of the target eye protection area 112 after following the movement of the target moving object. The target eye protection area 112 can always follow the displacement of the target moving object in the projection display area 111, wherein, in the process of the target moving object moving in the horizontal axis direction and / or the vertical axis direction of the spatial coordinate system, the target eye protection area 112 can follow the displacement of the target moving object in the horizontal axis direction and / or the vertical axis direction of the spatial coordinate system and move accordingly; in the process of the target moving object moving close to or away from the projection device, the second object position information of the determined target moving object will also change accordingly; that is, when the target moving object is close to the projection device, the area corresponding to the second object position information increases accordingly, and when the target moving object is away from the projection device, the area corresponding to the second object position information decreases accordingly. Similarly, the area corresponding to the target eye protection area 112 is positively correlated with the area corresponding to the second object position information, so the area corresponding to the target eye protection area 112 changes with the change of the area corresponding to the second object position information. Thus, on the basis of protecting the user's eyes from direct or scattered projection light, the area of the target eye protection area 112 is reduced as much as possible to reduce the impact on the display effect of the projection picture.
[0106] In order to assist in understanding the above technical solution, a relatively complete embodiment of a projection obstacle avoidance display method is explained below. Figure 5 , step A101, dynamically acquire the depth of field data collected by the TOF sensor. Step A102, obtain a depth of field image according to the depth of field data, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where the projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area. Step A103, determine whether there is a target moving object in the eye protection monitoring area. Step A104, in the case where there is a target moving object in the eye protection monitoring area, determine the first object position information of the target moving object in the image coordinate system of the depth of field image. Step A105, obtain the first projection position information of the projection display area in the image coordinate system, and the second projection position information in the preset spatial coordinate system; generate a perspective matrix according to the first projection position information and the second projection position information; based on the perspective matrix, perform perspective transformation on the first object position information. Step A106, obtain the second object position information of the target moving object in the spatial coordinate system. Step A107, determine the target eye protection area in the projection display area according to the second object position information. Step A108, generating a black mask in the target eye protection area, thereby reducing the image brightness of the target eye protection area to achieve an eye protection effect.
[0107] In this embodiment, the target eye protection area in the projection display area is determined based on the position information of the target moving object, and then the area of the target eye protection area is reduced as much as possible to reduce the impact on the projection picture display effect while protecting the user's eyes from direct or scattered projection light.
[0108] In a feasible implementation, the first projection position information of the projection display area in the image coordinate system can be pre-acquired and stored locally, and the pre-acquisition step of the first position information can include: switching the display content of the projection screen of the projection device to a preset calibration reference screen, wherein the calibration reference screen includes a calibration mark, and each vertex of the calibration reference screen is respectively provided with a calibration mark, and the calibration mark is a polygon, for example, a triangle. Dynamically acquire the depth of field image collected by the time-of-flight TOF sensor, and determine the first projection position information of the projection display area in the image coordinate system according to the depth of field image and the calibration mark.
[0109] In a feasible implementation manner, the step of determining the first projection position information of the projection display area in the image coordinate system based on the depth of field image and the correction mark includes: performing contour recognition on the depth of field image to obtain a first contour set, and filtering out a target marker contour corresponding to the correction mark from the first contour set based on the contour shape of the correction mark; performing corner point recognition on the depth of field image to obtain a first corner point set, and filtering out target corner points corresponding to the vertices of the projection display area from the first corner point set based on the center points of the contours of each target marker; and determining the first projection position information based on the position information of each target corner point in the image coordinate system.
[0110] In a feasible embodiment, the step of filtering out the target identification contour corresponding to the correction identification from the first contour set according to the contour shape of the correction identification includes: determining the number of vertices of the correction identification according to the contour shape of the correction identification, and filtering out multiple contours with the same number of vertices as the correction identification from the first contour set to obtain a second contour set; determining the regional grayscale value within the area defined by each contour included in the second contour set in the depth of field image; and filtering out the target identification contour from the second contour set according to the grayscale value of each region.
[0111] For example, refer to Figure 6, the depth image 121 includes a projection display area 111, and the display content in the projection display area 111 is a preset calibration reference image, and calibration marks 112 are respectively set at each vertex of the projection display area 111, and the calibration marks 112 are triangles. Contour recognition is performed on the depth image 121 to obtain a first contour set, including: P1 to P8; since the calibration mark 112 is a triangle, the number of vertices of the calibration mark 112 is 3, and then the contour with 3 vertices in the first contour set is determined as a contour consistent with the contour shape corresponding to the calibration mark 112, and a second contour set is obtained, including: P2, P3, P4, P5 and P7. In the correction reference image, the color of the inner area of the preset correction mark 112 is gray, while the color of the remaining area of the correction reference image is white. At the same time, the preset position of the outer side of the contour when determining the grayscale value size relationship is set to: perpendicular to the longest side of the triangle and extending a preset distance outside the triangle, that is, the color of this position is white; therefore, it can be determined that the preset grayscale value reference relationship is: the grayscale value in the corresponding area of the correction mark 112 is smaller than the grayscale value at the preset position outside it. Then, the grayscale values of the first areas corresponding to the areas defined by P2, P3, P4, P5 and P7 in the depth of field image 121 and the grayscale values of the second areas at the preset positions outside P2, P3, P4, P5 and P7 (i.e., corresponding to Q1, Q2, Q3, Q4 and Q5 respectively) are determined, and then the size relationship between the grayscale values of the first areas and the grayscale values of the second areas corresponding to P2, P3, P4, P5 and P7 is further obtained, among which, for P2, P3, P4 and P5, the grayscale value in the area corresponding to the correction mark 112 is less than the grayscale value at the preset position outside it, and for P7, the grayscale value in the area corresponding to the correction mark 112 is equal to the grayscale value at the preset position outside it. Therefore, P2, P3, P4 and P5 are determined to be the target mark contours.
[0112] In a feasible embodiment, the step of selecting target corner points corresponding to the vertices of the projection display area from the first corner point set according to the center point of each target identification contour includes: determining the angular center distance between each corner point in the first corner point set and the center point of each target identification contour; sorting each corner point in the first corner point set according to the angular center distance associated with the center point of each target identification contour to obtain a corner point sorting result associated with the center point of each target identification contour; determining a target ranking associated with the corner point sorting result according to the number of vertices of the correction mark; for example, adding one to the number of vertices of the correction mark to obtain a target ranking; and determining the target corner point from the corner point sorting results according to the target ranking.
[0113] For example, refer to Figure 7, the depth of field image 121 includes a projection display area 111, and the display content of the projection display area 111 is a preset calibration reference image, and calibration marks 112 are respectively set at each vertex of the projection display area 111, and the calibration marks 112 are triangles. Contour recognition is performed on the depth of field image 121 to obtain a first contour set, including: P1 to P8. According to the contour shape corresponding to the calibration mark 112, the target mark contour corresponding to the calibration mark is filtered out from the first contour set, namely P2, P3, P4 and P5. Corner point recognition is performed on the depth of field image 121 to obtain a first corner point set, in which, Figure 7 Each black × represents a corner point in the first corner point set. Since the correction mark 112 is a triangle, the target ranking is determined to be 3 plus one, that is, 4. Determine the distance between each corner point in the first corner point set and the center point of each target mark outline, and obtain the angle-center distance associated with the center point of each target mark outline; and use each target mark outline as a reference, sort the corner points in the first corner point set based on the angle-center distance associated with it, and obtain the corner point sorting result associated with the center point of each target mark outline, wherein the shorter the angle-center distance, the higher the ranking. Taking P2 as a reference, the top 4 corner points in the corner point sorting result include: A21, A22, A23 and A24; wherein A21, A22 and A23 are the corner points corresponding to the vertices of P2, therefore, the corner point sorting result corresponding to the vertex of the projection display area 111 should be the 4th, that is, A24. Taking P3 as a reference, the first four corner points in the corner point sorting result include: A31, A32, A33 and A34; among them, A31, A32 and A33 are the corner points corresponding to the vertices of P3, so the corner point sorting result corresponding to the vertices of the projection display area 111 should be the fourth, that is, A34. Similarly, taking P4 as a reference, the first four corner points in the corner point sorting result include: A41, A42, A43 and A44; among them, A41, A42 and A43 are the corner points corresponding to the vertices of P4, so the corner point sorting result corresponding to the vertices of the projection display area 111 should be the fourth, that is, A44. Taking P5 as a reference, the top five corner points in the corner point sorting result include: A51, A52, A53 and A54; among them, A51, A52 and A53 are the corner points corresponding to the vertices of P5, so the corner point sorting result corresponding to the vertices of the projection display area 111 should be the fourth, that is, A54. Thus, the target corner points corresponding to the vertices of the projection display area 111 are obtained, that is, A24, A34, A44 and A54.
[0114] In this embodiment, the projected projection content is switched to a preset calibration reference picture, and the calibration reference picture is provided with a calibration mark for calibration, so as to facilitate rapid and accurate positioning of the projection display area.
[0115] The present application embodiment provides an eye protection projection device, referring to Figure 8 , the device is applied to a projection device, and the device comprises:
[0116] The acquisition module 10 is configured to dynamically acquire a depth image collected by a time-of-flight TOF sensor, wherein the depth image includes a preset eye protection monitoring area and a projection display area where a projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area;
[0117] The monitoring module 20 is configured to monitor whether there is a target moving object in the eye protection monitoring area according to the depth of field image;
[0118] The brightness reduction module 30 is configured to reduce the image brightness of the projection display area when there is a target moving object in the eye protection monitoring area.
[0119] The eye protection projection device provided in the embodiment of the present application adopts the eye protection projection method in the above embodiment to realize the eye protection display of the projection device. Compared with the conventional technology, the beneficial effects of the eye protection projection device provided in the embodiment of the present application are the same as the beneficial effects of the eye protection projection method provided in the above embodiment, and the other technical features in the eye protection projection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0120] An embodiment of the present application provides a projection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the eye-protection projection method in the above-mentioned embodiment one.
[0121] Reference below Fig. 9 , respectively show the structural schematic diagrams of the projection device suitable for implementing the embodiments of the present application. The projection device in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The projection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0122] like Fig. 9As shown, the projection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the projection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the projection device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a projection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0123] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0124] The projection device provided in the embodiment of the present application adopts the eye protection projection method in the above embodiment to realize the eye protection display of the projection device. Compared with conventional technology, the beneficial effects of the projection device provided in the embodiment of the present application are the same as the beneficial effects of the eye protection projection method provided in the above embodiment, and other technical features in the projection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0125] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0126] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0127] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the eye-protection projection method in the above-mentioned embodiment.
[0128] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0129] The computer-readable storage medium may be included in the projection device; or may exist independently without being assembled into the projection device.
[0130] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the projection device, the projection device: dynamically obtains a depth of field image captured by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where the projection screen of the projection device is located, and the eye protection monitoring area surrounds the projection display area; based on the depth of field image, monitors whether there is a target moving object in the eye protection monitoring area; when there is a target moving object in the eye protection monitoring area, reduces the screen brightness of the projection display area.
[0131] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0134] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned eye-protection projection method, and can realize the eye-protection display of the projection device. Compared with conventional technologies, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the eye-protection projection method provided in the above-mentioned embodiment, and will not be repeated here.
[0135] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An eye protection projection method, characterized in that: The method includes: Dynamically acquire a depth of field image collected by a time-of-flight TOF sensor, wherein the depth of field image includes a preset eye protection monitoring area and a projection display area where a projection screen of a projection device is located, and the eye protection monitoring area surrounds the projection display area; Monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image; When there is a target moving object in the eye protection monitoring area, the picture brightness of the projection display area is reduced.
2. The method according to claim 1, characterized in that The step of reducing the image brightness of the projection display area comprises: Determine first object position information of the target moving object in the image coordinate system of the depth of field image; According to the first object position information, a target eye protection area in the projection display area is determined, and the image brightness of the target eye protection area is reduced.
3. The method according to claim 2, characterized in that The step of determining first object position information of the target moving object in the image coordinate system of the depth of field image comprises: Acquire the head contour of the target moving object, and determine the minimum circumscribed rectangle of the head contour; The position information of each vertex of the minimum circumscribed rectangle of the head outline in the image coordinate system is determined as the first object position information.
4. The method according to claim 2, characterized in that The step of determining the target eye protection area in the projection display area according to the first object position information comprises: Respectively acquiring first projection position information of the projection display area in the image coordinate system and second projection position information in a preset spatial coordinate system of the projection device; generating a perspective matrix according to the first projection position information and the second projection position information; Based on the perspective matrix, performing perspective transformation on the first object position information to obtain second object position information of the target moving object in the spatial coordinate system; The target eye protection area is determined according to the second projection position information and the second object position information.
5. The method according to claim 1, characterized in that The step of reducing the image brightness of the projection display area comprises: A black mask is generated in the projection display area to reduce the image brightness of the projection display area.
6. The method according to claim 1, characterized in that The step of monitoring whether there is a target moving object in the eye protection monitoring area according to the depth of field image comprises: Determine a display parameter difference value between eye protection monitoring areas of a plurality of continuously acquired depth of field images, and determine that a candidate moving object exists in the eye protection monitoring area when the display parameter difference value is greater than a preset difference threshold; Performing contour recognition on the candidate moving object to obtain a candidate contour; When the similarity between the candidate contour and the preset portrait contour is greater than a preset contour similarity threshold, the candidate moving object is determined to be the target moving object.
7. The method according to claim 6, characterized in that Before the step of determining the candidate moving object as the target moving object, the method further includes: Performing facial feature recognition on the candidate moving object; In the case where it is identified that the candidate moving object has facial features, a step of determining the candidate moving object as the target moving object is performed.
8. An eye protection projection device, characterized in that: The device comprises: An acquisition module is configured to dynamically acquire a depth image collected by a time-of-flight TOF sensor, wherein the depth image includes a preset eye protection monitoring area and a projection display area where a projection screen of a projection device is located, and the eye protection monitoring area surrounds the projection display area A monitoring module, configured to monitor whether there is a target moving object in the eye protection monitoring area according to the depth of field image; The brightness reduction module is configured to reduce the image brightness of the projection display area when there is a target moving object in the eye protection monitoring area.
9. A projection device, characterized in that: The projection device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the eye-protection projection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the eye-protection projection method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Projection method and apparatus, and projection device, storage medium and program product
WO2026223545A1
