[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106484340A - Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark - Google Patents

Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark Download PDF

Info

Publication number
CN106484340A
CN106484340A CN201610815528.3A CN201610815528A CN106484340A CN 106484340 A CN106484340 A CN 106484340A CN 201610815528 A CN201610815528 A CN 201610815528A CN 106484340 A CN106484340 A CN 106484340A
Authority
CN
China
Prior art keywords
watermark
matrix
print
document
interpolation
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.)
Granted
Application number
CN201610815528.3A
Other languages
Chinese (zh)
Other versions
CN106484340B (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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201610815528.3A priority Critical patent/CN106484340B/en
Publication of CN106484340A publication Critical patent/CN106484340A/en
Application granted granted Critical
Publication of CN106484340B publication Critical patent/CN106484340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1222Increasing security of the print job
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention provides one kind carries out watermark interpolation in print procedure to document knows method for distinguishing with watermark, comprise the steps:S1:Print system receives the data of office software transmission;S2:Watermark is added:The data that office software is transmitted by print system, in conjunction with the watermark information after binaryzation, carry out watermark interpolation, and complete to print;S3:Watermark is recognized:The matrix obtained in conjunction with paper watermark scanned document and the matrix obtained according to the data of office software transmission, integrate out intermediate transform matrices, and the hash matrix added according to intermediate transform matrices and watermark, restore watermark information.What the present invention was provided carries out watermark interpolation with watermark knowledge method for distinguishing in print procedure to document; by carrying out binary conversion treatment to watermark information; make the watermark information of interpolation have knowability, non-legibility and strong anti-interference ability, can more effectively play protection company information and document all rights reserved etc. function.

Description

Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark
Technical field
The present invention relates to Computer Data Security technical field, more particularly to one kind are carried out to document in print procedure Watermark interpolation knows method for distinguishing with watermark.
Background technology
In this information age current, digital information media have been applied to all trades and professions.It improves data The efficiency of the functions such as access, file printout and teleworking, but incident information security issue also grows with each passing day.Some Personal or group copies under the license for not obtaining file owners, arbitrarily and propagates the security level document data of enterprise, causes Massive losses of the enterprise in economic aspect.Interests for company consider that the copyright protection for enterprise document just seems outstanding For important.Digital watermark technology is the copyright protection of digital product technology for occurring in recent years, can carry copyright information and certification Information, protects legal copies and the propagation of digital product, is the study hotspot of current international academic community.
For just adding the method for watermark to the electronic document for printing on the market at present, can be summarized as following two:
1. the watermark for carrying out electronic document using watermark software is added, and is then printed using office software, finally gives birth to Become the paper document with watermark.It is a kind of early stage process, i.e., before document starts to print, just added got well watermark. As shown in figure 1, adding watermark flow chart for existing watermark software, electronic document first passes around watermark software or office does Public software, has added watermark, then electronic document has been passed to print system using office software.Office software is passed by print system Come data for electronic documents be processed into printer can Direct Recognition form, then connect printer, finally print band watermark Paper document because office office software possess watermark interpolation function, alternatively referred to as a kind of watermark software.
The drawbacks of this kind of method is:(1) the watermark interpolation of electronic document does not possess automation function every time, will be defeated manually Enter to add, add watermark efficiency low;(2) watermark that adds has stronger legibility, the characteristic for not possessing Information hiding.
2. watermark information is added using printer self attributes.It is a kind of late stage, i.e., go out in document print Final step has carried out the interpolation of watermark.As shown in Fig. 2 adding watermark flow chart for existing printer, handled official business with office soft As a example by one blank electronic document of part adds watermark, button is added in the watermark in manual click program, selects watermark to add mould Formula, is embedded in oneself watermark information to be added, while the options such as the font of watermark, color and font size can be arranged, clicks on application, closes Close and just added.Click on below and print, finally can print out the paper document for having added watermark.
By taking MP2000PCL printer as an example, matrix operation is:Open system control panel, find equipment and printer by Button, clicks and opens, and then right button point attribute, finds printer preference, has the function of adding watermark inside effect.
The drawbacks of this kind of method is:(1) interpolation of printed document watermark is automatically completed, but watermark information is inadequate Flexibly, watermark content is fixing;(2) watermark that adds has stronger legibility, the characteristic for not possessing Information hiding;(3) water Print embedding capacity is less, be within 31 characters.
For just adding the form of expression of watermark to the electronic document for printing on the market at present, three kinds are can be summarized as:
1. disguised watermark information is added.It can be more hidden protection file copyright, but when this disguise watermark After the completion of printing, when being identified to its scanned copy, often because the signal of various disturbing factors is attacked, it is allowed to not Effectively can be identified.
2. the watermark information with knowability Yu legibility is added.This method be at present for most commonly used side Method.Its antijamming capability is stronger, and robustness is good, but watermark information is more directly perceived, without certain disguise.
3. the watermark information with knowability with not legibility is added.This method be current watermark add one important Direction, it existing print scanned during strong anti-interference ability, robustness is good, and with certain disguise.But in text In shelves print procedure, the realization of this digital watermark is perfect not enough.
To sum up, existing watermark interpolation and watermark recognition methods, efficiency is low, hiding information characteristic is poor, water all to there is interpolation The shortcomings of print information content is fixed, embedded quantity is few.
Content of the invention
The present invention is to solve the watermark information inefficiency that existing manual adding method is present, and information legibility is added in watermark By force, and using printer add the more fixing shortcoming of watermark information content, there is provided one kind is entered to document in print procedure Row watermark interpolation knows method for distinguishing with watermark, comprises the steps:
S1:Print system receives the data of office software transmission;
S2:Watermark is added:The data that office software is transmitted by print system, in conjunction with the watermark information after binaryzation, are carried out Watermark is added, and completes to print;
S3:Watermark is recognized:The matrix obtained in conjunction with paper watermark scanned document and the number according to office software transmission According to the matrix for obtaining, intermediate transform matrices, and the hash matrix added according to intermediate transform matrices and watermark is integrated out, is restored Watermark information.
Wherein, step S2 comprises the steps:
S21:Office software is blocked in print system and comes into PS stream or the PDF stream for coming, using function these data flows Write as a specific file under particular file folder;
S22:The specific file is converted into the convert file of pdf form or jpg form, while detecting the conversion text The length of part and width;
S23:Automatically the information of office software main frame is obtained, as watermark information, and the watermark information for obtaining is carried out Binary conversion treatment, obtains the character string of binaryzation data;
S24:Formulate a n*2 and coordinates matrix C is hashed, each coordinate of this matrix corresponds to the word of binaryzation data in order A character in symbol string;
S25:According to binaryzation data genaration and specific file length and width identical watermark information file;
S26:Convert file and watermark information file re invocation system read and write function are synthesized one be watered The file of print;
S27:The file for being watered print is converted into and specific file identical form, is transported in print system, continues Continue and complete to print.
Wherein, in step S23, in the information for automatically obtaining office software main frame, as in the operation of watermark information, Comprise the steps:
S231:Watermark information to be added is designed to a global structure body in print system;
S232:In print system source code, design obtains the function of the information of the office software main frame as watermark information Function;
S233:By the power function designed in print system source code, the watermark information of the system function for obtaining is passed To global structure body;
S234:When print out task is executed, watermark information is taken out from global structure body.
Wherein, the watermark information includes MAC Address, network IP, Time of Day and special byte.
Wherein, during the binary conversion treatment, black is represented with numeral 1, white is represented with numeral 0.
Wherein, the form of expression of watermark information is black-white point, in step S24, corresponds to when hash coordinates matrix C is read Binaryzation data be 1 when, in Matrix C one stain of corresponding Coordinate generation;The corresponding binaryzation number of matrix is hashed when reading According to during for 0, in Matrix C one white point of corresponding Coordinate generation.
Wherein, step S3 comprises the steps:
S31:Good for the interpolation that prints watermark papery version document is scanned, generates scanned copy;
S32:Interest region to the scanned copy carries out positioning the identification of angle point, and records coordinate identification, forms 3*2 square Battle array B;
S33:According to length and the width of convert file, a 3*2 anchor point coordinates matrix A is formulated;
S34:3*2 anchor point coordinates matrix A is escalated into the matrix A 1 of 3*3,3*2 matrix B is escalated into the matrix of 3*3 B1;
S35:According to A1 matrix and B1 matrix, intermediate conversion matrix X is obtained, now X is the transformation matrix of 3*3;
S36:N*2 hash coordinates matrix C is escalated into the Matrix C 1 of n*3, the watermark that obtains according to C1 and X in scanned copy is sat Mark D;
S37:The n*2 rank matrix of D is taken out, accurate coordinates of the watermark point in scanned copy is obtained, one by one coordinate in identification D, Binaryzation string data is reduced into, and then is reduced into original watermark information.
Wherein, in step S32, positioning corner recognition is carried out to scanned copy by the corner recognition technology of Opencv.
Wherein, in step S32, interest region is the upper left corner, the upper right corner and the lower-left angular region of watermark papery version document Domain.
Wherein, in step S33, three coordinate points in coordinates matrix A are pinpointed and is respectively the upper left corner, the upper right corner and a left side Inferior horn.
Wherein, in step S34,3*2 anchor point coordinates matrix A is escalated into the matrix A 1 of 3*3 and 3*2 matrix During B escalates into the matrix B 1 of 3*3, the numeral of filling is 1.
Wherein, in step S37, coordinate in D is identified using the pixel technology of identification in Opencv.
The invention has the beneficial effects as follows:By carrying out binary conversion treatment to watermark information, have the watermark information of interpolation Knowability, non-legibility and strong anti-interference ability, more effectively can play protection company information and document all rights reserved Function.
Description of the drawings
Fig. 1:Existing watermark software adds watermark flow chart;
Fig. 2:Existing printer adds watermark flow chart;
Fig. 3:The present invention prints flow chart;
Fig. 4:Flow chart is added in watermark according to an embodiment of the invention;
Fig. 5:Watermark identification process figure according to an embodiment of the invention.
Specific embodiment
In order to further appreciate that to technical scheme and beneficial effect, hereafter special detailed according to specific embodiment Thin description technical scheme and beneficial effect.
The method for carrying out watermark interpolation to document in print procedure that the present invention is provided, comprises the steps:
S1:Print system receives the data of office software transmission;
S2:Watermark is added:The data that office software is transmitted by print system, in conjunction with the watermark information after binaryzation, are carried out Watermark is added, and completes to print;
S3:Watermark is recognized:The matrix obtained in conjunction with paper watermark scanned document and the number according to office software transmission According to the matrix for obtaining, intermediate transform matrices, and the hash matrix added according to intermediate transform matrices and watermark is integrated out, is restored Watermark information.
In the present invention, by carrying out binary conversion treatment to watermark information, the watermark information of interpolation is made to have not legibility, Protection company information and document can more effectively be played all rights reserved etc. function.
Fig. 3 show the printing overview flow chart of the present invention, as illustrated, in the overall print process flow of the present invention, The concept and effect of each step or part describes in detail as follows:
Office software:For needing the software of print data to print system transmission, such as, in windows platform Office, the openoffice in Linux system.
PS stream and PDF stream:Office software will pass to the data of print system.Want when user opens oneself using office software During the file of printing, printing is clicked, at this moment office software can send print system to data to be printed.The beating of this transmission According to there is two kinds of forms, one kind is PS stream to printing, and another is exactly PDF stream.When print file type be such as .doc, .excel, the file of .txt ending, the data of transmission are then flowed for PS.When mimeograph documents type is the types such as .pdf .jpg, pass The data that send then are flowed for PDF.
Configuration file:Guarantee that printing flow process smoothly, accurately executes for auxiliary.Include some printer interfaces among these Configuration file, printer driver boot configuration file, filter call configuration file etc..
Print system:It is a bridge of printing mechanism.It plays a part of one and forms a connecting link.Hold:It receives and does The file data that public software is transmitted.Open down:The data for receiving are scheduling processing, ultimately generating printer can Direct Recognition Language.
cups-filter:The filter needed in various print procedures is provided.Print system can call cups-filter The data which receives are processed, in order to can preferably support the file printout of situation not of the same race.Such as Teexttops filter, it can become PS stream format the content transformation of text form.Pstoraster filter can be outside PS stream is filtered into a kind of raster light grid current.
GhostScript:PS stream and the data conversions such as PDF stream can be become to print the language of function Direct Recognition, such as Say PCL language.Print system can be called GhostScript to process the final step of its receiving data, and then pass to printer Printed.
Printer:The final print data that print system is transmitted is received, exercises last printing function.
Fig. 4 is to add flow chart according to the watermark of embodiments of the invention;As illustrated, with Linux system, office software Openoffice, as a example by print system is cups, in one embodiment of the invention, carries out watermark to document in print procedure and adds Plus method, comprise the steps:
S21:Office software is blocked in print system and comes into PS stream or the PDF stream for coming, these are counted using write function Write as a specific file under particular file folder according to stream, be named as print-src here;
S22:Print-src file is converted into pdf form or jpg form, here as a example by being converted into pdf;This Shi Ruruo print-src file is pdf form then without conversion;File name after name conversion is print-src-pdf, with When detect the length of print-src-pdf file and width;
S23:The information of office software main frame is obtained, such as MAC Address, network IP, Time of Day and special byte are used as water Official seal ceases, depending on concrete acquisition information can be according to different demands;The watermark information for obtaining is carried out binary conversion treatment, obtains two-value Change the character string of data;
S24:Formulate a n*2 and coordinates matrix C is hashed, each coordinate (x, y) of this matrix corresponds to binaryzation word in order A character in symbol string;
S25:According to binaryzation data genaration and print-src length and width identical watermark pdf file, it is named as watermark-pdf;As specific file print-src is used as the middle temporary file of the electronic document for printing, length and width all may be used With measurement, and the data of watermark information binaryzation need and original print data fusion, change into the lattice of the file of watermark information Formula need as the form of specific file, therefore, the length and width of watermark information file are set to identical with the length and width of specific file, Accurate fusion is can ensure that, so that it is guaranteed that relative position does not change in file of the watermark information after fusion, it is the later stage The high precision fixation and recognition of watermark information lays the foundation;
S26:By print-src-pdf file and watermark-pdf file re invocation system read and write function One new file designation of synthesis is watermark-print-pdf;
S27:Watermark-print-pdf is converted into and print-src file identical form, is transported to printing system In system, printing is continued to complete.
Wherein, in step S23, in the information for automatically obtaining office software main frame, as in the operation of watermark information, Comprise the steps:
S231:Watermark information to be added is designed to a global structure body in print system;Such as name Watermark_info.Variable inside structure assumes only four kinds, is respectively:MAC Address:Char*m_mac, IP address: Char*m_ip, the time:Char*m_time, special byte:char*m_othermark.
S232:In print system source code, design obtains the information of the office software main frame as watermark information (as MAC Address, IP address, time and special byte) power function;
Host MAC address and the IP address of office software is such as obtained, in the source code of print system, is write one section and executes behaviour Make the command functions of system script, the order of perform script ifconfig, just can obtain the character with MAC Address and IP address String.(1) MAC Address is obtained:Call strstr function coupling Hwaddr character string first, terminated as another mark using space Symbol, then calls strtok function to intercept Hwaddr to the character string between space, then just can obtain MAC Address.(2) same Reason, the method for obtaining IP address are also similar to, and call strstr function coupling inet addr character string first, using space as another One mark end mark, then calls strtok function to intercept inet addr character string to the character string between space, then just IP address can be obtained.
The time of office software main frame is obtained, in print system, date order is called, just can obtain office software main frame Temporal information.
Spcial character is obtained, spcial character is the presence of one section of character string inside system heap space in advance.Printing every time Before electronic document, regain the spcial character inside specified heap and just may be used.
S233:By the power function designed in print system source code, the watermark information of the system function for obtaining is passed To global structure body, i.e.,;Watermark_info structure.
S234:When print out task is executed, watermark information is taken out from global structure body.
That is, so-called real-time acquisition watermark information is referred to, when electronic edition document is printed, claim to print primary electron document For a task, then when often having a task execute, the global variable for depositing watermark information in print system will update Once, so the watermark information that the document for printing every time adds is all newest, so being referred to as obtaining in real time.
Match with watermark information is obtained in real time, later stage this print system can be designed to the generalization stage, so-called The generalization stage refers to:This kind of print system has the function of interface management, and each purchase company can click on the watermark letter of interpolation The button of breath, carries out the selection of watermark information species.
Therefore, for the system of this customization at present, when the system that determines watermark information type to be added, than As said:Time and special byte, then the watermark information content of interpolation is all print system to the acquisition of time and special byte It is automatically updated in realtime, without manually carrying out manually entering watermark information, the watermark information of interpolation is accurate, and saves Working time, improve operating efficiency.
In the present invention, preferably during binary conversion treatment, black is represented with numeral 1, white is represented with numeral 0.
In the present invention, the watermark-pdf file of generation, preferably watermark information take the form of black-white point, i.e., when When reading the corresponding binaryzation data of hash coordinates matrix C for 1, in Matrix C one stain of corresponding Coordinate generation;Dissipate when reading When the corresponding binaryzation data of column matrix are 0, in Matrix C one white point of corresponding Coordinate generation.
The watermark adding method that the present invention is provided, only changes the pilot process in print procedure, and not change is printed The flow logic of process.
Fig. 5 is the watermark identification process figure according to embodiments of the invention;As illustrated, in one embodiment of the invention, Watermark is carried out in print procedure to document and knows method for distinguishing, comprise the steps:
S31:The watermark papery version document for having added is scanned, the scanned copy of for example, jpg form is generated, is ordered here Entitled scan-watermark;
S32:Interest region to scan-watermark file carries out positioning the identification of angle point, and records identification seat Mark, forms 3*2 matrix B;
S33:According to length and the width of print-src-pdf file, a 3*2 anchor point coordinates matrix A is formulated, here is mark Quasi- pdf 3*2 anchor point coordinates matrix A;
S34:3*2 anchor point coordinates matrix A is escalated into the matrix A 1 of 3*3,3*2 matrix B is escalated into the matrix of 3*3 B1;
S35:According to A1 matrix and B1 matrix, intermediate conversion matrix X is obtained, now X is the transformation matrix of 3*3;
S36:N*2 hash coordinates matrix C is escalated into the Matrix C 1 of n*3, the watermark that obtains according to C1 and X in scanned copy is sat Mark D;
S37:The n*2 rank matrix of D is taken out, accurate coordinates of the watermark point in scanned copy is obtained, one by one coordinate in identification D, Binaryzation string data is reduced into, and then is reduced into original watermark information.
The anchor point 3*2 matrix B that known standard PDF anchor point 3*2 matrix A is recognized with watermark, then according to Matrix Formula AX=B, can obtain intermediate conversion matrix X.Matrix knowledge according to mathematics then understands that X is the matrix of a 2*2.This method is obtained X be wrong.Because the watermark point in contrast scans part and the watermark point in standard papery version file, on the one hand it there occurs Rotationally-varying, still further aspect also there occurs translation simultaneously.X matrix is the matrix of a 2*2, and it can only describe anchor point and send out Raw is rotationally-varying, but can not be comprising the change of translation.Therefore, matrix A and matrix B are first upgraded by the present invention by first distinguishing, Obtain intermediate conversion matrix X again, the front bidimensional of this intermediate conversion matrix X describes the angle for rotating, one-dimensional afterwards describe translation Distance.Therefore, the watermark recognition methods that the present invention is provided, accurate with high precise positioning, anti-rotation, anti-translation and recognition result Really and other effects.Meanwhile, can there occurs that rotation can precisely find its actual coordinate after translating again in hash coordinates matrix Matrix, namely watermark coordinate D.
In the present invention, preferably positioning corner recognition is carried out to scanned copy by the corner recognition technology of Opencv.
In the present invention, preferably interest region is the upper left corner, the upper right corner and the lower left corner region of watermark papery version document.
In the present invention, in preferably described step S33, three coordinate points pinpointed in coordinates matrix A are respectively the upper left corner, the right side Upper angle and the lower left corner.
In the present invention, in preferably described step S34,3*2 anchor point coordinates matrix A escalate into 3*3 matrix A 1 and During 3*2 matrix B being escalated into the matrix B 1 of 3*3, the numeral of filling is 1.
In the present invention, in preferably described step S37, coordinate in D is known using the pixel technology of identification in Opencv Not.
Below by way of a preferably specific embodiment, the extremely beneficial effect of technical scheme is proved further:
Specific operating environment is as follows:
Hardware platform is:Computer and auxiliary facility, HPlaserJet printer 1010, scanner.
Software platform is:Linux operating system, cups print system and supporting, openoffice office software.
Here, as a example by adding a fixed character string Hello, the electronic document of printing can be any, with a blank pdf Electronic document is illustrated:
1) intercept print system cups and receive the data that office software is transmitted, generation/var/spool/cups/print- Src document, and then change into print-src-pdf.
2) watermark information binary conversion treatment to be added, i.e., the 01 this form for representing.Such as this character of H 01001000, then when representing, that is, when watermarking, if stain when being 1, is just printed as, and 0 When be just printed as white point.Such as this example, three positioning point coordinates are (20,80) (560,80) (20,820), that is, The upper left corner of document, the upper right corner and the lower left corner (document is with the upper left corner as the origin of coordinates).Exactly stamp at three angles of document black Point.
3) add watermark information, the binaryzation character string that Hello word is converted, with the point coordinates that first watermark is added It is (15,800), often row adds four watermark points, distance is 20, the starting point of next line is (15,780), carries out The interpolation of watermark point.Here hash matrix, I make a simply regular governed matrix form it.Generate watermark-pdf.
4) by print-src file and watermark-pdf file generated watermark-print-pdf.Then Watermark-print-pdf file is converted into the data as print-src initial form, returns to print system, continues Continuous printing is then good.
Watermark is recognized:
1) anchor point of picture is identified with opencv corner recognition technology, the coordinate for identifying makes one it Individual matrix is named as BThree anchor points of standard pdf document are write as A matrix
2) A and B matrix is upgraded, A1 matrix isB1 matrix is
3) according to Matrix Formula A1X=B1, X intermediate conversion matrix is obtained, then watermark Matrix Multiplication with X, then obtains figure Watermark dot matrix in piece.
4) with the pixel technology of identification inside opencv, the pixel value of watermark coordinate in picture is recognized, then just permissible Know that this point is black or white.Black is designated as 1, white is designated as 0, then according to the hash matrix for adding watermark one by one Identify, binaryzation character string is formed, and then watermark information is being reduced into, reach the recognition effect of watermark.Watermark information
In above-described embodiment in the present invention, illustrated as a example by specific file to be converted into pdf form, however actual In operation, it is also possible to be converted into jpg form, can equally realize making the watermark information of interpolation have knowability, non-legibility and Strong anti-interference ability and when being identified to watermark, accurate with high precise positioning, anti-rotation, anti-translation and recognition result Effect, the present invention is not any limitation as.
In the present invention, the concrete meaning that each technical terms of above-mentioned appearance represents is as follows:
1.cups:General Unix print system (Common UNIX Printing System), is Unix/Linux operation System print more completely prints solution there is provided a ratio.It uses IPP Internet print agreement (Internet Printing Protocol) come managing printing work and queue, while supporting LPD line printer background program (Line Printer Daemon) and the communication protocols such as SMB server block of information (Server Message Block) and AppSocket View.
2.PS stream and PDF stream:PS stream is the flow data during reading PostScript language file, PostScript language Speech is a kind of with device-independent printer pages description language.It carries out same processing procedure to text and figure, to place Reason font and picture bring great flexibility.PDF stream is the flow data for reading pdf format file.
3.Ghostscript:It is a set of building based on Adobe, PostScript and the page of Portable Document format (PDF) Description language etc. and the freeware that is compiled into.PS stream can be become to print what function was directly printed with data conversions such as PDF streams Language, also can be converted into another file format (as jpg form is converted into pdf form) a kind of file.
4. binaryzation:Also referred to as black and white.Exactly gray value is set to 0 or 255 so that only black and white two kinds of feelings Condition, is designated as 1 black in this patent, and race is zero.
5. various properties of watermark:
Robustness:Robust is the firm meaning, refer to experience multiple be not intended to or intentional signal attack process after, add Watermark remain to keep integrality or Partial completeness and accurately can be differentiated.
Disguised:Also known as incomprehensiveness, refer to that the watermark that adds is invisible under the conditions of Normal visual.
Knowability:Refer to that watermark is visible under common visual condition.
Legibility:Refer to that people can easily identify watermark information content.
Embedding capacity:Refer to carrier embeddable watermark information amount on the premise of not deforming upon.
6. the various properties that watermark is recognized:
Anti-rotation:Refer to allow watermark to rotate a certain angle, do not affect its recognition result.
Anti- translation:Refer to allow watermark that a certain distance is translated, do not affect its recognition result.
To sum up, the beneficial effect achieved by the present invention is:
1. pass through, during document print, real-time dynamicly to obtain and add watermark information, the watermark that carries out of automation adds Plus, the interpolation efficiency that enterprise adds watermark to document is improve, reduces job costs.
2nd, by carrying out binary conversion treatment to watermark information, make the watermark information of interpolation have knowability, non-legibility and Strong anti-interference ability, can more effectively play protection company information and document all rights reserved etc. function.
3rd, intermediate transform matrices are calculated again by first upgrading to matrix A and matrix B so that the present invention is being known to watermark When other, with high precise positioning, anti-rotation, anti-translation and the accurate advantage of recognition result.
To sum up, what the present invention was provided carries out watermark interpolation with watermark knowledge method for distinguishing, a side in print procedure to document The time that company's non-automated adds watermark can be saved in face, while can guarantee that dynamic renewal watermark information in real time again, effectively carry High office efficiency.On the other hand, the interpolation of document watermark is served to Article Surveillance, the discriminating of the document true and false and copyright protection Function, can the more efficiently malicious dissemination for taking precautions against enterprises document and protection all rights reserved problem.While giving application The high precise positioning of scanned document that this intellectuality watermark adding method is printed and anti-rotation, anti-translation interference performance Watermark technology of identification.
Although the present invention is illustrated using above-mentioned preferred embodiment, so which is not limited to the protection model of the present invention Enclose, any those skilled in the art carry out various changes with respect to above-described embodiment within without departing from the spirit and scope of the present invention Dynamic and modification still belongs to the scope protected by the present invention, and therefore protection scope of the present invention is by being defined that claims are defined.

