Projection correction method and device, equipment and storage medium

By displaying the correction reference mark on the projection screen and using the image acquisition device to determine the position information, the projection screen is automatically corrected, which solves the problem of low correction efficiency in projection technology and improves the accuracy of the projection screen and user experience.

CN118764597APending Publication Date: 2024-10-11SHENZHEN SKYWORTH INT TRADE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411031727.6
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

Technical Problem

The correction efficiency of the projection picture in the existing projection technology is low and relies on manual operation. It is difficult to quickly and accurately adjust the projection picture to avoid obstacles and correct distortion.

Method used

By displaying the correction reference mark on the projection screen, the image acquisition device is used to obtain the image of the projection screen and the target correction object, the position information of the projection screen and the target object is determined, and the correction adjustment is automatically performed.

Benefits of technology

It achieves fast and accurate correction of projection images, improves the efficiency and accuracy of projection correction, reduces manual intervention, and is suitable for a variety of projection environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764597A_ABST
    Figure CN118764597A_ABST
Patent Text Reader

Abstract

The invention discloses a projection correction method and device, equipment and a storage medium, and relates to the technical field of projection, and the projection correction method comprises the steps that under the condition that a projection picture is displayed as a preset correction reference picture according to a correction demand instruction, an acquired image acquired by image acquisition equipment is acquired, the acquired image comprises a projection picture and a target correction object, and the projection picture comprises a correction reference identifier; determining first picture position information of the projection picture in an image coordinate system of the acquired image according to the correction reference identifier; determining first object position information of the target correction object in an image coordinate system according to the first picture position information; and correcting the projection picture according to the first picture position information and the first object position information. According to the invention, efficient and automatic correction of the projection picture is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of projection technology, and in particular to a projection correction method, device, equipment and storage medium. Background Art

[0002] With the rapid advancement of science and technology, image projection technology has been widely integrated into people's daily lives, and the continuous expansion of its application areas has prompted people to place higher expectations on projection effects. However, current image projection technology still faces many challenges in practical applications, one of which is the uneven quality of the projection image. Common problems include: obstacle interference, projection image distortion, etc., which seriously affect the audience's visual experience. In order to solve the above problems, the projection image needs to be corrected. However, conventional projection image correction is still highly dependent on manual operation, which makes the efficiency of projection correction low.

