CN113420741B - Method and system for intelligently detecting file modification - Google Patents

Method and system for intelligently detecting file modification Download PDF

Info

Publication number
CN113420741B
CN113420741B CN202110972390.9A CN202110972390A CN113420741B CN 113420741 B CN113420741 B CN 113420741B CN 202110972390 A CN202110972390 A CN 202110972390A CN 113420741 B CN113420741 B CN 113420741B
Authority
CN
China
Prior art keywords
file
detected
processing module
central processing
modification
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.)
Active
Application number
CN202110972390.9A
Other languages
Chinese (zh)
Other versions
CN113420741A (en
Inventor
金树柏
罗玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dcs Technology Co ltd
Original Assignee
Shenzhen Dcs Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dcs Technology Co ltd filed Critical Shenzhen Dcs Technology Co ltd
Priority to CN202110972390.9A priority Critical patent/CN113420741B/en
Publication of CN113420741A publication Critical patent/CN113420741A/en
Application granted granted Critical
Publication of CN113420741B publication Critical patent/CN113420741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Abstract

The invention relates to a method and a system for intelligently detecting file modification, comprising a step S1 that a central processing module obtains an image gray value at the last editing position through an image processing module; step S2, the central processing module judges whether the file to be detected is modified; step S3, the central processing module detects the modification position of the file to be detected; step S4, the central processing module establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file self-learning model to the correction module, and the correction module corrects the file to be detected and the original file according to the file modification position in the file modification self-learning model; and step S5, the comparison module compares the modified position information sent by the correction module with the position information recorded by the central processing module, and if the comparison is consistent, the central processing module outputs and displays the modified position information. The invention accurately determines the file modification position by arranging the central processing module.

Description

Method and system for intelligently detecting file modification
Technical Field
The invention relates to the field of detecting file modification, in particular to a method for intelligently detecting file modification.
Background
With the development of internet technology, computers are becoming more popular, and more important files are stored in personal computers or enterprise computers and servers, especially in the processing of documents, documents are used as the most common way in current office systems, and when a large number of documents with the same content are used for a long time, the modification positions of different documents with the same content cannot be accurately obtained, even when two similar documents are compared, the modification content cannot be determined.
Disclosure of Invention
Therefore, the invention provides a method for intelligently detecting file modification, which can solve the technical problem that the modification position cannot be further corrected by establishing a file modification self-learning model through the obtained modification position so as to accurately obtain the document modification position.
In order to achieve the above object, the present invention provides a method for intelligently detecting file modification, comprising:
step S1, the central processing module acquires information of the last editing position of the file and sends the information of the last editing position to the image processing module, the image processing module converts the information of the last editing position into an image of the last editing position, and the central processing module acquires the gray value of the image of the last editing position;
step S2, the central processing module compares the image gray scale change value at the last editing position of the file to be detected with a preset value, and judges whether the file to be detected is modified;
step S3, after the central processing module judges that the file to be detected is modified, the central processing module takes the initial point of the file as the starting point and takes the preset number of characters as the detection unit to detect the modification position of the file to be detected;
step S4, the central processing module establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file self-learning model to a correction module, and the correction module corrects the file to be detected and the original file according to the modification position of the file in the file modification self-learning model;
step S5, the correction module sends the corrected position information to the comparison module, the comparison module compares the modified position information sent by the correction module with the position information recorded by the central processing module, if the comparison is consistent, the central processing module outputs and displays the modified position information;
the central processing module acquires an image gray change value at the last editing position of the file to be detected according to the acquired image gray value at the last editing position of the file to be detected and the image gray value at the last editing position of the original file, if the image gray change value at the last editing position of the file to be detected is smaller than a preset value, the central processing module judges that the file to be detected is not modified, and when the central processing module acquires that the image gray value of the last editing position of the file to be detected is larger than the preset value compared with the change value of the image gray value of the last editing position of the original file, the central processing module judges that the file to be detected is modified;
when the central processing module judges that the file to be detected is modified, the central processing module detects the similarity between the file to be detected and the original file by establishing a planar rectangular coordinate system and applying the planar rectangular coordinate system to the file to be detected and the original file by taking a first preset character number as a first detection unit, when the similarity between the file to be detected and the original file is greater than a preset value, the central processing module judges that no modification is generated in the current detection unit, the central processing module detects the similarity between the file content in a next detection unit, when the similarity between the file to be detected and the original file is less than the preset value, the central processing module judges that modification is generated in the current detection unit, and when the central processing module judges that modification is generated in the current detection unit, the central processing module compares the file to be detected and the character to be detected of the original file by taking a single character number as a second detection unit, if the characters at the same position are different, the central processing module acquires the position as a modification position of the file to be detected, establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module;
the correction module corrects the modification position of the file to be detected according to the file modification self-learning model, when the correction module compares the acquired file to be detected with the original file to the characters at the modification position, if the characters at the modification position of the file to be detected are different from the characters at the modification position of the original file, the correction module sends the modification position to the comparison module, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module acquires the content to be corrected of the file to be detected and the original file by using a second preset character number set by the central processing module as a first correction unit, and if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset value, the correction module detects the characters in the content to be corrected of the file to be detected by using a single character number as a second correction unit, when the characters to be corrected of the file to be detected are different from the characters to be corrected of the original file, the positions of the characters to be corrected are modification positions of the file to be detected, the correction module feeds the modification positions back to the comparison unit, if the similarity of the file contents of the file to be detected and the original file at the modified positions after revision is larger than a preset value, the correction module judges that the detection of the current content to be corrected is wrong, the correction module sends the message to the central processing module, the central processing module adjusts the first preset character number, redetects the detection position where the modification position is located according to the adjusted first preset character number, updates the detected result to a file modification self-learning model, and repeats the steps S4 and S5 until the modification position recorded by the comparison module is consistent with the modification position recorded in the central processing module.
Furthermore, the central processing module presets a gray value change standard value HB0, the central processing module obtains an image gray value HD at the last editing position of the file to be detected and an image gray value HY at the last editing position of the original file, the central processing module obtains an image gray value HDB at the last editing position of the file to be detected and sets HDB = | HD-HY |/HY, the central processing module judges whether the file to be detected is modified or not according to the comparison of the obtained image gray value HDB at the last editing position of the file to be detected and the preset gray value change standard value HB0, wherein,
when the HDB is not more than HB0, the central processing module judges that the file to be detected is not modified;
when the HDB is greater than HB0, the central processing module judges that the file to be detected is modified.
Furthermore, the central processing module presets a similarity standard value S0, the central processing module uses a first preset number of characters a0 as a first detection unit, when the central processing module determines that the file to be detected is modified, the central processing module uses the initial position of the file as an origin, the character input direction as an X-axis, the direction perpendicular to the X-axis as a Y-axis, the length of a single character as an X-axis unit, the space between file rows as a Y-axis unit, establishes a rectangular plane coordinate system, and applies the rectangular plane coordinate system to the file to be detected and the original file, the central processing module uses the initial position of the file as the origin, uses the first preset number of characters a0 as a first detection unit, and divides the file to be detected into a plurality of detection units by using the origin as a starting point, including a first detection position, The central processing module obtains the similarity Si between the file content of the file to be detected in the ith detection position and the file content of the original file, wherein,
when Si is larger than or equal to S0, the central processing module judges that the ith detection position of the file to be detected is not modified, and the central processing module detects the next detection position of the file to be detected;
when Si is less than S0, the central processing module judges that the ith detection position of the file to be detected is modified, the central processing module sets the ith detection position as the modification position range of the file to be detected, and the modification position range is (xi1, yi1) - (xi2, yi2);
wherein the first detecting position ranges from (X11, Y11) - (X12, Y12), wherein X11 is the first detecting position first position X-axis coordinate, Y11 is the first detecting position first position Y-axis coordinate, X12 is the first detecting position second position X-axis coordinate, Y12 is the first detecting position second position Y-axis coordinate, the second detecting position ranges from (X21, Y21) - (X22, Y22), wherein X21 is the second detecting position first position X-axis coordinate, Y21 is the second detecting position first position Y-axis coordinate, X12 is the second detecting position second position X-axis coordinate, Y22 is the second detecting position second position Y-axis coordinate, and the nth detecting position ranges from (xn1, yn1) - (xn2, 2), wherein xn1 is the nth detecting position first position X-axis coordinate, 829 1 is the first detecting position Y-axis coordinate, xn2 second detection position second position X axis coordinate, yn2 is nth detection position second position Y axis coordinate, wherein i =1,2 to n, n is a natural number greater than or equal to 3.
Further, when the central processing module obtains the modification position range of the file to be detected, the central processing module detects the modification position of the file to be detected by using a single character number as the ith detection unit, wherein when the character at the alpha-th character position in the modification position range of the file to be detected is the same as the character at the position in the original file, the central processing module does not record the position information, and when the character at the alpha-th character position in the modification position range of the file to be detected is different from the character at the position in the original file, the central processing module marks the position as the modification position Pia and sets Pia (xia, yia), wherein a =1, 2-a 0.
Further, the central processing module sets a second preset number of characters B0 and a standard value of similarity of contents of the file to be corrected SJ0, if the characters at the modified position of the file to be detected are the same as the characters at the modified position of the original file, the correcting module takes the second preset number of characters set by the central processing module as a first correcting unit to obtain the contents to be corrected of the file to be detected and the original file, the correcting module obtains the similarity of the contents to be corrected of the file to be detected and the contents to be corrected of the original file as SJ, wherein,
when SJ is more than or equal to SJ0, the correction module judges that the current content to be corrected has a detection error, and the correction module sends the message to the central processing module;
when SJ is less than SJ0, the correction module judges that an error occurs in the modification position of the current content to be corrected, the correction module compares the characters to be detected in the range of the position to be corrected of the file to be detected with the characters at the position of the original file by using a single character as a second correction unit, and the correction module acquires the positions of the characters which are not identical in comparison and sends the positions to the comparison module.
Furthermore, the central processing module presets a similarity R of the content of the file to be corrected, acquires the error detection information of the current content to be corrected fed back by the correction module, and adjusts the first preset number of characters according to the similarity SJ of the content to be corrected of the file to be corrected acquired by the correction module and the content to be corrected of the original file, wherein,
when SJ is less than or equal to R1, the central processing module reduces the first preset character number A0 to A01;
when R1 is more than SJ and less than R2, the central processing module does not adjust the first preset number of characters;
when SJ is more than or equal to R2, the central processing module increases the first preset character number A0 to A02;
the central processing module presets a similarity R of the contents of the files to be corrected, and sets a similarity R1 of the contents of the first preset files to be corrected and a similarity R2 of the contents of the second preset files to be corrected.
Further, when the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file, which is acquired by the central processing module, is less than or equal to the similarity of the content of a first preset file to be corrected, the central processing module reduces the first preset number of characters a0 to a01, and sets AO1= AO × (1- (R1-SJ)/R1).
Further, when the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file, which is acquired by the central processing module, is greater than or equal to the similarity of the content of a second preset file to be corrected, the central processing module increases the first preset number of characters a0 to a02, and sets AO2= AO × (1+ (SJ-R2)/R2).
Further, the central processing module sets a modification position adjusting parameter TJ, and the central processing module selects a corresponding modification position adjusting parameter TJr to adjust the modification position according to a comparison between a product of a ratio of the row spacing HJ1 of the file to be detected to the row spacing HJ2 of the original file and a ratio of the character spacing ZF1 of the file to be detected to the character spacing ZF2 of the original file and a preset ratio H of the central processing module, wherein the adjusted modification position is Pia ', and Pia' (xia ', yia') is set, wherein xia '= xia × TJr, yia' = yia × TJr, wherein r =1,2,3,
when the HJ1/HJ2 XZF 1/ZF2 is not more than H1, the central processing module selects a first preset modified position adjusting parameter TJ1 as a modified position adjusting parameter;
when H1 is more than HJ1/HJ2 multiplied by ZF1/ZF2 is more than H2, the central processing module selects a second preset modified position adjusting parameter TJ2 as a modified position adjusting parameter;
when the HJ1/HJ2 multiplied by ZF1/ZF2 is larger than or equal to H2, the central processing module selects a third preset modified position adjusting parameter TJ3 as a modified position adjusting parameter;
the central processing module is used for setting a modification position adjusting parameter TJ, setting a first preset modification position adjusting parameter TJ1, a second preset modification position adjusting parameter TJ2 and a second preset modification position adjusting parameter TJ3, and setting a line spacing ratio H, wherein the first preset ratio H1 and the second preset ratio H2 are provided.
Furthermore, the invention also provides a system for intelligently detecting file modification, which comprises,
the image processing module is used for converting the information of the last editing position of the file acquired by the central processing module into an image;
the correction module is used for correcting the accurate condition of the modification position of the file to be detected;
the comparison module is used for comparing the modification position sent by the correction module with the modification position obtained by the central processing module;
the central processing module is used for adjusting the work of each part.
Compared with the prior art, the method has the advantages that the central processing module is arranged to regulate and control the work of each part, the central processing module obtains the image gray change value at the last editing position of the file to be detected according to the obtained image gray value at the last editing position of the file to be detected and the obtained image gray value at the last editing position of the original file, if the image gray change value at the last editing position of the file to be detected is smaller than a preset value, the central processing module judges that the file to be detected is not modified, and when the central processing module obtains the change value of the last editing image gray value of the file to be detected, which is larger than the preset value, of the last editing image gray value of the original file, the central processing module judges that the file to be detected is modified; when the central processing module judges that the file to be detected is modified, the central processing module detects the similarity between the file to be detected and the original file by establishing a planar rectangular coordinate system and applying the planar rectangular coordinate system to the file to be detected and the original file by taking a first preset character number as a first detection unit, when the similarity between the file to be detected and the original file is greater than a preset value, the central processing module judges that no modification is generated in the current detection unit, the central processing module detects the similarity between the file content in a next detection unit, when the similarity between the file to be detected and the original file is less than the preset value, the central processing module judges that modification is generated in the current detection unit, and when the central processing module judges that modification is generated in the current detection unit, the central processing module compares the file to be detected and the character to be detected of the original file by taking a single character number as a second detection unit, if the characters at the same position are different, the central processing module acquires the position as a modification position of the file to be detected, establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module; the correction module corrects the modification position of the file to be detected according to the file modification self-learning model, when the correction module compares the acquired file to be detected with the original file to the characters at the modification position, if the characters at the modification position of the file to be detected are different from the characters at the modification position of the original file, the correction module sends the modification position to the comparison module, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module acquires the content to be corrected of the file to be detected and the original file by using a second preset character number set by the central processing module as a first correction unit, and if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset value, the correction module detects the characters in the content to be corrected of the file to be detected by using a single character number as a second correction unit, when the characters to be corrected of the file to be detected are different from the characters to be corrected of the original file, the positions of the characters to be corrected are modification positions of the file to be detected, the correction module feeds the modification positions back to the comparison unit, if the similarity of the file contents of the file to be detected and the original file at the modified positions after revision is greater than a preset value, the correction module judges that the current content to be corrected is detected wrongly, the correction module sends the message to the central processing module, the central processing module adjusts the first preset number of characters, and after the first preset number of characters is adjusted, the steps S3 to S4 are repeated until the modification positions recorded by the comparison module are consistent with the modification positions recorded in the central processing module.
In particular, the invention obtains the gray value of the image at the last editing position of the file to be detected and the gray value of the image at the last editing position of the original file respectively, obtains the gray value change value of the image at the last editing position of the file to be detected, the central processing module judges whether the file to be detected is modified according to the change condition of the gray value of the image at the last editing position of the file to be detected, sets the gray value change standard value through the central processing module, when the change value of the gray value of the image at the last editing position of the file to be detected is less than or equal to the preset standard value, the state difference between the last editing position of the file to be detected and the last editing position of the original file is not large, the central processing module judges that the file to be detected is not modified, if the change value of the gray value of the image at the last editing position of the file to be detected is greater than the preset standard value, the last editing position of the file to be detected and the original file have large difference, and the central processing module judges that the file to be detected is modified.
In particular, the invention applies the same plane rectangular coordinate system to the file to be detected and the original file, sequentially detects the file to be detected and the content of the original file by using a first preset character number as a first detection unit, the central processing module compares the similarity between the file content of the file to be detected at the current detection position and the content of the original file with a preset similarity standard value, when the similarity between the file content of the file to be detected at the current detection position and the content of the original file is more than or equal to the preset similarity standard value, the file to be detected at the current position range is similar to the original file, the central processing module judges that the current position range is not modified, if the similarity between the file content of the file to be detected at the current detection position and the content of the original file is less than the preset similarity standard value, the file to be detected at the current position range is not similar to the original file, and when the current position range is modified, the central processing module judges that the current position range is the modified position range, and records the current position range so as to further determine the modified position.
Particularly, after the modification position range is determined, the number of the single characters is used as the number of the second detection unit to detect the single characters in the modification position range, if the characters of the file to be detected and the original file are the same at the same position, the position is not recorded, and if the characters of the file to be detected and the original file are different at the same position, the position is the modification position of the file to be detected. The central processing module records the acquired modification position of the file to be detected and generates a file modification self-learning model, the central processing module sends the model to the correction module, and the correction module corrects the modification position so as to accurately acquire the modification position.
Particularly, the central processing module sets a second preset number of characters, the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is obtained through the correction module, if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset standard value of the similarity of the content to be corrected of the file to be detected, it is indicated that modification traces do exist in the range of the current position to be corrected, but the modification traces are not the modification positions recorded in the self-learning model, therefore, the correction module compares each character in the position to be corrected with a single character as a second correction unit, accurately obtains the modification positions, corrects the modification positions and sends the modification positions to the comparison module, if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is larger than or equal to the preset standard value of the similarity of the content to be corrected of the file to be corrected, it is indicated that the file to be detected and the original file are similar, further, it is stated that the document to be detected in the position range to be corrected is not modified, which indicates that the central processing module should perform re-detection on the detected position when an error occurs in the initial detection.
Particularly, the invention divides the similarity of the content of the file to be corrected into two standards, after the central processing module acquires the detection error information, the first preset character number is adjusted by comparing the acquired similarity of the content to be corrected of the file to be corrected and the content of the original file to be corrected with the similarity of the content of the preset file to be corrected, wherein when the similarity of the acquired content to be corrected of the file to be corrected and the content of the original file to be corrected is less than or equal to the similarity of the content of the first preset file to be corrected, the file to be corrected at the current position to be corrected is different from the original file and is modified more, so the first preset character number needs to be reduced, the detection position is detected in a blocking way, the detection efficiency is accelerated, the detection accuracy is improved, the central processing module reduces the first preset character number by taking the difference of the similarities as a reference, if the similarity between the acquired content to be corrected of the file to be detected and the content to be corrected of the original file is greater than or equal to the similarity of the content of a second preset file to be corrected, it is described that the difference between the file to be detected and the original file at the current position is not large, and further it is described that the content of the file to be detected is not modified much, so that the central processing module increases the number of the first preset characters according to the increment of the similarity, so as to accelerate the detection efficiency.
Particularly, the invention adjusts the modification position according to the line spacing and the character spacing change of the file to be detected and the original file by setting the modification position adjusting parameter so as to obtain the accurate modification position, thereby avoiding errors and influencing the determination of the modification position.
Drawings
FIG. 1 is a schematic diagram of a method for intelligently detecting file modification according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system for intelligently detecting file modification according to an embodiment of the present invention.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and do not limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, a method for intelligently detecting file modification according to an embodiment of the present invention includes,
step S1, the central processing module acquires information of the last editing position of the file and sends the information of the last editing position to the image processing module, the image processing module converts the information of the last editing position into an image of the last editing position, and the central processing module acquires the gray value of the image of the last editing position;
step S2, the central processing module compares the image gray scale change value at the last editing position of the file to be detected with a preset value, and judges whether the file to be detected is modified;
step S3, after the central processing module judges that the file to be detected is modified, the central processing module takes the initial point of the file as the starting point and takes the preset number of characters as the detection unit to detect the modification position of the file to be detected;
step S4, the central processing module establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file self-learning model to a correction module, and the correction module corrects the file to be detected and the original file according to the modification position of the file in the file modification self-learning model;
step S5, the correction module sends the corrected position information to the comparison module, the comparison module compares the modified position information sent by the correction module with the position information recorded by the central processing module, if the comparison is consistent, the central processing module outputs and displays the modified position information;
the central processing module acquires an image gray change value at the last editing position of the file to be detected according to the acquired image gray value at the last editing position of the file to be detected and the image gray value at the last editing position of the original file, if the image gray change value at the last editing position of the file to be detected is smaller than a preset value, the central processing module judges that the file to be detected is not modified, and when the central processing module acquires that the image gray value of the last editing position of the file to be detected is larger than the preset value compared with the change value of the image gray value of the last editing position of the original file, the central processing module judges that the file to be detected is modified;
when the central processing module judges that the file to be detected is modified, the central processing module detects the similarity between the file to be detected and the original file by establishing a planar rectangular coordinate system and applying the planar rectangular coordinate system to the file to be detected and the original file by taking a first preset character number as a first detection unit, when the similarity between the file to be detected and the original file is greater than a preset value, the central processing module judges that no modification is generated in the current detection unit, the central processing module detects the similarity between the file content in a next detection unit, when the similarity between the file to be detected and the original file is less than the preset value, the central processing module judges that modification is generated in the current detection unit, and when the central processing module judges that modification is generated in the current detection unit, the central processing module compares the file to be detected and the character to be detected of the original file by taking a single character number as a second detection unit, if the characters at the same position are different, the central processing module acquires the position as a modification position of the file to be detected, establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module;
the correction module corrects the modification position of the file to be detected according to the file modification self-learning model, when the correction module compares the acquired file to be detected with the original file to the characters at the modification position, if the characters at the modification position of the file to be detected are different from the characters at the modification position of the original file, the correction module sends the modification position to the comparison module, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module acquires the content to be corrected of the file to be detected and the original file by using a second preset character number set by the central processing module as a first correction unit, and if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset value, the correction module detects the characters in the content to be corrected of the file to be detected by using a single character number as a second correction unit, when the characters to be corrected of the file to be detected are different from the characters to be corrected of the original file, the positions of the characters to be corrected are modification positions of the file to be detected, the correction module feeds the modification positions back to the comparison unit, if the similarity of the file contents of the file to be detected and the original file at the modified positions after revision is larger than a preset value, the correction module judges that the detection of the current content to be corrected is wrong, the correction module sends the message to the central processing module, the central processing module adjusts the first preset character number, redetects the detection position where the modification position is located according to the adjusted first preset character number, updates the detected result to a file modification self-learning model, and repeats the steps S4 and S5 until the modification position recorded by the comparison module is consistent with the modification position recorded in the central processing module.
Specifically, the method comprises the steps that a central processing module is arranged and used for regulating and controlling the work of each component, the central processing module obtains an image gray change value at the last editing position of the file to be detected according to the obtained image gray value at the last editing position of the file to be detected and the obtained image gray value at the last editing position of the original file, if the image gray change value at the last editing position of the file to be detected is smaller than a preset value, the central processing module judges that the file to be detected is not modified, and when the central processing module obtains the change value of the last editing image gray value of the file to be detected, which is larger than the preset value, of the last editing image gray value of the original file, the central processing module judges that the file to be detected is modified; when the central processing module judges that the file to be detected is modified, the central processing module detects the similarity between the file to be detected and the original file by establishing a planar rectangular coordinate system and applying the planar rectangular coordinate system to the file to be detected and the original file by taking a first preset character number as a first detection unit, when the similarity between the file to be detected and the original file is greater than a preset value, the central processing module judges that no modification is generated in the current detection unit, the central processing module detects the similarity between the file content in a next detection unit, when the similarity between the file to be detected and the original file is less than the preset value, the central processing module judges that modification is generated in the current detection unit, and when the central processing module judges that modification is generated in the current detection unit, the central processing module compares the file to be detected and the character to be detected of the original file by taking a single character number as a second detection unit, if the characters at the same position are different, the central processing module acquires the position as a modification position of the file to be detected, establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module; the correction module corrects the modification position of the file to be detected according to the file modification self-learning model, when the correction module compares the acquired file to be detected with the original file to the characters at the modification position, if the characters at the modification position of the file to be detected are different from the characters at the modification position of the original file, the correction module sends the modification position to the comparison module, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module acquires the content to be corrected of the file to be detected and the original file by using a second preset character number set by the central processing module as a first correction unit, and if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset value, the correction module detects the characters in the content to be corrected of the file to be detected by using a single character number as a second correction unit, when the characters to be corrected of the file to be detected are different from the characters to be corrected of the original file, the positions of the characters to be corrected are modification positions of the file to be detected, the correction module feeds the modification positions back to the comparison unit, if the similarity of the file contents of the file to be detected and the original file at the modified positions after revision is greater than a preset value, the correction module judges that the current content to be corrected is detected wrongly, the correction module sends the message to the central processing module, the central processing module adjusts the first preset number of characters, and after the first preset number of characters is adjusted, the steps S3 to S4 are repeated until the modification positions recorded by the comparison module are consistent with the modification positions recorded in the central processing module.
Specifically, in the embodiment of the present invention, a specific process of obtaining an image gray scale value of a last editing position of a file is that a central processing module sets a preset region, when the central processing module obtains the last editing position of the file to be detected or the original file, the preset region at the last editing position of the file to be detected or the original file is intercepted according to the preset region, and the region is sent to an image processing module, the image processing module converts the region into an image, and the central processing module obtains the image gray scale value.
Specifically, the method for intelligently detecting file modification according to the embodiment of the present invention further includes,
001, converting the information of the last editing position of the file to be detected and the information of the last editing position of the original file into a first image and a second image respectively by an image processing module, wherein the first image is the image of the last editing position of the file to be detected, and the second image is the image of the last editing position of the original file;
002, the central processing module acquires a first image and a second image gray value;
step 003, the central processing module acquires a gray level change value of the file to be detected according to the gray level values of the first image and the second image, and judges whether the file to be detected is modified;
004, when the central processing module judges that the file to be detected is modified, the central processing module takes the initial point of the file as a starting point, and takes the first preset character number as a first detection unit to analyze the file to be detected and the original file, and obtains the range of the modification position of the file to be detected;
005, the central processing module compares the single characters in the determined modification position range one by using the single character number as a second detection unit, if the characters to be detected in the modification position range of the file to be detected are different from the original file, the positions of the characters to be detected are the modification positions of the file to be detected, and so on, and the full text is detected and compared;
step 006, the central processing module establishes a file modification self-learning model according to the modification position information and sends the model to the correction module;
step 007, after receiving the file modification self-learning model, the correction module corrects the file to be detected by taking the original file as a comparison file, if the character at the modification position of the file to be detected is different from that of the original file, the position is sent to the comparison module, if the character at the modification position of the file to be detected is the same as that of the original file, the correction module expands the correction position, and according to the similarity of the expanded correction position file, whether the modification position is wrong or whether a first preset character preset by the central processing module is not matched with the detection unit is judged;
step 008, if the correction module judges that the error of the current correction position is caused by the correction position acquisition error, the correction module compares the correction position again by using a single character to acquire a correct correction position, and if the correction module judges that the error of the current correction position is that a first preset character number preset by the central processing module is not matched with the detection position, the correction module sends the information to the central processing module;
step 009, after the central processing module obtains the information that the first preset character number is not matched with the detection position, the central processing module adjusts the first preset character number, and the adjusted first preset character number performs replay detection on the detection position, updates the obtained modification position to the file modification self-learning model, and repeats the step 007 and the step 009;
and 010, when the modification position acquired by the comparison module is consistent with the modification position recorded by the central processing module, the central processing module outputs and displays the modification position information.
The central processing module is preset with a gray value change standard value HB0, the central processing module acquires an image gray value HD at the last editing position of the file to be detected and an image gray value HY at the last editing position of the original file, the central processing module acquires an image gray value change value HDB at the last editing position of the file to be detected and sets HDB = | HD-HY |/HY, the central processing module judges whether the file to be detected is modified or not according to the comparison of the acquired image gray value change value HDB at the last editing position of the file to be detected and the preset gray value change standard value HB0, wherein,
when the HDB is not more than HB0, the central processing module judges that the file to be detected is not modified;
when the HDB is greater than HB0, the central processing module judges that the file to be detected is modified.
Specifically, the invention obtains the gray value of the image at the last editing position of the file to be detected and the gray value of the image at the last editing position of the original file respectively, obtains the gray value change value of the image at the last editing position of the file to be detected, the central processing module judges whether the file to be detected is modified according to the change condition of the gray value of the image at the last editing position of the file to be detected, sets the gray value change standard value through the central processing module, when the change value of the gray value of the image at the last editing position of the file to be detected is less than or equal to the preset standard value, the state difference between the last editing position of the file to be detected and the last editing position of the original file is not large, the central processing module judges that the file to be detected is not modified, if the change value of the gray value of the image at the last editing position of the file to be detected is greater than the preset standard value, the last editing position of the file to be detected and the original file have large difference, and the central processing module judges that the file to be detected is modified.
The central processing module presets a similarity standard value S0, the central processing module uses a first preset character number A0 as a first detection unit, when the central processing module judges that a file to be detected is modified, the central processing module uses a file initial position as an original point, a character input direction as an X axis, a direction perpendicular to the X axis as a Y axis, a single character length as an X axis unit length, a file row spacing as a Y axis unit length, establishes a plane rectangular coordinate system, and applies the plane rectangular coordinate system to the file to be detected and the original file, the central processing module uses the file initial position as the original point, uses the first preset character number A0 as a first detection unit to detect the file content of the file to be detected, and the central processing module divides the file to be detected into a plurality of detection units by using the original point as the initial point, wherein the detection units comprise a first detection position, a second detection position and an nth detection position, the central processing module obtains the similarity Si between the file content of the file to be detected and the file content of the original file in the ith detection position, wherein,
when Si is larger than or equal to S0, the central processing module judges that the ith detection position of the file to be detected is not modified, and the central processing module detects the next detection position of the file to be detected;
when Si is less than S0, the central processing module judges that the ith detection position of the file to be detected is modified, the central processing module sets the ith detection position as the modification position range of the file to be detected, and the modification position range is (xi1, yi1) - (xi2, yi2);
wherein the first detecting position ranges from (X11, Y11) - (X12, Y12), wherein X11 is the first detecting position first position X-axis coordinate, Y11 is the first detecting position first position Y-axis coordinate, X12 is the first detecting position second position X-axis coordinate, Y12 is the first detecting position second position Y-axis coordinate, the second detecting position ranges from (X21, Y21) - (X22, Y22), wherein X21 is the second detecting position first position X-axis coordinate, Y21 is the second detecting position first position Y-axis coordinate, X12 is the second detecting position second position X-axis coordinate, Y22 is the second detecting position second position Y-axis coordinate, and the nth detecting position ranges from (xn1, yn1) - (xn2, 2), wherein xn1 is the nth detecting position first position X-axis coordinate, 829 1 is the first detecting position Y-axis coordinate, xn2 second detection position second position X axis coordinate, yn2 is nth detection position second position Y axis coordinate, wherein i =1,2 to n, n is a natural number greater than or equal to 3.
Specifically, the invention applies the same plane rectangular coordinate system to the file to be detected and the original file, sequentially detects the file to be detected and the content of the original file by using a first preset character number as a first detection unit, the central processing module compares the similarity between the file content of the file to be detected at the current detection position and the file content of the original file with a preset similarity standard value, when the similarity between the file content of the file to be detected at the current detection position and the file content of the original file is more than or equal to the preset similarity standard value, the file to be detected at the current position range is similar to the original file, the central processing module judges that the current position range is not modified, if the similarity between the file content of the file to be detected at the current detection position and the file content of the original file is less than the preset similarity standard value, and the central processing module judges that the current position range is the modification position range and records the current position range so as to further determine the modification position.
When the central processing module obtains the modification position range of the file to be detected, the central processing module detects the modification position of the file to be detected by using a single character number as the ith detection unit, wherein when the character at the alpha-th character position in the modification position range of the file to be detected is the same as the character at the position in the original file, the central processing module does not record the position information, and when the character at the alpha-th character position in the modification position range of the file to be detected is different from the character at the position in the original file, the central processing module marks the position as the modification position Pia and sets Pia (xia, yia), wherein a =1, 2-A0.
Specifically, after the modification position range is determined, the number of the single characters is used as the number of the second detection unit to detect the single characters in the modification position range, if the characters of the file to be detected and the original file are the same at the same position, the position is not recorded, and if the characters of the file to be detected and the original file are different at the same position, the position is the modification position of the file to be detected. The central processing module records the acquired modification position of the file to be detected and generates a file modification self-learning model, the central processing module sends the model to the correction module, and the correction module corrects the modification position so as to accurately acquire the modification position.
The central processing module is provided with a second preset character number B0 and a standard value SJ0 of the content similarity of the file to be corrected, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module takes the second preset character number set by the central processing module as a first correction unit to acquire the content to be corrected of the file to be detected and the original file, the correction module acquires the similarity of the content to be corrected of the file to be detected and the content to be corrected of the original file as SJ, wherein,
when SJ is more than or equal to SJ0, the correction module judges that the current content to be corrected has a detection error, and the correction module sends the message to the central processing module;
when SJ is less than SJ0, the correction module judges that an error occurs in the modification position of the current content to be corrected, the correction module compares the characters to be detected in the range of the position to be corrected of the file to be detected with the characters at the position of the original file by using a single character as a second correction unit, and the correction module acquires the positions of the characters which are not identical in comparison and sends the positions to the comparison module.
Specifically, in the embodiment of the present invention, the coordinate of the position to be corrected may be determined by a second preset number of characters and a modified position coordinate, the modified position coordinate is taken as a central point, the second preset number of characters is added to the text input direction, if the increment exceeds the total number of characters in each line of the document, the x-axis value of the position to be corrected is a difference between the increment and the total number of characters, and the y-axis value thereof is added by 1 (the y-axis value refers to an absolute value of y-axis data of the modified position), meanwhile, the modified position coordinate is taken as a central point, the second preset number of characters is added to the text input direction, if the difference between the x-axis value of the modified position and the second preset number of characters is less than zero, the difference between the x-axis value of the modified position and the second preset number of characters is set as a first difference, the difference between the total number of characters and the first difference is an x-axis value of the position to be corrected, and the y-axis value of the position to be corrected is subtracted by 1, and the y-axis value refers to an absolute value of y-axis data of the modified position), the problem of accurately acquiring the coordinate range to be corrected is solved.
Specifically, the central processing module sets a second preset number of characters, the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is obtained through the correction module, if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset standard value of the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file, it is indicated that modification traces do exist in the range of the current position to be corrected, but the modification traces are not recorded in the self-learning model, therefore, the correction module compares each character in the position to be corrected with a single character as a second correction unit, accurately obtains the modification position, corrects the modification position and then sends the modification position to the comparison module, if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is greater than or equal to the preset standard value of the similarity between the content to be corrected of the file to be corrected of the original file to be corrected of the file to be detected and the original file are similar to the original file, further, it is stated that the document to be detected in the position range to be corrected is not modified, which indicates that the central processing module should perform re-detection on the detected position when an error occurs in the initial detection.
The central processing module presets similarity R of the content of the file to be corrected, acquires error detection information of the current content to be corrected fed back by the correction module, adjusts the first preset number of characters according to the similarity SJ of the content to be corrected of the file to be corrected acquired by the correction module and the content to be corrected of the original file, wherein,
when SJ is less than or equal to R1, the central processing module reduces the first preset character number A0 to A01;
when R1 is more than SJ and less than R2, the central processing module does not adjust the first preset number of characters;
when SJ is more than or equal to R2, the central processing module increases the first preset character number A0 to A02;
the central processing module presets a similarity R of the contents of the files to be corrected, and sets a similarity R1 of the contents of the first preset files to be corrected and a similarity R2 of the contents of the second preset files to be corrected.
When the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file, which is acquired by the central processing module, is less than or equal to the similarity of the content of a first preset file to be corrected, the central processing module reduces the number of first preset characters A0 to A01, and sets AO1= AO x (1- (R1-SJ)/R1).
When the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file, which is acquired by the central processing module, is greater than or equal to the similarity of the content of a second preset file to be corrected, the central processing module increases the number of the first preset characters A0 to A02, and sets AO2= AO x (1+ (SJ-R2)/R2).
Specifically, the invention divides the similarity of the content of the file to be corrected into two standards, after the central processing module acquires the detection error information, the first preset character number is adjusted by comparing the acquired similarity between the content to be corrected of the file to be corrected and the content of the original file to be corrected with the similarity of the content of the preset file to be corrected, wherein when the similarity between the acquired content to be corrected of the file to be corrected and the content of the original file to be corrected is less than or equal to the similarity of the content of the first preset file to be corrected, the file to be corrected at the current position to be corrected is different from the original file and is modified more, so the first preset character number needs to be reduced, the detection position is detected in a blocking manner, the detection efficiency is accelerated, the detection accuracy is improved, and the central processing module reduces the first preset character number by taking the difference of the similarities as a reference, if the similarity between the acquired content to be corrected of the file to be detected and the content to be corrected of the original file is greater than or equal to the similarity of the content of a second preset file to be corrected, it is described that the difference between the file to be detected and the original file at the current position is not large, and further it is described that the content of the file to be detected is not modified much, so that the central processing module increases the number of the first preset characters according to the increment of the similarity, so as to accelerate the detection efficiency.
The central processing module is provided with a modification position adjusting parameter TJ, the central processing module selects a corresponding modification position adjusting parameter TJr to adjust the modification position according to the comparison between the ratio of the row spacing HJ1 of the file to be detected to the row spacing HJ2 of the original file and the ratio of the character spacing ZF1 of the file to be detected to the character spacing ZF2 of the original file and the preset ratio H of the central processing module, the adjusted modification position is Pia ', and Pia' (xia ', yia') is set, wherein xia '= xia × TJr, yia' = yia × TJr, wherein r =1,2,3,
when the HJ1/HJ2 XZF 1/ZF2 is not more than H1, the central processing module selects a first preset modified position adjusting parameter TJ1 as a modified position adjusting parameter;
when H1 is more than HJ1/HJ2 multiplied by ZF1/ZF2 is more than H2, the central processing module selects a second preset modified position adjusting parameter TJ2 as a modified position adjusting parameter;
when the HJ1/HJ2 multiplied by ZF1/ZF2 is larger than or equal to H2, the central processing module selects a third preset modified position adjusting parameter TJ3 as a modified position adjusting parameter;
the central processing module is used for setting a modification position adjusting parameter TJ, setting a first preset modification position adjusting parameter TJ1, a second preset modification position adjusting parameter TJ2 and a second preset modification position adjusting parameter TJ3, and setting a line spacing ratio H, wherein the first preset ratio H1 and the second preset ratio H2 are provided.
Specifically, the modification position is adjusted by setting the modification position adjusting parameter according to the line spacing and the character spacing of the file to be detected and the original file, so as to obtain the accurate modification position, and avoid errors and influence on the determination of the modification position.
Referring to fig. 2, a system for intelligently detecting file modification according to an embodiment of the present invention includes:
the image processing module is used for converting the information of the last editing position of the file acquired by the central processing module into an image;
the correction module is used for correcting the accurate condition of the modification position of the file to be detected;
the comparison module is used for comparing the modification position sent by the correction module with the modification position obtained by the central processing module;
the central processing module is used for adjusting the work of each part.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (8)