Claims (12)

1. one kind carries out watermark interpolation with watermark knowledge method for distinguishing in print procedure to document, it is characterised in that:Including as follows Step:
S1:Print system receives the data of office software transmission;
S2:Watermark is added:The data that office software is transmitted by print system, in conjunction with the watermark information after binaryzation, carry out watermark Add, and complete to print;
S3:Watermark is recognized:The matrix obtained in conjunction with paper watermark scanned document and the data that is transmitted according to office software are obtained The matrix for arriving, integrates out intermediate transform matrices, and the hash matrix added according to intermediate transform matrices and watermark, restores watermark Information.
2. carry out watermark interpolation as claimed in claim 1 in print procedure to document method for distinguishing, its feature is known with watermark It is:Step S2 comprises the steps:
S21:Office software is blocked in print system and comes into PS stream or the PDF stream for coming, these data flows are write as using function A specific file under particular file folder;
S22:The specific file is converted into the convert file of pdf form or jpg form, while detecting the convert file Long and wide;
S23:Automatically the information of office software main frame is obtained, as watermark information, and the watermark information for obtaining is carried out two-value Change is processed, and obtains the character string of binaryzation data;
S24:Formulate a n*2 and coordinates matrix C is hashed, each coordinate of this matrix corresponds to the character string of binaryzation data in order In a character;
S25:According to binaryzation data genaration and specific file length and width identical watermark information file;
S26:Convert file and watermark information file re invocation system read and write function are synthesized one and is watered print File;
S27:The file for being watered print is converted into and specific file identical form, is transported in print system, has continued Become to print.
3. carry out watermark interpolation as claimed in claim 2 in print procedure to document method for distinguishing, its feature is known with watermark It is:In step S23, in the information for obtaining automatically office software main frame, as in the operation of watermark information, including as follows Step:
S231:Watermark information to be added is designed to a global structure body in print system;
S232:In print system source code, design obtains the power function of the information of the office software main frame as watermark information;
S233:By the power function designed in print system source code, the watermark information of the system function for obtaining is passed to entirely Office's structure;
S234:When print out task is executed, watermark information is taken out from global structure body.
4. carry out watermark interpolation as claimed in claim 2 in print procedure to document method for distinguishing, its feature is known with watermark It is:The watermark information includes MAC Address, network IP, Time of Day and special byte.
5. carry out watermark interpolation as claimed in claim 2 in print procedure to document method for distinguishing, its feature is known with watermark It is:During the binary conversion treatment, black is represented with numeral 1, white is represented with numeral 0.
6. carry out watermark interpolation as claimed in claim 2 in print procedure to document method for distinguishing, its feature is known with watermark It is:The form of expression of watermark information is black-white point, in step S24, hashes the corresponding binaryzation of coordinates matrix C when reading When data are 1, in Matrix C one stain of corresponding Coordinate generation;When the corresponding binaryzation data of hash matrix are read for 0, In Matrix C one white point of corresponding Coordinate generation.
7. carry out watermark interpolation as claimed in claim 2 in print procedure to document method for distinguishing, its feature is known with watermark It is:
Step S3 comprises the steps:
S31:Good for the interpolation that prints watermark papery version document is scanned, generates scanned copy;
S32:Interest region to the scanned copy carries out positioning the identification of angle point, and records coordinate identification, forms 3*2 matrix B;
S33:According to length and the width of convert file, a 3*2 anchor point coordinates matrix A is formulated;
S34:3*2 anchor point coordinates matrix A is escalated into the matrix A 1 of 3*3,3*2 matrix B is escalated into the matrix B 1 of 3*3;
S35:According to A1 matrix and B1 matrix, intermediate conversion matrix X is obtained, now X is the transformation matrix of 3*3;
S36:N*2 hash coordinates matrix C is escalated into the Matrix C 1 of n*3, the watermark coordinate D in scanned copy is obtained according to C1 and X;
S37:The n*2 rank matrix of D is taken out, accurate coordinates of the watermark point in scanned copy are obtained, one by one coordinate in identification D, reduction Become binaryzation string data, and then be reduced into original watermark information.
8. carry out watermark interpolation as claimed in claim 7 in print procedure to document method for distinguishing, its feature is known with watermark It is:In step S32, positioning corner recognition is carried out to scanned copy by the corner recognition technology of Opencv.
9. carry out watermark interpolation as claimed in claim 7 in print procedure to document method for distinguishing, its feature is known with watermark It is:In step S32, interest region is the upper left corner, the upper right corner and the lower left corner region of watermark papery version document.
10. carry out watermark interpolation as claimed in claim 7 in print procedure to document method for distinguishing, its feature is known with watermark It is:In step S33, three coordinate points pinpointed in coordinates matrix A are respectively the upper left corner, the upper right corner and the lower left corner.
11. carry out watermark interpolation as claimed in claim 7 in print procedure to document knows method for distinguishing, its feature with watermark It is:In step S34,3*2 anchor point coordinates matrix A is escalated into the matrix A 1 of 3*3 and 3*2 matrix B escalated into During the matrix B 1 of 3*3, the numeral of filling is 1.
12. carry out watermark interpolation as claimed in claim 7 in print procedure to document knows method for distinguishing, its feature with watermark It is:In step S37, coordinate in D is identified using the pixel technology of identification in Opencv.
CN201610815528.3A 2016-09-08 2016-09-08 Watermark addition is carried out to document in print procedure and method for distinguishing is known in watermark Active CN106484340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610815528.3A CN106484340B (en) 2016-09-08 2016-09-08 Watermark addition is carried out to document in print procedure and method for distinguishing is known in watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610815528.3A CN106484340B (en) 2016-09-08 2016-09-08 Watermark addition is carried out to document in print procedure and method for distinguishing is known in watermark

