CN115550619A - Projection correction method and device, electronic equipment and readable storage medium - Google Patents

Projection correction method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115550619A
CN115550619A CN202211153704.3A CN202211153704A CN115550619A CN 115550619 A CN115550619 A CN 115550619A CN 202211153704 A CN202211153704 A CN 202211153704A CN 115550619 A CN115550619 A CN 115550619A
Authority
CN
China
Prior art keywords
projection
correction
parameter
equipment
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211153704.3A
Other languages
Chinese (zh)
Inventor
戴宇明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202211153704.3A priority Critical patent/CN115550619A/en
Publication of CN115550619A publication Critical patent/CN115550619A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3191Testing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a projection correction method, a projection correction device, electronic equipment and a readable storage medium, which are applied to the technical field of projection, wherein the projection correction method comprises the following steps: acquiring distance parameters between the projection equipment and a projection surface; when the projection equipment is monitored to have posture change, obtaining posture change information of the projection equipment; and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture. The method and the device solve the technical problem that the projection picture is easy to distort in the prior art.

Description

Projection correction method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of projection technologies, and in particular, to a projection correction method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid development of projection technology, projectors are widely used in daily life. For present domestic projecting apparatus, only can guarantee the projection effect at the camera lens of projecting apparatus and the screen face of projecting apparatus perpendicular between two parties, form the positive projection picture, if can't guarantee the perpendicular of projection line and wall, will take place the skew to produce trapezoidal picture, the picture is high on one side low that also appears, or the image is wide on one side narrow condition on one side, leads to the projection picture to take place the distortion.
Disclosure of Invention
The present application mainly aims to provide a projection correction method, an apparatus, an electronic device and a readable storage medium, and aims to solve the technical problem in the prior art that a projection picture is easy to distort.
In order to achieve the above object, the present application provides a projection correction method applied to a projection correction apparatus, the projection correction method including:
acquiring distance parameters between the projection equipment and a projection surface;
when the projection equipment is monitored to have attitude change, acquiring attitude change information of the projection equipment;
and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture.
Optionally, the step of obtaining the posture change information of the projection device when it is monitored that the posture of the projection device changes includes:
acquiring previous attitude information of the last time step of the projection equipment;
detecting whether the direction of the projection equipment is changed;
and if the change of the direction of the projection equipment is detected, determining the posture change information of the projection equipment according to the changed current posture information and the previous posture information.
Optionally, before the step of acquiring previous pose information of a last time step of the projection device, the method further includes:
when the projection equipment performs primary projection, determining the initial state of the projection equipment;
acquiring default posture information according to the initial state;
and projecting a projection picture to a projection plane according to the default posture information and the distance parameter.
Optionally, the step of performing trapezoidal correction on the projection picture according to the distance parameter and the posture change information, and displaying the projection picture after correction includes:
determining trapezoidal correction parameters according to the distance parameters and the attitude change information;
and performing trapezoidal correction on the projection picture according to the trapezoidal correction parameters.
Optionally, the step of determining a trapezoidal correction parameter according to the distance parameter and the posture change information includes:
determining angle change information of the projection equipment on a pitch angle, a yaw angle and a roll angle according to the attitude change information;
and acquiring a pitch angle parameter, a yaw angle parameter and a roll angle parameter according to the angle change information, and taking the distance parameter, the pitch angle parameter, the yaw angle parameter and the roll angle parameter as trapezoidal correction parameters.
Optionally, the step of performing keystone correction on the projection picture according to the keystone correction parameter includes:
acquiring a pre-projected image before projection;
and according to the trapezoidal correction parameters and a preset trapezoidal correction algorithm, six-direction conversion of the up-down direction, the left-right direction and the inclined direction is carried out on the pre-projected image in the projection equipment so as to carry out trapezoidal correction on the projection picture projected on the projection surface.
Optionally, the step of acquiring a distance parameter between the projection device and the projection surface includes:
detecting whether a historical distance parameter exists;
if the historical distance parameter is detected to exist, taking the historical distance parameter as a distance parameter between the projection equipment and a projection surface;
and if the historical distance parameter is detected to exist, acquiring the input distance parameter between the projection equipment and the projection surface, and taking the parameter as the distance parameter between the projection equipment and the projection surface.
In order to achieve the above object, the present application further provides a projection correction apparatus, which is applied to a projection device, the projection correction apparatus including:
the distance input module is used for acquiring distance parameters between the projection equipment and the projection surface;
the attitude detection module is used for acquiring attitude change information of the projection equipment when the projection equipment is monitored to have attitude change;
and the picture correction module is used for performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information and displaying the corrected projection picture.
Optionally, the gesture detection module is further configured to:
acquiring the previous attitude information of the last time step of the projection equipment;
detecting whether the direction of the projection equipment is changed;
and if the change of the direction of the projection equipment is detected, determining the attitude change information of the projection equipment according to the changed current attitude information and the changed previous attitude information.
Optionally, the gesture detection module is further configured to:
when the projection equipment performs primary projection, determining an initial state of the projection equipment;
acquiring default attitude information according to the initial state;
and projecting a projection picture to a projection plane according to the default posture information and the distance parameter.
Optionally, the picture correction module is further configured to:
determining trapezoidal correction parameters according to the distance parameters and the attitude change information;
and performing trapezoidal correction on the projection picture according to the trapezoidal correction parameters.
Optionally, the picture correction module is further configured to:
determining angle change information of the projection equipment on a pitch angle, a yaw angle and a roll angle according to the attitude change information;
and acquiring a pitch angle parameter, a yaw angle parameter and a roll angle parameter according to the angle change information, and taking the distance parameter, the pitch angle parameter, the yaw angle parameter and the roll angle parameter as trapezoidal correction parameters.
Optionally, the picture correction module is further configured to:
acquiring a pre-projected image before projection;
and performing six-direction conversion of the up-down direction, the left-right direction and the inclined direction on the pre-projected image in the projection equipment according to the trapezoidal correction parameters and a preset trapezoidal correction algorithm so as to perform trapezoidal correction on the projection picture projected on the projection surface.
Optionally, the distance input module is further configured to:
detecting whether a historical distance parameter exists;
if the historical distance parameter is detected to exist, taking the historical distance parameter as a distance parameter between the projection equipment and a projection surface;
and if the historical distance parameter is detected to exist, acquiring an input distance parameter between the projection equipment and the projection surface, and taking the parameter as the distance parameter between the projection equipment and the projection surface.
The present application further provides an electronic device, including: a memory, a processor and a program of the projection correction method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the projection correction method as described above.
The present application also provides a readable storage medium which is a computer readable storage medium having a program stored thereon for implementing a projection correction method, the program of the projection correction method, when executed by a processor, implementing the steps of the projection correction method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the projection correction method as described above.
The application provides a projection correction method, namely, distance parameters between projection equipment and a projection surface are collected; when the projection equipment is monitored to have posture change, obtaining posture change information of the projection equipment; and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture, so that when the position of the projection equipment is changed, the projection picture is adaptively adjusted in real time according to the attitude change information and the distance parameter obtained by detecting the attitude of the projection equipment, the problem that the projection picture is distorted after the position of the projection equipment is changed is solved, the use effect of the projection equipment is optimized, and the user experience is improved.
Drawings
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 application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart illustrating a first embodiment of a projection calibration method according to the present application;
FIG. 2 is a schematic flowchart illustrating a projection calibration method according to a second embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating a projection correction method according to a third embodiment of the present application;
FIG. 4 is a schematic structural diagram of a projection calibration apparatus according to the present application;
fig. 5 is a schematic structural diagram of a hardware operating environment related to a projection correction method in an embodiment of the present application.
The implementation of the objectives, functional features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In a first embodiment of the projection correction method of the present application, referring to fig. 1, the projection correction method includes:
s10, collecting distance parameters between the projection equipment and a projection surface;
s20, when the situation that the posture of the projection equipment changes is monitored, obtaining posture change information of the projection equipment;
and S30, performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture.
In this embodiment, it should be noted that this embodiment is applied to a projection device, such as a household projector, and the like, a gyroscope sensor is mounted on the projection device, the gyroscope sensor may also be an angular motion sensor, and the gyroscope sensor may measure an angle (posture), an angular velocity, or an angular acceleration of an object to be detected, so as to accurately determine the orientation of the moving object; the projection surface is a plane on which a projection picture is projected, and can be a projection curtain or a wall for projection; the distance parameter is a horizontal distance between the projection device and the projection surface, and is generally obtained by actively inputting the distance parameter by a user, or the distance parameter can be obtained by a distance measuring module if a device or module for measuring the distance is assembled on the projection device; if the gyroscope sensor monitors that the posture of the projection equipment changes, the position or the direction of the projection equipment changes, and at the moment, a projection picture may be distorted and trapezoidal correction is needed; the attitude change information is direction change information, angular velocity information or angular acceleration information detected by a gyroscope sensor, and can be specifically angle change information; in the daily use of projection equipment, the projection effect can only be guaranteed if the position of the projection equipment needs to be at a right angle with a projection surface as far as possible, if the perpendicularity of the projection equipment and the projection surface cannot be guaranteed, the picture can generate a trapezoid, and the trapezoid correction needs to be carried out on the picture.
There are generally two methods for keystone correction: the digital trapezoid correction is realized by a software method. The digital trapezoidal correction needs to be carried out through a vertical trapezoidal correction function, namely, the height of the projection equipment can be adjusted in the vertical direction, so that the generated trapezoid can be corrected through the projection equipment in the vertical direction, and a picture can be rectangular, so that the use of a user is facilitated. In addition to requiring vertical keystone correction, keystones due to offsets in the horizontal position of the projection device are often encountered that require correction by a horizontal keystone correction function. The horizontal trapezoidal correction and the vertical trapezoidal correction belong to digital trapezoidal correction, and the shape of an image before being displayed is adjusted and compensated through a software interpolation algorithm. The horizontal keystone correction solves the problem of image keystone distortion in the horizontal direction caused by the fact that a projection device mirror cannot be perpendicular to a screen, so that the projection device can achieve standard rectangular projection images on the side face of a projection surface.
Illustratively, steps S10 to S30 include:
when a user uses the projection equipment for the first time, the user is prompted to input the distance between the projection equipment and the projection surface through starting up guidance, or an input port is added at a position corresponding to a menu for the user to input the distance between the projection equipment and the projection surface, the distance is converted into a distance parameter, the distance parameter between the projection equipment and the projection surface, which is obtained through active input of the user or measurement by a distance measuring module, is obtained, when a gyroscope sensor in the projection equipment monitors that the posture of the projection equipment changes, namely the direction of a mirror of the projection equipment changes due to rotation or movement of the projection equipment, so that the posture change information of the projection equipment in a motion change process can be obtained through the gyroscope sensor, trapezoidal correction is carried out on the projection picture in real time through the distance parameter and the posture change information, the corrected projection picture is displayed, and the self-adaptive trapezoidal correction of the position of the projection equipment is realized.
In step S10, the step of acquiring a distance parameter between the projection device and the projection surface includes:
step S11, detecting whether a history distance parameter exists;
step S12, if the historical distance parameter is detected to exist, taking the historical distance parameter as a distance parameter between the projection equipment and the projection surface;
and S13, if the historical distance parameter is detected to exist, acquiring the input distance parameter between the projection equipment and the projection surface, and taking the parameter as the distance parameter between the projection equipment and the projection surface.
In this embodiment, it should be noted that the historical distance parameter is a distance parameter that has been input by the user in advance or input twice.
Exemplarily, steps S11 to S13 include:
detecting whether the historical distance parameter which is input already exists in the projection equipment, if the historical distance parameter is detected to exist, using the historical distance parameter as the distance parameter between the projection equipment and the projection surface, and if the historical distance parameter does not exist, prompting a user to input the distance parameter between the projection equipment and the projection surface in the starting-up guide, or increasing a distance input port at a corresponding position of a menu for the user to input the distance parameter between the projection equipment and the projection surface.
In this embodiment, the user is required to actively input the distance parameter, but in other embodiments, the user may actively pop up the window to obtain the updated distance parameter before each projection, or actively pop up the window again to obtain the updated distance parameter after the movement change when the gyroscope sensor detects that the posture of the projection device changes, or add a distance measuring sensor on the projection device, which may be used to measure the distance, to obtain the changed distance parameter in real time after the front-back distance of the projection device changes.
After step S20, after the step of acquiring the posture change information of the projection apparatus, the method further includes:
step A10, sending a posture change prompt of the projection equipment, and receiving a distance update parameter fed back based on the posture change prompt;
step a20, taking the distance update parameter as an updated distance parameter, and executing the steps of: and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture.
In this embodiment, it should be noted that, in the projection apparatus, whether the posture changes may be determined by providing a gyro sensor, and when the posture changes, whether the distance between the projection apparatus and the projection surface changes may be further determined according to user feedback.
Illustratively, steps a10 to a20 include:
when the gyroscope sensor monitors that the posture of the projection equipment changes, the gyroscope sensor actively sends a posture change prompt to a user terminal or a projection picture, when receiving the prompt, a user can select to update the distance parameter, if the distance update parameter updated based on the posture change prompt feedback of the user is received, the distance update parameter is used as the distance parameter, and step S30 is executed according to the updated distance parameter in the next step.
The embodiment of the application provides a projection correction method, namely, distance parameters between projection equipment and a projection surface are collected; when the projection equipment is monitored to have posture change, obtaining posture change information of the projection equipment; and trapezoidal correction is carried out on the projection picture according to the distance parameter and the attitude change information, and the projection picture after correction is displayed, so that when the position of the projection equipment is changed, the projection picture is subjected to self-adaptive adjustment in real time according to the attitude change information and the distance parameter obtained by the gyroscope sensor, the problem that the projection picture is distorted after the position of the projection equipment is changed is solved, the using effect of the projection equipment is optimized, and the user experience is improved.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to those of the first embodiment of the present application may be referred to the above description, and are not repeated herein. On this basis, in step S20, when it is monitored that the posture of the projection device changes, the step of obtaining posture change information of the projection device includes:
step S21, acquiring the previous attitude information of the last time step of the projection equipment;
step S22, detecting whether the direction of the projection equipment is changed;
step S23, if the change of the direction of the projection equipment is detected, determining the posture change information of the projection equipment according to the changed current posture information and the changed previous posture information.
In this embodiment, it should be noted that, a gyroscope sensor is configured in the projection device, the gyroscope sensor can only detect a change in an angle of an object to be measured, on the projection device, a change in a distance between a front side and a rear side does not cause a trapezoid of a projection screen, the previous posture information is posture information before the projection device changes in motion, the previous posture information is not necessarily default posture information, and may be posture information after the projection device has performed a change once, and the current posture information is obtained after the projection device changes in secondary motion.
Exemplarily, steps S21 to S22 include:
acquiring previous attitude information of a time step on the projection equipment through a gyroscope sensor, detecting motion change of the projection equipment in real time through the gyroscope sensor, and if the direction of the projection equipment is detected to change, determining attitude change information between motion changes of the projection equipment according to the previous attitude information and the current attitude information after the change is completed; if the change of the direction of the projection equipment is not detected, the change of the position of the projection equipment is not detected, or only horizontal movement or front-back movement exists, and the change of the angle does not occur.
It should be noted that, when the projection apparatus moves forward and backward, the projection apparatus in this embodiment may obtain the distance parameter by actively inputting the distance by the user due to the apparatus device, and if the distance of the projection apparatus changes before and after the projection apparatus changes, the user needs to actively input the changed distance, or a distance measurement module is added to the projection apparatus to obtain the changed distance parameter.
Before step S21, before the step of acquiring previous pose information of a previous time step of the projection apparatus, the method further includes:
step B10, when the projection equipment performs primary projection, determining the initial state of the projection equipment;
step B20, acquiring default attitude information according to the initial state;
and B30, projecting a projection picture to a projection plane according to the default posture information and the distance parameter.
In this embodiment, it should be noted that before the projection device can perform trapezoidal correction according to the motion state, the gyro sensor needs to be calibrated, and a rectangular picture actually projected on the projection surface is taken as a reference, at this time, a picture projected by the projection device satisfies that the horizontal direction and the vertical direction are both centered, the current gyro sensor is taken as an initial state, and the default posture information is the posture information of the initial state.
Exemplarily, the steps B10 to B30 include:
before trapezoidal correction is automatically performed through motion change, a projection picture projected by a projection device needs to be calibrated into a rectangular picture, usually, when the projection device performs initial projection, a user inputs a distance parameter in advance before starting up, the projected projection picture is adjusted into a rectangular shape manually, or a lens of the projection device is adjusted to be parallel to a projection plane, at the moment, the projection device performs correction, the current state of a gyroscope sensor is determined to be an initial state, default posture information of the initial state is acquired, the projection picture is projected to the projection plane according to the default posture information and the distance parameter input in advance, and at the moment, the projection picture is rectangular. By calibrating the projection device in advance, the gyroscope sensor has an initial state capable of being compared after the movement changes, so that the projection picture is accurately subjected to trapezoidal correction.
The embodiment of the application provides a method for detecting posture change information of a projection device, namely, acquiring previous posture information of a last time step of the projection device; detecting whether the direction of the projection equipment is changed; and if the change of the direction of the projection equipment is detected, determining the posture change information of the projection equipment according to the changed current posture information and the previous posture information. The attitude change of the projection equipment is detected in real time through the gyroscope sensor, namely, the projection picture is adaptively adjusted according to the position direction of the projection equipment, and the user experience is improved.
EXAMPLE III
Further, referring to fig. 3, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. In addition, in step S30, the step of performing trapezoidal correction on the projection picture according to the distance parameter and the posture change information, and displaying the projection picture after correction includes:
step S31, determining trapezoidal correction parameters according to the distance parameters and the attitude change information;
and step S32, performing trapezoidal correction on the projection picture according to the trapezoidal correction parameters.
In this embodiment, it should be noted that the trapezoidal correction parameter is a four-digit parameter value that needs to be obtained in a preset trapezoidal correction algorithm, and includes a distance parameter, a Pitch angle parameter Pitch, a Yaw angle parameter Yaw, and a Roll angle parameter Roll, where the three angular parameters respectively rotate around three axes of a cartesian coordinate system, so as to determine a change in any direction of the projection device.
Exemplarily, steps S31 to S32 include:
determining angle change information of the projection equipment in three directions according to the attitude change information determined by the gyroscope sensor, determining a trapezoidal correction parameter required in a preset four-point trapezoidal correction calculation formula according to the distance parameter and the angle change information input by a user, and correcting a distorted projection picture after motion change according to the trapezoidal correction parameter to obtain a compensated projection picture.
In a specific embodiment, the obtained distance parameter between the projection device and the projection surface is 1, and the obtained parameter in the yaw angle, i.e. the upward elevation angle direction of the projection device is 1, where 1 in the parameters represents a unit, then the output keystone correction parameter may be [1, 0]. And substituting the trapezoidal correction parameters into a preset trapezoidal correction algorithm to project a corrected rectangular projection picture.
In step S31, the step of determining a trapezoidal correction parameter according to the distance parameter and the posture change information includes:
step S311, determining angle change information of the projection equipment on a pitch angle, a yaw angle and a roll angle according to the attitude change information;
step S312, obtaining a pitch angle parameter, a yaw angle parameter, and a roll angle parameter according to the angle change information, and using the distance parameter, the pitch angle parameter, the yaw angle parameter, and the roll angle parameter as a trapezoidal correction parameter.
In this embodiment, it should be noted that the angle change information is generally angle change parameters of the object to be measured in three axial directions of a cartesian coordinate system, and the angle change parameters are a Pitch angle parameter Pitch, a Yaw angle parameter Yaw, and a Roll angle parameter Roll, respectively.
Illustratively, steps S311 to S312 include:
determining attitude change information in motion change of the projection equipment according to a gyroscope sensor, comparing the previous attitude information with the current attitude information to determine change parameters of the projection equipment in three-axis directions so as to determine angle change information of the projection equipment, determining four parameter values for reminding correction parameters according to the distance parameter and the angle change information, and taking each parameter value as a trapezoidal correction parameter.
In step S32, the step of performing trapezoidal correction on the projection picture according to the trapezoidal correction parameter includes:
step S321, acquiring a pre-projected image before projection;
step S322, performing six-direction conversion in the up-down direction, the left-right direction, and the oblique direction on the pre-projected image in the projection device according to the keystone correction parameter and a preset keystone correction algorithm, so as to perform keystone correction on the projection image projected on the projection plane.
In this embodiment, it should be noted that the pre-projection image is an image that is not projected in the projection device, and is an original image that is projected, the preset keystone correction algorithm is an image change algorithm that performs six-way conversion on the pre-projection image according to a keystone correction parameter, the six-way is an up-down direction, a left-right direction, and an oblique direction, and corresponds to the Pitch angle parameter Pitch, the Yaw angle parameter Yaw, and the Roll angle parameter Roll, respectively, and after the six-way conversion is performed on the pre-projection image, a projection picture that is projected onto the projection surface is an image that a user desires to see, and is generally a normal rectangular image.
Exemplarily, the steps S321 to S322 include:
the method comprises the steps of obtaining a pre-projection image which is not projected in a projection device, and carrying out six-direction conversion in the vertical direction, the horizontal direction and the inclined direction on the pre-projection image according to an obtained trapezoidal correction parameter and a preset trapezoidal correction algorithm, wherein four-point trapezoidal correction or eight-point trapezoidal correction is usually carried out on a projection image, and the pre-projection image after correction and conversion has certain conversion on four sides and an inclined angle so as to carry out trapezoidal correction on the projection image after projection.
The embodiment of the application provides a trapezoidal correction method, namely, trapezoidal correction parameters are determined according to the distance parameters and the attitude change information; and trapezoidal correction is carried out on the projection picture according to the trapezoidal correction parameters, so that parameters required in a preset trapezoidal correction algorithm are determined according to the distance parameters and the attitude change information, the trapezoidal correction is carried out, and the trapezoidal correction effect is improved.
Example four
An embodiment of the present application further provides a projection correction apparatus as shown in fig. 4, where the projection correction apparatus is applied to a projection device, and the projection correction apparatus includes:
the distance input module C10 is used for acquiring distance parameters between the projection equipment and the projection surface;
the attitude detection module C20 is used for acquiring attitude change information of the projection equipment when the projection equipment is monitored to have attitude change;
and the picture correction module C30 is used for performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information and displaying the projection picture after correction.
Optionally, the gesture detection module C20 is further configured to:
acquiring the previous attitude information of the last time step of the projection equipment;
detecting whether the direction of the projection equipment is changed;
and if the change of the direction of the projection equipment is detected, determining the posture change information of the projection equipment according to the changed current posture information and the previous posture information.
Optionally, the gesture detection module C20 is further configured to:
when the projection equipment performs primary projection, determining the initial state of the projection equipment;
acquiring default attitude information according to the initial state;
and projecting a projection picture to a projection plane according to the default posture information and the distance parameter.
Optionally, the picture correction module C30 is further configured to:
determining trapezoidal correction parameters according to the distance parameters and the attitude change information;
and carrying out trapezoidal correction on the projection picture according to the trapezoidal correction parameters.
Optionally, the picture correction module C30 is further configured to:
determining angle change information of the projection equipment on a pitch angle, a yaw angle and a roll angle according to the attitude change information;
and acquiring a pitch angle parameter, a yaw angle parameter and a roll angle parameter according to the angle change information, and taking the distance parameter, the pitch angle parameter, the yaw angle parameter and the roll angle parameter as trapezoidal correction parameters.
Optionally, the picture correction module C30 is further configured to:
acquiring a pre-projected image before projection;
and performing six-direction conversion of the up-down direction, the left-right direction and the inclined direction on the pre-projected image in the projection equipment according to the trapezoidal correction parameters and a preset trapezoidal correction algorithm so as to perform trapezoidal correction on the projection picture projected on the projection surface.
Optionally, the distance input module C10 is further configured to:
detecting whether a historical distance parameter exists;
if the historical distance parameter is detected to exist, taking the historical distance parameter as a distance parameter between the projection equipment and a projection surface;
and if the historical distance parameter is detected to exist, acquiring the input distance parameter between the projection equipment and the projection surface, and taking the parameter as the distance parameter between the projection equipment and the projection surface.
The projection correction device provided by the invention adopts the projection correction method in the first embodiment, the second embodiment or the third embodiment, and solves the technical problem that a projection picture is easy to distort. Compared with the prior art, the beneficial effects of the projection correction device provided by the embodiment of the invention are the same as the beneficial effects of the projection correction method provided by the embodiment, and other technical features of the projection correction device are the same as those disclosed by the embodiment method, which are not repeated herein.
EXAMPLE five
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the projection correction method according to the first embodiment.
Referring now to FIG. 5, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device D90 may include a processing device D10 (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a read only memory D20 (ROM) or a program loaded from a storage device into a random access memory D30 (RAM). In the RAMD30, various programs and data necessary for the operation of the electronic device are also stored. The processing devices D10, the ROMD20, and the RAMD30 are connected to each other via a bus. An input/output D40 (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: an input device D50 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, or the like; an output device D60 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device D70 including, for example, a magnetic tape, a hard disk, and the like; and a communication device D80. The communication device D80 may allow the electronic device D90 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device, or installed from the storage device D70, or installed from the ROMD 20. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the projection correction method in the first embodiment, the second embodiment or the third embodiment, and solves the technical problem that a projection picture is easy to distort. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the projection correction method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the first embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
EXAMPLE six
The present embodiment provides a readable storage medium comprising a computer readable storage medium having computer readable program instructions stored thereon for performing the method of projection correction in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be separate and not incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring distance parameters between the projection equipment and a projection surface; when the projection equipment is monitored to have posture change, obtaining posture change information of the projection equipment; and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores computer-readable program instructions for executing the projection correction method, and solves the technical problem that a projection picture is easy to distort. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the projection correction method provided in the first embodiment, the second embodiment, or the third embodiment, which are not described herein again.
EXAMPLE seven
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the projection correction method as described above.
The computer program product solves the technical problem that a projection picture is easy to distort. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as those of the projection correction method provided in the first embodiment, the second embodiment or the third embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A projection correction method is applied to a projection device, and comprises the following steps:
acquiring distance parameters between the projection equipment and a projection surface;
when the projection equipment is monitored to have posture change, obtaining posture change information of the projection equipment;
and performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information, and displaying the corrected projection picture.
2. The projection correction method of claim 1, wherein the step of acquiring the posture change information of the projection device when the posture change of the projection device is monitored comprises:
acquiring previous attitude information of the last time step of the projection equipment;
detecting whether the direction of the projection equipment is changed;
and if the change of the direction of the projection equipment is detected, determining the posture change information of the projection equipment according to the changed current posture information and the previous posture information.
3. The projection correction method of claim 2, characterized in that, before the step of acquiring previous pose information for a last time step of the projection apparatus, further comprising:
when the projection equipment performs primary projection, determining the initial state of the projection equipment;
acquiring default posture information according to the initial state;
and projecting a projection picture to a projection plane according to the default posture information and the distance parameter.
4. The projection correction method according to claim 1, wherein the step of performing trapezoidal correction on a projection screen based on the distance parameter and the attitude change information and displaying the projection screen after correction comprises:
determining trapezoidal correction parameters according to the distance parameters and the attitude change information;
and performing trapezoidal correction on the projection picture according to the trapezoidal correction parameters.
5. The projection correction method of claim 4, wherein the step of determining a trapezoidal correction parameter based on the distance parameter and the pose change information comprises:
determining angle change information of the projection equipment on a pitch angle, a yaw angle and a roll angle according to the attitude change information;
and acquiring a pitch angle parameter, a yaw angle parameter and a roll angle parameter according to the angle change information, and taking the distance parameter, the pitch angle parameter, the yaw angle parameter and the roll angle parameter as trapezoidal correction parameters.
6. The projection correction method of claim 4, wherein the step of performing the keystone correction on the projection picture according to the keystone correction parameters comprises:
acquiring a pre-projected image before projection;
and performing six-direction conversion of the up-down direction, the left-right direction and the inclined direction on the pre-projected image in the projection equipment according to the trapezoidal correction parameters and a preset trapezoidal correction algorithm so as to perform trapezoidal correction on the projection picture projected on the projection surface.
7. The projection correction method of claim 1, wherein the step of acquiring a distance parameter between the projection device and the projection surface comprises:
detecting whether a historical distance parameter exists;
if the historical distance parameter is detected to exist, taking the historical distance parameter as a distance parameter between the projection equipment and a projection surface;
and if the historical distance parameter is detected to exist, acquiring the input distance parameter between the projection equipment and the projection surface, and taking the parameter as the distance parameter between the projection equipment and the projection surface.
8. A projection correction apparatus, characterized in that the projection correction apparatus comprises:
the distance input module is used for acquiring distance parameters between the projection equipment and the projection surface;
the attitude detection module is used for acquiring attitude change information of the projection equipment when the projection equipment is monitored to have attitude change;
and the picture correction module is used for performing trapezoidal correction on the projection picture according to the distance parameter and the attitude change information and displaying the corrected projection picture.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the projection correction method of any one of claims 1 to 7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program for implementing a projection correction method, the program being executed by a processor to implement the steps of the projection correction method according to any one of claims 1 to 7.
CN202211153704.3A 2022-09-21 2022-09-21 Projection correction method and device, electronic equipment and readable storage medium Pending CN115550619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211153704.3A CN115550619A (en) 2022-09-21 2022-09-21 Projection correction method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211153704.3A CN115550619A (en) 2022-09-21 2022-09-21 Projection correction method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115550619A true CN115550619A (en) 2022-12-30

Family

ID=84728531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211153704.3A Pending CN115550619A (en) 2022-09-21 2022-09-21 Projection correction method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115550619A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116959349A (en) * 2023-09-20 2023-10-27 深圳市宝溢显示技术有限公司 Control system and method of laser display equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116959349A (en) * 2023-09-20 2023-10-27 深圳市宝溢显示技术有限公司 Control system and method of laser display equipment
CN116959349B (en) * 2023-09-20 2023-11-24 深圳市宝溢显示技术有限公司 Control system and method of laser display equipment

Similar Documents

Publication Publication Date Title
WO2021031781A1 (en) Method and device for calibrating projection image and projection device
US20140111660A1 (en) Method, Apparatus, and Mobile Device for Photographing Processing
JP2016522437A (en) Image display method, image display apparatus, terminal, program, and recording medium
CN111813290B (en) Data processing method and device and electronic equipment
CN111833243B (en) Data display method, mobile terminal and storage medium
US20180253161A1 (en) Spatial motion-based user interactivity
CN115550619A (en) Projection correction method and device, electronic equipment and readable storage medium
CN109960479B (en) Anti-dizziness method and device for display equipment
JP2022531186A (en) Information processing methods, devices, electronic devices, storage media and programs
CN114125411B (en) Projection device correction method, projection device correction device, storage medium and projection device
CN116156132B (en) Projection image correction method, projection image correction device, electronic equipment and readable storage medium
JP7472281B2 (en) Electronic device and focusing method
CN114125659A (en) Volume real-time compensation method, electronic device and readable storage medium
CN116033131B (en) Image correction method, device, electronic equipment and readable storage medium
CN113129366B (en) Monocular SLAM initialization method and device and electronic equipment
CN113407045B (en) Cursor control method and device, electronic equipment and storage medium
CN115495038A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN115576637A (en) Screen capture method, system, electronic device and readable storage medium
CN111050075B (en) Image processing method and electronic device
CN112181230A (en) Data display method and device and electronic equipment
CN111829651B (en) Method, device and equipment for calibrating light intensity value and storage medium
CN108459770B (en) Coordinate correction method and device
US20200402218A1 (en) Information processing apparatus, information processing method, and program
CN114125138B (en) Volume adjustment optimization method and device, electronic equipment and readable storage medium
CN117288187B (en) Robot pose determining method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination