Engineering drawing signature positioning method and device, storage medium, electronic equipment and product

By calculating the page equivalent matrix of the engineering drawing PDF document and determining the coordinate position of the signature seal, the problem of low efficiency in the existing technology of signature seal positioning is solved, and efficient and accurate signature operation is achieved.

CN119445053APending Publication Date: 2025-02-14BEIJING CERTIFICATE AUTHORITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411470675.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

During the drawing review stage of engineering drawings, the positioning efficiency of the existing technology is low, and it is necessary to manually create templates for each set of drawing frames for visual stamping, resulting in large workload and complex business processes.

Method used

By obtaining the page rotation value of the PDF document corresponding to the engineering drawings, calculate the page equivalent matrix, and determine the coordinate position of the signature seal based on the matrix to achieve accurate signature seal positioning.

Benefits of technology

It improves the accuracy and efficiency of signature positioning, reduces the complexity of business processes, avoids the cumbersome manual operation, and is suitable for batch stamping operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445053A_ABST
    Figure CN119445053A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic signature, and particularly provides an engineering drawing signature positioning method and device, a storage medium, electronic equipment and a product, and the method can comprise the steps: obtaining a page rotation value of a PDF document corresponding to an engineering drawing; obtaining a page equivalent matrix corresponding to the page rotation value; and determining a signature coordinate position based on the page equivalent matrix. According to some embodiments of the invention, the signature positioning accuracy can be guaranteed, and the efficiency of engineering drawing signature can be improved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic signatures, and more specifically, to a method, device, storage medium, electronic device and product for locating signatures on engineering drawings. Background Art

[0002] With the widespread application of digital delivery and digital review in the housing and construction industry, the format of digital delivery and digital review in the industry is still mainly PDF, and these PDFs are generated by printing and converting engineering CAD drawings.

[0003] At present, when signing and stamping in the drawing review stage, a document is taken from the documents that need to be stamped in batches as a template and signed manually. The remaining documents are stamped in batches using the stamp of this template file as a reference. However, in actual applications, a medium-to-large design institute has at least hundreds of drawing frames. If a template is made for each set of drawing frames and a manual visual stamping operation is performed, the signing efficiency is very low.

[0004] Therefore, how to provide a technical solution for an efficient method for locating signatures on engineering drawings has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of some embodiments of the present application is to provide a method, device, storage medium, electronic device and product for locating signatures on engineering drawings. The technical solutions of the embodiments of the present application can ensure the accuracy of locating signatures on engineering drawings while improving signature efficiency and reducing the complexity of business processes.

[0006] In a first aspect, some embodiments of the present application provide a method for locating a signature on an engineering drawing, including: obtaining a page rotation value of a PDF document corresponding to the engineering drawing; obtaining a page equivalent matrix corresponding to the page rotation value; and determining a signature coordinate position based on the page equivalent matrix.

[0007] Some embodiments of the present application obtain the page rotation value of the PDF document of the engineering drawing, calculate the page equivalent matrix, and finally determine the signature coordinate position through the page equivalent matrix. Some embodiments of the present application can realize the accurate calculation of the signature position, improve the efficiency of signature positioning and subsequent signature efficiency, and reduce the complexity of business processes.

[0008] In some embodiments, obtaining the page equivalent matrix corresponding to the page rotation value includes: determining a first transformation matrix and a second transformation matrix by determining whether the page rotation value is zero; translating a preset coordinate system with reference to the initial signature coordinates to obtain a third transformation matrix; and performing operations on the first transformation matrix, the second transformation matrix, and the third transformation matrix to obtain the page equivalent matrix.

[0009] Some embodiments of the present application determine the first transformation matrix and the second transformation matrix by taking the page rotation value, refer to the initial signature coordinates, obtain the third transformation matrix by translating the preset coordinate system, and finally obtain the page equivalent matrix by calculating the three transformation matrices, thereby providing a basis for the subsequent calculation of the precise signature coordinate position in the PDF format.

