CN110288655B - Method and device for automatically identifying position of test pattern in chart picture - Google Patents

Method and device for automatically identifying position of test pattern in chart picture Download PDF

Info

Publication number
CN110288655B
CN110288655B CN201910579003.8A CN201910579003A CN110288655B CN 110288655 B CN110288655 B CN 110288655B CN 201910579003 A CN201910579003 A CN 201910579003A CN 110288655 B CN110288655 B CN 110288655B
Authority
CN
China
Prior art keywords
corner point
polygon
module
unit
chart
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
CN201910579003.8A
Other languages
Chinese (zh)
Other versions
CN110288655A (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.)
Tvt Digital Technology Co ltd
Original Assignee
Tvt Digital 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 Tvt Digital Technology Co ltd filed Critical Tvt Digital Technology Co ltd
Priority to CN201910579003.8A priority Critical patent/CN110288655B/en
Publication of CN110288655A publication Critical patent/CN110288655A/en
Application granted granted Critical
Publication of CN110288655B publication Critical patent/CN110288655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method and a device for automatically identifying the position of a test pattern in a chart picture, wherein the method comprises the following steps: calibrating a rectangular frame of all test patterns in the chart; placing the chart in a dark box, and shooting the chart through a camera; collecting an image shot by a camera; performing Gaussian smoothing processing on the image; performing edge extraction on all test patterns in the smoothed image to obtain the graphic outlines of all the test patterns; performing polygon fitting on all the figure outlines to obtain a plurality of polygons; judging whether the polygon is a previously calibrated rectangular frame or not; if yes, eliminating the rectangular frame. The invention realizes automatic recognition of the position of the test pattern, reduces the complicated process that the position of the test pattern needs to be marked manually because the position of the test pattern is inconsistent due to the difference of the position of the chart, the camera parameter and the like, and avoids the problem of difference error caused by manually obtaining the position of the test pattern.

Description

