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

文档序号:1243121 发布日期:2020-08-18 浏览:8次 中文

阅读说明:本技术 一种基于二维码的文物拆解相对位置校验方法 (Cultural relic disassembling relative position verification method based on two-dimensional code ) 是由 邓宏 全定可 李张翼 李飞刚 刘永波 董鑫超 王健煜 赵泽生 于 2019-12-24 设计创作,主要内容包括:本发明公开了一种基于二维码的文物拆解相对位置校验方法,在每一个文物上贴上二维码并拍摄照片,根据文物拆解前原始图和校验图中的二维码相对位置信息进行位置判别,并标记出二维码错误位置和旋转错误角度,然后根据标记出的错误信息重新进行文物修复,直至原始图与校验图匹配成功。本发明提供的二维码校验方法,能够根据工程进度进行实时拍照校验,提高工作效率。(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.)

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.

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.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视觉定位方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!