Two-dimensional code extracting method
AssigneeFujitsu Limited
InventorsKenichiro Sakai, Tsugio Noda
Life of this patent
Estimating the term…
Abstract
An image data is inputted by using a device such as a document scanner. The input image data is scanned in a square block unit of M×N pixels, and blocks that satisfy specific conditions is detected based on the scanning process. In one example, a ratio of white pixels and black pixels falls within scanned blocks is used as the specific condition to detect those blocks. Then a region that neighbored by the other blocks is detected, and is extracted as a two-dimensional code region.
Claims20
A two-dimensional code extraction method comprising:
- inputting image data;
- scanning said input image data in a square block unit of MXN pixels (M and N are positive integers);
- detecting blocks that satisfy specific conditions from scanned blocks;
- detecting a plurality of regions of blocks corresponding to a respective plurality of two-dimensional codes, each region of blocks comprising a number of neighboring and contiguous blocks from among said detected blocks that satisfy specific conditions from said scanned blocks;
- detecting one or more areas enclosing respective two-dimensional codes, each a two-dimensional code area enclosing by a margin a corresponding detected region of blocks comprising the predetermined number of the neighboring and contiguous blocks as the two-dimensional code;
- and
- extracting one or more two dimensional codes from among the detected one or more two-dimensional code areas that have more than a predetermined number of the neighboring and contiguous blocks.
A computer-readable medium storing a program which, when executed by a computer, causes the computer to execute a two-dimensional code extraction method comprising:
- inputting image data;
- scanning said input image data in a square block unit of MxN pixels (M and N are positive integers);
- detecting blocks that satisfy specific conditions from scanned blocks;
- detecting a plurality of regions of blocks corresponding to a respective plurality of two-dimensional codes, each region of blocks comprising a number of neighboring and contiguous blocks from among said detected blocks that satisfy specific conditions from said scanned blocks;
- detecting one or more areas enclosing respective two-dimensional codes, each two-dimensional code area enclosing by a margin a corresponding detected region of blocks comprising the predetermined number of the neighboring and contiguous blocks as the two-dimensional code;
- and
- extracting one or more two-dimensional codes from among the detected one or more two-dimensional code areas that have more than a predetermined number of neighboring and contiguous blocks.
An apparatus extracting two-dimensional code from an input document, comprising:
- an image scanner scanning the document, and outputting input image data;
- and
- a programmed computer processor connected to said image scanner and controlling the apparatus according to a two-dimensional code extraction process, comprising:
- scanning said input image data in a square block unit of MxN pixels (M and N are positive integers),
- detecting blocks that satisfy specific conditions from scanned blocks,
- detecting a plurality of regions of blocks corresponding to a respective plurality of two-dimensional codes, each region of blocks comprising a number of neighboring and contiguous blocks from among said detected blocks that satisfy specific conditions from said scanned blocks,
- detecting one or more areas enclosing respective two-dimensional codes, each two-dimensional code area enclosing by a margin a corresponding detected region of blocks comprising the predetermined number of the neighboring and contiguous blocks as the two-dimensional code, and
- extracting one or more two-dimensional codes from among the detected one or more two-dimensional code areas that have more than a predetermined number of the neighboring and contiguous blocks.
Dependencies are inferred from the claim text.