Method and device for automatically identifying position of test pattern in chart picture
Technical Field
The invention relates to the field of optics, in particular to a method and a device for automatically identifying the position of a test pattern in a chart picture.
Background
The resolution determination of images is an important technical branch in the optical field, and has very important significance in the production application of cameras. In the process of judging the resolving power of the current image, the positions of the test patterns need to be manually obtained, then the test patterns in the chart pictures of all the positions are sampled, and then the TV-line algorithm is used for judging the resolving power. However, the process of manually acquiring the positions of the test patterns is complicated, and the work efficiency is extremely low. Therefore, a method capable of automatically recognizing the position of the test pattern is urgently needed.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for automatically identifying the position of a test pattern in a chart picture.
In order to achieve the purpose, the invention adopts the following technical scheme: a method of automatically identifying a test pattern location in a chart picture, the method comprising the steps of:
calibrating a rectangular frame of all test patterns in the chart;
placing the chart in a dark box, and shooting the chart through a camera;
collecting an image shot by a camera;
performing Gaussian smoothing processing on the image;
performing edge extraction on all test patterns in the smoothed image to obtain the graphic outlines of all the test patterns;
performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
judging whether the polygon is a previously calibrated rectangular frame or not;
if yes, eliminating the rectangular frame.
The further technical scheme is as follows: the step of determining whether the polygon is a previously pre-calibrated rectangular frame specifically includes the following steps:
acquiring the number of points constituting a polygon;
judging whether the number of the points is smaller than a preset value or not;
if not, acquiring the number of the sides forming the polygon;
judging whether the number of edges meets a preset value or not;
if so, extracting the circumscribed rectangle of the polygon;
judging whether the ratio of the length to the width of the circumscribed rectangle meets a set range;
if so, calculating the positions of four corner points of the polygon;
judging whether the polygon forms a parallelogram or not according to the positions of the four angular points;
if yes, the polygon is determined to be a pre-calibrated rectangular frame.
The further technical scheme is as follows: and in the step of judging whether the number of the edges meets the preset value, the preset value is 4-16.
The further technical scheme is as follows: the step of calculating the positions of four corner points of the polygon specifically comprises the following steps:
searching the positions of two angular points which are superposed with the external rectangle in the polygon, wherein the two angular points are a first angular point and a second angular point respectively;
searching the position of a third corner point which is farthest away from the first corner point and the second corner point;
calculating the range of the fourth corner point according to the corresponding relation between the third corner point and the first corner point and the corresponding relation between the third corner point and the second corner point respectively;
and finding out the corner point which is farthest from the first corner point and the second corner point in the range, wherein the corner point is positioned at the position of the fourth corner point.
A device for automatically identifying the position of a test pattern in a chart picture comprises a calibration unit, a shooting unit, a collecting unit, a processing unit, an edge extracting unit, a fitting unit, a judging unit and an eliminating unit;
the calibration unit is used for calibrating the rectangular frame of all the test patterns in the chart;
the shooting unit is used for placing the chart picture in a dark box and shooting the chart picture through a camera;
the acquisition unit is used for acquiring images shot by the camera;
the processing unit is used for carrying out Gaussian smoothing processing on the image;
the edge extraction unit is used for extracting the edges of all the test patterns in the smoothed image so as to obtain the graphic outlines of all the test patterns;
the fitting unit is used for performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
the judging unit is used for judging whether the polygon is a previously calibrated rectangular frame or not;
and the eliminating unit is used for eliminating the rectangular frame.
The further technical scheme is as follows: the judgment unit comprises a first acquisition module, a first judgment module, a second acquisition module, a second judgment module, an extraction module, a third judgment module, a calculation module, a fourth judgment module and a judgment module;
the first obtaining module is used for obtaining the number of points forming the polygon;
the first judging module is used for judging whether the number of the points is smaller than a preset value or not;
the second obtaining module is used for obtaining the number of the sides forming the polygon;
the second judging module is used for judging whether the number of the edges meets a preset value or not;
the extraction module is used for extracting a circumscribed rectangle of the polygon;
the third judging module is used for judging whether the ratio of the length to the width of the circumscribed rectangle meets a set range;
the calculation module is used for calculating the positions of four corner points of the polygon;
the fourth judging module is used for judging whether the polygon forms a parallelogram or not according to the positions of the four angular points;
and the judging module is used for judging that the polygon is a pre-calibrated rectangular frame.
The further technical scheme is as follows: the calculation module comprises a first search submodule, a second search submodule, a calculation submodule and a third search submodule;
the first searching submodule is used for searching the positions of two corner points which are superposed with the external rectangle in the polygon, wherein the two corner points are a first corner point and a second corner point respectively;
the second searching submodule is used for searching the position of a third corner point which is farthest away from the first corner point and the second corner point;
the calculation submodule is used for calculating the range of the fourth corner point according to the corresponding relation between the third corner point and the first corner point and the corresponding relation between the third corner point and the second corner point;
and the third searching submodule is used for searching the corner point which is farthest away from the first corner point and the second corner point in the range, and the position of the corner point is the position of the fourth corner point.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a method and a device for automatically identifying the position of a test pattern in a chart. The automatic recognition of the position of the test pattern is realized, the complicated processes that the position of the test pattern needs to be marked manually due to the fact that the position of the test pattern is inconsistent due to the difference of the position of the chart and the camera parameters are reduced, and the problem of difference errors caused by manually obtaining the position of the test pattern is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented according to the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more apparent, the following detailed description will be given of preferred embodiments.
Drawings
FIG. 1 is a first flowchart of a method for automatically identifying a position of a test pattern in a chart according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for automatically identifying a position of a test pattern in a chart according to the present invention;
FIG. 3 is a flowchart III of a method for automatically identifying the position of a test pattern in a chart according to an embodiment of the present invention;
FIG. 4 is a first block diagram of an embodiment of an apparatus for automatically identifying a location of a test pattern in a chart according to the present invention;
FIG. 5 is a second block diagram of an embodiment of an apparatus for automatically identifying the location of a test pattern in a chart according to the present invention;
fig. 6 is a third structural diagram of an embodiment of an apparatus for automatically recognizing a position of a test pattern in a chart according to the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
It is to be understood that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects.
It should be further understood that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
As shown in FIG. 1, the present invention provides a method for automatically identifying the position of a test pattern in a chart picture, which comprises the following steps:
s10, performing rectangular frame calibration on all test patterns in the chart;
s20, placing the chart in a dark box, and shooting the chart through a camera;
s30, collecting images shot by a camera;
s40, performing Gaussian smoothing processing on the image;
s50, performing edge extraction on all test patterns in the smoothed image to obtain the graphic outlines of all test patterns;
s60, performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
s70, judging whether the polygon is a previously calibrated rectangular frame, S80, if so, eliminating the rectangular frame, otherwise, returning to the step S20.
The scheme is applied to automatic judgment of image resolution, and steps S10-80 are some steps in the overall step flow of image resolution judgment and mainly aim to automatically recognize test patterns in chart pictures. In the overall process of automatically determining the image resolving power, after step S80, the following steps are further included: sampling the chart picture test patterns at each position; judging the resolving power by using a TV-line algorithm; comparing the obtained analysis force value with a set standard value to determine whether the analysis force value meets the requirement; and recording the judgment result of the resolving power and storing the judgment result in a database.
For step S10, a chart is prepared in advance, test patterns are placed at ten positions of the chart, and a rectangular frame is calibrated for each test pattern, where the rectangular frame is used for subsequently determining the position of the test pattern.
For step S20, the chart is placed in a dark box, so that the judgment error caused by factors such as light, shooting background and the like is greatly reduced. The placed chart is selected according to parameters such as the focal length and the field angle of the camera.
Further, as shown in fig. 2, step S70 specifically includes the following steps:
s701, acquiring the number of points forming a polygon;
s702, judging whether the number of the points is smaller than a preset value or not, if so, S7021, determining the points to be non-rectangular frames, and if not, S703, acquiring the number of the sides forming the polygon;
s704, judging whether the number of edges meets a preset value, if so, S705, extracting a circumscribed rectangle of the polygon, and if not, entering the step S7021;
s706, judging whether the ratio of the length to the width of the circumscribed rectangle meets a set range, if so, S707, calculating the positions of four corner points of the polygon, and if not, entering S7021;
and S708, judging whether the polygon forms a parallelogram or not according to the positions of the four corner points, if so, judging the polygon to be a pre-calibrated rectangular frame in S709, and if not, entering the step S7021.
Specifically, whether the polygon is a rectangular frame or not is determined, and whether the position of the test pattern can be automatically identified or not is determined. Specifically, the determination is performed by the number of points constituting the polygon, and the determination is performed by the number of sides constituting the polygon. Due to the lens distortion of the camera, only the quadrangle can be considered as a pre-calibrated rectangular frame, when whether the elimination is carried out or not is judged according to the number of edges, the range of the number of the edges is properly widened, and in the scheme, 4-16 edges are considered as a calibrated rectangular frame, and are eliminated when the elimination is not in the range.
And when the number of the judged edges meets the preset value, extracting the circumscribed rectangle of the polygon, and judging whether the length-width ratio of the circumscribed rectangle meets the preset range or not, and if not, removing the circumscribed rectangle.
After the positions of the four corner points are obtained, whether the four corner points form a parallelogram can be calculated, and if not, the four corner points are eliminated. Through the steps, the positions of the ten calibrated rectangular frames can be obtained, and the accuracy is high.
Further, as shown in fig. 3, step S707 specifically includes the following steps:
s7071, searching the positions of two corner points which coincide with the circumscribed rectangle in the polygon, wherein the two corner points are a first corner point and a second corner point respectively;
s7072 finding the position of the third corner point farthest from the first corner point and the second corner point;
s7073, calculating the range of the fourth corner point according to the corresponding relation between the third corner point and the first corner point and the second corner point respectively;
s7074 finds the corner point farthest from the first corner point and the second corner point in the range, and the corner point is located at the fourth corner point.
Specifically, after the external rectangle is determined to be a pre-calibrated rectangular frame, four corner points of the rectangular frame need to be searched, and the external rectangle is assumed to be named as a first corner point, a second corner point, a third corner point and a fourth corner point.
After the external rectangle of the polygon is obtained, two coincident points of the external rectangle and the polygon inevitably exist, and the two angular points, namely the first angular point and the second angular point, can be found by traversing all the points of the polygon.
And searching the position of the corner point farthest from the first corner point and the second corner point, wherein the position conforming to the corner point is a third corner point.
And according to the symmetrical relation, obtaining an approximate range of a fourth corner point according to the position relation between the third corner point and the first corner point and the position relation between the third corner point and the second corner point, and searching for the corner point which is farthest away from the first corner point and the second corner point in the range, wherein the corner point is positioned at the fourth corner point.
And finally, sequencing according to the coordinates, and determining the clockwise sequencing of the first corner point, the second corner point, the third corner point and the fourth corner point from the upper left corner.
Furthermore, after ten calibrated rectangular frame positions are obtained, the rectangular frame needs to be eliminated so as to avoid introducing identification errors.
Specifically, in order to keep eliminating the rectangular frame, the color value of the frame position is fused with the periphery, and the specific elimination process is as follows: according to the positions of four corners, points on the edge of the rectangular frame are calculated, one point is taken for every 10 pixels, 100 points of the maximum color value and 100 points of the minimum color value are excluded in the pixel range of the point 20x20, the average color of the rest points is calculated to determine the final color, the final color is covered in the corresponding range, and the fusion of the frame position and the periphery can be realized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Corresponding to the method for automatically identifying the position of the test pattern in the chart picture in the embodiment, the invention also provides a device for automatically identifying the position of the test pattern in the chart picture. As shown in fig. 4-6, the apparatus includes a calibration unit 1, a shooting unit 2, an acquisition unit 3, a processing unit 4, an edge extraction unit 5, a fitting unit 6, a determination unit 7, and an elimination unit 8;
the calibration unit 1 is used for performing rectangular frame calibration on all test patterns in the chart picture;
the shooting unit 2 is used for placing the chart picture in a dark box and shooting the chart picture through a camera;
the acquisition unit 3 is used for acquiring images shot by the camera;
a processing unit 4 for performing gaussian smoothing processing on the image;
an edge extraction unit 5, configured to perform edge extraction on all test patterns in the smoothed image to obtain graph profiles of all test patterns;
the fitting unit 6 is used for performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
a determination unit 7, configured to determine whether the polygon is a previously calibrated rectangular frame;
and the elimination unit 8 is used for eliminating the rectangular frame.
Further, the determination unit 7 includes a first obtaining module 71, a first judging module 72, a second obtaining module 73, a second judging module 74, an extracting module 75, a third judging module 76, a calculating module 77, a fourth judging module 78 and a determining module 79;
a first obtaining module 71, configured to obtain the number of points that constitute a polygon;
a first judging module 72, configured to judge whether the number of points is smaller than a preset value;
a second obtaining module 73, configured to obtain the number of edges constituting the polygon;
a second judging module 74, configured to judge whether the number of edges meets a preset value;
an extraction module 75, configured to extract a circumscribed rectangle of a polygon;
a third judging module 76, configured to judge whether a ratio of the length to the width of the circumscribed rectangle meets a set range;
a calculation module 77 for calculating the positions of the four corner points of the polygon;
a fourth judging module 78, configured to judge whether the polygon forms a parallelogram according to the positions of the four corner points;
and a determining module 79, configured to determine that the polygon is a pre-calibrated rectangular frame.
Further, the calculation module includes a first search sub-module 711, a second search sub-module 712, a calculation sub-module 713, and a third search sub-module 714;
the first searching submodule 711 is configured to search positions of two corner points coinciding with the circumscribed rectangle in the polygon, where the two corner points are a first corner point and a second corner point respectively;
a second searching submodule 712, configured to search for a position of a third corner farthest from the first corner and the second corner;
the calculating submodule 713 is configured to calculate a range where the fourth corner point is located according to correspondence between the third corner point and the first corner point and the second corner point respectively;
and a third searching submodule 714, configured to search for a corner point farthest from the first corner point and the second corner point within the range, where the corner point is located, and the position of the corner point is the position of the fourth corner point.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. 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 device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present 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 can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (7)