1. A method for intelligently detecting file modification is characterized by comprising the following steps:
step S1, the central processing module acquires information of the last editing position of the file and sends the information of the last editing position to the image processing module, the image processing module converts the information of the last editing position into an image of the last editing position, and the central processing module acquires the gray value of the image of the last editing position;
step S2, the central processing module compares the image gray scale change value at the last editing position of the file to be detected with a preset value, and judges whether the file to be detected is modified;
step S3, after the central processing module judges that the file to be detected is modified, the central processing module takes the initial point of the file as the starting point and takes the preset number of characters as the detection unit to detect the modification position of the file to be detected;
step S4, the central processing module establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module, and the correction module corrects the file to be detected and the original file according to the modification position of the file in the file modification self-learning model;
step S5, the correction module sends the corrected position information to the comparison module, the comparison module compares the modified position information sent by the correction module with the position information recorded by the central processing module, if the comparison is consistent, the central processing module outputs and displays the modified position information;
the central processing module acquires an image gray change value at the last editing position of the file to be detected according to the acquired image gray value at the last editing position of the file to be detected and the image gray value at the last editing position of the original file, if the image gray change value at the last editing position of the file to be detected is smaller than a preset value, the central processing module judges that the file to be detected is not modified, and when the central processing module acquires that the image gray value of the last editing position of the file to be detected is larger than the preset value compared with the change value of the image gray value of the last editing position of the original file, the central processing module judges that the file to be detected is modified;
when the central processing module judges that the file to be detected is modified, the central processing module detects the similarity between the file to be detected and the original file by establishing a planar rectangular coordinate system and applying the planar rectangular coordinate system to the file to be detected and the original file by taking a first preset character number as a first detection unit, when the similarity between the file to be detected and the original file is greater than a preset value, the central processing module judges that no modification is generated in the current detection unit, the central processing module detects the similarity between the file content in a next detection unit, when the similarity between the file to be detected and the original file is less than the preset value, the central processing module judges that modification is generated in the current detection unit, and when the central processing module judges that modification is generated in the current detection unit, the central processing module compares the file to be detected and the character to be detected of the original file by taking a single character number as a second detection unit, if the characters at the same position are different, the central processing module acquires the position as a modification position of the file to be detected, establishes a file modification self-learning model according to the modification position of the file to be detected and sends the file modification self-learning model to a correction module;
the correction module corrects the modification position of the file to be detected according to the file modification self-learning model, when the correction module compares the acquired file to be detected with the original file to the characters at the modification position, if the characters at the modification position of the file to be detected are different from the characters at the modification position of the original file, the correction module sends the modification position to the comparison module, if the characters at the modification position of the file to be detected are the same as the characters at the modification position of the original file, the correction module acquires the content to be corrected of the file to be detected and the original file by using a second preset character number set by the central processing module as a first correction unit, and if the similarity between the content to be corrected of the file to be detected and the content to be corrected of the original file is smaller than a preset value, the correction module detects the characters in the content to be corrected of the file to be detected by using a single character number as a second correction unit, when the characters to be corrected of the file to be detected are different from the characters to be corrected of the original file, the positions of the characters to be corrected are modification positions of the file to be detected, the correction module feeds the modification positions back to the comparison unit, if the similarity of the file contents of the file to be detected and the original file at the modified positions after revision is larger than a preset value, the correction module judges that the detection of the current content to be corrected is wrong, the correction module sends the information to the central processing module, the central processing module adjusts the first preset character number, redetects the detection position where the modification position is located according to the adjusted first preset character number, updates the detected result to a file modification self-learning model, and repeats the steps S4 and S5 until the modification position recorded by the comparison module is consistent with the modification position recorded in the central processing module.
2. The method of claim 1, wherein the central processing module presets a standard value HB0 for gray value change, the central processing module obtains the image gray value HD at the last editing position of the file to be detected and the image gray value HY at the last editing position of the original file, the central processing module obtains the image gray value HDB at the last editing position of the file to be detected and sets HDB = | HD-HY |/HY, the central processing module determines whether the file to be detected is modified according to the comparison of the obtained standard value HDB at the last editing position of the file to be detected and the preset gray value HB0, wherein,
when the HDB is not more than HB0, the central processing module judges that the file to be detected is not modified;
when the HDB is greater than HB0, the central processing module judges that the file to be detected is modified.
3. The method as claimed in claim 2, wherein the CPU module presets a similarity standard S0, the CPU module uses a first preset number of characters A0 as a first detecting unit, when the CPU module determines that the document to be detected is modified, the CPU module uses the initial position of the document as the origin, the character input direction as the X-axis, the direction perpendicular to the X-axis as the Y-axis, the length of a single character as the X-axis, and the row spacing of the document as the Y-axis, establishes a rectangular coordinate system, and applies the rectangular coordinate system to the document to be detected and the original document, the CPU module uses the initial position of the document as the origin, uses the first preset number of characters A0 as the first detecting unit, and divides the document to be detected into a plurality of detecting units, comprises a first detection position, a second detection position and an nth detection position, the central processing module obtains the similarity Si between the file content of the file to be detected in the ith detection position and the file content of the original file,
when Si is larger than or equal to S0, the central processing module judges that the ith detection position of the file to be detected is not modified, and the central processing module detects the next detection position of the file to be detected;
when Si is less than S0, the central processing module judges that the ith detection position of the file to be detected is modified, the central processing module sets the ith detection position as the modification position range of the file to be detected, and the modification position range is (xi1, yi1) - (xi2, yi2);
wherein the first detecting position ranges from (X11, Y11) - (X12, Y12), wherein X11 is the first detecting position first position X-axis coordinate, Y11 is the first detecting position first position Y-axis coordinate, X12 is the first detecting position second position X-axis coordinate, Y12 is the first detecting position second position Y-axis coordinate, the second detecting position ranges from (X21, Y21) - (X22, Y22), wherein X21 is the second detecting position first position X-axis coordinate, Y21 is the second detecting position first position Y-axis coordinate, X12 is the second detecting position second position X-axis coordinate, Y22 is the second detecting position second position Y-axis coordinate, and the nth detecting position ranges from (xn1, yn1) - (xn2, 2), wherein xn1 is the nth detecting position first position X-axis coordinate, 829 1 is the first detecting position Y-axis coordinate, xn2 second detection position second position X axis coordinate, yn2 is nth detection position second position Y axis coordinate, wherein i =1,2 to n, n is a natural number greater than or equal to 3.
4. The method for intelligently detecting the modification of the file as claimed in claim 3, wherein when the central processing module obtains the range of the modification position of the file to be detected, the central processing module detects the modification position of the file to be detected by using a single character as the ith detection unit, wherein when the character at the alpha-th character position in the range of the modification position of the file to be detected is the same as the character at the position in the original file, the central processing module does not record the position information, and when the character at the alpha-th character position in the range of the modification position of the file to be detected is different from the character at the position in the original file, the central processing module marks the position as the modification position Pia, and sets Pia (xia, yia), wherein a =1, 2-a 0.
5. The method as claimed in claim 2, wherein the CPU sets a second predetermined number of characters B0, a standard value of similarity of content of the document to be corrected SJ0, if the characters at the modified position of the document to be detected are the same as the characters at the modified position of the original document, the correcting module uses the second predetermined number of characters set by the CPU as the first correcting unit to obtain the content to be corrected of the document to be detected and the original document, the correcting module obtains the similarity of the content to be corrected of the document to be detected and the content to be corrected of the original document as SJ, wherein,
when SJ is more than or equal to SJ0, the correction module judges that the current content to be corrected has a detection error, and the correction module sends the information to the central processing module;
when SJ is less than SJ0, the correction module judges that an error occurs in the modification position of the current content to be corrected, the correction module compares the characters to be detected in the range of the position to be corrected of the file to be detected with the characters at the position of the original file by using a single character as a second correction unit, and the correction module acquires the positions of the characters which are not identical in comparison and sends the positions to the comparison module.
6. The method as claimed in claim 5, wherein the CPU module presets a similarity R of the content of the file to be corrected, and when the CPU module obtains the error detection information of the current content to be corrected fed back by the correction module, the CPU module adjusts the first preset number of characters according to the similarity SJ of the content to be corrected of the file to be corrected obtained by the correction module and the content to be corrected of the original file, wherein,
when SJ ≦ R1, the central processing module reduces the first preset number of characters a0 to a01, setting AO1= AO × (1- (R1-SJ)/R1);
when R1 is more than SJ and less than R2, the central processing module does not adjust the first preset number of characters;
when SJ is larger than or equal to R2, the central processing module increases the first preset number of characters A0 to A02, and sets AO2= AO × (1+ (SJ-R2)/R2);
the central processing module presets a similarity R of the contents of the files to be corrected, and sets a similarity R1 of the contents of the first preset files to be corrected and a similarity R2 of the contents of the second preset files to be corrected.
7. The method for intelligently detecting file modification as claimed in claim 4, wherein the central processing module sets modification position adjustment parameters TJ, the central processing module selects corresponding modification position adjustment parameters TJr to adjust the modification position according to the product of the ratio of the line spacing HJ1 of the file to be detected to the line spacing HJ2 of the file to be detected and the ratio of the character spacing ZF1 of the file to be detected to the character spacing ZF2 of the original file compared with the preset ratio H of the central processing module, and the adjusted modification position is Pia 'and Pia' (xia ', yia') is set, wherein xia '= xia × TJr, yia' = yia × TJr, wherein r =1,2,3,
when the HJ1/HJ2 XZF 1/ZF2 is not more than H1, the central processing module selects a first preset modified position adjusting parameter TJ1 as a modified position adjusting parameter;
when H1 is more than HJ1/HJ2 multiplied by ZF1/ZF2 is more than H2, the central processing module selects a second preset modified position adjusting parameter TJ2 as a modified position adjusting parameter;
when the HJ1/HJ2 multiplied by ZF1/ZF2 is larger than or equal to H2, the central processing module selects a third preset modified position adjusting parameter TJ3 as a modified position adjusting parameter;
the central processing module is used for setting a modification position adjusting parameter TJ, setting a first preset modification position adjusting parameter TJ1, a second preset modification position adjusting parameter TJ2 and a second preset modification position adjusting parameter TJ3, and setting a line spacing ratio H, wherein the first preset ratio H1 and the second preset ratio H2 are provided.
8. A system for intelligently detecting file modifications, the system employing the method of any one of claims 1-7, comprising,
the image processing module is used for converting the information of the last editing position of the file acquired by the central processing module into an image;
the correction module is used for correcting the accurate condition of the modification position of the file to be detected;
the comparison module is used for comparing the modification position sent by the correction module with the modification position obtained by the central processing module;
the central processing module is used for adjusting the work of each part.
CN202110972390.9A 2021-08-24 2021-08-24 Method and system for intelligently detecting file modification Active CN113420741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110972390.9A CN113420741B (en) 2021-08-24 2021-08-24 Method and system for intelligently detecting file modification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110972390.9A CN113420741B (en) 2021-08-24 2021-08-24 Method and system for intelligently detecting file modification