Publications (2)

Publication Number Publication Date
CN106484340A true CN106484340A (en) 2017-03-08
CN106484340B CN106484340B (en) 2019-04-05

Family

ID=58273678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610815528.3A Active CN106484340B (en) 2016-09-08 2016-09-08 Watermark addition is carried out to document in print procedure and method for distinguishing is known in watermark

Country Status (1)

Country Link
CN (1) CN106484340B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132916A (en) * 2017-11-30 2018-06-08 厦门市美亚柏科信息股份有限公司 Parse method, the storage medium of PDF list datas
CN108805787A (en) * 2018-04-17 2018-11-13 北京溯斐科技有限公司 A kind of method and apparatus that paper document distorts Jianzhen
CN109543152A (en) * 2018-11-06 2019-03-29 北京指掌易科技有限公司 A kind of dark watermark display methods in mobile terminal
CN110188516A (en) * 2019-04-30 2019-08-30 广州迅维信息安全技术有限公司 The method and device of stealthy watermark
CN110244920A (en) * 2019-06-18 2019-09-17 中铁工程装备集团有限公司 Cad file bulk print device and method with intelligent clipping function
CN110471632A (en) * 2019-08-16 2019-11-19 北京明朝万达科技股份有限公司 File printout, inspection method, device, electronic equipment and readable storage medium storing program for executing
CN110489945A (en) * 2019-07-26 2019-11-22 山东科技大学 A kind of biographic information protection and retroactive method of divulging a secret
CN111679800A (en) * 2020-06-10 2020-09-18 天津光电久远科技有限公司 Official document anti-counterfeiting printing system based on domestic operating system
CN113135043A (en) * 2021-03-10 2021-07-20 厦门喵宝科技有限公司 Watermark printing method of thermal printer, storage medium and thermal printing equipment
CN113312010A (en) * 2020-02-27 2021-08-27 奇安信科技集团股份有限公司 Watermark processing method and device for printed file, electronic equipment and storage medium
CN113383305A (en) * 2019-02-01 2021-09-10 兄弟工业株式会社 Support program, information processing apparatus, and printing method
CN113383305B (en) * 2019-02-01 2024-11-15 兄弟工业株式会社 Memory, information processing apparatus, and printing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949818A (en) * 2006-11-03 2007-04-18 北京北大方正电子有限公司 File printing method, device and system
JP4345764B2 (en) * 2006-03-29 2009-10-14 Sky株式会社 Printing system and printing control method
CN101751655A (en) * 2008-12-17 2010-06-23 北京大学 Methods for implanting and extracting digital watermark and device thereof
CN102903071A (en) * 2011-07-27 2013-01-30 阿里巴巴集团控股有限公司 Watermark adding method and system as well as watermark identifying method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4345764B2 (en) * 2006-03-29 2009-10-14 Sky株式会社 Printing system and printing control method
CN1949818A (en) * 2006-11-03 2007-04-18 北京北大方正电子有限公司 File printing method, device and system
CN101751655A (en) * 2008-12-17 2010-06-23 北京大学 Methods for implanting and extracting digital watermark and device thereof
CN102903071A (en) * 2011-07-27 2013-01-30 阿里巴巴集团控股有限公司 Watermark adding method and system as well as watermark identifying method and system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132916A (en) * 2017-11-30 2018-06-08 厦门市美亚柏科信息股份有限公司 Parse method, the storage medium of PDF list datas
CN108805787A (en) * 2018-04-17 2018-11-13 北京溯斐科技有限公司 A kind of method and apparatus that paper document distorts Jianzhen
CN108805787B (en) * 2018-04-17 2022-08-23 北京数科网维技术有限责任公司 Paper document tampering and authenticating method and device
CN109543152A (en) * 2018-11-06 2019-03-29 北京指掌易科技有限公司 A kind of dark watermark display methods in mobile terminal
CN113383305A (en) * 2019-02-01 2021-09-10 兄弟工业株式会社 Support program, information processing apparatus, and printing method
CN113383305B (en) * 2019-02-01 2024-11-15 兄弟工业株式会社 Memory, information processing apparatus, and printing method
CN110188516A (en) * 2019-04-30 2019-08-30 广州迅维信息安全技术有限公司 The method and device of stealthy watermark
CN110244920A (en) * 2019-06-18 2019-09-17 中铁工程装备集团有限公司 Cad file bulk print device and method with intelligent clipping function
CN110244920B (en) * 2019-06-18 2022-11-01 中铁工程装备集团有限公司 CAD file batch printing equipment with intelligent cutting function and method
CN110489945B (en) * 2019-07-26 2021-03-30 山东科技大学 Resume information protection and divulgence tracing method
CN110489945A (en) * 2019-07-26 2019-11-22 山东科技大学 A kind of biographic information protection and retroactive method of divulging a secret
CN110471632B (en) * 2019-08-16 2021-03-02 北京明朝万达科技股份有限公司 File printing and viewing method and device, electronic equipment and readable storage medium
CN110471632A (en) * 2019-08-16 2019-11-19 北京明朝万达科技股份有限公司 File printout, inspection method, device, electronic equipment and readable storage medium storing program for executing
CN113312010A (en) * 2020-02-27 2021-08-27 奇安信科技集团股份有限公司 Watermark processing method and device for printed file, electronic equipment and storage medium
CN111679800A (en) * 2020-06-10 2020-09-18 天津光电久远科技有限公司 Official document anti-counterfeiting printing system based on domestic operating system
CN113135043A (en) * 2021-03-10 2021-07-20 厦门喵宝科技有限公司 Watermark printing method of thermal printer, storage medium and thermal printing equipment
CN113135043B (en) * 2021-03-10 2022-06-24 厦门喵宝科技有限公司 Watermark printing method of thermal printer, storage medium and thermal printing equipment

