CN111553341B - Cultural relic disassembly relative position verification method based on two-dimensional code - Google Patents

Cultural relic disassembly relative position verification method based on two-dimensional code Download PDF

Info

Publication number
CN111553341B
CN111553341B CN201911350836.3A CN201911350836A CN111553341B CN 111553341 B CN111553341 B CN 111553341B CN 201911350836 A CN201911350836 A CN 201911350836A CN 111553341 B CN111553341 B CN 111553341B
Authority
CN
China
Prior art keywords
correct
dimensional code
dimensional codes
graph
dimensional
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
CN201911350836.3A
Other languages
Chinese (zh)
Other versions
CN111553341A (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.)
Microwise System Co ltd
Original Assignee
Microwise System 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 Microwise System Co ltd filed Critical Microwise System Co ltd
Priority to CN201911350836.3A priority Critical patent/CN111553341B/en
Publication of CN111553341A publication Critical patent/CN111553341A/en
Application granted granted Critical
Publication of CN111553341B publication Critical patent/CN111553341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • 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
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/245Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a two-dimensional code-based cultural relic disassembly relative position verification method, which comprises the steps of attaching two-dimensional codes to each cultural relic, taking pictures, judging positions according to the two-dimensional code relative position information in an original graph and a verification graph before the cultural relic is disassembled, marking error positions and rotation error angles of the two-dimensional codes, and then repairing the cultural relics again according to the marked error information until the original graph and the verification graph are successfully matched. The two-dimensional code verification method provided by the invention can be used for performing real-time photographing verification according to the engineering progress, and the working efficiency is improved.

Description

