CN112001819A - Small-sized portable mistake and disorder prevention international trade contract scanning device and method - Google Patents

Small-sized portable mistake and disorder prevention international trade contract scanning device and method Download PDF

Info

Publication number
CN112001819A
CN112001819A CN202010850020.3A CN202010850020A CN112001819A CN 112001819 A CN112001819 A CN 112001819A CN 202010850020 A CN202010850020 A CN 202010850020A CN 112001819 A CN112001819 A CN 112001819A
Authority
CN
China
Prior art keywords
contract
image
module
text
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010850020.3A
Other languages
Chinese (zh)
Inventor
李蕊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Business Institute
Original Assignee
Shandong Business Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Business Institute filed Critical Shandong Business Institute
Priority to CN202010850020.3A priority Critical patent/CN112001819A/en
Publication of CN112001819A publication Critical patent/CN112001819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Character Input (AREA)

Abstract

The invention belongs to the technical field of contract scanning, and discloses a small portable mistake and disorder prevention international trade contract scanning device and a method, wherein the small portable mistake and disorder prevention international trade contract scanning device comprises: the system comprises a power supply module, a contract image acquisition module, a main control module, a character recognition module, a contract text comparison module, a disorder labeling module, an error correction module, an anti-counterfeiting verification module and a display module. According to the invention, the character recognition module can perform self-adaptive adjustment according to the character of the characters in the contract image, so that the accuracy of obtaining character sub-blocks by segmentation and the precision of recognizing the characters in the contract image are improved; meanwhile, the contract verification can be automatically realized by inputting the image of the contract to be verified through the anti-counterfeiting verification module, the operation is simple, time and labor are saved, the workload of the customer for verifying the contract is reduced, the verification accuracy is improved, the reliability is high, the financial risk can be effectively prevented, and the safety of the financial contract is ensured.

Description

