CN111553341A - Cultural relic disassembling relative position verification method based on two-dimensional code - Google Patents

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

Info

Publication number
CN111553341A
CN111553341A CN201911350836.3A CN201911350836A CN111553341A CN 111553341 A CN111553341 A CN 111553341A CN 201911350836 A CN201911350836 A CN 201911350836A CN 111553341 A CN111553341 A CN 111553341A
Authority
CN
China
Prior art keywords
dimensional code
relative position
cultural relic
judging
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.)
Granted
Application number
CN201911350836.3A
Other languages
Chinese (zh)
Other versions
CN111553341B (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

Images

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 cultural relic disassembly relative position verification method based on two-dimensional codes, which is characterized in that two-dimensional codes are attached to each cultural relic, a picture is shot, position judgment is carried out according to relative position information of the two-dimensional codes in an original graph and a verification graph before the cultural relic is disassembled, a two-dimensional code error position and a two-dimensional code rotation error angle are marked, and then cultural relic repair is carried out again according to the marked error information until the original graph and the verification graph are successfully matched. The two-dimensional code checking method provided by the invention can be used for carrying out real-time photographing checking according to the project progress, so that the working efficiency is improved.

Description

Cultural relic disassembling 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 a two-dimensional code.
Background
The method is characterized in that all the cultural relics are required to be ' faithful to all the original cultural relics ', and the original appearance of the cultural relics is not allowed to be changed by subjective assumption of the cultural relics '. Even minor changes can cause the cultural relics to lose authenticity. Otherwise, the distortion is repaired, which necessarily causes the loss of the value of the cultural relic.
In the current construction process of decomposing and transferring cultural relics, a craftsman marks brick bodies 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 project, and is difficult to judge whether the position of the repaired cultural relic component is the same as that before the repair, and the position of the repaired cultural relic component changes due to the lagging technical mode, so that the original historical culture information is lost.
Therefore, a new method for verifying the relative position of the disassembled cultural relics is needed.
Disclosure of Invention
In order to solve the problems, the invention provides a cultural relic dismantling relative position verification method based on a two-dimensional code, which comprises the following steps of:
the method comprises the following steps: pasting a two-dimensional code on each cultural relic unit to be disassembled and photographing to obtain an original picture;
step two: dismantling and transferring the cultural relics, repairing the cultural relics again and taking a picture to obtain a check chart;
step three: judging the relative position of the two-dimensional codes in the original image and the check image before the cultural relic is disassembled;
step four: marking a two-dimensional code error position and a rotation error angle;
step five: and restoring the cultural relics according to the marked error information until the original graph is successfully matched with the check graph.
The further scheme is that the distinguishing of the relative position of the two-dimensional code in the third step comprises: the method comprises the steps of judging the rotation degree of the same two-dimensional code in two images, judging the relative position of the two-dimensional codes, judging the relative position of three two-dimensional codes and judging the relative position of a plurality of two-dimensional codes.
Further, the method for judging the rotation degree of the same two-dimensional code in the two graphs comprises the following steps:
a 1: establishing vectors according to a first point and a second point of three coordinate points of a two-dimensional code, and respectively extracting two vectors of the same two-dimensional code in an original graph and a check graph;
a 2: calculating two vector angles;
a 3: and judging whether the vector angle is larger than a threshold value, if so, determining that the angle is wrong, and if not, determining that the angle is correct.
The method for judging the relative positions of the two-dimensional codes comprises the following steps:
b1, extracting two point vectors of the same two-dimensional code in the original graph and the check graph respectively;
b2, calculating two vector angles;
b3, judging whether the vector angle is larger than a threshold value, if so, judging 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.
Further, the method for distinguishing the relative positions of the three two-dimensional codes comprises the following steps:
c1, extracting the coordinates of two-dimensional code points in the check chart respectively;
c2, using the bright spot position checking method; if any two-dimensional codes are not accurately checked, judging that the position is wrong;
c3, converting the positions of the three points into other 5 position relations according to the permutation and combination, and then judging;
c4, if the correctness cannot be judged under all conditions, marking all the three two-dimensional codes as errors; if the two-dimensional code can be judged to be correct after the exchange is tried, the position where the two-dimensional code should be in the check graph is marked, namely the position after the position exchange.
Further, the method for determining the relative positions of the two-dimensional codes comprises the following steps:
d1, extracting two-dimension codes nearest to the two-dimension code information in the check chart to form a triangle;
d 2: judging whether the three two-dimensional code positions are correct or not by using a three-point check method;
d 3: if not, calculating the next point and two points adjacent to the next point, repeating the steps, and if not, calculating the side length ratio of the triangle in the two images, thereby calculating the scaling ratio;
d 4: in the process of calculating the scaling ratio, if all points in the check graph are traversed, the correct triangle cannot be found, and the fact that the error in the check graph is serious cannot be judged;
d 5: 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 or not;
d 6: connecting the judging points with the correct coordinates of the three points, calculating the side length difference and the angle difference by the scaling ratio, judging the correct point if the side length difference and the angle difference are less than a certain threshold value, putting the point into a correct point group, and marking the correct position of the point in the check chart according to the relative positions of the point and the three correct points in the original chart if the point is incorrect
The invention has the beneficial effects that:
(1) the two-dimensional code checking method provided by the invention can be used for carrying out real-time photographing checking according to the project progress, so that the working efficiency is improved.
(2) Compared with the prior method, the invention can reduce the loss of the cultural relics caused by the error of the craftsman.
Drawings
FIG. 1: overall flow chart for cultural relic restoration and verification
Detailed Description
The invention will be further explained with reference to the drawings and the embodiments.
As shown in fig. 1, this embodiment provides a method for verifying a relative position of cultural relic disassembly based on a two-dimensional code, which attaches a two-dimensional code to each cultural relic and takes a picture, performs position discrimination according to relative position information of the two-dimensional code in an original graph and a verification graph before the cultural relic disassembly, and marks an error position and a rotation error angle of the two-dimensional code. Because there are many possibilities of errors occurring in position verification, it is necessary to establish discrimination modes under various conditions, so the verification condition mainly considered in the present scheme is as follows: the method comprises the steps of judging the rotation degree of the same two-dimensional code in two images, judging the relative position of the two-dimensional codes, judging the relative position of three two-dimensional codes and judging the relative position of a plurality of two-dimensional codes.
Example 1
The purpose of the rotation degree judgment of the same two-dimensional code in the two figures is to detect the problem of the placement posture of the cultural relic. Three (or four) corner point coordinates of the two-dimensional code can be detected in the two-dimensional code identification algorithm and are stored in data in sequence. Therefore, a vector can be established directly between the first point and the second point of the three coordinate points of the two-dimensional code, the angle of the vector of the same two-dimensional code in the two graphs is calculated, and if the angle is larger than a certain threshold value, the cultural relic is judged to have a posture error.
Example 2
If only two pieces of cultural relic information exist in the check graph, two point vectors of the two points in the check graph and the original composite graph respectively need to be calculated, the angles of the two vectors need to be calculated, if the angles are smaller than a threshold value, whether other cultural relic information exists between the two points in the original composite graph is continuously judged, and if the positions are not correct, the position is not judged.
Example 3
And if only three cultural relic information exists in the check chart, extracting the two-dimensional code information of the three cultural relics pairwise, respectively judging according to a two-point position check method, and if any two-dimensional codes are not accurately checked, judging that the position is wrong. Meanwhile, the positions of the three points are tried to be exchanged for judging again (the exchange conditions are 5 according to the permutation and combination), and if the judgment is not correct 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 tried, the position where the two-dimensional code should be in the check graph is marked, namely the position after the position exchange.
Example 4
The number of the object information in the verification graph is more than three, and the object information is judged to be the multi-point position verification in the algorithm, which is the most frequent case in the later use process, and the design of the algorithm is described as follows:
because of the shooting distance problem, the distance between the two-dimensional codes has a scaling relationship in the two images, which is also the reason that whether other information exists between two points in the original composite image needs to be judged after the angle is judged to be correct in the two-point algorithm. Therefore, the algorithm needs to first find the scaling ratio of the two images in order to check the decision of the algorithm.
Firstly, extracting two-dimensional codes nearest to the two-dimensional codes from each two-dimensional code information in a check graph to form a triangle, then judging whether the positions of the three two-dimensional codes are correct by using a three-point check method, if not, calculating the next point and two points adjacent to the next point, repeating the steps, and if so, calculating the side length ratio of the triangle in the two graphs, thereby calculating the scaling ratio.
In the process of calculating the scaling ratio, if all points in the check graph are traversed, the correct triangle cannot be found, which indicates that the error in the check graph cannot be judged seriously. Under the condition that the scaling ratio is known, the three previous two-dimensional codes which are correct are determined as 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 coordinates of the three points, the side length difference and the angle difference are calculated through the scaling ratio, if the side length difference and the angle difference are smaller than a certain threshold value, the judging is correct, the judging is put into a correct point group, and if the judging is incorrect, the correct position of the point can be marked in the check graph according to the relative positions of the point and the three correct points in the original graph. If the number of the correct point groups is larger than three points, when the next two-dimensional code coordinate point is judged, three points with the centers of gravity closest to the judgment point are selected from the correct point groups for judgment, and therefore judgment accuracy is improved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (3)

1. A cultural relic dismantling relative position verification method based on a two-dimensional code is characterized by comprising the following steps:
the method comprises the following steps: pasting a two-dimensional code on each cultural relic unit to be disassembled and photographing to obtain an original picture;
step two: dismantling and transferring the cultural relics, repairing the cultural relics again and taking a picture to obtain a check chart;
step three: judging the relative position of the two-dimensional codes in the original image and the check image before the cultural relic is disassembled;
step four: marking a two-dimensional code error position and a rotation error angle;
step five: and restoring the cultural relics according to the marked error information until the original graph is successfully matched with the check graph.
2. The cultural relic disassembly relative position verification method based on the two-dimensional code as claimed in claim 1, wherein the identification of the relative position of the two-dimensional code in the third step comprises: the method comprises the steps of judging the rotation degree of the same two-dimensional code in two images, judging the relative position of the two-dimensional codes, judging the relative position of three two-dimensional codes and judging the relative position of a plurality of two-dimensional codes.
3. The cultural relic dismantling relative position verification method based on the two-dimensional code as claimed in claim 2, wherein the rotation degree discrimination method of the same two-dimensional code in two graphs comprises the following steps:
a 1: establishing vectors according to a first point and a second point of three coordinate points of a two-dimensional code, and respectively extracting two vectors of the same two-dimensional code in an original graph and a check graph;
a 2: calculating two vector angles;
a 3: and judging whether the vector angle is larger than a threshold value, if so, determining that the angle is wrong, and if not, determining that the angle is correct.
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 true CN111553341A (en) 2020-08-18
CN111553341B 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 (7)

* 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
US20120209630A1 (en) * 2011-02-11 2012-08-16 Bytemark, Inc. System and method for trusted mobile device payment
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120209630A1 (en) * 2011-02-11 2012-08-16 Bytemark, Inc. System and method for trusted mobile device payment
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 (2)

* Cited by examiner, † Cited by third party
Title
SOHAM SENGUPTA: "An approach to provide a network layer security model with QR code generated with shuffled GPS parameters as embedded keys traveling over Internet using existing IPv4 mechanism" *
冯志军 等: "Data Matrix 二维码在文物与博物馆中的应用研究" *

Also Published As

Publication number Publication date
CN111553341B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US11900634B2 (en) Method for adaptively detecting chessboard sub-pixel level corner points
CN104036480B (en) Quick elimination Mismatching point method based on surf algorithm
CN105303615A (en) Combination method of two-dimensional stitching and three-dimensional surface reconstruction of image
WO2016026349A1 (en) Highly robust mark point decoding method and system
CN104809456A (en) Three-dimensional target recognition method based on two-value descriptor
Antunes et al. Unsupervised vanishing point detection and camera calibration from a single manhattan image with radial distortion
CN101419709B (en) Plane target drone characteristic point automatic matching method for demarcating video camera
CN107301673B (en) Algorithm for constructing local coordinate system of tooth by using standard model library
CN104036424A (en) Two-dimensional code based quick parts selection method and system
CN105965495A (en) Mechanical arm positioning method and system
CN102506812B (en) VT checking method for stability judgment of reference points in deformation monitoring
CN110570354B (en) Strip chessboard calibration plate-based close-range image splicing method
CN115597494A (en) Precision detection method and system for prefabricated part preformed hole based on point cloud
CN101894369B (en) Real-time method for computing focal length of camera from image sequence
CN111553341A (en) Cultural relic disassembling relative position verification method based on two-dimensional code
CN105957074A (en) Line segment matching method and system based on V-shape intersection description and local homography matrix
CN115908491A (en) On-line real-time tracking and matching method for circular non-coding mark points in binocular sequence image
US20230360262A1 (en) Object pose recognition method based on triangulation and probability weighted ransac algorithm
CN111105401B (en) Concrete crack detection and repair method and device based on image processing and electronic equipment
CN112634249B (en) Deep learning-based distance detection method for contact group component of switch machine
CN111723214A (en) Mode-oriented non-functional requirement knowledge refinement method
WO2008000055A1 (en) Methods for simultaneous multi-set point matching
CN113420599B (en) Visual feature identification coding and decoding method for truss bridge node plate
CN114331973B (en) Steel structure information extraction method suitable for oil-gas module manufacturing process
CN115272459A (en) Four-corner two-dimensional code directional plane target device and calibration method thereof

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