1. A method for automatically identifying the position of a test pattern in a chart picture, which is characterized by comprising the following steps:
calibrating a rectangular frame of all test patterns in the chart;
placing the calibrated chart in a dark box, and shooting the chart through a camera;
collecting an image shot by a camera;
performing Gaussian smoothing processing on the image;
performing edge extraction on all test patterns in the smoothed image to obtain the graphic outlines of all the test patterns;
performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
judging whether the polygon is a previously calibrated rectangular frame or not;
and if so, eliminating the rectangular frame at the corresponding position in the image shot by the camera.
2. The method as claimed in claim 1, wherein the step of determining whether the polygon is a previously calibrated rectangular frame specifically includes the following steps:
acquiring the number of points constituting a polygon;
judging whether the number of the points is smaller than a preset value or not;
if not, acquiring the number of the sides forming the polygon;
judging whether the number of edges meets a preset value or not;
if so, extracting the circumscribed rectangle of the polygon;
judging whether the ratio of the length to the width of the circumscribed rectangle meets a set range;
if so, calculating the positions of four corner points of the polygon;
judging whether the polygon forms a parallelogram or not according to the positions of the four angular points;
if yes, the polygon is determined to be a pre-calibrated rectangular frame.
3. The method as claimed in claim 2, wherein the step of determining whether the number of edges satisfies a predetermined value is performed at 4-16.
4. The method as claimed in claim 2, wherein the step of calculating the positions of the four corner points of the polygon specifically includes the following steps:
searching the positions of two angular points which are superposed with the external rectangle in the polygon, wherein the two angular points are a first angular point and a second angular point respectively;
searching the position of a third corner point which is farthest away from the first corner point and the second corner point;
calculating the range of the fourth corner point according to the corresponding relation between the third corner point and the first corner point and the corresponding relation between the third corner point and the second corner point respectively;
and finding out the corner point which is farthest from the first corner point and the second corner point in the range, wherein the corner point is positioned at the position of the fourth corner point.
5. A device for automatically identifying the position of a test pattern in a chart is characterized by comprising a calibration unit, a shooting unit, a collecting unit, a processing unit, an edge extracting unit, a fitting unit, a judging unit and an eliminating unit;
the calibration unit is used for calibrating the rectangular frame of all the test patterns in the chart;
the shooting unit is used for placing the calibrated chart in a dark box and shooting the chart through a camera;
the acquisition unit is used for acquiring images shot by the camera;
the processing unit is used for carrying out Gaussian smoothing processing on the image;
the edge extraction unit is used for extracting the edges of all the test patterns in the smoothed image so as to obtain the graphic outlines of all the test patterns;
the fitting unit is used for performing polygon fitting on all the figure outlines to obtain a plurality of polygons;
the judging unit is used for judging whether the polygon is a previously calibrated rectangular frame or not;
and the elimination unit is used for eliminating the rectangular frame at the corresponding position in the image shot by the camera.
6. The apparatus as claimed in claim 5, wherein the determining unit comprises a first obtaining module, a first determining module, a second obtaining module, a second determining module, an extracting module, a third determining module, a calculating module, a fourth determining module, and a determining module;
the first obtaining module is used for obtaining the number of points forming the polygon;
the first judging module is used for judging whether the number of the points is smaller than a preset value or not;
the second obtaining module is used for obtaining the number of the sides forming the polygon;
the second judging module is used for judging whether the number of the edges meets a preset value or not;
the extraction module is used for extracting a circumscribed rectangle of the polygon;
the third judging module is used for judging whether the ratio of the length to the width of the circumscribed rectangle meets a set range;
the calculation module is used for calculating the positions of four corner points of the polygon;
the fourth judging module is used for judging whether the polygon forms a parallelogram or not according to the positions of the four angular points;
and the judging module is used for judging that the polygon is a pre-calibrated rectangular frame.
7. The apparatus as claimed in claim 6, wherein the computing module comprises a first searching sub-module, a second searching sub-module, a computing sub-module, and a third searching sub-module;
the first searching submodule is used for searching the positions of two corner points which are superposed with the external rectangle in the polygon, wherein the two corner points are a first corner point and a second corner point respectively;
the second searching submodule is used for searching the position of a third corner point which is farthest away from the first corner point and the second corner point;
the calculation submodule is used for calculating the range of the fourth corner point according to the corresponding relation between the third corner point and the first corner point and the corresponding relation between the third corner point and the second corner point;
and the third searching submodule is used for searching the corner point which is farthest away from the first corner point and the second corner point in the range, and the position of the corner point is the position of the fourth corner point.
CN201910579003.8A 2019-06-28 2019-06-28 Method and device for automatically identifying position of test pattern in chart picture Active CN110288655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579003.8A CN110288655B (en) 2019-06-28 2019-06-28 Method and device for automatically identifying position of test pattern in chart picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579003.8A CN110288655B (en) 2019-06-28 2019-06-28 Method and device for automatically identifying position of test pattern in chart picture