Cultural relic disassembly relative position verification method based on two-dimensional code
Technical Field
The invention belongs to the technical field of cultural relic protection, and particularly relates to a cultural relic disassembly relative position verification method based on two-dimensional codes.
Background
All the cultural relics must be faithful to the original cultural relics in the whole process of repairing the cultural relics, and the original cultural relics are never allowed to be changed by subjective assumption of the cultural relics. Because even minor changes can cause the cultural relics to lose authenticity. Otherwise, the distortion is repaired, which necessarily causes the value of the cultural relics to be lost.
In the current construction flow for decomposing and migrating cultural relics, a craftsman marks a brick body according to a set of rules which the craftsman follows, and the marking modes are various and have no unified standard. The inspection unit is difficult to inspect the repaired cultural relic engineering, and is difficult to judge whether the position of the repaired cultural relic member is the same as that before repair, and due to the backward technical mode, the position of the repaired cultural relic member is changed, and the original historical cultural information is lost.
Therefore, it is necessary to provide a new method for verifying the relative position of the disassembly of the cultural relics.
Disclosure of Invention
In order to solve the problems, the invention provides a two-dimensional code-based cultural relic disassembly relative position verification method, which comprises the following steps:
step one: attaching a two-dimensional code to each cultural relic unit to be disassembled and photographing to obtain an original image;
step two: restoring and photographing the disassembled and migrated cultural relics to obtain a check chart;
step three: judging the relative positions of the two-dimensional codes in the original graph and the check graph before the relics are disassembled;
step four: marking out error positions and rotation error angles of the two-dimensional codes;
step five: and restoring the cultural relics according to the marked error information until the original graph and the check graph are successfully matched.
The further scheme is that the distinguishing of the relative position of the two-dimensional code in the third step comprises the following steps: rotation degree of the same two-dimensional code in two figures is judged, relative positions of the two-dimensional codes are judged, relative positions of three two-dimensional codes are judged, and relative positions of a plurality of two-dimensional codes are judged.
The rotation degree judging method of the same two-dimensional code in the two figures further comprises the following steps:
a1: establishing vectors according to a first point and a second point in three coordinate points of a two-dimensional code, and respectively extracting two-point vectors of the same two-dimensional code in an original graph and a check graph;
a2: calculating two vector angles;
a3: judging whether the vector angle is larger than a threshold value, if so, the angle is wrong, and if not, the angle is correct.
The relative position judging method of the two-dimensional codes comprises the following steps:
b1, respectively extracting two-point vectors of the same two-dimensional code in an original image and a check image;
b2, calculating two vector angles;
b3, judging whether the vector angle is larger than a threshold value, if so, the angle is wrong, and if not, continuously judging whether other two-dimensional codes exist between the two-dimensional codes;
and b4, if other two-dimensional codes exist, the position is wrong, and if other two-dimensional codes do not exist, the position is correct.
The method for judging the relative positions of the three two-dimensional codes comprises the following steps:
c1, respectively extracting coordinates of two-dimensional code points in a check chart;
c2, checking the position of the bright spot; if any two-dimensional codes are not accurately checked, judging that the position is wrong;
c3, transforming the three-point positions into other 5 position relations according to the arrangement and combination, and judging;
c4, if the correctness cannot be judged under all conditions, marking three two-dimensional codes as errors; if the two-dimensional code can be judged to be correct after the exchange is attempted, the position where the two-dimensional code should be in the check chart, namely the position after the position exchange is marked.
The method for judging the relative positions of the two-dimensional codes further comprises the following steps:
d1, extracting two-dimensional code triangles closest to each two-dimensional code information in a check graph;
d2: a three-point checking method is used for judging whether the positions of the three two-dimensional codes are correct or not;
d3: if not, calculating the next point and two adjacent points, so as to reciprocate, and if so, calculating the side length ratio of the triangle in the two graphs, so as to calculate the scaling ratio;
d4: in the process of calculating the scaling ratio, if all points in the check graph are traversed and correct triangles cannot be found, the fact that the errors in the check graph are serious cannot be judged is indicated;
d5: determining the three previous correct two-dimensional codes as correct positions, and starting to judge whether the position of the next two-dimensional code is correct;
d6: the judgment points are respectively connected with the correct coordinates of the three points, the edge length difference and the angle difference are calculated through the scaling ratio, the judgment is correct when the edge length difference and the angle difference are smaller than a certain threshold value, the judgment points are put into a correct point group, and if the judgment points are incorrect, the correct positions of the points can be marked in the check graph according to the relative positions of the points and the three correct points in the original graph
The beneficial effects of the invention are as follows:
(1) The two-dimensional code verification method provided by the invention can be used for performing real-time photographing verification according to the engineering progress, and the working efficiency is improved.
(2) Compared with the prior method, the method can reduce the loss of the cultural relics caused by the mistake of the worker.
Drawings
Fig. 1: general flow chart for repairing and checking cultural relics
Detailed Description
The invention will be further described with reference to the drawings and embodiments.
As shown in fig. 1, the embodiment provides a method for verifying the relative position of the disassembly of cultural relics based on two-dimension codes, wherein each cultural relic is attached with a two-dimension code and a photo is taken, position discrimination is performed according to the relative position information of the two-dimension codes in an original diagram and a verification diagram before the disassembly of the cultural relics, and error positions and rotation error angles of the two-dimension codes are marked. Because there are many possibilities that the position check is wrong, the discrimination modes under multiple conditions need to be established respectively, and therefore the check conditions mainly considered in the scheme are as follows: rotation degree of the same two-dimensional code in two figures is judged, relative positions of the two-dimensional codes are judged, relative positions of three two-dimensional codes are judged, and relative positions of a plurality of two-dimensional codes are judged.
Example 1
The rotation degree of the same two-dimensional code in the two figures is judged so as to be capable of detecting the problem of the placing gesture of the cultural relics. Three (or four) corner coordinates of the two-dimensional code can be detected in the two-dimensional code recognition algorithm and stored in the data in sequence. Therefore, vectors can be directly established between a first point and a second point in three coordinate points of one two-dimensional code, the angles of vectors of the same two-dimensional code in two figures are calculated, and if the angles are larger than a certain threshold, it is determined that the cultural relics have gesture errors.
Example 2
If only two pieces of cultural relic information exist in the check graph, two point vectors of the cultural relic information in the check graph and the original synthetic graph are needed to be calculated, the angles of the two vectors are calculated, if the angles are smaller than a threshold value, whether other pieces of cultural relic information exist between the two points in the original synthetic graph is judged continuously, and if the position is not correct, the position is not correct.
Example 3
If only three pieces of cultural relic information exist in the verification diagram, extracting two-dimensional code information of the three pieces of cultural relics in pairs, judging according to a two-point position verification method respectively, and if any two pieces of two-dimensional code verification is inaccurate, judging that the position is wrong. At the same time, the exchange three-point position is tried to be judged again (5 exchange conditions are combined according to the arrangement), and if the exchange three-point position is not judged correctly in all conditions, the three two-dimensional codes are marked as errors. If the two-dimensional code can be judged to be correct after the exchange is attempted, the position where the two-dimensional code should be in the check chart, namely the position after the position exchange is marked.
Example 4
The number of the Chinese information in the verification graph is greater than three situations which are judged to be multi-point position verification in the algorithm, and the situation is the most frequent in the later use process, and the algorithm is designed and described as follows:
because of the shooting distance problem, the distance between two-dimensional codes is in a scaling relationship in the two images, which is also the reason why whether other information exists between two points in the original synthetic image or not needs to be judged after the right angle is judged in the two-point algorithm. Therefore, the present algorithm needs to find the scaling ratio of the two graphs first to facilitate the determination of the verification algorithm.
Firstly, extracting two-dimensional code information closest to each two-dimensional code information in a check graph to form a triangle, then, judging whether the three two-dimensional code positions are correct or not by using a three-point check method, if not, calculating the next point and two adjacent points, so as to reciprocate, and if correct, calculating the side length ratio of the triangle in the two graphs, so as to calculate the scaling ratio.
In the process of calculating the scaling ratio, if all points in the check graph are traversed and correct triangles cannot be found, the fact that the errors in the check graph are serious cannot be judged is indicated. Under the condition of known scaling ratio, the three previous correct two-dimensional codes are determined to be correct positions, and whether the position of the next two-dimensional code is correct or not is judged. The judging method comprises the following steps: firstly, the judging points are respectively connected with the correct three point coordinates, the edge length difference and the angle difference are calculated through the scaling ratio, the judging points are judged to be correct if the edge length difference and the angle difference are smaller than a certain threshold value, the judging points are placed into a correct point group, and if the judging points are incorrect, the correct positions of the points can be marked in the check graph according to the relative positions of the points and the three correct points in the original graph. If the number of the correct point groups is larger than three points, when judging the next two-dimensional code coordinate point, three points with the center of gravity closest to the judging point are selected from the correct point groups for judgment, so that the judging accuracy is improved.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (1)

