Patent ID: 9445108
Filing Date: 2016-09-13
CPC Classification: G06F,G06T,H04N

Claim Text:
1. A method for compressing a document, the method comprising: counting, using a processor and a memory, a number of edges present in a selected portion of the document; determining, using the processor and the memory, whether the number of edges exceeds a threshold number of edges; selecting, using the processor and the memory, responsive to the number of edges exceeding the threshold number of edges, a pixel from the portion; identifying, using the processor and the memory, for the pixel, a set of neighboring pixels; identifying, using the processor and the memory, for each neighboring pixel in a subset of the set of neighboring pixels, a corresponding label of the neighboring pixel, wherein a mask layer corresponding to the document contains labels of pixels in the portion; biasing, using the processor and the memory, in the mask layer, a label of the selected pixel using labels of neighboring pixels in the subset of the neighboring pixels; designating, using the processor and the memory, according to the label of the selected pixel, the selected pixel to one of a foreground layer corresponding to the document and a background layer corresponding to the document; and constructing, using the processor and the memory, corresponding to the document, a compressed document using the mask layer, the foreground layer, and the background layer.