Publications (2)

Publication Number Publication Date
CN110288655A CN110288655A (en) 2019-09-27
CN110288655B true CN110288655B (en) 2021-06-15

Family

ID=68019744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579003.8A Active CN110288655B (en) 2019-06-28 2019-06-28 Method and device for automatically identifying position of test pattern in chart picture

Country Status (1)

Country Link
CN (1) CN110288655B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112378527B (en) * 2020-11-27 2022-06-21 深圳市同为数码科技股份有限公司 Method and device for improving non-contact temperature measurement precision
CN115457144B (en) * 2022-09-07 2023-08-15 梅卡曼德(北京)机器人科技有限公司 Calibration pattern recognition method, calibration device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914687A (en) * 2014-03-14 2014-07-09 常州大学 Rectangular-target identification method based on multiple channels and multiple threshold values
CN104439698A (en) * 2014-11-26 2015-03-25 北京凌云光技术有限责任公司 Calibration method and device used for laser processing system
CN104811692A (en) * 2015-04-09 2015-07-29 南昌欧菲光电技术有限公司 Picture for testing shooting die set and method thereof
CN105405126A (en) * 2015-10-27 2016-03-16 大连理工大学 Multi-scale air-ground parameter automatic calibration method based on monocular vision system
CN107945194A (en) * 2017-10-31 2018-04-20 四川长虹电器股份有限公司 Bill dividing method based on OpenCV technologies
CN107993263A (en) * 2017-10-27 2018-05-04 深圳市易成自动驾驶技术有限公司 Viewing system automatic calibration method, automobile, caliberating device and storage medium
US10165262B2 (en) * 2013-08-08 2018-12-25 Panasonic Intellectual Property Management Co., Ltd. Image processing device and markers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10165262B2 (en) * 2013-08-08 2018-12-25 Panasonic Intellectual Property Management Co., Ltd. Image processing device and markers
CN103914687A (en) * 2014-03-14 2014-07-09 常州大学 Rectangular-target identification method based on multiple channels and multiple threshold values
CN104439698A (en) * 2014-11-26 2015-03-25 北京凌云光技术有限责任公司 Calibration method and device used for laser processing system
CN104811692A (en) * 2015-04-09 2015-07-29 南昌欧菲光电技术有限公司 Picture for testing shooting die set and method thereof
CN105405126A (en) * 2015-10-27 2016-03-16 大连理工大学 Multi-scale air-ground parameter automatic calibration method based on monocular vision system
CN107993263A (en) * 2017-10-27 2018-05-04 深圳市易成自动驾驶技术有限公司 Viewing system automatic calibration method, automobile, caliberating device and storage medium
CN107945194A (en) * 2017-10-31 2018-04-20 四川长虹电器股份有限公司 Bill dividing method based on OpenCV technologies

