CN115150598A - Method and device for determining target coordinates - Google Patents

Method and device for determining target coordinates Download PDF

Info

Publication number
CN115150598A
CN115150598A CN202110352772.1A CN202110352772A CN115150598A CN 115150598 A CN115150598 A CN 115150598A CN 202110352772 A CN202110352772 A CN 202110352772A CN 115150598 A CN115150598 A CN 115150598A
Authority
CN
China
Prior art keywords
determining
projection
target
reference point
coordinate
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.)
Granted
Application number
CN202110352772.1A
Other languages
Chinese (zh)
Other versions
CN115150598B (en
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.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi Technology 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 Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202110352772.1A priority Critical patent/CN115150598B/en
Priority to PCT/CN2021/120719 priority patent/WO2022205814A1/en
Publication of CN115150598A publication Critical patent/CN115150598A/en
Application granted granted Critical
Publication of CN115150598B publication Critical patent/CN115150598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Projection Apparatus (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a method and a device for determining target coordinates. Wherein, the method comprises the following steps: determining a first distance between a first preset position of a first projection area and an equivalent optical zooming reference point, wherein the first projection area is a zoomed projection picture of a second projection area; determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area; determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection. The method solves the technical problem that the original rectangle which is subjected to trapezoidal correction and is adjusted can become trapezoidal due to the fact that the side projection angle exists and optical zooming is carried out after trapezoidal correction.

Description

Method and device for determining target coordinates
Technical Field
The application relates to the field of projection, in particular to a method and a device for determining target coordinates.
Background
In order to ensure that the squareness effect of a projection picture is realized in the use scenes such as side projection display, obstacle avoidance display and the like, a digital trapezoidal correction function is often used, and the original full-picture content is partially displayed and partially hidden to achieve the squareness effect of the picture in the physical world. For the machine with optical zoom, after the trapezoidal correction is adjusted, the user can also perform the optical zoom operation, but because the side projection angle exists at this time, the original rectangle with the trapezoidal correction adjusted gradually becomes a trapezoid after the optical zoom.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining target coordinates, which are used for at least solving the technical problem that due to the existence of a side projection angle, the original rectangle which is subjected to trapezoidal correction and is adjusted can be changed into a trapezoid by optical zooming after trapezoidal correction.
According to an aspect of an embodiment of the present application, there is provided a method of determining target coordinates, including: determining a first distance between a first preset position of a first projection area and an equivalent optical zooming reference point, wherein the equivalent optical zooming reference point is determined according to the initial optical zooming reference point and a first mapping relation, the first projection area is a projection picture obtained by zooming a second projection area, and the optical zooming reference point is a reference point which is preset in a projection plane and is used for zooming the projection picture; determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area; determining the ratio of the first distance to the second distance, and determining the position of the target point between the equivalent optical zoom reference point and the second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
Optionally, the first mapping relationship is determined by: acquiring a second preset position coordinate corresponding to a second projection area, wherein the second projection area is a projection picture subjected to trapezoidal correction in a third projection area; acquiring a third preset position coordinate corresponding to a third projection area, wherein the third projection area is a maximum projection picture; and determining a first homography transformation matrix according to the third preset position coordinate and the second preset position coordinate, and taking the first homography transformation matrix as a first mapping relation.
Optionally, determining an equivalent optical scaling reference point according to the initial optical scaling reference point and the first mapping relationship includes: determining initial coordinates corresponding to the initial optical zoom reference point; and carrying out homography transformation on the initial coordinate based on the first homography transformation matrix to obtain an equivalent optical zooming reference point.
Optionally, before determining the first distance from the equivalent optical zoom reference point at the first predetermined position of the first projection region, the method further comprises: acquiring a fourth preset position coordinate corresponding to a fourth projection area, wherein the fourth projection area is a projection picture obtained by zooming the third projection area; and determining the first preset position according to the fourth preset position coordinate and the first homography transformation matrix.
Optionally, determining a second mapping relationship according to the position of the target point and the first predetermined position includes: determining a target coordinate at a position of the target point and a first coordinate at a first predetermined position; obtaining a second homography transformation matrix according to the target coordinate and the first coordinate; and taking the second homography transformation matrix as a second mapping relation.
Optionally, obtaining the target coordinate according to the second predetermined position coordinate and the second mapping relationship includes: and carrying out matrix multiplication operation on the second preset position coordinate and the second homography transformation matrix to obtain a target coordinate.
Optionally, determining the position of the target point between the equivalent optical zoom reference point and the second predetermined position according to the ratio comprises: determining a target connecting line between the equivalent optical zooming reference point and a second preset position; and determining the position of the target point on the target connecting line according to the ratio.
Optionally, the determining a ratio of the first distance to the second distance includes: a maximum ratio is selected from the determined ratios, and the position of the target point on the target link is determined based on the maximum ratio.
Optionally, determining the position of the target point on the target link based on the maximum ratio comprises: multiplying the maximum ratio by the second distance to obtain a third distance; drawing a circle by taking the equivalent zooming center as a circle center and taking the third distance as a radius, and determining a circular motion track; determining the intersection point of the circular motion track and the target connecting line; and taking the coordinates corresponding to the intersection points as the positions of the target points.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for determining target coordinates, including: the first determining module is used for determining a first distance between a first preset position of the first projection area and an equivalent optical zooming reference point, wherein the equivalent optical zooming reference point is determined according to the initial optical zooming reference point and a first mapping relation, the first projection area is a projection picture obtained by zooming the second projection area, and the optical zooming reference point is a reference point which is preset in a projection plane and is used for zooming the projection picture; a second determining module for determining a second distance from the equivalent optical zoom reference point at a second predetermined position of the second projection area; the third determining module is used for determining the ratio of the first distance to the second distance and determining the position of the target point between the equivalent optical zooming reference point and the second preset position according to the ratio; the fourth determining module is used for determining a second mapping relation according to the position of the target point and the first preset position; and the fifth determining module is used for obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, which includes a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute any one of the methods for determining target coordinates.
According to another aspect of the embodiments of the present application, there is also provided a processor for executing a program, where the program executes any one of the methods for determining target coordinates.
In the embodiment of the application, a mode of determining a projection area based on an equivalent optical zoom reference point is adopted, and a first distance between a first preset position of a first projection area and the equivalent optical zoom reference point is determined, wherein the equivalent optical zoom reference point is determined according to the initial optical zoom reference point and a first mapping relation, and the first projection area is a projection picture of a second projection area after zooming; determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area; determining the ratio of the first distance to the second distance, and determining the position of the target point between the equivalent optical zoom reference point and the second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set by the projection device during projection, the technical effect of determining the projection coordinate based on the maximum projection area before and after zooming and the maximum projection area after trapezoidal correction before and after zooming is achieved, and the technical problem that the original rectangle which is subjected to trapezoidal correction and adjustment can be changed into a trapezoid due to the existence of a side projection angle when optical zooming is performed after trapezoidal correction is solved.
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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of coordinate locations in an alternative projection space of the present application;
FIG. 2 is a schematic diagram of an alternative physical world projected area of the present application;
FIG. 3 is a schematic flow chart diagram of a method of determining target coordinates according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative coordinate location in projection space according to the present application;
FIG. 5 is a schematic diagram of a moving track of an alternative typical zoom lens system with optics according to an embodiment of the present application, which corresponds to a projection image during an optical zooming process;
FIG. 6 is a diagram illustrating an alternative relationship between an optical zoom position and a frame zoom ratio according to an embodiment of the present application;
FIG. 7 is a schematic representation of coordinate locations in an alternative projection space of the present application;
fig. 8 is a schematic structural diagram of an apparatus for determining target coordinates according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided an embodiment of a method for determining target coordinates, where it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
For a better understanding of the relevant embodiments of the present application by those skilled in the art, the trapezoidal problem caused by optical zoom will now be described:
fig. 1 is a schematic diagram of coordinate positions in an alternative projection space of the present application, and it should be noted that the projection space is a virtual projection screen of a projection apparatus, it is understood that the virtual projection screen may be a fitting screen corresponding to an actual projection screen of the projection apparatus in a physical space, as shown in fig. 1, where a region a is a coordinate region of a full screen before optical zooming, a region C is a trapezoidal correction coordinate region value adjusted to ensure that the screen is square in a physical world under a certain side angle, a region B is a full screen region after optical zooming to a certain position, a region D is a corresponding trapezoidal correction coordinate region after optical zooming of the region C, and fig. 2 is a schematic diagram of a projection region in an alternative physical world of the present application, as shown in fig. 2, corresponding projection regions Cw, dw of the regions C and D in a physical space, where the region C has been adjusted to a square rectangular screen before zooming, and after optical zooming, due to the existence of a projection angle, the same pixel region is not consistent in size at different distances, and is no longer a region Dw after zooming. That is, due to the side projection angle, performing optical zooming after keystone correction causes the original keystone-corrected and adjusted rectangle to become a trapezoid.
Therefore, the present application proposes a method for determining target coordinates, and fig. 3 is a method for determining target coordinates according to an embodiment of the present application, as shown in fig. 3, the method includes the following steps:
step S102, determining a first distance between a first preset position of a first projection area and an equivalent optical zoom reference point, wherein the equivalent optical zoom reference point is determined according to the initial optical zoom reference point and a first mapping relation, the first projection area is a projection image zoomed by a second projection area, and the optical zoom reference point is a reference point which is preset in a projection plane and used for zooming the projection image;
step S104, determining a second distance between a second preset position of the second projection area and the equivalent optical zooming reference point;
step S106, determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second preset position according to the ratio;
step S108, determining a second mapping relation according to the position of the target point and the first preset position;
and step S110, obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
In the method for determining the target coordinates, a first distance between a first preset position of a first projection area and an equivalent optical scaling reference point is determined, it should be noted that the equivalent optical scaling reference point is determined according to an initial optical scaling reference point and a first mapping relation, the first projection area is a projection image obtained by scaling a second projection area, and the optical scaling reference point is a reference point preset in a projection plane and used for performing zooming processing on the projection image; then determining a second distance between a second preset position of the second projection area and the equivalent optical zoom reference point; then, determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and finally, obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set by the projection device during projection, the technical effect of determining the projection coordinate based on the maximum projection area before and after zooming and the maximum projection area after trapezoidal correction before and after zooming is achieved, and the technical problem that the original rectangle which is subjected to trapezoidal correction and adjustment can be changed into a trapezoid due to the existence of a side projection angle when optical zooming is carried out after trapezoidal correction is solved.
It should be noted that, after the virtual projection image is obtained through simulation, the coordinate ranges of the areas before and after zooming can be determined according to the zooming proportion, fig. 4 is a schematic diagram of the coordinate positions in an optional projection space of the present application, as shown in fig. 4, an area a is a complete image coordinate area before optical zooming, an area C is a trapezoidal correction coordinate area value adjusted to ensure the squareness of the image in the physical world at a certain side projection angle, an area B is a complete image area after optical zooming to a certain position, an area D is a corresponding trapezoidal correction coordinate area after optical zooming to the area C, where an o point is an initial optical zooming reference point, and an o1 point is an equivalent optical zooming reference point.
Fig. 5 is an alternative exemplary zoom lens with optics according to an embodiment of the present application, which corresponds to a moving track of a projected image during an optical zooming process, and it should be noted that an illustrated optical zooming center (i.e., an optical zooming reference point) may be anywhere in the image, and may even be outside the image, which may be determined according to a specific optical design.
Fig. 6 is a schematic diagram of a corresponding relationship between an optional optical zoom position and a frame zoom ratio in an embodiment of the present application, where after the optical zoom position moves, the zoom ratios of four points of the frame with respect to an optical zoom center (an optical zoom reference point, referred to as an optical center for short) are linearly scaled according to the same ratio, and then may be uniformly represented by a linear relationship r = kb + c shown in the following figure, where r represents a ratio between a distance from a current corner point (four corner points, i.e., top left, top right, bottom left, and bottom right) of the frame to the optical center and a distance oT1 from a corresponding vertex to the optical center in the maximum frame in a case of a current zoom position b; for example, at the maximum throw ratio position b2 (at this time, the top right corner of the screen is T2), then r = oT2/oT1, where oT1 is the distance from the optical center o to the T1 corner in the upper diagram, oT2 is the distance from the optical center o to the T2 corner in the upper diagram, k and c are curve parameters, and b is the current zoom position. It should be noted that if the distance change relationships from the four corner points to the optical zoom center are inconsistent, four curves need to be fitted to represent the image position, and the fitted curves include, but are not limited to, the linear relationship shown in the drawing, and the regions a and B before and after zooming shown in fig. 4 correspond to the optical zoom positions B1 and B3 in fig. 6, respectively, so that the distance ratio of the regions a and B corresponding to each other is r1= kb1+ c and r3= kb2+ c; then, corresponding coordinates at a ratio of corresponding corner points of the optical zooming reference point o to the initial maximum picture (when the projection ratio is minimum, that is, the corresponding picture maximum region, it should be noted that, the case where the pre-zooming region a is just the maximum picture region, and when the pre-zooming picture is not the maximum picture, the maximum picture is also used as a reference) are respectively calculated, for example, when the length ratio of r1 is 1, the length of the upper left corner point is r1 × oA, the upper left corner point is obtained as a point, the pre-zooming pictures B, C, and D can be obtained in the same way, and when the post-zooming ratio is r3, the length of the upper left corner point oA = r3 × oA, the point a is obtained, and similarly, the points B, C, and D can be obtained according to the ratio. Thus, the zoomed front picture area a (rectangle ABCD) and the zoomed back picture area B (rectangle ABCD) are obtained separately, and it will be appreciated that the picture is enlarged in a similar manner, but for the picture changed from area B to area a.
The projection area may be an actual projection area of the projection apparatus in the physical space, or may be a projection area corresponding to the actual projection area of the physical space, which is virtually created by the projection apparatus itself, and the first mapping relationship may be determined as follows: acquiring a second preset position coordinate corresponding to a second projection area, wherein the second projection area is a projection picture subjected to trapezoidal correction in a third projection area; acquiring a third preset position coordinate corresponding to a third projection area, wherein the third projection area is a maximum projection picture; and determining a first homography transformation matrix according to the third preset position coordinate and the second preset position coordinate, and taking the first homography transformation matrix as a first mapping relation.
In some optional embodiments of the present application, the equivalent optical zoom reference point may be determined according to the initial optical zoom reference point and the first mapping relationship, specifically, an initial coordinate corresponding to the initial optical zoom reference point is determined; and carrying out homography transformation on the initial coordinate based on the first homography transformation matrix to obtain an equivalent optical zooming reference point.
It can be understood that, before determining the first distance between the first predetermined position of the first projection area and the equivalent optical zoom reference point, a fourth predetermined position coordinate corresponding to a fourth projection area may be obtained, where it is to be noted that the fourth projection area is a projection image obtained after zooming the third projection area, and finally, the first predetermined position is determined according to the fourth predetermined position coordinate and the first homography transformation matrix.
In some embodiments of the present application, the second mapping relationship may be determined according to the position of the target point and the first predetermined position, specifically, the target coordinate at the position of the target point and the first coordinate at the first predetermined position are determined; and obtaining a second homography transformation matrix according to the target coordinate and the first coordinate, and then taking the second homography transformation matrix as a second mapping relation.
In some embodiments of the present application, the target coordinate may be obtained according to the second predetermined position coordinate and the second mapping relationship, and specifically, the target coordinate is obtained by performing matrix multiplication on the second predetermined position coordinate and the second homography transformation matrix.
It is understood that the position of the target point between the equivalent optical zoom reference point and the second predetermined position can be determined according to the ratio, and specifically, a target connecting line between the equivalent optical zoom reference point and the second predetermined position is determined; and determining the position of the target point on the target connecting line according to the ratio.
It should be noted that the first predetermined position and the second predetermined position are in one-to-one correspondence, for example, the first predetermined position is an upper left corner position in the first projection area, and corresponds to an upper left corner position in the second projection area, obviously, there are multiple first predetermined positions and multiple second predetermined positions, for example, the upper left corner position, the lower left corner position, the upper right corner position, and the lower right corner position of the first projection area, and for example, the upper left corner position, the lower right corner position, and the lower right corner position of the second projection area, and therefore, when the ratio of the first distance to the second distance is determined, the maximum ratio can be selected from the multiple determined ratios, and the position of the target point on the target connection line is determined based on the maximum ratio.
In some embodiments of the present application, the position of the target point on the target connection line may be determined based on the maximum ratio, specifically, the maximum ratio is multiplied by the second distance to obtain a third distance, the circle is drawn by using the equivalent zoom center as a circle center and using the third distance as a radius, the circular motion trajectory is determined, an intersection point of the circular motion trajectory and the target connection line is determined, and a coordinate corresponding to the intersection point is used as the position of the target point.
In order to facilitate better understanding of the related embodiment of the present application, fig. 7 is a schematic diagram of coordinate positions in an alternative projection space of the present application, and the related embodiment of the present application is now described with reference to fig. 7, as shown in fig. 7, a homography Transformation matrix H1 (a first mapping relationship) from a region a (a third projection region) to a region C (a second projection region) may be calculated, it should be noted that the region C (the second projection region) is a trapezoidal correction coordinate region adjusted to ensure that a picture is normal in a physical world under a certain side projection angle, a specific calculation process may be that four corner coordinates of the region C (the second projection region) and four coordinates of the corner point of the region a (the third projection region) are determined, then a Direct Linear Transformation (DLT) is used for solving to obtain a homography Transformation matrix H1, and after obtaining the homography Transformation matrix H1, coordinates of an initial optically scaled o point may be transformed into a reference point of an equivalent optical Transformation matrix H1 based on the homography Transformation matrix H1.
Further, four new coordinate points obtained by performing homography transformation on the four-point coordinates of the area B (abcd, fourth projection area) according to the homography transformation matrix H1 (first mapping relation) obtained in the previous step, namely the four-point coordinates of the area D (efgh, first projection area); then, connecting the equivalent optical zoom reference point o1 to four points of an area C (EFGH, second projection area), and calculating the ratio of the line segment o1-E to the line segment o 1-E: o1-E/o1-E, similarly, respectively calculating o1-F/o1-F, o1-G/o1-G and o1-H/o1-H to obtain four ratios, preferably, taking the maximum value of the four ratios, and assuming that the maximum Ratio at this time is o1-G/o1-G, recording as max Ratio; further calculating the intersection positions on four corner points from o1 to the region C according to the max Ratio obtained in the previous step, i.e. o1-G max Ratio obtains G1 points (as shown by small circles in the figure), and similarly, E1 points (o 1-E max Ratio), F1 points (o 1-F max Ratio) and H1 points (o 1-H max Ratio) can be obtained; next, a homography transformation matrix H2 (a second mapping relationship) from the EFGH four points to the e1f1g1H1 four points is calculated, the finally adjusted four-point coordinate values are initial trapezoidal correction four-point coordinate values H2 (a second predetermined position coordinate value second mapping relationship), the obtained new four-point coordinates are target coordinates, and it is easily noticed that the initial trapezoidal correction four-point coordinate values are coordinate values corresponding to four corner points of the C region (EFGH, a second projection region).
Fig. 8 is an apparatus for determining target coordinates according to an embodiment of the present application, as shown in fig. 8, the apparatus including:
a first determining module 40, configured to determine a first distance between a first predetermined position of the first projection area and an equivalent optical zooming reference point, where the equivalent optical zooming reference point is determined according to a first mapping relationship between the initial optical zooming reference point and the first mapping relationship, the first projection area is a projection image obtained by zooming the second projection area, and the optical zooming reference point is a reference point preset in the projection plane and used for performing zooming processing on the projection image;
a second determining module 42 for determining a second distance from the equivalent optical zoom reference point at a second predetermined position of the second projection area;
a third determining module 44, configured to determine a ratio of the first distance to the second distance, and determine a position of the target point between the equivalent optical zoom reference point and the second predetermined position according to the ratio;
a fourth determining module 46, configured to determine a second mapping relationship according to the position of the target point and the first predetermined position;
and a fifth determining module 48, configured to obtain a target coordinate according to the second predetermined position coordinate and the second mapping relationship, where the target coordinate is a projection coordinate set when the projection apparatus performs projection.
In the apparatus for determining the target coordinate, the first determining module 40 is configured to determine a first distance between a first predetermined position of a first projection area and an equivalent optical zooming reference point, where the equivalent optical zooming reference point is determined according to a first mapping relationship between an initial optical zooming reference point and a first mapping relationship, the first projection area is a projection image obtained by zooming a second projection area, and the optical zooming reference point is a reference point preset in a projection plane and used for performing zooming processing on the projection image; a second determining module 42 for determining a second distance from the equivalent optical zoom reference point at a second predetermined position of the second projection area; a third determining module 44, configured to determine a ratio of the first distance to the second distance, and determine a position of the target point between the equivalent optical zoom reference point and the second predetermined position according to the ratio; a fourth determining module 46, configured to determine a second mapping relationship according to the position of the target point and the first predetermined position; and a fifth determining module 48, configured to obtain a target coordinate according to the second predetermined position coordinate and the second mapping relationship, where the target coordinate is a projection coordinate set when the projection apparatus performs projection, and a technical effect of determining the projection coordinate based on a maximum projection area before and after zooming and a maximum projection area after trapezoidal correction before and after zooming is achieved, so as to solve a technical problem that an original rectangle subjected to trapezoidal correction and adjustment may become a trapezoid due to the existence of a side projection angle when performing optical zooming after trapezoidal correction.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium including a stored program, wherein the program controls a device in which the non-volatile storage medium is located to execute any one of the methods of determining target coordinates when the program is running.
The storage medium is used for storing program instructions for executing the following functions, and the functions are realized by determining a first distance between a first preset position of a first projection area and an equivalent optical zooming reference point, wherein the equivalent optical zooming reference point is determined according to the initial optical zooming reference point and a first mapping relation, the first projection area is a projection picture of a second projection area after zooming, and the optical zooming reference point is a reference point which is preset in a projection plane and is used for zooming the projection picture; determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area; determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
According to another aspect of the embodiments of the present application, there is also provided a processor for executing a program, where the program executes any one of the methods for determining target coordinates.
Specifically, the processor is configured to call a program instruction in the memory, and implement the following functions: determining a first distance between a first preset position of a first projection area and an equivalent optical zooming reference point, wherein the equivalent optical zooming reference point is determined according to the initial optical zooming reference point and a first mapping relation, the first projection area is a projection picture obtained by zooming a second projection area, and the optical zooming reference point is a reference point which is preset in a projection plane and is used for zooming the projection picture; determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area; determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second preset position according to the ratio; determining a second mapping relation according to the position of the target point and the first preset position; and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (12)

1. A method of determining target coordinates, comprising:
determining a first distance between a first preset position of a first projection area and an equivalent optical zooming reference point, wherein the equivalent optical zooming reference point is determined according to a first mapping relation between an initial optical zooming reference point and a first mapping relation, the first projection area is a projection picture obtained by zooming a second projection area, and the optical zooming reference point is a reference point which is preset in the projection plane and is used for zooming the projection picture;
determining a second distance from the equivalent optical zoom reference point at a second predetermined location of the second projection area;
determining the ratio of the first distance to the second distance, and determining the position of a target point between the equivalent optical zoom reference point and a second predetermined position according to the ratio;
determining a second mapping relation according to the position of the target point and the first preset position;
and obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
2. The method of claim 1, wherein the first mapping relationship is determined by:
acquiring a second preset position coordinate corresponding to a second projection area, wherein the second projection area is a projection picture subjected to trapezoidal correction in a third projection area;
acquiring a third preset position coordinate corresponding to the third projection area, wherein the third projection area is a maximum projection picture;
and determining a first homography transformation matrix according to the third preset position coordinate and the second preset position coordinate, and taking the first homography transformation matrix as the first mapping relation.
3. The method of claim 2, wherein determining the equivalent optical zoom reference point from the initial optical zoom reference point and the first mapping comprises:
determining initial coordinates corresponding to the initial optical zoom reference point;
and performing homography transformation on the initial coordinate based on the first homography transformation matrix to obtain the equivalent optical scaling reference point.
4. The method of claim 3, wherein prior to determining the first distance from the equivalent optical zoom reference point at the first predetermined location of the first projection region, the method further comprises:
acquiring a fourth preset position coordinate corresponding to a fourth projection area, wherein the fourth projection area is a projection picture obtained by zooming the third projection area;
and determining the first preset position according to the fourth preset position coordinate and the first homography transformation matrix.
5. The method of claim 1, wherein determining a second mapping relationship according to the position of the target point and the first predetermined position comprises:
determining a target coordinate at a position of the target point and a first coordinate at the first predetermined position;
obtaining a second homography transformation matrix according to the target coordinate and the first coordinate;
and taking the second homography transformation matrix as the second mapping relation.
6. The method of claim 5, wherein obtaining target coordinates from the second predetermined location coordinates and the second mapping relationship comprises:
and carrying out matrix multiplication on the second preset position coordinate and the second homography transformation matrix to obtain the target coordinate.
7. The method of claim 1, wherein determining the position of the target point between the equivalent optical zoom reference point and the second predetermined position from the ratio comprises:
determining a target connecting line between the equivalent optical zoom reference point and the second predetermined position;
and determining the position of a target point on the target connecting line according to the ratio.
8. The method of claim 7, wherein the first predetermined location and the second predetermined location are in one-to-one correspondence, and wherein there are a plurality of first predetermined locations and a plurality of second predetermined locations, and wherein determining the ratio of the first distance to the second distance comprises:
and selecting the maximum ratio from the plurality of ratios, and determining the position of the target point on the target connecting line based on the maximum ratio.
9. The method of claim 8, wherein determining the location of the target point on the target link based on the maximum ratio comprises:
multiplying the maximum ratio by the second distance to obtain a third distance;
drawing a circle by taking the equivalent zooming center as a circle center and the third distance as a radius to determine a circular motion track;
determining the intersection point of the circular motion track and the target connecting line;
and taking the coordinates corresponding to the intersection points as the positions of the target points.
10. An apparatus for determining coordinates of an object, comprising:
the first determining module is configured to determine a first distance between a first predetermined position of a first projection area and an equivalent optical zoom reference point, where the equivalent optical zoom reference point is determined according to a first mapping relationship between an initial optical zoom reference point and a first mapping relationship, the first projection area is a projection image obtained by zooming a second projection area, and the optical zoom reference point is a reference point preset in the projection plane and used for performing zoom processing on the projection image;
a second determination module for determining a second distance from the equivalent optical zoom reference point at a second predetermined position of the second projection area;
a third determining module, configured to determine a ratio of the first distance to the second distance, and determine a position of a target point between the equivalent optical zoom reference point and a second predetermined position according to the ratio;
a fourth determining module, configured to determine a second mapping relationship according to the position of the target point and the first predetermined position;
and the fifth determining module is used for obtaining a target coordinate according to the second preset position coordinate and the second mapping relation, wherein the target coordinate is a projection coordinate set when the projection device performs projection.
11. A non-volatile storage medium, comprising a stored program, wherein a device on which the non-volatile storage medium is located is controlled to perform the method of determining target coordinates of any one of claims 1 to 9 when the program is run.
12. A processor configured to run a program, wherein the program when running performs the method of determining target coordinates of any one of claims 1 to 9.
CN202110352772.1A 2021-03-31 2021-03-31 Method and device for determining target coordinates Active CN115150598B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110352772.1A CN115150598B (en) 2021-03-31 2021-03-31 Method and device for determining target coordinates
PCT/CN2021/120719 WO2022205814A1 (en) 2021-03-31 2021-09-26 Target coordinate determination method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352772.1A CN115150598B (en) 2021-03-31 2021-03-31 Method and device for determining target coordinates

Publications (2)

Publication Number Publication Date
CN115150598A true CN115150598A (en) 2022-10-04
CN115150598B CN115150598B (en) 2023-05-12

Family

ID=83405634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352772.1A Active CN115150598B (en) 2021-03-31 2021-03-31 Method and device for determining target coordinates

Country Status (2)

Country Link
CN (1) CN115150598B (en)
WO (1) WO2022205814A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110069284A1 (en) * 2009-09-18 2011-03-24 Seiko Epson Corporation Projection display device and keystone correction method
US20110157232A1 (en) * 2009-12-28 2011-06-30 Canon Kabushiki Kaisha Projection-type display apparatus and geometric distortion correcting method for correcting geometric distortion
CN108632585A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 A kind of method for correcting image and device, storage medium, projection device
CN108924521A (en) * 2018-05-31 2018-11-30 晨星半导体股份有限公司 The trapezoidal distortion correction method and equipment of optical projection system
CN110290364A (en) * 2019-06-04 2019-09-27 成都极米科技股份有限公司 Electrodeless Zooming method, device and readable storage medium storing program for executing under side throwing mode
CN110996083A (en) * 2019-12-19 2020-04-10 成都极米科技股份有限公司 Trapezoidal correction method and device, electronic equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5405047B2 (en) * 2008-05-09 2014-02-05 三洋電機株式会社 Projection display device
CN101329761A (en) * 2008-07-25 2008-12-24 北京中星微电子有限公司 Method and apparatus for regulating keystone distortion of a projecting equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110069284A1 (en) * 2009-09-18 2011-03-24 Seiko Epson Corporation Projection display device and keystone correction method
US20110157232A1 (en) * 2009-12-28 2011-06-30 Canon Kabushiki Kaisha Projection-type display apparatus and geometric distortion correcting method for correcting geometric distortion
CN108632585A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 A kind of method for correcting image and device, storage medium, projection device
CN108924521A (en) * 2018-05-31 2018-11-30 晨星半导体股份有限公司 The trapezoidal distortion correction method and equipment of optical projection system
CN110290364A (en) * 2019-06-04 2019-09-27 成都极米科技股份有限公司 Electrodeless Zooming method, device and readable storage medium storing program for executing under side throwing mode
CN110996083A (en) * 2019-12-19 2020-04-10 成都极米科技股份有限公司 Trapezoidal correction method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN115150598B (en) 2023-05-12
WO2022205814A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
US11330172B2 (en) Panoramic image generating method and apparatus
US20180241986A1 (en) Image processing method and device
CN113223130B (en) Path roaming method, terminal equipment and computer storage medium
WO2022161240A1 (en) Photographing method and apparatus, electronic device, and medium
CN111739169A (en) Product display method, system, medium and electronic device based on augmented reality
US20190058875A1 (en) Three-Dimensional Surveillance System, and Rapid Deployment Method for Same
CN112017133B (en) Image display method and device and electronic equipment
CN111068310A (en) Method and system for realizing seamless loading of game map
WO2018014517A1 (en) Information processing method, device and storage medium
CN111835972B (en) Shooting method and device and electronic equipment
CN115150598B (en) Method and device for determining target coordinates
CN116912387A (en) Texture map processing method and device, electronic equipment and storage medium
CN108734791B (en) Panoramic video processing method and device
CN108510433B (en) Space display method and device and terminal
CN115150599B (en) Method and device for determining target coordinates
CN114489553B (en) Special effect switching method, special effect switching device and plug-in card type video processing equipment
CN111476716B (en) Real-time video stitching method and device
CN115150600B (en) Method and device for determining display area of projection picture and projector
CN110399086B (en) Game picture display control method and device, storage medium and electronic equipment
JP2002260003A (en) Video display device
CN114327174A (en) Virtual reality scene display method and cursor three-dimensional display method and device
CN112363621A (en) Terminal control method and device, electronic equipment and storage medium
CN116188668B (en) Shadow rendering method, medium and electronic device based on IOS platform
CN115150595A (en) Method and device for determining projection picture display area and projector
CN115174879B (en) Projection screen correction method, apparatus, computer device 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
GR01 Patent grant
GR01 Patent grant