[0010] In some embodiments, determining the first transformation matrix and the second transformation matrix by judging whether the page rotation value is zero includes: confirming that the page rotation value is zero; taking the matrix after the translation distance in the initial translation matrix is ​​zero as the first transformation matrix, and taking the matrix after the rotation angle in the initial rotation matrix is ​​zero as the second transformation matrix.

[0011] Some embodiments of the present application determine the value of the translation distance in the initial translation matrix and the value of the rotation angle in the initial rotation matrix to obtain the first transformation matrix and the second transformation matrix when the page rotation value is confirmed to be zero, thereby ensuring the accuracy of subsequent signature positioning.

[0012] In some embodiments, determining the first transformation matrix and the second transformation matrix by judging whether the page rotation value is zero includes: confirming that the page rotation value is not zero; taking the rotation angle in the initial rotation matrix as the page rotation value to obtain the first transformation matrix; taking the translation distance in the initial translation matrix as the page height to obtain the second transformation matrix.

[0013] Some embodiments of the present application determine the value of the translation distance in the initial translation matrix and the value of the rotation angle in the initial rotation matrix to obtain the first transformation matrix and the second transformation matrix when the page rotation value is confirmed to be non-zero, thereby ensuring the accuracy of subsequent signature positioning.

[0014] In some embodiments, determining the signature coordinate position based on the page equivalent matrix includes: multiplying the current coordinate origin and the page equivalent matrix to obtain the signature coordinate position.

[0015] Some embodiments of the present application obtain the signature coordinate position through the current coordinate origin and page equivalent matrix operation, which is simple and efficient to operate.

[0016] In the second aspect, some embodiments of the present application provide a device for positioning a signature on an engineering drawing, including: a rotation value acquisition module, used to obtain the page rotation value of a PDF document corresponding to the engineering drawing; a matrix acquisition module, used to obtain a page equivalent matrix corresponding to the page rotation value; and a signature positioning module, used to determine the signature coordinate position based on the page equivalent matrix.

[0017] In some embodiments, the matrix acquisition module is used to: determine the first transformation matrix and the second transformation matrix by judging whether the page rotation value is zero; translate the preset coordinate system with reference to the initial signature coordinates to obtain the third transformation matrix; and operate the first transformation matrix, the second transformation matrix and the third transformation matrix to obtain the page equivalent matrix.

[0018] In a third aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method described in any embodiment of the first aspect.

[0019] In a fourth aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement a method as described in any embodiment of the first aspect when executing the program.

[0020] In a fifth aspect, some embodiments of the present application provide a computer program product, wherein the computer program product comprises a computer program, wherein the computer program, when executed by a processor, can implement the method described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A system diagram of the signature positioning of engineering drawings provided for some embodiments of the present application;

[0023] Figure 2 A schematic diagram of a drawing title block provided for some embodiments of the present application;

[0024] Figure 3 One of the flow charts of the method for locating signatures on engineering drawings provided in some embodiments of the present application;

[0025] Figure 4 One of the PDF page schematic diagrams provided for some embodiments of the present application;

[0026] Figure 5 The second schematic diagram of a PDF page provided for some embodiments of the present application;

[0027] Figure 6A schematic diagram of PDF page processing provided for some embodiments of the present application;

[0028] Figure 7 Flowchart 2 of the method for locating signatures on engineering drawings provided for some embodiments of the present application;

[0029] Figure 8 A block diagram of the device for locating the signature on an engineering drawing provided in some embodiments of the present application;

[0030] Fig. 9 A schematic diagram of an electronic device is provided for some embodiments of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.

[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0033] In the related art, due to the different models and sizes of the engineering drawings actually printed, the pages of the CAD drawings may be rotated and cropped after being converted into PDF format. When signing and stamping during the review stage, if the PDF is not processed, the position of the signature will be incorrect, and the seal may even float out of the PDF page range and cannot be seen.