[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 correction method, device, equipment and storage medium, aiming to solve the problem of low projection correction efficiency.

[0005] To achieve the above object, the present application provides a projection correction method, which includes:

[0006] When the projection screen is displayed as a preset correction reference screen according to the correction requirement instruction, obtaining a captured image captured by an image acquisition device, wherein the captured image includes the projection screen and a target correction object, and the projection screen includes a correction reference identifier;

[0007] Determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier;

[0008] Determining first object position information of the target calibration object in the image coordinate system according to the first picture position information;

[0009] The projection picture is corrected according to the first picture position information and the first object position information.

[0010] In one embodiment, each vertex of the projection picture is respectively provided with a correction reference mark, and the step of determining the first picture position information of the projection picture in the image coordinate system of the acquired image according to the correction reference mark comprises:

[0011] 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;

[0012] 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;

[0013] The first picture position information is determined according to the position information of each target corner point in the image coordinate system.

[0014] In one embodiment, the calibration reference marker is a polygon, and 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:

[0015] Determine the number of vertices of the correction reference mark according to the contour shape of the correction reference mark, and select a plurality of contours having the same number of vertices as the correction reference mark from the first contour set to obtain a second contour set;

[0016] Determining a regional grayscale value within a region defined by each contour included in the second contour set in the acquired image;

[0017] The target identification contour is selected from the second contour set according to the grayscale value of each region.

[0018] In one embodiment, the calibration reference mark is a polygon, and the step of selecting 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:

[0019] Determine the angular center distance between each corner point in the first corner point set and the center point of each target identification contour;

[0020] Sorting the corner points in the first corner point set according to the corner-center distances associated with the center points of the target identification contours to obtain a corner point sorting result associated with the center points of the target identification contours;

[0021] Determining a target ranking associated with the corner point sorting result according to the number of vertices identified by the correction reference;

[0022] According to the target ranking, the target corner point is determined from the sorting results of the corner points.

[0023] In one embodiment, the step of determining first object position information of the target calibration object in the image coordinate system according to the first picture position information comprises:

[0024] removing the target identification contour from the first contour set, and removing the contour corresponding to the projection picture from the first contour set according to the first picture position information, to obtain a third contour set;

[0025] Determining a target object contour corresponding to the target calibration object from the third contour set;

[0026] The first object position information is determined according to the position information of the target object contour in the image coordinate system.

[0027] In one embodiment, the target calibration object includes an obstacle, and the step of determining a target object contour corresponding to the target calibration object from the third contour set includes:

[0028] Each contour included in the third contour set is determined as the target object contour.

[0029] In one embodiment, the target calibration object includes a curtain, and the step of determining a target object contour corresponding to the target calibration object from the third contour set includes:

[0030] Determining an area threshold according to a preset display ratio and a maximum contour area in the third contour set;

[0031] Filtering contours whose contour areas are greater than the area threshold from the third contour set, and generating a fourth contour set;

[0032] A curtain contour corresponding to the curtain is determined from the fourth contour set and used as the target object contour.

[0033] In one embodiment, the target calibration object further includes: an obstacle, and the step of determining the target object contour corresponding to the target calibration object from the third contour set includes:

[0034] The contour in the third contour set that is within the range defined by the curtain contour is determined as the obstacle contour corresponding to the obstacle, and is used as the target object contour.

[0035] In one embodiment, the step of correcting the projection picture according to the first picture position information and the first object position information includes:

[0036] Acquire second picture position information of the projection picture in a spatial coordinate system with the projection device as a reference;

[0037] generating a perspective matrix according to the first picture position information and the second picture position information;

[0038] Based on the perspective matrix, performing perspective transformation on the first object position information to obtain second object position information of the target calibration object in the spatial coordinate system;

[0039] Correction information is determined according to the second picture position information and the second object position information, and the projection picture is corrected based on the correction information.

[0040] In addition, to achieve the above-mentioned purpose, the embodiment of the present application further proposes a projection correction device, which is applied to a projection device, and the device includes:

[0041] An acquisition module is configured to acquire an acquired image acquired by an image acquisition device when the projection screen is displayed as a preset correction reference screen according to a correction requirement instruction, wherein the acquired image includes the projection screen and a target correction object, and the projection screen includes a correction reference identifier;

[0042] A picture position 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;

[0043] an object position determination module, configured to determine first object position information of the target calibration object in the image coordinate system according to the first picture position information;

[0044] The correction module is configured to correct the projection picture according to the first picture position information and the first object 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 correction 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 correction 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 correction 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: when projection correction is required, the projection screen can be displayed as a preset correction reference screen according to the correction requirement instruction, and the correction reference screen is provided with a correction reference mark for correction, so as to facilitate the rapid and accurate positioning of the projection screen; then the captured image including the projection screen and the target correction object captured by the image acquisition device is obtained, and the first screen position information of the projection screen in the image coordinate system of the captured image is accurately determined according to the correction reference mark in the projection screen; then according to the first screen position information, the first object position information of the target correction object in the image coordinate system is further determined, and according to the first screen position information and the first object position information, efficient correction of the projection screen is achieved; so that the projection correction process does not require manual intervention, which greatly improves the efficiency and accuracy of projection correction. The projection correction method in the embodiments of the present application is applicable to a variety of projection environments; for example, when an obstacle appears in the area corresponding to the projection screen, the obstacle can be identified as the target correction object, so as to achieve automatic adjustment of the projection screen to avoid the obstacle. Similarly, if the projection screen is distorted, the preset projection screen can be identified as the target correction object, and the screen can be corrected accordingly. Through this intelligent correction method, the embodiment of the present application not only improves the speed and accuracy of identifying the projection image and the target correction object position information, but also greatly enhances the user experience. 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 correction method of the present application;

[0052] Figure 2 A scenario diagram of a projection correction method provided in an embodiment of the present application Figure 1 ;

[0053] Figure 3 A scenario diagram of a projection correction method provided in an embodiment of the present application Figure 2 ;

[0054] Figure 4A scenario diagram of a projection correction method provided in an embodiment of the present application Figure 3 ;

[0055] Figure 5 This is a flow chart of a more complete embodiment of the present application;

[0056] Figure 6 This is a flow chart of another more complete embodiment of the present application;

[0057] Figure 7 This is a schematic diagram of the framework structure of the projection correction device in the embodiment of the present application;

[0058] Figure 8 It is a schematic diagram of the device structure of the hardware operating environment of the projection device involved in the projection correction method in the embodiment of the present application.

[0059] 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

[0060] 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.

[0061] 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.

[0062] In conventional technology, when faced with obstacles, projection image distortion, and other situations that require projection correction, it is usually highly dependent on manual operation; specifically, the user needs to adjust the four corners of the projection image one by one in the specific operation interface of the projection device, and judge by naked eyes whether the correction effect has been achieved. However, this method is complicated to operate, difficult for ordinary users to master, and the adjustment process is time-consuming. For portable projectors that need to be moved frequently, frequent adjustments are required, and the convenience and correction efficiency are low.

[0063] The embodiment of the present application provides a solution. When projection correction is required, the projection screen can be displayed as a preset correction reference screen according to the correction requirement instruction, and the correction reference screen is provided with a correction reference mark for correction, so as to facilitate the rapid and accurate positioning of the projection screen; then the captured image including the projection screen and the target correction object captured by the image acquisition device is obtained, and the first screen position information of the projection screen in the image coordinate system of the captured image is accurately determined according to the correction reference mark in the projection screen; then according to the first screen position information, the first object position information of the target correction object in the image coordinate system is further determined, and according to the first screen position information and the first object 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 projection correction. The projection correction method in the embodiment of the present application is applicable to a variety of projection environments; for example, when an obstacle appears in the area corresponding to the projection screen, the obstacle can be identified as the target correction object, so as to realize automatic adjustment of the projection screen to avoid the obstacle. Similarly, if the projection screen is distorted, the preset projection screen can be identified as the target correction object, and the screen can be corrected accordingly. Through this intelligent correction method, the embodiment of the present application not only improves the speed and accuracy of identifying the projection image and the target correction object position information, but also greatly enhances the user experience.

[0064] Reference Figure 1 , Figure 1 This is a flowchart of the first embodiment of the projection correction method of the present application.

[0065] It should be noted that the execution subject of the projection correction method may be a projection device, for example, a projector, or a correction device connected to the projection device in communication, and the correction device may be a local device or a network device. This embodiment does not limit this. For ease of description, the following description of each embodiment is omitted. The projection correction method includes:

[0066] Step S10, when the projection screen is displayed as a preset correction reference screen according to the correction requirement instruction, obtaining a captured image captured by the image acquisition device, wherein the captured image includes the projection screen and the target correction object, and the projection screen includes a correction reference mark;

[0067] In a feasible embodiment, when there is a need for correction of the projection picture projected by the projection device, the projection device can switch the projection picture to a preset correction reference picture in response to the correction requirement instruction; and the correction reference picture includes a correction reference mark for correction positioning. Therefore, when the current display content is switched to the correction reference picture, the actually displayed projection picture also includes the same correction reference mark, so as to facilitate the rapid and accurate positioning of the projection picture; and then obtain the captured image captured by the image acquisition device, wherein the captured image includes the projection picture and the target correction object.

[0068] It should be understood that the image acquisition device can be a camera, lidar, etc. arranged in the projection device, or it can be an electronic device with image acquisition function, such as a smart phone, computer, tablet, smart watch, etc.; and the image acquisition device is communicated with the projection device and / or the correction device to obtain the image captured by the image acquisition device.

[0069] The target correction object corresponds to the reference object during projection correction; it can be determined according to the actual projection environment; for example, when an obstacle appears in the area corresponding to the projection screen, the obstacle can be identified as the target correction object, so as to automatically adjust the projection screen to avoid the obstacle. If the projection screen is distorted, the preset projection screen can be identified as the target correction object, and the screen can be corrected accordingly. Similarly, in the case where both an obstacle and a screen exist, both the obstacle and the target can be used as the target correction object, and the embodiments of the present application are not limited to this.

[0070] Exemplarily, in response to the correction requirement instruction, the projection screen displays an unpreset correction reference screen; wherein the user can trigger the correction requirement instruction through a remote controller associated with the projection device, and the remote controller can be a remote control device set up in conjunction with the projection device, or a smart phone, watch, computer, tablet, etc. It is also possible to dynamically obtain the initial acquisition image acquired by the image acquisition device, and automatically determine whether the projection screen needs correction based on the initial acquisition image, and generate a correction requirement instruction when it is determined that the projection screen needs correction; the embodiment of the present application is not limited to this.

[0071] Exemplarily, before the step of acquiring the captured image captured by the image acquisition device, the projection parameters can be restored to default settings. Because the user may have manually corrected the projection screen before the automatic projection correction is performed; in order to avoid the impact caused by the manual correction, the projection parameters are restored to the default settings, wherein the projection parameters include: pixel coordinates, transmittance, screen ratio, projection size, resolution, brightness, contrast, etc. of the projection screen.

[0072] Step S20, determining first picture position information of the projection picture in the image coordinate system of the captured image according to the calibration reference identifier;

[0073] 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.

[0074] 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.

[0075] Step S30, determining first object position information of the target calibration object in the image coordinate system according to the first picture position information;

[0076] In a feasible embodiment, when the first picture position information of the projection picture in the image coordinate system is determined, the position information of the target calibration object in the image coordinate system (ie, the first object position information) is further determined based on the first picture position information.

[0077] Step S40: Correct the projection picture according to the first picture position information and the first object position information.

[0078] In a feasible embodiment, when the first picture position information and the first object position information are determined, the projection picture may be corrected according to the first picture position information and the first object position information.

[0079] It should be understood that projection correction may include: curtain drop correction mode, obstacle avoidance correction mode, and curtain drop obstacle avoidance synchronization correction mode, wherein the curtain drop correction mode is to adjust the projected image so that it is perfectly aligned with the edge of a preset screen (e.g., a screen) to avoid the occurrence of deformed projection images and improve the quality of the projection images; while the obstacle avoidance correction mode is to make the projection image automatically avoid obstacles in the environment, such as paintings on the wall, furniture, or other objects that you do not want to be covered by the projection, to ensure the integrity and clarity of the projection image. The curtain drop obstacle avoidance synchronization correction mode is to adjust the projection image so that the projection image can achieve the curtain drop and obstacle avoidance effects synchronously. Therefore, when correcting the projection image, the corresponding correction effect can be achieved according to the specific correction mode.

[0080] Exemplarily, the currently triggered projection correction mode is determined. When the currently triggered projection correction mode is the falling curtain correction mode, the projection picture is corrected according to the first picture position information and the first object position information so that the projection picture falls into the area corresponding to the target correction object and the edges are aligned.

[0081] Exemplarily, the currently triggered projection correction mode is determined, and when the currently triggered projection correction mode is the obstacle avoidance correction mode, the projection picture is corrected according to the first picture position information and the first object position information so that the projection picture avoids the target correction object.

[0082] Exemplarily, the currently triggered projection correction mode is determined. When the currently triggered projection correction mode is the falling curtain obstacle avoidance synchronization correction mode, the projection picture is corrected according to the first picture position information and the first object position information, so that the projection picture falls into the area corresponding to the curtain in the target correction object, at least partially aligns the edges, and avoids obstacles in the target correction object.

[0083] In this embodiment, when projection correction is required, the projection screen can be displayed as a preset correction reference screen according to the correction requirement instruction, and the correction reference screen is provided with a correction reference mark for correction, so as to facilitate the rapid and accurate positioning of the projection screen; then the captured image including the projection screen and the target correction object captured by the image acquisition device is obtained, and the first screen position information of the projection screen in the image coordinate system of the captured image is accurately determined according to the correction reference mark in the projection screen; then according to the first screen position information, the first object position information of the target correction object in the image coordinate system is further determined, and according to the first screen position information and the first object position information, efficient correction of the projection screen is achieved; so that the projection correction process does not require manual intervention, which greatly improves the efficiency and accuracy of projection correction. The projection correction method in the embodiment of the present application is applicable to a variety of projection environments; for example, when an obstacle appears in the area corresponding to the projection screen, the obstacle can be identified as the target correction object, so as to achieve automatic adjustment of the projection screen to avoid the obstacle. Similarly, if the projection screen is distorted, the preset projection screen can be identified as the target correction object, and the screen can be corrected accordingly. Through this intelligent correction method, the embodiment of the present application not only improves the speed and accuracy of identifying the projection image and the target correction object position information, but also greatly enhances the user experience.

[0084] In one feasible implementation, step S40, the step of correcting the projection picture according to the first picture position information and the first object position information includes:

[0085] Step S41, obtaining the second picture position information of the projection picture in the space coordinate system with the projection device as a reference;

[0086] Step S42, generating a perspective matrix according to the first picture position information and the second picture position information;

[0087] In a feasible embodiment, the pitch angle, roll angle and yaw angle of the projection device are determined according to the sensor data collected by the gyroscope and TOF (Time offlight) sensor associated with the projection device, and a spatial coordinate system is established. The second screen position information of the projection screen in the preset spatial coordinate system is obtained, and the perspective matrix is ​​generated according to the first screen position information of the projection screen in the image coordinate system and the second screen position information in the spatial coordinate system.

[0088] Exemplarily, the center point of the projection device, gyroscope or TOF sensor is used as the origin of the spatial coordinate system; the X-axis is established in the horizontal direction of the viewing angle of the projection device (i.e., the projection screen), the Y-axis is established in the vertical direction of the viewing angle of the projection device (i.e., the projection screen), and the Z-axis is established in a direction perpendicular to the plane formed by the X-axis and the Y-axis to obtain the spatial coordinate system.

[0089] Step S43, performing perspective transformation on the first object position information based on the perspective matrix to obtain second object position information of the target calibration object in the spatial coordinate system;

[0090] Step S44, determining correction information according to the second picture position information and the second object position information, and correcting the projection picture based on the correction information.

[0091] In a feasible embodiment, the first object position information is perspective transformed based on the perspective matrix to obtain the second object position information of the target calibration object in the spatial coordinate system, thereby realizing the coordinate transformation. Since the target calibration object has been transformed into the spatial coordinate system of the projection device, the correction information can be determined according to the second picture position information and the second object position information, and the projection picture can be corrected based on the correction information.

[0092] In this embodiment, based on a preset spatial coordinate system, the second picture position information of the projection picture in the preset spatial coordinate system is determined, and then a perspective matrix for perspective transformation between the spatial coordinate system and the image coordinate system is generated, and based on the perspective matrix, the coordinate transformation of the target correction object position information is implemented to obtain the second object position information of the target correction object in the spatial coordinate system; then, based on the second picture position information and the second object position information, the correction information is determined, and based on the correction information, efficient correction of the projection picture is implemented; this makes it possible to eliminate the need for manual intervention in the projection correction process, thereby greatly improving the efficiency and accuracy of projection correction.

[0093] Based on the above first embodiment, a second embodiment of the projection correction method of the present application is proposed. In this embodiment, each vertex of the projection screen is respectively provided with a correction reference mark. Step S20, according to the correction reference mark, determines the first screen position information of the projection screen in the image coordinate system of the captured image, including:

[0094] Step S21, 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;

[0095] 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 a plurality of target mark contours having the same or similar contour shape 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.

[0096] It should be understood that due to the position setting of the image acquisition 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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, and the shape and size of each correction reference marker are the same, so that the number of correction reference markers in 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 S22 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 S21 is executed, the step of performing contour recognition on the acquired image to re-perform contour recognition on the acquired image, and / or step S10 is executed, the step of obtaining the acquired image acquired by the image acquisition device to re-acquire the image.

[0101] In one feasible implementation, step S21, 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:

[0102] Step S211, 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;

[0103] 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.

[0104] 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.

[0105] Step S212, determining the regional grayscale value within the region defined by each contour included in the second contour set in the acquired image;

[0106] Step S213: Filter out target identification contours from the second contour set according to the grayscale values ​​of each region.

[0107] 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.

[0108] Exemplarily, a grayscale value reference range is determined according to the grayscale value of the correction reference mark in the correction reference image; 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.

[0109] 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.

[0110] 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.

[0111] For example, refer to Figure 2 A scenario diagram of a projection correction method provided in an embodiment of the present application Figure 1 ;exist Figure 2In (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. Furthermore, the target correction object includes: the curtain 130 and the obstacle, wherein the obstacle P9 is located within the range defined by the curtain 130, while the obstacles P8 and P7 are located outside the range defined by the curtain 130 and will not affect the projection screen 110; therefore, it is determined that the target correction object includes: the curtain 130 and the obstacle P9.According to the first picture position information, the first object position information of the target correction object in the image coordinate system is determined; according to the first picture position information and the first object 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 2 (b) as shown.

[0112] Step S22, 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;

[0113] 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 the intersection of two or more edges; and since the target identification contour corresponds to the contour of the correction reference identification in the projection 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).

[0114] 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; taking into account the possible picture distortion of the captured image, the target distance range between the center point and the target corner point is determined according to the minimum distance; and the corner points whose corner-center distance (i.e., the distance between the corner point and the center point of the correction reference marker) is within the target distance range are screened out from the first corner point set and determined as the target corner points.

[0115] In a feasible implementation manner, the calibration reference mark is a polygon, and step S22, the step of selecting 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:

[0116] Step S221, determining the angular center distance between each corner point in the first corner point set and the center point of each target marker contour;

[0117] Step S222, 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;

[0118] Step S223, determining a target ranking associated with the corner point sorting result according to the number of vertices identified by the calibration reference;

[0119] Step S224, determining the target corner point from the sorting results of each corner point according to the target ranking.

[0120] 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.

[0121] Exemplarily, the number of vertices identified by the correction reference is added by one to obtain the target ranking.

[0122] For example, refer to Figure 3 , 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.

[0123] Step S23, determining the first picture position information according to the position information of each target corner point in the image coordinate system.

[0124] 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.

[0125] Exemplarily, the first picture position information includes coordinates of each of four vertices of the projection picture in the image coordinate system.

[0126] 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 image are screened out from the first corner point set; and since the projection image is a rectangle, the position information of the projection image in the image coordinate system can be determined through the target corner points, thereby realizing fast and accurate positioning of the projection image; through the setting of specific correction reference markers, not only the positioning process of the projection image during the projection correction process is simplified, but also the positioning accuracy is improved, thereby further improving the correction accuracy and efficiency.

[0127] Based on the above first and / or second embodiments, a third embodiment of the projection correction method of the present application is proposed. In this embodiment, before the step S30 of determining the first object position information of the target correction object in the image coordinate system according to the first picture position information, the method further includes:

[0128] Step S31, removing the target identification contour in the first contour set, and removing the contour corresponding to the projection picture in the first contour set according to the first picture position information, to obtain a third contour set;

[0129] Step S32, determining a target object contour corresponding to the target calibration object from the third contour set;

[0130] In a feasible embodiment, after determining the first picture position information corresponding to the projection picture, in order to avoid the influence of the projection picture on the recognition of the target calibration object, the contour corresponding to the calibration reference mark in the first contour set (i.e., the target mark contour) is removed, and according to the first picture position information, the contour corresponding to the projection picture in the first contour set is removed to obtain a third contour set. Then, the target object contour corresponding to the target calibration object is determined from the third contour set.

[0131] In one feasible implementation, the target calibration object includes an obstacle, and step S32, the step of determining the target object contour corresponding to the target calibration object from the third contour set includes:

[0132] Step S321: determine each contour included in the third contour set as a target object contour.

[0133] In a feasible embodiment, when the target correction object includes an obstacle, it indicates that among the contours identified in the acquired image, except for the contour associated with the projection screen, the remaining contours all correspond to obstacles. Therefore, each contour included in the third contour set corresponds to the obstacle contour of the obstacle, and the obstacle contour is determined as the target object contour.

[0134] Exemplarily, the target calibration object can be determined according to the currently triggered projection calibration mode. When the currently triggered projection calibration mode is the obstacle avoidance calibration mode, the target calibration object is determined to include obstacles. When the currently triggered projection calibration mode is the curtain drop calibration mode, the target calibration object is determined to include a curtain. When the currently triggered projection calibration mode is the curtain drop obstacle avoidance synchronization calibration mode, the target calibration object is determined to include obstacles and a curtain.

[0135] Exemplarily, the first object position information includes: first obstacle position information, and the step of correcting the projection picture according to the first picture position information and the first object position information includes: obtaining the second picture position information of the projection picture in the spatial coordinate system with the projection device as a reference; generating a perspective matrix according to the first picture position information and the second picture 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 correction object in the spatial coordinate system, including: second obstacle position information. According to the second obstacle position information, multiple correction information for avoiding obstacle 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 obstacle display.

[0136] In this embodiment, the projection image automatically avoids obstacles in the environment, such as paintings on the wall, furniture, or other objects that are not desired to be covered by the projection, by identifying the outline of the obstacle, so as to ensure the integrity and clarity of the projection image.

[0137] In a feasible implementation manner, the target calibration object includes a curtain, and step S32, the step of determining a target object contour corresponding to the target calibration object from the third contour set includes:

[0138] Step S322, determining an area threshold according to a preset display ratio and a maximum contour area in the third contour set;

[0139] Step S323, screening out contours whose contour areas are greater than an area threshold from the third contour set, and generating a fourth contour set;

[0140] Step S324: determine the curtain contour corresponding to the curtain from the fourth contour set and use it as the target object contour.

[0141] In a feasible embodiment, the screen is provided to enhance the projection effect; generally speaking, in order to ensure the projection effect, the area of ​​the screen is usually large, therefore, an area threshold can be set according to a preset display ratio and a maximum contour area in the third contour set; then, contours with smaller contour areas in the third contour set are filtered out by the area threshold to eliminate interference of obstacles on the screen recognition, and a fourth contour set is obtained; then, a contour corresponding to the screen (i.e., a screen contour) is determined from the fourth contour set, and the screen contour is determined as the target object contour.

[0142] For example, refer to Figure 4 The conventional screen 120 generally includes an optimal projection area 122 and a black border 121 surrounding the optimal projection area 122; therefore, multiple rectangular outlines can be identified during outline recognition. The outline area of ​​the optimal projection area 122 is the smallest, so the outline with the smallest outline area in the fourth outline set is determined as the screen outline.

[0143] Exemplarily, the first object position information includes: first screen position information, and the step of correcting the projection screen according to the first screen position information and the first object position information includes: obtaining the second screen position information of the projection screen in the spatial 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 correction object in the spatial coordinate system, including: second screen position information. According to the position information difference between the second screen position information and the second screen position information, the correction information is determined, and the projection screen is corrected based on the correction information so that the projection screen is imaged in the screen and aligned with the edge of the screen.

[0144] In this embodiment, the projection picture is corrected by identifying the outline of the screen so that it is perfectly aligned with the edge of the preset screen, thereby avoiding the occurrence of deformed projection picture and improving the quality of the projection picture.

[0145] In a feasible implementation manner, the target calibration object further includes an obstacle, and step S32, the step of determining the target object contour corresponding to the target calibration object from the third contour set includes:

[0146] Step S325: Determine the contours in the third contour set that are within the range defined by the curtain contour as obstacle contours corresponding to the obstacles, and use them as target object contours.

[0147] In a feasible embodiment, when the target calibration object includes both a screen and an obstacle, the screen contour corresponding to the screen can be determined first. Since there is a screen, the projection image needs to be projected into the area defined by the screen; and when avoiding obstacles, it is mainly necessary to avoid obstacles in the area defined by the screen. The contour in the third contour set that is within the range defined by the screen contour is determined as the obstacle contour corresponding to the obstacle, and is used as the target object contour.

[0148] For example, refer to Figure 2 A scenario diagram of a projection correction method provided in an embodiment of the present application Figure 1 ;exist Figure 2 In (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. The target mark contours (P3, P4, P5 and P6) in the first contour set are removed, and according to the first screen position information, the contour (P2) corresponding to the projection screen in the first contour set is removed to obtain a third contour set, including: P1, P7, P8 and P9. In the case where the target correction object includes: the curtain 130 and the obstacle, the area threshold is determined according to the preset display ratio and the maximum contour area in the third contour set; the contours with contour areas greater than the area threshold are screened out from the third contour set to obtain P1, and a fourth contour set is generated; since the fourth contour set contains only one contour, P1 is determined to be the curtain contour corresponding to the curtain 130. Further, the contours in the third contour set (P1, P7, P8 and P9) within the range defined by the curtain contour P1 are determined to be the obstacle contour (i.e., P9) corresponding to the obstacle, so the target object contours obtained include: P1 and P9, wherein P1 belongs to the curtain contour and P9 belongs to the obstacle contour. According to the position information of the target object contour in the image coordinate system, the first object position information is determined, including: the first curtain position information and the first obstacle position information. According to the first screen position information and the first object position information of the projection screen 110, the projection screen 110 is corrected so that the projection screen 110 is imaged on the screen 130, and the display size of the projection screen 110 is scaled proportionally to avoid the obstacle P9. The result is as follows: Figure 2 (b) as shown.

[0149] Exemplarily, the first object position information includes: first screen position information and first obstacle position information. According to the first screen position information and the first object position information, the step of correcting the projection screen includes: obtaining the second screen position information of the projection screen in the spatial 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 perspective transformation on the first object position information to obtain the second object position information of the target correction object in the spatial coordinate system, including: second screen position information and second obstacle position information. According to the second screen position information and the second screen position information, determine the trapezoidal distortion information of the projection screen, including: distortion angle and distortion aspect ratio; according to the second screen position information and the second obstacle position information, determine the position information of the projectable area after removing the obstacle; according to the trapezoidal distortion information and the projectable area position information, determine the correction information, and correct the projection screen based on the correction information, so that the projection screen is imaged on the screen without trapezoidal distortion and displayed without obstacles.

[0150] In this embodiment, by simultaneously identifying the outline of the screen and the outline of the obstacle, the projected image can automatically avoid obstacles in the environment to ensure the integrity and clarity of the projected image; on the other hand, the image is formed on the screen to avoid the occurrence of deformed projection images, thereby improving the quality of the projection images.

[0151] Step S33: determining first object position information according to the position information of the target object contour in the image coordinate system.

[0152] In a feasible embodiment, when the target object contour corresponding to the target calibration object is determined, the first object position information is determined according to the position information of the target object contour in the image coordinate system.

[0153] Exemplarily, the first object position information includes coordinates of contour points of the target object contour in the image coordinate system.

[0154] Exemplarily, a minimum bounding rectangle of the target object outline is determined, and coordinates of each vertex of the minimum bounding rectangle of the target object outline in the image coordinate system are determined as the first object position information.

[0155] In order to assist in understanding the above technical solution, a relatively complete embodiment of a projection correction method is explained below. Figure 5, step A101, determine that the currently triggered projection correction mode is the curtain correction mode. Step A102, initialize the projection parameters; for example, restore the projection parameters to the default settings to avoid the influence of manual correction on the automatic correction. Step A103, display the projection screen as a non-preset correction reference screen, wherein each vertex of the correction reference screen is respectively provided with a correction reference identifier, and the correction reference identifier is a triangle. Step A104, obtain the acquisition image acquired by the image acquisition device, wherein the acquisition image contains the projection screen and the target correction object. Step A105, perform contour recognition on the acquisition image to obtain a first contour set. Step A106, according to the contour shape of the target correction object, determine that the number of vertices of the target correction object is 3, filter out the contour with 3 vertices in the first contour set, and judge whether the number of the contour is greater than or equal to 4; if so, execute step A107, if not, execute step A105. Step A107, determine the regional grayscale value in the area defined by each contour contained in the second contour set in the acquisition image. Step A108, according to the gray value of the region, the target identification contour corresponding to the calibration reference identification is filtered out from the second contour set. Step A109, corner point recognition is performed on the captured image to obtain a first corner point set. Step A110, according to the center point of each target identification contour, the target corner points corresponding to the vertices of the projection screen are filtered out from the first corner point set. Step A111, according to the position information of each target corner point in the image coordinate system, the first screen position information is determined. Step A112, the target identification contour in the first contour set is removed, and according to the first screen position information, the contour corresponding to the projection screen in the first contour set is removed to obtain a third contour set. Step A113, according to a preset ratio and the maximum contour area in the third contour set, an area threshold is determined. Then, contours with contour areas greater than the area threshold are filtered out from the third contour set, and a fourth contour set is generated, and then the contour with the smallest contour area in the fourth contour set is determined as the target object contour. Step A114, according to the position information of the target object contour in the image coordinate system, the first object position information is determined.

[0156] In order to assist in understanding the above technical solution, another more complete embodiment of the projection correction method is explained below. Figure 6, step B101, determine that the currently triggered projection correction mode is the obstacle avoidance correction mode. Step B102, initialize the projection parameters; for example, restore the projection parameters to the default settings to avoid the influence of manual correction on the automatic correction. Step B103, display the projection screen as a non-preset correction reference screen, wherein each vertex of the correction reference screen is respectively provided with a correction reference identifier, and the correction reference identifier is a triangle. Step B104, obtain the acquisition image acquired by the image acquisition device, wherein the acquisition image contains the projection screen and the target correction object. Step B105, perform contour recognition on the acquisition image to obtain a first contour set. Step B106, according to the contour shape of the target correction object, determine that the number of vertices of the target correction object is 3, filter out the contour with 3 vertices in the first contour set, and judge whether the number of the contour is greater than or equal to 4; if so, execute step B107, if not, execute step B105. Step B107, determine the regional grayscale value in the area defined by each contour contained in the second contour set in the acquisition image. Step B108, based on the regional grayscale value, filter out the target identification contour corresponding to the correction reference identification from the second contour set. Step B109, perform corner point recognition on the captured image to obtain a first corner point set. Step B110, based on the center point of each target identification contour, filter out the target corner points corresponding to the vertices of the projection screen from the first corner point set. Step B111, determine the first screen position information based on the position information of each target corner point in the image coordinate system. Step B112, remove the target identification contour in the first contour set, and based on the first screen position information, remove the contour corresponding to the projection screen in the first contour set to obtain a third contour set. Step B113, determine each contour contained in the third contour set as the target object contour. Step B114, determine the first object position information based on the position information of the target object contour in the image coordinate system.

[0157] In this embodiment, by removing the contour corresponding to the projection picture in the first contour set, the potential interference of the projection picture on the accurate identification of the target correction object is effectively eliminated; then, according to the currently triggered projection correction mode, the contour corresponding to the target correction object is quickly and accurately identified from the third contour set, that is, the target object contour. This process not only realizes the efficient and accurate positioning of the target correction object, but also greatly simplifies the target identification and positioning process during the projection correction process. While improving the accuracy of projection correction, it also shows a wide range of applicability, can flexibly respond to the correction needs of a variety of projection environments, and greatly enhances the user experience.

[0158] The present application embodiment provides a projection correction device, referring to Figure 7 , the device is applied to a projection device, and the device comprises:

[0159] The acquisition module 10 is configured to acquire a captured image acquired by an image acquisition device when the projection screen is displayed as a preset correction reference screen according to the correction requirement instruction, wherein the captured image includes the projection screen and the target correction object, and the projection screen includes a correction reference mark;

[0160] The picture position determination module 20 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;

[0161] The object position determination module 30 is configured to determine first object position information of the target calibration object in the image coordinate system according to the first picture position information;

[0162] The correction module 40 is configured to correct the projection picture according to the first picture position information and the first object position information.

[0163] The projection correction device provided in the embodiment of the present application adopts the projection correction method in the above embodiment, which can effectively solve the problem of low projection correction efficiency. Compared with conventional technology, the beneficial effects of the projection correction device provided in the embodiment of the present application are the same as the beneficial effects of the projection correction method provided in the above embodiment, and other technical features in the projection correction device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0164] 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 correction method in the above-mentioned embodiment 1.

[0165] Reference below Figure 8 , 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. Figure 8 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.

[0166] like Figure 8As 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.

[0167] 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.

[0168] The projection device provided in the embodiment of the present application adopts the projection correction method in the above embodiment, which can effectively solve the problem of low projection correction efficiency. 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 correction 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.

[0169] 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.

[0170] 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.

[0171] 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 correction method in the above embodiment.

[0172] 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.

[0173] The computer-readable storage medium may be included in the projection device; or may exist independently without being assembled into the projection device.

[0174] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the projection device, the projection device: obtains a captured image captured by the image acquisition device when the projection screen is displayed as a preset correction reference screen according to the correction requirement instruction, wherein the captured image includes the projection screen and the target correction object, and the projection screen contains a correction reference identifier; determines the first screen position information of the projection screen in the image coordinate system of the captured image according to the correction reference identifier; determines the first object position information of the target correction object in the image coordinate system according to the first screen position information; and corrects the projection screen according to the first screen position information and the first object position information.

[0175] 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).

