Evidence obtaining verification method and device for calligraphy and painting works, electronic equipment and storage medium
By obtaining position offset information to correct the coordinates of the detection points, the problem of data association breakage caused by position offset in the verification of calligraphy and painting works was solved, and accurate verification of irregular works was achieved.
Patent Information
- Application Number
- CN202511080036.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-01
- Publication Date
- 2025-11-18
AI Technical Summary
Traditional methods of authenticating calligraphy and painting works rely on expert visual inspection, which is highly subjective, inefficient, and difficult to scale up. Furthermore, irregular works present challenges in terms of reproducibility, leading to inaccurate verification results.
By obtaining position offset information, the coordinate information of the detection points during the filing process is corrected to ensure that the positions of the detection points are consistent during verification. The corrected coordinate information is then used to lock the position of the detection points of the current work, ensuring that the collected information is of the same origin and structure.
It increases the tolerance for positional deviations in calligraphy and painting works, and improves the accuracy of verification, especially for the accurate verification of irregular works.
Smart Images

Figure CN120974200A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, electronic device and storage medium for obtaining and verifying evidence of calligraphy and painting works. Background Technology
[0002] The authentication and copyright protection of calligraphy and painting works are core needs in the fields of cultural heritage and the art market. Traditional authentication methods mainly rely on expert visual inspection, which suffers from high subjectivity, low efficiency, and difficulty in scaling up. In recent years, objective verification technologies based on digital acquisition have gradually developed. For example, physical characteristic data of calligraphy and painting works are obtained through hyperspectral imaging and microscopic image analysis, and then compared with the registration database for verification. This requires the work to be verified to be precisely fixed on a standardized workbench, and the authenticity is determined by comparing it with the benchmark data in the registration database.
[0003] However, due to the material characteristics (such as the flexibility of Xuan paper and silk) and mounting techniques, calligraphy and painting works face the challenge of repeatable physical positioning in actual operation. This is especially true for irregular fan surfaces, round fans, and works that have been remounted and had their edges trimmed, making it even more difficult to achieve repeatable positioning, which leads to inaccurate verification results for calligraphy and painting works. Summary of the Invention
[0004] In view of the above problems, embodiments of this application provide a method, apparatus, electronic device, and storage medium for obtaining and verifying calligraphy and painting works that overcomes or at least partially solves the above problems.
[0005] In a first aspect, embodiments of this application provide a method for obtaining and verifying evidence of calligraphy and painting works, the method comprising:
[0006] With the first calligraphy and painting work to be verified placed on the workbench, a second calligraphy and painting work that matches the first calligraphy and painting work is obtained from the registered calligraphy and painting works.
[0007] Obtain position offset information, wherein the position offset information is used to indicate: the offset of the first position of the first calligraphy and painting work on the workbench at present, relative to the second position of the second calligraphy and painting work on the workbench at the time of filing;
[0008] Based on the position offset information, the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work is corrected to obtain the corrected first coordinate information;
[0009] Obtain first collection information at the first detection point on the first calligraphy and painting work, wherein the first detection point includes the detection point corresponding to the first coordinate information;
[0010] The first calligraphy and painting work is verified based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work.
[0011] Secondly, embodiments of this application provide an evidence verification device for calligraphy and painting works, the device comprising:
[0012] The first acquisition module is used to acquire a second calligraphy and painting work that matches the first calligraphy and painting work from the registered calligraphy and painting works when the first calligraphy and painting work to be verified is placed on the workbench.
[0013] The second acquisition module is used to acquire position offset information, wherein the position offset information is used to indicate: the offset of the first position of the first calligraphy and painting work on the workbench at present, relative to the second position of the second calligraphy and painting work on the workbench when it was filed;
[0014] The correction module is used to correct the second coordinate information of the second detection point used for data collection during the filing of the second calligraphy and painting work based on the position offset information, so as to obtain the corrected first coordinate information.
[0015] The third acquisition module is used to acquire the first collection information at the first detection point on the first calligraphy and painting work, wherein the first detection point includes the detection point corresponding to the first coordinate information;
[0016] The verification module is used to verify the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained when the second calligraphy and painting work is registered.
[0017] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the method for obtaining and verifying evidence of calligraphy and painting works as described in the first aspect above.
[0018] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for obtaining and verifying evidence of calligraphy and painting works as described in the first aspect above.
[0019] In the embodiments of this application, when the first calligraphy and painting work to be verified is placed on the workbench, a second calligraphy and painting work matching the first calligraphy and painting work is obtained from the registered calligraphy and painting works, and position offset information is obtained, wherein the position offset information is used to indicate: the offset of the first placement position of the first calligraphy and painting work on the workbench relative to the second placement position of the second calligraphy and painting work on the workbench when it was registered; according to the offset information, the second coordinate information of the second detection point used for data collection when the second calligraphy and painting work was registered is corrected to obtain the corrected first coordinate information; the first collection information at the first detection point on the first calligraphy and painting work is obtained, wherein the first detection point includes the detection point corresponding to the first coordinate information; the first calligraphy and painting work is verified according to the first collection information and the second collection information at the second detection point on the second calligraphy and painting work obtained when the second calligraphy and painting work was registered.
[0020] As can be seen, in this embodiment of the application, when verifying the first calligraphy and painting work, the coordinate information of the detection point used during data collection during the filing process can be corrected by the above-mentioned position offset information, so that the corrected coordinate information matches the placement position of the first calligraphy and painting work on the workbench during verification. In other words, this ensures that the position of the detection point used for information collection during verification is consistent with the position of the detection point used for information collection during filing.
[0021] Therefore, the embodiments of this application utilize the corrected first coordinate information to lock the detection point position of the current work, ensuring that the acquired first collection information and the registered second collection information are of the same origin and structure, that is, they originate from the same physical area of the work and have the same spatial definition. This fundamentally solves the problem of data association breakage caused by position offset. It can be seen that the embodiments of this application can improve the tolerance for position offset of calligraphy and painting works without the need for manual intervention in placement accuracy, thereby improving the verification accuracy of calligraphy and painting works. Attached Figure Description
[0022] Figure 1 A schematic diagram illustrating the method for obtaining and verifying evidence of calligraphy and painting works provided in this application embodiment;
[0023] Figure 2 A schematic diagram illustrating the principle of obtaining offset information in the embodiments of this application;
[0024] Figure 3 This is a schematic diagram illustrating the principle of correcting the second coordinate information of the second detection point based on offset information in an embodiment of this application;
[0025] Figure 4 A schematic diagram illustrating the evidence collection and verification device for calligraphy and painting works provided in this application embodiment;
[0026] Figure 5This is a schematic diagram of the electronic device structure provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Multiple embodiments in this application may include two or more.
[0029] In the various embodiments of this application, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0030] To facilitate understanding of the detailed description of the evidence collection and verification method for calligraphy and painting works in the embodiments of this application, the correspondence of the following concepts is first explained in Table 1:
[0031] Table 1
[0032]
[0033] The following is a detailed description of the method for obtaining and verifying evidence of calligraphy and painting works provided in the embodiments of this application, such as... Figure 1 The method may include the following steps 101 to 105:
[0034] Step 101: With the first calligraphy and painting work to be verified placed on the workbench, obtain a second calligraphy and painting work that matches the first calligraphy and painting work from the registered calligraphy and painting works.
[0035] When registering calligraphy and painting works, image information of each work can be obtained and stored. When verifying the first work, the image information of the first work can be obtained, and then the image information matching the first work can be retrieved from the image information of the registered works. The calligraphy and painting work corresponding to the image information matching the first work is the second work that matches the first work.
[0036] Alternatively, images of registered paintings and calligraphy works can be stored. When verifying the first work, image comparison technology can be used to retrieve a second work that matches the first from the images of the registered works. It should be noted that image comparison technology uses computer algorithms to compare the visual similarity or differences between two or more images.
[0037] In addition, when the second calligraphy and painting work is registered, it is placed on the workbench, and data is collected at at least one second detection point on the second calligraphy and painting work to obtain second collection information; thereby storing the image information of the second calligraphy and painting work / the image of the second calligraphy and painting work, the second coordinate information of the second detection point, and the second collection information.
[0038] Step 102: Obtain position offset information.
[0039] The position offset information is used to indicate the offset of the first position of the first calligraphy and painting work on the workbench relative to the second position of the second calligraphy and painting work on the workbench when it was filed.
[0040] Optionally, the position offset information includes:
[0041] The first offset distance represents the offset distance of the first placement position relative to the second placement position in the X-axis direction.
[0042] The second offset distance represents the offset distance of the first placement position relative to the second placement position in the Y-axis direction.
[0043] Offset angle, representing the offset angle of the first placement position relative to the second placement position;
[0044] The X-axis and Y-axis are the horizontal and vertical coordinate axes of the coordinate system of the worktable, respectively.
[0045] It should be noted that the offset angle can be understood as the rotation angle of the first calligraphy and painting work in the first placement position relative to the second calligraphy and painting work in the second placement position.
[0046] Step 103: Based on the position offset information, correct the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work, and obtain the corrected first coordinate information.
[0047] When there is a deviation between the first placement position and the second placement position, it will directly lead to the following two types of problems:
[0048] (1) Spatial reference system lost: The spatial coordinate system of the filing data (i.e. the second collection information) cannot be accurately mapped to the actual physical location of the first painting and calligraphy work;
[0049] (2) Data comparability failure: Due to the break in spatial mapping relationship, even data collected for the same physical area will lose the technical basis for direct comparison due to misalignment of coordinate reference.
[0050] In the embodiments of this application, by dynamically acquiring the positional offset information of the first placement position relative to the second placement position, the second coordinate information of the second detection point used for data collection during the filing of the second calligraphy and painting work is corrected according to the positional offset information. In this way, the filing coordinate system is corrected in real time, and a spatial reference system that strictly matches the physical position of the first calligraphy and painting work is reconstructed. This can eliminate the systematic coordinate deviation caused by the difference in the placement position of the work, and make the spatial mapping relationship of the filing data accurately restored.
[0051] Furthermore, by using the corrected first coordinate information to lock the detection point position of the first calligraphy and painting work, it is ensured that the first collection information obtained is of the same origin and structure as the second collection information in the record, that is, the two originate from the same physical area of the work and have the same spatial definition, thereby solving the problem of data association breakage caused by position offset.
[0052] Step 104: Obtain the first collection information at the first detection point on the first calligraphy and painting work.
[0053] The first detection point includes the detection point corresponding to the first coordinate information; that is, the corrected first coordinate information is the coordinate information of the first detection point that needs to be collected when verifying the first calligraphy and painting work.
[0054] In addition, in some embodiments, information can be collected by moving a robotic arm to the position indicated by the first coordinate information (i.e., the position of the first detection point).
[0055] Step 105: Verify the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work.
[0056] In some embodiments, the first collected information may include at least one of the following pieces of information at the first detection point on the first artwork; similarly, the second collected information may include at least one of the following pieces of information at the second detection point on the second artwork:
[0057] Microscopic morphological characteristics: including microscopic morphological data such as fiber state, pigment adhesion structure and smudging traces, used to analyze the material state and production process characteristics of the artwork;
[0058] Material composition and age characteristics: By conducting high-precision testing on the chemical composition (such as elemental composition and functional group structure) of materials such as pigments, paper, and silk, the regional attributes of the materials can be determined.
[0059] Semantic and attribute information: Extract semantic data such as seal text, author markings, and creation date for seals or specific elements to help verify the authenticity and background of the work.
[0060] Action and trace characteristics: Analyze the dynamic traces of writing or drawing (such as the direction of the brushstrokes and changes in pressure) to identify individual creative habits.
[0061] Optionally, in step 105, the first calligraphy and painting work is verified based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work, including:
[0062] If the first collected information matches the second collected information, the first calligraphy and painting work is determined to have passed verification;
[0063] or,
[0064] If the first collected information does not match the second collected information, it is determined that the first calligraphy and painting work has failed the verification.
[0065] Therefore, in some embodiments, if the first collected information matches the second collected information, the first calligraphy and painting work is determined to have passed verification; otherwise, it fails verification.
[0066] It should be noted that in some embodiments, the first detection point and the second detection point may each include multiple detection points, and each detection point included in the first detection point corresponds one-to-one with each detection point included in the second detection point. In this way, two detection points with a corresponding relationship can form a set of detection points. Thus, if the collected information at each set of detection points matches, the first calligraphy and painting work passes the verification; otherwise, it can be considered that the collected information at at least one set of detection points does not match, and the first calligraphy and painting work fails the verification.
[0067] As can be seen from steps 101 to 105 above, in the embodiments of this application, when the first calligraphy and painting work to be verified is placed on the workbench, a second calligraphy and painting work matching the first calligraphy and painting work is obtained from the registered calligraphy and painting works, and position offset information is obtained. The position offset information is used to indicate: the offset of the first placement position of the first calligraphy and painting work on the workbench relative to the second placement position of the second calligraphy and painting work on the workbench when it was registered; based on the offset information, the second coordinate information of the second detection point used for data collection when the second calligraphy and painting work was registered is corrected to obtain the corrected first coordinate information; the first collection information at the first detection point on the first calligraphy and painting work is obtained, wherein the first detection point includes the detection point corresponding to the first coordinate information; based on the first collection information and the second collection information at the second detection point on the second calligraphy and painting work obtained when the second calligraphy and painting work was registered, the first calligraphy and painting work is verified.
[0068] As can be seen, in this embodiment of the application, when verifying the first calligraphy and painting work, the coordinate information of the detection point used during data collection during the filing process can be corrected by the above-mentioned position offset information, so that the corrected coordinate information matches the placement position of the first calligraphy and painting work on the workbench during verification. In other words, this ensures that the position of the detection point used for information collection during verification is consistent with the position of the detection point used for information collection during filing.
[0069] Therefore, the embodiments of this application utilize the corrected first coordinate information to lock the detection point position of the current work, ensuring that the acquired first collection information and the registered second collection information are of the same origin and structure, that is, they originate from the same physical area of the work and have the same spatial definition. This fundamentally solves the problem of data association breakage caused by position offset. It can be seen that the embodiments of this application can improve the tolerance for position offset of calligraphy and painting works without the need for manual intervention in placement accuracy, thereby improving the verification accuracy of calligraphy and painting works.
[0070] It is evident that the method for verifying calligraphy and painting works in this application embodiment can also achieve accurate verification for irregular fan surfaces, round fans, and works that have been remounted and had their edges trimmed.
[0071] In some embodiments, obtaining the position offset information in step 102 above includes the following steps A-1 to A-2:
[0072] Step A-1: Based on the first image feature of the third feature point and the second image feature of the fourth feature point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work, obtain the first feature point on the first calligraphy and painting work that matches the first image feature and the second feature point that matches the second image feature;
[0073] Step A-2: Obtain the position offset information based on the third feature point, the fourth feature point, the first feature point, and the second feature point.
[0074] The third and fourth feature points can be two feature points randomly selected when registering the second calligraphy and painting work.
[0075] In addition, image comparison technology can be used to obtain the first feature point on the first painting or calligraphy work that matches the features of the first image, and the second feature point that matches the features of the second image.
[0076] It should be noted that if the image features of the first feature point on the first artwork match the first image features, it can be understood that the position of the first feature point on the first artwork is the same as the position of the third feature point on the second artwork; similarly, if the image features of the second feature point on the first artwork match the second image features, it can be understood that the position of the second feature point on the first artwork is the same as the position of the fourth feature point on the second artwork.
[0077] As can be seen from the above, after finding the feature points (i.e. the first feature point, the second feature point, the third feature point, and the fourth feature point) at the same position on the first and second calligraphy and painting works, the position offset information can be obtained based on these feature points.
[0078] For example, the positions of the first feature point O1 and the second feature point O2 on the first painting and calligraphy work 201, and the third feature point O3 and the fourth feature point O4 on the second painting and calligraphy work 202 can be as follows: Figure 2 As shown; it should be noted that, Figure 2 The X and Y axes can be the horizontal and vertical axes of the worktable's coordinate system.
[0079] Alternatively, in some embodiments, the positional offset information of the first calligraphy and painting work at the first placement position relative to the second calligraphy and painting work at the second placement position can be obtained by image comparison technology, that is, the positional offset information can be obtained directly by image comparison technology.
[0080] In some embodiments, step A-2 above, obtaining the position offset information based on the third feature point, the fourth feature point, the first feature point, and the second feature point, includes the following steps A-2.1 to A-2.4:
[0081] Step A-2.1: Obtain the angle between the second line and the first line, and determine the angle as the offset angle, wherein the first line is a line passing through the first feature point and the second feature point, and the second line is a line passing through the third feature point and the fourth feature point;
[0082] Step A-2.2: Using the intersection of the first line and the second line as the center, rotate the first line based on the offset angle so that the first line coincides with the second line;
[0083] Step A-2.3: Obtain the first offset distance and the second offset distance based on the coordinates of the third feature point on the second straight line and the coordinates of the first feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle; or, obtain the first offset distance and the second offset distance based on the coordinates of the fourth feature point on the second straight line and the coordinates of the second feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle.
[0084] For example, such as Figure 2 As shown, the angle α between the first straight line L1 and the second straight line L2 is the offset angle. Taking the intersection point O6 of the first straight line L1 and the second straight line L2 as the center, rotating counterclockwise by α can make the first straight line L1 coincide with the second straight line L2. At this time, the placement positions of the first calligraphy and painting work 201 and the second calligraphy and painting work 202 only undergo translation, that is, there is only an offset in the X-axis and Y-axis directions. Then, the first offset distance X1 can be obtained based on the x-coordinate of the third feature point O3 and the x-coordinate of the first feature point O1, and the second offset distance -Y1 can be obtained based on the y-coordinate of the third feature point O3 and the y-coordinate of the first feature point O1; or, the first offset distance X1 can be obtained based on the x-coordinate of the fourth feature point O4 and the x-coordinate of the second feature point O2, and the second offset distance -Y1 can be obtained based on the y-coordinate of the fourth feature point O4 and the y-coordinate of the second feature point O2.
[0085] It should be noted that the first and second feature points are located on the first artwork, and a straight line can be determined through these two points. Therefore, the first straight line passing through the first and second feature points can represent the first placement position of the first artwork on the workbench. Similarly, the third and fourth feature points are located on the second artwork, and a straight line can be determined through these two points. Therefore, the second straight line passing through the third and fourth feature points can represent the second placement position of the second artwork on the workbench. In this way, by rotating the first straight line to coincide with the second straight line, the translational distance caused by the rotation of the placement positions of the first and second artworks can be eliminated, thereby obtaining the accurate first and second offset distances mentioned above.
[0086] In some embodiments, step 103 above, which involves correcting the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work based on the position offset information to obtain the corrected first coordinate information, includes the following steps B-1 to B-2:
[0087] Step B-1: Correct the horizontal coordinate value in the second coordinate information according to the first offset distance, and correct the vertical coordinate value in the second coordinate information according to the second offset distance to obtain the third coordinate information;
[0088] Step B-2: Using the intersection of the first straight line and the second straight line as the center, rotate the line segment with the target point corresponding to the third coordinate information and the intersection point as the endpoints along the first direction by the offset angle, and determine the current coordinate information of the target point as the corrected first coordinate information, wherein the first direction is the same as the rotation direction when the second straight line is rotated to a position coinciding with the first straight line.
[0089] For example, such as Figure 3 As shown, if the first offset distance is X1, it means that the position of the second artwork 202 relative to the first artwork 201 has moved a distance of X1 in the positive direction of the X-axis. Then, the x-coordinate X2 of any second detection point O5 on the second artwork 202 needs to be added to X1, that is, X3 = X2 + X1. Similarly, if the second offset distance is -Y1, it means that the position of the second artwork 202 relative to the first artwork 201 has moved a distance of Y1 in the negative direction of the Y-axis. Then, the y-coordinate Y2 of any second detection point O5 on the second artwork 202 needs to be subtracted from Y1, that is, Y3 = Y2 - Y1. In this way, the first point O5' can be obtained based on (X3, Y3). That is, O5' can be understood as a point obtained by superimposing the translational distance (i.e., the first offset distance and the second offset distance) on the position of the second detection point O5.
[0090] However, the above position offset information also includes the offset angle, so it is necessary to further superimpose the offset angle on the basis of the first point O5', so as to obtain the position of the first detection point O5” corresponding to the second detection point O5; that is, the intersection point O6 of the first line L1 and the second line L2 can be taken as a circle, and the first line segment O6O5' can be rotated clockwise by an angle α to obtain the second line segment O6O5”, that is, the position of O5”.
[0091] As described above, after obtaining the first offset distance, the second offset distance, and the offset angle, for the second detection point used for data collection during the registration of the second calligraphy and painting work, the first offset distance and the second offset distance can be superimposed on the second coordinate information of the second detection point, and then the offset angle can be superimposed. This yields the first coordinate information of the first detection point that needs to be collected for data collection during the verification of the first calligraphy and painting work. In this way, when correcting the second coordinate information of the second detection point, not only the translational distance but also the rotation angle are considered, thereby ensuring that the position of the detection point used for information collection during verification is consistent with the position of the detection point used for information collection during registration. This improves the tolerance for positional deviation of calligraphy and painting works without the need for manual intervention in placement accuracy, thus enhancing the accuracy of calligraphy and painting work verification.
[0092] In some embodiments, step 104 above, obtaining the first acquisition information at the first detection point on the first calligraphy and painting work, includes the following step C-1:
[0093] Step C-1: Control the robotic arm to move to the position of the first detection point and collect data at the target height above the first calligraphy and painting work to obtain the first collected information;
[0094] The target height is defined as the height of the robotic arm from the second artwork when the second artwork is being registered.
[0095] Therefore, when registering and verifying calligraphy and painting works, a robotic arm can be used to collect information at the corresponding detection points. In this case, when registering a second calligraphy and painting work, the height of the robotic arm from the second work can also be recorded. This way, when verifying the first work, the robotic arm can collect information from the first work at the same height, avoiding significant differences in the height of the robotic arm from the work during different stages of registration and acceptance, which could lead to inaccurate verification results.
[0096] In summary, the specific implementation method of the evidence collection and verification method for calligraphy and painting works in this application embodiment can be described as follows:
[0097] Filing stage:
[0098] Place the second calligraphy and painting work to be registered on the workbench, obtain a panoramic image of the second calligraphy and painting work, randomly select two feature points on the image, and define them as the third feature point O3 and the fourth feature point O4 respectively; determine at least one second detection point O5; and use a robotic arm to reach the position of each second detection point O5 to collect information, thereby storing the following registration data:
[0099] A panoramic image of the second painting and calligraphy work;
[0100] The first image feature of the third feature point O3 and the second image feature of the fourth feature point O4;
[0101] The coordinate information of the third feature point O3, the fourth feature point O4, and the second detection point O5 in the coordinate system of the worktable;
[0102] The robotic arm is at a target height H above the artwork when collecting information.
[0103] Information collected at the testing site.
[0104] Verification phase:
[0105] First, place the first calligraphy and painting work to be verified randomly on the workbench and obtain a panoramic image of the first calligraphy and painting work at this time. Then, through image comparison technology, obtain a second calligraphy and painting work that matches the panoramic image of the first calligraphy and painting work from the registered calligraphy and painting works.
[0106] Secondly, the registration data of the second painting and calligraphy work is retrieved to determine the location of the first detection point where information needs to be collected from the first painting and calligraphy work. The specific process is as follows:
[0107] Obtain the first feature point O1 on the first painting and calligraphy work that matches the first image feature, and the second feature point O2 that matches the second image feature (i.e., obtain the new positions of the two feature points recorded during the filing process on the first painting and calligraphy work), and thus record the coordinate information of the first feature point O1 and the second feature point O2 in the workbench coordinate system.
[0108] Then, based on the coordinate information of the third feature point O3 and the fourth feature point O4, as well as the coordinate information of the first feature point O1 and the second feature point O2, the angle α between the first straight line L1 passing through the first feature point O1 and the second feature point O2 and the second straight line L2 passing through the third feature point O3 and the fourth feature point O4 is obtained, as follows: Figure 2 As shown;
[0109] Then, as Figure 2As shown, with the intersection point O6 of the first straight line L1 and the second straight line L2 as the center, rotate counterclockwise by α so that the first straight line L1 coincides with the second straight line L2. Then, based on the x-coordinate of the third feature point O3 and the x-coordinate of the first feature point O1 at this time, obtain the first offset distance X1, and based on the y-coordinate of the third feature point O3 and the y-coordinate of the first feature point O1 at this time, obtain the second offset distance -Y1; or, based on the x-coordinate of the fourth feature point O4 and the x-coordinate of the second feature point O2 at this time, obtain the first offset distance X1, and based on the y-coordinate of the fourth feature point O4 and the y-coordinate of the second feature point O2 at this time, obtain the second offset distance -Y1.
[0110] Furthermore, such as Figure 3 As shown, add X1 to the x-coordinate X2 of the second detection point O5, i.e., X3 = X2 + X1; subtract Y1 from the y-coordinate Y2 of the second detection point O5, i.e., Y3 = Y2 - Y1; thus, based on (X3, Y3), the first point O5' can be obtained. Then, taking the intersection point O6 of the first line L1 and the second line L2 as a circle, rotate the first line segment O6O5' clockwise by an angle α to obtain the second line segment O6O5", i.e., the position of the first detection point O5". The position of O5" is the position of the first detection point that needs to be collected on the first calligraphy and painting work.
[0111] Next, data is collected at the first detection point on the first calligraphy and painting work by the robotic arm at a target height H away from the first calligraphy and painting work, and the first collection information corresponding to each first detection point is obtained.
[0112] Finally, the first calligraphy and painting work was verified using the first and second collected information:
[0113] That is, if the first collected information matches the second collected information, the first calligraphy and painting work passes the verification; otherwise, it fails the verification.
[0114] As can be seen from the above, the embodiments of this application have the following advantages:
[0115] (1) For any calligraphy and painting works placed arbitrarily, the positional changes and rotation angles of the works can be determined by comparing the images before and after;
[0116] (2) For irregular works, there is no need to repeatedly search for a fixed and precise location and then test, which improves the efficiency of evidence collection and verification.
[0117] (3) It can solve the problem that works that have been remounted and trimmed cannot pass the verification.
[0118] This application provides an evidence collection and verification device for calligraphy and painting works, such as... Figure 4 As shown, the device includes:
[0119] The first acquisition module 401 is used to acquire a second calligraphy and painting work that matches the first calligraphy and painting work from the registered calligraphy and painting works when the first calligraphy and painting work to be verified is placed on the workbench.
[0120] The second acquisition module 402 is used to acquire position offset information, wherein the position offset information is used to indicate: the offset of the first position of the first calligraphy and painting work on the workbench at present, relative to the second position of the second calligraphy and painting work on the workbench when it was filed;
[0121] Correction module 403 is used to correct the second coordinate information of the second detection point used for data collection during the filing of the second calligraphy and painting work based on the position offset information, so as to obtain the corrected first coordinate information;
[0122] The third acquisition module 404 is used to acquire the first collection information at the first detection point on the first calligraphy and painting work, wherein the first detection point includes the detection point corresponding to the first coordinate information.
[0123] The verification module 405 is used to verify the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained when the second calligraphy and painting work is registered.
[0124] Optionally, the position offset information includes:
[0125] The first offset distance represents the offset distance of the first placement position relative to the second placement position in the X-axis direction.
[0126] The second offset distance represents the offset distance of the first placement position relative to the second placement position in the Y-axis direction.
[0127] Offset angle, representing the offset angle of the first placement position relative to the second placement position;
[0128] The X-axis and Y-axis are the horizontal and vertical coordinate axes of the coordinate system of the worktable, respectively.
[0129] Optionally, the second acquisition module 402 acquires position offset information, including:
[0130] Based on the first image features of the third feature point and the second image features of the fourth feature point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work, the first feature point on the first calligraphy and painting work that matches the first image feature and the second feature point that matches the second image feature are obtained.
[0131] The position offset information is obtained based on the third feature point, the fourth feature point, the first feature point, and the second feature point.
[0132] Optionally, the second acquisition module 402 acquires the position offset information based on the third feature point, the fourth feature point, the first feature point, and the second feature point, including:
[0133] Obtain the angle between the second line and the first line, and determine the angle as the offset angle, wherein the first line is a line passing through the first feature point and the second feature point, and the second line is a line passing through the third feature point and the fourth feature point;
[0134] Using the intersection of the first line and the second line as the center, rotate the first line based on the offset angle so that the first line coincides with the second line;
[0135] The first offset distance and the second offset distance are obtained based on the coordinates of the third feature point on the second straight line and the coordinates of the first feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle; or, the first offset distance and the second offset distance are obtained based on the coordinates of the fourth feature point on the second straight line and the coordinates of the second feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle.
[0136] Optionally, the correction module 403 corrects the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work based on the position offset information, to obtain the corrected first coordinate information, including:
[0137] The horizontal coordinate value in the second coordinate information is corrected based on the first offset distance, and the vertical coordinate value in the second coordinate information is corrected based on the second offset distance to obtain the third coordinate information;
[0138] Using the intersection of the first and second straight lines as the center, the line segment with the target point corresponding to the third coordinate information and the intersection point as the endpoints is rotated along the first direction by the offset angle, and the current coordinate information of the target point is determined as the corrected first coordinate information. The first direction is the same as the rotation direction when the second straight line is rotated to a position coinciding with the first straight line.
[0139] Optionally, the third acquisition module 404 acquires the first collected information at the first detection point on the first calligraphy and painting work, including:
[0140] The robotic arm is controlled to move to the position of the first detection point and to collect data at the target height above the first calligraphy and painting work to obtain the first collected information;
[0141] The target height is defined as the height of the robotic arm from the second artwork when the second artwork is being registered.
[0142] Optionally, the verification module 405 verifies the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work, including:
[0143] If the first collected information matches the second collected information, the first calligraphy and painting work is determined to have passed verification;
[0144] or,
[0145] If the first collected information does not match the second collected information, it is determined that the first calligraphy and painting work has failed the verification.
[0146] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0147] This application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described method for verifying and authenticating calligraphy and painting works, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0148] For example, Figure 5 A schematic diagram of the physical structure of an electronic device is shown. (For example...) Figure 5 As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540. The processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions stored in the memory 530. The processor 510 is used to execute various processes of the method for verifying and authenticating calligraphy and painting works according to the embodiments of this application, which will not be further elaborated here.
[0149] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0150] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described method for verifying and authenticating calligraphy and painting works, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0151] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0152] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0153] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0154] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0155] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0156] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0157] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0158] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0159] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0160] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for obtaining and verifying evidence of calligraphy and painting works, characterized in that, The method includes: With the first calligraphy and painting work to be verified placed on the workbench, a second calligraphy and painting work that matches the first calligraphy and painting work is obtained from the registered calligraphy and painting works. Obtain position offset information, wherein the position offset information is used to indicate: the offset of the first position of the first calligraphy and painting work on the workbench at present, relative to the second position of the second calligraphy and painting work on the workbench at the time of filing; Based on the position offset information, the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work is corrected to obtain the corrected first coordinate information; Obtain first collection information at the first detection point on the first calligraphy and painting work, wherein the first detection point includes the detection point corresponding to the first coordinate information; The first calligraphy and painting work is verified based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work.
2. The method according to claim 1, characterized in that, The position offset information includes: The first offset distance represents the offset distance of the first placement position relative to the second placement position in the X-axis direction. The second offset distance represents the offset distance of the first placement position relative to the second placement position in the Y-axis direction. Offset angle, representing the offset angle of the first placement position relative to the second placement position; The X-axis and Y-axis are the horizontal and vertical coordinate axes of the coordinate system of the worktable, respectively.
3. The method according to claim 2, characterized in that, The acquisition of position offset information includes: Based on the first image features of the third feature point and the second image features of the fourth feature point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work, the first feature point on the first calligraphy and painting work that matches the first image feature and the second feature point that matches the second image feature are obtained. The position offset information is obtained based on the third feature point, the fourth feature point, the first feature point, and the second feature point.
4. The method according to claim 3, characterized in that, The step of obtaining the position offset information based on the third feature point, the fourth feature point, the first feature point, and the second feature point includes: Obtain the angle between the second line and the first line, and determine the angle as the offset angle, wherein the first line is a line passing through the first feature point and the second feature point, and the second line is a line passing through the third feature point and the fourth feature point; Using the intersection of the first line and the second line as the center, rotate the first line based on the offset angle so that the first line coincides with the second line; The first offset distance and the second offset distance are obtained based on the coordinates of the third feature point on the second straight line and the coordinates of the first feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle; or, the first offset distance and the second offset distance are obtained based on the coordinates of the fourth feature point on the second straight line and the coordinates of the second feature point on the first straight line when the first straight line is rotated to a position coinciding with the second straight line based on the offset angle.
5. The method according to claim 4, characterized in that, The step of correcting the second coordinate information of the second detection point used for data collection during the registration of the second calligraphy and painting work based on the position offset information to obtain the corrected first coordinate information includes: The horizontal coordinate value in the second coordinate information is corrected based on the first offset distance, and the vertical coordinate value in the second coordinate information is corrected based on the second offset distance to obtain the third coordinate information; Using the intersection of the first and second straight lines as the center, the line segment with the target point corresponding to the third coordinate information and the intersection point as the endpoints is rotated along the first direction by the offset angle, and the current coordinate information of the target point is determined as the corrected first coordinate information. The first direction is the same as the rotation direction when the second straight line is rotated to a position coinciding with the first straight line.
6. The method according to any one of claims 1 to 5, characterized in that, The step of acquiring the first collection information at the first detection point on the first calligraphy and painting work includes: The robotic arm is controlled to move to the position of the first detection point and to collect data at the target height above the first calligraphy and painting work to obtain the first collected information; The target height is defined as the height of the robotic arm from the second artwork when the second artwork is being registered.
7. The method according to any one of claims 1 to 5, characterized in that, The step of verifying the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained during the registration of the second calligraphy and painting work includes: If the first collected information matches the second collected information, the first calligraphy and painting work is determined to have passed verification; or, If the first collected information does not match the second collected information, it is determined that the first calligraphy and painting work has failed the verification.
8. A device for verifying and collecting evidence of calligraphy and painting works, characterized in that, include: The first acquisition module is used to acquire a second calligraphy and painting work that matches the first calligraphy and painting work from the registered calligraphy and painting works when the first calligraphy and painting work to be verified is placed on the workbench. The second acquisition module is used to acquire position offset information, wherein the position offset information is used to indicate: the offset of the first position of the first calligraphy and painting work on the workbench at present, relative to the second position of the second calligraphy and painting work on the workbench when it was filed; The correction module is used to correct the second coordinate information of the second detection point used for data collection during the filing of the second calligraphy and painting work based on the position offset information, so as to obtain the corrected first coordinate information. The third acquisition module is used to acquire the first collection information at the first detection point on the first calligraphy and painting work, wherein the first detection point includes the detection point corresponding to the first coordinate information; The verification module is used to verify the first calligraphy and painting work based on the first collected information and the second collected information at the second detection point on the second calligraphy and painting work obtained when the second calligraphy and painting work is registered.
9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, it implements the steps of the method for obtaining and verifying evidence of a work of calligraphy and painting as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a processor, implement the steps of the method for obtaining and verifying evidence of a work of calligraphy and painting as described in any one of claims 1 to 7.