Small-sized portable mistake and disorder prevention international trade contract scanning device and method
Technical Field
The invention belongs to the technical field of contract scanning, and particularly relates to a small portable mistake-breaking prevention international trade contract scanning device and method.
Background
The international trade contract is also called foreign trade contract or import and export trade contract in China, namely written agreement between the rights and obligations of commodity transaction by the parties in different countries or regions of business. The international trade contract is protected and governed by national laws, is a legal document with equal constraint on all parties signing a contract, and is a legal basis for solving trade disputes, regulating, arbitrating and litigation. The international trade contract belongs to a more formal contract style in social interaction and has the characteristics of accuracy, directness, legal effectiveness and the like. Understanding the unique cultural features of international trade contracts facilitates its understanding and exploitation. However, the characters in the contract image collected by the existing small portable mistake-proofing and disorder-preventing international trade contract scanning device are generally recognized only by simple contract image segmentation processing, and cannot be adaptively adjusted according to character features in the contract image, so that the existing contract image character recognition method is low in precision and cannot meet the requirements of practical application; meanwhile, the contract authenticity verification process depends on manpower, and objectivity is difficult to ensure.
In summary, the problems of the prior art are as follows: characters in a contract image acquired by the conventional small portable mistake-proof international trade contract scanning device are generally recognized only by simple contract image segmentation processing, and cannot be adaptively adjusted according to character features in the contract image, so that the conventional contract image character recognition method is low in precision and cannot meet the requirements of practical application; meanwhile, the contract authenticity verification process depends on manpower, and objectivity is difficult to ensure.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a small portable device and a method for preventing the scanning of international trade contracts from being mistaken.
The invention is realized in this way, a method for scanning the anti-mistake and anti-disorder international trade contract, which comprises the following steps:
the method comprises the following steps that firstly, a power supply module supplies power to a small portable mistake and disorder prevention international trade contract scanning device through a lithium battery; the contract image acquisition module acquires an international trade contract image through a camera;
step two, the main control module controls the character recognition module through the main controller to receive the acquired international trade contract images by using a recognition program; rectifying the contract image; enhancing the contract image by an image enhancement program;
performing binarization processing on the contract image to obtain a matrix corresponding to the contract image; representing the font in the matrix coordinate of the contract image by using a first pixel value and representing the background by using a second pixel value, and counting the number of the second pixel values of each row in the matrix coordinate of the contract image to obtain an array;
step four, acquiring the row number of the row with the numerical value larger than the preset reference value in the array, and taking the row number distance between the row combinations which meet the preset condition in the row with the numerical value larger than the preset reference value in the array as a row width parameter;
counting a plurality of line width parameters in the array, averaging the plurality of line width parameters, and acquiring the line width parameters of the array;
step six, acquiring a column width parameter of the array according to the acquired row width parameter of the array, and acquiring a font size parameter of the array according to the row width parameter and the column width parameter to obtain a character matrix parameter;
step seven, segmenting the contract image based on the character matrix parameters in the step six to obtain character sub-blocks of the contract image; contract image segmentation is carried out on the character sub-blocks to obtain character information in the character sub-blocks, and the character information is identified;
step eight, the contract text comparison module compares the image characters identified in the step four with the contract text through a comparison program; the disorder marking module marks the contrast disorder through a marking program; the error correction module corrects the same and disordered characters through an error correction program;
step nine, the anti-counterfeiting verification module obtains a contract image to be segmented through an anti-counterfeiting verification program; inputting the contract image to be segmented into a preset contract image segmentation network obtained by training based on the main body loss and the edge loss of the contract image of the training sample to perform contract image segmentation processing, so as to obtain a target segmentation result of the contract image to be segmented;
step ten, segmenting a contract image aiming at the main body area of the target object from the contract image to be segmented according to the target segmentation result; acquiring an image of a contract to be verified, which comprises a two-dimensional code, a contract text, a watermark and a invisible code;
step eleven, identifying the two-dimensional code to obtain a contract number of the contract to be verified; acquiring a pre-stored text, a pre-stored watermark text and a pre-stored invisible code text according to the contract number; performing image processing on the image of the contract to be verified to obtain watermark information, text information and invisible code information;
step twelve, obtaining a contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information and the invisible code information; the display module displays the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through the display.
Further, before the third step, the method further comprises:
selecting a plurality of pairs of matching points in the contract image and a preset reference contract image by using a contract image registration function in a matrix laboratory, and performing registration processing on the contract image according to the plurality of pairs of matching points to obtain contract image registration parameters;
and carrying out transformation processing on any coordinate value in a matrix corresponding to the contract image based on the contract image registration parameter to obtain a transformed contract image matrix coordinate.
Further, in the fourth step, the step of taking the row number distance between row combinations meeting the preset condition in rows with values larger than the preset reference value in the array as a row width parameter specifically comprises:
and taking the row number distance between the row combination which is greater than the preset reference value at least twice continuously in the array and the next row combination which is greater than the preset reference value at least twice continuously as a row width parameter.
Further, in the seventh step, the step of performing image segmentation on the text subblock to obtain text information in the text subblock, and the step of identifying the text information specifically includes:
and performing contract image segmentation processing on the segmented character sub-blocks based on a preset clustering algorithm to obtain character information in the character sub-blocks, comparing the character information in a preset system character library according to the character information, and identifying characters in the same image according to a comparison result.
Further, the eleventh step further includes:
judging whether the text matching result is true;
if yes, acquiring service key information stored in the host according to the contract number; obtaining a host information matching result according to the service key information and the service key information in the text; and obtaining a final verification result according to the host information matching result and the contract verification result.
Further, in the twelfth step, obtaining a contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information, and the invisible code information includes:
3.1) obtaining a hidden code matching result according to the hidden code information and the hidden code text; obtaining a watermark matching result according to the watermark information and the watermark text; obtaining a text matching result according to the text information and the contract text;
and 3.2) obtaining a contract verification result according to the invisible code matching result, the watermark matching result and the text matching result.
Further, the image of the contract to be verified further comprises: the seal, the image processing to the image of the contract to be verified to obtain the watermark information, the text information and the invisible code information, includes:
eliminating the seal in the image of the contract to be verified to obtain a seal-removed image; eliminating the text in the stamp-removed image to obtain a watermark image; identifying the watermark image based on an OCR (optical character recognition) technology to obtain the watermark information; eliminating the watermark in the stamp-removed image to obtain a text image;
recognizing the text image based on an OCR recognition technology to obtain the text information; and identifying the image of the contract to be verified based on an OCR (optical character recognition) technology to obtain the invisible code information.
Another object of the present invention is to provide a small-sized portable mistake-breaking international trade contract scanning apparatus for implementing the mistake-breaking international trade contract scanning method, the small-sized portable mistake-breaking international trade contract scanning apparatus comprising:
the system comprises a power supply module, a contract image acquisition module, a main control module, a character recognition module, a contract text comparison module, a disorder labeling module, an error correction module, an anti-counterfeiting verification module and a display module;
the power supply module is connected with the main control module and used for supplying power to the small portable mistake and disorder prevention international trade contract scanning device through the lithium battery;
the contract image acquisition module is connected with the main control module and is used for acquiring an international trade contract image through the camera;
the main control module is connected with the power supply module, the contract image acquisition module, the character recognition module, the contract text comparison module, the disorder marking module, the error correction module, the anti-counterfeiting verification module and the display module and is used for controlling the normal work of each module through the main controller;
the character recognition module is connected with the main control module and used for recognizing contract image characters through a recognition program;
the contract text comparison module is connected with the main control module and is used for comparing the recognized image characters with the contract text through a comparison program;
the disorder marking module is connected with the main control module and is used for marking the comparative disorder through a marking program;
the error correction module is connected with the main control module and is used for correcting the same and disordered characters through an error correction program;
the anti-counterfeiting verification module is connected with the main control module and used for verifying the contract text through an anti-counterfeiting verification program;
and the display module is connected with the main control module and used for displaying the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through the display.
It is another object of the present invention to provide a computer program product stored on a computer readable medium, comprising a computer readable program for providing a user input interface to implement the method for scanning against unscrupulous international trade contracts when executed on an electronic device.
It is another object of the present invention to provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method for unscrambling international trade contract scanning.
The invention has the advantages and positive effects that: the character recognition module analyzes the texture characteristics among the matrix rows of the contract image to be recognized, estimates the relevant matrix parameters of the characters in the contract image, segments the contract image based on the relevant matrix parameters of the characters to obtain the character sub-blocks, and recognizes the character sub-blocks, and since segmentation and recognition are performed through the relevant matrix parameters of the estimated characters, self-adaptive adjustment can be performed according to the characteristics of the characters in the contract image, so that the accuracy of segmenting and obtaining the character sub-blocks and the accuracy of recognizing the characters in the same image are improved; meanwhile, an image of the contract to be verified is obtained through an anti-counterfeiting verification module, wherein the image of the contract to be verified comprises: two-dimensional codes, contract texts, watermarks and invisible codes; identifying the two-dimensional code to obtain a contract number of the contract to be verified; acquiring a pre-stored text, a pre-stored watermark text and a pre-stored invisible code text according to the contract number; performing image processing on the image of the contract to be verified to obtain watermark information, text information and invisible code information; and obtaining a contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information and the invisible code information. Namely: the contract number is identified through the two-dimensional code, the pre-stored contract data is called in the server according to the number, the contract data obtained through image processing are compared to obtain a contract verification result, information such as a website of a verification website and the contract number does not need to be input by a client, manual comparison is not needed, contract verification can be automatically achieved only by inputting an image of a contract to be verified, the operation is simple, time and labor are saved, the workload of the client for verifying the contract is reduced, the verification accuracy is improved, the reliability is high, financial risks can be effectively prevented, and the safety of a trade contract is guaranteed.
Drawings
Fig. 1 is a flowchart of a scanning method for preventing confusion of international trade contracts according to an embodiment of the present invention.
Fig. 2 is a block diagram of a small portable scanning device for preventing the international trade contract from being mistakenly jumped according to an embodiment of the present invention.
Fig. 3 is a flowchart of a text recognition method according to an embodiment of the present invention.
Fig. 4 is a flowchart of a method for analyzing inter-matrix-row textural features of a contract image to obtain text matrix parameters of the contract image according to the embodiment of the present invention.
Fig. 5 is a flowchart of an anti-counterfeit verification method according to an embodiment of the present invention.
In fig. 2: 1. a power supply module; 2. a contract image acquisition module; 3. a main control module; 4. a character recognition module; 5. contract text comparison module; 6. a disorder labeling module; 7. an error correction module; 8. an anti-counterfeiting verification module; 9. and a display module.
Detailed Description
In order to further understand the contents, features and effects of the present invention, the following embodiments are illustrated and described in detail with reference to the accompanying drawings.
The structure of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the method for scanning an international trade contract for preventing confusion provided by the embodiment of the present invention includes the following steps:
s101, a power supply module supplies power to a small portable mistake and disorder prevention international trade contract scanning device through a lithium battery; the contract image acquisition module acquires an international trade contract image through a camera;
s102, the main control module controls the character recognition module through the main controller to recognize contract image characters by using a recognition program; the contract text comparison module compares the recognized image characters with the contract text through a comparison program;
s103, labeling the contrast disorder by a disorder labeling module through a labeling program; the error correction module corrects the same and disordered characters through an error correction program;
s104, the anti-counterfeiting verification module verifies the contract text through an anti-counterfeiting verification program; the display module displays the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through the display.
As shown in fig. 2, the small portable scanning device for preventing the international trade contract from being mistakenly jumped according to the embodiment of the present invention includes: the system comprises a power module 1, a contract image acquisition module 2, a main control module 3, a character recognition module 4, a contract text comparison module 5, a disorder marking module 6, an error correction module 7, an anti-counterfeiting verification module 8 and a display module 9.
The power supply module 1 is connected with the main control module 3 and used for supplying power to the small portable mistake and disorder prevention international trade contract scanning device through a lithium battery;
the contract image acquisition module 2 is connected with the main control module 3 and is used for acquiring an international trade contract image through a camera;
the main control module 3 is connected with the power supply module 1, the contract image acquisition module 2, the character recognition module 4, the contract text comparison module 5, the disorder marking module 6, the error correction module 7, the anti-counterfeiting verification module 8 and the display module 9 and is used for controlling each module to normally work through the main controller;
the character recognition module 4 is connected with the main control module 3 and used for recognizing contract image characters through a recognition program;
the contract text comparison module 5 is connected with the main control module 3 and is used for comparing the recognized image characters with the contract text through a comparison program;
the disorder marking module 6 is connected with the main control module 3 and is used for marking the comparative disorder through a marking program;
the error correction module 7 is connected with the main control module 3 and is used for correcting the same and disordered characters through an error correction program;
the anti-counterfeiting verification module 8 is connected with the main control module 3 and used for verifying the contract text through an anti-counterfeiting verification program;
and the display module 9 is connected with the main control module 3 and used for displaying the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through a display.
The technical solution of the present invention is further illustrated by the following specific examples.
Example 1
Fig. 1 shows a scanning method for preventing a mistake in a messy international trade contract according to an embodiment of the present invention, and fig. 3 shows a preferred embodiment of the scanning method for preventing a mistake in a messy international trade contract according to an embodiment of the present invention, where:
s201, receiving a contract image; rectifying the contract image; enhancing the contract image by an image enhancement program;
s202, performing binarization processing on the contract image to obtain a matrix corresponding to the contract image; analyzing the texture characteristics between matrix lines of the contract image to obtain the character matrix parameters of the contract image;
s203, segmenting the contract image based on the character matrix parameters to obtain character sub-blocks of the contract image; and carrying out contract image segmentation on the character sub-blocks to obtain character information in the character sub-blocks, and identifying the character information.
The step of analyzing the texture features between the matrix lines of the contract image and obtaining the text matrix parameters of the contract image provided by the embodiment of the invention also comprises the following steps:
selecting a plurality of pairs of matching points in the contract image and a preset reference contract image by using a contract image registration function in a matrix laboratory, and performing registration processing on the contract image according to the plurality of pairs of matching points to obtain contract image registration parameters;
and carrying out transformation processing on any coordinate value in a matrix corresponding to the contract image based on the contract image registration parameter to obtain a transformed contract image matrix coordinate.
In step S202, as shown in fig. 4, analyzing the texture features between the matrix rows of the contract image and acquiring the text matrix parameters of the contract image according to the embodiment of the present invention includes:
s301, representing the font in the matrix coordinate of the contract image by a first pixel value and representing the background by a second pixel value, and counting the number of the second pixel values of each row in the matrix coordinate of the contract image to obtain an array;
s302, acquiring the row number of the row of which the numerical value is greater than a preset reference value in the array, taking the row number distance between row combinations meeting preset conditions in the row of which the numerical value is greater than the preset reference value in the array as a row width parameter, counting a plurality of row width parameters in the array, averaging the plurality of row width parameters, and acquiring the row width parameter of the array; and acquiring a column width parameter of the array according to the acquired row width parameter of the array, and acquiring a font size parameter of the array according to the row width parameter and the column width parameter.
In step S302, the step of using the row number distance between row combinations meeting the preset condition in the rows with numerical values greater than the preset reference value in the array as a row width parameter provided in the embodiment of the present invention specifically includes:
and taking the row number distance between the row combination which is greater than the preset reference value at least twice continuously in the array and the next row combination which is greater than the preset reference value at least twice continuously as a row width parameter.
In step S203, the step of performing image segmentation on the text subblock to obtain text information in the text subblock and identifying the text information provided by the embodiment of the present invention specifically includes:
and performing contract image segmentation processing on the segmented character sub-blocks based on a preset clustering algorithm to obtain character information in the character sub-blocks, comparing the character information in a preset system character library according to the character information, and identifying characters in the same image according to a comparison result.
Example 2
The scanning method for preventing the confusion of the international trade contract provided by the embodiment of the invention is shown in fig. 1, as a preferred embodiment, as shown in fig. 5, the anti-counterfeiting verification method provided by the embodiment of the invention is as follows:
s401, acquiring a contract image to be segmented; inputting the contract image to be segmented into a preset contract image segmentation network for contract image segmentation processing to obtain a target segmentation result of the contract image to be segmented; according to the target segmentation result, a contract image aiming at the main body area of the target object is segmented from the contract image to be segmented;
s402, acquiring an image of the contract to be verified, wherein the image of the contract to be verified comprises: two-dimensional codes, contract texts, watermarks and invisible codes; identifying the two-dimensional code to obtain a contract number of the contract to be verified; acquiring a pre-stored text, a pre-stored watermark text and a pre-stored invisible code text according to the contract number; performing image processing on the image of the contract to be verified to obtain watermark information, text information and invisible code information;
and S403, obtaining a contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information and the invisible code information.
In step S301, the contract image segmentation network provided by the embodiment of the present invention is obtained based on the body loss and edge loss training of the contract image of the training sample; the main body loss is the loss between the segmentation labeling result and the segmentation prediction result of the training sample contract image aiming at the main body region of the target object, and the edge loss is the loss between the segmentation labeling result and the segmentation prediction result of the training sample contract image aiming at the edge region of the target object;
the obtaining of the contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information, and the invisible code information provided by the embodiment of the present invention includes:
obtaining a hidden code matching result according to the hidden code information and the hidden code text; obtaining a watermark matching result according to the watermark information and the watermark text; obtaining a text matching result according to the text information and the contract text; and obtaining a contract verification result according to the invisible code matching result, the watermark matching result and the text matching result.
The method for verifying the anti-counterfeiting contract provided by the embodiment of the invention further comprises the following steps:
judging whether the text matching result is true;
if yes, acquiring service key information stored in the host according to the contract number;
obtaining a host information matching result according to the service key information and the service key information in the text;
and obtaining a final verification result according to the host information matching result and the contract verification result.
The image of the contract to be verified provided by the embodiment of the invention also comprises: the seal, the image processing to the image of the contract to be verified to obtain the watermark information, the text information and the invisible code information, includes:
eliminating the seal in the image of the contract to be verified to obtain a seal-removed image; eliminating the text in the stamp-removed image to obtain a watermark image; identifying the watermark image based on an OCR (optical character recognition) technology to obtain the watermark information; eliminating the watermark in the stamp-removed image to obtain a text image;
recognizing the text image based on an OCR recognition technology to obtain the text information; and identifying the image of the contract to be verified based on an OCR (optical character recognition) technology to obtain the invisible code information.
The technical solution of the present invention is further explained below with reference to the working principle.
When the portable mistake and disorder prevention international trade contract scanning device works, firstly, a lithium battery is used for supplying power to the small portable mistake and disorder prevention international trade contract scanning device through the power module 1; acquiring an international trade contract image by using a camera through a contract image acquisition module 2; secondly, the main control module 3 identifies contract image characters by using an identification program through a character identification module 4; comparing the recognized image characters with the contract text by using a contract text comparison module 5 through a comparison program; labeling the contrast disorder by using a labeling program through a disorder labeling module 6; the error correction module 7 utilizes an error correction program to correct the contract disordered words; then, the contract text is verified by an anti-counterfeiting verification program through an anti-counterfeiting verification module 8; and finally, the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information are displayed by a display module 9 through a display.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, can be implemented in a computer program product that includes one or more computer instructions. When loaded or executed on a computer, cause the flow or functions according to embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.)). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications, equivalent changes and modifications made to the above embodiment according to the technical spirit of the present invention are within the scope of the technical solution of the present invention.

