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

Method and device for determining target coordinates Download PDF

Info

Publication number
CN115150598B
CN115150598B CN202110352772.1A CN202110352772A CN115150598B CN 115150598 B CN115150598 B CN 115150598B CN 202110352772 A CN202110352772 A CN 202110352772A CN 115150598 B CN115150598 B CN 115150598B
Authority
CN
China
Prior art keywords
determining
projection
target
reference point
optical zoom
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.)
Active
Application number
CN202110352772.1A
Other languages
Chinese (zh)
Other versions
CN115150598A (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)
  • Image Processing (AREA)
  • Projection Apparatus (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 zoom reference point, wherein the first projection area is a projection picture zoomed by 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 a 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 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 target coordinates according to the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects. The method solves the technical problem that the rectangular which is adjusted by trapezoidal correction can be changed into a trapezoid by optical scaling after trapezoidal correction due to the side projection angle.

Description

Method and device for determining target coordinates
Technical Field
The present application relates to the field of projection, and in particular, to a method and apparatus for determining coordinates of an object.
Background
In order to ensure that the effect of the square projection picture is realized by using scenes such as side projection display, obstacle avoidance display and the like, a digital trapezoid correction function is often used, and the original full picture content is partially displayed and partially hidden to achieve the effect of the square picture in the physical world. For a machine with optical zoom, after the trapezoidal correction is adjusted, the user can also perform optical zoom operation, but the rectangle adjusted by the trapezoidal correction is gradually changed into a trapezoid after optical zoom due to the side projection angle at the moment.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining target coordinates, which at least solve the technical problem that a trapezoid corrected and adjusted rectangle can be changed into a trapezoid by optical scaling after trapezoid correction due to the side projection angle.
According to one aspect of the embodiments of the present application, there is provided a method for determining coordinates of an object, including: 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 a first mapping relation between an initial optical zoom reference point and a first mapping relation, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a preset reference point in a projection plane 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 a 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 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 target coordinates according to the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects.
Optionally, the first mapping relation 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 the equivalent optical zoom reference point according to the initial optical zoom reference point and the first mapping relation includes: determining initial coordinates corresponding to the initial optical zoom reference points; and carrying out homography transformation on the initial coordinates based on the first homography transformation matrix to obtain equivalent optical zoom reference points.
Optionally, before determining the first distance from the equivalent optical zoom reference point at the first predetermined position of the first projection area, 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 scaled by a third projection area; and determining the first preset position according to the fourth preset position coordinate and the first homography transformation matrix.
Optionally, determining the second mapping relationship according to the position of the target point and the first predetermined position includes: determining target coordinates at a position of the target point and first coordinates at a first predetermined position; obtaining a second homography transformation matrix according to the target coordinates and the first coordinates; and taking the second homography transformation matrix as a second mapping relation.
Optionally, obtaining the target coordinate according to the second mapping relation between the second predetermined position coordinate and the second mapping relation includes: and performing matrix multiplication operation on the second preset position coordinates and the second homography transformation matrix to obtain target coordinates.
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 line between the equivalent optical zoom reference point and a second predetermined location; and determining the position of the target point on the target connection according to the ratio.
Optionally, the first predetermined position and the second predetermined position are in one-to-one correspondence, and the first predetermined position and the second predetermined position are multiple, and determining the ratio of the first distance to the second distance includes: a maximum ratio is selected from the determined plurality of ratios, and a location of the target point on the target link is determined based on the maximum ratio.
Optionally, determining the location of the target point on the target link based on the maximum ratio includes: multiplying the maximum ratio by the second distance to obtain a third distance; drawing a circle by taking the equivalent zoom 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 point as the position of the target point.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for determining coordinates of an object, including: the first determining module is used for 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 a first mapping relation between an initial optical zoom reference point and the equivalent optical zoom reference point, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a reference point preset in a projection plane and used for carrying out zoom processing on the projection picture; a second determining module for determining a second distance from the equivalent optical zoom reference point at a second predetermined location 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 the target point between the equivalent optical zoom reference point and the 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 a fifth determining module, 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 device performs projection.
According to another aspect of the embodiments of the present application, there is further provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and when the program runs, the device in which the non-volatile storage medium is controlled to execute any one of the methods for determining the coordinates of the target.
According to another aspect of the embodiments of the present application, there is further provided a processor, configured to execute a program, where the program executes any one of the methods for determining coordinates of an object.
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 a first mapping relation between an initial optical zoom reference point and the 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 a 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 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 target coordinates according to a second preset position coordinate and a second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects, so that the technical effect of determining the projection coordinates based on the maximum projection areas before and after zooming and the maximum projection areas after trapezoid correction before and after zooming is achieved, and further the technical problem that the rectangle which is subjected to trapezoid correction and adjustment originally becomes a trapezoid due to the fact that a side projection angle exists and optical zooming is carried out after trapezoid 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a schematic view of a coordinate position in an alternative projection space of the present application;
FIG. 2 is a schematic view of an alternative projected area in the physical world of the present application;
FIG. 3 is a flow chart of a method of determining target coordinates according to an embodiment of the present application;
FIG. 4 is a schematic view of a coordinate position in an alternative projection space of the present application;
FIG. 5 is a schematic diagram illustrating a movement track of a corresponding projection screen during an optical zooming process of an alternative exemplary zoom lens with optical function according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a correspondence between an optional optical zoom position and a frame zoom scale according to an embodiment of the present disclosure;
FIG. 7 is a schematic view of a coordinate position in projection space of another alternative embodiment of the present application;
fig. 8 is a schematic structural view of an apparatus for determining coordinates of an object according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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 the embodiments of the present application, there is provided a method embodiment for determining coordinates of an object, it being noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
For a better understanding of the related embodiments of the present application, the problem of trapezium caused by optical scaling will now be described by those skilled in the art:
fig. 1 is a schematic view of coordinate positions in an optional projection space of the present application, it should be noted that the projection space is a virtual projection picture of a projection device, and it can be understood that the virtual projection picture may be a fitting picture corresponding to an actual projection picture of the projection device in a physical space, as shown in fig. 1, where a region a is a complete picture coordinate region before optical zooming, a region C is a trapezoid correction coordinate region value adjusted to ensure square correction of a picture in a physical world under a certain side projection angle, a region B is a complete picture region after optical zooming is zoomed to a certain position, a region D is a corresponding trapezoid correction coordinate region after optical zooming is performed on the region C, and fig. 2 is a schematic view of a projection region in the optional physical world of the present application, as shown in fig. 2, corresponding projection regions Cw, dw of the region C and the region D in the physical space are adjusted to be a square picture before zooming, and after the region C is zoomed by the optical zooming, the same pixel region is not zoomed again due to the fact that the same pixel region is not zoomed by the same size at different distances. That is, because of the side projection angle, performing optical scaling after the trapezoidal correction causes the rectangle that has been adjusted by the trapezoidal correction to become a trapezoid.
Accordingly, the present application proposes a method of determining coordinates of an object, fig. 3 being a method of determining coordinates of an object according to an embodiment of the present application, as shown in fig. 3, the method comprising the steps of:
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 a first mapping relation between an initial optical zoom reference point and the equivalent optical zoom reference point, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a preset reference point in a projection plane for zooming the projection picture;
step S104, determining a second distance between a second preset position of a second projection area and an equivalent optical zoom reference point;
step S106, 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;
step S108, determining a second mapping relation according to the position of the target point and the first preset position;
step S110, obtaining target coordinates according to a second mapping relation between the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects.
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 zoom reference point is determined, wherein the equivalent optical zoom reference point is determined according to a first mapping relation between an initial optical zoom reference point and the first mapping relation, the first projection area is a projection picture scaled by a second projection area, and the optical zoom reference point is a preset reference point in a projection plane for carrying out zooming processing on the projection picture; determining a second distance between a second preset position of the second projection area and the equivalent optical zoom reference point; then, determining a 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 finally, obtaining target coordinates according to a second preset position coordinate and a second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects, so that the technical effect of determining the projection coordinates based on the maximum projection area before and after zooming and the maximum projection area after trapezoid correction before and after zooming is achieved, and further, the technical problem that the rectangle which is subjected to trapezoid correction and adjustment originally becomes a trapezoid due to the fact that a side projection angle exists and optical zooming is carried out after trapezoid correction is solved.
It should be noted that, after the virtual projection image is obtained through simulation, the coordinate ranges of the regions before and after zooming can be determined according to the zoomed scale, fig. 4 is a schematic diagram of the coordinate positions in the projection space, as shown in fig. 4, where the region a is a complete image coordinate region before optical zooming, the region C is a trapezoid correction coordinate region value adjusted to ensure the square of the image in the physical world under a certain side projection angle, the region B is a complete image region after optical zooming is zoomed to a certain position, the region D is a corresponding trapezoid correction coordinate region after optical zooming is performed for the region C, where the o point is an initial optical zooming reference point, and the o1 point is an equivalent optical zooming reference point.
Fig. 5 illustrates an optional exemplary optical zoom lens with an optical zoom lens according to an embodiment of the present application, corresponding to a movement track of a projection screen, where an optical zoom center (i.e., an optical zoom reference point) may be anywhere within the screen, and may even be outside the screen, which may depend on a specific optical design.
Fig. 6 is a schematic diagram of a correspondence between an optional optical zoom position and a zoom scale of a picture according to an embodiment of the present application, where after the optical zoom position is moved, the zoom scale of four points of the picture relative to an optical zoom center (optical zoom reference point, abbreviated as optical center) is linearly zoomed according to the same scale, and then the linear relationship r=kb+c shown in the following figure may be unified to be represented, where r represents a ratio of a distance from a current corner point (upper left, upper right, lower left, and lower right corner points) of the picture to a distance oT1 from a corresponding vertex to the optical center under a maximum picture in a case of a current zoom position b; for example, at the maximum projection ratio position b2 (where the upper right corner of the picture is T2), then r=ot2/oT 1, where oT1 is the distance from the optical center o to the corner of T1 in the upper graph, oT2 is the distance from the optical center o to the corner of T2 in the upper graph, k, c are curve parameters, and b is the current zoom position. It should be noted that, if the distance change relationships between the four corner points and the optical zoom center are inconsistent, four curves need to be fitted to represent the picture positions, and the fitted curves include, but are not limited to, the linear relationships shown in the drawing, and before and after zooming, the region a and the region B shown in fig. 4 correspond to the optical zoom positions B1 and B3 in fig. 6 respectively, so that the distance ratio of r1=kb 1+c and r3=kb 2+c corresponding to the region a and the region B can be obtained respectively; then, the optical zoom reference point o is calculated to the corresponding coordinate under the proportion of the corresponding corner point of the initial maximum picture (when the projection ratio is minimum, namely, the corresponding picture maximum area, it is to be noted that the area a just before zooming is the maximum picture area, when the picture before zooming is not the maximum picture, the corresponding coordinate is also referred to by the maximum picture), for example, when the length ratio is r1, the length of the upper left corner point is r1×oa to obtain the upper left corner point a, the picture before zooming B, C, D points can be obtained, the scale after zooming is r3, the length of the upper left corner is oa=r3×oa to obtain the a point, and the b, c and d points can be obtained according to the proportion. Thus, the front screen area a (rectangle ABCD) and the rear screen area B (rectangle ABCD) can be obtained, respectively, and it can be understood that the processing is similar in the case where the screen is enlarged, but corresponds to the screen changing from area B to area a.
It should be noted that, the projection area may be an actual projection area of the projection apparatus in the physical space, or may be a projection area virtual by the projection apparatus itself and corresponding to the actual projection area of the physical space, and the first mapping relationship may be determined by the following manner: 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, an equivalent optical zoom reference point may be determined according to a mapping relationship between an initial optical zoom reference point and a first mapping relationship, and specifically, an initial coordinate corresponding to the initial optical zoom reference point is determined; and carrying out homography transformation on the initial coordinates based on the first homography transformation matrix to obtain equivalent optical zoom reference points.
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 the fourth projection area may be obtained, where the fourth projection area is a projection picture zoomed by 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 coordinates and the first coordinates, 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 a second mapping relationship between the second predetermined position coordinate and the second predetermined position coordinate, and specifically, a matrix multiplication operation is performed on the second predetermined position coordinate and the second homography transformation matrix to obtain the target coordinate.
It will be appreciated that the position of the target point between the equivalent optical zoom reference point and the second predetermined position may be determined from the ratio, in particular, the target line between the equivalent optical zoom reference point and the second predetermined position; and determining the position of the target point on the target connection 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 then corresponds to an upper left corner position in the second projection area, and it is obvious that there are a plurality of the first predetermined position and the second predetermined position, for example, an upper left corner position, a lower left corner position, an upper right corner position, and a lower right corner position of the first projection area, and for example, an upper left corner position, a lower right corner position, and a lower right corner position of the second projection area, and therefore, when determining a ratio of the first distance to the second distance, a maximum ratio may be selected from the determined plurality of ratios, and the position of the target point on the target line is determined based on the maximum ratio.
In some embodiments of the present application, the position of the target point on the target 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 with the equivalent zoom center as the center of a circle and the third distance as the radius, the circular motion track is determined, the intersection point of the circular motion track and the target line is determined, and the coordinate corresponding to the intersection point is used as the position of the target point.
In order to facilitate better understanding of the related embodiments of the present application by those skilled in the art, fig. 7 is a schematic diagram of coordinate positions in an alternative projection space of the present application, and the related embodiments of the present application are now described with reference to fig. 7, as shown in fig. 7, a homography transformation matrix H1 (first mapping relationship) from a region a (third projection region) to a region C (second projection region) may be calculated, where it is to be noted that, in order to ensure that, at a certain side projection angle, a frame square is ensured, the region C (second projection region) is a trapezoid correction coordinate region adjusted, a specific calculation process may be that four angular point coordinates of the region C (second projection region) are determined, four angular point coordinates of the region a (third projection region) are solved by adopting a direct linear transformation method Direct Linear Transformation (abbreviated as DLT), so as to obtain a homography transformation matrix H1, and after obtaining the homography transformation matrix H1, the coordinates of o-points of the initial optical reference points may be transformed to obtain scaling coordinates of o-points of the equivalent optical reference points based on the homography transformation matrix H1.
Further, the four-point coordinates of the area B (abcd, fourth projection area) are subjected to homography according to the homography transformation matrix H1 (first mapping relation) obtained in the previous step to obtain four new coordinate points, namely four-point coordinates of the area D (efgh, first projection area); then connecting the equivalent optical zoom reference point o1 to four points of the area C (EFGH, second projection area), and calculating the ratio of the line segments o1-E to o 1-E: o1-E/o1-E, similarly, calculating o1-f/o1-F, o1-G/o1-G, o1-H/o1-H respectively to obtain four ratios, preferably taking the maximum value of the four ratios, and assuming that the maximum Ratio is o1-G/o1-G at this time, and recording as max Ratio; further, according to the max Ratio obtained in the previous step, respectively calculating the intersection positions on the four corner points of the o1 to the region C, namely, o1-G max Ratio to obtain a G1 point (shown as a small circular ring in the figure), and the same can be said to obtain an E1 point (o 1-E max Ratio), an F1 point (o 1-F max Ratio) and an H1 point (o 1-H max Ratio); next, a homography transformation matrix H2 (second mapping relationship) from EFGH four points to e1f1g1H1 four points is calculated, and finally, the coordinate values of the four points after final adjustment are initial trapezoidal correction four-point coordinate values (second predetermined position coordinate values) H2 (second mapping relationship), and the obtained new four-point coordinate is the target coordinate, and it is easy to note that the initial trapezoidal correction four-point coordinate values are coordinate values corresponding to four corner points of the C region (EFGH, second projection region).
Fig. 8 is an apparatus for determining coordinates of an object 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 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 the first optical zoom reference point, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a reference point preset in a projection plane for performing zoom processing on the projection picture;
a second determining module 42 for determining a second distance from the equivalent optical zoom reference point at a second predetermined location 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 target coordinates according to the second mapping relationship between the second predetermined position coordinates and the second predetermined position coordinates, where the target coordinates are projection coordinates set when the projection device projects the target coordinates.
In the device for determining the target coordinates, a 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 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 picture scaled by a second projection area, and the optical zoom reference point is a reference point preset in a projection plane for performing zoom processing on the projection picture; a second determining module 42 for determining a second distance from the equivalent optical zoom reference point at a second predetermined location 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; the fifth determining module 48 is configured to obtain the target coordinate according to the second predetermined position coordinate and the second mapping relation, where the target coordinate is a projection coordinate set when the projection device performs projection, so as to determine the technical effect of the projection coordinate based on the maximum projection area before and after scaling and the maximum projection area after trapezoidal correction before and after scaling, thereby solving the technical problem that the optically scaled rectangle after trapezoidal correction may become a trapezoid after trapezoidal correction due to the side projection angle.
According to another aspect of the embodiments of the present application, there is further provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and when the program runs, the device in which the non-volatile storage medium is controlled to execute any one of the methods for determining the coordinates of the target.
The storage medium is used for storing program instructions for executing the functions of 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 a first mapping relation between an initial optical zoom reference point and the first mapping relation, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a reference point preset in a projection plane and used for carrying out zooming processing on 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 a 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 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 target coordinates according to the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects.
According to another aspect of the embodiments of the present application, there is further provided a processor, configured to execute a program, where the program executes any one of the methods for determining coordinates of an object.
Specifically, the above processor is configured to call program instructions 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 zoom reference point, wherein the equivalent optical zoom reference point is determined according to a first mapping relation between an initial optical zoom reference point and a first mapping relation, the first projection area is a projection picture zoomed by a second projection area, and the optical zoom reference point is a preset reference point in a projection plane 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 a 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 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 target coordinates according to the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. A method of determining coordinates of a target, comprising:
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 a first mapping relation between an initial optical zoom reference point and a first mapping relation, the first projection area is a projection picture subjected to zoom of a second projection area, and the optical zoom reference point is a reference point preset in a projection plane and used for carrying out zoom processing on 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 a ratio of the first distance to the second distance, and determining a 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 target coordinates according to the second preset position coordinates and the second mapping relation, wherein the target coordinates are projection coordinates set when the projection device projects.
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 trapezoid 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 to first mapping relationship comprises:
determining initial coordinates corresponding to the initial optical zoom reference points;
and carrying out homography transformation on the initial coordinates based on the first homography transformation matrix to obtain the equivalent optical zoom reference point.
4. A method according to claim 3, wherein prior to determining the first distance from the equivalent optically scaled reference point at the first predetermined location of the first projection area, 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 scaled by 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 from 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 coordinates and the first coordinates;
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 position coordinates and the second mapping relationship comprises:
and performing matrix multiplication operation 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 a second predetermined position from the ratio comprises:
determining a target line between the equivalent optical zoom reference point and the second predetermined location;
and determining the position of the target point on the target connection 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 there are a plurality of the first predetermined location and the second predetermined location, determining the ratio of the first distance to the second distance comprises:
a maximum ratio is selected from the determined plurality of ratios, and a location of a target point on the target link is determined 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 zoom center as a circle center and the third distance as a radius, and determining a circular motion track;
determining an intersection point of the circular motion track and the target connecting line;
and taking the coordinates corresponding to the intersection point as the position of the target point.
10. An apparatus for determining coordinates of an object, comprising:
the first determining module is used for 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 a first mapping relation between an initial optical zoom reference point and the equivalent optical zoom reference point, the first projection area is a projection picture after the second projection area is zoomed, and the optical zoom reference point is a reference point preset in a projection plane and used for carrying out zooming processing on the projection picture;
a second determining module for determining a second distance from the equivalent optical zoom reference point at a second predetermined location 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 a fifth determining module, 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 device performs projection.
11. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the device in which the non-volatile storage medium is controlled to perform the method of determining target coordinates according to any of claims 1 to 9 when the program is run.
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 CN115150598A (en) 2022-10-04
CN115150598B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (4)

* 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
JP5353596B2 (en) * 2009-09-18 2013-11-27 セイコーエプソン株式会社 Projection display device and keystone correction method
JP5377278B2 (en) * 2009-12-28 2013-12-25 キヤノン株式会社 Projection type display device and geometric distortion correction method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2022205814A1 (en) 2022-10-06
CN115150598A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN110111262B (en) Projector projection distortion correction method and device and projector
CN112399158B (en) Projection image calibration method and device and projection equipment
CN111640180B (en) Three-dimensional reconstruction method and device and terminal equipment
US20190058875A1 (en) Three-Dimensional Surveillance System, and Rapid Deployment Method for Same
CN118138889B (en) Intelligent follow-up shooting method, system and storage medium of camera in virtual scene
CN114004890B (en) Attitude determination method and apparatus, electronic device, and storage medium
CN110443751B (en) Image deformation method, device and equipment based on drawing lines and storage medium
JPH07182537A (en) Device and method for plotting graphic
JP2738588B2 (en) 3D model drawing method
CN115150598B (en) Method and device for determining target coordinates
US20120038785A1 (en) Method for producing high resolution image
CN112788317A (en) Method, system, storage medium and playing device for playing panoramic video
CN115150599B (en) Method and device for determining target coordinates
CN108510433B (en) Space display method and device and terminal
JP2002260003A (en) Video display device
CN116645275A (en) Method, device, projector and storage medium for correcting projection image
CN103929584B (en) Method for correcting image and image calibrating circuit
CN115150600B (en) Method and device for determining display area of projection picture and projector
CN115150597B (en) Projection display method and device and projection equipment
CN114546555B (en) Graph pickup method, device and medium based on space geometry
CN115150596B (en) Projection display method and device and projection equipment
CN116109758B (en) Method and device for positioning projection position of light source and rendering scene
JP3483276B2 (en) Three-dimensional image display method and apparatus
CN113362387A (en) Environment map construction method of dynamic environment mobile robot
CN113157835A (en) Image processing method, device and platform based on GIS platform 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