[0176] 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.

[0177] 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.

[0178] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned projection correction method, which can effectively solve the problem of low projection correction efficiency. Compared with conventional technology, 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 correction method provided in the above-mentioned embodiment, and will not be repeated here.

[0179] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A projection correction method, characterized in that: The method includes: When the projection screen is displayed as a preset correction reference screen according to the correction requirement instruction, obtaining a captured image captured by an image acquisition device, wherein the captured image includes the projection screen and a target correction object, and the projection screen includes a correction reference identifier; Determining first picture position information of the projection picture in the image coordinate system of the acquired image according to the calibration reference identifier; Determining first object position information of the target calibration object in the image coordinate system according to the first picture position information; The projection picture is corrected according to the first picture position information and the first object position information.

2. The method according to claim 1, characterized in that Each vertex of the projection picture is respectively provided with a correction reference mark, and the step of determining the first picture position information of the projection picture in the image coordinate system of the acquired image according to the correction reference mark 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.

3. The method according to claim 2, characterized in that The calibration reference mark is a polygon, and the step of selecting the target mark contour corresponding to the calibration reference mark from the first contour set according to the contour shape of the calibration reference mark comprises: Determine the number of vertices of the correction reference mark according to the contour shape of the correction reference mark, and select a plurality of contours having the same number of vertices as the correction reference mark from the first contour set to obtain a second contour set; Determining a regional grayscale value within a region defined by each contour included in the second contour set in the acquired image; The target identification contour is selected from the second contour set according to the grayscale value of each region.