Claims (10)

1. A mistake-proofing and disorder-proofing international trade contract scanning method is characterized by comprising the following steps:
the method comprises the following steps that firstly, a power supply module supplies power to a small portable mistake and disorder prevention international trade contract scanning device through a lithium battery; the contract image acquisition module acquires an international trade contract image through a camera;
step two, the main control module controls the character recognition module through the main controller to receive the acquired international trade contract images by using a recognition program; rectifying the contract image; enhancing the contract image by an image enhancement program;
performing binarization processing on the contract image to obtain a matrix corresponding to the contract image; representing the font in the matrix coordinate of the contract image by using a first pixel value and representing the background by using a second pixel value, and counting the number of the second pixel values of each row in the matrix coordinate of the contract image to obtain an array;
step four, acquiring the row number of the row with the numerical value larger than the preset reference value in the array, and taking the row number distance between the row combinations which meet the preset condition in the row with the numerical value larger than the preset reference value in the array as a row width parameter;
counting a plurality of line width parameters in the array, averaging the plurality of line width parameters, and acquiring the line width parameters of the array;
step six, acquiring a column width parameter of the array according to the acquired row width parameter of the array, and acquiring a font size parameter of the array according to the row width parameter and the column width parameter to obtain a character matrix parameter;
step seven, segmenting the contract image based on the character matrix parameters in the step six to obtain character sub-blocks of the contract image; contract image segmentation is carried out on the character sub-blocks to obtain character information in the character sub-blocks, and the character information is identified;
step eight, the contract text comparison module compares the image characters identified in the step four with the contract text through a comparison program; the disorder marking module marks the contrast disorder through a marking program; the error correction module corrects the same and disordered characters through an error correction program;
step nine, the anti-counterfeiting verification module obtains a contract image to be segmented through an anti-counterfeiting verification program; inputting the contract image to be segmented into a preset contract image segmentation network obtained by training based on the main body loss and the edge loss of the contract image of the training sample to perform contract image segmentation processing, so as to obtain a target segmentation result of the contract image to be segmented;
step ten, segmenting a contract image aiming at the main body area of the target object from the contract image to be segmented according to the target segmentation result; acquiring an image of a contract to be verified, which comprises a two-dimensional code, a contract text, a watermark and a invisible code;
step eleven, identifying the two-dimensional code to obtain a contract number of the contract to be verified; acquiring a pre-stored text, a pre-stored watermark text and a pre-stored invisible code text according to the contract number; performing image processing on the image of the contract to be verified to obtain watermark information, text information and invisible code information;
step twelve, obtaining a contract verification result according to the body text, the watermark text, the invisible code text, the body information, the watermark information and the invisible code information; the display module displays the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through the display.
2. The method for error resilient international trade contract scanning as recited in claim 1, further comprising, before said step three:
selecting a plurality of pairs of matching points in the contract image and a preset reference contract image by using a contract image registration function in a matrix laboratory, and performing registration processing on the contract image according to the plurality of pairs of matching points to obtain contract image registration parameters;
and carrying out transformation processing on any coordinate value in a matrix corresponding to the contract image based on the contract image registration parameter to obtain a transformed contract image matrix coordinate.
3. The method according to claim 1, wherein in the fourth step, the step of using the row number distance between row combinations meeting the preset condition in rows with values greater than the preset reference value in the array as a row width parameter specifically comprises:
and taking the row number distance between the row combination which is greater than the preset reference value at least twice continuously in the array and the next row combination which is greater than the preset reference value at least twice continuously as a row width parameter.
4. The method according to claim 1, wherein in step seven, the step of performing image segmentation on the text sub-block to obtain text information in the text sub-block and identifying the text information specifically comprises:
and performing contract image segmentation processing on the segmented character sub-blocks based on a preset clustering algorithm to obtain character information in the character sub-blocks, comparing the character information in a preset system character library according to the character information, and identifying characters in the same image according to a comparison result.
5. The method of unscrambling international trade contract scanning of claim 1, wherein said eleventh step further comprises:
judging whether the text matching result is true;
if yes, acquiring service key information stored in the host according to the contract number; obtaining a host information matching result according to the service key information and the service key information in the text; and obtaining a final verification result according to the host information matching result and the contract verification result.
6. The method as claimed in claim 1, wherein in step twelve, the obtaining a contract verification result according to the body text, the watermark text, the cryptogram text, the body information, the watermark information, and the cryptogram information includes:
3.1) obtaining a hidden code matching result according to the hidden code information and the hidden code text; obtaining a watermark matching result according to the watermark information and the watermark text; obtaining a text matching result according to the text information and the contract text;
and 3.2) obtaining a contract verification result according to the invisible code matching result, the watermark matching result and the text matching result.
7. The method for scanning mistake proofing international trade contracts according to claim 1, wherein the image of the contract to be verified further comprises: the seal, the image processing to the image of the contract to be verified to obtain the watermark information, the text information and the invisible code information, includes:
eliminating the seal in the image of the contract to be verified to obtain a seal-removed image; eliminating the text in the stamp-removed image to obtain a watermark image; identifying the watermark image based on an OCR (optical character recognition) technology to obtain the watermark information; eliminating the watermark in the stamp-removed image to obtain a text image;
recognizing the text image based on an OCR recognition technology to obtain the text information; and identifying the image of the contract to be verified based on an OCR (optical character recognition) technology to obtain the invisible code information.
8. A small portable mistake-proofing international trade contract scanning apparatus for implementing a mistake-proofing international trade contract scanning method according to claims 1-7, wherein the small portable mistake-proofing international trade contract scanning apparatus comprises:
the system comprises a power supply module, a contract image acquisition module, a main control module, a character recognition module, a contract text comparison module, a disorder labeling module, an error correction module, an anti-counterfeiting verification module and a display module;
the power supply module is connected with the main control module and used for supplying power to the small portable mistake and disorder prevention international trade contract scanning device through the lithium battery;
the contract image acquisition module is connected with the main control module and is used for acquiring an international trade contract image through the camera;
the main control module is connected with the power supply module, the contract image acquisition module, the character recognition module, the contract text comparison module, the disorder marking module, the error correction module, the anti-counterfeiting verification module and the display module and is used for controlling the normal work of each module through the main controller;
the character recognition module is connected with the main control module and used for recognizing contract image characters through a recognition program;
the contract text comparison module is connected with the main control module and is used for comparing the recognized image characters with the contract text through a comparison program;
the disorder marking module is connected with the main control module and is used for marking the comparative disorder through a marking program;
the error correction module is connected with the main control module and is used for correcting the same and disordered characters through an error correction program;
the anti-counterfeiting verification module is connected with the main control module and used for verifying the contract text through an anti-counterfeiting verification program;
and the display module is connected with the main control module and used for displaying the acquired contract image, the identification result, the comparison result, the labeling information and the anti-counterfeiting verification information through the display.
9. A computer program product stored on a computer readable medium, comprising a computer readable program for providing a user input interface to implement the method for error resilient international trade contract scanning according to any one of claims 1-7 when executed on an electronic device.
10. A computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method for unscrambling international trade contract scanning according to any one of claims 1-7.
CN202010850020.3A 2020-08-21 2020-08-21 Small-sized portable mistake and disorder prevention international trade contract scanning device and method Pending CN112001819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010850020.3A CN112001819A (en) 2020-08-21 2020-08-21 Small-sized portable mistake and disorder prevention international trade contract scanning device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010850020.3A CN112001819A (en) 2020-08-21 2020-08-21 Small-sized portable mistake and disorder prevention international trade contract scanning device and method