1. The cultural relic disassembly relative position verification method based on the two-dimensional code is characterized by comprising the following steps of:
step one: attaching a two-dimensional code to each cultural relic unit to be disassembled and photographing to obtain an original image;
step two: restoring and photographing the disassembled and migrated cultural relics to obtain a check chart;
step three: the method comprises the following steps of judging the relative positions of two-dimension codes in an original diagram and a check diagram before the relics are disassembled, wherein the method specifically comprises the following steps:
A. the rotation degree of the same two-dimensional code in two figures is judged, and the method comprises the following steps:
a1: establishing vectors according to a first point and a second point in three coordinate points of a two-dimensional code, and respectively extracting two-point vectors of the same two-dimensional code in an original graph and a check graph;
a2: calculating two vector angles;
a3: judging whether the vector angle is larger than a threshold value, if so, the angle is wrong, and if not, the angle is correct;
B. the relative position of two-dimensional codes is judged, and the method comprises the following steps:
b1: respectively extracting two-point vectors of the same two-dimensional code in the original diagram and the check diagram;
b2: calculating two vector angles;
b3: judging whether the vector angle is larger than a threshold value, if so, the angle is wrong, and if not, continuously judging whether other two-dimensional codes exist between the two-dimensional codes;
b4: if other two-dimensional codes exist, the position is wrong, and if other two-dimensional codes do not exist, the position is correct;
C. the relative position of the three two-dimensional codes is judged, and the method comprises the following steps:
c1: respectively extracting two-dimensional code point coordinates in the check graph;
c2: b, using the relative position judging method of the two-dimensional codes in the step, and judging that the position is wrong if any two-dimensional codes are inaccurate in verification;
c3: the three-point position is transformed according to the arrangement combination and the other 5 position relations are judged;
c4: if the judgment is not correct under all conditions, marking the three two-dimensional codes as errors; if the two-dimensional code can be judged to be correct after the exchange is attempted, marking the position where the two-dimensional code should be in the check chart, namely the position after the position exchange;
D. the method for judging the relative positions of the two-dimensional codes comprises the following steps:
d1: extracting two nearest two-dimensional codes from each two-dimensional code information in the check graph to form a triangle;
d2: judging whether the positions of the three two-dimensional codes are correct or not by using the relative position judging method of the three two-dimensional codes in the step C;
d3: if not, calculating the next point and two adjacent points, so as to reciprocate, and if so, calculating the side length ratio of the triangle in the two graphs, so as to calculate the scaling ratio;
d4: in the process of calculating the scaling ratio, if all points in the check graph are traversed and correct triangles cannot be found, the fact that the errors in the check graph are serious cannot be judged is indicated;
d5: determining the three previous correct two-dimensional codes as correct positions, and starting to judge whether the position of the next two-dimensional code is correct;
d6: the judgment points are respectively connected with the correct three point coordinates, the edge length difference and the angle difference are calculated through the scaling ratio, the judgment is correct when the edge length difference and the angle difference are smaller than a certain threshold value, the judgment points are placed into a correct point group, and if the judgment points are incorrect, the correct positions of the points can be marked in the verification graph according to the relative positions of the points and the three correct points in the original graph;
step four: marking out error positions and rotation error angles of the two-dimensional codes;
step five: and restoring the cultural relics according to the marked error information until the original graph and the check graph are successfully matched.
CN201911350836.3A 2019-12-24 2019-12-24 Cultural relic disassembly relative position verification method based on two-dimensional code Active CN111553341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911350836.3A CN111553341B (en) 2019-12-24 2019-12-24 Cultural relic disassembly relative position verification method based on two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911350836.3A CN111553341B (en) 2019-12-24 2019-12-24 Cultural relic disassembly relative position verification method based on two-dimensional code