4. The method according to claim 2, characterized in that The calibration reference mark is a polygon, and the step of selecting 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: Determine the angular center distance between each corner point in the first corner point set and the center point of each target identification contour; Sorting the corner points in the first corner point set according to the corner-center distances associated with the center points of the target identification contours to obtain a corner point sorting result associated with the center points of the target identification contours; Determining a target ranking associated with the corner point sorting result according to the number of vertices identified by the correction reference; According to the target ranking, the target corner point is determined from the sorting results of the corner points.

5. The method according to claim 2, characterized in that The step of determining first object position information of the target calibration object in the image coordinate system according to the first picture position information comprises: removing the target identification contour from the first contour set, and removing the contour corresponding to the projection picture from the first contour set according to the first picture position information, to obtain a third contour set; Determining a target object contour corresponding to the target calibration object from the third contour set; The first object position information is determined according to the position information of the target object contour in the image coordinate system.

6. The method according to claim 5, characterized in that The target calibration object includes an obstacle, and the step of determining a target object contour corresponding to the target calibration object from the third contour set includes: Each contour included in the third contour set is determined as the target object contour.

7. The method according to claim 5, characterized in that The target calibration object includes a curtain, and the step of determining a target object contour corresponding to the target calibration object from the third contour set includes: Determining an area threshold according to a preset display ratio and a maximum contour area in the third contour set; Filtering contours whose contour areas are greater than the area threshold from the third contour set, and generating a fourth contour set; A curtain contour corresponding to the curtain is determined from the fourth contour set and used as the target object contour.