Publications (1)

Publication Number Publication Date
CN112001819A true CN112001819A (en) 2020-11-27

Family

ID=73473652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010850020.3A Pending CN112001819A (en) 2020-08-21 2020-08-21 Small-sized portable mistake and disorder prevention international trade contract scanning device and method

Country Status (1)

Country Link
CN (1) CN112001819A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114998922A (en) * 2022-07-29 2022-09-02 成都薯片科技有限公司 Electronic contract generation method based on format template

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060007204A (en) * 2004-07-19 2006-01-24 한국과학기술원 Document image processing and verification system for digitalizing a large volume of data and method thereof
CN105631486A (en) * 2014-10-27 2016-06-01 深圳Tcl数字技术有限公司 Method and device for recognizing images and characters
CN109614971A (en) * 2018-12-05 2019-04-12 山东政法学院 A kind of comparison type document check meter
CN109840519A (en) * 2019-01-25 2019-06-04 青岛盈智科技有限公司 A kind of adaptive intelligent form recognition input device and its application method
CN110264223A (en) * 2019-06-19 2019-09-20 中国工商银行股份有限公司 Verification method, generation method and the relevant apparatus of anti-fake contract

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060007204A (en) * 2004-07-19 2006-01-24 한국과학기술원 Document image processing and verification system for digitalizing a large volume of data and method thereof
CN105631486A (en) * 2014-10-27 2016-06-01 深圳Tcl数字技术有限公司 Method and device for recognizing images and characters
CN109614971A (en) * 2018-12-05 2019-04-12 山东政法学院 A kind of comparison type document check meter
CN109840519A (en) * 2019-01-25 2019-06-04 青岛盈智科技有限公司 A kind of adaptive intelligent form recognition input device and its application method
CN110264223A (en) * 2019-06-19 2019-09-20 中国工商银行股份有限公司 Verification method, generation method and the relevant apparatus of anti-fake contract

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114998922A (en) * 2022-07-29 2022-09-02 成都薯片科技有限公司 Electronic contract generation method based on format template
CN114998922B (en) * 2022-07-29 2022-11-04 成都薯片科技有限公司 Electronic contract generating method based on format template

