Projection device control method and apparatus, storage medium, and projection device
Through the detection and recognition technology of the projection equipment, the target object can be accurately identified and the eye protection mode can be turned on when necessary, solving the problem of damage to the user's eyes caused by the projection light of the telephoto projection equipment and achieving timely protection.
Patent Information
- Application Number
- CN202211469534.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2042-11-22
AI Technical Summary
During the projection process of a telephoto projection device, the projection light may damage the user's eyes, especially when the user enters the projection area and cannot protect the user's eyes in time.
By obtaining the detection results of the projection device for the target area, the target object is identified and the eye protection mode is turned on when the target object is detected, including using a camera device to capture images, moving object detection, object recognition and perspective transformation matrix correction to ensure that the eye protection mode is accurately triggered.
Before the target object is about to enter the projection light range, the eye protection mode is turned on in time to protect the user's eyes from damage and avoid false triggering and unnecessary mode switching.
Smart Images

Figure CN115866221B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of projection technology, and in particular to a projection device control method, device, storage medium, and projection device. Background Art
[0002] Projection equipment, especially those with long focal lengths, requires sufficient distance from the projection area to produce a normal image. When a user enters the projection beam, the light can damage their eyes. Therefore, accurate and efficient eye protection during projection has become a key research priority. Summary of the Invention
[0003] The present disclosure discloses a projection device control method, device, storage medium and projection device, which can accurately activate the eye protection mode before the user enters the projection screen to protect the user's eyes from damage by the projection light.
[0004] In a first aspect, the present disclosure relates to a method for controlling a projection device, comprising:
[0005] Obtaining a first detection result of the projection device for a first target area, wherein the first target area includes an area in the target projection area excluding the projection screen;
[0006] When the first detection result indicates that the first target area includes the target object, the projection device is controlled to turn on the eye protection mode.
[0007] Optionally, obtaining a first detection result of the projection device for the first target area includes:
[0008] Acquire a first captured image of the target projection area, wherein the first captured image is obtained by capturing the target projection area when the projection device projects a projection image onto the target projection area;
[0009] determining a first target area in the first captured image;
[0010] Based on the first target area, a first detection result is determined.
[0011] Optionally, the method further comprises:
[0012] The first target area is adjusted according to projection parameters of the projection device relative to the target projection area to obtain an adjusted first target area.
[0013] Optionally, adjusting the first target area according to projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area includes:
[0014] determining a pixel offset value according to an image resolution of the first captured image, a size of the first target area, and a projection distance of the projection device;
[0015] determining an adjustment amplitude of the first target area according to the projection parameters and the pixel offset value;
[0016] The first target area is adjusted according to the adjustment amplitude to obtain an adjusted first target area.
[0017] Optionally, adjusting the first target area according to projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area includes:
[0018] Determining a perspective transformation matrix of the projection device under the projection parameters, wherein the perspective transformation matrix is used to correct an image projected by the projection device so that the corrected image appears as a rectangle in a target projection area;
[0019] The adjusted first target area is obtained according to the image coordinate information of the vertices of the first target area in combination with the perspective transformation matrix.
[0020] Optionally, determining a first detection result based on the first target area includes:
[0021] Performing moving object detection on a first image area corresponding to the first target area to obtain a foreground image including the moving object;
[0022] Performing object recognition on a second image region corresponding to the foreground image having a contour area greater than a preset area threshold to obtain an object recognition result;
[0023] In a case where the object recognition result indicates that the target object is included, it is determined that the first detection result indicates that the first target area includes the target object.
[0024] Optionally, the first target area includes a plurality of sub-areas distributed around the projection screen in the first captured image;
[0025] Performing moving object detection on a first image area corresponding to the first target area to obtain a foreground image including the moving object includes:
[0026] For the first image region corresponding to the multiple sub-regions, different motion detection models are respectively called to perform moving object detection on the first image region to obtain a corresponding foreground image.
[0027] Optionally, when the first detection result indicates that the first target area includes the target object, controlling the projection device to enable the eye protection mode includes:
[0028] In a case where the first detection result indicates that the first target area includes the target object, determining a movement direction of the target object;
[0029] When the motion direction indicates that the target object moves toward the projection screen, the projection device is controlled to turn on the eye protection mode.
[0030] Optionally, obtaining a first detection result of the projection device for the first target area includes:
[0031] Obtaining a detection signal output by a sensor module, wherein the sensor module is configured to detect whether an object exists in a first target area;
[0032] A first detection result is determined according to the detection signal.
[0033] Optionally, in the case where the sensing module is a radar or a time-of-flight sensor, the detection signal includes a detection signal received by the radar or the time-of-flight sensor;
[0034] Determining a first detection result according to the detection signal includes:
[0035] When the change amplitude of the detection signal is greater than a first preset threshold, determining that the first detection result indicates that the first target area includes the target object;
[0036] In the case where the sensing module is a camera device, the detection signal includes a target image of the first target area acquired by the camera device;
[0037] Determining a first detection result according to the detection signal includes:
[0038] When the change amplitude of the pixels of the target image is greater than the second preset threshold, it is determined that the first detection result indicates that the first target area includes the target object.
[0039] Optionally, the method further comprises:
[0040] When the projection device is in the eye protection mode, obtaining a second detection result of the projection device for an area in the target projection area that belongs to the projection screen;
[0041] When the second detection result indicates that the area belonging to the projection screen in the target projection area does not include the target object, the eye protection mode is exited.
[0042] Optionally, in the process of the projection device turning on the eye protection mode, obtaining a second detection result of the projection device for an area belonging to the projection screen in the target projection area includes:
[0043] In a case where the first detection result is obtained based on the first captured image, when the projection device turns on the eye protection mode, obtaining a second captured image of the target projection area;
[0044] When the projection device is in the eye protection mode, obtaining a third captured image of the target projection area;
[0045] When it is determined according to the second captured image and the third captured image that the target object is not located within the area of the projection screen, it is determined that the second detection result indicates that the area of the projection screen does not include the target object.
[0046] Optionally, in the process of the projection device turning on the eye protection mode, obtaining a second detection result of the projection device for an area belonging to the projection screen in the target projection area includes:
[0047] When the first detection result is obtained based on the detection signal output by the sensor module, when the projection device turns on the eye protection mode, obtaining a fourth captured image of the target projection area;
[0048] While the projection device is in eye protection mode, acquiring a fifth captured image of the target projection area;
[0049] When it is determined based on the fourth and fifth captured images that the target object is not within the area of the projection screen, and the value of the detection signal of the sensor module for the first target area is consistent with the initial signal value, the second detection result is determined to be that the second target area does not include the target object.
[0050] Optionally, the first target area includes an inner area and an outer area, wherein the inner area is an area close to the projection screen, and the outer area is an area far from the projection screen;
[0051] Obtaining a first detection result of the projection device for the first target area includes:
[0052] Obtaining a first sub-detection result of the projection device for the outer area;
[0053] When the first sub-detection result indicates that the outer area includes the target object, obtaining a second sub-detection result of the projection device for the inner area;
[0054] In a case where the second sub-detection result indicates that the inner area includes the target object, it is determined that the first detection result indicates that the first target area includes the target object.
[0055] Optionally, obtaining a first sub-detection result of the projection device for the outer area includes:
[0056] acquiring a sixth captured image of the target projection area;
[0057] detecting an outer image region belonging to an outer region in the sixth captured image using the first motion detection model to obtain a first sub-detection result;
[0058] Obtaining a second sub-detection result of the projection device for the inner area, including:
[0059] acquiring a seventh captured image of the target projection area;
[0060] The inner image region belonging to the inner region in the seventh captured image is detected by using the second motion detection model to obtain a second sub-detection result.
[0061] Optionally, the detection accuracy of the second motion detection model is greater than the detection accuracy of the first motion detection model.
[0062] In a second aspect, the present disclosure relates to a projection device control apparatus, comprising:
[0063] A first acquisition module is configured to acquire a first detection result of the projection device for a first target area, wherein the first target area includes an area in the target projection area excluding the projection screen;
[0064] The control module is configured to control the projection device to turn on the eye protection mode when the first detection result indicates that the first target area includes the target object.
[0065] In a third aspect, the present disclosure relates to a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when executed by a processor.
[0066] In a fourth aspect, the present disclosure relates to a projection device, comprising:
[0067] a memory having a computer program stored thereon;
[0068] A processor is used to execute the computer program in the memory to implement the steps of the method of the first aspect.
[0069] The present disclosure relates to a projection device control method, apparatus, storage medium, and projection device. The method controls the projection device to inspect a first target area, obtains a first detection result for the first target area, and, if the first detection result indicates that the first target area includes a target object, controls the projection device to activate an eye protection mode. This allows the projection device to activate the eye protection mode in a timely manner before the target object is about to enter a projection light projected by the projection device, thereby protecting the user's eyes from damage by the projection light. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 The figure is a flow chart showing a method for controlling a projection device according to an exemplary embodiment.
[0071] Figure 2 is a schematic diagram showing a first target area according to an exemplary embodiment.
[0072] Figure 3FIG. 4 is a flowchart of obtaining a first detection result according to an exemplary embodiment.
[0073] Figure 4 is a schematic diagram of a first target area according to another exemplary embodiment.
[0074] Figure 5 is a schematic diagram showing projection angles according to an exemplary embodiment.
[0075] Figure 6 The flowchart of obtaining the adjusted first target area is shown according to an exemplary embodiment.
[0076] Figure 7 is a schematic diagram showing an unadjusted first target area according to an exemplary embodiment.
[0077] Figure 8 is a schematic diagram showing an adjusted first target area according to an exemplary embodiment.
[0078] Figure 9 is a flowchart of obtaining an adjusted first target area according to another exemplary embodiment.
[0079] Figure 10 is a schematic diagram showing a first target area after adjustment by a perspective transformation matrix according to an exemplary embodiment.
[0080] Figure 11 yes Figure 3 Detailed flowchart of step 303 is shown.
[0081] Figure 12 FIG. 4 is a flowchart of obtaining a first detection result according to another exemplary embodiment.
[0082] Figure 13 is a flowchart of a method for controlling a projection device according to another exemplary embodiment.
[0083] Figure 14 FIG. 4 is a flowchart of obtaining a second detection result according to an exemplary embodiment.
[0084] Figure 15 FIG. 4 is a flowchart of obtaining a second detection result according to another exemplary embodiment.
[0085] Figure 16 is a schematic diagram showing a first target area according to an exemplary embodiment.
[0086] Figure 17 FIG. 4 is a flowchart of obtaining a first detection result according to another exemplary embodiment.
[0087] Figure 18The figure is a schematic diagram showing module connections of a projection device control apparatus according to an exemplary embodiment.
[0088] Figure 19 FIG. 1 is a schematic structural diagram of a projection device in one embodiment. DETAILED DESCRIPTION
[0089] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0090] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0091] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0092] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0093] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0094] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0095] Figure 1 FIG. 1 is a flow chart showing a method for controlling a projection device according to an exemplary embodiment. Figure 1As shown, the embodiment of the present disclosure provides a projection device control method, which can be executed by an electronic device, specifically by a projection device control method device, which can be implemented by software and / or hardware and configured in the projection device. Figure 1 As shown, the method may include the following steps.
[0096] In step 110 , a first detection result of the projection device for a first target area is obtained, wherein the first target area includes an area in the target projection area excluding the projection screen.
[0097] Here, the target projection area may refer to an area for displaying the projection picture projected by the projection device. For example, the target projection area may be a curtain, or a projection screen divided on a wall for carrying the projection picture, etc. It should be understood that the range of the target projection area is larger than the range of the projection picture. Among them, the projection picture in the embodiment of the present disclosure includes but is not limited to: the projection picture projected by the projection device under normal circumstances, the projection picture projected by the projection device after trapezoidal correction, the projection picture projected by the projection device after digital zoom, and the projection picture projected by the projection device after picture translation.
[0098] The first target area is an area in the target projection area excluding the projection screen, that is, the first target area refers to a non-projection screen area in the target projection area. Figure 2 is a schematic diagram showing a first target area according to an exemplary embodiment. Figure 2 As shown, the target projection area 201 includes a projection screen 202, a first sub-area 203, a second sub-area 204, a third sub-area 205 and a fourth sub-area 206, wherein the first sub-area 203, the second sub-area 204, the third sub-area 205 and the fourth sub-area 206 distributed around the projection screen 202 are the first target area. It should be understood that Figure 2 The first target area shown is only used for illustration. In actual application, the size and distribution position of the first target area can be set according to actual conditions.
[0099] The projection device may detect the first target area at set time intervals to obtain a first detection result of the first target area. For example, the projection device may detect the first target area at time intervals of 1 second, 3 seconds, and 5 seconds.
[0100] It is worth noting that, in the embodiment of the present disclosure, the projection device can use different technical means to detect the first target area.
[0101] As some examples, the projection device may detect the first target area through an infrared detection device.
[0102] As some further examples, the projection device may detect the first target area through a Time Of Flight (TOF) sensor.
[0103] As some other examples, the projection device may detect the first target area through a camera device.
[0104] It is worth noting that the aforementioned infrared detection device, time-of-flight sensor, and camera device can all be installed on the projection device. Of course, the aforementioned infrared detection device, time-of-flight sensor, and camera device can also be installed outside the projection device. For example, when the projection device is projecting within a room, the infrared detection device, time-of-flight sensor, and camera device installed within the room can obtain a first detection result of the first target area, and the projection device can obtain the first detection result of the infrared detection device, time-of-flight sensor, and camera device via a communication connection.
[0105] In step 120 , when the first detection result indicates that the first target area includes the target object, the projection device is controlled to turn on the eye protection mode.
[0106] Here, the first detection result includes whether the first target area includes the target object or the first target area does not include the target object. The target object may be a human body. Of course, the target object may also be other objects that need to be protected, such as cats, dogs, etc.
[0107] It should be understood that when the first detection result indicates that the first target area includes a target object, it means that the target object is about to or has entered the area where the projection screen is located. At this time, the projected light of the projection device may cause damage to the target object, and the projection device turns on the eye protection mode.
[0108] The eye protection mode of the projection device refers to the projection device performing a projection action to protect the target object. The projection action may include turning off the projection, projecting a dark image (such as a black image), adjusting the position of the projected image to move it away from the target object, and so on.
[0109] When the first detection result indicates that the first target region does not include the target object, the operation performed by the projection device can be to maintain the eye protection mode or to normally project, which needs to be determined in combination with the action at the previous moment and the real-time position of the target object. For example, at the time of 10:36:30, the first detection result indicates that the first target region includes the target object, and the projection device starts the eye protection mode. At the time of 10:36:33, the first detection result indicates that the first target region does not include the target object, and the target object is not in the region of the projection picture, and then the projection device closes the eye protection mode. If at the time of 10:36:33, the first detection result indicates that the first target region does not include the target object, and the target object is in the region of the projection picture, then the projection device continues to start the eye protection mode.
[0110] Therefore, by controlling the projection device to check the first target region, obtaining the first detection result for the first target region, and in the case that the first detection result indicates that the first target region includes the target object, controlling the projection device to start the eye protection mode, the projection device can start the eye protection mode in time before the target object enters the projection light projected by the projection device, so as to protect the eyes of the user from being damaged by the projection light.
[0111] Figure 3 is a flowchart for obtaining the first detection result according to an example embodiment. As shown in Figure 3 In some implementable embodiments, the first detection result can be obtained by the following steps.
[0112] In step 301, a first captured image of a target projection region is obtained, wherein the first captured image is obtained by capturing the target projection region when the projection device projects a projection picture to the target projection region.
[0113] Here, when the projection device projects a projection picture to the target projection region, the projection device can capture the target projection region through the camera to obtain the first captured image. As some examples, the projection device can capture the target projection region through the camera to obtain a video stream, and then decompose the video stream into video frames, each video frame being the first captured image. As other examples, the projection device can control the camera to capture the target projection region once at a preset time interval, and the obtained image is the first captured image.
[0114] It is worth noting that in the embodiments of the present disclosure, the resolution and frame rate of the camera are not limited, and can be selected according to actual conditions. For example, the camera can use a 2k camera, and then obtain the first captured image in a manner of four times down-sampling to a resolution of 480*270, or directly use a low-resolution camera to capture the target projection region to obtain the first captured image.
[0115] In step 302 , a first target area is determined in a first captured image.
[0116] Here, after the first photographed image is obtained, a first target area is determined in the first photographed image.
[0117] As some examples, the boundary line of the projection screen can be determined in the first captured image, and then a mark frame of a preset size is used to define the first target area in the first captured image, with one side of the mark frame being tangent to the boundary line of the projection screen as a restriction condition. Figure 2 As shown, the first sub-region 203 , the second sub-region 204 , the third sub-region 205 and the fourth sub-region 206 may be first target regions determined in the first captured image.
[0118] As some other examples, the first target area may be determined at a preset position of the first captured image using a marking frame of a preset size. Figure 4 FIG. 1 is a schematic diagram of a first target area according to another exemplary embodiment. Figure 4 As shown, at the first position (top), second position (right), third position (bottom), and fourth position (left) of first captured image 401, corresponding marker boxes of preset sizes are used to identify a first sub-target area 403, a second sub-target area 404, a third sub-target area 405, and a fourth sub-target area 406, respectively, in first captured image 401. First sub-target area 403, second sub-target area 404, third sub-target area 405, and fourth sub-target area 406 are all first target areas. It should be understood that regardless of how the projection position or projection angle of the projection device changes, the first target area identified in first captured image 401 is always at the preset position and size within the first captured image. In first captured image 401, the boundary of the first target area does not necessarily tangent to or coincide with the boundary of projection screen 402.
[0119] In step 303 , a first detection result is determined based on the first target area.
[0120] Here, after determining the first target area in the first captured image, the image belonging to the first target area in the first captured image can be detected based on an image detection algorithm to determine whether there is a target object in the first target area, thereby obtaining a first detection result.
[0121] Thus, by determining the first detection result for the first target area based on the first captured image, the camera device can be kept constantly on, allowing for uninterrupted detection of the target object, while maintaining a low cost. Furthermore, compared to infrared detection devices, the camera device is not affected by the temperature increase of the projection device, thus providing higher accuracy.
[0122] In some feasible implementations, after step 302 , the first target area may be adjusted according to projection parameters of the projection device relative to the target projection area to obtain an adjusted first target area.
[0123] Here, when the first target area is determined at a preset position in the first captured image with a marking frame of a preset size, and the projection picture projected by the projection device is trapezoidally corrected, the first target area can be adjusted according to the projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area.
[0124] The projection parameters of the projection device relative to the target projection area may include the projection angle of the projection light projected by the projection device relative to the target projection area. The projection angle is related to the posture of the projection device when projecting the projection image onto the target projection area and / or the posture of the target projection area. It is worth noting that when the camera device and the optical engine are located close to each other on the projection device and the rays of the camera device and the optical engine are parallel, the projection parameters are only related to the projection angle.
[0125] Figure 5 FIG is a schematic diagram showing a projection angle according to an exemplary embodiment. Figure 5 As shown, the first projection light 501 is a projection light projected by the projection device in a normal projection state onto the target projection area 502, and the projection angle can be 90°. The second projection light 503 is a projection light projected by the projection device 45° to the right onto the target projection area 502, and the projection angle is 45°. The third projection light 504 is a projection light projected by the projection device 45° to the left onto the target projection area, and the projection angle is -45°. Of course, the projection angle can also be represented by taking the projection angle of the projection light projected onto the target projection area 502 in the normal projection state as 0 as a reference, then the projection angle of the first projection light 501 is 0, the projection angle of the second projection light 503 is 45, and the projection angle of the third projection angle 504 is -45. Regardless of the data representation method used, it does not affect the essence of the embodiments of the present disclosure.
[0126] It is worth noting that when the projection device is not projecting a projection image onto the target projection area in a normal projection state, and / or when the projection image projected by the projection device is a projection image that has undergone trapezoidal correction, if the first target area is determined by a marker frame of a preset size at a preset position in the first captured image, the error in the first target area will be large. In this case, the first target area can be adjusted based on the projection parameters to obtain an adjusted first target area. The boundary of the adjusted first target area can be close to the boundary line of the projection image.
[0127] Therefore, by adjusting the first target area based on the projection parameters to obtain the adjusted first target area, the first target area determined in the first captured image can be made more accurate, so that the eye protection mode can be accurately triggered, and the eye protection mode will not be mistakenly triggered when the target object is far from entering the first target area.
[0128] Figure 6 FIG. 1 is a flow chart showing a method for obtaining an adjusted first target area according to an exemplary embodiment. Figure 6 As shown, in some feasible implementations, the adjusted first target area can be obtained through the following steps.
[0129] In step 601 , a pixel offset value is determined according to the image resolution of the first captured image, the size of the first target area, and the projection distance of the projection device.
[0130] Here, the image resolution of the first captured image depends on the resolution of the imaging device. The size of the first target area is fixed and depends on the settings during actual application. The projection distance of the projection device refers to the vertical distance between the projection device and the target projection area. This projection distance can be obtained using a time-of-flight sensor or a binocular ranging method, and is not specifically limited in this disclosed embodiment.
[0131] The pixel offset value can be obtained based on a first calculation formula, which is:
[0132]
[0133] in, is the pixel offset value, H is the image resolution, F is the size of the first target area, L is the projection distance, and a, b, and c are the corresponding weights. It is worth noting that the values of a, b, and c can be calibrated according to the model of the projection device. That is, different models of projection devices can have different values of a, b, and c, and they should be set according to actual conditions.
[0134] It should be understood that the pixel offset value actually represents the reference pixel size that the boundary of the first target area needs to shrink or expand under the current image resolution, current projection distance and current size of the first target area.
[0135] In step 602, an adjustment amplitude of the first target area is determined according to the projection parameters and the pixel offset value.
[0136] Here, the adjustment amplitude can be determined based on the product of the projection parameter and the pixel offset value. The adjustment amplitude varies depending on the projection angle. Furthermore, the adjustment amplitude can be a value with a direction, where the direction is determined by the projection angle. This direction determines the adjustment direction of the first target area and the sub-area within the first target area that needs to be adjusted.
[0137] In step 603, the first target area is adjusted according to the adjustment amplitude to obtain an adjusted first target area.
[0138] Here, after the adjustment amplitude is determined, the first target area is adjusted according to the adjustment amplitude to obtain the adjusted first target area.
[0139] like Figure 5 As shown, the projection parameter corresponding to the first projection light 501 is 0, the adjustment amplitude is 0, and the first target area does not need to be adjusted. When the projection angle of the second projection light 503 is 45, the adjustment amplitude is , the four vertices of the first sub-target area on the left side of the first captured image move to the right pixel values, the upper left vertex and the lower left vertex of the second sub-target area located on the upper side of the first captured image and the third sub-target area located on the lower side of the first captured image are both moved to the right pixel values, thereby obtaining the adjusted first target area.
[0140] When the projection angle of the third projection angle 504 is -45, the adjustment amplitude is , the four vertices of the first sub-target area located on the right side of the first captured image move leftward pixel values, the upper right vertex and the lower right vertex of the second sub-target area located on the upper side of the first captured image and the third sub-target area located on the lower side of the first captured image are both moved to the left pixel values, thereby obtaining the adjusted first target area.
[0141] Figure 7 FIG. 1 is a schematic diagram showing an unadjusted first target area according to an exemplary embodiment. Figure 7 As shown, when the projection device projects a projection image to the target projection area in a left oblique projection state, the first captured image 701 is obtained as shown in FIG. Figure 7As shown, the first target area determined in the first captured image 701 includes a first sub-target area 702, a second sub-target area 703, a third sub-target area 704 and a fourth sub-target area 705. Figure 7 As shown, in the left oblique projection state, the first sub-target area 702, the second sub-target area 703, the third sub-target area 704 and the fourth sub-target area 705 are not close to the projection screen 706, so the first target area needs to be adjusted.
[0142] Figure 8 FIG is a schematic diagram showing the adjusted first target area according to an exemplary embodiment. Figure 8 As shown in the figure, when the projection device projects the projection image to the target projection area in a left oblique projection state, the adjustment amplitude is , the four vertices of the second sub-target area 803 located on the right side of the first captured image 801 move leftward pixel values, the upper right vertex and the lower right vertex of the first sub-target area 802 located on the upper side of the first captured image 801 and the third sub-target area 804 located on the lower side of the first captured image 801 are both moved to the left. pixel values, and the fourth sub-target area 805 is kept unchanged, thereby obtaining the adjusted first target area. Figure 8 As shown, the adjusted first target area can be closely aligned with the projection screen 806 .
[0143] Therefore, the adjustment amplitude is determined by the image resolution, the size of the first target area, the projection distance and the projection parameters, and the first target area can be adjusted according to the current projection posture of the projection device so that the adjusted first target area can conform to the current projection posture, thereby providing accurate data support for the accurate opening and closing of the eye protection mode.
[0144] Figure 9 FIG. 1 is a flow chart showing a method for obtaining an adjusted first target area according to another exemplary embodiment. Figure 9 As shown, in some feasible implementations, the adjusted first target area can be obtained through the following steps.
[0145] In step 901, a perspective transformation matrix of the projection device under projection parameters is determined, wherein the perspective transformation matrix is used to correct an image projected by the projection device so that the corrected image appears as a rectangle in a target projection area.
[0146] Here, the perspective transformation matrix (also called homography matrix) reflects the position change of the pixel projection in the modulation plane in the target projection area.
[0147] The modulation plane refers to the plane where the projection device's light modulator (chip) generates images. Chips corresponding to the modulation plane include reflective image modulation chips or transmissive image modulation chips. Reflective image modulation chips include DMD chips (Digital Micromirror Devices) or LCOS chips (Liquid Crystal on Silicon), while transmissive image modulation chips include LCD chips (Liquid Crystal Displays).
[0148] The perspective transformation matrix is a parameter used to correct the projected image. After correction using this perspective transformation matrix, the projection image projected onto the target projection area appears rectangular. For example, the perspective transformation matrix can be obtained based on the positional information of each vertex of the projection image projected onto the target projection area and the coordinate information of the corner points of the projection image on the modulation plane.
[0149] It is worth noting that the position information of each vertex of the projection image in the target projection area can be obtained using a time-of-flight sensor or a camera device. Then, based on the position information of each vertex of the projection image and the coordinate information of the corner points of the projected image in the modulation plane, a perspective transformation matrix can be constructed. It should be understood that obtaining the position information of each vertex of the projection image in the target projection area using a time-of-flight sensor or a camera device is a prior art and will not be described in detail here.
[0150] In step 902, the adjusted first target area is obtained according to the image coordinate information of the vertices of the first target area in combination with the perspective transformation matrix.
[0151] Here, the image coordinate information of the vertices of the first target area refers to the coordinates of the vertices of the first target area in the image coordinate system of the first captured image. The image coordinate system is a two-dimensional coordinate system constructed with a point in the first captured image as a coordinate origin.
[0152] Exemplarily, since the first target area is at a preset position in the first captured image and has a fixed size, the image coordinate information of the vertices of the first target area can be determined based on the preset position and the size of the first target area.
[0153] After obtaining the image coordinate information of the vertices of the first target area, the image coordinate information of the vertices of the first target area is multiplied by the perspective transformation matrix to obtain the adjusted first target area.
[0154] It's worth noting that since the projection image in the first captured image is corrected using a perspective transformation matrix, and the unadjusted first target area is set based on the projection image in an orthographic projection state, if the first target area is not adjusted, it will result in significant offset. Therefore, by adjusting the first target area using a perspective transformation matrix, the adjusted first target area can deform in accordance with the deformation of the projection image, resulting in a more accurate first target area.
[0155] Figure 10 FIG is a schematic diagram showing the first target area after the perspective transformation matrix is adjusted according to an exemplary embodiment. Figure 10 As shown, in the first captured image 1000, the first sub-target area 1001, the second sub-target area 1002, the third sub-target area 1003, and the fourth sub-target area 1004 after perspective transformation are as shown in FIG. Figure 10 As shown, the first sub-target area 1001 , the second sub-target area 1002 , the third sub-target area 1003 , and the fourth sub-target area 1004 are transformed according to the projection image 1006 .
[0156] It should be understood that in the above embodiment, the perspective transformation matrix is used to adjust the first target area only when the projection image projected by the projection device has been corrected by the perspective transformation matrix. If the projection image projected by the projection device has not been corrected by the perspective transformation matrix, the perspective transformation matrix is not used to adjust the first target area.
[0157] Therefore, by adjusting the first target area through the perspective transformation matrix, the adjusted first target area can be made to conform to the current projection posture, thereby providing accurate data support for the accurate opening and closing of the eye protection mode.
[0158] Figure 11 yes Figure 3 Detailed flow chart of step 303 is shown in FIG. Figure 11 As shown, in some feasible implementations, in step 303, determining the first detection result based on the first target area may include the following steps.
[0159] In step 3031, moving object detection is performed on the first image area corresponding to the first target area to obtain a foreground image including the moving object.
[0160] Here, for the first target area in the first captured image, moving object detection may be performed on the first image area corresponding to the first target area to obtain a foreground image including the moving object.
[0161] The moving object detection is actually to separate the foreground image and the background image in the first captured image. In some embodiments, the moving object detection can be performed based on a mixed Gaussian background model or an optical flow detection algorithm.
[0162] Exemplarily, the first target area includes a plurality of sub-areas distributed around the projection screen in the first captured image. Figure 4 As shown, the first target area may include a first sub-target area 403 , a second sub-target area 404 , a third sub-target area 405 and a fourth sub-target area 406 distributed around the first captured image.
[0163] For the first image region corresponding to the multiple sub-regions, different motion detection models may be respectively called to perform moving object detection on the first image region to obtain a corresponding foreground image.
[0164] For each sub-region, the motion detection model used is different. For example, the first sub-target region 403 uses the first motion detection model, the second sub-target region 404 uses the second motion detection model, the third sub-target region 405 uses the third motion detection model, and the fourth sub-target region 406 uses the fourth motion detection model.
[0165] It is worth noting that using a different motion detection model for each sub-region can avoid interference of images of different sub-regions on the motion detection model, thereby obtaining an accurate foreground image.
[0166] Exemplarily, the motion detection model may be a mixed Gaussian background model.
[0167] In step 3032, object recognition is performed on the second image region corresponding to the foreground image having a contour area greater than a preset area threshold to obtain an object recognition result.
[0168] Here, after obtaining a foreground image including a moving object, a foreground image having a contour area greater than a preset area threshold may be selected from the plurality of foreground images based on the contour area of the moving object in the foreground image. Object recognition is then performed on the second image region corresponding to the selected foreground image to obtain an object recognition result.
[0169] The second image region refers to the image region where the foreground image is mapped into the first captured image. Since the foreground image is essentially a contour and lacks specific image details, object recognition can be performed on the second image region. Object recognition is essentially the classification of moving objects in the second image region to determine whether the moving objects are the target object. Specifically, object recognition can be performed on the second image region using a trained neural network model to determine the category of the moving objects contained in the second image region.
[0170] It should be understood that a foreground image with a contour area greater than a preset area threshold indicates that the foreground image may contain a large moving object, and a large moving object is more likely to be the target object. Therefore, by screening foreground images with contour areas greater than the preset area threshold, the number of foreground images required for object recognition can be reduced, thereby reducing the computational effort. The preset area threshold can be a minimum area determined based on the size of the target object in different states.
[0171] In step 3033 , when the object recognition result indicates that the target object is included, it is determined that the first detection result indicates that the first target area includes the target object.
[0172] Here, the object recognition result may include the category of the moving object included in the foreground image. When the category of the moving object is the category corresponding to the target object, it is determined that the object recognition result representation includes the target object. When the category of the moving object is not the category corresponding to the target object, it is determined that the object recognition result representation does not include the target object.
[0173] When the object recognition result indicates that the first target area includes the target object, it is correspondingly determined that the first detection result indicates that the first target area includes the target object.
[0174] Therefore, through motion detection and object recognition, it is possible to accurately identify whether the first target area includes a target object, thereby providing data support for the projection device to accurately turn on the eye protection mode.
[0175] Figure 12 FIG. 1 is a flow chart showing a method of obtaining a first detection result according to another exemplary embodiment. Figure 12 As shown, in some feasible implementations, the first detection result can be obtained through the following steps.
[0176] In step 1101, a detection signal output by a sensor module is acquired, wherein the sensor module is configured to detect whether there is an object in the first target area.
[0177] Here, the sensor module can be set on the projection device, and the external parameters of the sensor module and the external parameters of the optical machine of the projection device are calibrated so that the sensor module can detect the first target area to determine whether there is a target object in the first target area. Figure 2 As shown, the detection area of the sensor module includes a first sub-area 203 , a second sub-area 204 , a third sub-area 205 and a fourth sub-area 206 .
[0178] The output port of the sensor module can be connected to the input port of the controller of the projection device, so as to obtain the detection signal output by the sensor module.
[0179] Exemplarily, the sensing module may include one of a radar, a time-of-flight sensor, and a camera device.
[0180] In step 1102, the first detection result is determined according to the detection signal.
[0181] Here, after obtaining the detection signal output by the sensor, the first detection result may be determined according to the detection signal.
[0182] In some embodiments, when the sensing module is a radar or a time-of-flight sensor, the detection signal includes a detection signal received by the radar or the time-of-flight sensor. When the change amplitude of the detection signal is greater than a first preset threshold, it is determined that the first detection result represents that the first target area includes a target object.
[0183] Among them, the initial detection signal of the radar or time-of-flight sensor for the first target area can be recorded. The initial detection signal is a detection signal collected when the projection device projects a projection image to the target projection area and the first target area does not include a moving object.
[0184] When a change amplitude of the detection signal currently collected by the radar or the time-of-flight sensor relative to the initial detection signal is greater than a first preset threshold, it is determined that the first detection result indicates that the first target area includes the target object.
[0185] It should be understood that if the change amplitude is greater than the first preset threshold, it means that the reading of the radar or time of flight sensor has jumped dramatically, indicating that the moving object has entered the first target area, and the projection device turns on the eye protection mode.
[0186] In some embodiments, when the sensing module is a camera device, the detection signal includes a target image of the first target area acquired by the camera device. When the change amplitude of the pixels of the target image is greater than a second preset threshold, it is determined that the first detection result indicates that the first target area includes a target object.
[0187] Among them, the initial image of the first target area obtained by the camera device can be recorded. The initial image is an image obtained by shooting the first target area when the projection device projects a projection picture onto the target projection area and the first target area does not include a moving object.
[0188] When a change in the pixels of the target image currently captured by the camera device relative to the initial image is greater than a second preset threshold, it is determined that the first detection result indicates that the first target area includes the target object.
[0189] It should be understood that if the change amplitude is greater than the second preset threshold, it means that the distance of the pixels of the target image has changed, indicating that the moving object has entered the first target area, and the projection device turns on the eye protection mode.
[0190] Thus, the first target area is detected by the sensor module to determine the first detection result, which can accurately trigger the projection device to turn on the eye protection mode. Moreover, since no shooting is required, the user's privacy can also be protected.
[0191] Figure 13 FIG. 1 is a flow chart showing a method for controlling a projection device according to another exemplary embodiment. Figure 13 As shown, in some feasible implementations, the projection device control method may include the following steps.
[0192] In step 1201, when the projection device turns on the eye protection mode, a second detection result of the projection device for the area belonging to the projection screen in the target projection area is obtained.
[0193] Here, when the projection device turns on the eye protection mode, the projection device can continue to detect the area belonging to the projection screen in the target projection area to obtain a second detection result.
[0194] It should be understood that the method for the projection device to detect the area belonging to the projection screen in the target projection area can be based on the method provided in the above embodiment to obtain the first detection result through the camera device or the sensor module, which will not be repeated here.
[0195] In step 1202 , when the second detection result indicates that the area in the target projection area belonging to the projection screen does not include the target object, the eye protection mode is exited.
[0196] Here, the second detection result indicates that the area belonging to the projection screen in the target projection area does not include the target object, indicating that the target object has not entered the area of the projection screen or the target object has left the area of the projection screen, then the projection device exits the eye protection mode and resumes normal projection.
[0197] Of course, the eye protection mode can also be exited if the second detection result indicates that the area of the projected image in the target projection area does not include the target object, and the interval is preset for a period of time. For example, after detecting that the area of the projected image in the target projection area does not include the target object, the projection device exits the eye protection mode and resumes normal projection after an interval of 1 second.
[0198] In some embodiments, when the second detection result indicates that the area in the target projection area belonging to the projection screen includes the target object, the eye protection mode is maintained on.
[0199] Of course, as some examples, a second target area can be obtained and set, where the second target area includes the first target area and the area where the projection image is located. When the projection device turns on the eye protection mode, a second detection result of the projection device for the second target area is obtained. If the second detection result indicates that the second target area does not include the target object, the eye protection mode is exited and normal projection is resumed.
[0200] It is worth noting that when there is a target object in the first target area of the projection device, the eye protection mode is turned on. After the eye protection mode is turned on, the projection device continues to detect the second target area. If the second target area does not include the target object, it means that the target object is neither in the first target area nor in the area of the projection screen, and the eye protection mode can be turned off.
[0201] Therefore, by exiting the eye protection mode when the area belonging to the projection screen in the target projection area does not include the target object, the eye protection mode can be accurately turned off when the user leaves the area of the projection screen and normal projection can be restored.
[0202] In some possible implementations, step 120 may include:
[0203] In a case where the first detection result indicates that the first target area includes the target object, determining a movement direction of the target object;
[0204] When the motion direction indicates that the target object moves toward the projection screen, the projection device is controlled to turn on the eye protection mode.
[0205] Here, after determining that the first target area includes the target object, the moving direction of the target object may be further determined.
[0206] As some examples, a video stream of the target projection area may be acquired, a target object may be determined based on the video stream, and optical flow tracking may be performed on the target object to obtain a moving direction of the target object.
[0207] The first captured image may be the first frame of a video stream. Specifically, a video stream of the target projection area may be acquired, and then the first captured image may be obtained from the video stream. The first target area may be determined based on the first captured image, and a first detection result may be determined based on the first target area. Then, if it is determined that the first detection result indicates that the first target area includes a target object, the target object may be determined based on the video stream, and optical flow tracking may be performed on the target object to determine the target object's direction of motion.
[0208] It is worth noting that after determining that the first target area does not include the target object according to the first captured image, obtaining the video stream of the target projection area may be stopped.
[0209] As other examples, when the first detection result characterizes that the first target area includes a target object, multiple frames of captured images of the target projection area are obtained, the image position of the target object on the captured images is determined based on the multiple captured images, and the movement method of the target object is determined based on the image position of the target object on the multiple frames of captured images.
[0210] The direction of motion represents that the target object moves toward the projection screen, indicating that the target object is moving toward the area where the projection screen is located or is about to enter the area where the projection screen is located, and the projection device can be controlled to turn on the eye protection mode.
[0211] When the direction of movement of the target object indicates that the target object is not moving toward the projection screen, the projection device can project normally without turning on the eye protection mode. It should be understood that when the direction of movement of the target object indicates that the target object is not moving toward the projection screen, it actually means that the target object has no intention of entering the area where the projection screen is located, and the eye protection mode may not be turned on at this time. For example, when the target object enters the first target area, and the direction of movement of the target object indicates that it is moving in a direction away from the projection screen, it means that the target object will not enter the area where the projection screen is located, and the eye protection mode is not turned on.
[0212] Therefore, by tracking the movement direction of the target object, when the target object enters the first target area and the movement direction of the target object indicates that the target object is moving toward the projection screen, the eye protection mode is turned on, thereby avoiding the projection device from accidentally triggering the eye protection mode.
[0213] Figure 14 FIG. 1 is a flow chart showing a method for obtaining a second detection result according to an exemplary embodiment. Figure 14 As shown, in some possible implementations, when the first detection result is obtained based on the first captured image, step 1201 may include the following steps:
[0214] In step 1301, when the projection device turns on the eye protection mode, a second captured image of the target projection area is obtained.
[0215] Here, while the projection device is in eye protection mode, the projection device obtains a second captured image of the target projection area through the camera device. For example, when the projection device is in eye protection mode and projects a dark field image onto the target projection area, the projection device projects the dark field image onto the target projection area and captures the target projection area through the camera device to obtain the second captured image.
[0216] The method for acquiring the second captured image is the same as that for acquiring the first captured image, and will not be described in detail here.
[0217] It should be understood that the second captured image is actually an image captured when the target object enters the first target area and the projection device turns on the eye protection mode. The second captured image can be used as a reference image.
[0218] In step 1302, while the projection device is in the eye protection mode, a third captured image of the target projection area is acquired.
[0219] Here, when the projection device turns on the eye protection mode, the projection device can shoot the target projection area continuously or at intervals of a preset time to obtain a third shot image.
[0220] The method for acquiring the third captured image is the same as the method for acquiring the second captured image, and will not be described in detail here. In step 1303, when it is determined based on the second captured image and the third captured image that the target object is not located within the area of the projection image, it is determined that the second detection result indicates that the area of the projection image does not include the target object.
[0221] Here, whether the target object is located within the projection screen area can be determined by comparing pixels within the projection screen area in the second captured image and the third captured image. For example, when the pixels within the projection screen area in the second captured image and the third captured image are consistent, it is determined that the target object is not located within the projection screen area, and it is determined that the second detection result indicates that the projection screen area does not include the target object, and the projection device is controlled to exit the eye protection mode and resume normal projection.
[0222] When the pixels in the area belonging to the projection screen in the second captured image and the third captured image are inconsistent, it means that the target object is located in the area of the projection screen, and the projection device maintains the eye protection mode.
[0223] It's worth noting that the second captured image is used to determine if the target object has not entered the projection area when eye protection mode is enabled, while the third captured image is used to determine if the target object has entered the projection area while eye protection mode is enabled. By comparing the second and third captured images, it's possible to determine if the target object is still within the projection area based on the pixel changes.
[0224] Therefore, through the second captured image and the third captured image, it is possible to accurately determine whether the target object is within the area of the projection screen, thereby accurately determining the timing of exiting the eye protection mode.
[0225] Figure 15 FIG. 1 is a flow chart showing a method of obtaining a second detection result according to another exemplary embodiment. Figure 15As shown, in some feasible implementations, when the first detection result is obtained according to the detection signal output by the sensor module, step 1201 may include the following steps:
[0226] In step 1401, when the projection device turns on the eye protection mode, a fourth captured image of the target projection area is obtained.
[0227] Here, how to obtain the first detection result based on the detection signal of the sensor module has been described in detail in the above embodiment and will not be repeated here. When the first detection result determined based on the detection signal output by the sensor module triggers the activation of the eye protection mode, the projection device can obtain a fourth captured image of the target projection area through the camera device.
[0228] The method for acquiring the fourth captured image is consistent with the method for acquiring the first captured image in the above embodiment, and will not be described in detail here.
[0229] It should be understood that the fourth captured image is actually an image captured when the target object enters the first target area and the projection device turns on the eye protection mode, and the second captured image can be used as a reference image.
[0230] In step 1402, while the projection device is in the eye protection mode, a fifth captured image of the target projection area is acquired.
[0231] Here, when the projection device turns on the eye protection mode, the projection device can shoot the target projection area continuously or at intervals of a preset time to obtain a fifth shot image.
[0232] The method for acquiring the fifth captured image is the same as the method for acquiring the fourth captured image, and will not be described in detail here.
[0233] In step 1403, when it is determined based on the fourth captured image and the fifth captured image that the target object is not located within the area of the projection screen, and the value of the detection signal of the sensor module for the first target area is consistent with the initial signal value, the second detection result is determined to be that the second target area does not include the target object.
[0234] Here, whether the target object is located within the projection screen area can be determined by comparing pixels within the projection screen area in the fourth and fifth captured images. For example, when the pixels within the projection screen area in the fourth and fifth captured images are consistent, it is determined that the target object is not located within the projection screen area.
[0235] The initial signal value refers to the value corresponding to the initial detection signal, which is collected when the projection device projects an image onto the target projection area and the first target area does not contain a moving object. If the value of the sensor module's detection signal for the first target area is consistent with the initial signal value, it indicates that the first target area does not contain a target object.
[0236] When the target object is not located in the area of the projection screen and the value of the current detection signal of the sensor module for the first target area is consistent with the initial signal value, it means that the target object is neither located in the area of the projection screen nor in the first target area, which is equivalent to the second target area not including the target object. It can be determined that the second detection result represents that the area of the projection screen does not include the target object. At this time, the projection device is controlled to exit the eye protection mode and resume normal projection.
[0237] When the pixels in the area belonging to the projection screen in the fourth captured image and the fifth captured image are inconsistent, it means that the target object is located in the area of the projection screen, and the projection device maintains the eye protection mode.
[0238] Alternatively, when the value of the detection signal of the sensor module for the first target area is inconsistent with the initial signal value, it indicates that the target object is located in the first target area, and the projection device can maintain the eye protection mode to prevent the target object from entering the projection screen area again.
[0239] Thus, by comparing the fourth captured image with the fifth captured image, and comparing the value of the detection signal of the sensor module with the value of the initial signal, it is possible to accurately determine whether the target object is within the area of the projected image, thereby accurately determining the timing of exiting the eye protection mode. Furthermore, by using the sensor module in the method of triggering the eye protection mode, and then using the camera device and the sensor module in the method of exiting the eye protection mode, it is possible to ensure that the camera device is not in a normally open state, thereby preventing the user's image information from being excessively collected, thereby protecting the user's privacy.
[0240] In some feasible implementations, the first target area includes an inner area and an outer area, wherein the inner area is an area close to the projection screen, and the outer area is an area far from the projection screen.
[0241] For example, the inner region and the outer region may be obtained by dividing the first target region according to a preset ratio, for example, by equally dividing the first target region to obtain the inner region and the outer region.
[0242] Figure 16 FIG. 1 is a schematic diagram showing a first target area according to an exemplary embodiment. Figure 16As shown, the first target area (not marked in the figure) in the target projection area 1501 includes an inner area 1504 and an outer area 1503 , wherein the inner area 1504 is close to the projection screen 1502 and the outer area 1503 is far away from the projection screen 1502 .
[0243] Figure 17 FIG. 1 is a flow chart of obtaining a first detection result according to another exemplary embodiment. Figure 17 As shown, the first detection result can be obtained by following the steps:
[0244] In step 1601, a first sub-detection result of the projection device for the outer area is obtained.
[0245] Here, the projection device's first sub-detection result for the outer area can be obtained using the camera device or sensor module of the above-described embodiment. Taking the camera device as an example, the projection device controls the camera device to capture a sixth image of the target projection area, and then determines the first sub-detection result corresponding to the outer area based on the sixth image.
[0246] It should be understood that the principle of determining the first sub-detection result corresponding to the outer area based on the sixth captured image is consistent with the principle of determining the first detection result based on the first captured image, and will not be repeated here.
[0247] In step 1602 , when the first sub-detection result indicates that the outer area includes the target object, a second sub-detection result of the projection device for the inner area is obtained.
[0248] Here, when the first sub-detection result indicates that the outer area includes the target object, it means that the target object has entered the outer area. At this time, the projection device is triggered to detect the inner area, and the second sub-detection result of the projection device for the inner area is obtained.
[0249] Taking the seventh captured image as an example, when the first sub-detection result corresponding to the outer area is determined based on the sixth captured image to indicate that the outer area includes the target object, the seventh captured image corresponding to the target projection area is obtained, and the image belonging to the inner area in the seventh captured image is triggered to be detected to obtain the second sub-detection result.
[0250] It should be understood that, when the first sub-detection result indicates that the outer area does not include the target object, detection of the inner area will not be triggered.
[0251] It is worth noting that the principle of determining the second sub-detection result corresponding to the inner area based on the seventh captured image is consistent with the principle of determining the first detection result based on the first captured image, and will not be repeated here.
[0252] In step 1603 , when the second sub-detection result indicates that the inner area includes the target object, it is determined that the first detection result indicates that the first target area includes the target object.
[0253] Here, when the second sub-detection result indicates that the inner area includes the target object, it means that the target object enters the inner area from the outer area. At this time, it is determined that the first detection result indicates that the first target area includes the target object, and the projection device turns on the eye protection mode.
[0254] If the second sub-detection result indicates that the inner area does not include the target object, it means that the target object has not entered the inner area from the outer area. At this time, it is determined that the first detection result indicates that the first target area does not include the target object, and the projection device projects normally.
[0255] Therefore, by dividing the first target area into the inner area and the outer area, the first target area can be subdivided to reduce the amount of calculation.
[0256] In some feasible implementations, in step 1601, a sixth captured image of the target projection area may be acquired, and an outer image area belonging to the outer area in the sixth captured image may be detected using a first motion detection model to obtain a first sub-detection result.
[0257] Here, the principle of detecting the outer image area belonging to the outer area in the sixth captured image through the first motion detection model to obtain the first sub-detection result is consistent with the principle of determining the first detection result based on the first target area in the above embodiment, and will not be repeated here.
[0258] In some feasible implementations, in step 1602, a seventh captured image of the target projection area is acquired, and an inner image area belonging to the inner area in the seventh captured image is detected using a second motion detection model to obtain a second sub-detection result.
[0259] Here, the inner image area belonging to the inner area in the seventh captured image is detected by the second motion detection model. The principle of obtaining the second sub-detection result is consistent with the principle of determining the first detection result based on the first target area in the above embodiment, and will not be repeated here.
[0260] In some feasible implementations, the detection accuracy of the second motion detection model is greater than the detection accuracy of the first motion detection model.
[0261] Since the first motion detection model detects the outer area, it can use a motion detection algorithm that is faster, takes up less resources, and has lower accuracy. For the inner area, the second motion detection model can use a motion detection algorithm with higher accuracy.
[0262] Therefore, by using the first motion detection model to detect the outer image area, a first sub-detection result is obtained, and by using the second motion detection model to detect the outer image area, a second sub-detection result is obtained. The computational complexity of image detection can be reduced while maintaining the accuracy.
[0263] Figure 18 FIG. 1 is a schematic diagram showing module connections of a projection device control device according to an exemplary embodiment. Figure 18 As shown, an embodiment of the present disclosure provides a projection device control device, the device 1700 including:
[0264] A first acquisition module 1701 is configured to acquire a first detection result of the projection device for a first target area, wherein the first target area includes an area in the target projection area excluding the projection screen;
[0265] The control module 1702 is configured to control the projection device to turn on the eye protection mode when the first detection result indicates that the first target area includes the target object.
[0266] Optionally, the first obtaining module 1701 includes:
[0267] a first photographing unit configured to obtain a first photographed image of the target projection area, wherein the first photographed image is obtained by photographing the target projection area when the projection device projects a projection image onto the target projection area;
[0268] a first determining unit configured to determine a first target area in a first captured image;
[0269] The second determining unit is configured to determine a first detection result based on the first target area.
[0270] Optionally, the first obtaining module 1701 further includes:
[0271] The adjustment unit is configured to adjust the first target area according to the projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area.
[0272] Optionally, the adjustment unit includes:
[0273] a third determining unit configured to determine a pixel offset value according to an image resolution of the first captured image, a size of the first target area, and a projection distance of the projection device;
[0274] a fourth determining unit configured to determine an adjustment amplitude of the first target area according to the projection parameter and the pixel offset value;
[0275] The fifth determining unit is configured to adjust the first target area according to the adjustment amplitude to obtain the adjusted first target area.
[0276] Optionally, the adjustment unit includes:
[0277] a sixth determining unit configured to determine a perspective transformation matrix of the projection device under the projection parameters, wherein the perspective transformation matrix is used to correct the image projected by the projection device so that the corrected image appears as a rectangle in the target projection area;
[0278] The seventh determining unit is configured to obtain the adjusted first target area according to the image coordinate information of the vertices of the first target area in combination with the perspective transformation matrix.
[0279] Optionally, the second determining unit includes:
[0280] a first detection unit configured to perform moving object detection on a first image area corresponding to the first target area to obtain a foreground image including the moving object;
[0281] a second detection unit configured to perform object recognition on a second image region corresponding to the foreground image having a contour area greater than a preset area threshold, and obtain an object recognition result;
[0282] The third detection unit is configured to determine that the first detection result indicates that the first target area includes the target object when the object recognition result indicates that the first target area includes the target object.
[0283] Optionally, the first target area includes a plurality of sub-areas distributed around the projection screen in the first captured image; and the first detection unit is specifically configured as follows:
[0284] For the first image region corresponding to the multiple sub-regions, different motion detection models are respectively called to perform moving object detection on the first image region to obtain a corresponding foreground image.
[0285] Optionally, the control module 1702 includes:
[0286] a motion direction determining unit configured to determine a motion direction of the target object when the first detection result indicates that the first target area includes the target object;
[0287] The eye protection activation unit is configured to control the projection device to activate the eye protection mode when the motion direction indicates that the target object moves toward the projection screen.
[0288] Optionally, the first obtaining module 1701 includes:
[0289] a first acquiring unit configured to acquire a detection signal output by a sensing module, wherein the sensing module is configured to detect whether an object exists in the first target area;
[0290] The fourth detection unit is configured to determine the first detection result according to the detection signal.
[0291] Optionally, when the sensing module is a radar or a time-of-flight sensor, the detection signal includes a detection signal received by the radar or the time-of-flight sensor; and the fourth detection unit is specifically configured as follows:
[0292] When the change amplitude of the detection signal is greater than a first preset threshold, determining that the first detection result indicates that the first target area includes the target object;
[0293] In the case where the sensing module is a camera device, the detection signal includes a target image of the first target area acquired by the camera device; the fourth detection unit is specifically configured as follows:
[0294] When the change amplitude of the pixels of the target image is greater than the second preset threshold, it is determined that the first detection result indicates that the first target area includes the target object.
[0295] Optionally, the apparatus 1700 further includes:
[0296] a second acquisition module configured to acquire a second detection result of the projection device for an area belonging to the projection screen in the target projection area when the projection device turns on the eye protection mode;
[0297] The exit module is configured to exit the eye protection mode when the second detection result indicates that the area belonging to the projection screen in the target projection area does not include the target object.
[0298] Optionally, the second acquisition module is specifically configured as follows:
[0299] In a case where the first detection result is obtained based on the first captured image, when the projection device turns on the eye protection mode, obtaining a second captured image of the target projection area;
[0300] When the projection device is in the eye protection mode, obtaining a third captured image of the target projection area;
[0301] When it is determined according to the second captured image and the third captured image that the target object is not located within the area of the projection screen, it is determined that the second detection result indicates that the area of the projection screen does not include the target object.
[0302] Optionally, the second acquisition module is specifically configured as follows:
[0303] When the first detection result is obtained based on the detection signal output by the sensor module, when the projection device turns on the eye protection mode, obtaining a fourth captured image of the target projection area;
[0304] While the projection device is in eye protection mode, acquiring a fifth captured image of the target projection area;
[0305] When it is determined based on the fourth and fifth captured images that the target object is not within the area of the projection screen, and the value of the detection signal of the sensor module for the first target area is consistent with the initial signal value, the second detection result is determined to be that the second target area does not include the target object.
[0306] Optionally, the first target area includes an inner area and an outer area, wherein the inner area is an area close to the projection screen, and the outer area is an area far from the projection screen;
[0307] The first acquisition module 1701 includes:
[0308] a fifth detection unit configured to obtain a first sub-detection result of the projection device for the outer area;
[0309] a sixth detection unit configured to obtain a second sub-detection result of the projection device for the inner area when the first sub-detection result indicates that the outer area includes the target object;
[0310] The eighth determining unit is configured to determine that the first detection result indicates that the first target area includes the target object when the second sub-detection result indicates that the inner area includes the target object.
[0311] Optionally, the fifth detection unit is specifically configured as follows:
[0312] acquiring a sixth captured image of the target projection area;
[0313] detecting an outer image region belonging to an outer region in the sixth captured image using the first motion detection model to obtain a first sub-detection result;
[0314] The sixth detection unit is specifically configured as follows:
[0315] acquiring a seventh captured image of the target projection area;
[0316] The inner image region belonging to the inner region in the seventh captured image is detected by using the second motion detection model to obtain a second sub-detection result.
[0317] Optionally, the detection accuracy of the second motion detection model is greater than the detection accuracy of the first motion detection model.
[0318] Regarding the device 1700 in the above embodiment, the method logic executed by each functional module has been described in detail in the part about the method and will not be repeated here.
[0319] Figure 19 FIG. 1 is a schematic diagram of the structure of a projection device in one embodiment. Figure 19 As shown, the projection device 200 includes a projection unit 210 and a driving unit 220 for driving the projection unit 210. The projection unit 210 can form an optical image and project the optical image onto an imaging medium SC.
[0320] The projection unit 210 includes a light source unit 211 , a light modulator 212 , and an optical system 213 . The driving unit 220 includes a light source driving unit 221 and a light modulator driving unit 222 .
[0321] The light source unit 211 may include a solid-state light source such as a light emitting diode (LED), a laser, or a pump lamp. The light source unit 211 may include optical elements such as a lens and a polarizer to improve the optical properties of the projected light, and a dimming element to adjust the light flux.
[0322] The light source driving unit 221 can control the operation of the light source in the light source unit 211 , including lighting and extinguishing, according to the instruction of the control unit 250 .
[0323] The light modulator 212 includes a display panel 215 . The display panel 215 may be a transmissive liquid crystal display (LCD), a reflective liquid crystal on silicon (LCOS), or a digital micromirror device (DMD).
[0324] The optical modulator 212 is driven by the optical modulator driving unit 222 , and the optical modulator driving unit 222 is connected to the image processing unit 245 .
[0325] The image processing unit 245 inputs image data to the light modulator driver 222. The light modulator driver 222 converts the input image data into a data signal suitable for the operation of the display panel 215. Based on the converted data signal, the light modulator driver 222 applies a voltage to each pixel of the display panel 215, thereby drawing an image on the display panel 215.
[0326] The optical system 213 includes lenses or mirrors for forming an image of the incident image light PLA on the imaging medium SC. The optical system 213 may also include a zoom mechanism for magnifying or reducing the image projected on the imaging medium SC and a focus adjustment mechanism for adjusting the focus.
[0327] Projection device 200 further includes an operation unit 231, a signal receiving unit 233, an input interface 235, a storage unit 237, a data interface 241, an interface unit 242, a frame memory 243, an image processing unit 245, and a control unit 250. Input interface 235, storage unit 237, data interface 241, interface unit 242, image processing unit 245, and control unit 250 can communicate data with each other via internal bus 207.
[0328] The operation unit 231 generates corresponding operation signals according to the operation of various buttons and switches on the housing surface of the projection device 200, and outputs them to the input interface 235. The input interface 235 includes a circuit that outputs the operation signals input from the operation unit 231 to the control unit 250.
[0329] After receiving a signal (e.g., an infrared signal or Bluetooth signal) from a control device 5 (e.g., a remote control), the signal receiving unit 233 decodes the received signal and generates a corresponding operation signal. The signal receiving unit 233 outputs the generated operation signal to the input interface 235. The input interface 235 then outputs the received operation signal to the control unit 250.
[0330] The storage unit 237 may be a magnetic recording device such as a hard disk drive (HDD) or a storage device using a semiconductor memory element such as a flash memory. The storage unit 237 stores programs executed by the control unit 250, data processed by the control unit 250, image data, and the like.
[0331] The data interface 241 includes a connector and an interface circuit, and can establish a wired connection with other electronic devices 100. The data interface 241 can be a communication interface for communicating with other electronic devices 100. The data interface 241 receives image data, sound data, etc. from other electronic devices 100. In this embodiment, the image data can be content images.
[0332] The interface unit 242 is a communication interface for communicating with other electronic devices 100 according to the Ethernet standard. The interface unit 242 includes a connector and an interface circuit that processes signals transmitted by the connector. The interface unit 242 is an interface substrate that includes the connector and the interface circuit and is connected to the main substrate of the control unit 250, which is the substrate on which the processor 253 and other components are mounted. The connector and interface circuit that make up the interface unit 242 are mounted on the main substrate of the control unit 250. The interface unit 242 can receive setting information or instruction information transmitted by other electronic devices 100.
[0333] The control unit 250 includes a memory 251 and a processor 253 .
[0334] Memory 251 is a nonvolatile storage device that stores programs and data executed by processor 253. Memory 251 is composed of semiconductor memory elements such as magnetic storage devices, flash read-only memory (ROM), or other types of nonvolatile storage devices. Memory 251 may also include random access memory (RAM), which serves as a work area for processor 253. Memory 251 stores data processed by control unit 250 and control programs executed by processor 253.
[0335] The processor 253 can consist of a single processor or a combination of multiple processing groups. The processor 253 executes a control program to control various components of the projection device 200. For example, the processor 253 performs corresponding image processing based on the operation signal generated by the operation unit 231 and outputs the parameters used in this image processing (such as parameters for performing keystone correction on the image) to the image processing unit 245. Furthermore, the processor 253 can control the light source in the light source unit 211 to turn on or off, or adjust the brightness, by controlling the light source driver 221.
[0336] The image processing unit 245 and the frame memory 243 can be formed by integrated circuits. Integrated circuits include large-scale integrated circuits (LSIs), application-specific integrated circuits (ASICs), and programmable logic devices (PLDs), wherein PLDs may include field-programmable gate arrays (FPGAs). Integrated circuits may also include some analog circuits or a combination of a processor and an integrated circuit. The combination of a processor and an integrated circuit is referred to as a microcontroller unit (MCU), a system on a chip (SoC), a system LSI, a chipset, or the like.
[0337] Image processing unit 245 can store image data received from data interface 241 in frame memory 243. Frame memory 243 includes multiple memory banks, each of which has storage capacity sufficient to store one frame of image data. Frame memory 243 can be implemented as synchronous dynamic random access memory (SDRAM) or dynamic random access memory (DRAM).
[0338] The image processing unit 245 may perform image processing on the image data stored in the frame memory 243 , including resolution conversion, size adjustment, distortion correction, shape correction, digital zoom, image tone adjustment, image brightness adjustment, and the like.
[0339] The image processing unit 245 can also convert the input frame frequency of the vertical synchronization signal into a drawing frequency and generate a vertical synchronization signal having the drawing frequency. The generated vertical synchronization signal is called an output synchronization signal. The image processing unit 245 then outputs the output synchronization signal to the optical modulator driver 222.
[0340] According to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory 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 via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0341] It should be noted that the computer-readable medium described above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. Computer-readable storage media may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wire, optical cable, RF (radio frequency), or any suitable combination thereof.
[0342] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the present disclosure is not limited to technical solutions formed by specific combinations of the aforementioned technical features. It also encompasses other technical solutions formed by any combination of the aforementioned technical features or their equivalents, without departing from the scope of the above disclosure. For example, a technical solution formed by replacing the aforementioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0343] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0344] Although the subject matter has been described using language relating to specific method logic and actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely example forms of implementing the claims. Regarding the apparatus in the above-described embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method and will not be further elaborated here.
[0345] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0346] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A projection device control method, characterized in that: include: Acquire a first detection result of the projection device for a first target area, wherein the first target area includes an area in the target projection area excluding the projection screen; When the first detection result indicates that the first target area includes a target object, controlling the projection device to turn on an eye protection mode; The obtaining of a first detection result of the projection device for the first target area includes: Acquire a first captured image of a target projection area, wherein the first captured image is obtained by capturing the target projection area when a projection device projects the projection image onto the target projection area; determining the first target area in the first captured image; determining the first detection result based on the first target area; The method further comprises: adjusting the first target area according to projection parameters of the projection device relative to the target projection area to obtain an adjusted first target area, wherein the projection parameters include a projection angle of the projection light projected by the projection device relative to the target projection area; The adjusting the first target area according to the projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area includes: determining a pixel offset value according to an image resolution of the first captured image, a size of the first target area, and a projection distance of the projection device; determining an adjustment amplitude of the first target area according to a product of the projection parameter and the pixel offset value; The first target area is adjusted according to the adjustment amplitude to obtain the adjusted first target area.
2. The method according to claim 1, characterized in that The adjusting the first target area according to the projection parameters of the projection device relative to the target projection area to obtain the adjusted first target area includes: Determining a perspective transformation matrix of the projection device under the projection parameters, wherein the perspective transformation matrix is used to correct the image projected by the projection device so that the corrected image appears as a rectangle in the target projection area; The adjusted first target area is obtained according to the image coordinate information of the vertices of the first target area in combination with the perspective transformation matrix.
3. The method according to claim 1, characterized in that The determining the first detection result based on the first target area includes: Performing moving object detection on a first image area corresponding to the first target area to obtain a foreground image including the moving object; performing object recognition on a second image region corresponding to the foreground image having a contour area greater than a preset area threshold to obtain an object recognition result; In a case where the object recognition result indicates that the target object is included, it is determined that the first detection result indicates that the first target area includes the target object.
4. The method according to claim 3, characterized in that The first target area includes a plurality of sub-areas distributed around the projection image in the first captured image; The performing moving object detection on the first image area corresponding to the first target area to obtain a foreground image including the moving object includes: For the first image region corresponding to the multiple sub-regions, different motion detection models are respectively called to perform moving object detection on the first image region to obtain a corresponding foreground image.
5. The method according to claim 1, wherein When the first detection result indicates that the first target area includes the target object, controlling the projection device to enable the eye protection mode includes: If the first detection result indicates that the first target area includes a target object, determining a movement direction of the target object; When the movement direction indicates that the target object moves toward the projection screen, the projection device is controlled to turn on an eye protection mode.
6. The method according to claim 1, characterized in that The obtaining of a first detection result of the projection device for the first target area includes: Acquiring a detection signal output by a sensor module, wherein the sensor module is configured to detect whether an object exists in the first target area; The first detection result is determined according to the detection signal.
7. The method according to claim 6, characterized in that In the case where the sensing module is a radar or a time-of-flight sensor, the detection signal includes a detection signal received by the radar or the time-of-flight sensor; Determining the first detection result according to the detection signal includes: When the change amplitude of the detection signal is greater than a first preset threshold, determining that the first detection result indicates that the first target area includes the target object; In the case where the sensing module is a camera device, the detection signal includes a target image of the first target area acquired by the camera device; Determining the first detection result according to the detection signal includes: In a case where the magnitude of the change in pixels of the target image is greater than a second preset threshold, it is determined that the first detection result indicates that the first target area includes the target object.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: In the process of the projection device turning on the eye protection mode, obtaining a second detection result of the projection device for the area in the target projection area that belongs to the projection screen; When the second detection result indicates that the area in the target projection area belonging to the projection screen does not include the target object, the eye protection mode is exited.
9. The method according to claim 8, characterized in that The step of obtaining, during the process of the projection device enabling the eye protection mode, a second detection result of the projection device on an area in the target projection area that belongs to the projection screen comprises: In a case where the first detection result is obtained based on the first captured image, when the projection device turns on the eye protection mode, obtaining a second captured image of the target projection area; Acquiring a third captured image of the target projection area while the projection device is in the eye protection mode; When it is determined according to the second captured image and the third captured image that the target object is not located within the area of the projection screen, it is determined that the second detection result indicates that the area of the projection screen does not include the target object.
10. The method according to claim 8, characterized in that The step of obtaining, during the process of the projection device enabling the eye protection mode, a second detection result of the projection device on an area in the target projection area that belongs to the projection screen comprises: In a case where the first detection result is obtained according to a detection signal output by the sensor module, when the projection device turns on the eye protection mode, acquiring a fourth captured image of the target projection area; Acquiring a fifth captured image of the target projection area during the process of the projection device turning on the eye protection mode; When it is determined based on the fourth captured image and the fifth captured image that the target object is not located within the area of the projection screen, and the value of the detection signal of the sensor module for the first target area is consistent with the initial signal value, the second detection result is determined to be that the second target area does not include the target object.
11. The method according to claim 1, wherein The first target area includes an inner area and an outer area, wherein the inner area is an area close to the projection screen, and the outer area is an area far from the projection screen; The obtaining of a first detection result of the projection device for the first target area includes: Obtaining a first sub-detection result of the projection device for the outer area; When the first sub-detection result indicates that the outer area includes the target object, obtaining a second sub-detection result of the projection device for the inner area; In a case where the second sub-detection result indicates that the inner area includes the target object, it is determined that the first detection result indicates that the first target area includes the target object.
12. The method according to claim 11, characterized in that The obtaining of a first sub-detection result of the projection device for the outer area includes: Acquiring a sixth captured image of the target projection area; detecting the outer image area belonging to the outer area in the sixth captured image using a first motion detection model to obtain the first sub-detection result; The obtaining of a second sub-detection result of the projection device for the inner area includes: Acquiring a seventh captured image of the target projection area; The inner image area belonging to the inner area in the seventh captured image is detected using a second motion detection model to obtain the second sub-detection result.
13. The method according to claim 12, characterized in that The detection accuracy of the second motion detection model is greater than the detection accuracy of the first motion detection model.
14. A projection equipment control device, characterized in that: include: A first acquisition module is configured to acquire a first detection result of the projection device for a first target area, wherein the first target area includes an area in the target projection area excluding the projection screen; A control module configured to control the projection device to enable an eye protection mode when the first detection result indicates that the first target area includes a target object; The first acquisition module includes: a first photographing unit configured to obtain a first photographed image of a target projection area, wherein the first photographed image is obtained by photographing the target projection area when a projection device projects the projection image onto the target projection area; a first determining unit configured to determine the first target area in the first captured image; a second determining unit, configured to determine the first detection result based on the first target area; The first acquisition module further includes: an adjusting unit configured to adjust the first target area according to projection parameters of the projection device relative to the target projection area to obtain an adjusted first target area, wherein the projection parameters include a projection angle of the projection light projected by the projection device relative to the target projection area; The adjustment unit is specifically configured as follows: determining a pixel offset value according to an image resolution of the first captured image, a size of the first target area, and a projection distance of the projection device; determining an adjustment amplitude of the first target area according to a product of the projection parameter and the pixel offset value; The first target area is adjusted according to the adjustment amplitude to obtain the adjusted first target area.
15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
16. A projection device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Output image processing method and equipment
CN106507071A
Eye protection projection method and device and projector
CN111818316A
Laser projection equipment and safety control method thereof
CN113707099A
Projection equipment and method for adjusting projection brightness
CN114885142A