CN118354044A - Trapezoidal correction method, device and equipment - Google Patents
Trapezoidal correction method, device and equipment Download PDFInfo
- Publication number
- CN118354044A CN118354044A CN202310091609.3A CN202310091609A CN118354044A CN 118354044 A CN118354044 A CN 118354044A CN 202310091609 A CN202310091609 A CN 202310091609A CN 118354044 A CN118354044 A CN 118354044A
- Authority
- CN
- China
- Prior art keywords
- projection equipment
- correction
- projection
- time period
- posture data
- 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
Links
- 238000012937 correction Methods 0.000 title claims abstract description 146
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000010354 integration Effects 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 11
- 238000005070 sampling Methods 0.000 claims description 4
- 241001660693 Trapezia Species 0.000 claims 1
- 230000003631 expected effect Effects 0.000 abstract description 8
- 230000008859 change Effects 0.000 description 19
- 230000001960 triggered effect Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 238000005259 measurement Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000010365 information processing Effects 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
Landscapes
- Transforming Electric Information Into Light Information (AREA)
Abstract
The application discloses a trapezoid correction method, a trapezoid correction device and trapezoid correction equipment, relates to the technical field of projection correction, and can accurately grasp the time of trapezoid correction of projection equipment so as to achieve an expected effect of trapezoid correction. The method comprises the following steps: acquiring angle posture data of projection equipment in real time; detecting the rotation angles of the angle posture data of the projection equipment corresponding to different time periods, and judging whether the projection equipment is in a stable position state before correction or not by utilizing the rotation angles; if so, triggering the projection equipment to perform trapezoidal correction according to the angle posture parameters corresponding to the position state of the projection equipment which is stable before correction.
Description
Technical Field
The present application relates to the field of projection correction technologies, and in particular, to a trapezoidal correction method, apparatus, and device.
Background
The household projection equipment is favored by most consumers due to the portability, and the capability of carrying out trapezoidal correction on the projection pictures under different scenes can meet the requirement that a user does not manually adjust the angle of the projection equipment, so that the time and steps required by projection arrangement are greatly shortened.
In the related art, the household projection equipment is usually not fixed in a place, and when the projection equipment is touched to generate displacement and/or posture change, if the projection equipment is not triggered to perform trapezoidal correction, the projection picture is inclined, and of course, the projection equipment is frequently triggered to perform trapezoidal correction, so that the calculation power of hardware is wasted, the picture jitter is caused by frequently calling a trapezoidal correction algorithm, the watching effect of a user is influenced, and the time of the trapezoidal correction of the projection equipment is difficult to be accurately mastered, so that the trapezoidal correction cannot achieve the expected effect.
Disclosure of Invention
In view of this, the application provides a method, a device and a device for correcting trapezoids, which mainly aims to solve the problem that in the prior art, the time of correcting trapezoids by projection equipment is difficult to accurately grasp, so that the trapezoids cannot achieve the expected effect.
According to a first aspect of the present application, there is provided a trapezoidal correction method comprising:
acquiring angle posture data of projection equipment in real time;
detecting the rotation angles of the angle posture data of the projection equipment corresponding to different time periods, and judging whether the projection equipment is in a stable position state before correction or not by utilizing the rotation angles;
If so, triggering the projection equipment to perform trapezoidal correction according to the angle posture parameters corresponding to the position state of the projection equipment which is stable before correction.
Further, after the acquiring the angle posture data of the projection device in real time, the method further includes:
and calculating the rotation angles of the angle posture data of the projection equipment corresponding to different time periods by using a discrete integration mode.
Further, the calculating the rotation angle of the angle posture data of the projection device corresponding to different time periods by using the discrete integration method specifically includes:
collecting the sampling of projection equipment to obtain discrete angle posture data;
simulating continuously changing angle posture data with the discrete angle posture data;
and calculating the rotation angles corresponding to the continuously-changing angle posture data in different time periods by using a discrete integration mode.
Further, detecting the rotation angle corresponding to the angle posture data of the projection device in different time periods, and judging whether the projection device is in a stable position state before correction by using the rotation angle specifically includes:
detecting a rotation angle corresponding to the angle posture data of the projection equipment in a first time period;
When the rotation angle corresponding to the angle posture data in a first time period is larger than a first threshold value, determining that the projection equipment is in an unstable position state, and detecting the rotation angle corresponding to the angle posture data of the projection equipment in a second time period, wherein the first time period is before the second time period in time sequence;
and if the rotation angle corresponding to the angle posture data in the second time period is continuously stabilized in the second threshold value, determining that the projection equipment is in a stable position state before correction.
Further, before the detecting the rotation angle of the angle posture data of the projection device corresponding to the first period of time, the method further includes:
and predefining a time range corresponding to the sliding window by using a sliding window method, and determining a first time period and a second time period.
Further, the sliding window method is used for predefining a time range corresponding to the sliding window, and determining the first time period and the second time period specifically includes:
a sliding window method is used for predefining the width of a sliding window, and a time range corresponding to the sliding window is set according to the current time point and the width of the sliding window;
and determining a first time period and a second time period by utilizing the time range corresponding to the sliding window.
Further, the method further comprises:
and taking the current moment as a starting point, determining the current time period and angle posture data of the projection equipment corresponding to the current time period by using the width of the sliding window, and deleting the angle posture data of the projection equipment before the current time period.
Further, after triggering the projection device to perform trapezoidal correction according to the angle posture parameter corresponding to the position state of the projection device which is stable before correction, the method further includes:
and switching the position state of the projection equipment to ensure that the projection equipment is in a stable position state after correction.
According to a second aspect of the present application there is provided a trapezoidal correction device comprising:
The acquisition unit is used for acquiring the angle posture data of the projection equipment in real time;
A first determining unit, configured to detect rotation angles corresponding to angle posture data of the projection device in different time periods, and determine whether the projection device is in a stable position state before correction by using the rotation angles;
And the triggering unit is used for triggering the projection equipment to perform trapezoidal correction according to the angle posture parameter corresponding to the stable position state before correction of the projection equipment if the projection equipment is in the stable position state before correction.
Further, the apparatus further comprises:
And the calculating unit is used for calculating the rotation angles corresponding to the angle posture data of the projection equipment in different time periods by using a discrete integration mode after the angle posture data of the projection equipment are acquired in real time.
Further, the computing unit is specifically configured to collect discrete angular pose data obtained by sampling the projection device; simulating continuously changing angle posture data with the discrete angle posture data; and calculating the rotation angles corresponding to the continuously-changing angle posture data in different time periods by using a discrete integration mode.
Further, the first determination unit includes:
the first monitoring module is used for detecting the rotation angle corresponding to the angle posture data of the projection equipment in a first time period;
the second monitoring module is used for determining that the projection equipment is in an unstable position state when the rotation angle corresponding to the angle posture data in a first time period is larger than a first threshold value, and detecting the rotation angle corresponding to the angle posture data of the projection equipment in a second time period, wherein the first time period is before the second time period in time sequence;
And the determining module is used for determining that the projection equipment is in a stable position state before correction if the rotation angle corresponding to the angle posture data in the second time period is continuously stabilized within a second threshold value.
Further, the first determining unit further includes:
the definition module is used for predefining a time range corresponding to the sliding window by using a sliding window method before detecting the rotation angle of the angle posture data of the projection equipment corresponding to the first time period, and determining the first time period and the second time period.
Further, the definition module is specifically configured to define a sliding window width in advance by using a sliding window method, and set a time range corresponding to the sliding window according to the current time point and the sliding window width; and determining a first time period and a second time period by utilizing the time range corresponding to the sliding window.
Further, the first determining unit further includes:
And the deleting module is used for determining the current time period and the angle posture data of the projection equipment corresponding to the current time period by taking the current time as a starting point and the width of the sliding window, and deleting the angle posture data of the projection equipment before the current time period.
Further, the apparatus further comprises:
and the switching unit is used for switching the position state of the projection equipment after triggering the projection equipment to perform trapezoidal correction according to the angle posture parameter corresponding to the position state of the projection equipment which is stable before correction, so that the projection equipment is in the position state of the projection equipment which is stable after correction.
According to a third aspect of the present application, there is provided a correction module for performing a trapezoidal correction of a projection device, in particular performing the steps of the method of the first aspect described above when performing the trapezoidal correction.
According to a fourth aspect of the present application there is provided a projection device comprising a correction module, the correction module performing the steps of the method of the first aspect described above, in particular when performing keystone correction.
According to a fifth aspect of the present application there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of the first aspect described above when the computer program is executed by the processor.
According to a sixth aspect of the present application there is provided a readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect described above.
By means of the technical scheme, compared with the mode that the trapezoid correction is triggered and executed immediately after the projection equipment is touched in the existing mode, the trapezoid correction method, device and equipment provided by the application are used for detecting the rotation angle corresponding to the angle posture data of the projection equipment in different time periods through acquiring the angle posture data of the projection equipment in real time, judging whether the projection equipment is in a stable position state before correction or not through the rotation angle, if so, determining that the projection equipment is in the stable position state before correction, triggering the projection equipment to perform trapezoid correction according to the angle posture parameter corresponding to the stable position state before correction, and acquiring the rotation angle of the projection equipment in the stable state in the whole process, and performing trapezoid correction on the projection equipment in the stable state, so that the trapezoid correction time of the projection equipment is accurately mastered, and the trapezoid correction achieves the expected effect.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a trapezoid correcting method according to an embodiment of the application;
FIG. 2 is a graph showing a corresponding rotation angle of a projection apparatus according to an embodiment of the present application;
FIG. 3 is a flow chart of step 102 of FIG. 1;
FIG. 4 is a graph showing the corresponding rotation angle of the projection device according to another embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a switching process of a projection device at different positions according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a trapezoidal correction device according to an embodiment of the present application;
Fig. 7 is a schematic diagram of an apparatus structure of a computer device according to an embodiment of the present invention.
Detailed Description
The present disclosure will now be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those of ordinary skill in the art to better understand and thus practice the teachings of the present invention, and are not meant to imply any limitation on the scope of the invention.
As used herein, the term "comprising" and variants thereof are to be interpreted as meaning "including but not limited to" open-ended terms. The term "based on" is to be interpreted as "based at least in part on". The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment. The term "another embodiment" is to be interpreted as "at least one other embodiment".
In the application scene of the projection equipment, the household projection equipment is not usually fixed in a place, and when the projection equipment is touched every time, if the projection equipment is not triggered to perform trapezoidal correction, the projection picture is skewed, and of course, the projection equipment is frequently triggered to perform trapezoidal correction, so that the calculation force of hardware is wasted, the picture jitter is also caused by frequently calling a trapezoidal correction algorithm, the watching effect of a user is influenced, the time of trapezoidal correction of the projection equipment is difficult to be accurately mastered, and the trapezoidal correction cannot achieve the expected effect.
In order to solve the problem, the present embodiment provides a trapezoidal correction method, as shown in fig. 1, which is applied to a projection device end, and includes the following steps:
101. and acquiring the angle posture data of the projection equipment in real time.
In general, in order to acquire angular pose data of a projection apparatus in real time, an inertial measurement unit including a combination of acceleration and gyro sensors is installed in the projection apparatus to detect acceleration and angular velocity of the projection apparatus in a three-dimensional space, velocity is obtained by calculating an integral of the acceleration, position pose data of the projection apparatus is obtained by integrating the velocity, and angular pose data of the projection apparatus is obtained by calculating an integral of the angular velocity.
It will be appreciated that the change in position of the projection device is typically accompanied by a change in angle, and that the change in angle of the projection device does not necessarily change the position of the projection device, where the angular pose data of the projection device is used as a basis for determining whether the projection device is in a more stable state.
The execution main body of the embodiment can be a trapezoidal correction device or equipment and can be configured at a projection equipment end, and when the projection equipment moves or deflects to a certain extent, the projection equipment end can accurately sense whether the position and the angle of the projection equipment change or not through an internally installed inertial measurement unit, so that angle posture data of the projection equipment are obtained in real time.
102. And detecting the rotation angles of the angle posture data of the projection equipment corresponding to different time periods, and judging whether the projection equipment is in a stable position state before correction by utilizing the rotation angles.
Since the trapezoidal correction mainly depends on the angular attitude data of the inertial measurement unit, the attitude angle of the projection device can fluctuate when the projection device moves, the average rotation angle is obtained by calculating the average value of the attitude angles in a first time period, for example, the average value of the rotation angle is obtained by summing the calculation result and the first time period after the integral of the rotation angle is calculated in the first time period, and the rotation angle can represent the angular change of the projection device in the first time period, if the angular change is larger than a first threshold value, the position change of the projection device is indicated. The position change here includes a displacement change and/or a change in attitude angle. The change of the position does not indicate that the projection device is placed at a stable position, so after the projection device is determined to be in an unstable position state, the average value of the rotation angles needs to be calculated in a second time period to obtain an average rotation angle corresponding to the second time period, and whether the average rotation angle corresponding to the second time period is continuously stable within a second threshold value is judged, if so, the projection device is determined to be placed at a stable position, and the projection device is determined to be in a stable position state before correction. The first time period and the second time period are time concepts with a precedence relationship, after detecting the rotation angle change of the projection equipment in the first time period, the rotation angle change of the projection equipment in the second time period is detected, and likewise, the first threshold and the second threshold are two different threshold concepts, wherein the first threshold is an angle judgment threshold used for determining whether the position change of the projection equipment occurs, the second threshold is an angle judgment threshold used for judging whether the projection equipment is in stable position, and in general, the selection of the first threshold is larger than the second threshold.
Here, when the projection device is in an unstable position state, it is indicated that the projection device is still in position change, and is not suitable for triggering trapezoidal correction, and when the projection device is in a stable position state before correction, it is indicated that the position of the projection device is kept stable, and trapezoidal correction can be triggered to ensure the flatness of the projection picture.
103. If so, triggering the projection equipment to perform trapezoidal correction according to the angle posture parameters corresponding to the position state of the projection equipment which is stable before correction.
It can be understood that the corresponding rotation angle is obtained by calculating the average value of the attitude angles in different time periods, and the corresponding rotation angle in different time periods can reflect the state change of the position of the projection equipment, so that the position of the projection equipment is ensured to be changed, the projection equipment is triggered to perform trapezoidal correction under the condition that the position is kept stable, the condition that the trapezoidal correction is triggered by mistake is prevented, the picture jitter caused by frequently calling a trapezoidal correction algorithm is avoided, and the display effect of the projection picture is improved.
Compared with the mode that the trapezoid correction is triggered and executed after the projection equipment is touched in the existing mode, the trapezoid correction method provided by the embodiment of the application has the advantages that the angle posture data of the projection equipment are obtained in real time, the rotation angles corresponding to different time periods of the angle posture data of the projection equipment are detected, whether the projection equipment is in a stable position state before correction or not is judged by utilizing the rotation angles, if yes, the stable position state of the projection equipment before correction is determined, the projection equipment is triggered to perform trapezoid correction according to the angle posture parameters corresponding to the stable position state of the projection equipment before correction, the rotation angles of the projection equipment in the stable state can be obtained in the whole process, the trapezoid correction is performed for the projection equipment in the stable state, and further the time of the trapezoid correction of the projection equipment is accurately mastered, so that the trapezoid correction achieves the expected effect.
Further, in the above embodiment, after step 101, the method further includes the following steps:
and calculating the rotation angles of the angle posture data of the projection equipment corresponding to different time periods by using a discrete integration mode.
Because the user moves the projection equipment and shakes back and forth, stable numerical values can be obtained only by accumulating the angular posture data in a certain time period, and in the process of calculating the corresponding rotation angle of the projection equipment in a preset time period through integration, the integral is used for calculating the quotient of the integral value of the angular posture data in the preset time period and the time period so as to obtain the average value of the angular posture data:
Wherein, t 1-t2 forms a preset time period, θ is the angular pose data of the projection device, and when the average value of the angular pose data is greater than a certain threshold value, the projection device can be considered to rotate to a certain extent in the preset time period, and the projection device changes from a stable position state to an unstable position state.
In general, the integration method is based on the assumption that data are continuous, and the angle output by the actual inertial measurement unit is discrete data, so that the integration method is improved to discrete integration, so that the characteristic of the actual data is more met, and at the moment, the average value of the angle posture data corresponding to the integration process is as follows:
Because the angle output by the projection device is generally discrete data, specifically, the discrete angle posture data can be collected and sampled by the projection device, the continuously-changed angle posture data is simulated by the discrete angle posture number, and the rotation angles corresponding to the continuously-changed angle posture data in different time periods are calculated by using a discrete integration mode.
It can be understood that the discrete integration mode can approximate the data nearby the sampled data moment to be the same, and simulate continuous data according to the data, a curve of a specific projection device corresponding to a selected angle is shown in fig. 2, a rectangular frame in fig. 2 is a discrete integration to obtain the rotation angle of the projection device, the curve is the angle posture data of the actual projection device, the rotation angle of the projection device obtained by the discrete integration is close to the actual rotation angle, and the rotation angles corresponding to different time periods of the angle posture data can be obtained by the discrete integration mode.
In this embodiment, the rotation angle is calculated by using a discrete integration manner on the angle posture data of the projection device, so that a relatively stable average rotation angle can be obtained within a certain time, and when the projection device moves to a certain extent, the trapezoid correction function is triggered again, so that false triggering caused by slight shake or sensor data floating can be prevented.
Specifically, in the above embodiment, as shown in fig. 3, step 102 includes the following steps:
201. And detecting the rotation angle corresponding to the angle posture data of the projection equipment in the first time period.
202. When the rotation angle corresponding to the angle posture data in the first time period is larger than a first threshold value, determining that the projection equipment is in an unstable position state, and detecting the rotation angle corresponding to the angle posture data of the projection equipment in the second time period.
202. And if the rotation angle corresponding to the angle posture data in the second time period is continuously stabilized in the second threshold value, determining that the projection equipment is in a stable position state before correction.
The first time period is used for detecting whether the position state of the projection device changes, the process determines that the position state of the projection device changes when the rotation angle is larger than a first threshold value in the first time period, the second time period is used for detecting whether the position of the projection device is in a stable state, and the process determines that the position of the projection device is in the stable state when the rotation angle is continuously stabilized within a second threshold value in the second time period, wherein the first time period and the second time period can be set according to actual scenes.
Further, in the above embodiment, before step 201, the method further includes the following steps:
and predefining a time range corresponding to the sliding window by using a sliding window method, and determining a first time period and a second time period.
It can be understood that the discrete integration method can sample the output angle data of the inertial measurement unit within a certain range, and the sliding window method can define a relatively definite time range, wherein the sliding window method enables the integration process to be integrated in a time window closest to the current moment by fixing a time window, specifically, the sliding window width can be predefined by using the sliding window method, the time range corresponding to the sliding window is set according to the current time point and the sliding window width, and the first time period and the second time period are determined by utilizing the time range corresponding to the sliding window.
The curve of the corresponding selection angle of the projection device obtained by integration in the above embodiment is shown in fig. 4, the range of the sliding window is set to be [ t-w, t ], where t is the current time point, w is the width of the sliding window, and in different time periods of t 1 and t 2, the sliding window selects a range of data before the time t 1 and a range of data with the same length before the time t 2.
It will be appreciated that over time, angular pose data of a projection device may produce a large number of angles of rotation, and that sliding windows may be used to delete historical data to reduce the amount of data stored, taking into account the storage resources of the projection device. For example, referring to the embodiment shown in fig. 4, with the current time as a starting point, the current time period and the angular pose data of the projection device corresponding to the current time period are determined by using the width of the sliding window, and the angular pose data of the projection device before the current time period are deleted. For example, when the time reaches the time t1 (i.e. the current time is t 1), the time t1 is taken as a time starting point, and the time period with w width is traced forward to obtain the angle posture data corresponding to the t1 window; and deleting the angle data before the t1 time window to eliminate the occupation of the memory. Similarly, when the time reaches the time t2 (i.e. the current time is changed to t 2), the time t2 is taken as a time starting point, and then the time period with w width is traced forward to obtain angle posture data corresponding to the t2 window; and deleting the angle data before the t2 time window to eliminate the occupation of the memory. And so on, in the process of changing at the current moment, the historical data can be continuously deleted by using the set window width. The above is merely an example, and in actual use, data corresponding to a plurality of time windows may be reserved according to a limitation of the storage capacity, and history data outside the plurality of time windows may be deleted.
In this embodiment, the sliding window is used to control the integration interval corresponding to the angular pose data of the projection device, so that the integrator can stably and timely update the rotation state of the projection device.
Further, in the above embodiment, after step 103, the method includes the following steps:
and switching the position state of the projection equipment to ensure that the projection equipment is in a stable position state after correction.
It can be understood that the rotation angle corresponding to the angle posture data in different time periods can be obtained by performing discrete integration on the angle posture data of the projection device, the rotation angle corresponding to the angle posture data in the first time period and the rotation angle corresponding to the angle posture data in the second time period can be obtained by controlling the integration interval through the sliding window, so that the stable angle deflection of the projection device at the current moment is obtained, different position states corresponding to the projection device can be set according to the change condition of the angle deflection corresponding to the projection device at the current moment, a specific switching flow of the projection device in different position states is shown in fig. 5, when the projection device performs trapezoid correction (including starting up to perform trapezoid correction), the projection device is switched to a stable position state after correction, when the rotation angle corresponding to the angle posture data of the projection device in the first time period is detected to be greater than a first threshold, the position state corresponding to the projection device is switched to an unstable position state, and when the rotation angle corresponding to the angle posture data of the projection device in the second time period is detected to be continuously stable in the second threshold, the position state corresponding to the projection device is switched to a stable position state before correction is triggered, and the trapezoid correction is further performed.
In an actual application scene, the projection equipment is switched in three states, trapezoidal correction is carried out once after the projection equipment is started, then the projection equipment enters a corrected stable position state, when the angle posture data of the projection equipment is deflected to a certain extent within the range of a sliding window corresponding to the rotation angle, the projection equipment can be considered to have changed position, the corrected stable position state can enter an unstable position state, when the angle posture data of the projection equipment is continuously stabilized within the range of the sliding window corresponding to the rotation angle within a threshold value, the projection equipment can be considered to be moved to a new stable position, and the unstable position state can be changed into a stable position state before correction; when a pre-correction stable position state is entered, the trapezoidal correction is then triggered and entered into the post-correction stable position state. The position state corresponding to the projection equipment is continuously circulated after the projection equipment is started, so that the triggering time of trapezoid correction can be accurately grasped.
In this embodiment, a state machine for representing switching of the position states of different projection devices is set for trapezoidal correction, including a stable position state after correction, an unstable position state and a stable position state before correction, and a conversion condition of the position state is described, and the stable position state before correction is used as a time for triggering trapezoidal correction, so that the position state of the projection device is accurately perceived, the projection device is ensured to trigger trapezoidal correction again under the condition that the position of the projection device is changed and the stability is maintained, and frequent triggering and false triggering of trapezoidal correction are avoided.
Further, as a specific implementation of the method of fig. 1-5, an embodiment of the present application provides a trapezoidal correction device, as shown in fig. 6, where the device includes: an acquisition unit 31, a first determination unit 32, a trigger unit 33.
An acquisition unit 31 for acquiring the angular pose data of the projection apparatus in real time;
A first determining unit 32, configured to detect rotation angles corresponding to angle posture data of the projection apparatus in different time periods, and determine whether the projection apparatus is in a stable position state before correction by using the rotation angles;
And the triggering unit 33 is configured to trigger the projection apparatus to perform trapezoidal correction according to an angular posture parameter corresponding to the position state of the projection apparatus that is stable before correction if the projection apparatus is in the position state of the projection apparatus that is stable before correction.
Compared with the mode that the trapezoid correction is triggered and executed after the projection equipment is touched in the existing mode, the trapezoid correction device provided by the embodiment of the application has the advantages that the angle posture data of the projection equipment are obtained in real time, the rotation angles corresponding to different time periods of the angle posture data of the projection equipment are detected, whether the projection equipment is in a stable position state before correction or not is judged by utilizing the rotation angles, if yes, the stable position state of the projection equipment before correction is determined, the projection equipment is triggered to perform trapezoid correction according to the angle posture parameters corresponding to the stable position state of the projection equipment before correction, the rotation angles of the projection equipment in the stable state can be obtained in the whole process, the trapezoid correction is performed for the projection equipment in the stable state, and further the time of the trapezoid correction of the projection equipment is accurately mastered, so that the trapezoid correction achieves the expected effect.
In a specific application scenario, the apparatus further includes:
And the calculating unit is used for calculating the rotation angles corresponding to the angle posture data of the projection equipment in different time periods by using a discrete integration mode after the angle posture data of the projection equipment are acquired in real time.
In a specific application scene, the computing unit is specifically configured to collect discrete angular pose data obtained by sampling the projection device; simulating continuously changing angle posture data with the discrete angle posture data; and calculating the rotation angles corresponding to the continuously-changing angle posture data in different time periods by using a discrete integration mode.
In a specific application scenario, the first determining unit 32 includes:
the first monitoring module is used for detecting the rotation angle corresponding to the angle posture data of the projection equipment in a first time period;
the second monitoring module is used for determining that the projection equipment is in an unstable position state when the rotation angle corresponding to the angle posture data in a first time period is larger than a first threshold value, and detecting the rotation angle corresponding to the angle posture data of the projection equipment in a second time period, wherein the first time period is before the second time period in time sequence;
And the determining module is used for determining that the projection equipment is in a stable position state before correction if the rotation angle corresponding to the angle posture data in the second time period is continuously stabilized within a second threshold value.
In a specific application scenario, the first determining unit further includes:
the definition module is used for predefining a time range corresponding to the sliding window by using a sliding window method before detecting the rotation angle of the angle posture data of the projection equipment corresponding to the first time period, and determining the first time period and the second time period.
In a specific application scenario, the definition module is specifically configured to define a sliding window width in advance by using a sliding window method, and set a time range corresponding to the sliding window according to a current time point and the sliding window width; and determining a first time period and a second time period by utilizing the time range corresponding to the sliding window.
In a specific application scenario, the first determining unit further includes:
And the deleting module is used for determining the current time period and the angle posture data of the projection equipment corresponding to the current time period by taking the current time as a starting point and the width of the sliding window, and deleting the angle posture data of the projection equipment before the current time period.
In a specific application scenario, the apparatus further includes:
and the switching unit is used for switching the position state of the projection equipment after triggering the projection equipment to perform trapezoidal correction according to the angle posture parameter corresponding to the position state of the projection equipment which is stable before correction, so that the projection equipment is in the position state of the projection equipment which is stable after correction.
It should be noted that, for other corresponding descriptions of each functional unit related to the trapezoidal correction device provided in the present embodiment, reference may be made to corresponding descriptions in fig. 1 to 5, and no further description is given here.
Based on the above-mentioned method shown in fig. 1-5, correspondingly, the embodiment of the present application further provides a storage medium, on which a computer program is stored, which when executed by a processor, implements the above-mentioned trapezoid correction method shown in fig. 1-5.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective implementation scenario of the present application.
Based on the method shown in fig. 1-5 and the virtual device embodiment shown in fig. 6, in order to achieve the above objective, the embodiment of the present application further provides a trapezoidal correction entity device, which may specifically be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, where the entity device includes a storage medium and a processor; a storage medium storing a computer program; a processor for executing a computer program to implement the trapezoidal correction method as described above and shown in fig. 1-6.
Optionally, the physical device may further include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
In an exemplary embodiment, referring to fig. 7, the entity device includes a communication bus, a processor, a memory, a communication interface, an input/output interface, and a display device, where each functional unit may perform communication with each other through the bus. The memory stores a computer program and a processor for executing the program stored in the memory, and executing the painting mounting method in the above embodiment.
It will be appreciated by those skilled in the art that the configuration of a trapezoidal shaped corrective physical device provided in this embodiment is not limited to this physical device, and may include more or fewer components, or may be combined with certain components, or may be arranged with different components.
The storage medium may also include an operating system, a network communication module. The operating system is a program that manages the physical device hardware and software resources of the store search information processing described above, supporting the execution of information processing programs and other software and/or programs. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. By applying the technical scheme of the application, compared with the existing mode, the application can acquire the rotation angle of the projection equipment in a stable state, and perform trapezoidal correction aiming at the projection equipment in the stable state, thereby accurately grasping the timing of trapezoidal correction of the projection equipment and enabling the trapezoidal correction to achieve the expected effect.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of a preferred implementation scenario and that the modules or flows in the drawing are not necessarily required to practice the application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely illustrative of some embodiments of the application, and the application is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the application.
Claims (13)
1. A method of correcting trapezia, comprising:
acquiring angle posture data of projection equipment in real time;
detecting the rotation angles of the angle posture data of the projection equipment corresponding to different time periods, and judging whether the projection equipment is in a stable position state before correction or not by utilizing the rotation angles;
If so, triggering the projection equipment to perform trapezoidal correction according to the angle posture parameters corresponding to the position state of the projection equipment which is stable before correction.
2. The method of claim 1, wherein after the acquiring in real time the angular pose data of the projection device, the method further comprises:
and calculating the rotation angles of the angle posture data of the projection equipment corresponding to different time periods by using a discrete integration mode.
3. The method according to claim 2, wherein the calculating the rotation angle corresponding to the angular pose data of the projection device in different time periods by using a discrete integration method specifically comprises:
collecting the sampling of projection equipment to obtain discrete angle posture data;
simulating continuously changing angle posture data with the discrete angle posture data;
and calculating the rotation angles corresponding to the continuously-changing angle posture data in different time periods by using a discrete integration mode.
4. The method according to claim 1, wherein detecting the rotation angle corresponding to the angular pose data of the projection device in different time periods, and determining whether the projection device is in a stable position state before correction by using the rotation angle, specifically includes:
detecting a rotation angle corresponding to the angle posture data of the projection equipment in a first time period;
When the rotation angle corresponding to the angle posture data in a first time period is larger than a first threshold value, determining that the projection equipment is in an unstable position state, and detecting the rotation angle corresponding to the angle posture data of the projection equipment in a second time period, wherein the first time period is before the second time period in time sequence;
and if the rotation angle corresponding to the angle posture data in the second time period is continuously stabilized in the second threshold value, determining that the projection equipment is in a stable position state before correction.
5. The method of claim 4, wherein prior to detecting the angle of rotation of the angular pose data of the projection device for the first period of time, the method further comprises:
and predefining a time range corresponding to the sliding window by using a sliding window method, and determining a first time period and a second time period.
6. The method of claim 5, wherein the determining the first time period and the second time period by predefining a time range corresponding to the sliding window by using a sliding window method specifically includes:
a sliding window method is used for predefining the width of a sliding window, and a time range corresponding to the sliding window is set according to the current time point and the width of the sliding window;
and determining a first time period and a second time period by utilizing the time range corresponding to the sliding window.
7. The method of claim 6, wherein the method further comprises:
and taking the current moment as a starting point, determining the current time period and angle posture data of the projection equipment corresponding to the current time period by using the width of the sliding window, and deleting the angle posture data of the projection equipment before the current time period.
8. The method of any of claims 1-7, wherein after triggering the projection device to perform trapezoidal correction according to the angular pose parameter corresponding to the position state of the projection device stabilized before correction, the method further comprises:
and switching the position state of the projection equipment to ensure that the projection equipment is in a stable position state after correction.
9. A trapezoidal orthotic device, comprising:
The acquisition unit is used for acquiring the angle posture data of the projection equipment in real time;
A first determining unit, configured to detect rotation angles corresponding to angle posture data of the projection device in different time periods, and determine whether the projection device is in a stable position state before correction by using the rotation angles;
And the triggering unit is used for triggering the projection equipment to perform trapezoidal correction according to the angle posture parameter corresponding to the stable position state before correction of the projection equipment if the projection equipment is in the stable position state before correction.
10. A correction module for a projection device for performing a keystone correction, in particular for performing a keystone correction method as claimed in any of claims 1 to 8.
11. Projection device comprising a correction module, in particular for performing a trapezoidal correction method according to any of the preceding claims 1-8 when performing a trapezoidal correction.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the trapezoidal correction method according to any one of claims 1 to 8 when the computer program is executed.
13. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the trapezoidal correction method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310091609.3A CN118354044A (en) | 2023-01-13 | 2023-01-13 | Trapezoidal correction method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310091609.3A CN118354044A (en) | 2023-01-13 | 2023-01-13 | Trapezoidal correction method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118354044A true CN118354044A (en) | 2024-07-16 |
Family
ID=91816679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310091609.3A Pending CN118354044A (en) | 2023-01-13 | 2023-01-13 | Trapezoidal correction method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118354044A (en) |
-
2023
- 2023-01-13 CN CN202310091609.3A patent/CN118354044A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10451705B2 (en) | Tracking control device, tracking control method, tracking control program, and automatic tracking imaging system | |
EP2998848B1 (en) | Method, device, and apparatus for controlling screen rotation | |
CN105072328B (en) | Video shooting method and device and terminal | |
WO2014166862A1 (en) | Automatic time lapse capture | |
CN105549814B (en) | Photographing method based on mobile terminal and mobile terminal | |
US11758270B2 (en) | Shake correction control device, imaging apparatus, shake correction method of imaging apparatus, and program | |
US20160313799A1 (en) | Method and apparatus for identifying operation event | |
CN106648344A (en) | Screen content adjustment method and equipment | |
CN110969116A (en) | Method for determining gazing point position and related device | |
CN115633387A (en) | Network connection method and electronic equipment | |
CN113489909B (en) | Shooting parameter determining method and device and electronic equipment | |
CN109302563B (en) | Anti-shake processing method and device, storage medium and mobile terminal | |
CN111212222A (en) | Image processing method, image processing apparatus, electronic apparatus, and storage medium | |
CN111986229A (en) | Video target detection method, device and computer system | |
CN111586305B (en) | Anti-shake method, anti-shake device and electronic equipment | |
WO2023179440A1 (en) | Shooting apparatus control method and apparatus, shooting apparatus and electronic device | |
CN118354044A (en) | Trapezoidal correction method, device and equipment | |
CN109753146B (en) | Method for starting application by mobile terminal and mobile terminal | |
EP3739866A1 (en) | Information processing device, information processing method, and program | |
CN113660420B (en) | Video frame processing method and video frame processing device | |
CN112291476B (en) | Shooting anti-shake processing method and device and electronic equipment | |
CN115086561A (en) | Automatic zooming method and device, self-timer and storage medium | |
JP5662787B2 (en) | Mobile terminal and image processing method | |
CN113724324A (en) | Control method and device of holder, storage medium and electronic device | |
CN104881107B (en) | A kind of information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |