CN115797616A - Image correction point acquisition method and device, electronic equipment and medium - Google Patents

Image correction point acquisition method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115797616A
CN115797616A CN202211167853.5A CN202211167853A CN115797616A CN 115797616 A CN115797616 A CN 115797616A CN 202211167853 A CN202211167853 A CN 202211167853A CN 115797616 A CN115797616 A CN 115797616A
Authority
CN
China
Prior art keywords
image
correction
key points
card
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211167853.5A
Other languages
Chinese (zh)
Inventor
温职先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yaliote Technology Co ltd
Original Assignee
Shenzhen Yaliote 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 Shenzhen Yaliote Technology Co ltd filed Critical Shenzhen Yaliote Technology Co ltd
Priority to CN202211167853.5A priority Critical patent/CN115797616A/en
Publication of CN115797616A publication Critical patent/CN115797616A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention relates to an image correction point acquisition method, an image correction point acquisition device, electronic equipment and a medium, wherein a correction card comprises a plurality of key points, and a part of key points are target key points, and the method comprises the following steps: receiving an image to be detected of a correction card, and acquiring first coordinates of a plurality of key points in the image to be detected of the correction card; acquiring second coordinates of the plurality of key points in a preset calibration card reference image; acquiring a conversion matrix according to a first coordinate of the plurality of key points in an image to be detected of the correction card and a second coordinate of the plurality of key points in a preset reference image of the correction card; and acquiring the correction coordinates of the target key points in the image to be measured of the correction card according to the conversion matrix and the second coordinates of the target key points in the reference image of the correction card. According to the scheme, the conversion matrix between the coordinate systems is constructed through the key points and the key points to be detected, errors are distributed to all the key points, and the precision of the image correction point acquisition method can be effectively improved.

Description

Image correction point acquisition method and device, electronic equipment and medium
Technical Field
The invention relates to the field of artificial intelligence fingerprint identification, in particular to an image correction point acquisition method, an image correction point acquisition device, electronic equipment and a medium.
Background
The principle of artificial intelligent fingerprint identification is to compare detail characteristic points of different fingerprints, and is the most widely applied biometric identification technology at present. Compared with other identification routes in an exploration stage, the application of artificial intelligence fingerprint identification is more mature, the algorithm is more accurate, and the artificial intelligence fingerprint identification becomes the first choice in the industry of most fields.
In the image correction point acquisition method for artificial intelligence fingerprint identification in the prior art, the scheme of the method depends on the coordinates of key points directly acquired in the image to be detected, and the improvement of the accuracy of the method has a technical bottleneck in practical application. For example, for an optical fingerprint instrument with keystone distortion, the coordinates of key points need to be collected when the method for acquiring the image correction points is performed, and if the prior art is applied, the method is limited by the acquisition precision, and has a problem of large error, so that the method for acquiring the image correction points has a poor effect.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to design an image correction point acquisition method can effectively improve the precision of the existing image correction point acquisition method.
In order to solve the above problems, embodiments of the present invention provide an image correction point obtaining method, an image correction point obtaining device, an electronic apparatus, and a medium, where a transformation matrix between coordinate systems is constructed by key points and key points to be detected, and errors are distributed to all the key points, so that accuracy of the image correction point obtaining method can be effectively improved.
In a first aspect, the present invention provides a method for acquiring an image correction point, where a correction card includes a plurality of key points, and some of the key points are target key points, and the method includes: receiving an image to be detected of a correction card, and acquiring first coordinates of a plurality of key points in the image to be detected of the correction card; acquiring second coordinates of a plurality of key points in a preset calibration card reference image; acquiring a conversion matrix between a first image coordinate system of the image to be corrected of the correction card and a second image coordinate system of the reference image of the correction card according to first coordinates of the key points in the image to be corrected of the correction card and second coordinates of the key points in a preset reference image of the correction card; and acquiring the correction coordinates of the target key points in the image to be measured of the correction card according to the conversion matrix and the second coordinates of the target key points in the reference image of the correction card.
The further technical scheme is that the obtaining of the first coordinates of the plurality of key points in the image to be detected of the correction card comprises: and detecting through a target detection algorithm to obtain first coordinates of the plurality of key points in the image to be detected of the correction card.
A further technical solution is that, the obtaining a transformation matrix between a first image coordinate system of the image to be corrected of the card and a second image coordinate system of the reference image of the correction card according to a first coordinate of the plurality of key points in the image to be corrected of the card and a second coordinate of the plurality of key points in a preset reference image of the correction card comprises: establishing an equation set with the conversion matrix as an unknown number according to a first coordinate of each key point in an image to be detected of the correction card and a second coordinate of each key point in a preset reference image of the correction card; and solving the equation set to obtain the conversion matrix.
According to the further technical scheme, the obtaining of the correction coordinate of the target key point in the image to be measured of the correction card according to the conversion matrix and the second coordinate of the target key point in the reference image of the correction card comprises: and multiplying the conversion matrix by a second coordinate of the target key point in the correction card reference image to obtain a result, namely a correction coordinate of the target key point in the correction card image to be detected.
The further technical scheme is that the correction card is square, the number of the target key points is 4, and the target key points are respectively positioned at four corners of the correction card.
The further technical solution is that the obtaining of the second coordinates of the plurality of key points in the preset calibration card reference image includes: and reading a second coordinate of the key point in a preset correction card reference image from a preset storage position.
The further technical scheme is that after the correction coordinates of the target key points in the image to be measured of the correction card are obtained, the method further comprises the following steps: and storing the corrected coordinates into a preset Flash memory.
In a second aspect, the present invention provides an image correction point acquisition apparatus comprising means for performing the method according to the first aspect.
In a third aspect, the present invention provides an electronic device, comprising: a memory for storing a computer program; a processor for implementing the steps of the method according to the first aspect when executing a program stored in the memory.
In a fourth aspect, the invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method of the first aspect.
In summary, the method has the advantages that the conversion matrix in the scheme is derived from a large number of key points, the large number means that an information source is stable, and the error of a single point is not easy to influence the overall accuracy, namely the conversion matrix between the coordinate systems is constructed by the key points and the key points to be detected, the error is distributed to all the key points, and the accuracy of the image correction point acquisition method is effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic flowchart of an image correction point obtaining method according to an embodiment of the present invention.
Fig. 2 is another schematic flow chart of an image correction point obtaining method according to an embodiment of the present invention.
Fig. 3 is a block diagram of an image correction point obtaining apparatus according to an embodiment of the present invention.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
It will be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to one or any and all possible combinations of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an image correction point obtaining method according to an embodiment of the present invention. The embodiment of the invention provides an image correction point acquisition method, wherein a correction card of the image correction point acquisition method comprises a plurality of key points, one part of the key points in the plurality of key points are target key points, and the target key points are used as correction points of an image to be detected of the correction card, and the method comprises the following steps:
s101, receiving an image to be detected of a correction card, and acquiring first coordinates of a plurality of key points in the image to be detected of the correction card.
In the above scheme, the image to be detected of the correction card is the target image to be detected and corrected in the technical scheme; in specific implementation, firstly, an image coordinate system is established in an image to be detected of a correction card, and then the coordinates of each key point in the image to be detected of the correction card in the image coordinate system are obtained; the more the number of the key points is, the more accurate the identification of the image to be detected of the correction card is through the combination formed by the key points.
S102, acquiring second coordinates of the plurality of key points in a preset calibration card reference image.
The second coordinate of the key point in the preset calibration card reference image can be read from the preset storage position, and the technical effect is that the acquisition efficiency of the second coordinate can be improved through pre-storage, and meanwhile, the calculation amount is small.
S103, acquiring a conversion matrix between a first image coordinate system of the image to be detected of the correction card and a second image coordinate system of the reference image of the correction card according to a first coordinate of the plurality of key points in the image to be detected of the correction card and a second coordinate of the plurality of key points in a preset reference image of the correction card.
The calculation formula of the conversion matrix between the first image coordinate system of the image to be detected of the correction card and the second image coordinate system of the reference image of the correction card can be as follows:
Figure BDA0003862083020000051
wherein the first coordinate is (X, Y, Z), the second coordinate is (X, Y, Z), and the transformation matrix is T;
Figure BDA0003862083020000052
in the above scheme, the transformation of the coordinates between the coordinate systems can be realized by a transformation matrix between the coordinate systems, that is, the transformation matrix between the first coordinates of the key points in the image to be detected of the calibration card and the second coordinates of a plurality of key points in the preset reference image of the calibration card is realized; correspondingly, if the coordinate of the same point between the two coordinate systems is known, the transformation matrix between the coordinate systems can be reversely solved; for three-dimensional coordinates, at least four points of coordinates between two coordinate systems are needed, and the transformation matrix between the coordinate systems can be solved.
And S104, acquiring the correction coordinates of the target key points in the image to be measured of the correction card according to the conversion matrix and the second coordinates of the target key points in the reference image of the correction card.
Wherein, the correction coordinate is a target coordinate of the image correction point acquisition method; the acquisition of the correction coordinates is influenced by the transformation matrix; the number of the key points is larger than that of the target key points, the conversion matrix is derived from the key points with the large number, the error of a single point is not easy to influence the overall accuracy, and the error can be shared, so that the correction accuracy of the conversion matrix can be obviously improved.
The target key points are used as correction points of the image to be corrected of the correction card, and the correction coordinate of the target key points in the image to be corrected of the correction card can be used for correcting the image to be corrected of the correction card.
In this embodiment, the first coordinates of the key points in the image to be detected of the calibration card are equivalent to the first group of coordinates, and the number of the coordinates is large; the second coordinates of the key points in the preset calibration card reference image are equivalent to a second group of coordinates, and the number of the second coordinates is large; the second coordinates of the target keypoints in the calibration card reference image are equivalent to a third set of coordinates, which are fewer in number and partially correspond to the second set of coordinates.
The method has the advantages that the conversion matrix in the scheme is derived from a large number of key points, the large number means that an information source is stable, and the error of a single point is not easy to influence the overall precision, namely the conversion matrix between the coordinate systems is constructed through the key points and the key points to be detected, the errors are distributed to all the key points, and the precision of the image correction point obtaining method is effectively improved.
Example 2
Referring to fig. 2, fig. 2 is a schematic flow chart of another image correction point obtaining method according to an embodiment of the present invention.
S201, receiving an image to be detected of a correction card, detecting through a target detection algorithm, and acquiring first coordinates of a plurality of key points in the image to be detected of the correction card.
In the above scheme, the image to be detected of the correction card is the target image to be detected and corrected in the technical scheme; in the specific implementation, firstly, an image coordinate system is established in an image to be detected of a correction card, and then the coordinates of each key point in the image to be detected of the correction card in the image coordinate system are obtained; the more the number of the key points is, the more accurate the identification of the image to be detected of the correction card through the combination formed by the key points is; the target detection algorithm can detect a target to be detected in an image and frame the target in a bounding box manner, and a technical means for specifically implementing the target detection algorithm is known to those skilled in the art.
S202, reading a second coordinate of the key point in a preset correction card reference image from a preset storage position.
The number of the key points can be seventeen, wherein the key points comprise a center positioned in the center, and the rest points are arranged towards eight directions relative to the center point; eight points closest to the central point and the central point form a Sudoku pattern, and the rest eight points are uniformly distributed along the periphery of the Sudoku pattern; the method has the technical effect that a user can update or iterate the coordinates stored in the preset position according to actual needs so as to adapt to service requirements of different image correction point acquisition methods.
S203, establishing an equation set with the conversion matrix as an unknown number according to the first coordinate of each key point in the image to be detected of the correction card and the second coordinate of each key point in the preset reference image of the correction card, and solving the equation set to obtain the conversion matrix.
The calculation formula of the conversion matrix between the first image coordinate system of the image to be detected of the correction card and the second image coordinate system of the reference image of the correction card can be as follows:
Figure BDA0003862083020000061
the first coordinates of the key points in the image to be detected of the correction card are (X, Y, Z), the second coordinates of the key points in the preset reference image of the correction card are (X, Y, Z), and the conversion matrix is T;
Figure BDA0003862083020000062
in the above solution, the transformation of coordinates between coordinate systems may be implemented by a transformation matrix between coordinate systems, that is, the transformation matrix between a first coordinate of the key point in the image to be detected of the calibration card and a second coordinate of a plurality of key points in the preset calibration card reference image is implemented; correspondingly, if the coordinate of the same point between two coordinate systems is known, the transformation matrix between the coordinate systems can also be reversely solved; for three-dimensional coordinates, at least four points of coordinates between two coordinate systems are needed, and the transformation matrix between the coordinate systems can be solved.
And S204, multiplying the conversion matrix by a second coordinate of the target key point in the calibration card reference image to obtain a result, namely a calibration coordinate of the target key point in the calibration card to-be-detected image.
Wherein, the correction coordinate is a target coordinate of the image correction point acquisition method; the acquisition of the correction coordinates is influenced by the transformation matrix; the number of the key points is larger than that of the target key points, the conversion matrix is derived from the key points with the larger number, the error of a single point is not easy to influence the overall accuracy, and the error can be shared, so that the accuracy of the image correction point acquisition method can be remarkably improved by the conversion matrix.
The calculation formula of the correction coordinate may be:
Figure BDA0003862083020000071
wherein the second coordinate of the target key point in the calibration card reference image is (X) 2 ,Y 2 ,Z 2 ) The correction coordinate of the target key point in the image to be measured of the correction card is (X) 1 ,Y 1 ,Z 1 ) The conversion matrix is T;
Figure BDA0003862083020000072
and S205, storing the corrected coordinates into a preset Flash memory.
The Flash memory is a memory chip, can combine the advantages of ROM and RAM, not only has the performance of electrically erasable programmable EEPROM, but also can quickly read data, so that the data can not be lost due to power failure.
In one embodiment, the preset correction card has a plurality of key points arranged in a square shape; wherein, four vertexes of the square are target key points; the correction card is provided with a reference image, coordinates of preset key points in a coordinate system of the reference image are known, and the image correction point acquisition method comprises the following steps:
firstly, detecting and acquiring coordinates of key points of an image to be detected through a target detection algorithm, wherein the coordinates include all the key points and refer to coordinates in a coordinate system of the image to be detected; since this step is to directly acquire the coordinates, there is an error that the directly acquired coordinates are unreliable.
Secondly, obtaining coordinates of key points in the reference image, including all the key points, wherein the coordinates refer to coordinates in a coordinate system of the reference image; matching key points in the reference image with key points in the image to be detected one by one; the specific matching mode is to match the positions of the key points in the images, for example, the first key point in the first row in the two images is matched with each other, and so on.
And thirdly, solving a conversion matrix between the two coordinate systems according to the coordinates of each key point in the coordinate system of the image to be detected and the coordinates in the coordinate system of the reference image.
And fourthly, reversely deducing the coordinates of the four target key points of the image to be detected in the coordinates of the reference image through the conversion matrix and the four target key points, obtaining corrected coordinates by multiplying the coordinates by the coordinates, and storing the corrected coordinates into a Flash memory.
The method has the advantages that the conversion matrix between the coordinate systems is constructed through the key points and the key points to be detected, errors are distributed to all the key points, the precision of the image correction point obtaining method can be effectively improved, and the obtained correction coordinates can be stored in a preset Flash memory.
Example 3
Referring to fig. 3, fig. 3 is a block diagram of an image correction point obtaining apparatus according to another embodiment of the present invention. Corresponding to the above image correction point acquisition method, the present invention also provides an image correction point acquisition apparatus 70. The image calibration point acquiring apparatus 70 includes a unit for executing the image calibration point acquiring method, and the apparatus may be configured in a desktop computer, a tablet computer, a portable computer, and other terminals, and specifically includes:
the first coordinate obtaining unit 71 is configured to receive an image to be detected of a calibration card, and obtain first coordinates of a plurality of key points in the image to be detected of the calibration card.
A second coordinate obtaining unit 72, configured to obtain second coordinates of the plurality of key points in a preset calibration card reference image.
A transformation matrix obtaining unit 73, configured to obtain a transformation matrix between a first image coordinate system of the image to be corrected of the card and a second image coordinate system of the reference image of the correction card according to a first coordinate of the plurality of key points in the image to be corrected of the card and a second coordinate of the plurality of key points in a preset reference image of the correction card.
And a corrected coordinate obtaining unit 74, configured to obtain, according to the transformation matrix and the second coordinate of the target key point in the calibration card reference image, a corrected coordinate of the target key point in the calibration card to-be-detected image.
In an embodiment, the obtaining the first coordinates of the plurality of key points in the image to be detected of the calibration card includes first establishing an image coordinate system in the image to be detected of the calibration card, and then obtaining the coordinates of each key point in the image coordinate system in the image to be detected of the calibration card; the more the number of the key points is, the more accurate the identification of the image to be detected of the correction card is through the combination formed by the key points.
In another embodiment, the second coordinates of the plurality of key points in the preset calibration card reference image are obtained, and the second coordinates of the key points in the preset calibration card reference image can be read from a preset position.
In another embodiment, the conversion matrix between the first image coordinate system of the image to be corrected and the second image coordinate system of the reference image of the correction card is obtained according to the first coordinates of the plurality of key points in the image to be corrected and the second coordinates of the plurality of key points in a preset reference image of the correction card; the conversion of coordinates between coordinate systems can be realized by a conversion matrix between coordinate systems, that is, a conversion matrix between a first coordinate of the key point in the image to be measured of the calibration card and a second coordinate of a plurality of key points in a preset reference image of the calibration card is realized.
In another embodiment, the correction coordinates of the target key points in the image to be measured of the correction card are obtained according to the conversion matrix and the second coordinates of the target key points in the reference image of the correction card; the correction coordinate is a target coordinate of the image correction point acquisition method; the acquisition of the correction coordinates is influenced by the transformation matrix; the number of the key points is larger than that of the target key points, the conversion matrix is derived from the key points with the larger number, the error of a single point is not easy to influence the overall accuracy, and the error can be shared, so that the accuracy of the image correction point acquisition method can be obviously improved by the conversion matrix.
The image correction point acquisition device has the technical effects that the conversion matrix of the image correction point acquisition device is derived from a large number of key points, the large number means that an information source is stable, and the error of a single point is not easy to influence the overall precision, namely the conversion matrix between coordinate systems is constructed through the key points and the key points to be detected, the errors are distributed to all the key points, and the precision of the image correction point acquisition method is effectively improved.
Example 4
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to the present invention. The electronic equipment can be a terminal or a server, wherein the terminal can be an electronic equipment with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device. The servers may be independent servers or a server cluster composed of servers.
The system comprises a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112 and the memory 113 complete mutual communication through the communication bus 114;
a memory 113 for storing a computer program;
in an embodiment of the present invention, the processor 111, when executing the program stored in the memory 113, is configured to implement the method provided by any one of the foregoing method embodiments.
It should be understood that, in the embodiment of the present Application, the Processor 111 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium that is computer-readable. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method as provided by any of the method embodiments described above.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk. The computer readable storage medium may be non-volatile or volatile.
Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention 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, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of 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 terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, 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 related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An image correction point acquisition method is characterized in that a correction card comprises a plurality of key points, and a part of key points in the plurality of key points are target key points, and the method comprises the following steps:
receiving an image to be detected of a correction card, and acquiring first coordinates of a plurality of key points in the image to be detected of the correction card;
acquiring second coordinates of the plurality of key points in a preset calibration card reference image;
acquiring a conversion matrix between a first image coordinate system of the image to be detected of the correction card and a second image coordinate system of the reference image of the correction card according to a first coordinate of the plurality of key points in the image to be detected of the correction card and a second coordinate of the plurality of key points in a preset reference image of the correction card;
and acquiring the correction coordinates of the target key points in the image to be measured of the correction card according to the conversion matrix and the second coordinates of the target key points in the reference image of the correction card.
2. The method for acquiring the image correction point according to claim 1, wherein the acquiring the first coordinates of the plurality of key points in the image to be measured of the correction card comprises:
and detecting through a target detection algorithm to obtain first coordinates of the plurality of key points in the image to be detected of the correction card.
3. The method according to claim 1, wherein the obtaining a transformation matrix between the first image coordinate system of the calibration card reference image and the second image coordinate system of the calibration card reference image according to the first coordinates of the plurality of key points in the calibration card reference image and the second coordinates of the plurality of key points in a preset calibration card reference image comprises:
establishing an equation set with the conversion matrix as an unknown number according to a first coordinate of each key point in an image to be detected of the correction card and a second coordinate of each key point in a preset reference image of the correction card;
and solving the equation set to obtain the conversion matrix.
4. The method for obtaining the image correction point according to claim 1, wherein the obtaining the correction coordinate of the target key point in the image to be measured of the calibration card according to the transformation matrix and the second coordinate of the target key point in the calibration card reference image comprises:
and multiplying the conversion matrix by a second coordinate of the target key point in the correction card reference image to obtain a result, namely a correction coordinate of the target key point in the correction card image to be detected.
5. The image correction point acquisition method according to claim 1, characterized in that:
the correction card is square, the number of the target key points is 4, and 4 target key points are respectively positioned at four corners of the correction card.
6. The method for acquiring image correction points according to claim 1, wherein the acquiring second coordinates of the plurality of key points in a preset correction card reference image comprises:
and reading a second coordinate of the key point in a preset correction card reference image from a preset storage position.
7. The method for acquiring the image correction point according to claim 1, wherein the acquiring the correction coordinates of the target key point in the image to be corrected of the correction card further comprises:
and storing the corrected coordinates into a preset Flash memory.
8. An image correction point acquisition apparatus characterized by comprising means for performing the method according to any one of claims 1 to 7.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, is adapted to carry out the method according to any one of claims 1-7.
CN202211167853.5A 2022-09-23 2022-09-23 Image correction point acquisition method and device, electronic equipment and medium Pending CN115797616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211167853.5A CN115797616A (en) 2022-09-23 2022-09-23 Image correction point acquisition method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211167853.5A CN115797616A (en) 2022-09-23 2022-09-23 Image correction point acquisition method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115797616A true CN115797616A (en) 2023-03-14