Publications (2)

Publication Number Publication Date
CN111553341A CN111553341A (en) 2020-08-18
CN111553341B true CN111553341B (en) 2023-08-29

Family

ID=72002870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911350836.3A Active CN111553341B (en) 2019-12-24 2019-12-24 Cultural relic disassembly relative position verification method based on two-dimensional code

Country Status (1)

Country Link
CN (1) CN111553341B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243704A (en) * 2011-07-21 2011-11-16 我查查信息技术(上海)有限公司 Positioning system for two-dimension bar code and two-dimension bar code identification method and equipment
CN103839031A (en) * 2014-02-27 2014-06-04 杭州晟元芯片技术有限公司 Special embedded type two-dimensional code recognition method
CN103914675A (en) * 2014-03-17 2014-07-09 东华大学 Garment QD code recognition method
CN108171744A (en) * 2017-12-26 2018-06-15 努比亚技术有限公司 Determining method, mobile terminal and the storage medium of disparity map in a kind of binocular virtualization
CN110390694A (en) * 2019-07-19 2019-10-29 中兵勘察设计研究院有限公司 A kind of positioning of photography method for article three-dimensional reconstruction
CN110411415A (en) * 2019-07-20 2019-11-05 中兵勘察设计研究院有限公司 A kind of method for imaging for article three-dimensional reconstruction

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089606B2 (en) * 2011-02-11 2018-10-02 Bytemark, Inc. System and method for trusted mobile device payment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243704A (en) * 2011-07-21 2011-11-16 我查查信息技术(上海)有限公司 Positioning system for two-dimension bar code and two-dimension bar code identification method and equipment
CN103839031A (en) * 2014-02-27 2014-06-04 杭州晟元芯片技术有限公司 Special embedded type two-dimensional code recognition method
CN103914675A (en) * 2014-03-17 2014-07-09 东华大学 Garment QD code recognition method
CN108171744A (en) * 2017-12-26 2018-06-15 努比亚技术有限公司 Determining method, mobile terminal and the storage medium of disparity map in a kind of binocular virtualization
CN110390694A (en) * 2019-07-19 2019-10-29 中兵勘察设计研究院有限公司 A kind of positioning of photography method for article three-dimensional reconstruction
CN110411415A (en) * 2019-07-20 2019-11-05 中兵勘察设计研究院有限公司 A kind of method for imaging for article three-dimensional reconstruction

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯志军 等.Data Matrix 二维码在文物与博物馆中的应用研究.《中国博物馆》.2015,(第undefined期),54-57. *

Also Published As

Publication number Publication date
CN111553341A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
US11900634B2 (en) Method for adaptively detecting chessboard sub-pixel level corner points
CN102906786B (en) Face feature-point position correction device, and face feature-point position correction method
US20140219569A1 (en) Image recognition system and method for identifying similarities in different images
CN103942824B (en) Linear feature extracting method for three-dimensional point cloud
CN111754536B (en) Image labeling method, device, electronic equipment and storage medium
Antunes et al. Unsupervised vanishing point detection and camera calibration from a single manhattan image with radial distortion
AU2774102A (en) Pattern collation device and pattern collating method thereof, and pattern collation program
CN104809456A (en) Three-dimensional target recognition method based on two-value descriptor
CN105893929A (en) Finger and wrist distinguishing method and device
Ahn et al. Circular coded landmark for optical 3D-measurement and robot vision
CN111553341B (en) Cultural relic disassembly relative position verification method based on two-dimensional code
JP2008152555A (en) Image recognition method and image recognition device
CN109003257A (en) A kind of optical character verification method
Ahn et al. A new circular coded target for the automation of photogrammetric 3D-surface measurements
KR100808536B1 (en) Method for calibration using by pattern image
Xia et al. A robust recognition algorithm for encoded targets in close-range photogrammetry
CN108256475B (en) Bill image inversion detection method
US20230360262A1 (en) Object pose recognition method based on triangulation and probability weighted ransac algorithm
CN115496893A (en) Pointer type water meter reading identification method
CN115908491A (en) On-line real-time tracking and matching method for circular non-coding mark points in binocular sequence image
Liu et al. Modelling and simulation: an improved RANSAC algorithm based on the relative angle information of samples
US10802498B2 (en) Target direction estimation using centroid follower
CN113747146A (en) Test chart detection method, device, equipment and storage medium
Hullo et al. Probabilistic feature matching applied to primitive based registration of TLS data
JPH085333A (en) Three-dimensional position-attitude recognizing apparatus

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