摘要 |
PROBLEM TO BE SOLVED: To accurately read both bright and dark parts of a two-dimensional code by extracting the boundary between the bright and dark parts of an image of a two-dimensional code which has been read to make both parts clear, segmenting the image into the clear bright and dark parts at the extracted boundary and then compositing both the bright and dark part images. SOLUTION: A camera 1 reads a bar code 3 which is stuck on a material 2, and a bright/dark boundary extracting part 4 emphasizes a shade part of a read image and extracts a border line between the shade and sunny parts of the image. A bright part cliaring part 5 processes the image so as to make its shade part clear, and a dark part clearing part 6 makes the sunny part clear via the image processing. Then an image compositing part 7 segments the image into the shade and sunny parts on the extracted border line and compositing together both the parts to produce an entire clear composited image. Thus, it is possible to avoid an improper case where the data showing the code 3 disappearing in white or are painted out in black, when the composited image is turned into a black/white image via a two-coloring part 8. |