[0034] At present, in order to solve the problem of inaccurate signature positioning, the existing technology adopts the method of selecting a template in advance as a positioning reference. The specific steps include: obtaining the four corner vertices of the stamp in the template file; calculating the sum of the horizontal distance and vertical distance between the four corner vertices of the stamp and the page vertices in the corresponding directions respectively, as the position distance between the corner vertices of the stamp and the page vertices; selecting the point with the closest position distance between the corner vertex and the page vertex as the default first stamp base point coordinate for stamping; adding the height and width of the stamp to the first stamp base point coordinate, respectively, to calculate the second stamp base point coordinate of the stamp; according to the position combination of the first stamp base point coordinate and the second stamp base point coordinate, determine the stamp position of the stamp. In another existing technology, a pre-set positioning label is used, that is, a positioning label is added to the CAD drawing in advance, and it can be guaranteed that this positioning label can be read when printing in PDF format, so there will be no positioning deviation regardless of whether the page is selected.

[0035] However, although the above technology solves the problem of inaccurate signature positioning. But for the first prior art, each set of drawings needs to find a template, and then manually visually stamp on the template PDF, so as to ensure the accuracy of the subsequent batch stamping position. However, in reality, the design institute has at least hundreds of sets of drawing frames. If each set of drawing frames is used as a template for manual visual stamping, the workload is very large, which seriously affects the implementation progress of the project. For the other prior art mentioned above, positioning tags need to be added during the drawing process of each CAD drawing, which increases the complexity of the business process, and it is also powerless for documents that have been converted to PDF format.

[0036] It can be seen from the above related technologies that the signature positioning method in the prior art is not simple enough and has low efficiency.

[0037] Furthermore, the applicant analyzed the PDF format documents of the engineering drawings and found that the documents that were inaccurately positioned or even floated out of the PDF page range were rotated during the process of printing the CAD drawings into PDF format. In view of this, some embodiments of the present application provide a method for positioning the signature of an engineering drawing. After all CAD drawings are printed into PDF documents, the method needs to determine whether the PDF document has been rotated, and then determine the signature coordinate position. By performing a rotation analysis on the PDF document, the final signature coordinate position is obtained, thereby achieving fast and accurate positioning, which can also ensure that the title bar of the drawing is at the bottom right of the drawing and the text is displayed normally, which is convenient for the review personnel to carry out subsequent verification, review and approval.

[0038] The following is combined with Figure 1 The overall composition structure of the system for locating signatures on engineering drawings provided by some embodiments of the present application is exemplified.

[0039] like Figure 1 As shown, some embodiments of the present application provide a system for locating signatures on engineering drawings, which may include a terminal 100 and a processing server 200. The terminal 100 may send a PDF document corresponding to an engineering drawing (which may be referred to as a drawing) to the processing server 200. The processing server 200 may parse the PDF file to obtain a page rotation value; then analyze the page rotation value to calculate a page equivalent matrix; finally, determine the signature coordinate position through the page equivalent matrix and the initial signature coordinates, and send it to the terminal 100.

[0040] In some embodiments of the present application, the terminal 100 may be a mobile terminal or a non-portable computer terminal, which is not specifically limited in the embodiments of the present application.

[0041] In other embodiments of the present application, if the terminal 100 has the same function of the processing server 200 for parsing the PDF file and subsequent calculation, the processing server 200 may not be set. The specific selection can be made according to the actual situation, and the embodiments of the present application are not specifically limited here.

[0042] For ease of understanding, the actual drawing template and PDF page are introduced below. Figure 2 The drawing title bar shown. There is a title bar on the drawing, and the title bar is usually located in the lower right corner of the drawing. In the actual signing business operation, it is generally carried out in the reserved position for the roles of review, audit, verification, design, and drawing in the title bar. If the signature is positioned based on the coordinate origin of the PDF document (the coordinates in the PDF document are based on the lower left corner as the origin), the signature coordinates will be different for the sizes of different drawing formats, even for the signature position of the same role in the title bar. If the lower right corner of the drawing format is used as the positioning reference, then even if the sizes of the drawing formats are different, for the signature position of the same role in the title bar, the signature coordinates obtained are the same. In order to facilitate the explanation of the implementation process of the present application, the embodiment of the present application uses the lower right corner of the drawing format as the positioning reference.