Also Published As

Publication number Publication date
CN106484340B (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN106484340B (en) Watermark addition is carried out to document in print procedure and method for distinguishing is known in watermark
US10452964B1 (en) Hidden bar code system via vector pattern correlation marks
JP4799285B2 (en) Image output system, image output apparatus, information processing method, storage medium, and program
US10462326B2 (en) Machine readable security mark and process for generating same
US20070279672A1 (en) Image processing apparatus and image processing method
US7770112B2 (en) Data conversion method and apparatus to partially hide data
JP2003101768A (en) Image forming apparatus and application exchange system
US8319988B2 (en) Job auditing systems and methods for direct imaging of documents
JP2009032186A (en) Image processor, control method thereof, program therefor, and storage medium
US20080198860A1 (en) Enabling routing of data on a network based on a portion of data accessed from a non-network enabled device
US20030229846A1 (en) System and method for capturing digital data directly from an electronic device and processing the data into XML form on a computer chip
CN108513041A (en) Image formation system, terminal, server, image forming apparatus and image forming method
EP2040451B1 (en) Information processing apparatus and information processing method
US10306095B2 (en) Image processing apparatus and method
JP2017212575A (en) Image reading device and program
JP2007233671A (en) Image processing apparatus, image processing method and image processing program
US8971319B2 (en) Enabling routing of data on a network based on a portion of data accessed from a non-network enabled device
US9369594B2 (en) Transmission device, relay device, recording medium and control method of transmission system
US20170228620A1 (en) Document printing using hardware-dependent fonts
US20070050410A1 (en) Image processing apparatus, image processing method and storage medium storing image processing program
US7224818B2 (en) Image processing to prevent forgery
JP2007334588A (en) Information processor, information processing method, and information processing program
JP7574980B1 (en) Seal image creation system, seal image creation method and program
JP6357871B2 (en) Information collection method, information collection system, and computer program
WO2022048391A1 (en) Cloud desktop watermark generation method and system, electronic device, and storage medium

Legal Events

Date Code Title Description
C06 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