Publications (2)

Publication Number Publication Date
CN113420741A CN113420741A (en) 2021-09-21
CN113420741B true CN113420741B (en) 2021-11-30

Family

ID=77719351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110972390.9A Active CN113420741B (en) 2021-08-24 2021-08-24 Method and system for intelligently detecting file modification

Country Status (1)

Country Link
CN (1) CN113420741B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043766A (en) * 2010-12-30 2011-05-04 方正国际软件有限公司 Method and system for modifying scanning document
CN111753505A (en) * 2019-09-30 2020-10-09 北京沃东天骏信息技术有限公司 Document processing method, document processing device, server and storage medium
CN112286785A (en) * 2019-07-24 2021-01-29 腾讯科技(深圳)有限公司 User interface abnormity detection method and device
CN113255350A (en) * 2021-06-09 2021-08-13 中航机载系统共性技术有限公司 System file checking and correcting method, device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5759686B2 (en) * 2009-08-06 2015-08-05 株式会社半導体エネルギー研究所 Display device
CN109145916B (en) * 2018-08-02 2021-08-27 福建多多云科技有限公司 Image character recognition and cutting method and storage device
CN110910409B (en) * 2019-10-15 2023-10-27 平安科技(深圳)有限公司 Gray image processing method, device and computer readable storage medium
CN111832497B (en) * 2020-07-17 2022-06-28 西南大学 Text detection post-processing method based on geometric features
CN112784836A (en) * 2021-01-22 2021-05-11 浙江康旭科技有限公司 Text and graphic offset angle prediction and correction method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043766A (en) * 2010-12-30 2011-05-04 方正国际软件有限公司 Method and system for modifying scanning document
CN112286785A (en) * 2019-07-24 2021-01-29 腾讯科技(深圳)有限公司 User interface abnormity detection method and device
CN111753505A (en) * 2019-09-30 2020-10-09 北京沃东天骏信息技术有限公司 Document processing method, document processing device, server and storage medium
CN113255350A (en) * 2021-06-09 2021-08-13 中航机载系统共性技术有限公司 System file checking and correcting method, device, equipment and medium