[0043] The following is combined with Figure 3 The implementation process of engineering drawing signature positioning performed by the processing server 200 provided in some embodiments of the present application is exemplified.

[0044] Please see attached Figure 3 , Figure 3 A flow chart of a method for locating a signature on an engineering drawing provided in some embodiments of the present application. The method for locating a signature on an engineering drawing may include:

[0045] S310, obtaining a page rotation value of a PDF document corresponding to the engineering drawing.

[0046] For example, in some embodiments of the present application, the page object in the format of the PDF document is first analyzed to obtain important information such as Type, MediaBox, and Rotate in a page object (referred to as page object) in the PDF document. Among them, Type describes the type of an object, and the Type of a page object must be Page. The MediaBox in the page object is a rectangle that defines the boundary of the physical medium on which the PDF page should display or print the page, that is, the page range of the CAD drawing format. For example, the drawing format has different sizes, and there are also horizontal and vertical versions. Usually there are A0 (841×1189mm), A1 (594×841mm), A2 (420×594), A3 (297×420), A4 (210×297), etc. The difference between the drawing and PDF is the unit. The mm in the drawing is converted to the standard unit pt in the PDF format. The Rotate of the page object is the degree to which the PDF page should be rotated clockwise when it is displayed or printed; the Rotate value is the page rotation value. This value is a multiple of 90, and the default value is 0.

[0047] S320: Obtain a page equivalent matrix corresponding to the page rotation value.

[0048] For example, in some embodiments of the present application, the Rotate value of the page object can be used to determine whether the drawing has been rotated when converted to a PDF document, so the page equivalent matrix corresponding to the current PDF page needs to be determined through the Rotate value.

[0049] In some embodiments of the present application, S320 may include:

[0050] S321, determining a first conversion matrix and a second conversion matrix by judging whether the page rotation value is zero.

[0051] For example, in some embodiments of the present application, when the Rotate value is 0, it indicates that the drawing has not been rotated, and when the Rotate value is non-0, it indicates that the drawing has been rotated. Different first transformation matrix M1 and second transformation matrix M2 are determined in different situations.

[0052] In some embodiments of the present application, S321 may include: confirming that the page rotation value is zero; taking the matrix after the translation distance in the initial translation matrix is ​​zero as the first transformation matrix, and taking the matrix after the rotation angle in the initial rotation matrix is ​​zero as the second transformation matrix.

[0053] For example, in some embodiments of the present application, two conversion modes, translation or rotation, may appear in the conversion of drawings to PDF documents. Among them, translation can be achieved by using an initial translation matrix of [1 0 0 1tx ty], where tx and ty are the distances by which the origin of the coordinate system is translated in the horizontal and vertical dimensions, respectively. Rotation is achieved by converting the initial rotation matrix [cosq sinq-sinq cosq 0 0], which has the effect of rotating the axis of the coordinate system counterclockwise by an angle q. Then, when the Rotate value is 0, there is no need to calculate the coordinate system, and the values ​​of tx and ty are both 0. That is, M1 = [1 0 0 1 0 0], M2 = [1 00 1 0 0].

[0054] In some other embodiments of the present application, S321 may include: confirming that the page rotation value is not zero; taking the rotation angle in the initial rotation matrix as the page rotation value to obtain the first transformation matrix; taking the translation distance in the initial translation matrix as the page height to obtain the second transformation matrix.

[0055] For example, in some embodiments of the present application, Figure 4 The PDF page corresponding to the drawing shown in the figure has not been rotated yet. You can see that the title bar is on the left side of the page. Figure 4 The page is converted to Figure 5 The style shown is rotated 270 degrees. Engineering drawings usually use Figure 5 Delivery in this way facilitates subsequent processes such as drawing review and delivery.

