IP Library › Granted Patent US 10,949,509
Granted Patent B2
US 10,949,509 · App. 16/171,025 · Granted Mar 16, 2021

Watermark embedding and extracting method for protecting documents

Inventors: Luis Perez Freire (Madrid, ES); Diego Perez Vieites (Madrid, ES); Pablo Pedro Perez Garcia (Madrid, ES)
Assignee: TELEFONICA CIBERSECURITY & CLOUD TECH S.L.U.
G06F21/16G06F16/93G06F40/103G06T1/005G06T1/0028G06F2221/0748G06T2201/0051G06T2201/0062G06T2201/0065
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,949,509
App. No.
16/171,025
Granted
Mar 16, 2021
Kind
B2
Abstract

A method for watermarking documents comprising: identifying and locating spaces in a received original document ( 10 ) by a location analysis ( 110 ) module which distinguishes between intra-word spaces and inter-word spaces; minimizing an error probability of interference between intra-word spaces and inter-word spaces in the watermarked document ( 20 ) by an optimization module ( 111 ); encoding ( 113 ) the message ( 30 ) into codewords and encoding ( 114 ) the codewords into the watermark; embedding the watermark to generate ( 115 ) the watermarked document ( 20 ) by modifying the intra-word spaces and inter-word spaces of the original document ( 10 ).

Claims (28)

1. A method ( 11 ) for watermarking documents, receiving an original document ( 10 ) and a message ( 30 ) to obtain a watermarked document ( 20 ) embedding a watermark which encodes the received message ( 30 ), the method characterized by comprising:

identifying and locating spaces in the original document ( 10 ) by a location analysis ( 110 ) module, the location analysis ( 110 ) distinguishing between intra-word spaces and inter-word spaces, and wherein the location analysis ( 110 ) comprises

checking ( 401 ) whether the received original document ( 10 ) is a bitmap format document and if the original document ( 10 ) is in a non-bitmap format, converting ( 402 ) the original document ( 10 ) into a bitmap format document;

applying an image-based segmentation ( 403 ) to the bitmap format document to obtain a set of lengths and a set of locations of the spaces in the bitmap format document;

classifying ( 405 ) the identified and located spaces into intra-word spaces and inter-word spaces to obtain sets ( 406 ) of lengths of the intra-word and inter-word spaces, S S and S B respectively, and sets of locations of the intra-word and inter-word spaces, L S and L B respectively, of the original document ( 10 );

minimizing an error probability corresponding to an interference between intra-word spaces and inter-word spaces in the watermarked document ( 20 ) by means of an optimization module ( 111 ), wherein the optimization module ( 111 ) determines a distance between the lengths of the intra-word and inter-word spaces, and wherein the optimization module ( 111 ) minimizes the error probability by:

obtaining a modified set of intra-word spaces, S* S ={S* Si } where i denotes a line number of the original document ( 10 ) and S* Si is equal to:

μ( i )+ε if S Si >μ( i )+ε, and

S Si else;

where μ(i) is an average value of the length of the intra-word spaces S Si in the i-th line and ε is a host-rejection parameter which is an adjustable parameter to increase the distance between the lengths of the intra-word and inter-word spaces;

obtaining a modified set of inter-word spaces, S* B ={S* Bi } where i denotes a line number of the original document ( 10 ), where

S* Bi ={S* Bi (k)}, S* Bi (k) being the modified length of the k-th inter-word space of the i-th line and S Bi (k) being the original length of the k-th inter-word space of the i-th line of the original document ( 10 ),

S* S ={S* Si (k)}, S* Si (k) being the modified length of the k-th intra-word space of the i-th line and S Si (k) being the original length of the k-th intra-word space of the i-th line of the original document ( 10 ), and

S* Bi ( k )= S Bi ( k )+(Σ k S Si ( k )−Σ k S* Si ( k ))/ N b ( i )

N b (i) being the number of inter-word spaces in the i-th line of the original document ( 10 );

encoding ( 113 ) the message ( 30 ) into codewords and encoding ( 114 ) the codewords into the watermark;

embedding the watermark into the original document ( 10 ) to generate ( 115 ) the watermarked document ( 20 ) by modifying the intra-word spaces and inter-word spaces of the original document ( 10 ) according to the encoding ( 113 ) of the received message ( 30 ), wherein generating ( 115 ) the watermarked document ( 20 ) comprising:

selecting a subset from the set of inter-word spaces, S* B , mapped to the set of inter-word spaces in the t-th line, S t B , through a secret key;

selecting a codeword w t from the encoded message ( 30 )

embedding the selected codeword w t in the selected subset of inter-word spaces by calculating a modified inter-word space S BW of the watermarked document ( 20 ) using the expression:

S t BW ( k )= S t B ( k )+ w t ( k )· c t ( k )· S t B ( k )= S t B ( k )(1+ w t ( k )· c t ( k ))

where w t (k) is the selected codeword, for the k-th inter-word space in the t-th line; S t B (k) is the k-th inter-word space in the t-th line of the inter-word space S B of the original document ( 10 ), S t BW (k) is the k-th inter-word space in the t-th line of the inter-word space S BW of the watermarked document ( 20 ) and c t (k) is a weighting factor; and

modifying the intra-word spaces and inter-word spaces of the original document ( 10 ) replacing the intra-word space, S S , and the inter-word space, S B , respectively by the modified set of intra-word spaces, S* S , and the modified inter-word space, S BW , in the watermarked document ( 20 ).

2. The method according to claim 1 , wherein the image-based segmentation ( 403 ) applies clustering or optical character recognition if the received original document ( 10 ) has a non-homogeneous text background.

3. The method according to claim 1 , wherein the image-based segmentation ( 403 ) applies projections if the received original document ( 10 ) has a homogeneous text background.

4. The method according to claim 1 , wherein encoding ( 113 ) the message ( 30 ) of length K comprises adding a channel coding to the message ( 30 ) to obtain a modified message (m′) of length L>K, dividing the modified message (m′) into payload blocks ( 510 , 510 ′) of length N and adding a synchronization block ( 520 , 520 ′) of length T before each payload block ( 510 , 510 ′) respectively to obtain a symbol sequence (m″) of length L·(1+T/N).

5. The method according to claim 1 , wherein the original document ( 10 ) is selected from a digital document and a digitalized document.

6. A non-transitory computer-readable medium containing computer instructions stored therein for causing a computer processor to perform the method according to claim 1 .

Assignments (3)
CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE NAME PREVIOUSLY RECORDED AT REEL: 055092 FRAME: 0379. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT OF ASSIGNOR'S INTEREST. Recorded Aug 17, 2021
From: TELEFONICA DIGITAL ESPANA, S.L.U.
To: TELEFONICA CYBERSECURITY & CLOUD TECH S.L.U.
Reel/Frame 057207/0542 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 1, 2021
From: TELEFONICA DIGITAL ESPANA, S.L.U.
To: TELEFONICA CIBERSECURITY & CLOUD TECH S.L.U.
Reel/Frame 055092/0379 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 18, 2019
From: PEREZ FREIRE, LUIS; PEREZ VIEITES, DIEGO; PEREZ GARCIA, PABLO PEDRO
To: TELEFONICA DIGITAL ESPANA, S.L.U.
Reel/Frame 048927/0494 →
Priority Claims (1)
EP 17382720 · Oct 27, 2017 · regional
Continuity (1)
Related Publication 20190130080A1 · May 2, 2019
Cited By (4)
US 12,205,189 US 12,307,546 US 12,462,321 US 12,718,311