Also Published As

Publication number Publication date
CN110288655A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
US8019164B2 (en) Apparatus, method and program product for matching with a template
CN109815822B (en) Patrol diagram part target identification method based on generalized Hough transformation
CN107038443B (en) Method and device for positioning region of interest on circuit board
CN113160161B (en) Method and device for detecting defects at edge of target
CN111710000B (en) Camera line deviation self-checking method and system
CN112598922B (en) Parking space detection method, device, equipment and storage medium
CN110288655B (en) Method and device for automatically identifying position of test pattern in chart picture
CN111695373B (en) Zebra stripes positioning method, system, medium and equipment
CN114549652A (en) Camera calibration method, device, equipment and computer readable medium
CN110634137A (en) Bridge deformation monitoring method, device and equipment based on visual perception
CN110879131B (en) Imaging quality testing method and imaging quality testing device for visual optical system, and electronic apparatus
CN113903024A (en) Handwritten bill numerical value information identification method, system, medium and device
CN116958145A (en) Image processing method and device, visual detection system and electronic equipment
CN114612427A (en) Nameplate defect detection method and device, electronic equipment and storage medium
CN114119695A (en) Image annotation method and device and electronic equipment
CN113627210A (en) Method and device for generating bar code image, electronic equipment and storage medium
CN111242939B (en) Method for identifying state of pressing plate
CN113375555A (en) Power line clamp measuring method and system based on mobile phone image
CN113378663A (en) Inspection pointer type circular instrument identification method and device
CN116935013A (en) Circuit board point cloud large-scale splicing method and system based on three-dimensional reconstruction
CN111932517A (en) Contour mapping method and device for excess material plate, electronic equipment and storage medium
CN116908185A (en) Method and device for detecting appearance defects of article, electronic equipment and storage medium
CN115661131A (en) Image identification method and device, electronic equipment and storage medium
CN115546314A (en) Sensor external parameter calibration method and device, equipment and storage medium
CN114219806A (en) Automobile radar detection method, device, equipment, medium and product

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