[0056] Depend on Figure 4 It can be seen that the Rotate value is 270°. Figure 6 The method shown ( Figure 6 The lower left corner of page 1 is the title bar, and the two vertical arrows on the left are the initial coordinate system. Figure 6 Page 1 is rotated to get page 2, and the conversion matrix between the two is M1. Then page 2 is translated to get page 3, and the conversion matrix between the two is M2. Specifically, the page is rotated 270 degrees clockwise, which is equivalent to the coordinate system rotating 270 degrees counterclockwise. M1 = [cos270°sin270°-sin270°cos270°0 0]; then the coordinate system is translated, and the translation distance is Figure 5 As shown, Height, M2 = [1 0 0 1-Height 0].

[0057] S322, translating the preset coordinate system with reference to the initial signature coordinates to obtain a third transformation matrix.

[0058] For example, in some embodiments of the present application, the user can determine an initial signature coordinate (Xp, Yp) with the lower right corner of the drawing as the positioning reference. Afterwards, with (Xp, Yp) as a reference, a translation operation is performed on the preset coordinate system on page three to obtain page four. At this time, the preset coordinate system is located at the position of the title bar of page four. The third transformation matrix M3 can be obtained through the above translation operation. Specifically, when the Rotate value is 0, the page does not need to be rotated. At this time, the initial coordinate system is the preset coordinate system, M3 = [1 0 0 1Height-Xp Yp]. When the Rotate value is 270°, M3 = [1 0 0 1Height-XpYp].

[0059] S323: Perform operations on the first conversion matrix, the second conversion matrix, and the third conversion matrix to obtain the page equivalent matrix.

[0060] For example, in some embodiments of the present application, the M1, M2, and M3 matrices are multiplied from the left to generate a page equivalent matrix M=M3*M2*M1.

[0061] S330, determining the signature coordinate position based on the page equivalent matrix.

[0062] In some embodiments of the present application, S330 may include: multiplying the current coordinate origin and the page equivalent matrix to obtain the signature coordinate position.

[0063] For example, in some embodiments of the present application, the above reference (Xp, Yp) is translated to obtain the current coordinate origin in page four, and the current coordinate origin is operated by matrix M, so that the precise signature coordinate position in the PDF document format can be easily calculated.

[0064] It should be noted that the principle of determining the signature coordinate position through the page equivalent matrix is ​​as follows: In the matrix operation of the coordinate system, the mathematical operation of coordinate transformation in PDF includes the following two points: 1) The transformation changes the coordinate system, not the image object; 2) The transformation matrix specifies the transformation from the new coordinate system to the original coordinate system. PDF represents coordinates in two-dimensional space. In such a space, any point (x, y) is represented as a vector [xy 1]. The third constant element 1 of this vector is required so that the vector can be used with the 3×3 matrix in the calculation described below. The transformation between the two coordinate systems can be represented by a matrix as follows:

[0065]

[0066] The transformation matrix can also be described as an array of 6 elements, i.e. [abcdef]. Because the PDF transformation matrix refers to the transformation from the transformed coordinate system to the original coordinate system, the x' and y' in the following equations should be the signature coordinate positions in the untransformed coordinate system, and x and y should be the coordinate origin in the transformed coordinate system. The multiplication operation is as follows: x' = a*x + c*y + e, y' = b*x + d*y + f. If a series of transformations are performed, the matrices representing each transformation can be multiplied successively to produce an equivalent matrix representing the composite transformation.

[0067] It should also be noted that although the above is explained with the lower right corner of the drawing as the positioning reference, the embodiments of the present application can also be applied to other engineering drawings in which the lower left corner, upper left corner and upper right corner are used as the positioning reference to handle the rotation of PDF drawings. As long as the principles are the same or similar to the above principles, they are within the scope of protection of the present application.