Family

ID=85432183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211167853.5A Pending CN115797616A (en) 2022-09-23 2022-09-23 Image correction point acquisition method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115797616A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117853382A (en) * 2024-03-04 2024-04-09 武汉人工智能研究院 Sparse marker-based image correction method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117853382A (en) * 2024-03-04 2024-04-09 武汉人工智能研究院 Sparse marker-based image correction method, device and storage medium
CN117853382B (en) * 2024-03-04 2024-05-28 武汉人工智能研究院 Sparse marker-based image correction method, device and storage medium

Similar Documents

Publication Publication Date Title
CN112348863B (en) Image alignment method, image alignment device and terminal equipment
CN110503682B (en) Rectangular control identification method and device, terminal and storage medium
CN112085798B (en) Camera calibration method and device, electronic equipment and storage medium
CN111259890A (en) Water level identification method, device and equipment of water level gauge
CN110766088A (en) Method and device for analyzing vehicles in same driving and storage device
CN112198878B (en) Instant map construction method and device, robot and storage medium
CN115797616A (en) Image correction point acquisition method and device, electronic equipment and medium
CN110738204B (en) Certificate area positioning method and device
CN111141208B (en) Parallel line detection method and device
CN112966719A (en) Method and device for recognizing meter panel reading and terminal equipment
CN111259492B (en) Point cloud data processing method and device applied to bridge structure pre-assembly and storage medium
CN113050022B (en) Image positioning method and device based on rotary antenna and terminal equipment
CN108629219B (en) Method and device for identifying one-dimensional code
CN108564571B (en) Image area selection method and terminal equipment
CN112633299B (en) Target detection method, network, device, terminal equipment and storage medium
CN115457202A (en) Method and device for updating three-dimensional model and storage medium
CN111132309B (en) Positioning method, positioning device, server and storage medium
CN116295466A (en) Map generation method, map generation device, electronic device, storage medium and vehicle
CN113920305A (en) Lightning arrester instrument identification method and device
CN109919998B (en) Satellite attitude determination method and device and terminal equipment
CN111429399A (en) Straight line detection method and device
CN111709955A (en) Image segmentation inspection method, device, terminal and storage medium
CN116152350B (en) Internal reference evaluation method, device, terminal and storage medium
CN115423855B (en) Template matching method, device, equipment and medium for image
CN115861428B (en) Pose measurement method and device, terminal equipment and storage medium

Legal Events

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