Also Published As

Publication number Publication date
CN113420741A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US8724925B2 (en) Misalignment detecting apparatus, misalignment detecting method, and computer program product
US20110170214A1 (en) Systems and methods for correcting magnetic tape dimensional instability
US7039254B1 (en) Image interpolating method
US20020025081A1 (en) Document image processing device, document image processing method, and memory medium
EP2761863B1 (en) Detecting printing defects
US20030095178A1 (en) Adjusting apparatus for stereoscopic camera
US20140135948A1 (en) Electronic control apparatus and control characteristic adjustment method for the same
CN107220639A (en) The correcting method and device of OCR recognition results
US20070097368A1 (en) System and method for calibrating a feeder for a surface mounting device
CN107871329B (en) Method and device for quickly calibrating optical center of camera
JP2016095753A (en) Character recognition system and character recognition method
CN113420741B (en) Method and system for intelligently detecting file modification
CN113255706A (en) Target identification method and system based on convolutional neural network algorithm
CN106204480B (en) Pattern distortion antidote and real-time apparatus for correcting based on conic section
CN113112448A (en) Display picture detection method and storage medium
EP3916670A1 (en) System and method for correcting geometric distortion in images
CN108710881B (en) Neural network model, candidate target area generation method and model training method
CN109313811B (en) Automatic correction method, device and system based on vibration displacement of vision system
US20050094861A1 (en) Positional synchronization in a multivoting character recognition environment
US20220036529A1 (en) Device and method for the calibrated checking of a printing on an article
AU2011202057B2 (en) Image processing device, image processing system, and image processing program
US10091390B2 (en) Image processing apparatus and image processing method for extracting feature points of a document image
CN1308300A (en) Image calibration in the case of integral translation and linear elongation
CN104331715B (en) Fingerprint posture antidote based on Template Learning and system
CN112907462A (en) Distortion correction method and system for ultra-wide-angle camera device and shooting device comprising distortion correction system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant