Projection method, device, equipment and storage medium thereof
By connecting the projection equipment to an external device and using the image acquisition function of the external device for automatic correction, the problem of high cost of projection equipment is solved, and efficient and accurate projection correction and function realization are achieved.
Patent Information
- Application Number
- CN202411029702.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-11
AI Technical Summary
Existing projection equipment relies on high-precision sensors to implement advanced functions such as picture correction, focusing, obstacle avoidance, etc., resulting in high equipment costs. How to reduce manufacturing costs while ensuring functional effectiveness has become a challenge.
By connecting the projection device to an external device, the external device is used to obtain the preset correction reference picture and collected image, determine the position information of the projection picture, realize automatic correction, and reduce reliance on high-precision sensors.
It improves the efficiency and accuracy of projection correction, reduces the manufacturing cost of projection equipment, avoids the need to integrate high-precision sensors inside the equipment, and achieves efficient implementation of functions.
Smart Images

Figure CN118764596A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection technology, and in particular to a projection method, device, equipment and storage medium thereof. Background Art
[0002] With the rapid advancement of science and technology, projection technology has also ushered in an unprecedented wave of development. Projection equipment is no longer limited to simple image projection, but integrates many high-value-added technical features, such as focus, keystone correction, etc.; these functions greatly improve the user experience, making projection equipment widely used in many fields such as home entertainment, business presentations, education and training. However, the realization of these advanced functions often relies on high-precision sensors, which undoubtedly pushes up the overall cost of projection equipment. Therefore, how to reduce the manufacturing cost of projection equipment while ensuring the effective realization of various functions of projection equipment has become a problem that needs to be solved in the current development of projection equipment technology.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a projection method, device, equipment and storage medium thereof, aiming to ensure that various functions of the projection equipment can be realized while effectively reducing the manufacturing cost of the projection equipment.
[0005] To achieve the above object, an embodiment of the present application provides a projection method, wherein the method is applied to a projection device, the projection device is connected to an external device, and the method includes:
[0006] Displaying a projection picture according to a preset calibration reference picture obtained from the external device;
[0007] Acquire a captured image captured by the external device, wherein the captured image includes the projection picture, and the projection picture includes a calibration reference mark;
[0008] Determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier;
[0009] The projection picture is corrected according to the first picture position information.
[0010] In one embodiment, the housing of the projection device is provided with a fixing slot, the fixing slot is used to accommodate the external device, and before the step of displaying the projection picture according to the preset calibration reference picture obtained from the external device, the method includes:
[0011] When the external device is in the fixed slot, triggering a connection instruction;
[0012] According to the connection instruction, a connection is established with the external device.
[0013] In one embodiment, the step of correcting the projection picture according to the first picture position information includes:
[0014] Determining the current display content of the projection picture according to the first picture position information;
[0015] The projection picture is corrected according to the triggered target projection function and the current display content.
[0016] In one embodiment, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0017] In a case where the target projection function is a distortion correction function, determining distortion information of the projection picture according to the current display content;
[0018] Determining correction information according to the distortion information;
[0019] Based on the correction information, distortion correction is performed on the projection picture to eliminate the distortion generated by the projection picture.
[0020] In one embodiment, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0021] In the case where the target projection function is an obstacle avoidance function, determining, according to the current display content, the degree of influence of obstacles existing in the projection picture on the display of the projection picture;
[0022] determining an obstacle avoidance object from the obstacles according to the displayed influence degree;
[0023] According to the obstacle avoidance object, obstacle avoidance correction is performed on the projection picture so that the projection picture avoids the obstacle avoidance object.
[0024] In one embodiment, the captured image is a depth of field image, and the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0025] In a case where the target projection function is an eye protection function, determining an eye protection monitoring area in the depth of field image according to the current display content, wherein the eye protection monitoring area surrounds the projection screen;
[0026] Monitoring whether there is a target moving object in the eye protection monitoring area;
[0027] When a target moving object is detected in the eye protection monitoring area, the brightness of the projection image is reduced.
[0028] In one embodiment, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0029] When the target projection function is a focus function, determining the image clarity of the projection image according to the current display content;
[0030] Determining a focus compensation value according to a difference between the picture clarity and the target clarity;
[0031] Based on the focus compensation value, focus correction is performed on the projection picture.
[0032] In one embodiment, before the step of correcting the projection picture according to the triggered target projection function and the current display content, the step further includes:
[0033] Dynamically acquiring the angular velocity collected by the external device;
[0034] Determining whether the angular velocity is greater than a preset angular velocity threshold;
[0035] When the angular velocity is greater than the angular velocity threshold, it is determined that the target projection function is a distortion correction function.
[0036] In one embodiment, the step of determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier comprises:
[0037] Performing contour recognition on the collected image to obtain a first contour set, and filtering out a target marker contour corresponding to the calibration reference marker from the first contour set according to the contour shape of the calibration reference marker;
[0038] Performing corner point recognition on the collected image to obtain a first corner point set, and filtering out target corner points corresponding to vertices of the projection image from the first corner point set according to the center points of the contours of the target identifications;
[0039] The first picture position information is determined according to the position information of each target corner point in the image coordinate system.
[0040] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further provides a projection device, which is applied to a projection device, and the projection device is connected to an external device, and the device includes:
[0041] A display module, configured to display a projection picture according to a preset calibration reference picture obtained from the external device;
[0042] An acquisition module, configured to acquire an acquired image acquired by the external device, wherein the acquired image includes the projection picture, and the projection picture includes a calibration reference mark;
[0043] A determination module, configured to determine first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier;
[0044] The correction module is configured to correct the projection picture according to the first picture position information.
[0045] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also proposes a projection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the projection method described above.
[0046] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the projection method described above are implemented.
[0047] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further proposes a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the projection method described above are implemented.
[0048] One or more technical solutions proposed in the embodiments of the present application have at least the following technical effects: by connecting the projection device to the external device, the projection screen is displayed according to the preset correction reference screen obtained from the external device; the content of the projection screen is switched to the correction reference screen. Then, relying on the image acquisition function of the external device, the captured image including the projection screen acquired by the external device is obtained; since the content of the projection screen has been switched to the correction reference screen, the projection screen contains the same correction reference mark as the correction reference screen; and the correction reference mark is suitable for screen correction, which is convenient for realizing fast and accurate positioning of the projection screen. Then, according to the correction reference mark, the first screen position information of the projection screen in the image coordinate system of the captured image is determined, and according to the first screen position information, the projection screen is efficiently corrected; so that the projection correction process does not require manual intervention, which greatly improves the efficiency and accuracy of the projection correction. At the same time, since the function of the external device is used to replace the high-precision sensor that originally needed to be directly integrated into the projector, the projection device no longer needs to integrate the high-precision sensor, thereby effectively reducing the manufacturing cost of the projection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the projection method of the present application;
[0052] Figure 2 A schematic diagram of the structure of a projection device provided in an embodiment of the present application;
[0053] Figure 3 This is a flow chart of a more complete embodiment of the present application;
[0054] Figure 4 A scene diagram of a projection method provided in an embodiment of the present application Figure 1 ;
[0055] Figure 5 A scene diagram of a projection method provided in an embodiment of the present application Figure 2 ;
[0056] Figure 6A scene diagram of a projection method provided in an embodiment of the present application Figure 3 ;
[0057] Figure 7 A scene diagram of a projection method provided in an embodiment of the present application Figure 4 ;
[0058] Figure 8 A scene diagram of a projection method provided in an embodiment of the present application Figure 5 ;
[0059] Fig. 9 This is a schematic diagram of the framework structure of the projection device in the embodiment of the present application;
[0060] Fig.10 It is a schematic diagram of the device structure of the hardware operating environment of the projection device involved in the projection method in the embodiment of the present application.
[0061] Description of Figure Numbers:
[0062] 10. Projection equipment; 11. Fixing slot.
[0063] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0065] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0066] In conventional technology, although projection equipment integrates many intelligent functions, such as image correction, image focus, obstacle avoidance, etc., the realization of these advanced functions often relies on high-precision sensors, which undoubtedly pushes up the overall cost of projection equipment. Therefore, how to reduce the cost of projection equipment while ensuring the effective realization of various functions of projection equipment has become an urgent problem to be solved in the current development of projection equipment technology.
[0067] The embodiment of the present application provides a solution, by connecting the projection device to an external device, and then displaying the projection screen according to the preset correction reference screen obtained from the external device; the content of the projection screen is switched to the correction reference screen. Then, relying on the image acquisition function of the external device, the captured image including the projection screen acquired by the external device is obtained; since the content of the projection screen has been switched to the correction reference screen, the projection screen contains the same correction reference mark as the correction reference screen; and the correction reference mark is suitable for screen correction, which is convenient for realizing fast and accurate positioning of the projection screen. Then, according to the correction reference mark, the first screen position information of the projection screen in the image coordinate system of the captured image is determined, and according to the first screen position information, efficient correction of the projection screen is realized; so that the projection correction process does not require manual intervention, which greatly improves the efficiency and accuracy of projection correction. At the same time, since the function of the external device itself is used to replace the high-precision sensor that originally needs to be directly integrated into the projector, the projection device no longer needs to integrate the high-precision sensor, thereby effectively reducing the manufacturing cost of the projection device.
[0068] Reference Figure 1 , Figure 1 This is a schematic diagram of the flow chart of the first embodiment of the projection method of the present application.
[0069] It should be noted that the execution subject of the projection method can be a projection device, such as a projector, or an electronic device that is connected to the projection device for communication, and the electronic device can be a local device or a network device. This embodiment does not limit this. For the sake of convenience, the following description of each embodiment is omitted for the execution subject. In this embodiment, the projection method is applied to the projection device, and the projection device is provided with a fixing slot for fixing the external device and keeping the relative position between the external device and the projection device unchanged. The projection method includes:
[0070] Step S10, displaying a projection picture according to a preset calibration reference picture obtained from an external device;
[0071] It should be understood that the external device can be a device connected to the projection device in some way (such as a physical interface, wireless connection, etc.) according to the specific needs of the projection device or the need for functional expansion. The external device is provided with high-precision sensors required for the projection device to realize the projection function, and can rely on these high-precision sensors to provide additional functions or data input for the projection device. The external device can be a mobile phone, a computer, a smart watch, a tablet, a sensor module, etc., and one or more external devices can be connected according to the actual needs of the projection device, and this embodiment does not limit this.
[0072] In a feasible embodiment, when the projection device is connected to an external device, a preset calibration reference picture is obtained from the external device, and then the display content of the projection picture is switched to the calibration reference picture. The calibration reference picture includes a calibration reference mark for calibration positioning, so when the current display content is switched to the calibration reference picture, the actual displayed projection picture also includes the same calibration reference mark, so as to realize fast and accurate positioning of the projection picture.
[0073] Exemplarily, the sensors of the external device may include: inertial sensors and / or image sensors, and the image sensors may include: cameras and / or TOF (Time of flight) sensors. Among them, the inertial sensor is a sensor that can detect and measure acceleration, tilt, impact, vibration, rotation and multi-degree-of-freedom motion, and may include accelerometers and / or angular velocity sensors and their single, dual, and three-axis combinations. For example, the inertial sensor is a gyroscope. Cameras usually use image sensor technologies such as CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-Coupled Device) to generate images by capturing light and converting it into electrical signals. These images are two-dimensional and mainly reflect visual information such as color, brightness and texture of the object. The TOF sensor is a 3D visual sensor based on time-of-flight technology. It emits infrared light signals and measures the time required for these signals to be reflected back by the object from the emission to calculate the distance between the sensor and the object; this technology can generate a three-dimensional image of the object (i.e., a depth of field image) and provide depth information.
[0074] Step S20, acquiring a captured image captured by an external device, wherein the captured image includes a projection screen, and the projection screen includes a calibration reference mark;
[0075] In a feasible embodiment, an image sensor is provided in the external device, so that an image can be captured, and then the image captured by the external device (i.e., the captured image) is obtained, wherein the captured image includes a projection screen. Since the correction reference screen includes a correction reference mark for correcting positioning, when the display content of the display screen is switched to the correction reference screen, the projection screen actually displayed also includes the same correction reference mark.
[0076] Exemplarily, before the step of collecting images by the external device, the projection parameters can be restored to default settings. Because the user may have manually corrected the projection image before the automatic projection correction is performed; in order to avoid the impact caused by manual correction, the projection parameters are restored to default settings, wherein the projection parameters include: pixel coordinates, transmittance, screen ratio, projection size, resolution, brightness, contrast, etc. of the projection image.
[0077] Step S30, determining first picture position information of the projection picture in the image coordinate system of the captured image according to the calibration reference identifier;
[0078] In a feasible embodiment, since the projection picture included in the captured image has been switched to the correction reference picture, the position information of the projection picture projected by the projection device in the image coordinate system (i.e., the first picture position information) can be quickly determined according to the correction reference identifier preset in the correction reference picture, wherein the image coordinate system is a coordinate system established with reference to the captured image captured by the image capture device.
[0079] Exemplarily, the origin of the image coordinate system is determined based on the projected image, wherein the origin of the image coordinate system can be selected at the center, upper left corner or other points of specific significance of the image, or the intersection of the optical axis of the image acquisition device and the image plane (i.e., the principal point). Then, an X-axis is established in the horizontal direction pointing to the image, and a Y-axis is established in the vertical direction pointing to the image, thereby establishing an image coordinate system.
[0080] Step S40: calibrate the projection image according to the first image position information.
[0081] In a feasible embodiment, based on the first picture position information of the projection picture, the current display status of the projection picture can be determined, for example, the clarity of the picture, the degree of shape distortion, whether it is blocked by obstacles, etc., so as to perceive and understand the status of the current projection environment in real time, and solve the display problems of the projection picture through picture correction, thereby improving the display quality of the projection picture.
[0082] Exemplarily, the image correction may be to adjust display parameters of the projection image, wherein the display parameters may include: at least one of pixel coordinates, transmittance, screen ratio, projection size, resolution, brightness and contrast of the projection image.
[0083] In this embodiment, the projection device is connected to an external device, and then the projection screen is displayed according to the preset correction reference screen obtained from the external device; the content of the projection screen is switched to the correction reference screen. Then, relying on the image acquisition function of the external device, the captured image including the projection screen acquired by the external device is obtained; since the content of the projection screen has been switched to the correction reference screen, the projection screen contains the same correction reference mark as the correction reference screen; and the correction reference mark is suitable for screen correction, which is convenient for realizing fast and accurate positioning of the projection screen. Then, according to the correction reference mark, the first screen position information of the projection screen in the image coordinate system of the captured image is determined, and according to the first screen position information, the projection screen is efficiently corrected; so that the projection correction process does not require manual intervention, which greatly improves the efficiency and accuracy of the projection correction. At the same time, since the function of the external device is used to replace the high-precision sensor that originally needs to be directly integrated into the projector, the projection device no longer needs to integrate the high-precision sensor, thereby effectively reducing the manufacturing cost of the projection device.
[0084] Based on the above first embodiment, a second embodiment of the projection method of the present application is proposed. In this embodiment, the housing of the projection device is provided with a fixing groove, and the fixing groove is used to accommodate an external device. In step S10, before the step of displaying the projection picture according to the preset calibration reference picture obtained from the external device, the projection method includes:
[0085] Step S11, when the external device is in the fixed slot, triggering a connection instruction;
[0086] In one possible embodiment, referring to Figure 2 The projection device 10 is provided with one or more fixed slots 11, which can be a space with a fixed shape and size preset in the projection device 10 and cannot be changed after leaving the factory. The fixed slot 11 not only plays a role of receiving, but also can fix the position of the fixed slot 11 itself, so that when the external device is in the fixed slot 11, the relative position between the external device and the projection device 10 remains unchanged. The fixed slot 11 can be provided with an inductive sensor to detect whether the external device is placed in the fixed slot 11; then, when the external device is in the fixed slot 11, the inductive sensor triggers a connection instruction.
[0087] Exemplarily, the fixing slot may have obvious fool-proof measures to ensure that the user can only insert the external device in a fixed direction.
[0088] Step S12: establishing a connection with an external device according to the connection instruction.
[0089] In a feasible embodiment, the projection device establishes a connection with the external device according to the connection quality, wherein the connection can be a wireless connection or a wired connection.
[0090] Exemplarily, in response to a connection instruction, a handshake message is sent to the external device; when a feedback message sent by the external device in response to the handshake message is received, it indicates that the communication messages between the two are reachable and the connection with the external device is completed.
[0091] Exemplarily, when the external device is in the fixed slot of the projection device, the relative position between the external device and the projection device remains unchanged, so that the data collected by the sensor can more accurately reflect the current state or environmental information of the projection device. This is because any change in position may cause deviations in sensor data, and the fixed relative position reduces this uncertainty, thereby improving the accuracy and reliability of the data. Further, the fixed relative position helps to ensure the stability and consistency of the projection image. For example, in the autofocus and distortion correction functions, if the relative position of the external device and the projection device changes, these functions may not work properly or the effect is greatly reduced. The fixed relative position avoids this problem, ensures the clarity and accuracy of the projection image, and thus improves the user experience. In addition, by setting a fixed position fixed slot in the projection device, the layout and interface position of the projection device can be more reasonably planned, which not only helps to simplify the production process and improve production efficiency, but also makes it easier for the external device to be integrated and matched with the projection device, reducing the failures and troubles caused by compatibility issues.
[0092] In addition, through the above settings, there is no need to install high-precision sensors in the projection device, and only some low-precision sensors can be installed to meet the basic functions of the projection device. When the user needs to use the advanced functions of the projection device or improve the functional effects, other external devices (for example, smart phones) can be placed in the fixed slot, which can ensure the realization of various advanced projection functions on the basis that the projection device is not equipped with high-precision sensors, thereby greatly reducing the manufacturing cost of the projection device. Since such external devices are usually equipped with high-precision sensors, the realization cost of the projection function of the projection device will not be increased, but the multiplexing of sensors is realized. At the same time, since the external device is detachable and replaceable, the method enables the projection device to flexibly configure sensors according to different application scenarios or user needs. For example, for occasions requiring high-precision autofocus, a distance sensor with stronger performance can be equipped. When the external sensor fails or needs to be upgraded, the user only needs to simply replace the external device without disassembling and repairing the entire projection device. This not only reduces maintenance costs, but also improves maintenance efficiency and enhances user experience.
[0093] Exemplarily, when the external device is in the fixed slot of the projection device, the relative position between the external device and the projection device remains unchanged; the relative position information of the preset devices between the external device and the projection device is obtained; the second screen position information of the projection screen in the projection coordinate system with the projection device as a reference is obtained; based on the device relative position information, the second screen position information is converted into a coordinate system to obtain the first screen position information of the projection screen in the image coordinate system with the captured image as a reference; and the projection screen is corrected according to the first screen position information.
[0094] Exemplarily, the projection device is used as the origin of the projection coordinate system; the X-axis is established in the horizontal direction of the projection device's viewing angle (i.e., the projection screen), the Y-axis is established in the vertical direction of the projection device's viewing angle (i.e., the projection screen), and the Z-axis is established in a direction perpendicular to the plane formed by the X-axis and the Y-axis to obtain the projection coordinate system.
[0095] Exemplarily, the origin of the image coordinate system is determined based on the captured image, wherein the origin of the image coordinate system can be selected at the center, upper left corner or other point with specific meaning of the image, or the intersection of the optical axis of the image sensor and the image plane (i.e., the principal point). Then, an X-axis is established in the horizontal direction pointing to the image, and a Y-axis is established in the vertical direction pointing to the image, thereby establishing an image coordinate system.
[0096] Exemplarily, a perspective matrix may be established based on the relative position information of the devices, and the perspective matrix may be used to realize the position information conversion between the image coordinate system and the projection coordinate system of multiple objects, so as to realize various projection functions of the projection device.
[0097] In this embodiment, since the relative position between the external device and the projection device is fixed, the position information of multiple projection screens can be converted between the image coordinate system and the projection coordinate system based on the relative position between the devices, thereby improving the accuracy and reliability of the data and facilitating the realization of various projection functions of the projection device.
[0098] Based on the above first and / or second embodiments, a third embodiment of the projection method of the present application is proposed. In this embodiment, step S40, the step of correcting the projection image according to the first image position information includes:
[0099] Step S41, determining the current display content of the projection picture according to the first picture position information;
[0100] In a feasible embodiment, when the first picture position information of the projection picture in the acquired image is determined, the current display content of the projection picture is determined according to the image content corresponding to the first picture position information in the acquired image; for example, the clarity of the picture, the degree of shape distortion, whether it is blocked by obstacles, etc.
[0101] Step S42: Correct the projection image according to the triggered target projection function and the current display content.
[0102] In a feasible embodiment, since different projection functions will make different adjustments to the projection picture, the projection function currently triggered by the projection device (ie, the target projection function) can be determined, and the projection picture can be corrected according to the target projection function and the current display content.
[0103] Exemplarily, correcting the projection picture may be adjusting display parameters of the projection picture, wherein the display parameters may include: at least one of pixel coordinates, transmittance, screen ratio, projection size, resolution, brightness, and contrast of the projection picture.
[0104] Exemplarily, the triggering of the target projection function may be manually triggered by a user; for example, a user may trigger the target projection function of the projection device through a remote controller associated with the projection device, and the remote controller may be a remote control device provided in conjunction with the projection device, or may be a smart phone, a watch, a computer, a tablet, etc. The triggering of the target projection function is automatically triggered by the sensor data collected by the sensor of the external device, and this embodiment does not limit this.
[0105] Exemplarily, the projection function includes: at least one of a distortion correction function, an eye protection function, a focus function and an obstacle avoidance function.
[0106] In order to assist in understanding the above technical solution, a relatively complete embodiment of a projection obstacle avoidance display method is explained below. Figure 3 , step S101, when the external device is placed in the fixed slot of the projection device, the inductive sensor in the fixed slot generates an access signal. Step S102, the projection device sends a handshake message to the external device in response to the access signal, and determines that the communication with the external device is normal when receiving a feedback message sent by the external device in response to the handshake message. Step S103, the projection device dynamically obtains the sensor data collected by the sensor of the external device, for example, collected images, angular velocity, etc. Step S104, according to the sensor data, determine the current display content of the projection screen, and adjust the projection screen based on the current display content and the triggered target projection function, wherein the target projection function can be: at least one of: distortion correction function, focus function, obstacle avoidance function, and eye protection function.
[0107] Based on the above first, second and / or third embodiments, a fourth embodiment of the projection method of the present application is proposed. In this embodiment, step S42, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0108] Step A101, when the target projection function is a distortion correction function, determining the distortion information of the projection image according to the current display content;
[0109] Step A102, determining correction information according to the distortion information;
[0110] Step A103: Based on the correction information, distortion correction is performed on the projection image to eliminate the distortion generated in the projection image.
[0111] In a feasible embodiment, when the target projection function is a distortion correction function, it indicates that the projection picture is distorted, which may be a distortion in shape or a misalignment with the boundary of the target projection area (e.g., a projection screen or a projection wall); then, according to the current display content, the degree of distortion of the projection picture is determined to obtain distortion information. Then, according to the distortion information, correction information for adjusting the projection picture to a non-distorted state is determined, and based on the correction information, the projection picture is corrected to eliminate the distortion of the projection picture, or to perfectly align it with the edge of the target projection area, thereby improving the quality of the projection picture.
[0112] Exemplarily, contour recognition is performed on the currently displayed content to obtain a projection contour corresponding to the projected image, and distortion information is obtained based on the difference between the projection contour and a preset standard contour, wherein the difference may include shape differences, feature point offset values, size deviations, direction deviations, position deviations, etc.
[0113] In a feasible implementation, step A101, the step of determining the distortion information of the projection picture according to the current display content, includes: identifying the target projection area in the captured image, wherein the target projection area can be used as a reference for the projection picture, and can be a screen specifically used for projection, or a specific display area pre-defined and marked on the projection wall. The display content of the target projection area in the captured image is determined as the regional display content; and the distortion information is determined according to the difference between the regional display content and the current display content, wherein the difference may include the difference values of the contours of the two in terms of shape, feature points, size, direction, position, etc.
[0114] In this embodiment, since the relative position between the external device and the projection device remains unchanged when the external device is in the fixed slot of the projection device, the accuracy and reliability of the data used in the distortion correction function are effectively improved, the display quality of the projection picture is guaranteed, and the user experience is improved.
[0115] In a feasible implementation manner, before the step of correcting the projection image according to the triggered target projection function and the current display content in step S42, the method further includes:
[0116] Step B101, dynamically acquiring the angular velocity collected by an external device;
[0117] Step B102, determining whether the angular velocity is greater than a preset angular velocity threshold;
[0118] Step B103: when the angular velocity is greater than the angular velocity threshold, determining that the target projection function is a distortion correction function.
[0119] In a feasible embodiment, the sensor of the external device includes an inertial sensor, so the angular velocity can be collected. When the projection device operates normally and the correction has been completed, the projected image can usually remain straight and distortion-free, so there is no need to trigger the distortion correction function. However, during the use of the projection device, if the placement position is uneven or the device is moved due to the influence of external forces, the projection image may be tilted or deformed in this case. In order to restore the normal display of the image, it is necessary to enable the distortion correction function in time and accurately adjust the projection image to ensure that it reaches a straight and distortion-free state again. When the external device is in the fixed slot, the relative position between it and the projection device remains unchanged. Therefore, when the angular velocity collected by the inertial sensor of the external device is greater than the angular velocity threshold, it indicates that both the external device and the projection device have moved, and the projection image is likely to be tilted or deformed. Therefore, it is determined that the image display of the projection image belongs to a suspected distortion state, and the target projection function is determined to be the distortion correction function. When the angular velocity is less than or equal to the angular velocity threshold, it indicates that the projection device is in a relatively static state, and there is no need to trigger the distortion correction function.
[0120] The distortion correction function is used to correct the shape of the projected image so that the projected image appears as a regular rectangle, which may include trapezoidal correction, geometric correction and / or horizontal correction.
[0121] Exemplarily, the inertial sensor is a gyroscope, and first angular velocity values of three axes (X-axis, Y-axis and Z-axis) of the gyroscope are obtained, wherein the first angular velocity value is in radians; the first angular velocity value is converted into a second angular velocity value by the formula: angle = radians × (180 / π), wherein the second angular velocity value is in angles; and whether the integer part of the second angular velocity value is greater than 0 (i.e., an angular velocity threshold) is determined, and when the integer part of the second angular velocity value is greater than 0, it is determined that the target projection function is a distortion correction function.
[0122] Exemplarily, when it is determined that the target projection function is the distortion correction function, the angular velocity collected by the inertial sensor of the external device continues to be dynamically acquired, and when the angular velocity is less than or equal to the angular velocity threshold, the distortion correction function is triggered. This is because when the angular velocity is less than or equal to the angular velocity threshold, it indicates that the projection device has resumed a stationary state, and the distortion correction function is triggered at this time, which can avoid affecting the correction effect of the projection picture due to the continuous position change of the projection device.
[0123] In this embodiment, the automatic triggering of various projection functions is achieved through the sensor provided by the external device, thereby improving the convenience of using the projection device.
[0124] Based on the first, second, third and / or fourth embodiments above, a fifth embodiment of the projection method of the present application is proposed. In this embodiment, step S42, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0125] Step A104, when the target projection function is an obstacle avoidance function, determining the degree of influence of obstacles existing in the projection picture on the display of the projection picture according to the current display content;
[0126] In a feasible embodiment, when the triggered target projection function is the obstacle avoidance function, it indicates that the projection screen is at least partially blocked by an object; although all obstacles can be avoided by conventional obstacle avoidance algorithms; but when the area of the obstacle is large, this processing method may cause the projection screen to be greatly reduced, and sometimes only a small displayable area is left. Although this "one-size-fits-all" obstacle avoidance display method effectively isolates the direct interference of obstacles to the screen, it inevitably sacrifices the integrity of the projection screen and the viewing comfort of the user, and the flexibility of obstacle avoidance display is poor. In order to avoid the occurrence of the above problems, the degree of influence of obstacles in the projection screen on the display of the projection screen is determined based on the collected image; wherein the degree of display influence can represent the degree of negative impact of obstacles on the integrity, clarity, viewing experience, etc. of the projection screen, and can also represent the display quality of the projection screen after avoiding the obstacle.
[0127] Exemplarily, the type of the obstacle is determined based on the collected image, for example, the obstacle is a display screen, a switch panel, a vase, etc.; and then the display impact of the obstacle is determined based on the type of the obstacle.
[0128] In one feasible implementation, step A104, determining the degree of influence of obstacles existing in the projection picture on the display of the projection picture according to the current display content, includes:
[0129] Step C10, determining a display influence parameter of the obstacle on the projection image according to the current display content, wherein the display influence parameter includes: at least one of the obstacle area, gray value and color entropy;
[0130] In a feasible embodiment, the display impact parameters of the obstacle on the projected image are determined based on the current display content, wherein the display impact parameters refer to specific indicators used to quantify and evaluate the degree of display impact, and may include: at least one of the obstacle area, grayscale value and color entropy, and may also include: type, quantity, contrast, color gamut, color saturation, etc.
[0131] For example, the obstacle area refers to the area of the projection screen blocked by the obstacle, that is, the size of the space occupied on the projection screen; the larger the obstacle area, the larger the area of the projection screen blocked, and in order to avoid the obstacle, the display area of the projection screen may need to be greatly reduced; that is, when avoiding objects with larger obstacle areas, the display effect of the projection screen is worse. Therefore, there is a negative correlation between the obstacle area and the degree of display impact.
[0132] For example, the gray value is a parameter used to represent the brightness of an image. In a black and white image, the gray value varies from 0 (black) to 255 (white). In a color image, the gray value can be calculated by converting each color channel (red, green, and blue) of the color image into a brightness value and taking the average value. There is a negative correlation between the gray value and the degree of display impact.
[0133] For example, color entropy is an indicator to measure the complexity of color information in an image. The color entropy of a pure color image is low because the image is mainly composed of one or a few colors, while the color entropy of a colorful image is high, indicating that the image contains multiple colors or has large color variations. There is a positive correlation between color entropy and the degree of display impact.
[0134] In one feasible implementation, before the step of determining the degree of influence of an obstacle existing in the projection picture on the display of the projection picture according to the current display content in step A104, the step further includes: determining the motion and stillness state of the obstacle according to the acquired image, wherein the motion and stillness state includes: motion state and stillness state; when the obstacle is in a still state, executing the step of determining the parameters of the influence of the obstacle on the display of the projection picture according to the current display content; or, when the obstacle is in a motion state, determining the obstacle as a non-obstacle avoidance object.
[0135] In a feasible embodiment, the motion and stillness of each obstacle in the captured image is determined by dynamically acquiring multiple captured images. When the obstacle is in a stationary state, it indicates that the obstacle will have a fixed position blocking effect on the projection screen within a certain period of time. Therefore, step C10 is executed to determine the display impact parameters of the obstacle on the projection screen according to the current display content, as well as subsequent steps. When the obstacle is in a moving state, it indicates that the occlusion of the projection screen by the obstacle will be short-lived and dynamic; in this scenario, if the moving obstacle is regarded as an obstacle avoidance object, it may be necessary to frequently adjust the layout of the projection screen in a short period of time to avoid occlusion. However, such frequent adjustments may not only fail to effectively track and avoid all occlusions, but may also interfere with the user's viewing experience due to the constant changes in the screen. Therefore, the obstacle is determined as a non-obstacle avoidance object and no obstacle avoidance processing is performed.
[0136] Exemplarily, the step of determining the motion and stillness of the obstacle based on the captured image includes: calculating the motion vector of each pixel between two consecutive frames of captured images by an optical flow algorithm; determining the static area and the dynamic area in the captured image based on a preset motion threshold, wherein the motion vector of the pixel in the static area is less than or equal to the motion threshold, and the motion vector of the pixel in the dynamic area is greater than the motion threshold. The motion and stillness of the obstacle in the static area is determined as the static state; and the motion and stillness of the obstacle in the dynamic area is determined as the dynamic state.
[0137] Exemplarily, the step of determining the motion and stillness state of an obstacle based on a captured image includes: performing Euler image magnification algorithm processing on multiple frames of captured images acquired continuously to determine the heart rate corresponding to the obstacle in the captured image; determining the motion and stillness state of an obstacle having a heart rate greater than a preset heart rate threshold as a motion state, and determining the motion and stillness state of an obstacle having a heart rate less than or equal to a preset heart rate threshold as a still state.
[0138] Exemplarily, the step of determining the motion or still state of an obstacle based on a captured image includes: identifying the object type of the obstacle based on the captured image; determining whether the obstacle is a living entity based on the object type; if the obstacle is a living entity, determining that the obstacle is in motion; or, if the obstacle is an inanimate entity, determining that the obstacle is still.
[0139] In a feasible embodiment, the type of obstacles in the captured image is identified to obtain the object type of the obstacles, for example, the obstacles are vases, switches, lamps, cats, dogs, people, etc. According to the object type, it is determined whether the obstacle is a living entity. For example, animals, humans, etc. are living entities. Even if they block the projection screen, they are likely to move in a short time. Therefore, there is no need to avoid such obstacles. In the case where the obstacles are living entities, it is determined that the obstacles are in motion. Vases, switches, lamps, etc. are inanimate entities. Their blocking of the projection screen will be long-term and stable. Therefore, it is necessary to avoid such obstacles. In the case where the obstacles are inanimate entities, it is determined that the obstacles are in a stationary state. Among them, the object type of the obstacle can be identified through a neural network model and it can be determined whether the obstacle is a living entity. For example, the outline of the obstacle is identified in the captured image, and the outline of the obstacle is identified through the trained neural network model to obtain the object type of the obstacle, so as to output the classification result of whether it belongs to a living entity according to the object type.
[0140] Step C20: determining the display influence degree of the obstacle according to the display influence parameter and a preset weight matching the display influence parameter.
[0141] In a feasible embodiment, the display influence degree of the obstacle is determined according to the display influence parameter and a preset weight matching the display influence parameter, wherein the display influence degree can be represented by a numerical value, and there is a positive correlation between the numerical value and the display influence degree.
[0142] Exemplarily, the numerical value corresponding to each display influence parameter is determined, the product between the numerical value corresponding to each display influence parameter and its matching preset weight is calculated, and then the sum of each product is calculated to obtain an influence score, and the influence score is used to measure the degree of display influence.
[0143] Step A105, determining an obstacle avoidance object from the obstacles according to the displayed impact degree;
[0144] Step A106, performing obstacle avoidance correction on the projection image according to the obstacle avoidance object, so that the projection image avoids the obstacle avoidance object.
[0145] In a feasible embodiment, according to the degree of display influence of obstacles, more critical obstacle avoidance objects are screened out from obstacles, and obstacle avoidance display is performed on the projection screen for the obstacle avoidance objects to avoid the obstacle avoidance objects; and non-obstacle avoidance objects among obstacles can be ignored in the obstacle avoidance display process. This is because non-obstacle avoidance objects may only slightly affect or not affect the display effect of the projection screen at all, or may be objects that are too large in area and cause the display screen to be too small after obstacle avoidance; in this case, ignoring these objects for obstacle avoidance display can optimize the layout of the projection screen and make the final presented screen more complete and coordinated.
[0146] In one feasible implementation, step A105, the step of determining obstacle avoidance objects from obstacles based on the displayed influence degree includes: determining an influence degree threshold value based on the displayed influence degree of the obstacle; and determining obstacles having a displayed influence degree greater than the influence degree threshold value as obstacle avoidance objects.
[0147] In a feasible embodiment, an influence degree threshold is set according to the display influence degree of the obstacle; an obstacle whose display influence degree is greater than the influence degree threshold is determined as an obstacle avoidance object. Since the greater the display influence degree, the higher the negative impact degree of the obstacle on the projection screen, or the higher the display quality of the projection screen after avoiding the obstacle, therefore, when the display influence degree of the obstacle is greater than the preset influence degree threshold, it indicates that the negative impact degree of the obstacle on the projection screen is higher, or the higher the display quality of the projection screen after avoiding the obstacle, the obstacle is determined as an obstacle avoidance object. When the display influence degree of the obstacle is less than or equal to the preset influence degree threshold, it indicates that the negative impact degree of the obstacle on the projection screen is lower, or the lower the display quality of the projection screen after avoiding the obstacle, the obstacle is determined as a non-obstacle avoidance object, and the obstacle avoidance display is not performed.
[0148] Exemplarily, when there are multiple obstacles in the projection screen, the obstacles are sorted based on the display impact degree and a preset ratio is obtained; an impact degree threshold is determined based on the display impact degree corresponding to the obstacles at the preset ratio; obstacles with a display impact degree greater than the impact degree threshold are determined as obstacle avoidance objects; wherein the preset ratio can be set according to demand.
[0149] Exemplarily, when there is an obstacle in the projection picture, a preset impact degree threshold is obtained; when the display impact degree of the obstacle is greater than the preset impact degree threshold, the obstacle is determined as an obstacle avoidance object.
[0150] Exemplarily, the first obstacle position information of the obstacle avoidance object in the image coordinate system is determined; based on the perspective matrix, the first obstacle position information is perspective transformed to obtain the second obstacle position information of the obstacle avoidance object in the spatial coordinate system. Based on the second obstacle position information, multiple correction information for obstacle avoidance display is obtained, and the correction information with the largest display area after correction is determined as the target correction information; based on the target correction information, the projection picture is corrected so that the projection picture avoids the obstacle avoidance object display.
[0151] Exemplarily, when the target projection function is in the distortion and obstacle avoidance synchronous correction mode, the target projection area and obstacle avoidance object in the captured image are identified, wherein the target projection area can be used as a reference for the projection screen, and can be a screen specifically used for projection, or a specific display area pre-defined and marked on the projection wall; and the distortion and obstacle avoidance synchronous correction mode represents the simultaneous triggering of the distortion correction mode and the obstacle avoidance correction mode. Determine the first screen position information and the first obstacle position information of the target projection area and the obstacle avoidance object in the image coordinate system. Obtain the second screen position information of the projection screen in the spatial coordinate system with the projection device as a reference; generate a perspective matrix based on the first screen position information and the second screen position information; based on the perspective matrix, perform perspective transformation on the first screen position information and the first obstacle position information to obtain the second screen position information and the second obstacle position information of the target projection area and the obstacle avoidance object in the spatial coordinate system. According to the second screen position information and the second picture position information, the distortion information of the projection picture is determined, including: the distortion angle and the distortion aspect ratio; according to the second screen position information and the second obstacle position information, the position information of the projectable area after removing the obstacle is determined; according to the trapezoidal distortion information and the projectable area position information, the correction information is determined, and the projection picture is corrected based on the correction information, so that the projection picture is imaged on the screen without trapezoidal distortion and is displayed avoiding obstacles.
[0152] In this embodiment, by analyzing the degree of influence of obstacles on the display of the projection screen, it is distinguished which obstacles are key obstacle avoidance objects (for example, objects that cause significant interference to the projection screen) and which objects may only have a slight impact or no impact at all; thereby achieving highly flexible obstacle avoidance display, avoiding only those obstacle avoidance objects that seriously affect the user's viewing experience, thereby maximizing the retention of the effective area of the projection screen. Conventional obstacle avoidance methods often adopt a conservative strategy, that is, avoiding obstacles comprehensively, which may lead to a significant reduction in the projection screen. The embodiment of the present application achieves efficient use of the spatial resources of the projection environment by carefully evaluating the degree of influence of obstacles. While avoiding key obstacles, the projection screen retains and optimizes the layout of the projection screen as much as possible, and makes the final presented screen more complete and coordinated, improving the overall visual effect.
[0153] In a feasible implementation manner, before the step of correcting the projection image according to the triggered target projection function and the current display content in step S42, the method further includes:
[0154] Step B104: determine whether there is an obstacle in the projection image based on the collected image, wherein the obstacle may be an object that blocks at least a portion of the projection image.
[0155] Exemplarily, contour recognition is performed on the captured image to obtain a first contour set; based on the picture position information, the contour corresponding to the projection picture in the first contour set is determined, and it is judged whether there is a contour in the first contour set that at least partially overlaps with the contour corresponding to the projection picture; if so, it is determined that there is an obstacle in the projection picture.
[0156] Step B105: when there is an obstacle in the projection image, determine that the target projection function is an obstacle avoidance function.
[0157] In a feasible embodiment, when there is an obstacle in the projection image, it indicates that there is an object that at least partially blocks the projection image, affecting the user's viewing experience. Therefore, the target projection function is determined to be an obstacle avoidance function, and by triggering the obstacle avoidance function, the projection image can be displayed without obstacles.
[0158] In this embodiment, the automatic triggering of various projection functions is achieved through the sensor provided by the external device, thereby improving the convenience of using the projection device.
[0159] Based on the first, second, third, fourth and / or fifth embodiments, a sixth embodiment of the projection method of the present application is proposed. In this embodiment, the image acquisition step S42 is a depth of field image. According to the triggered target projection function and the current display content, the step of correcting the projection image includes:
[0160] Step A107, when the target projection function is an eye protection function, determining an eye protection monitoring area in the depth of field image according to the current display content, wherein the eye protection monitoring area surrounds the projection screen;
[0161] In a feasible embodiment, the sensor of the external device may include a TOF sensor, and the captured image acquired by the TOF sensor may be a depth of field image; wherein the depth of field image can intuitively show the distance relationship between different objects in the scene and the TOF sensor, wherein a near object may appear as a darker color or a more obvious outline in the depth of field image, while a far object may appear as a lighter color or a more blurred outline. In the case where the target projection function is an eye protection function, the eye protection monitoring area surrounding the projection screen in the depth of field image is determined according to the current display content.
[0162] Exemplarily, the display area of the projection screen is determined according to the currently displayed content; the monitoring area of the eye protection monitoring area is determined according to a preset ratio and the display area of the projection screen; then the position information of the eye protection monitoring area in the image coordinate system is determined according to the position information of the projection screen in the image coordinate system (i.e., the first screen position information) and the area of the monitoring area, thereby determining the eye protection monitoring area in the captured image.
[0163] For example, refer to Figure 4 The external device is arranged in a fixed slot of the projection device 210, and the external device is provided with a TOF sensor 220. The projection picture projected by the projection device 210 is in the projection display area 211, and the projection display area 211 is surrounded by a preset eye protection monitoring area 230. The depth of field image 221 collected by the TOF sensor 220 includes the projection display area 211 and the eye protection monitoring area 230.
[0164] Step A108, monitoring whether there is a target moving object in the eye protection monitoring area;
[0165] In a feasible embodiment, based on the depth of field image, it is dynamically monitored whether there is a target moving object in the eye protection monitoring area; when there is no target moving object in the eye protection monitoring area, it indicates that no user is ready to pass through the projection screen of the projection device, then step A108 is continued to be executed to monitor whether there is a target moving object in the eye protection monitoring area.
[0166] Exemplarily, the target moving object may be a person.
[0167] Step A109, when a target moving object is detected in the eye protection monitoring area, the brightness of the projection image is reduced.
[0168] In a feasible embodiment, when there is a target moving object in the eye protection monitoring area, it indicates that a user may be about to cross into the projection screen of the projection device. Since high-brightness projection light irradiating the human eye may cause potential damage to vision, the brightness of the projection screen is reduced to a softer, non-glaring safety level; this effectively prevents the light damage that the user may suffer when inadvertently stepping into the area where the projection screen is located. Since the projection screen is surrounded by the eye protection display area, the user's movement trajectory and speed can be captured in advance, so there is enough time to predict the user's next move and respond in advance.
[0169] In one feasible implementation, step A109, the step of reducing the screen brightness of the projection screen includes: determining the first object position information of the target moving object in the image coordinate system of the depth of field image; determining the target eye protection area in the projection screen based on the first object position information, and reducing the screen brightness of the target eye protection area.
[0170] In one feasible implementation, the step of determining first object position information of the target moving object in the image coordinate system of the depth of field image includes: obtaining the head contour of the target moving object and determining the minimum circumscribed rectangle of the head contour; and determining the position information of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system as the first object position information.
[0171] In one feasible implementation, the step of determining the target eye protection area in the projection screen according to the first object position information includes: respectively obtaining the first screen position information of the projection screen in the image coordinate system, and the second screen position information of the projection screen in the projection coordinate system with the projection device as a reference; generating a perspective matrix according to the first screen position information and the second screen position information; based on the perspective matrix, performing a perspective transformation on the first object position information to obtain the second object position information of the target moving object in the projection coordinate system; and determining the target eye protection area according to the second screen position information and the second object position information.
[0172] For example, refer to Figure 5 , perform contour recognition on the target moving object to obtain the head contour of the target moving object; determine the minimum circumscribed rectangle of the head contour, and determine the coordinates of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system as the first moving object position information. Perform perspective change on the first moving object position information based on the perspective matrix to obtain the second moving object position information of the target moving object in the projection coordinate system. According to the first preset ratio and the maximum and minimum values of the second moving object position information in the longitudinal direction, determine the boundary of the target eye protection area 212 in the longitudinal direction of the projection coordinate system; determine the boundary of the projection display area 211 in the transverse direction of the projection coordinate system as the boundary of the target eye protection area 212 in the transverse direction of the projection coordinate system; and then determine the target eye protection area 212 according to the boundaries of the target eye protection area 212 in the transverse and longitudinal directions of the projection coordinate system. The target eye protection area 212 is set on a specific horizontal plane within the projection display area 211, and the horizontal plane is located in the height range where the head of the external device is located when the target moving object passes through the projection display area 211, so as to maximize the protection of the user's eyes from damage by direct or scattered projection light.
[0173] For example, refer to Figure 6, perform contour recognition on the target moving object to obtain the head contour of the target moving object; determine the minimum circumscribed rectangle of the head contour, and determine the coordinates of each vertex of the minimum circumscribed rectangle of the head contour in the image coordinate system as the first moving object position information. Perform perspective changes on the first moving object position information based on the perspective matrix to obtain the second moving object position information of the target moving object in the projection coordinate system. According to the second preset ratio and the second moving object position information, the regional position information of the target eye protection area 212 in the projection coordinate system is obtained; and the regional position information will be dynamically updated according to the change of the second moving object position information, refer to Figure 6 The target eye protection area 212 in the solid line frame is the current area position of the target eye protection area 212, and the target eye protection area 212 in the dotted line frame is the area position of the target eye protection area 212 after following the target moving object. The target eye protection area 212 can always follow the displacement of the target moving object in the projection display area 211, wherein, in the process of the target moving object moving in the horizontal axis direction and / or the vertical axis direction of the projection coordinate system, the target eye protection area 212 can follow the displacement of the target moving object in the horizontal axis direction and / or the vertical axis direction of the projection coordinate system and move accordingly; in the process of the target moving object moving close to or away from the projection device, the second moving object position information of the determined target moving object will also change accordingly; that is, when the target moving object is close to the projection device, the area corresponding to the second moving object position information increases accordingly, and when the target moving object is away from the projection device, the area corresponding to the second moving object position information decreases accordingly. Similarly, the area corresponding to the target eye protection area 212 is positively correlated with the area corresponding to the second moving object position information, so the area corresponding to the target eye protection area 212 changes with the change of the area corresponding to the second moving object position information. Thus, on the basis of protecting the user's eyes from direct or scattered projection light, the area of the target eye protection area 212 is minimized as much as possible to reduce the impact on the display effect of the projection picture.
[0174] In a feasible implementation, the step of reducing the brightness of the projection display area includes: generating a black mask in the projection image to reduce the brightness of the projection image. The black mask is generated in the projection image by superimposing one or more black layers of a specific shape and size on the projection image of the projection device, thereby blocking or reducing the brightness of the projection image to reduce direct damage to human eyes.
[0175] For example, the brightness of the projection picture can be reduced by reducing the grayscale value of the projection picture.
[0176] Exemplarily, the brightness of the entire projection image may be reduced.
[0177] Exemplarily, a local target eye protection area can be determined from the projected image, and the image brightness of the target eye protection area can be locally reduced.
[0178] In this embodiment, through the instant and intelligent adjustment of the projection brightness, the high-brightness projection light is effectively prevented from directly irradiating the human eye, greatly reducing the potential threat to vision, and realizing the eye protection display of the projection device. In addition, the TOF sensor can still maintain excellent recognition ability in a dark light environment, without being restricted by light conditions, ensuring all-weather, uninterrupted human eye protection.
[0179] In a feasible implementation manner, before the step of correcting the projection image according to the triggered target projection function and the current display content in step S42, the method further includes:
[0180] Step B106, judging whether there is a target moving object in the eye protection monitoring area according to the depth of field image;
[0181] Step B107: when there is a target moving object in the eye protection monitoring area, determining that the target projection function is an eye protection function.
[0182] In one feasible implementation, the step of monitoring whether there is a target moving object in the eye protection monitoring area includes: determining a display parameter difference value between the eye protection monitoring areas of a plurality of depth of field images acquired continuously, and determining that there is a candidate moving object in the eye protection monitoring area when the display parameter difference value is greater than a preset difference threshold; performing contour recognition on the candidate moving object to obtain a candidate contour; and determining that the candidate moving object is a target moving object when the similarity between the candidate contour and a preset portrait contour is greater than a preset contour similarity threshold.
[0183] In a feasible implementation, before the step of determining the candidate moving object as the target moving object, it also includes: performing facial feature recognition on the candidate moving object; when the candidate moving object is recognized to have facial features, executing the step of determining the candidate moving object as the target moving object.
[0184] In this embodiment, when there is a target moving object in the eye protection monitoring area, it indicates that a user is about to pass through the projection display area corresponding to the projection screen, thereby automatically triggering the eye protection function, thereby improving the convenience of using the projection device.
[0185] Based on the above first, second, third, fourth, fifth and / or sixth embodiments, a seventh embodiment of the projection method of the present application is proposed. In this embodiment, step S42, the step of correcting the projection image according to the triggered target projection function and the current display content includes:
[0186] Step A110, when the target projection function is a focus function, determining the image clarity of the projection image according to the current display content;
[0187] Step A111, determining a focus compensation value according to a difference between the picture clarity and the target clarity;
[0188] Step A112: performing focus correction on the projection image based on the focus compensation value.
[0189] In a feasible embodiment, when the target projection function is a focus function, the picture clarity of the projection picture is determined according to the current display content, and the target clarity is obtained; then, the difference between the picture clarity and the target clarity is calculated to obtain a focus compensation value; then, based on the focus compensation value, the projection picture is adjusted to make the projection picture clear.
[0190] In this embodiment, the automatic focusing function of the projection device is realized through the data collected by the sensor, thereby improving the display effect of the projection picture.
[0191] In a feasible implementation manner, before the step of correcting the projection image according to the triggered target projection function and the current display content in step S42, the method further includes:
[0192] Step B108, determining the image clarity of the projection image according to the current display content, wherein the image clarity may be a resolution;
[0193] It should be understood that the image sensor can be in preview mode first to collect images with a lower frame rate, which helps to reduce resource consumption during preview and improve the response speed of the system. When the target projection function is triggered, the image sensor can be switched to normal mode to collect images with a high frame rate, thereby improving the accuracy of the target projection function.
[0194] Image resolution refers to the precision of the image, which can be specifically expressed as the number of pixels displayed in the image. The higher the resolution, the denser the pixels, the more details that can be displayed, and the clearer the image. On the contrary, the lower the resolution, the sparser the pixels on the image, the fewer details that can be displayed, and the blurrier the image.
[0195] Step B109, determining whether the picture resolution is less than a preset resolution threshold;
[0196] Step B110: when the picture resolution is less than the resolution threshold, determining that the target projection function is a focus function.
[0197] In a feasible embodiment, it is determined whether the picture resolution is less than a preset resolution threshold; when the picture resolution is less than the resolution threshold, it indicates that the projection picture is relatively blurry at this time. In order to improve the clarity of the projection picture, the target projection function is determined to be a focus function.
[0198] In this embodiment, the focus function is automatically triggered by the data collected by the sensor, thereby improving the display effect of the projection picture.
[0199] Based on the above first, second, third, fourth, fifth, sixth and / or seventh embodiments, an eighth embodiment of the projection method of the present application is proposed. In this embodiment, step S30, the step of determining the first picture position information of the projection picture in the image coordinate system of the captured image according to the calibration reference identifier includes:
[0200] Step S31, performing contour recognition on the collected image to obtain a first contour set, and filtering out a target marker contour corresponding to the calibration reference marker from the first contour set according to the contour shape of the calibration reference marker;
[0201] In a feasible embodiment, contour recognition is performed on the collected image to identify the contours corresponding to each object in the collected image, and the contours are combined to generate a first contour set. Since there is a calibration reference mark in the projection image, and the calibration reference mark has a specific contour shape, the first contour set can be contour screened according to the contour shape of the calibration reference mark to obtain multiple target mark contours with contour shapes that are the same as or similar to the contour shape of the calibration reference mark, and the target mark contour corresponds to the contour of the calibration reference mark in the collected image.
[0202] It should be understood that due to the position setting of the external device, the correction reference mark displayed in the captured image may have a certain degree of distortion. Therefore, a first similarity threshold can be preset, and the contour similarity between the contour shape of each contour in the first contour set and the contour shape of the correction reference mark can be determined, and the contour with a contour similarity greater than the first similarity threshold is determined as the target mark contour.
[0203] Exemplarily, the captured image is gray-processed to obtain a gray-scale image to avoid interference from color stripes in the image; then, the edges in the gray-scale image are detected using an edge detection algorithm, and then contour search is performed to fit the contours corresponding to each object in the captured image, and these are combined to generate a first contour set.
[0204] Exemplarily, the correction reference marker is a polygon, and therefore the correction reference marker has a specific number of vertices; then, based on the contour shape of the correction reference marker, the number of vertices of the correction reference marker is determined, and based on the number of vertices of the correction reference marker, multiple target marker contours with the same number of vertices as the correction reference marker are screened out from the first contour set.
[0205] Exemplarily, the correction reference marker is a triangle, and therefore the number of vertices of the correction reference marker is 3, and then the contour with the number of vertices of 3 in the first contour set is determined as the target marker contour.
[0206] Exemplarily, since the projection screen of the projection device is a rectangle, a correction reference marker can be set at each vertex of the correction reference screen, so that the number of correction reference markers of the correction reference screen is 4; then, after filtering out the target marker contours corresponding to the correction reference marker from the first contour set, it is determined whether the number of target marker contours is greater than or equal to 4; when the number of target marker contours is greater than or equal to 4, step S32 and subsequent steps are executed; when the number of target marker contours is less than 4, indicating that the contours corresponding to all the correction reference markers have not been identified from the acquired image, step S31 is executed, the step of performing contour recognition on the acquired image is performed to re-perform contour recognition on the acquired image, and / or step S20 is executed to obtain the acquired image acquired by an external device.
[0207] In one feasible implementation, step S31, the step of selecting the target marker contour corresponding to the calibration reference marker from the first contour set according to the contour shape of the calibration reference marker, comprises:
[0208] Step S311, determining the number of vertices of the correction reference marker according to the contour shape of the correction reference marker, and selecting a plurality of contours having the same number of vertices as the correction reference marker from the first contour set to obtain a second contour set;
[0209] In a feasible embodiment, the number of vertices of the correction reference marker is determined according to the contour shape of the correction reference marker, and multiple contours having the same number of vertices as the correction reference marker are screened out from the first contour set to obtain the second contour set.
[0210] It should be understood that, since the projection screen is a rectangle, the calibration reference mark can be set to a non-quadrilateral polygon, such as a triangle, a pentagon, a hexagon, etc.
[0211] Step S312, determining the regional grayscale value within the region defined by each contour included in the second contour set in the acquired image;
[0212] Step S313: Filter out target identification contours from the second contour set according to the grayscale values of each region.
[0213] In a feasible embodiment, although the number of vertices of the correction reference mark can effectively screen out some contours as the initial screening result, there may be some obstacles in the captured image, and under certain shooting angles and lighting conditions, the number of vertices of the contour edge is exactly the same as the number of vertices of the correction reference mark. In order to further enhance the accuracy and robustness of contour recognition of the correction reference mark, the grayscale values of the corresponding regions in the regions defined by the contours included in the second contour set in the captured image are determined, and the target mark contour corresponding to the correction reference mark is screened out from the second contour set according to the grayscale value.
[0214] Exemplarily, a grayscale value reference range is determined based on the grayscale value of the corrected reference mark in the obstacle avoidance reference map; contours with regional grayscale values within the grayscale value reference range are screened out from the second contour set and determined as target mark contours.
[0215] Exemplarily, the magnitude relationship between the grayscale value in the area corresponding to each correction reference mark in the correction reference image and the grayscale value at the outer preset position thereof is determined as the grayscale value reference relationship; for example, the grayscale value reference relationship is: the grayscale value in the area corresponding to the correction reference mark is less than the grayscale value at the outer preset position thereof, or the grayscale value in the area corresponding to the correction reference mark is greater than the grayscale value at the outer preset position thereof. Then, in the acquired image, the first area grayscale value corresponding to each area defined by each contour included in the second contour set and the second area grayscale value at the outer preset position of each contour included in the second contour set are determined; then, the contour whose magnitude relationship between the first area grayscale value and the second area grayscale value is the same as the grayscale value reference relationship is selected from the second contour set and determined as the target mark contour.
[0216] It should be understood that the above scheme does not limit the order of the steps; the step of selecting the target identification contour corresponding to the correction reference identification from the first contour set according to the contour shape of the correction reference identification may also include: determining the regional grayscale value within the area defined by each contour included in the first contour set in the acquired image; selecting multiple contours that meet the preset grayscale value conditions from the first contour set according to the grayscale value of each region, and generating a preliminary contour set; determining the number of vertices of the correction reference identification according to the contour shape of the correction reference identification, and selecting multiple contours with the same number of vertices as the correction reference identification from the preliminary contour set to obtain the target identification contour.
[0217] For example, in Figure 7In (a), the captured image 100 includes a projection screen 110, and the projection screen 110 is displayed as a preset calibration reference screen, and calibration reference marks 111 are respectively set at each vertex of the projection screen 110, and the calibration reference marks 111 are triangles; the captured image 100 also includes obstacles (P8, P7 and P9) and a curtain 130. Contour recognition is performed on the captured image 100 to obtain a first contour set, including: P1 to P9; since the calibration reference mark 111 is a triangle, the number of vertices of the calibration reference mark 111 is 3, and then the contour with vertices of 3 in the first contour set is determined as a contour with the same shape as the contour corresponding to the calibration reference mark 111, and a second contour set is obtained, including: P3, P4, P5, P6 and P7. In the calibration reference picture, the color of the inner area of the preset calibration reference mark 111 is gray, and the color of the remaining area of the calibration reference picture is white. At the same time, the preset position outside the outline when the gray value magnitude relationship is determined is set to be perpendicular to the longest side of the triangle and extending to the outside of the triangle by a preset distance, that is, the color of this position is white. Therefore, it can be determined that the preset gray value reference relationship is: the gray value in the corresponding area of the calibration reference mark 111 is less than the gray value at the preset position outside it. Then, the grayscale values of the first regions corresponding to the regions defined by P3, P4, P5, P6 and P7 in the captured image 100 and the grayscale values of the second regions at the preset positions outside P3, P4, P5, P6 and P7 (i.e., corresponding to Q1, Q2, Q3, Q4 and Q5, respectively) are determined, and then the size relationship between the grayscale values of the first regions and the grayscale values of the second regions corresponding to P3, P4, P5, P6 and P7 is further obtained, wherein, for P3, P4, P5 and P6, the grayscale value in the region corresponding to the correction reference mark 111 is less than the grayscale value at the preset position outside thereof, and for P7, the grayscale value in the region corresponding to the correction reference mark 111 is equal to the grayscale value at the preset position outside thereof, therefore, P3, P4, P5 and P6 are determined to be the target mark contours. Furthermore, the corner points of the captured image 100 are identified to obtain a first corner point set, and the target corner points corresponding to the vertices of the projection screen 110 are screened out from the first corner point set according to the center points of the target identification contours (P3, P4, P5 and P6). The first screen position information is determined according to the position information of each target corner point in the image coordinate system. Since the captured image contains both obstacles and the screen 130, in the process of obstacle avoidance display, it is necessary to avoid the obstacle avoidance object in the obstacle and to image in the screen 130. Among the obstacles, obstacle P9 is located within the range defined by the screen 130, and the display impact of obstacle P9 is greater than the display impact threshold, while obstacles P8 and obstacle P7 are located outside the range defined by the screen 130 and will not affect the projection screen 110; therefore, obstacle P9 is determined to be an obstacle avoidance object.According to the first picture position information, the first obstacle position information of the obstacle avoidance object in the image coordinate system and the first screen position information of the screen 130 in the image coordinate system are determined; according to the first picture position information, the first obstacle position information and the first screen position information, the projection picture 110 is corrected so that the projection picture 110 is imaged on the screen 130, and the obstacle P9 is avoided by proportionally scaling the display size of the projection picture 110. The correction result is as follows. Figure 7 (b) as shown.
[0218] Step S32, performing corner point recognition on the captured image to obtain a first corner point set, and filtering out target corner points corresponding to vertices of the projection image from the first corner point set according to the center points of the contours of the target identifications;
[0219] In a feasible embodiment, corner point recognition is performed on the captured image to obtain multiple corner points, which are combined to generate a first corner point set, wherein a corner point refers to an intersection of two or more edges; and since the target identification contour corresponds to the contour of the correction reference identification in the captured image, multiple target corner points can be screened out from the first corner point set based on the center point of the target identification contour, wherein the target corner points correspond to the corner points formed by the edges of the projection picture in the captured image (i.e., the vertices of the projection picture).
[0220] Exemplarily, since the correction reference picture is pre-set, the minimum distance between the center point of each correction reference marker and the vertex of the correction reference picture can be determined, and based on the minimum distance, the target corner points corresponding to each vertex of the projection picture are filtered out from the first corner point set.
[0221] In a feasible implementation manner, the calibration reference mark is a polygon, and step S32, performing corner point recognition on the captured image to obtain a first corner point set, and filtering target corner points corresponding to the vertices of the projection image from the first corner point set according to the center points of the contours of the target marks, comprises:
[0222] Step S321, determining the angular center distance between each corner point in the first corner point set and the center point of each target marker contour;
[0223] Step S322, sorting the corner points in the first corner point set according to the corner-center distances associated with the center points of the contours of the target markers, to obtain a sorting result of the corner points associated with the center points of the contours of the target markers;
[0224] Step S323, determining a target ranking associated with the corner point sorting result according to the number of vertices identified by the calibration reference;
[0225] Step S324, determining the target corner point from the sorting results of each corner point according to the target ranking.
[0226] In a feasible embodiment, the distance between each corner point in the first corner point set and the center point of each target identification contour is determined to obtain the angle-center distance associated with the center point of each target identification contour; and each target identification contour is used as a reference, and the corner points in the first corner point set are sorted based on the angle-center distance associated therewith to obtain the sorting result of the corner points associated with the center point of each target identification contour. Since the correction reference marker is a polygon, the target ranking can be determined according to the number of vertices of the correction reference marker. Then, according to the target name, the target corner point is determined from the sorting result of the corner points associated with the center point of each target identification contour.
[0227] Exemplarily, the number of vertices identified by the correction reference is added by one to obtain the target ranking.
[0228] For example, refer to Figure 8 , the captured image 100 includes a projection screen 110, and the projection screen 110 is displayed as a preset correction reference screen, and correction reference marks 111 are respectively set at each vertex of the projection screen 110, and the correction reference marks 111 are triangles; the captured image 100 also includes obstacles (P8, P7 and P9) and a curtain 130. Contour recognition is performed on the captured image 100 to obtain a first contour set, including: P1 to P9. According to the contour shape corresponding to the correction reference mark 111, the target mark contour corresponding to the correction reference mark 111 is filtered out from the first contour set, namely P3, P4, P5 and P6. Corner point recognition is performed on the captured image 100 to obtain a first corner point set, wherein, Figure 3Each black × represents a corner point in the first corner point set. Since the correction reference mark 111 is a triangle, the target ranking is determined to be 3 plus one, that is, 4. Determine the distance between each corner point in the first corner point set and the center point of each target mark outline, and obtain the angle-center distance associated with the center point of each target mark outline; and use each target mark outline as a reference, sort the corner points in the first corner point set based on the angle-center distance associated with it, and obtain the corner point sorting result associated with the center point of each target mark outline, wherein the shorter the angle-center distance, the higher the ranking. Taking P3 as a reference, the top 4 corner points in the corner point sorting result include: A31, A32, A33 and A34; wherein A31, A32 and A33 are the corner points corresponding to the vertices of P3, therefore, the corner point sorting result of the corner point corresponding to the vertex of the projection screen 110 should be the 4th, that is, A34. Similarly, with P4 as a reference, the top 4 corner points in the corner point sorting result include: A41, A42, A43 and A44; among them, A41, A42 and A43 are the corner points corresponding to the vertices of P4, so the corner point sorting result corresponding to the vertices of the projection screen 110 should be the 4th, that is, A44. With P5 as a reference, the top 5 corner points in the corner point sorting result include: A51, A52, A53 and A54; among them, A51, A52 and A53 are the corner points corresponding to the vertices of P5, so the corner point sorting result corresponding to the vertices of the projection screen 110 should be the 4th, that is, A54. Taking P6 as a reference, the first 6 corner points in the corner point sorting result include: A61, A62, A63 and A64; among them, A61, A62 and A63 are the corner points corresponding to the vertices of P6, so the corner point sorting result corresponding to the vertices of the projection screen 110 should be the 4th, that is, A64. Thus, the target corner points corresponding to the vertices of the projection screen 110 are obtained, that is, A34, A44, A54 and A64.
[0229] Step S33, determining the first picture position information according to the position information of each target corner point in the image coordinate system.
[0230] In a feasible embodiment, since the target corner points corresponding to the vertices of the projection screen are determined and the projection screen is rectangular, the first screen position information of the projection screen can be determined by the position information of the target corner points in the image coordinate system.
[0231] Exemplarily, the first picture position information includes coordinates of each of four vertices of the projection picture in the image coordinate system.
[0232] In this embodiment, contour recognition is performed on the captured image to obtain a first contour set, and based on the contour shape of the correction reference marker, the target marker contour corresponding to the correction reference marker is screened out from the first contour set; then, corner point recognition is performed on the captured image to obtain a first corner point set, and based on the center point of each target marker contour, the target corner points corresponding to the four vertices of the projection screen are screened out from the first corner point set; and since the projection screen is a rectangle, the position information of the projection screen in the image coordinate system can be determined through the target corner points, thereby realizing fast and accurate positioning of the projection screen; through the setting of specific correction reference markers, not only the positioning process of the projection screen during the projection obstacle avoidance display process is simplified, but also the positioning accuracy is improved, thereby further improving the obstacle avoidance accuracy and efficiency.
[0233] The present application embodiment provides a projection device, referring to Fig. 9 The device is applied to a projection device, the projection device is connected to an external device, and the device includes:
[0234] The display module 101 is configured to display a projection image according to a preset calibration reference image obtained from an external device;
[0235] An acquisition module 102 is configured to acquire an image acquired by an external device, wherein the image includes a projection screen, and the projection screen includes a calibration reference mark;
[0236] A determination module 103 is configured to determine first picture position information of the projection picture in the image coordinate system of the captured image according to the calibration reference identifier;
[0237] The correction module 104 is configured to correct the projection picture according to the first picture position information.
[0238] The projection device provided in the embodiment of the present application adopts the projection method in the above embodiment, which can effectively ensure that the various functions of the projection device are realized while effectively reducing the manufacturing cost of the projection device. Compared with conventional technology, the beneficial effects of the projection device provided in the embodiment of the present application are the same as the beneficial effects of the projection method provided in the above embodiment, and other technical features in the projection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0239] An embodiment of the present application provides a projection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the projection method in the above-mentioned embodiment 1.
[0240] Reference below Fig.10, respectively show the structural schematic diagrams of the projection device suitable for implementing the embodiments of the present application. The projection device in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The projection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0241] like Fig.10 As shown, the projection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the projection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the projection device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a projection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0242] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0243] The projection device provided in the embodiment of the present application adopts the projection method in the above embodiment, which can effectively ensure that the various functions of the projection device are realized while effectively reducing the manufacturing cost of the projection device. Compared with conventional technology, the beneficial effects of the projection device provided in the embodiment of the present application are the same as the beneficial effects of the projection method provided in the above embodiment, and other technical features in the projection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0244] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0245] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0246] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the projection method in the above embodiment.
[0247] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0248] The computer-readable storage medium may be included in the projection device; or may exist independently without being assembled into the projection device.
[0249] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the projection device, the projection device: displays a projection picture according to a preset correction reference picture obtained from an external device; obtains a captured image captured by the external device, wherein the captured image includes a projection picture, and the projection picture contains a correction reference identifier; determines the first picture position information of the projection picture in the image coordinate system of the captured image according to the correction reference identifier; and corrects the projection picture according to the first picture position information.
[0250] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0251] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0252] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0253] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned projection method, which can effectively ensure that the various functions of the projection device are realized while effectively reducing the manufacturing cost of the projection device. Compared with conventional technologies, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the projection method provided in the above-mentioned embodiment, and will not be repeated here.
[0254] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A projection method, characterized in that: The method is applied to a projection device, the projection device is connected to an external device, and the method comprises: Displaying a projection picture according to a preset calibration reference picture obtained from the external device; Acquire a captured image captured by the external device, wherein the captured image includes the projection picture, and the projection picture includes a calibration reference mark; Determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier; The projection picture is corrected according to the first picture position information.
2. The method according to claim 1, characterized in that The housing of the projection device is provided with a fixing groove, and the fixing groove is used to accommodate the external device. Before the step of displaying the projection picture according to the preset calibration reference picture obtained from the external device, the method includes: When the external device is in the fixed slot, triggering a connection instruction; According to the connection instruction, a connection is established with the external device.
3. The method according to claim 1, characterized in that The step of correcting the projection picture according to the first picture position information comprises: Determining the current display content of the projection picture according to the first picture position information; The projection picture is corrected according to the triggered target projection function and the current display content.
4. The method according to claim 3, characterized in that The step of correcting the projection picture according to the triggered target projection function and the current display content comprises: In a case where the target projection function is a distortion correction function, determining distortion information of the projection picture according to the current display content; Determining correction information according to the distortion information; Based on the correction information, distortion correction is performed on the projection picture to eliminate the distortion generated by the projection picture.
5. The method according to claim 3, characterized in that The step of correcting the projection picture according to the triggered target projection function and the current display content comprises: In the case where the target projection function is an obstacle avoidance function, determining, according to the current display content, the degree of influence of obstacles existing in the projection picture on the display of the projection picture; determining an obstacle avoidance object from the obstacles according to the displayed influence degree; According to the obstacle avoidance object, obstacle avoidance correction is performed on the projection picture so that the projection picture avoids the obstacle avoidance object.
6. The method according to claim 3, characterized in that The collected image is a depth of field image, and the step of correcting the projection image according to the triggered target projection function and the current display content includes: In a case where the target projection function is an eye protection function, determining an eye protection monitoring area in the depth of field image according to the current display content, wherein the eye protection monitoring area surrounds the projection screen; Monitoring whether there is a target moving object in the eye protection monitoring area; When a target moving object is detected in the eye protection monitoring area, the brightness of the projection image is reduced.
7. The method according to claim 3, characterized in that The step of correcting the projection picture according to the triggered target projection function and the current display content comprises: When the target projection function is a focus function, determining the image clarity of the projection image according to the current display content; Determining a focus compensation value according to a difference between the picture clarity and the target clarity; Based on the focus compensation value, focus correction is performed on the projection picture.
8. The method according to claim 3, characterized in that Before the step of correcting the projection picture according to the triggered target projection function and the current display content, the method further includes: Dynamically acquiring the angular velocity collected by the external device; Determining whether the angular velocity is greater than a preset angular velocity threshold; When the angular velocity is greater than the angular velocity threshold, it is determined that the target projection function is a distortion correction function.
9. The method according to claim 1, characterized in that The step of determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier comprises: Performing contour recognition on the collected image to obtain a first contour set, and filtering out a target marker contour corresponding to the calibration reference marker from the first contour set according to the contour shape of the calibration reference marker; Performing corner point recognition on the collected image to obtain a first corner point set, and filtering out target corner points corresponding to vertices of the projection image from the first corner point set according to the center points of the contours of the target identifications; The first picture position information is determined according to the position information of each target corner point in the image coordinate system.
10. A projection device, characterized in that: The device is applied to a projection device, the projection device is connected to an external device, and the device comprises: A display module, configured to display a projection picture according to a preset calibration reference picture obtained from the external device; An acquisition module, configured to acquire an acquired image acquired by the external device, wherein the acquired image includes the projection picture, and the projection picture includes a calibration reference mark; A determination module, configured to determine first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier; The correction module is configured to correct the projection picture according to the first picture position information.
11. A projection device, characterized in that: The projection device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the projection method according to any one of claims 1 to 9.
12. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the projection method according to any one of claims 1 to 9 are implemented.