8. The method according to claim 7, characterized in that The target calibration object further includes: an obstacle, and the step of determining the target object contour corresponding to the target calibration object from the third contour set includes: The contour in the third contour set that is within the range defined by the curtain contour is determined as the obstacle contour corresponding to the obstacle, and is used as the target object contour.

9. The method according to any one of claims 1 to 8, characterized in that The step of correcting the projection picture according to the first picture position information and the first object position information comprises: Acquire second picture position information of the projection picture in a spatial coordinate system with the projection device as a reference; generating a perspective matrix according to the first picture position information and the second picture position information; Based on the perspective matrix, performing perspective transformation on the first object position information to obtain second object position information of the target calibration object in the spatial coordinate system; Correction information is determined according to the second picture position information and the second object position information, and the projection picture is corrected based on the correction information.

10. A projection correction device, characterized in that: The device comprises: An acquisition module is configured to acquire an acquired image acquired by an image acquisition device when the projection screen is displayed as a preset correction reference screen according to a correction requirement instruction, wherein the acquired image includes the projection screen and a target correction object, and the projection screen includes a correction reference identifier; A picture position 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; an object position determination module, configured to determine first object position information of the target calibration object in the image coordinate system according to the first picture position information; The correction module is configured to correct the projection picture according to the first picture position information and the first object 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 correction 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 correction method according to any one of claims 1 to 9 are implemented.