[0068] The following is combined with Figure 7 The specific process of locating signatures on engineering drawings provided by some embodiments of the present application is exemplified.

[0069] Please see attached Figure 7 , Figure 7 A flow chart of a method for locating a signature on an engineering drawing provided for some embodiments of the present application.

[0070] The above process is explained below as an example.

[0071] S610, parsing the PDF file corresponding to the engineering drawing to obtain a page rotation value.

[0072] S620, determine whether the page rotation value is zero, if so, execute S630, otherwise execute S640.

[0073] S630: taking the matrix obtained by setting the translation distance in the initial translation matrix to zero as the first conversion matrix, and taking the matrix obtained by setting the rotation angle in the initial rotation matrix to zero as the second conversion matrix.

[0074] S640, taking the rotation angle in the initial rotation matrix as the page rotation value to obtain a first conversion matrix; taking the translation distance in the initial translation matrix as the page height to obtain a second conversion matrix.

[0075] S650, performing a translation operation on the preset coordinate system with reference to the initial signature coordinates to obtain a third transformation matrix.

[0076] S660, performing operations on the first conversion matrix, the second conversion matrix, and the third conversion matrix to obtain a page equivalent matrix.

[0077] S670, multiply the current coordinate origin and the page equivalent matrix to obtain the signature coordinate position.

[0078] It can be understood that the specific implementation process of S610 to S670 can refer to the method embodiment provided above, and in order to avoid repetition, the detailed description is appropriately omitted here.

[0079] Through some of the above-mentioned embodiments of the present application, it can be known that the embodiments of the present application parse the page object information in the PDF document, and determine whether the CAD drawing has been rotated during the printing process to PDF through the obtained Rotate value; if there is no rotation operation during the printing process, only a simple matrix translation operation is required to calculate the final signature coordinates in the PDF document; if a rotation operation is performed during the printing process, the coordinate system is first subjected to a matrix rotation operation, and then a matrix translation operation is performed, so as to quickly and accurately calculate the final signature coordinates in the PDF document.

[0080] This application not only avoids the complicated operation of manually positioning the seal in the template, but also can be made into an automated batch stamping tool, and ensures the precise requirements of the signature position. In addition, this application does not have any additional requirements for the conversion of the design institute's CAD drawings to PDF, nor does it require any signature positioning marks to be made in the drawings in advance, which is conducive to the rapid promotion and use of the signature tool in the housing and construction industry.

[0081] Please refer to Figure 8 , Figure 8 The block diagram of the device for locating the signature of an engineering drawing provided by some embodiments of the present application is shown. It should be understood that the device for locating the signature of an engineering drawing corresponds to the above-mentioned method embodiment and can execute each step involved in the above-mentioned method embodiment. The specific functions of the device for locating the signature of an engineering drawing can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here.

[0082] Figure 8 The device for locating a signature on an engineering drawing includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the device for locating a signature on an engineering drawing. The device for locating a signature on an engineering drawing includes: a rotation value acquisition module 710, used to obtain the page rotation value of a PDF document corresponding to the engineering drawing; a matrix acquisition module 720, used to obtain a page equivalent matrix corresponding to the page rotation value; and a signature positioning module 730, used to determine the signature coordinate position based on the page equivalent matrix.

[0083] In some embodiments of the present application, the matrix acquisition module 720 is used to determine the first transformation matrix and the second transformation matrix by judging whether the page rotation value is zero; translate the preset coordinate system with reference to the initial signature coordinates to obtain the third transformation matrix; and operate the first transformation matrix, the second transformation matrix and the third transformation matrix to obtain the page equivalent matrix.

[0084] In some embodiments of the present application, the matrix acquisition module 720 is used to confirm that the page rotation value is zero; the matrix after the translation distance in the initial translation matrix is ​​zero is used as the first transformation matrix, and the matrix after the rotation angle in the initial rotation matrix is ​​zero is used as the second transformation matrix.