Similar Documents

Publication Publication Date Title
CN107798299B (en) Bill information identification method, electronic device and readable storage medium
JP4676225B2 (en) Method and apparatus for capturing electronic forms from scanned documents
JP6528147B2 (en) Accounting data entry support system, method and program
CN110942074B (en) Character segmentation recognition method and device, electronic equipment and storage medium
CN110705952A (en) Contract auditing method and device
CN112102402B (en) Flash light spot position identification method and device, electronic equipment and storage medium
US20160379186A1 (en) Element level confidence scoring of elements of a payment instrument for exceptions processing
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN113569863B (en) Document checking method, system, electronic equipment and storage medium
WO2021159802A1 (en) Graphical captcha recognition method, apparatus, computer device, and storage medium
CN111611988A (en) Picture verification code identification method and device, electronic equipment and computer readable medium
CN112966583A (en) Image processing method, image processing device, computer equipment and storage medium
US11727701B2 (en) Techniques to determine document recognition errors
CN104915668A (en) Character information identification method for medical image and device thereof
CN110867243B (en) Image annotation method, device, computer system and readable storage medium
CN105551044A (en) Picture comparing method and device
CN112001819A (en) Small-sized portable mistake and disorder prevention international trade contract scanning device and method
WO2022103564A1 (en) Fraud detection via automated handwriting clustering
CN112581344A (en) Image processing method and device, computer equipment and storage medium
CN110992139B (en) Bidding price realizing method and related product
CN117133006A (en) Document verification method and device, computer equipment and storage medium
CN113449732A (en) Information processing apparatus, image reading apparatus, recording medium, and information processing method
CN109598683A (en) Image display method, apparatus and computer readable storage medium
JP2017111500A (en) Character recognizing apparatus, and program
CN114049686A (en) Signature recognition model training method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201127

RJ01 Rejection of invention patent application after publication