[0085] In some embodiments of the present application, the matrix acquisition module 720 is used to confirm that the page rotation value is not zero; the rotation angle in the initial rotation matrix is ​​taken as the page rotation value to obtain the first transformation matrix; the translation distance in the initial translation matrix is ​​taken as the page height to obtain the second transformation matrix.

[0086] In some embodiments of the present application, the signature positioning module 730 is used to multiply the current coordinate origin and the page equivalent matrix to obtain the signature coordinate position.

[0087] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0088] Some embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the operations of the method corresponding to any of the above methods provided in the above embodiments.

[0089] Some embodiments of the present application further provide a computer program product, which includes a computer program, wherein when the computer program is executed by a processor, it can implement the operations corresponding to any of the above methods provided in the above embodiments.

[0090] like Fig. 9 As shown, some embodiments of the present application provide an electronic device 800, which includes: a memory 810, a processor 820, and a computer program stored in the memory 810 and executable on the processor 820, wherein the processor 820 can implement a method as described in any of the above embodiments when reading the program from the memory 810 through a bus 830 and executing the program.

[0091] Processor 820 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 820 can be a microprocessor.

[0092] The memory 810 may be used to store instructions executed by the processor 820 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 820 of the disclosed embodiment may be used to execute instructions in the memory 810 to implement the method shown above. The memory 810 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.

[0093] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0094] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0095] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for locating signatures on engineering drawings, characterized in that: include: Get the page rotation value of the PDF document corresponding to the engineering drawing; Obtaining a page equivalent matrix corresponding to the page rotation value; Based on the page equivalent matrix, the signature coordinate position is determined.

2. The method according to claim 1, characterized in that The obtaining of a page equivalent matrix corresponding to the page rotation value comprises: Determining a first conversion matrix and a second conversion matrix by judging whether the page rotation value is zero; The preset coordinate system is translated with reference to the initial signature coordinates to obtain a third transformation matrix; The first conversion matrix, the second conversion matrix, and the third conversion matrix are operated to obtain the page equivalent matrix.

3. The method according to claim 2, characterized in that The determining of the first conversion matrix and the second conversion matrix by judging whether the page rotation value is zero comprises: confirming that the page rotation value is zero; The matrix obtained by setting the translation distance in the initial translation matrix to zero is used as the first transformation matrix, and the matrix obtained by setting the rotation angle in the initial rotation matrix to zero is used as the second transformation matrix.

4. The method according to claim 2, characterized in that The determining of the first conversion matrix and the second conversion matrix by judging whether the page rotation value is zero comprises: confirming that the page rotation value is not zero; Taking the rotation angle in the initial rotation matrix as the page rotation value, to obtain the first conversion matrix; The translation distance in the initial translation matrix is ​​taken as the page height to obtain the second transformation matrix.

5. The method according to any one of claims 1 to 4, characterized in that The determining of the signature coordinate position based on the page equivalent matrix includes: The current coordinate origin is multiplied by the page equivalent matrix to obtain the signature coordinate position.

6. A device for locating signatures on engineering drawings, characterized in that: include: A rotation value acquisition module is used to obtain the page rotation value of the PDF document corresponding to the engineering drawing; A matrix acquisition module, used to acquire a page equivalent matrix corresponding to the page rotation value; The signature positioning module is used to determine the signature coordinate position based on the page equivalent matrix.

7. The device according to claim 6, characterized in that The matrix acquisition module is used for: Determining a first conversion matrix and a second conversion matrix by judging whether the page rotation value is zero; The preset coordinate system is translated with reference to the initial signature coordinates to obtain a third transformation matrix; The first conversion matrix, the second conversion matrix, and the third conversion matrix are operated to obtain the page equivalent matrix.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program executes the method according to any one of claims 1 to 5 when executed by a processor.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program executes the method according to any one of claims 1 to 5 when being run by the processor.

10. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program executes the method according to any one of claims 1 to 5 when executed by a processor.