CN104346613A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
CN104346613A
CN104346613A CN201410387805.6A CN201410387805A CN104346613A CN 104346613 A CN104346613 A CN 104346613A CN 201410387805 A CN201410387805 A CN 201410387805A CN 104346613 A CN104346613 A CN 104346613A
Authority
CN
China
Prior art keywords
mentioned
unit
image
straight line
frame
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
CN201410387805.6A
Other languages
Chinese (zh)
Other versions
CN104346613B (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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
Priority claimed from JP2013164741A external-priority patent/JP5858012B2/en
Priority claimed from JP2013164747A external-priority patent/JP5862623B2/en
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Publication of CN104346613A publication Critical patent/CN104346613A/en
Application granted granted Critical
Publication of CN104346613B publication Critical patent/CN104346613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1452Methods for optical code recognition including a method step for retrieval of the optical code detecting bar code edges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明的图像处理装置具备:取得单元,其取得对在框部分附加了代码信息的印迹进行摄像所得的印迹图像;确定单元,其将通过上述取得单元取得的印迹图像中的与上述框部分的印迹对应的框图像区域确定为读取上述代码信息的读取区域;读取单元,其从通过上述确定单元确定的上述读取区域读取上述代码信息。

The image processing device of the present invention includes: obtaining means for obtaining a print image obtained by imaging a print with code information attached to a frame part; A frame image area corresponding to the print is determined as a reading area for reading the code information; a reading unit, which reads the code information from the reading area determined by the determining unit.

Description

图像处理装置以及图像处理方法Image processing device and image processing method

技术领域technical field

本发明涉及一种图像处理装置、图像处理方法以及程序。The present invention relates to an image processing device, an image processing method, and a program.

背景技术Background technique

目前已知一种生成将预定的信息编码为像素集合的规则排列所得的代码信息的装置(US8,186,594B2)。Currently known is a device for generating coded information that encodes predetermined information as a regular arrangement of pixel sets (US8,186,594B2).

代码信息例如在形成在纸等记录介质上的状态下,通过移动电话机、智能手机等的摄像装置进行摄像。摄像装置通过对摄像所得的代码信息的图像信息实施预定的解码处理,取得由代码信息表示的原始的预定信息。For example, the code information is captured by an imaging device such as a mobile phone or a smartphone while being formed on a recording medium such as paper. The imaging device acquires original predetermined information represented by the code information by performing predetermined decoding processing on the image information of the code information captured by the image.

发明内容Contents of the invention

根据本发明,能够从摄像印迹所得的图像中适当地检测出框部分。According to the present invention, it is possible to appropriately detect a frame portion from an image obtained by imaging a print.

根据本发明的实施方式,是一种图像处理装置,其特征在于,具备:取得单元,其取得对向框部分附加了代码信息的印迹进行摄像所得的印迹图像;确定单元,其将通过上述取得单元取得的印迹图像中的与上述框部分的印迹对应的框图像区域确定为读取上述代码信息的读取区域;读取单元,其从通过上述确定单元确定的上述读取区域读取上述代码信息。According to an embodiment of the present invention, an image processing device is characterized by comprising: an acquisition unit that acquires a print image obtained by imaging a print with code information added to a frame portion; A frame image area corresponding to the footprint of the frame portion in the footprint image obtained by the unit is determined as a reading area for reading the code information; a reading unit that reads the code from the reading area determined by the determination unit information.

根据本发明的实施方式,是一种使用了图像处理装置的图像处理方法,该图像处理方法的特征在于,包括:取得对向框部分附加了代码信息的印迹进行摄像所得的印迹图像的取得步骤;将该取得的印迹图像中的与上述框部分的印迹对应的框图像区域确定为读取上述代码信息的读取区域的确定步骤;从该确定的上述读取区域读取上述代码信息的读取步骤。According to an embodiment of the present invention, there is an image processing method using an image processing device, and the image processing method is characterized by including the step of acquiring a print image obtained by imaging a print with code information attached to a frame portion. ; Determine the frame image area corresponding to the imprint of the above-mentioned frame part in the obtained imprint image as a determination step for reading the above-mentioned code information; read the above-mentioned code information from the determined above-mentioned reading area Take steps.

附图说明Description of drawings

图1是表示应用本发明的第一实施方式的移动终端的概要结构的框图。FIG. 1 is a block diagram showing a schematic configuration of a mobile terminal to which a first embodiment of the present invention is applied.

图2是表示图1的移动终端的代码读取处理的动作的一个例子的流程图。FIG. 2 is a flowchart showing an example of the operation of the code reading process of the mobile terminal shown in FIG. 1 .

图3是用于说明图2的代码读取处理的图。FIG. 3 is a diagram for explaining code reading processing in FIG. 2 .

图4是示意地表示图2的代码读取处理的图像的一个例子的图。FIG. 4 is a diagram schematically showing an example of an image in the code reading process of FIG. 2 .

图5是示意地表示图2的代码读取处理的图像的一个例子的图。FIG. 5 is a diagram schematically showing an example of an image in the code reading process of FIG. 2 .

图6是示意地表示图2的代码读取处理的图像的一个例子的图。FIG. 6 is a diagram schematically showing an example of an image in the code reading process of FIG. 2 .

图7是示意地表示图2的代码读取处理的图像的一个例子的图。FIG. 7 is a diagram schematically showing an example of an image in the code reading process of FIG. 2 .

图8是表示应用本发明的第二实施方式的移动终端的概要结构的框图。FIG. 8 is a block diagram showing a schematic configuration of a mobile terminal to which a second embodiment of the present invention is applied.

图9是表示图8的移动终端的代码读取处理的动作的一个例子的流程图。FIG. 9 is a flowchart showing an example of the operation of the code reading process of the mobile terminal in FIG. 8 .

图10是示意地表示图9的代码读取处理的图像的一个例子的图。FIG. 10 is a diagram schematically showing an example of an image in the code reading process of FIG. 9 .

图11是示意地表示图9的代码读取处理的图像的一个例子的图。FIG. 11 is a diagram schematically showing an example of an image in the code reading process of FIG. 9 .

图12是表示应用了本发明的第三实施方式的移动终端的概要结构的框图。FIG. 12 is a block diagram showing a schematic configuration of a mobile terminal to which Embodiment 3 of the present invention is applied.

图13是表示图12的移动终端的代码读取处理的动作的一个例子的流程图。FIG. 13 is a flowchart showing an example of the operation of the code reading process of the mobile terminal shown in FIG. 12 .

图14是用于说明图13的代码读取处理的图。FIG. 14 is a diagram for explaining code reading processing in FIG. 13 .

图15是示意地表示图13的代码读取处理的图像的一个例子的图。FIG. 15 is a diagram schematically showing an example of an image in the code reading process of FIG. 13 .

图16是示意地表示图13的代码读取处理的图像的一个例子的图。FIG. 16 is a diagram schematically showing an example of an image in the code reading process of FIG. 13 .

具体实施方式Detailed ways

以下,针对本发明,使用附图说明具体的形式。但是,发明的范围并不限于图示例子。Hereinafter, specific aspects of the present invention will be described using the drawings. However, the scope of the invention is not limited to the illustrated examples.

图1是表示应用本发明的第一实施方式的移动终端100的概要结构的框图。FIG. 1 is a block diagram showing a schematic configuration of a mobile terminal 100 to which the first embodiment of the present invention is applied.

如图1所示,移动终端100具备中央控制部1、存储器2、摄像部3、摄像控制部4、图像数据生成部5、代码处理部6、动作处理部7、显示部8、显示控制部9、语音通信部10、通信控制部11、操作输入部12等。As shown in FIG. 1 , the mobile terminal 100 includes a central control unit 1, a memory 2, an imaging unit 3, an imaging control unit 4, an image data generation unit 5, a code processing unit 6, an action processing unit 7, a display unit 8, and a display control unit. 9. Voice communication unit 10, communication control unit 11, operation input unit 12, etc.

另外,中央控制部1、存储器2、摄像部3、摄像控制部4、图像数据生成部5、代码处理部6、动作处理部7、显示控制部9、语音通信部10以及通信控制部11经由总线13连接。In addition, the central control unit 1, the memory 2, the imaging unit 3, the imaging control unit 4, the image data generation unit 5, the code processing unit 6, the motion processing unit 7, the display control unit 9, the voice communication unit 10, and the communication control unit 11 via Bus 13 connection.

此外,移动终端100例如由摄像装置、移动电话、PHS(个人手机系统)等在移动体通信网中使用的移动站、PDA(个人数字助理)等构成。In addition, the mobile terminal 100 is constituted by, for example, a camera, a mobile phone, a mobile station used in a mobile communication network such as a PHS (Personal Handyphone System), a PDA (Personal Digital Assistant), and the like.

中央控制部1控制移动终端100的各部。具体地说,中央控制部1具备控制移动终端100的各部的CPU(中央处理单元,省略图示),依照移动终端100用的各种处理程序(省略图示)进行各种控制动作。The central control unit 1 controls each unit of the mobile terminal 100 . Specifically, the central control unit 1 includes a CPU (central processing unit, not shown) that controls each unit of the mobile terminal 100 , and performs various control operations in accordance with various processing programs (not shown) for the mobile terminal 100 .

存储器2例如由DRAM(动态随机访问存储器)等构成。另外,存储器2具备暂时存储由中央控制部1和代码处理部6等进行处理的数据等的缓冲存储器、中央控制部1等的工作存储器、存储了与该移动终端100的功能有关的各种程序和数据的程序存储器等(都省略图示)。The memory 2 is constituted by, for example, DRAM (Dynamic Random Access Memory) or the like. In addition, the memory 2 includes a buffer memory temporarily storing data processed by the central control unit 1 and the code processing unit 6, etc., a work memory of the central control unit 1, etc., and various programs related to the functions of the mobile terminal 100 are stored. and program memory for data, etc. (both are omitted from the illustration).

摄像部3对盖印在记录介质P上的印章S的印迹Si(参照图3A)进行摄像。The imaging unit 3 images the imprint Si (see FIG. 3A ) of the seal S stamped on the recording medium P. As shown in FIG.

印章S在用于将印迹Si残留在记录介质P上的预定标记的周围形成有多角形状(例如正方形等)的框,形成为能够在该框将对预定的信息以像素集合的规则排列地进行编码所得的代码信息Sc附加到印迹Si的框部分Sw上。The stamp S forms a frame with a polygonal shape (such as a square) around a predetermined mark for leaving the imprint Si on the recording medium P, and is formed so that predetermined information can be arranged in a regular arrangement of pixel sets in the frame. The encoded code information Sc is attached to the frame portion Sw of the print Si.

印迹Si通过将印章S盖印在记录介质P上而残留在记录介质P上,在形成在印面的印图像Sp的周围残留与多角形状的框对应的框部分Sw。The imprint Si remains on the recording medium P by stamping the seal S on the recording medium P, and a frame portion Sw corresponding to a polygonal frame remains around the stamp image Sp formed on the stamp surface.

框部分Sw附加有多个将预定的信息以像素集合的规则排列地进行编码所得的代码信息Sc。即,框部分Sw在大致相等的长度的多个边Sa、……中的至少2个边Sa、Sa上分别附加有代码信息Sc。具体地说,在大致正方形的框部分Sw的4个边Sa、……上,在以对角线为基准成为线对称那样的方向上分别附加有相同的代码信息Sc。即,在印迹Si上多重地嵌入有代码信息Sc。另外,正方形的框部分Sw的4个角部分别附加有用于检测顶点C的预定形状(例如正方形等)的标志Sm。The frame portion Sw is attached with a plurality of code information Sc obtained by encoding predetermined information in a regular array of pixel sets. That is, in the frame portion Sw, code information Sc is added to at least two sides Sa, Sa among a plurality of sides Sa, . . . of approximately equal length. Specifically, the same code information Sc is added to each of the four sides Sa, . That is, the code information Sc is embedded multiple times in the imprint Si. In addition, the four corners of the square frame portion Sw are respectively attached with marks Sm for detecting a predetermined shape of the vertex C (for example, a square, etc.).

例如,从相对于预定位置的标志Sm隔开预定间隔的位置开始,在预定的方向上附加有代码信息Sc,使得在框部分Sw的各边Sa的宽度方向大致中央侧沿着该边Sa的延伸方向(与宽度方向大致垂直的垂直方向)。For example, code information Sc is added in a predetermined direction from a position separated by a predetermined interval from the mark Sm at a predetermined position so that the width direction of each side Sa of the frame portion Sw is substantially along the center side of the side Sa. Extending direction (vertical direction substantially perpendicular to the width direction).

在此,依照预定的编码形式(例如里德-所罗门码、戈莱码等)对原始的预定信息(例如URL等)进行编码而得到代码信息Sc。例如代码信息Sc以预定的维数规则地排列像素值“1”的白像素的集合和像素值“0”的黑像素的集合。Here, code information Sc is obtained by encoding original predetermined information (eg, URL, etc.) according to a predetermined encoding format (eg, Reed-Solomon code, Golay code, etc.). For example, the code information Sc regularly arranges a set of white pixels with a pixel value of "1" and a set of black pixels with a pixel value of "0" in predetermined dimensions.

此外,在本实施方式中,假设在将印章S盖印在记录介质P上时,在没有大致均等地将力施加到印面的整个面上的状态下盖印。因此,例如印迹Si的框部分Sw的一部分(例如图4A中的下侧的部分)膨胀,印迹Si的一部分(例如图4A中的左上侧的部分)产生缺白。In addition, in this embodiment, it is assumed that when stamping the seal S on the recording medium P, stamping is performed in a state where force is not applied substantially uniformly to the entire surface of the stamp surface. Therefore, for example, part of the frame portion Sw of imprinted Si (for example, the lower part in FIG. 4A ) swells, and a part of imprinted Si (for example, the upper left part in FIG. 4A ) is voided.

另外,摄像部3具备镜头部3a和电子摄像部3b。In addition, the imaging unit 3 includes a lens unit 3 a and an electronic imaging unit 3 b.

镜头部3a由缩放镜头、聚焦镜头等多个镜头构成。The lens unit 3 a is composed of a plurality of lenses such as a zoom lens and a focus lens.

电子摄像部3b例如由CCD(电荷耦合器件)、CMOS(互补金属氧化物半导体)等图像传感器构成,将通过了镜头部3a的各种镜头的光学像变换为二维的图像信号。The electronic imaging unit 3 b is composed of an image sensor such as CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor), for example, and converts optical images passed through various lenses of the lens unit 3 a into two-dimensional image signals.

此外,虽然省略图示,但摄像部3也可以具备调整通过镜头部3a的光的量的光圈。In addition, although illustration is omitted, the imaging unit 3 may include a diaphragm for adjusting the amount of light passing through the lens unit 3a.

摄像控制部4控制摄像部3对被摄体的摄像。即,摄像控制部4具备省略图示的定时产生器、驱动器等。另外,摄像控制部4通过定时产生器、驱动器对电子摄像部3b进行扫描驱动,在每个预定周期通过电子摄像部3b使得光学像变换为二维的图像信号,从该电子摄像部3b的摄像区域中逐个画面地读出帧图像而输出到图像数据生成部5。The imaging control unit 4 controls imaging of a subject by the imaging unit 3 . That is, the imaging control unit 4 includes a timing generator, a driver, and the like, which are not shown in the drawings. In addition, the imaging control unit 4 scans and drives the electronic imaging unit 3b through a timing generator and a driver, and converts the optical image into a two-dimensional image signal through the electronic imaging unit 3b at each predetermined cycle. Frame images are read screen by screen in the area and output to the image data generation unit 5 .

另外,摄像控制部4进行AF(自动聚焦处理)、AE(自动曝光处理)、AWB(自动白平衡)等被摄体的摄像条件的调整控制。In addition, the imaging control unit 4 performs adjustment control of imaging conditions of a subject such as AF (auto focus processing), AE (auto exposure processing), and AWB (auto white balance).

图像数据生成部5在针对从电子摄像部3b传送来的帧图像的模拟值的信号对RGB的每个颜色成分适当地调整增益后,通过采样保持电路(省略图示)进行采样保持,通过A/D变换器(省略图示)变换为数字数据,通过颜色处理电路(省略图示)进行包含像素内插处理以及γ修正处理在内的颜色处理后,生成数字值的亮度信号Y以及色差信号Cb、Cr(YUV数据)。The image data generator 5 adjusts the gain appropriately for each color component of RGB with respect to the signal of the analog value of the frame image transmitted from the electronic imaging unit 3b, and then performs sample-holding by a sample-and-hold circuit (not shown). A /D converter (not shown) converts it into digital data, performs color processing including pixel interpolation processing and γ correction processing by a color processing circuit (not shown), and generates a digital value luminance signal Y and color difference signal Cb, Cr (YUV data).

然后,图像数据生成部5将所生成的各帧图像的YUV数据依次地输出到存储器2,存储在该存储器2中。Then, the image data generation unit 5 sequentially outputs the generated YUV data of each frame image to the memory 2 and stores them in the memory 2 .

代码处理部6具备图像取得部6a、二值化部6b、直线推定部6c、框检测部6d、信息读取部6e。The code processing unit 6 includes an image acquisition unit 6a, a binarization unit 6b, a straight line estimation unit 6c, a frame detection unit 6d, and an information reading unit 6e.

此外,代码处理部6的各部例如由预定的逻辑电路构成,但该结构是一个例子,并不限于此。In addition, each part of the code processing part 6 is comprised by predetermined logic circuits, for example, but this structure is an example, and it is not limited to this.

图像取得部6a逐次地取得摄像盖印在记录介质P上的印迹Si所得的摄像图像Ia(参照图4)。The image acquisition unit 6 a sequentially acquires captured images Ia obtained by imaging imprints Si imprinted on the recording medium P (see FIG. 4 ).

即,图像取得部6a取得摄像图像(印迹图像)Ia,其对将代码信息Sc附加到预定的印图像Sp的周围的具有预定宽度的框部分Sw上所得的印迹Si进行摄像。具体地说,图像取得部6a从存储器2取得通过摄像部3摄像印迹Si并通过图像数据生成部5生成的摄像图像Ia的预定分辨率的图像数据的复制。That is, the image acquisition unit 6a acquires a captured image (imprint image) Ia of an imprint Si obtained by adding code information Sc to a frame portion Sw having a predetermined width around a predetermined print image Sp. Specifically, the image acquisition unit 6 a acquires, from the memory 2 , a copy of image data of a predetermined resolution of the captured image Ia generated by the image data generation unit 5 by imaging the print Si by the imaging unit 3 .

二值化部6b生成第一二值化图像Ib(参照图4b)。The binarization unit 6b generates a first binarized image Ib (see FIG. 4b ).

即,二值化部6b针对通过图像取得部6a取得的摄像图像Ia的图像数据(YUV数据)的亮度分量Y,实施按照预定的阈值进行二值化的二值化处理(例如适应型二值化处理等),生成第一二值化图像Ib的图像数据。That is, the binarization unit 6b performs binarization processing (for example, an adaptive binarization process) that performs binarization at a predetermined threshold on the luminance component Y of the image data (YUV data) of the captured image Ia acquired by the image acquisition unit 6a. processing, etc.) to generate the image data of the first binarized image Ib.

另外,二值化部6b生成第二二值化图像Id(参照图6C)。即,二值化部6b针对通过框检测部6d的映射变换部d2生成的映射变换后图像Ic的图像数据(YUV数据)的亮度分量Y,实施按照预定的阈值进行二值化的二值化处理(例如适应型二值化处理等),生成第二二值化图像Id的图像数据。In addition, the binarization unit 6b generates a second binarized image Id (see FIG. 6C ). That is, the binarization unit 6b performs binarization in accordance with a predetermined threshold value on the luminance component Y of the image data (YUV data) of the map-converted image Ic generated by the map conversion unit d2 of the frame detection unit 6d. processing (for example, adaptive binarization processing, etc.) to generate image data of the second binarized image Id.

此外,上述二值化处理是公知的技术,因此在此省略详细的说明。In addition, the above-mentioned binarization processing is a well-known technique, so detailed description thereof will be omitted here.

直线推定部6c在通过图像取得部6a取得的摄像图像Ia内,构成与印章S的多角形状的框对应的框部分Sw的外侧轮廓,推定与多角形状的框的角数对应的预定个数的直线L。具体地说,直线推定部6c具备轮廓确定部c1和直线确定部c2。The straight line estimating unit 6c configures the outer contour of the frame portion Sw corresponding to the polygonal frame of the stamp S in the captured image Ia acquired by the image acquiring unit 6a, and estimates a predetermined number of points corresponding to the number of corners of the polygonal frame. Straight L. Specifically, the straight line estimation unit 6c includes a contour specifying unit c1 and a straight line specifying unit c2.

轮廓确定部c1确定与印迹Si的框部分Sw的外侧轮廓对应的多角形状的凸包区域A1。The contour specifying unit c1 specifies a polygonal convex hull region A1 corresponding to the outer contour of the frame portion Sw of the footprint Si.

即,轮廓确定部c1确定与通过图像取得部6a取得的摄像图像Ia的框部分Sw的外侧轮廓对应的多角形状的凸包区域A1(参照图4C)。That is, the contour specifying unit c1 specifies a polygonal convex hull region A1 corresponding to the outer contour of the frame portion Sw of the captured image Ia acquired by the image acquiring unit 6a (see FIG. 4C ).

具体地说,轮廓确定部c1例如取得与通过二值化部6b生成的摄像图像Ia对应的第一二值化图像Ib的图像数据,对该图像数据实施凸包处理,由此针对存在于预定范围内的像素值“0”的黑像素的集合分别计算将构成最外轮廓的像素之间连接起来的多个线段。由此,存在于预定范围内的像素值“0”的黑像素成为被多个线段包围的状态,由这些线段构成的多角形状的区域成为不存在凹部的凸包区域A。这时,轮廓确定部c1使在二值化图像内成为处理对象的范围发生变化,由此形成多个凸包区域A。Specifically, for example, the contour specifying unit c1 obtains the image data of the first binarized image Ib corresponding to the captured image Ia generated by the binarizing unit 6b, and performs convex hull processing on the image data, whereby A set of black pixels with a pixel value "0" within the range calculates a plurality of line segments connecting pixels constituting the outermost outline. As a result, black pixels with a pixel value of "0" existing within a predetermined range are surrounded by a plurality of line segments, and the polygonal area formed by these line segments becomes a convex hull area A without concave portions. At this time, the contour specifying unit c1 forms a plurality of convex hull regions A by changing the range to be processed within the binarized image.

然后,轮廓确定部c1在形成的多个凸包区域A、……中,将面积最大的凸包区域A确定为与印迹Si的框部分Sw的外侧轮廓对应的多角形状(例如六角形状)的凸包区域A1。Then, the contour determination unit c1 determines the convex hull region A having the largest area among the formed plurality of convex hull regions A, ..., as a polygonal shape (for example, a hexagonal shape) corresponding to the outer contour of the frame portion Sw of the imprint Si. Convex hull area A1.

此外,上述凸包处理的内容是一个例子,并不限于此,能够适当地任意进行变更。另外,凸包区域A是公知的技术,因此在此省略详细的说明。In addition, the content of the above-mentioned convex hull processing is an example, it is not limited to this, and it can change arbitrarily suitably. In addition, the convex hull region A is a well-known technology, so detailed description is omitted here.

直线确定部c2确定构成与印迹Si的框部分Sw对应的框图像Wa的外侧轮廓的预定个数的直线L(参照图6A)。The straight line specifying unit c2 specifies a predetermined number of straight lines L constituting the outer contour of the frame image Wa corresponding to the frame portion Sw of the imprint Si (see FIG. 6A ).

即,直线确定部c2根据构成通过轮廓确定部c1确定的多角形状(例如六角形状)的凸包区域A1的多个(例如6个)顶点B、……的位置,确定构成框图像Wa的外侧轮廓的预定个数的直线(例如构成正方形的外侧轮廓的4个直线)L。具体地说,直线确定部c2根据通过构成多角形状的凸包区域A1的任意2个顶点B、B的多个直线L、……中的各直线L和多角形状的凸包区域A1重叠的像素的个数和相邻的直线L之间的相对关系中的至少一方,确定构成框图像Wa的外侧轮廓的预定个数的直线L。That is, the straight line specifying unit c2 specifies the outer sides of the frame image Wa based on the positions of a plurality of (for example, six) vertices B constituting the convex hull area A1 of the polygonal shape (for example, hexagonal shape) specified by the outline specifying unit c1. A predetermined number of straight lines (for example, four straight lines constituting the outer contour of a square) L of the outline. More specifically, the straight line specifying unit c2 is based on pixels overlapping each of a plurality of straight lines L passing through any two vertices B, B constituting the polygonal convex hull area A1 and each of the straight lines L and the polygonal convex hull area A1. At least one of the relative relationship between the number of adjacent straight lines L determines the predetermined number of straight lines L constituting the outer contour of the frame image Wa.

即,直线确定部c2在通过了构成通过轮廓确定部c1确定的多角形状的凸包区域A1的任意2个顶点B、B的多个直线L、……中,确定构成多角形状的凸包区域A1的多个像素重叠的个数比预定值多的直线L,将该直线L确定为构成框图像Wa的外侧轮廓的直线L。That is, the straight line specifying unit c2 specifies the convex hull region constituting the polygonal shape among the plurality of straight lines L, . A straight line L in which a plurality of pixels of A1 overlap more than a predetermined value is determined as the straight line L constituting the outer contour of the frame image Wa.

具体地说,直线确定部c2例如针对构成通过轮廓确定部c1确定的多角形状的凸包区域A1的像素实施基于RANSAC法的直线检测处理,由此确定构成框图像Wa的外侧轮廓的直线L。例如,直线确定部c2从构成凸包区域A1的6个顶点B、……中选择任意2个顶点B、B,将把这些2个顶点B、B连接起来而成的直线L确定为构成框图像Wa的正方形的外侧轮廓的直线L的候选(候选直线L)。然后,直线确定部c2针对所确定的全部候选直线L,计算构成与凸包区域A1的多个像素重叠的像素数,将计算出的像素数比预定值多的候选直线L确定为构成框图像Wa的外侧轮廓的直线L。由此,例如将与印迹Si的产生缺白的一部分对应的候选直线La、相对较短的候选直线Lb以外的候选直线Lc确定为构成框图像Wa的外侧轮廓的直线L(参照图5A)。Specifically, the straight line specifying unit c2 performs line detection processing based on the RANSAC method on pixels constituting the polygonal convex hull region A1 specified by the outline specifying unit c1, thereby specifying the straight line L constituting the outer contour of the frame image Wa. For example, the straight line specifying unit c2 selects any two vertices B, B from among the six vertices B, ... constituting the convex hull area A1, and specifies a straight line L connecting these two vertices B, B as a frame. Candidates for the straight line L of the square outer contour of the image Wa (candidate straight line L). Then, the straight line specifying unit c2 calculates the number of pixels overlapping the plurality of pixels constituting the convex hull region A1 for all the specified straight line candidates L, and determines the straight line candidate L whose calculated number of pixels is larger than a predetermined value as the frame image. The straight line L of the outer contour of Wa. Thus, for example, the candidate straight line La corresponding to a portion of the imprint Si where the void occurs, and the candidate straight line Lc other than the relatively short candidate straight line Lb are determined as the straight line L constituting the outer contour of the frame image Wa (see FIG. 5A ).

此外,RANSAC法的直线检测处理是公知的技术,因此在此省略详细的说明。In addition, since the line detection processing of the RANSAC method is a well-known technique, detailed description is omitted here.

另外,直线确定部c2在通过了构成由轮廓确定部c1确定的多角形状的凸包区域A1的任意2个顶点B、B的多个直线L、……中,确定与相邻的直线L所成的角度与多角形状的框的内角大致相等的直线L,向构成该直线L的像素中的与多角形状的凸包区域A1重叠的像素附加加权并计算每个直线L的评价值,将计算出的评价值高的直线L确定为构成框图像Wa的外侧轮廓的直线L。In addition, the straight line specifying unit c2 specifies, among the plurality of straight lines L, . A straight line L whose angle is approximately equal to the inner angle of the polygonal frame, weights the pixels that overlap the polygonal convex hull area A1 among the pixels constituting the straight line L, and calculates the evaluation value of each straight line L, and calculates The straight line L with a high evaluation value obtained is determined as the straight line L constituting the outer contour of the frame image Wa.

具体地说,直线确定部c2例如针对全部的候选直线L确定与相邻的直线L所成的角度与印章S的正方形的框的内角(90°)大致相等的候选直线Ld。然后,直线确定部c2向构成所确定的候选直线Ld的像素中的与多角形状的凸包区域A1重叠的像素附加加权,依照预定的计算公式计算每个候选直线L的评价值。例如,在印迹Si的框图像Wa的一部分(例如图5B中的下侧的部分)膨胀的情况下,直线确定部c2如果从该部分的3个顶点B、……中选择任意2个顶点B、B而确定候选直线L,则成为确定了3条候选直线L、……的状态。然后,直线确定部c2针对这些3条候选直线L、……的每一个分别计算与在各端部相邻的候选直线L(在图5B中,为用双点划线表示的左右2个候选直线Lc)所成的角度,确定所计算出的角度大致等于90°的候选直线L(在图5B中,为用点划线表示的候选直线Ld)。进而,直线确定部c2在构成所确定的候选直线L的像素中,确定与多角形状的凸包区域A1重叠的像素(例如在图5B中,为左右两端部侧的像素),向所确定的像素附加加权,依照预定的计算公式计算评价值。Specifically, the line specifying unit c2 specifies, for example, a candidate line Ld whose angle with an adjacent line L is approximately equal to the inner angle (90°) of the square frame of the stamp S for all candidate lines L. Then, the line specifying unit c2 adds weights to pixels overlapping the polygonal convex hull region A1 among the pixels constituting the specified candidate line Ld, and calculates an evaluation value for each candidate line L according to a predetermined calculation formula. For example, when a part of the frame image Wa of the imprint Si (for example, the lower part in FIG. , B and the candidate straight line L is determined, it becomes a state that three candidate straight lines L, . . . are determined. Then, for each of these three candidate straight lines L, ... , the straight line determination unit c2 calculates the candidate straight lines L adjacent to each end (in FIG. The angle formed by the straight lines Lc) determines the candidate straight line L whose calculated angle is approximately 90° (in FIG. 5B, the candidate straight line Ld indicated by the dotted line). Furthermore, the straight line specifying unit c2 specifies, among the pixels constituting the specified candidate straight line L, pixels overlapping the polygonal convex hull region A1 (for example, in FIG. The pixels are weighted, and the evaluation value is calculated according to a predetermined calculation formula.

然后,直线确定部c2对计算出的各候选直线L的评价值进行比较,将评价值最高的候选直线Ld确定为构成框图像Wa的外侧轮廓的直线L。例如,用点划线表示的候选直线Ld没有成为沿着多角形状的凸包区域A1的边缘的形状,但左右两端部侧的像素与多角形状的凸包区域A1重叠,因此评价值比用虚线表示的其他候选直线Ld要高,确定为构成框图像Wa的外侧轮廓的直线L。Then, the line specifying unit c2 compares the calculated evaluation values of the candidate straight lines L, and specifies the candidate straight line Ld with the highest evaluation value as the straight line L constituting the outer contour of the frame image Wa. For example, the candidate straight line Ld indicated by the dashed-dotted line does not have a shape along the edge of the polygonal convex-hull area A1, but the pixels on the left and right end sides overlap with the polygonal-shaped convex-hull area A1. The other candidate straight line Ld indicated by the dotted line is higher and determined as the straight line L constituting the outer contour of the frame image Wa.

这样,直线推定部6c在摄像图像Ia(第一二值化图像Ib)中,推定构成与印章S的正方形的框对应的框图像Wa的外侧轮廓的4条直线L、……。具体地说,直线推定部6c将上边对应直线L1、下边对应直线L2、左边对应直线L3以及右边对应直线L4推定为与正方形的上下左右的各边对应的直线L(参照图6A)。In this way, the straight line estimating unit 6c estimates four straight lines L, . Specifically, the straight line estimation unit 6c estimates the straight line L1 corresponding to the upper side, the straight line L2 corresponding to the lower side, the straight line L3 corresponding to the left side, and the straight line L4 corresponding to the right side as straight lines L corresponding to the upper, lower, left, and right sides of the square (see FIG. 6A ).

框检测部6d检测由通过直线推定部6c推定出的预定个数的直线L构成的印迹Si的摄像图像Ia的框图像Wa。具体地说,框检测部6d具备顶点确定部d1、映射变换部d2。The frame detection unit 6d detects the frame image Wa of the captured image Ia of the footprint Si composed of a predetermined number of straight lines L estimated by the straight line estimation unit 6c. Specifically, the frame detection unit 6d includes a vertex determination unit d1 and a map conversion unit d2.

顶点确定部d1确定摄像图像Ia的框图像Wa的顶点C(参照图6B)。The vertex specifying unit d1 specifies the vertex C of the frame image Wa of the captured image Ia (see FIG. 6B ).

即,顶点确定部d1将通过直线确定部c2确定的预定个数的直线L之间相交的预定个数的点C确定为印迹Si的框部分Sw(框图像Wa)的顶点C。具体地说,顶点确定部d1在摄像图像Ia内,将通过直线确定部c2确定的构成外侧轮廓的4条直线L、……中的相邻直线L之间相交而形成的4个点确定为框图像Wa的顶点C。这时,针对4条直线L、……中的相互不相交的直线L之间(例如上边对应直线L1和左边对应直线L3等),顶点确定部d1通过使至少一方的直线L向预定方向延长来求出交点。That is, the vertex determination unit d1 determines a predetermined number of points C intersecting the predetermined number of straight lines L determined by the straight line determination unit c2 as vertices C of the frame portion Sw (frame image Wa) of the footprint Si. Specifically, the vertex specifying unit d1 specifies four points formed by the intersection of adjacent straight lines L among the four straight lines L constituting the outer contour specified by the straight line specifying unit c2 in the captured image Ia as Vertex C of frame image Wa. At this time, between the non-intersecting straight lines L among the four straight lines L, ... (for example, the straight line L1 corresponding to the upper side and the straight line L3 corresponding to the left side, etc.), the vertex specifying part d1 extends at least one of the straight lines L in a predetermined direction. to find the point of intersection.

然后,框检测部6d根据通过顶点确定部d1确定的预定个数的顶点C,检测摄像图像Ia的框图像Wa。即,框检测部6d将以确定出的4个点作为顶点C的区域检测为印迹Si的框部分Sw(框图像Wa)。Then, the frame detection unit 6d detects the frame image Wa of the captured image Ia based on the predetermined number of vertices C specified by the vertex specifying unit d1. That is, the frame detection unit 6 d detects the region having the identified four points as the vertices C as the frame portion Sw of the footprint Si (frame image Wa).

此外,顶点确定部d1也可以根据在摄像图像Ia内与印迹Si的标志Sm对应的标志图像Ma的坐标位置,确定框部分Sw(框图像Wa)的顶点C。In addition, the vertex specifying unit d1 may specify the vertex C of the frame portion Sw (frame image Wa) based on the coordinate position of the mark image Ma corresponding to the mark Sm of the imprint Si in the captured image Ia.

即,例如如图7A所示,在印迹Si的一部分(例如右上部分)发生了渗出的情况下,该一部分在二值化时会成为像素值“0”的黑色像素,有可能无法适当地从该印迹Si的摄像图像Ia推定构成框图像Wa的外侧轮廓的直线L。因此,在印面上,利用在标志Sm的近旁(预定范围内)存在多角形状的框的顶点的情况,顶点确定部d1考虑到摄像图像Ia内的标志图像Ma的坐标位置,确定框图像Wa的顶点C。That is, for example, as shown in FIG. 7A , when a part of the imprint Si (for example, the upper right part) bleeds out, this part becomes a black pixel with a pixel value "0" at the time of binarization, and it may not be properly The straight line L constituting the outer contour of the frame image Wa is estimated from the captured image Ia of the footprint Si. Therefore, on the print surface, utilizing the fact that there are vertices of a polygonal frame near the mark Sm (within a predetermined range), the vertex specifying unit d1 determines the frame image Wa in consideration of the coordinate position of the mark image Ma in the captured image Ia. Vertex C.

具体地说,顶点确定部d1例如准备与标志Sm的形状对应的图案图像Pa(参照图7B),利用该图案图像Pa的特征信息(例如SIFT(Scale-InvariantFeatures Transform:尺度不变量特征变换)特征量),在摄像图像Ia内确定包含与图案图像Pa类似的标志图像Ma的区域。然后,顶点确定部d1在摄像图像Ia内,从以标志图像Ma的坐标位置为基准的预定范围内确定框图像Wa的顶点C。由此,顶点确定部d1能够从发生了印迹Si的渗出的部分确定对应的框图像Wa的顶点C,能够通过框检测部6d适当地检测摄像图像Ia的框图像Wa(参照图7C)。Specifically, for example, the vertex specifying unit d1 prepares a pattern image Pa corresponding to the shape of the mark Sm (see FIG. 7B ), and utilizes feature information (such as SIFT (Scale-Invariant Features Transform: Scale-Invariant Features Transform) feature of the pattern image Pa to amount) to identify a region including a logo image Ma similar to the pattern image Pa in the captured image Ia. Then, the vertex specifying unit d1 specifies the vertex C of the frame image Wa within a predetermined range based on the coordinate position of the marker image Ma in the captured image Ia. Thereby, the vertex specifying unit d1 can specify the vertex C of the corresponding frame image Wa from the portion where the blotch Si occurs, and the frame image Wa of the captured image Ia can be appropriately detected by the frame detecting unit 6d (see FIG. 7C ).

映射变换部d2进行生成映射变换后图像Ic(参照图6B)的映射变换处理。The map conversion unit d2 performs map conversion processing for generating a map-converted image Ic (see FIG. 6B ).

即,映射变换部d2根据通过顶点确定部d1确定的预定个数的顶点C,针对通过图像取得部6a取得的摄像图像Ia进行映射变换处理,生成多角形状的映射变换后图像Ic。具体地说,映射变换部d2计算通过顶点确定部d1确定的具有外形歪斜的四角形状的框图像Wa的4个顶点C、……的坐标位置成为正方形的4个顶点C、……的坐标位置的坐标变换公式。然后,映射变换部d2依照计算出的坐标变换公式,对印迹Si的摄像图像Ia实施映射变换处理,生成与印迹Si的框部分Sw对应的框图像Wa的外形被变换为正方形的映射变换后图像Ic。That is, the mapping conversion unit d2 performs mapping conversion processing on the captured image Ia acquired by the image acquisition unit 6a based on the predetermined number of vertices C specified by the vertex specifying unit d1, and generates a polygonal map-transformed image Ic. Specifically, the mapping conversion unit d2 calculates the coordinate positions of the four vertices C, . . . of the four vertices C, . Coordinate transformation formula. Then, the mapping transformation unit d2 performs mapping transformation processing on the captured image Ia of the footprint Si according to the calculated coordinate transformation formula, and generates a map-transformed image in which the outer shape of the frame image Wa corresponding to the frame portion Sw of the footprint Si is transformed into a square. Ic.

然后,框检测部6d在通过映射变换部d2生成的映射变换后图像Ic(多角形状的摄像图像)内,检测与印章S的框对应的正方形的框部分Sw(框图像Wa)。Then, the frame detection unit 6d detects a square frame portion Sw (frame image Wa) corresponding to the frame of the stamp S in the map-converted image Ic (polygonal captured image) generated by the map conversion unit d2.

此外,上述映射变换处理是公知的技术,在此省略详细的说明。In addition, the above-mentioned mapping conversion processing is a well-known technique, and a detailed description thereof will be omitted here.

信息读取部6e进行读取处理,即从代码信息Sc中读取原始的预定的信息。The information reading unit 6e performs reading processing, that is, reading original predetermined information from the code information Sc.

即,信息读取部6e从通过框检测部6d检测出的印迹Si的摄像图像Ia的框部分Sw(框图像Wa)内的代码信息Sc中读取预定的信息。具体地说,信息读取部6e从与通过映射变换部d2生成的映射变换后图像Ic对应的第二二值图像Id的框图像Wa内的代码信息Sc中读取预定的信息。That is, the information reading unit 6e reads predetermined information from the code information Sc in the frame portion Sw (frame image Wa) of the captured image Ia of the imprint Si detected by the frame detecting unit 6d. Specifically, the information reading unit 6e reads predetermined information from the code information Sc in the frame image Wa of the second binary image Id corresponding to the mapped image Ic generated by the mapping converting unit d2.

例如,信息读取部6e在第二二值化图像Id内,检测构成通过框检测部6d检测出的框图像Wa的大致平行的2个边缘,将把这些2个边缘的中间点之间连接起来而成的预定形状(例如正方形等)的线确定为代码信息Sc的读取区域D(参照图6C)。然后,信息读取部6e从读取区域D的预定位置(例如左上角部等)开始沿着预定方向进行扫描,分别确定像素值“1”的白像素的集合和像素值“0”的黑像素的集合所存在的坐标位置。信息读取部6e针对所确定的白像素的集合和黑像素的集合的排列,实施与代码信息Sc的编码方式对应的解码处理,读取由代码信息Sc表示的原始的预定的信息(例如URL等)。For example, the information reading unit 6e detects two substantially parallel edges constituting the frame image Wa detected by the frame detecting unit 6d in the second binarized image Id, and connects the intermediate points of these two edges. Lines of a predetermined shape (such as a square, for example) formed by rising up are defined as a reading area D of the code information Sc (see FIG. 6C ). Then, the information reading unit 6e scans along a predetermined direction from a predetermined position (for example, the upper left corner) of the reading area D, and respectively determines a set of white pixels with a pixel value "1" and a set of black pixels with a pixel value "0". The coordinate position where the collection of pixels exists. The information reading unit 6e performs decoding processing corresponding to the coding method of the code information Sc for the determined arrangement of the set of white pixels and the set of black pixels, and reads the original predetermined information represented by the code information Sc (for example, URL wait).

这时,信息读取部6e对读取区域D中的与框部分Sw的各边Sa对应的每个区域进行读取处理。即,以与框部分Sw的边Sa的个数对应的次数(例如4次)进行从代码信息Sc读取原始的预定的信息。在此,框部分Sw的各边Sa分别被附加了相同的代码信息Sc,因此信息读取部6e例如也可以构成为在检测出2处以上的原始的预定的信息而读取出多个的情况下,判定为能够适当地读取该预定的信息。At this time, the information reading unit 6e performs reading processing for each area corresponding to each side Sa of the frame portion Sw in the reading area D. As shown in FIG. That is, reading of the original predetermined information from the code information Sc is performed at the number of times (for example, 4 times) corresponding to the number of sides Sa of the frame portion Sw. Here, the same code information Sc is attached to each side Sa of the frame portion Sw. Therefore, the information reading unit 6e may be configured to read out a plurality of original predetermined information after detecting two or more original predetermined information, for example. In this case, it is determined that the predetermined information can be properly read.

此外,上述读取处理是公知的技术,因此在此省略详细的说明。In addition, since the above-mentioned reading process is a well-known technique, detailed description is abbreviate|omitted here.

动作处理部7依照通过信息读取部6e读取的代码信息Sc的原始的预定信息来执行预定的动作。The operation processing part 7 executes a predetermined operation according to the original predetermined information of the code information Sc read by the information reading part 6e.

即,动作处理部7在通过信息读取部6e读取了预定个数以上的预定的信息的情况下,控制与该预定的信息对应的处理的执行。具体地说,例如在读取了URL作为预定的信息的情况下,动作处理部7控制通信控制部11,访问所取得的URL规定的因特网的特定的网页。然后,动作处理部7依照预先设定的各种处理(例如特定的声音、图像的重放等)的执行指示,控制显示控制部9、语音通信部10等,使其执行各种处理。That is, the operation processing unit 7 controls the execution of the processing corresponding to the predetermined information when the information reading unit 6 e has read a predetermined number or more of predetermined information. Specifically, for example, when a URL is read as predetermined information, the operation processing unit 7 controls the communication control unit 11 to access a specific web page on the Internet specified by the acquired URL. Then, the operation processing unit 7 controls the display control unit 9, the voice communication unit 10, etc. to execute various processes according to execution instructions of various processes set in advance (for example, playback of specific sounds and images, etc.).

显示部8例如由液晶显示面板等构成,根据来自显示控制部9的视频信号,将通过摄像部3摄像所得的图像(例如实况图像等)显示在显示画面上。The display unit 8 is composed of, for example, a liquid crystal display panel or the like, and displays an image captured by the imaging unit 3 (for example, a live image, etc.) on a display screen based on a video signal from the display control unit 9 .

显示控制部9进行以下控制,即读出暂时存储在存储器2中的显示用的图像数据并使得显示在显示部8上。The display control unit 9 performs control to read out display image data temporarily stored in the memory 2 and display it on the display unit 8 .

具体地说,显示控制部9具备VRAM(Video Random Access Memory:视频随机存取存储器)、VRAM控制器、数字视频编码器等。另外,数字视频编码器在中央控制部1的控制下经由VRAM控制器从VRAM中以预定的重放帧速率(例如30fps)读出从存储器2读出并存储在VRAM(省略图示)中的亮度信号Y以及色差信号Cb、Cr,基于这些数据产生视频信号并输出到显示部8。Specifically, the display control unit 9 includes a VRAM (Video Random Access Memory), a VRAM controller, a digital video encoder, and the like. In addition, under the control of the central control unit 1, the digital video encoder reads from the VRAM at a predetermined playback frame rate (for example, 30 fps) via the VRAM controller. The luminance signal Y and the color difference signals Cb and Cr are based on these data to generate a video signal and output it to the display unit 8 .

例如,显示控制部9将通过摄像部3和摄像控制部4摄像并通过图像数据生成部5生成的多个帧图像、……以预定的显示帧速率一边逐次更新,一边实况显示在显示部8上。For example, the display control unit 9 displays a plurality of frame images captured by the imaging unit 3 and the imaging control unit 4 and generated by the image data generation unit 5 on the display unit 8 while updating them sequentially at a predetermined display frame rate. superior.

语音通信部10与经由通信网络N连接的外部设备的外部用户进行通话。The audio communication unit 10 communicates with an external user of an external device connected via the communication network N.

具体地说,语音通信部10具备麦克风10a、扬声器10b、数据变换部10c等。另外,语音通信部10通过数据变换部10c对从麦克风10a输入的用户的送话声音进行A/D变换处理,将送话声音数据输出到中央控制部1,并且在中央控制部1的控制下,通过数据变换部10c对从通信控制部11输出并输入的接听声音数据等声音数据进行D/A变换处理,从扬声器10b输出。Specifically, the audio communication unit 10 includes a microphone 10a, a speaker 10b, a data conversion unit 10c, and the like. In addition, the voice communication unit 10 performs A/D conversion processing on the user's speech voice input from the microphone 10a through the data conversion unit 10c, outputs the speech voice data to the central control unit 1, and under the control of the central control unit 1 The data conversion unit 10c performs D/A conversion processing on audio data such as answering audio data output and input from the communication control unit 11, and outputs it from the speaker 10b.

通信控制部11经由通信网络N和通信天线11a进行数据的收发。The communication control unit 11 transmits and receives data via the communication network N and the communication antenna 11a.

即,通信天线11a是能够进行与该移动终端100在与无线基站(省略图示)的通信中采用的预定的通信方式(例如W-CDMA(Wideband Code DivisionMultiple Access:宽带码分多址)方式、GSM(Global System for MobileCommunications:全球移动通讯系统;注册商标)方式等)对应的数据的收发的天线。另外,通信控制部11依照与预定的通信方式对应的通信协议,通过在该通信方式中设定的通信信道在与无线基站之间经由通信天线11a进行数据的收发。即,通信控制部11根据从中央控制部1输出并输入的指示信号,向通信对方的外部设备进行与该外部设备的外部用户的通话中的声音的收发和电子邮件的数据的收发。That is, the communication antenna 11a is capable of performing a predetermined communication method (for example, W-CDMA (Wideband Code Division Multiple Access: Wideband Code Division Multiple Access) method, An antenna for sending and receiving data corresponding to GSM (Global System for Mobile Communications: Global System for Mobile Communications; registered trademark) method, etc.). In addition, the communication control unit 11 transmits and receives data to and from the wireless base station via the communication antenna 11 a through the communication channel set in the communication method according to the communication protocol corresponding to the predetermined communication method. In other words, the communication control unit 11 transmits and receives voice during a call with an external user of the external device and transmits and receives data of an e-mail to the external device of the communication partner based on the instruction signal output and input from the central control unit 1 .

此外,通信控制部11的结构是一个例子,并不限于此,能够适当地任意变更,例如虽然省略图示,但也可以构成为装载无线LAN模块,能够经由接入点(Access Point)访问通信网络N。In addition, the configuration of the communication control unit 11 is an example and is not limited thereto, and can be changed arbitrarily as appropriate. For example, although not shown in the figure, it can also be configured to be equipped with a wireless LAN module to allow access to communication via an access point (Access Point). Network N.

通信网络N例如是经由无线基站、网关服务器(省略图示)等将移动终端100与外部设备连接的通信网络。The communication network N is, for example, a communication network that connects the mobile terminal 100 to external devices via a wireless base station, a gateway server (not shown), or the like.

另外,通信网络N例如是利用专用线和现有的普通公用线路构筑的通信网络,能够应用LAN(局域网)、WAN(广域网)等各种线路形式。另外,通信网路N例如包括电话线路网、ISDN线路网、专用线、移动通信网、通信卫星线路、CATV线路网等各种通信网络网、IP网络、VoIP(Voice over InternetProtocol:网际网络电话)网关、因特网服务运营商等。In addition, the communication network N is, for example, a communication network constructed using dedicated lines and existing general public lines, and various line types such as LAN (Local Area Network) and WAN (Wide Area Network) can be applied. In addition, the communication network N includes, for example, various communication networks such as a telephone line network, an ISDN line network, a dedicated line, a mobile communication network, a communication satellite line, and a CATV line network, an IP network, and VoIP (Voice over Internet Protocol: Internet Telephony). Gateways, Internet Service Providers, etc.

操作输入部12用于向终端主体输入各种指示。The operation input unit 12 is used to input various instructions to the terminal body.

具体地说,操作输入部12具备被摄体的摄影指示相关的快门按键、模式和功能等的选择指示相关的上下左右的光标按键和决定按键、电话的来电和电子邮件的收发等的执行指示相关的通信关联按键、文本的输入指示相关的数字按键和记号按键等各种按键(都省略图示)。Specifically, the operation input unit 12 includes a shutter button for instructing photography of a subject, up, down, left, and right cursor buttons and a decision button for selection instructions such as modes and functions, and execution instructions such as telephone calls and e-mail transmission and reception. Related communication related keys, various keys such as number keys and mark keys related to text input instructions (both are omitted from the illustration).

另外,如果由用户操作了各种按键,则操作输入部12向中央控制部1输出与所操作的按键对应的操作指示。中央控制部1依照从操作输入部12输出并输入的操作指示,使各部执行预定的动作(例如被摄体的摄像、电话的来电、电子邮件的收发等)。Also, when various keys are operated by the user, the operation input unit 12 outputs an operation instruction corresponding to the operated key to the central control unit 1 . The central control unit 1 causes each unit to perform a predetermined operation (for example, imaging a subject, receiving a telephone call, sending and receiving an e-mail, etc.) in accordance with an operation instruction output and input from the operation input unit 12 .

此外,操作输入部12既可以具有与显示部8一体地设置的触摸屏,也可以根据用户对触摸屏的预定操作,向中央控制部1输出与该预定操作对应的操作指示。In addition, the operation input unit 12 may have a touch screen integrally provided with the display unit 8 , or may output an operation instruction corresponding to the predetermined operation to the central control unit 1 according to a user's predetermined operation on the touch screen.

<代码读取处理><Code read processing>

接着,参照图2~图7说明移动终端100的代码读取处理。Next, code reading processing of the mobile terminal 100 will be described with reference to FIGS. 2 to 7 .

图2是表示代码读取处理的动作的一个例子的流程图。FIG. 2 is a flowchart showing an example of the operation of code reading processing.

此外,假设通过以下的代码读取处理而摄像的印迹Si例如被盖章在明信片等记录介质P的预定位置(参照图3A)。另外,假设印迹Si的框部分Sw的各边Sa分别被附加了相同的代码信息Sc。In addition, it is assumed that the imprint Si imaged by the following code reading process is stamped, for example, at a predetermined position on a recording medium P such as a postcard (see FIG. 3A ). In addition, it is assumed that the same code information Sc is added to each side Sa of the frame portion Sw of the imprint Si.

如图2所示,首先,如果根据用户对操作输入部12的预定操作输入了摄像指示,则摄像控制部4使摄像部3摄像印迹Si,图像数据生成部5生成从电子摄像部3b传送的摄像图像Ia的图像数据(步骤S1;参照图3B)。As shown in FIG. 2, first, if an imaging instruction is input according to a predetermined operation of the user on the operation input unit 12, the imaging control unit 4 causes the imaging unit 3 to image the imprint Si, and the image data generation unit 5 generates the image data transmitted from the electronic imaging unit 3b. The image data of the image Ia is captured (step S1; refer to FIG. 3B).

然后,图像数据生成部5将生成的摄像图像Ia的YUV数据输出到存储器2,存储在该存储器2中。Then, the image data generation unit 5 outputs the generated YUV data of the captured image Ia to the memory 2 and stores it in the memory 2 .

此外,为了在更接近正方形的状态下容易地摄像印迹Si,显示控制部9也可以使显示部8显示与印迹Si的外形对应的引导显示。In addition, in order to easily image the imprint Si in a more square state, the display control unit 9 may cause the display unit 8 to display a guide display corresponding to the outer shape of the imprint Si.

接着,代码处理部6的图像取得部6a从存储器2取得通过图像数据生成部5生成的摄像图像Ia的预定的分辨率的图像数据(例如亮度数据)(步骤S2;参照图4A)。接着,二值化部6b针对通过图像取得部6a取得的摄像图像Ia的图像数据实施以预定的阈值进行二值化的二值化处理,生成第一二值化图像Ib(参照图4B)的图像数据(步骤S3)。Next, the image acquisition unit 6a of the code processing unit 6 acquires image data (for example, luminance data) of a predetermined resolution of the captured image Ia generated by the image data generation unit 5 from the memory 2 (step S2; see FIG. 4A ). Next, the binarization unit 6b performs a binarization process of binarizing the image data of the captured image Ia acquired by the image acquisition unit 6a with a predetermined threshold to generate a first binarized image Ib (see FIG. 4B ). Image data (step S3).

接着,直线推定部6c的轮廓确定部c1对通过二值化部6b生成的第一二值化图像Ib的图像数据实施凸包处理,由此确定与框部分Sw的外侧轮廓对应的多角形状的凸包区域A1(参照图4C)(步骤S4)。具体地说,轮廓确定部c1在通过凸包处理形成的多个凸包区域A、……中,将面积最大的凸包区域A确定为与印迹Si的框部分Sw的外侧轮廓对应的多角形状(例如六角形状)的凸包区域A1。Next, the contour determination unit c1 of the straight line estimation unit 6c performs convex hull processing on the image data of the first binarized image Ib generated by the binarization unit 6b, thereby specifying the polygonal shape corresponding to the outer contour of the frame portion Sw. Convex hull area A1 (see FIG. 4C) (step S4). Specifically, the contour determination unit c1 determines the convex hull region A having the largest area among the plurality of convex hull regions A, ... formed by the convex hull processing, as a polygonal shape corresponding to the outer contour of the frame portion Sw of the imprint Si. (for example, a hexagonal shape) convex hull area A1.

接着,直线确定部c2在通过构成由轮廓确定部c1确定的多角形状的凸包区域A1的任意2个顶点B的多个直线L、……中,将构成多角形状的凸包区域A1的多个像素重叠的个数比预定值多的直线L确定为构成与框部分Sw对应的框图像Wa的外侧轮廓的直线L(步骤S5)。具体地说,直线确定部c2从构成凸包区域A1的6个顶点B、……中选择任意2个顶点B、B,将连接这些2个顶点B、B而成的直线L确定为构成框图像Wa的正方形的外侧轮廓的候选直线L。然后,直线确定部c2在所确定的候选直线L中,将与构成凸包区域A1的多个像素重叠的像素个数比预定值多的候选直线L确定为构成框图像Wa的外侧轮廓的直线L。Next, the straight line specifying unit c2 divides the plurality of straight lines L, . A straight line L in which pixels overlap more than a predetermined value is determined as a straight line L constituting the outer contour of the frame image Wa corresponding to the frame portion Sw (step S5). Specifically, the straight line specifying unit c2 selects any two vertices B, B from among the six vertices B, ... constituting the convex hull area A1, and specifies a straight line L connecting these two vertices B, B as a constituting frame. The candidate straight line L of the outer contour of the square of the image Wa. Then, the straight line determination unit c2 determines, among the determined candidate straight lines L, a candidate straight line L whose number of pixels overlaps with a plurality of pixels constituting the convex hull area A1 is larger than a predetermined value, as a straight line constituting the outer contour of the frame image Wa. L.

接着,直线确定部c2在通过了构成多角形状的凸包区域A1的任意2个顶点B、B的多个直线L、……中,考虑与相邻的直线L所成的角度而确定构成框图像Wa的外侧轮廓的直线L(步骤S6)。具体地说,直线确定部c2针对全部候选直线L,确定与相邻的候选直线L所成的角度与印章S的正方形的框的内角(90°)大致相等的候选直线L,对与多角形状的凸包区域A1重叠的像素附加加权,依照预定的计算公式计算每个候选直线L的评价值。然后,直线确定部c2对计算出的各候选直线L的评价值进行比较,将评价值最高的候选直线L确定为构成框图像Wa的外侧轮廓的直线L。Next, among the plurality of straight lines L, ... that pass through any two vertices B, B constituting the polygonal convex hull area A1, the straight line determination unit c2 determines the constituent frame in consideration of the angle formed with the adjacent straight line L The straight line L of the outer contour of the image Wa (step S6). Specifically, for all the candidate straight lines L, the straight line determination unit c2 determines the candidate straight line L whose angle with the adjacent candidate straight line L is approximately equal to the inner angle (90°) of the square frame of the stamp S, and for the polygonal shape The overlapping pixels of the convex hull area A1 are weighted, and the evaluation value of each candidate line L is calculated according to a predetermined calculation formula. Then, the line specifying unit c2 compares the calculated evaluation values of the candidate straight lines L, and specifies the candidate straight line L with the highest evaluation value as the straight line L constituting the outer contour of the frame image Wa.

此外,步骤S5的直线L的确定处理、步骤S6的直线L的确定处理的顺序是一个例子,并不限于此,例如也可以相反。In addition, the order of the process of specifying the straight line L in step S5 and the process of specifying the straight line L in step S6 is an example, and is not limited thereto, and may be reversed, for example.

然后,框检测部6d的顶点确定部d1将通过直线确定部c2确定的构成外侧轮廓的预定个数的直线L之间相交的预定个数的点确定为印迹Si的框部分Sw(框图像Wa)的顶点C(步骤S7)。这时,顶点确定部d1也可以考虑摄像图像Ia内的标志图像Ma的坐标位置地确定框图像Wa的顶点C(参照图7A~图7C)。Then, the vertex determination unit d1 of the frame detection unit 6d determines a predetermined number of points of intersection between the predetermined number of straight lines L constituting the outer contour determined by the straight line determination unit c2 as the frame portion Sw of the imprint Si (frame image Wa ) of the vertex C (step S7). At this time, the vertex specifying unit d1 may specify the vertex C of the frame image Wa in consideration of the coordinate position of the marker image Ma in the captured image Ia (see FIGS. 7A to 7C ).

接着,框检测部6d根据顶点确定部d1的确定结果,判定是否确定出框图像Wa的4个顶点C(步骤S8)。在此,如果判定为确定出框图像Wa的4个顶点C(步骤S8;是),则映射变换部d2以确定出的4个顶点C、……的坐标位置为基准,对摄像图像Ia进行映射变换处理(步骤S9)。具体地说,映射变换部d2计算具有外形歪斜的四角形状的框图像Wa的4个顶点C、……的坐标位置成为正方形的4个顶点C、……的坐标位置那样的坐标变换公式,依照计算出的坐标变换公式,对印迹Si的摄像图像Ia实施映射变换处理,生成印迹Si的框图像Wa的外形被变换为正方形的映射变换后图像Ic。Next, the frame detection unit 6d determines whether or not the four vertices C of the frame image Wa have been identified based on the identification result of the vertex identification unit d1 (step S8). Here, if it is determined that the four vertices C of the frame image Wa have been determined (step S8; Yes), the mapping transformation unit d2 performs a process on the captured image Ia based on the coordinate positions of the determined four vertices C, . . . Mapping transformation processing (step S9). Specifically, the mapping conversion unit d2 calculates a coordinate transformation formula such that the coordinate positions of the four vertices C, ... of the frame image Wa having a skewed rectangular shape become the coordinate positions of the four vertices C, ... of a square, according to The calculated coordinate transformation formula performs mapping transformation processing on the captured image Ia of the footprint Si to generate a mapped image Ic in which the outer shape of the frame image Wa of the footprint Si is converted into a square.

此外,如果在步骤S8中判定为没有确定出框图像Wa的4个顶点C(步骤S8;否),中央控制部1的CPU跳过以后的处理,使该代码读取处理结束。In addition, if it is determined in step S8 that the four vertices C of the frame image Wa have not been identified (step S8; NO), the CPU of the central control unit 1 skips the subsequent processing, and ends the code reading processing.

接着,框检测部6d在通过映射变换部d2生成的映射变换后图像Ic内,检测与印章S的框对应的正方形的框部分Sw(框图像Wa)(步骤S10)。接着,二值化部6b对通过映射变换部d2而生成的映射变换后图像Ic的图像数据实施以预定的阈值进行二值化的二值化处理,生成第二二值化图像Id的图像数据(步骤S11)。Next, the frame detection unit 6d detects a square frame portion Sw (frame image Wa) corresponding to the frame of the stamp S in the map-converted image Ic generated by the map conversion unit d2 (step S10). Next, the binarization unit 6b performs a binarization process of binarizing the image data of the map-transformed image Ic generated by the map conversion unit d2 by performing binarization at a predetermined threshold, thereby generating image data of the second binarized image Id. (step S11).

接着,信息读取部6e进行以下的读取处理,即从与通过映射变换部d2而生成的映射变换后图像Ic对应的第二二值化图像Id的框部分Sw(框图像Wa)内的代码信息Sc读取预定的信息(步骤S12)。具体地说,信息读取部6e在第二二值化图像Id内确定正方形的读取区域D,从该读取区域D的预定位置(例如左上角部等)开始沿着预定方向进行扫描,分别确定像素值“1”的白像素的集合和像素值“0”的黑像素的集合所存在的坐标位置。然后,信息读取部6e对所确定的白像素的集合和黑像素的集合的排列实施解码处理,读取由代码信息Sc表示的原始的预定的信息(例如URL等)。Next, the information reading unit 6e performs a reading process of reading from the frame portion Sw (frame image Wa) of the second binarized image Id corresponding to the mapped transformed image Ic generated by the map converting unit d2. The code information Sc reads predetermined information (step S12). Specifically, the information reading unit 6e determines a square reading area D in the second binarized image Id, and scans along a predetermined direction from a predetermined position (such as the upper left corner) of the reading area D, Coordinate positions at which a set of white pixels of pixel value "1" and a set of black pixels of pixel value "0" exist are respectively determined. Then, the information reading unit 6e decodes the specified arrangement of the set of white pixels and the set of black pixels, and reads the original predetermined information (for example, URL, etc.) indicated by the code information Sc.

接着,信息读取部6e判定通过读取处理是否从代码信息Sc多次读取了原始的预定信息(步骤S13)。Next, the information reading unit 6e determines whether or not the original schedule information has been read a plurality of times from the code information Sc through the reading process (step S13).

在此,如果判定为多次读取了原始的预定的信息(步骤S13;是),则信息读取部6e判定为能够适当读取该预定的信息,动作处理部7依照通过信息读取部6e读取的预定的信息(例如URL等)执行预定的动作(例如访问因特网,对确定的声音、图像进行重放)(步骤S14)。Here, if it is determined that the original scheduled information has been read multiple times (step S13; YES), the information reading unit 6e determines that the scheduled information can be read appropriately, and the operation processing unit 7 follows the steps passed by the information reading unit. 6e executes a predetermined action (such as accessing the Internet, replaying a specified sound or image) on the read predetermined information (for example, URL, etc.) (step S14).

另一方面,如果在步骤S13中判定为没有多次读取原始的预定的信息(步骤S13;否),则中央控制部1的CPU跳过步骤S14的处理,使该代码读取处理结束。On the other hand, if it is determined in step S13 that the original predetermined information has not been read multiple times (step S13; NO), the CPU of the central control unit 1 skips the process of step S14 and ends the code reading process.

如以上那样,根据本实施方式的移动终端100,在对向预定的印图像Sp的周围的多角形状(例如正方形)的框部分Sw附加代码信息Sc而成的印迹Si进行摄像所得的摄像图像Ia内,构成与多角形状的框对应的框部分Sw(框图像Wa)的外侧轮廓,推定与多角形状的框的角数对应的预定个数的直线L,检测由推定出的预定个数的直线L构成的摄像图像Ia的框图像Wa,因此通过利用构成框图像Wa的外侧轮廓的预定个数的直线L,能够适当地检测摄像图像Ia的框图像Wa。即,例如在印迹Si发生了渗出和缺白而无法适当地检测框图像Wa的顶点C的情况下,也能够通过推定构成框图像Wa的外侧轮廓的预定个数的直线L,利用该直线L从摄像图像Ia中适当地检测出框部分Sw(框图像Wa)。As described above, according to the mobile terminal 100 of the present embodiment, the captured image Ia is obtained by capturing the imprint Si obtained by adding the code information Sc to the polygonal (for example, square) frame portion Sw around the predetermined print image Sp. Inside, constitute the outer contour of the frame portion Sw (frame image Wa) corresponding to the polygonal frame, estimate a predetermined number of straight lines L corresponding to the number of corners of the polygonal frame, and detect the estimated predetermined number of straight lines L The frame image Wa of the captured image Ia constituted by L, therefore, the frame image Wa of the captured image Ia can be appropriately detected by using a predetermined number of straight lines L constituting the outer contour of the frame image Wa. That is, for example, in the case where the vertex C of the frame image Wa cannot be properly detected due to blurring or blanking of the imprint Si, a predetermined number of straight lines L constituting the outer contour of the frame image Wa can be estimated, and the straight lines L can be used. L appropriately detects the frame portion Sw (frame image Wa) from the captured image Ia.

另外,确定与摄像图像Ia的框部分Sw(框图像Wa)的外侧轮廓对应的多角形状的区域(凸包区域A1),根据构成确定出的多角形状的区域的多个顶点B、……的位置,确定构成框图像Wa的外侧轮廓的预定个数的直线L,因此能够利用确定出的预定个数的直线L,从摄像图像Ia中适当地检测出框图像Wa。具体地说,在通过了构成多角形状的区域的任意2个顶点B、B的多个直线L、……中,根据各直线L和多角形状的区域重叠的像素的个数和相邻的直线L之间的相对关系中的至少一方,能够确定构成框图像Wa的外侧轮廓的预定个数的直线L。In addition, a polygonal region (convex hull region A1) corresponding to the outer contour of the frame portion Sw (frame image Wa) of the captured image Ia is specified, and a plurality of vertices B constituting the specified polygonal region, ... The positions determine the predetermined number of straight lines L constituting the outer contour of the frame image Wa, so that the frame image Wa can be appropriately detected from the captured image Ia using the specified predetermined number of straight lines L. Specifically, among a plurality of straight lines L, ... that pass through any two vertices B and B constituting the polygonal area, the number of pixels that each straight line L overlaps with the polygonal area and the number of adjacent straight lines At least one of the relative relationships between L can specify a predetermined number of straight lines L constituting the outer contour of the frame image Wa.

即,在通过了构成多角形状的区域的任意2个顶点B、B的多个直线L、……中,确定构成多角形状的区域的多个像素重叠的个数比预定值多的直线L,将该直线L确定为构成框图像Wa的外侧轮廓的直线L,因此能够考虑到构成框图像Wa的外侧轮廓的直线L的候选直线L和构成多角形状的区域的多个像素之间的重叠程度,适当地确定构成框图像Wa的外侧轮廓的直线L。That is, among the plurality of straight lines L passing through any two vertices B, B constituting the polygonal area, ..., determine the straight line L in which the number of overlapping pixels constituting the polygonal area is greater than a predetermined value, This straight line L is determined as the straight line L constituting the outer contour of the frame image Wa, so the degree of overlap between the candidate straight line L constituting the straight line L of the outer contour of the frame image Wa and a plurality of pixels constituting the polygonal area can be considered. , the straight line L constituting the outer contour of the frame image Wa is appropriately determined.

另外,在通过了构成多角形状的区域的任意2个顶点B、B的多个直线L、……中,确定与相邻的直线L所成的角度与多角形状的框的内角大致相等的直线L,向构成该直线L的像素中的与多角形状的区域重叠的像素附加加权,计算每个直线L的评价值,将计算出的评价值高的直线L确定为构成框图像Wa的外侧轮廓的直线L,因此能够考虑到构成框图像Wa的外侧轮廓的直线L的候选直线L之间的相对关系,适当地确定构成框图像Wa的外侧轮廓的直线L。In addition, among the plurality of straight lines L, ... that pass through any two vertices B, B constituting the polygonal area, a straight line whose angle with the adjacent straight line L is substantially equal to the inner angle of the polygonal frame is determined. L, weighting is added to the pixels overlapping the polygonal area among the pixels constituting the straight line L, the evaluation value of each straight line L is calculated, and the straight line L with the higher calculated evaluation value is determined as the outer contour constituting the frame image Wa Therefore, the straight line L constituting the outer contour of the frame image Wa can be appropriately determined in consideration of the relative relationship between the candidate straight lines L constituting the straight line L of the outer contour of the frame image Wa.

另外,将构成框部分Sw(框图像Wa)的外侧轮廓的预定个数的直线L之间相交的预定个数的点确定为框图像Wa的顶点C,根据确定出的预定个数的顶点C,检测摄像图像Ia的框图像Wa,因此能够利用构成框图像Wa的外侧轮廓的预定个数的直线L之间相交的预定个数的点(顶点C),适当地检测摄像图像Ia的框图像Wa。这时,根据摄像图像Ia内的与多角形状的框的角部的预定形状的标志Sm对应的标志图像Ma的坐标位置,确定框图像Wa的顶点C,由此即使是对发生了渗出的印迹Si进行摄像所得的摄像图像Ia,也能够适当地确定框图像Wa的顶点C,能够适当地检测出摄像图像Ia的框图像Wa。In addition, a predetermined number of points intersecting a predetermined number of straight lines L constituting the outer contour of the frame portion Sw (frame image Wa) is determined as vertices C of the frame image Wa, and based on the determined predetermined number of vertices C , the frame image Wa of the captured image Ia is detected, and therefore the frame image of the captured image Ia can be appropriately detected using a predetermined number of points (vertices C) that intersect with a predetermined number of straight lines L constituting the outer contour of the frame image Wa. Wa. At this time, the vertex C of the frame image Wa is specified based on the coordinate position of the mark image Ma corresponding to the mark Sm of the predetermined shape at the corner of the polygonal frame in the captured image Ia. In the captured image Ia obtained by imaging the footprint Si, the vertex C of the frame image Wa can also be specified appropriately, and the frame image Wa of the captured image Ia can be appropriately detected.

进而,根据确定出的预定个数的顶点C,对摄像图像Ia进行映射变换处理,生成多角形状的摄像图像(映射变换后图像Ic),检测与所生成的多角形状的摄像图像Ia的框对应的框图像Wa,因此即使是对发生了渗出、缺白的印迹Si进行摄像所得的摄像图像Ia,也能够利用构成框图像Wa的外侧轮廓的预定个数的直线L之间相交的预定个数的点(顶点C)适当地进行映射变换处理,其结果是能够适当地检测出多角形状的框图像Wa。Furthermore, the captured image Ia is subjected to mapping conversion processing based on the determined predetermined number of vertices C to generate a polygonal captured image (mapped image Ic), and a frame corresponding to the generated polygonal captured image Ia is detected. Therefore, even if it is the captured image Ia obtained by imaging the imprint Si with bleed-out and white spots, it is possible to use a predetermined number of intersections between a predetermined number of straight lines L constituting the outer contour of the frame image Wa. The number of points (vertex C) is properly mapped and converted, and as a result, the polygonal frame image Wa can be properly detected.

另外,能够从摄像图像Ia的框部分Sw(框图像Wa)内的代码信息Sc适当地读取预定的信息。这时,在从向框部分Sw附加了相同的多个代码信息Sc的印迹Si的摄像图像Ia读取了预定个数以上的预定信息的情况下,控制与该预定的信息对应的处理的执行,因此通过预先向框部分Sw多重地嵌入多个代码信息Sc、……,能够从代码信息Sc稳定地读取原始的预定的信息,能够适当地执行与读取出的预定的信息对应的处理。In addition, predetermined information can be appropriately read from the code information Sc in the frame portion Sw (frame image Wa) of the captured image Ia. At this time, when more than a predetermined number of predetermined information is read from the captured image Ia of the imprint Si to which the same plurality of code information Sc is added to the frame portion Sw, execution of processing corresponding to the predetermined information is controlled. Therefore, by embedding a plurality of code information Sc, . .

此外,本发明并不限于上述实施方式,可以在不脱离本发明的主要内容的范围内进行各种改进和设计的变更。In addition, the present invention is not limited to the above-described embodiments, and various improvements and design changes can be made without departing from the scope of the present invention.

以下,说明移动终端100的第二实施方式。Hereinafter, a second embodiment of the mobile terminal 100 will be described.

<第二实施方式><Second Embodiment>

图8是表示第二实施方式的移动终端200的概要结构的框图。FIG. 8 is a block diagram showing a schematic configuration of a mobile terminal 200 according to the second embodiment.

如图8所示,第二实施方式的移动终端200的代码处理部206除了具备图像取得部6a、二值化部6b、直线推定部6c、框检测部6d以及信息读取部6e以外,还具备像素数降低部6f。As shown in FIG. 8, the code processing unit 206 of the mobile terminal 200 according to the second embodiment includes an image acquisition unit 6a, a binarization unit 6b, a straight line estimation unit 6c, a frame detection unit 6d, and an information reading unit 6e. Equipped with pixel number reduction unit 6f.

此外,第二实施方式的移动终端200的结构在以下详细说明以外的点上与上述实施方式的移动终端100大致相同,省略详细的说明。In addition, the configuration of the mobile terminal 200 of the second embodiment is substantially the same as that of the mobile terminal 100 of the above-mentioned embodiment except for the detailed description below, and the detailed description is omitted.

像素数降低部6f进行以下的像素数降低处理,即降低存在于摄像图像Ia的背景中的像素的个数。The number-of-pixels reduction unit 6f performs a number-of-pixels reduction process of reducing the number of pixels existing in the background of the captured image Ia.

即,像素数降低部6f进行以下的处理,即使得存在于背景中的像素的个数相对于与通过图像取得部6a取得的摄像图像Ia对应的第一二值化图像Ib相对地降低。具体地说,印迹Si不是盖章在颜色、图样相同的记录介质,而是例如盖章在笔记本的线格N上的情况等下(参照图10A),有可能无法通过直线推定部6c适当地推定构成框部分Sw(框图像Wa)的外侧轮廓的直线L。That is, the number-of-pixels reduction unit 6f performs a process of reducing the number of pixels existing in the background relative to the first binarized image Ib corresponding to the captured image Ia acquired by the image acquisition unit 6a. Specifically, when the imprint Si is not stamped on a recording medium of the same color and design, but is stamped on a grid line N of a notebook, for example (see FIG. 10A ), the straight line estimation unit 6c may not be able to properly A straight line L constituting the outer contour of the frame portion Sw (frame image Wa) is estimated.

因此,像素数降低部6f取得通过二值化部6b生成的第一二值化图像Ib的图像数据,实施使白像素和黑像素反转的处理后(参照图10B),进行用于除去存在于第一二值化图像Ib的背景中的比预定值小的像素集合的膨胀处理和收缩处理(参照图10C等)。例如,像素数降低部6f在针对成为第一二值化图像Ib的黑白反转图像Ie的(参照图10B)的处理对象的各像素,实施了增加1圈的像素的膨胀处理后(参照图10C),实施将2圈的像素剥除的收缩处理(参照图11A),然后,实施增加1圈像素的膨胀处理(参照图11B)。由此,成为存在于第一二值化图像Ib的背景中的像素数相对于构成框图像Wa的像素数相对地降低的状态,在直线推定部6c推定构成框图像Wa的外侧轮廓的直线L时,谋求减轻存在于印迹Si的背景中的像素的影响。Therefore, the number-of-pixels reduction unit 6f acquires the image data of the first binarized image Ib generated by the binarization unit 6b, performs a process of inverting white pixels and black pixels (see FIG. 10B ), and performs Expansion processing and contraction processing of a set of pixels smaller than a predetermined value in the background of the first binarized image Ib (refer to FIG. 10C etc.). For example, the number-of-pixels reduction unit 6f performs dilation processing by increasing pixels by one turn for each pixel to be processed in the black-and-white reversed image Ie (see FIG. 10B ) of the first binarized image Ib (see FIG. 10B ). 10C), performing shrinkage processing (refer to FIG. 11A ) for stripping pixels in two circles, and then performing expansion processing (see FIG. 11B ) for adding pixels in one circle. As a result, the number of pixels existing in the background of the first binarized image Ib is relatively reduced relative to the number of pixels constituting the frame image Wa, and the straight line L constituting the outer contour of the frame image Wa is estimated by the straight line estimation unit 6c. When , the influence of pixels existing in the background of imprinted Si is sought to be reduced.

然后,直线推定部6c在像素数降低部6f进行处理后的第一二值化图像Ib内,推定构成与印章S的正方形的框对应的框部分Sw(框图像Wa)的外侧轮廓的4条直线L、……后,框检测部6d检测摄像图像Ia的框图像Wa(参照图11C)。Then, the straight line estimation unit 6c estimates four lines constituting the outer contour of the frame portion Sw (frame image Wa) corresponding to the square frame of the stamp S in the first binarized image Ib processed by the number of pixels reduction unit 6f. After the straight line L, ..., the frame detection unit 6d detects the frame image Wa of the captured image Ia (see FIG. 11C ).

<代码读取处理><Code read processing>

接着,参照图9说明第二实施方式的移动终端200的代码读取处理。Next, code reading processing of the mobile terminal 200 according to the second embodiment will be described with reference to FIG. 9 .

图9是表示代码读取处理的动作的一个例子的流程图。FIG. 9 is a flowchart showing an example of the operation of code reading processing.

此外,第二实施方式的移动终端200的代码读取处理在以下详细说明以外的点上与上述实施方式的移动终端100的代码读取处理大致相同,省略详细的说明。In addition, the code reading process of the mobile terminal 200 of the second embodiment is substantially the same as the code reading process of the mobile terminal 100 of the above-mentioned embodiment except for the detailed description below, and the detailed description is omitted.

如图9所示,代码处理部206与上述实施方式的移动终端100的代码读取处理同样,进行步骤S1~S3的各处理,生成第一二值化图像Ib(参照图4B)的图像数据。As shown in FIG. 9 , the code processing unit 206 performs the respective processes of steps S1 to S3 in the same manner as the code reading process of the mobile terminal 100 in the above-mentioned embodiment, and generates image data of the first binarized image Ib (see FIG. 4B ). .

像素数降低部6f对所生成的第一二值化图像Ib的图像数据进行像素降低处理(步骤S21)。具体地说,像素数降低部6f在对第一二值化图像Ib的图像数据实施使白像素和黑像素反转的处理后,进行膨胀处理和收缩处理,使存在于第一二值化图像Ib的背景中的像素数相对于构成框部分Sw(框图像Wa)的像素数相对地降低。The number-of-pixels reduction unit 6f performs pixel reduction processing on the generated image data of the first binarized image Ib (step S21). Specifically, the number-of-pixels reduction unit 6f performs the processing of inverting white pixels and black pixels on the image data of the first binarized image 1b, and then performs expansion processing and contraction processing so that the pixels existing in the first binarized image The number of pixels in the background of Ib is relatively reduced with respect to the number of pixels constituting the frame portion Sw (frame image Wa).

接着,轮廓确定部c1对像素数降低处理后的第一二值化图像Ib的图像数据实施凸包处理,由此确定与框部分Sw的外侧轮廓对应的多角形状的凸包区域A1(参照图4C)(步骤S4)。Next, the contour specifying unit c1 performs convex hull processing on the image data of the first binarized image Ib after the pixel number reduction process, thereby specifying a polygonal convex hull region A1 corresponding to the outer contour of the frame portion Sw (see FIG. 4C) (step S4).

然后,代码处理部206与上述实施方式的移动终端100的代码读取处理同样,进行步骤S4以后的各处理,进行构成框部分Sw(框图像Wa)的外侧轮廓的直线L的检测(步骤S5、S6)、框部分Sw(框图像Wa)的检测(步骤S10)、从代码信息的预定的信息的读取(步骤S12)等。Then, the code processing unit 206 performs the processes after step S4 similarly to the code reading process of the mobile terminal 100 in the above-mentioned embodiment, and detects the straight line L constituting the outer contour of the frame portion Sw (frame image Wa) (step S5 ). , S6), detection of frame portion Sw (frame image Wa) (step S10), reading of predetermined information from code information (step S12), and the like.

因此,根据第二实施方式的移动终端200,进行使存在于摄像图像Ia的背景中的像素的个数相对地降低的处理,在该处理后的摄像图像Ia内,推定构成框部分Sw(框图像Wa)的外侧轮廓的预定个数的直线L,因此在印迹Si没有盖章在颜色、图样相同的记录介质上,而是例如盖章在具有线格N的笔记本上的情况下,通过使存在于摄像图像Ia的背景中的像素的个数相对地降低,也能够减轻存在于摄像图像Ia的背景中的像素的影响,适当地推定构成框图像Wa的外侧轮廓的直线L。Therefore, according to the mobile terminal 200 of the second embodiment, a process of relatively reducing the number of pixels existing in the background of the captured image Ia is performed, and in the processed captured image Ia, the frame portion Sw (frame) is estimated. The predetermined number of straight lines L of the outer contour of the image Wa), therefore, in the case where the imprint Si is not stamped on a recording medium with the same color and pattern, but is for example stamped on a notebook with a line grid N, by making The number of pixels existing in the background of the captured image Ia is relatively reduced, and the influence of the pixels existing in the background of the captured image Ia can also be reduced to appropriately estimate the straight line L constituting the outer contour of the frame image Wa.

另外,在上述实施方式中,直线确定部c2在通过了构成多角形状的凸包区域A1的任意2个顶点B、B的多个直线L、……中,以各直线L和多角形状的凸包区域A1重叠的像素的个数和相邻的直线L之间的相对关系的双方为基准,确定构成框图像Wa的外侧轮廓的预定个数的直线L,但也可以只将任意一方作为基准。In addition, in the above-described embodiment, the straight line specifying unit c2 uses each of the straight lines L and the polygonal convex hull area A1 among the plurality of straight lines L passing through any two vertices B and B constituting the polygonal convex hull area A1 A predetermined number of straight lines L constituting the outer contour of the frame image Wa are determined based on both the number of overlapping pixels in the packet area A1 and the relative relationship between adjacent straight lines L, but either one may be used as a reference. .

进而,在上述实施方式中,将框部分Sw的形状设为正方形,但只是一个例子,并不限于此,例如也可以是正方形以外的多角形状。Furthermore, in the above-mentioned embodiment, the shape of the frame part Sw was made into a square, but this is only an example, and it is not limited to this, For example, it may be a polygonal shape other than a square.

另外,在上述实施方式中,向印迹Si的框部分Sw的各边Sa分别附加相同的代码信息Sc,但是一个例子,并不限于此,例如也可以附加相互不同的代码信息Sc。在该情况下,可以增大嵌入到框部分Sw的代码信息(原始的预定的信息)Sc的量。In the above embodiment, the same code information Sc is added to each side Sa of the frame portion Sw of the imprint Si, but this is an example, not limited thereto, and different code information Sc may be added, for example. In this case, the amount of code information (original predetermined information) Sc embedded into the frame portion Sw can be increased.

进而,在上述实施方式中,作为图像处理装置,示例了移动终端100、200,但是一个例子,并不限于此,只要能够控制框部分Sw(框图像Wa)的检测处理的执行,则能够适当地任意变更。Furthermore, in the above-mentioned embodiment, the mobile terminals 100 and 200 were exemplified as image processing devices, but this is not limited to this as an example, and as long as the execution of the detection process of the frame portion Sw (frame image Wa) can be controlled, it can be appropriately processed. change arbitrarily.

除此以外,在上述实施方式中,构成为在移动终端100(200)的中央控制部1的控制下,通过由图像取得部6a、直线推定部6c、框检测部6d进行驱动来实现作为取得单元、推定单元、检测单元的功能,但并不限于此,也可以构成为通过由中央控制部1的CPU执行预定的程序等来实现。In addition, in the above-mentioned embodiment, under the control of the central control unit 1 of the mobile terminal 100 (200), the image acquisition unit 6a, the straight line estimation unit 6c, and the frame detection unit 6d are driven to achieve The functions of the estimating unit, the estimating unit, and the detecting unit are not limited thereto, and may be realized by the CPU of the central control unit 1 executing a predetermined program or the like.

即,将包含取得处理过程、推定处理过程、检测处理过程的程序存储在存储程序的程序存储器中。然后,可以通过取得处理过程使中央控制部1的CPU作为以下的单元而发挥功能,即取得对印章S的印迹Si进行摄像所得的摄像图像Ia,其中该印章S形成了预定的印的周围的多角形状的框,使得向印迹Si附加了将预定的信息编码为像素集合的规则排列的代码信息Sc。另外,也可以通过推定处理过程使中央控制部1的CPU作为以下的单元发挥功能,即在取得的摄像图像Ia内,构成与多角形状的框对应的框部分Sw的外侧轮廓,推定与多角形状的框的角数对应的预定个数的直线L。另外,也可以通过检测处理过程使中央控制部1的CPU作为检测由推定出的预定个数的直线L构成的摄像图像Ia的框部分Sw的单元而发挥功能。That is, a program including an acquisition process, an estimation process, and a detection process is stored in a program memory storing the program. Then, the CPU of the central control unit 1 can be made to function as a means for acquiring the captured image Ia obtained by imaging the imprint Si of the seal S forming the periphery of a predetermined seal through the acquisition process. The polygonal frame is such that code information Sc that encodes predetermined information as a set of pixels in a regular arrangement is added to the print Si. In addition, the CPU of the central control unit 1 may function as a means for estimating the outer contour of the frame part Sw corresponding to the polygonal frame in the acquired captured image Ia through the estimation process, and estimating the contour corresponding to the polygonal shape. A predetermined number of straight lines L corresponding to the number of corners of the box. In addition, the CPU of the central control unit 1 may function as means for detecting the frame portion Sw of the captured image Ia composed of the estimated predetermined number of straight lines L through the detection process.

同样,对于轮廓确定单元、直线确定单元、顶点确定单元、生成单元、读取单元、处理单元、像素数降低单元,也可以构成为通过中央控制部1的CPU执行预定的程序等来实现。Similarly, the contour specifying unit, straight line specifying unit, vertex specifying unit, generating unit, reading unit, processing unit, and pixel count reducing unit may also be realized by the CPU of the central control unit 1 executing a predetermined program or the like.

进而,作为存储了用于执行上述各处理的程序的计算机可读取的介质,除了ROM、硬盘等以外,也能够应用快闪存储器等非易失性存储器、CD-ROM等可移动型记录介质。另外,也应用载波(Carrier wave)作为经由预定的通信线路提供程序的数据的介质。Furthermore, as a computer-readable medium storing a program for executing each of the above-mentioned processes, in addition to a ROM, a hard disk, etc., a nonvolatile memory such as a flash memory, and a portable recording medium such as a CD-ROM can also be applied. . In addition, a carrier wave (Carrier wave) is also used as a medium for providing program data via a predetermined communication line.

接着,针对本发明的第三实施方式,使用附图说明具体形式。但是,发明的范围并不限于图示例子。Next, specific aspects of a third embodiment of the present invention will be described using the drawings. However, the scope of the invention is not limited to the illustrated examples.

图12是表示应用了本发明的一个实施方式的移动终端300的概要结构的框图。FIG. 12 is a block diagram showing a schematic configuration of a mobile terminal 300 to which an embodiment of the present invention is applied.

如图12所示,第三实施方式的移动终端300的代码处理部206除了具备图像取得部6a、二值化部6b以及信息读取部6e以外,还具备边缘检测部6g、平行边缘抽出部6h、读取区域确定部6i。As shown in FIG. 12 , the code processing unit 206 of the mobile terminal 300 according to the third embodiment includes an edge detection unit 6g and a parallel edge extraction unit in addition to the image acquisition unit 6a, the binarization unit 6b, and the information reading unit 6e. 6h, the reading area determination unit 6i.

此外,第三实施方式的移动终端300的结构在以下详细说明以外的点上与上述实施方式的移动终端100大致相同,省略详细的说明。In addition, the configuration of the mobile terminal 300 according to the third embodiment is substantially the same as that of the mobile terminal 100 according to the above-mentioned embodiment except for the detailed description below, and the detailed description will be omitted.

边缘检测部6g检测印迹图像的边缘E。The edge detection unit 6g detects the edge E of the print image.

即,边缘检测部6g从与通过图像取得部6a取得的摄像图像Ia对应的二值化图像Ib检测出多个边缘E。具体地说,例如边缘检测部6g针对通过二值化部6b生成的二值化图像Ib的图像数据使用预定的微分过滤器(例如拉普拉斯过滤器等)进行微分计算,检测亮度值、颜色和浓度有急剧变化的地方作为边缘E。然后,边缘检测部6g根据检测出的边缘E生成边缘图像Ic(参照图15C)的图像数据。That is, the edge detection unit 6g detects a plurality of edges E from the binarized image Ib corresponding to the captured image Ia acquired by the image acquisition unit 6a. Specifically, for example, the edge detection unit 6g performs differential calculation on the image data of the binarized image 1b generated by the binarization unit 6b using a predetermined differential filter (for example, a Laplacian filter, etc.), and detects the brightness value, A place where the color and density change sharply is referred to as an edge E. Then, the edge detection unit 6g generates image data of an edge image Ic (see FIG. 15C ) based on the detected edge E.

此外,上述边缘检测处理的内容是一个例子,并不限于此,能够适当地任意变更。In addition, the content of the edge detection process mentioned above is an example, it is not limited to this, and it can change arbitrarily suitably.

平行边缘抽出部6h抽出平行的2条边缘E、E。The parallel edge extraction part 6h extracts two parallel edges E, E.

即,平行边缘抽出部6h在通过边缘检测部6g检测出的多个边缘E、……中,抽出与框部分Sw的宽度大致相等的间隔的大致平行的2条边缘E、E。具体地说,平行边缘抽出部6h针对边缘图像Ic,从预定位置(例如左上角部等)开始向预定方向(例如向下等)依次地施加平行边缘过滤器F,抽出具有与框部分Sw的宽度大致相等的间隔的大致平行的2条边缘E、E(参照图16A和图16B)。That is, the parallel edge extraction unit 6h extracts two substantially parallel edges E, E at intervals substantially equal to the width of the frame portion Sw from among the plurality of edges E, . . . detected by the edge detection unit 6g. Specifically, the parallel edge extracting unit 6h sequentially applies the parallel edge filter F to the edge image Ic from a predetermined position (for example, the upper left corner, etc.) to a predetermined direction (for example, downward, etc.), and extracts the edge image Ic having a frame portion Sw. Two substantially parallel edges E, E (see FIGS. 16A and 16B ) at intervals of substantially equal width.

平行边缘过滤器F以预定的长度(例如20像素)隔开预定的间隔地附加具有预定宽度(例如5像素)的2个边缘检测区域Fa、Fa。通过将这些2个边缘检测区域Fa、Fa的间隔调整为与框部分Sw的宽度大致相等的间隔,由此平行边缘抽出部6h从边缘图像Ic中抽出具有与框部分Sw的宽度大致相等的间隔的大致平行的2条边缘E、E。这时,平行边缘抽出部6h使2个边缘检测区域Fa、Fa围绕中心Fc旋转预定角度(例如90°),由此抽出与框部分Sw对应的平行的2条边缘E、E。In the parallel edge filter F, two edge detection regions Fa, Fa having a predetermined width (for example, 5 pixels) are added at predetermined intervals with a predetermined length (for example, 20 pixels). By adjusting the interval between these two edge detection areas Fa, Fa to be approximately equal to the width of the frame portion Sw, the parallel edge extracting unit 6h extracts an edge having an approximately equal interval to the width of the frame portion Sw from the edge image Ic. The two substantially parallel edges E, E. At this time, the parallel edge extraction unit 6h rotates the two edge detection areas Fa, Fa around the center Fc by a predetermined angle (for example, 90°), thereby extracting two parallel edges E, E corresponding to the frame portion Sw.

此外,在图16A和图16B中,只放大表示出边缘图像Ic的左上角部的一部分。In addition, in FIG. 16A and FIG. 16B, only a part of the upper left corner of the edge image Ic is enlarged and shown.

另外,使用上述平行边缘过滤器F的处理的内容是一个例子,并不限于此,能够适当地任意变更。例如,也可以准备变更了2个边缘检测区域Fa、Fa的宽度和旋转角度的多个过滤器作为平行边缘过滤器F,分别使用这些全部的平行边缘过滤器F,抽出与框部分Sw对应的平行的2条边缘E、E。In addition, the content of the processing using the above-mentioned parallel edge filter F is an example, is not limited thereto, and can be changed arbitrarily as appropriate. For example, it is also possible to prepare a plurality of filters in which two edge detection areas Fa and Fa widths and rotation angles have been changed as parallel edge filters F, and use all of these parallel edge filters F to extract the corresponding frame portion Sw. Two parallel edges E, E.

读取区域确定部6i确定代码信息Sc的读取区域A。The reading area specifying unit 6i specifies the reading area A of the code information Sc.

即,读取区域确定部6i根据通过平行边缘抽出部6h抽出的大致平行的2条边缘E、E,在摄像图像Ia内确定代码信息Sc的读取区域A。具体地说,读取区域确定部6i在与摄像图像Ia对应的二值化图像Ib内,将与连接大致平行的2条边缘E、E的中间点之间的线对应的区域(与2条边缘E、E的内侧的区域对应的区域)确定为读取区域A。That is, the reading area specifying unit 6i specifies the reading area A of the code information Sc in the captured image Ia based on the two substantially parallel edges E, E extracted by the parallel edge extracting unit 6h. Specifically, the reading area specifying unit 6i assigns, within the binarized image Ib corresponding to the captured image Ia, the area corresponding to the line connecting the intermediate points of the two substantially parallel edges E, E (the two The area corresponding to the area inside the edge E, E) is determined as the reading area A.

例如,读取区域确定部6i将通过平行边缘抽出部6h抽出的大致平行的2条边缘E、E的中间点之间连接起来而确定预定形状(例如正方形等)的线,使所确定的线与二值化图像Ib对应,由此在该二值化图像Ib内确定代码信息Sc的读取区域A(参照图16C)。For example, the reading area specifying unit 6i connects the intermediate points of two substantially parallel edges E, E extracted by the parallel edge extracting unit 6h to determine a line of a predetermined shape (for example, a square, etc.), and makes the determined line Corresponding to the binarized image Ib, the reading area A of the code information Sc is determined within the binarized image Ib (see FIG. 16C ).

信息读取部6e进行从代码信息Sc读取原始的预定的信息的读取处理。The information reading unit 6e performs a reading process of reading original predetermined information from the code information Sc.

即,信息读取部6e在通过读取区域确定部6i确定的读取区域A中从代码信息Sc读取预定的信息。具体地说,信息读取部6e在与摄像图像Ia对应的二值化图像Ib中,根据存在于读取区域A中的像素的像素值(代码信息Sc)读取预定的信息。例如,信息读取部6e从读取区域A的预定位置(例如左上角部)开始沿着预定方向进行扫描,分别确定像素值“1”的白像素的集合和像素值“0”的黑像素的集合所存在的坐标位置。信息读取部6e针对所确定的白像素的集合和黑像素的集合的排列,实施与代码信息Sc的编码方式对应的解码处理,读取由代码信息Sc表示的原始的预定的信息(例如URL等)。That is, the information reading section 6e reads predetermined information from the code information Sc in the reading area A specified by the reading area specifying section 6i. Specifically, the information reading unit 6e reads predetermined information from the pixel values (code information Sc) of pixels existing in the reading area A in the binarized image Ib corresponding to the captured image Ia. For example, the information reading unit 6e scans along a predetermined direction from a predetermined position (for example, the upper left corner) of the reading area A, and respectively determines a set of white pixels with a pixel value of "1" and a set of black pixels with a pixel value of "0". The coordinate position where the collection of . The information reading unit 6e performs decoding processing corresponding to the coding method of the code information Sc for the determined arrangement of the set of white pixels and the set of black pixels, and reads the original predetermined information represented by the code information Sc (for example, URL wait).

这时,信息读取部6e对读取区域A中的与框部分Sw的各边Sa对应的每个区域进行读取处理。即,以与框部分Sw的边Sa的个数对应的次数(例如4次)而从代码信息Sc读取原始的预定的信息。在此,框部分Sw的各边Sa分别被附加了相同的代码信息Sc,因此信息读取部6e例如也可以构成为在检测出2处以上的原始的预定的信息而读取出多个的情况下,判定为能够适当地读取该预定的信息。At this time, the information reading unit 6e performs reading processing for each area corresponding to each side Sa of the frame portion Sw in the reading area A. As shown in FIG. That is, the original predetermined information is read from the code information Sc at the number of times (for example, 4 times) corresponding to the number of sides Sa of the frame portion Sw. Here, the same code information Sc is attached to each side Sa of the frame portion Sw. Therefore, the information reading unit 6e may be configured to read out a plurality of original predetermined information after detecting two or more original predetermined information, for example. In this case, it is determined that the predetermined information can be properly read.

此外,上述读取处理是公知的技术,因此在此省略详细的说明。In addition, since the above-mentioned reading process is a well-known technique, detailed description is abbreviate|omitted here.

动作处理部7依照通过信息读取部6e读取的代码信息Sc的原始的预定的信息,执行预定的动作。The operation processing unit 7 executes a predetermined operation according to the original predetermined information of the code information Sc read by the information reading unit 6e.

即,动作处理部7在通过信息读取部6e读取了预定个数以上的预定的信息的情况下,控制与该预定的信息对应的处理的执行。具体地说,例如在读取了URL作为预定的信息的情况下,动作处理部7控制通信控制部11,访问被取得的URL规定的因特网的特定的网页。然后,动作处理部7依照预先设定的各种处理(例如特定的声音、图像的重放等)的执行指示,控制显示控制部9和语音通信部10等,使其执行各种处理。That is, the operation processing unit 7 controls the execution of the processing corresponding to the predetermined information when the information reading unit 6 e has read a predetermined number or more of predetermined information. Specifically, for example, when a URL is read as predetermined information, the operation processing unit 7 controls the communication control unit 11 to access a specific web page on the Internet specified by the acquired URL. Then, the operation processing unit 7 controls the display control unit 9 and the audio communication unit 10 to execute various processes according to execution instructions of various processes set in advance (for example, playback of specific sounds and images, etc.).

显示部8例如由液晶显示板等构成,根据来自显示控制部9的视频信号,将通过摄像部3摄像所得的图像(例如实况图像等)显示在显示画面上。The display unit 8 is composed of, for example, a liquid crystal display panel or the like, and displays an image captured by the imaging unit 3 (for example, a live image, etc.) on a display screen based on a video signal from the display control unit 9 .

显示控制部9进行以下控制,即读出暂时存储在存储器2中的显示用的图像数据并使得显示在显示部8上。The display control unit 9 performs control to read out display image data temporarily stored in the memory 2 and display it on the display unit 8 .

具体地说,显示控制部9具备VRAM(Video Random Access Memory:视频随机存取存储器)、VRAM控制器、数字视频编码器等。另外,数字视频编码器在中央控制部1的控制下经由VRAM控制器从VRAM中以预定的重放帧速率(例如30fps)读出从存储器2读出并存储在VRAM(省略图示)中的亮度信号Y以及色差信号Cb、Cr,基于这些数据产生视频信号并输出到显示部8。Specifically, the display control unit 9 includes a VRAM (Video Random Access Memory), a VRAM controller, a digital video encoder, and the like. In addition, under the control of the central control unit 1, the digital video encoder reads from the VRAM at a predetermined playback frame rate (for example, 30 fps) via the VRAM controller. The luminance signal Y and the color difference signals Cb and Cr are based on these data to generate a video signal and output it to the display unit 8 .

例如,显示控制部9以预定的显示帧速率一边将通过摄像部3和摄像控制部4摄像并通过图像数据生成部5生成的多个帧图像、……逐次进行更新一边实况显示在显示部8上。For example, the display control unit 9 displays live on the display unit 8 while sequentially updating a plurality of frame images captured by the imaging unit 3 and the imaging control unit 4 and generated by the image data generation unit 5 at a predetermined display frame rate. superior.

语音通信部10与经由通信网络N连接的外部设备的外部用户进行通话。The audio communication unit 10 communicates with an external user of an external device connected via the communication network N.

具体地说,语音通信部10具备麦克风10a、扬声器10b、数据变换部10c等。另外,语音通信部10通过数据变换部10c对从麦克风10a输入的用户的送话声音进行A/D变换处理,将送话声音数据输出到中央控制部1,并且在中央控制部1的控制下,通过数据变换部10c对从通信控制部11输出并输入的接听声音数据等声音数据进行D/A变换处理,从扬声器10b输出。Specifically, the audio communication unit 10 includes a microphone 10a, a speaker 10b, a data conversion unit 10c, and the like. In addition, the voice communication unit 10 performs A/D conversion processing on the user's speech voice input from the microphone 10a through the data conversion unit 10c, outputs the speech voice data to the central control unit 1, and under the control of the central control unit 1 The data conversion unit 10c performs D/A conversion processing on audio data such as answering audio data output and input from the communication control unit 11, and outputs it from the speaker 10b.

通信控制部11经由通信网络N和通信天线11a进行数据的收发。The communication control unit 11 transmits and receives data via the communication network N and the communication antenna 11a.

即,通信天线11a是能够进行与该移动终端300在与无线基站(省略图示)的通信中采用的预定的通信方式(例如W-CDMA(Wideband Code DivisionMultiple Access:宽带码分多址)方式、GSM(Global System for MobileCommunications:全球移动通讯系统;注册商标)方式等)对应的数据的收发的天线。另外,通信控制部11依照与预定的通信方式对应的通信协议,通过在该通信方式中设定的通信信道在与无线基站之间经由通信天线11a进行数据的收发。即,通信控制部11根据从中央控制部1输出并输入的指示信号,向通信对方的外部设备进行与该外部设备的外部用户的通话中的声音的收发、电子邮件的数据的收发。That is, the communication antenna 11a is capable of performing a predetermined communication method (for example, W-CDMA (Wideband Code Division Multiple Access: Wideband Code Division Multiple Access) method, An antenna for sending and receiving data corresponding to GSM (Global System for Mobile Communications: Global System for Mobile Communications; registered trademark) method, etc.). In addition, the communication control unit 11 transmits and receives data to and from the wireless base station via the communication antenna 11 a through the communication channel set in the communication method according to the communication protocol corresponding to the predetermined communication method. That is, the communication control unit 11 transmits and receives audio during a call with an external user of the external device and transmits and receives data of an e-mail to an external device of a communication partner based on an instruction signal output and input from the central control unit 1 .

此外,通信控制部11的结构是一个例子,并不限于此,能够适当地任意变更,例如虽然省略图示,但也可以构成为装载无线LAN模块,能够经由接入点(Access Point)访问通信网络N。In addition, the configuration of the communication control unit 11 is an example and is not limited thereto, and can be changed arbitrarily as appropriate. For example, although not shown in the figure, it can also be configured to be equipped with a wireless LAN module to allow access to communication via an access point (Access Point). Network N.

通信网络N例如是移动终端300经由无线基站、网关服务器(省略图示)等与外部设备连接的通信网络。The communication network N is, for example, a communication network in which the mobile terminal 300 is connected to external devices via a wireless base station, a gateway server (not shown), or the like.

另外,通信网络N例如是利用专用线和现有的普通公用线路构筑的通信网络,能够应用LAN(局域网)、WAN(广域网)等各种线路形式。另外,通信网路N例如包括电话线路网、ISDN线路网、专用线、移动通信网、通信卫星线路、CATV线路网等各种通信网络网、IP网络、VoIP(Voice over InternetProtocol:网际网络电话)网关、因特网服务运营商等。In addition, the communication network N is, for example, a communication network constructed using dedicated lines and existing general public lines, and various line types such as LAN (Local Area Network) and WAN (Wide Area Network) can be applied. In addition, the communication network N includes, for example, various communication networks such as a telephone line network, an ISDN line network, a dedicated line, a mobile communication network, a communication satellite line, and a CATV line network, an IP network, and VoIP (Voice over Internet Protocol: Internet Telephony). Gateways, Internet Service Providers, etc.

操作输入部12用于向终端主体输入各种指示。The operation input unit 12 is used to input various instructions to the terminal body.

具体地说,操作输入部12具备被摄体的摄影指示相关的快门按键、模式和功能等的选择指示相关的上下左右的光标按键、决定按键、电话的呼叫来电和电子邮件的收发等的执行指示相关的通信关联按键、文本的输入指示相关的数字按键和记号按键等各种按键(都省略图示)。Specifically, the operation input unit 12 includes a shutter button for instructing photography of a subject, up, down, left, and right cursor buttons for instructing selection of modes, functions, etc., a decision button, and execution functions such as telephone calls and e-mail transmission and reception. Various keys such as communication-related keys related to indications, number keys and mark keys related to text input indications (both are not shown).

另外,如果由用户操作了各种按键,则操作输入部12向中央控制部1输出与所操作的按键对应的操作指示。中央控制部1依照从操作输入部12输出并输入的操作指示,使各部执行预定的动作(例如被摄体的摄像、电话的呼叫来电、电子邮件的收发等)。Also, when various keys are operated by the user, the operation input unit 12 outputs an operation instruction corresponding to the operated key to the central control unit 1 . The central control unit 1 causes each unit to perform a predetermined operation (for example, imaging a subject, calling a telephone, sending and receiving an e-mail, etc.) in accordance with an operation instruction output and input from the operation input unit 12 .

此外,操作输入部12既可以具有与显示部8一体地设置的触摸屏,也可以根据用户对触摸屏的预定操作,向中央控制部1输出与该预定操作对应的操作指示。In addition, the operation input unit 12 may have a touch screen integrally provided with the display unit 8 , or may output an operation instruction corresponding to the predetermined operation to the central control unit 1 according to a user's predetermined operation on the touch screen.

<代码读取处理><Code read processing>

接着,参照图13~图16说明移动终端300的代码读取处理。Next, code reading processing of the mobile terminal 300 will be described with reference to FIGS. 13 to 16 .

图13是表示代码读取处理的动作的一个例子的流程图。FIG. 13 is a flowchart showing an example of the operation of code reading processing.

此外,假设通过以下的代码读取处理摄像的印迹Si例如被盖章在明信片等记录介质P的预定位置(参照图14A)。另外,假设印迹Si的框部分Sw的各边Sa分别被附加了相同的代码信息Sc。In addition, it is assumed that the imprint Si imaged by the following code reading process is stamped, for example, at a predetermined position on a recording medium P such as a postcard (see FIG. 14A ). In addition, it is assumed that the same code information Sc is added to each side Sa of the frame portion Sw of the imprint Si.

如图13所示,首先,如果根据用户对操作输入部12的预定操作输入了摄像指示,则摄像控制部4使摄像部3摄像印迹Si,图像数据生成部5生成从电子摄像部3b传送的摄像图像Ia的图像数据(步骤S1;参照图14B)。As shown in FIG. 13, first, if an imaging instruction is input according to a predetermined operation of the user on the operation input unit 12, the imaging control unit 4 causes the imaging unit 3 to image the imprint Si, and the image data generating unit 5 generates the image data transmitted from the electronic imaging unit 3b. Image data of the captured image Ia (step S1; refer to FIG. 14B ).

然后,图像数据生成部5将生成的摄像图像Ia的YUV数据输出到存储器2,存储在该存储器2中。Then, the image data generation unit 5 outputs the generated YUV data of the captured image Ia to the memory 2 and stores it in the memory 2 .

此外,为了在更接近正方形的状态下容易摄像印迹Si,显示控制部9也可以使显示部8显示与印迹Si的外形对应的引导显示。In addition, in order to easily image the imprint Si in a more square state, the display control unit 9 may cause the display unit 8 to display a guide display corresponding to the outer shape of the imprint Si.

接着,代码处理部6的图像取得部6a从存储器2取得通过图像数据生成部5生成的摄像图像Ia的预定的分辨率的图像数据(例如亮度数据)(步骤S2;参照图15A)。接着,二值化部6b针对通过图像取得部6a取得的摄像图像Ia的图像数据实施以预定的阈值进行二值化的二值化处理,生成二值化图像Ib的图像数据(步骤S3)。Next, the image acquisition unit 6a of the code processing unit 6 acquires image data (for example, luminance data) of a predetermined resolution of the captured image Ia generated by the image data generation unit 5 from the memory 2 (step S2; see FIG. 15A ). Next, the binarization unit 6b performs a binarization process of binarizing the image data of the captured image Ia acquired by the image acquisition unit 6a with a predetermined threshold to generate image data of the binarized image Ib (step S3).

接着,边缘检测部6g从通过二值化部6b生成的二值化图像Ib内检测出多个边缘E,生成边缘图像Ic(参照图15C)的图像数据(步骤S4)。Next, the edge detection unit 6g detects a plurality of edges E from the binarized image Ib generated by the binarization unit 6b, and generates image data of an edge image Ic (see FIG. 15C) (step S4).

接着,平行边缘抽出部6h针对边缘图像Ic的图像数据,从预定的位置(例如左上角部等)开始顺序地施加平行边缘过滤器F,抽出大致平行的2条边缘E、E(步骤S5;参照图16A和图16B)。Next, the parallel edge extraction unit 6h sequentially applies the parallel edge filter F to the image data of the edge image Ic from a predetermined position (for example, upper left corner, etc.), and extracts two substantially parallel edges E, E (step S5; See Figures 16A and 16B).

接着,读取区域确定部6i在二值化图像Ib内,将与连接通过平行边缘抽出部6h抽出的大致平行的2条边缘E、E的中间点之间的线对应的区域确定为代码信息Sc的读取区域A(步骤S6)。Next, the read area specifying unit 6i specifies, in the binarized image Ib, an area corresponding to a line connecting the intermediate points of two substantially parallel edges E, E extracted by the parallel edge extracting unit 6h as code information. The area A of Sc is read (step S6).

接着,信息读取部6e进行在二值化图像Ib的通过读取区域确定部6i确定的读取区域A中从代码信息Sc读取预定的信息的读取处理(步骤S7)。具体地说,信息读取部6e从作为预定形状的线的读取区域A的预定位置(例如左上角部等)开始沿着预定方向进行扫描,分别确定像素值“1”的白像素的集合和像素值“0”的黑像素的集合所存在的坐标位置。然后,信息读取部6e针对所确定的白像素的集合和黑像素的集合的排列实施解码处理,读取由代码信息Sc表示的原始的预定的信息(例如URL等)。Next, the information reading unit 6e performs a reading process of reading predetermined information from the code information Sc in the reading area A specified by the reading area specifying unit 6i of the binarized image Ib (step S7). Specifically, the information reading unit 6e scans in a predetermined direction from a predetermined position (for example, the upper left corner) of the reading area A which is a line of a predetermined shape, and specifies a set of white pixels with a pixel value "1" respectively. and the coordinate position where a set of black pixels with a pixel value "0" exists. Then, the information reading unit 6e performs decoding processing on the specified arrangement of the set of white pixels and the set of black pixels, and reads original predetermined information (for example, URL, etc.) indicated by the code information Sc.

此外,为了更高效地进行信息读取部6e的读取处理,也可以在该读取处理之前,对二值化图像Ib进行框部分Sw的外形成为正方形那样的映射变换处理。In addition, in order to more efficiently perform the reading process by the information reading unit 6e, before the reading process, the binarized image Ib may be subjected to a mapping conversion process such that the outer shape of the frame portion Sw becomes a square.

接着,信息读取部6e判定通过读取处理是否从代码信息Sc多次读取了原始的预定的信息(步骤S8)。Next, the information reading unit 6e judges whether or not original predetermined information has been read from the code information Sc a plurality of times through the reading process (step S8).

在此,如果判定为多次读取了原始的预定的信息(步骤S8;是),则信息读取部6e判定为能够适当读取该预定的信息,动作处理部7依照通过信息读取部6e读取的预定的信息(例如URL等)执行预定的动作(例如访问因特网,进行确定的声音、图像的重放)(步骤S9)。Here, if it is determined that the original scheduled information has been read multiple times (step S8; Yes), the information reading unit 6e determines that the scheduled information can be read appropriately, and the operation processing unit 7 follows the steps passed by the information reading unit. 6e executes a predetermined action (such as accessing the Internet, replaying a certain sound or image) with the read predetermined information (for example, URL, etc.) (step S9).

另一方面,如果在步骤S8中判定为没有多次读取原始的预定的信息(步骤S8;否),则中央控制部1的CPU跳过步骤S9的处理,使该代码读取处理结束。On the other hand, if it is determined in step S8 that the original predetermined information has not been read multiple times (step S8; NO), the CPU of the central control unit 1 skips the process of step S9 and ends the code reading process.

如以上那样,根据本实施方式的移动终端300,从对预定的印图像Sp的周围的具有预定宽度的框部分Sw附加代码信息Sc而成的印迹Si进行摄像所得的摄像图像Ia的二值化图像Ib检测出多个边缘E,根据从多个边缘E、……中抽出的与框部分Sw的宽度大致相等的间隔的大致平行的2条边缘E、E,在二值化图像Ib内确定代码信息Sc的读取区域A,在该读取区域A中从代码信息Sc读取预定的信息,因此通过利用盖章在记录介质P上的印迹Si的框部分Sw的边缘形状,能够在二值化图像Ib中适当地确定代码信息Sc存在的读取区域A。即,在框部分Sw的内侧存在代码信息Sc,因此通过确定该框部分Sc的2条边缘E、E,也能够适当地确定二值化图像Ib中的代码信息Sc的读取区域A。具体地说,在二值化图像Ib内,将与2条边缘E、E的内侧的区域对应的区域、更具体地说与将2条边缘E、E的中间点之间连接起来的线对应的区域确定为读取区域A,因此能够在摄像图像Ia内更适当地确定读取区域A。As described above, according to the mobile terminal 300 of the present embodiment, the captured image Ia is binarized from the footprint Si obtained by adding the code information Sc to the frame portion Sw having a predetermined width around the predetermined print image Sp. A plurality of edges E are detected in the image Ib, and are determined in the binarized image Ib based on two substantially parallel edges E, E extracted from the plurality of edges E, . The reading area A of the code information Sc in which predetermined information is read from the code information Sc, therefore, by utilizing the edge shape of the frame portion Sw of the imprint Si stamped on the recording medium P, it is possible to In the valued image Ib, the reading area A where the code information Sc exists is appropriately determined. That is, since the code information Sc exists inside the frame portion Sw, by specifying the two edges E, E of the frame portion Sc, the reading area A of the code information Sc in the binarized image Ib can also be appropriately specified. Specifically, in the binarized image Ib, the region corresponding to the region inside the two edges E, E, more specifically, corresponds to the line connecting the intermediate points of the two edges E, E The area of is determined as the reading area A, so the reading area A can be more appropriately specified in the captured image Ia.

由此,在读取区域A中从代码信息Sc读取原始的预定的信息即可,因此能够适当地从摄像图像Ia读取预定的信息。In this way, it is only necessary to read the original predetermined information from the code information Sc in the reading area A, so that the predetermined information can be appropriately read from the captured image Ia.

另外,在从向框部分Sw附加了相同的多个代码信息Sc的印迹Si的摄像图像Ia读取了预定个数以上的预定的信息的情况下,控制与该预定的信息对应的处理的执行,因此通过预先向框部分Sw多重地嵌入多个代码信息Sc、……,能够从代码信息Sc稳定地读取原始的预定的信息,能够适当地执行与读取出的预定的信息对应的处理。In addition, when a predetermined number or more of predetermined information is read from the captured image Ia of imprint Si to which the same plurality of code information Sc is added to the frame portion Sw, the execution of processing corresponding to the predetermined information is controlled. Therefore, by embedding a plurality of code information Sc, . .

此外,本发明并不限于上述实施方式,可以在不脱离本发明的主要内容的范围内进行各种改进和设计的变更。In addition, the present invention is not limited to the above-described embodiments, and various improvements and design changes can be made without departing from the scope of the present invention.

即,只要能够从摄像图像Ia中确定框部分Sw,而从确定的框部分读取信息,则框部分Sw的确定方法也可以是任意的方法。That is, as long as the frame portion Sw can be specified from the captured image Ia and information can be read from the specified frame portion, the method of specifying the frame portion Sw may be any method.

例如,在上述实施方式中,也可以准备与预定的多角形状的框对应的框模板图像,通过框模板图像和摄像图像Ia之间的匹配来确定框部分Sw。For example, in the above-described embodiment, a frame template image corresponding to a predetermined polygonal frame may be prepared, and the frame portion Sw may be specified by matching between the frame template image and the captured image Ia.

另外,例如在上述实施方式中,作为代码信息Sc的读取区域A,示例了与在摄像图像Ia(二值化图像Ib)内将大致平行的2条边缘E、E的中间点之间连接起来的线对应的区域,但是一个例子,并不限于此,只要是与大致平行的2条边缘E、E的内侧的区域对应的区域,则能够适当地任意变更。In addition, for example, in the above-mentioned embodiment, as the reading area A of the code information Sc, an example is shown that connects an intermediate point between two substantially parallel edges E, E in the captured image Ia (binarized image Ib). The area corresponding to the raised line is not limited thereto as an example, and can be changed arbitrarily as long as it is an area corresponding to the inner area of the two substantially parallel edges E, E.

另外,在上述实施方式中,将框部分Sw的形状设为正方形,但只是一个例子,并不限于此,只要具有预定宽度,则能够适当地任意变更。即,框部分Sw的形状例如也可以是正方形以外的多角形状,还可以是圆环状。In addition, in the above-mentioned embodiment, the shape of the frame part Sw was made into a square, but this is just an example, and it is not limited to this, As long as it has predetermined width, it can change arbitrarily suitably. That is, the shape of the frame portion Sw may be, for example, a polygonal shape other than a square, or may be a ring shape.

进而,在上述实施方式中,向印迹Si的框部分Sw的各边Sa分别附加相同的代码信息Sc,但是一个例子,并不限于此,例如也可以附加相互不同的代码信息Sc,在该情况下,可以增大嵌入到框部分Sw的代码信息(原始的预定的信息)Sc的量。Furthermore, in the above-described embodiment, the same code information Sc is added to each side Sa of the frame portion Sw of the imprint Si, but it is not limited to this as an example, and for example, different code information Sc may be added. Next, the amount of code information (original predetermined information) Sc embedded in the frame portion Sw can be increased.

进而,在上述实施方式中,作为图像处理装置,示例了移动终端300,但是一个例子,并不限于此,只要能够控制代码信息Sc的读取处理的执行,则能够适当地任意变更。Furthermore, in the above-mentioned embodiment, the mobile terminal 300 was exemplified as the image processing device, but it is not limited to this as an example, as long as the execution of the code information Sc reading process can be controlled, it can be changed arbitrarily as appropriate.

除此以外,在上述实施方式中,构成为在移动终端300的中央控制部1的控制下,通过由图像取得部6a、边缘检测部6g、平行边缘抽出部6h、读取区域确定部6i、信息读取部6e进行驱动来实现作为取得单元、检测单元、抽出单元、确定单元、读取单元的功能,但并不限于此,也可以构成为通过由中央控制部1的CPU执行预定的程序等来实现。In addition, in the above-described embodiment, under the control of the central control unit 1 of the mobile terminal 300, the image acquisition unit 6a, the edge detection unit 6g, the parallel edge extraction unit 6h, the reading area determination unit 6i, The information reading unit 6e is driven to realize functions as an acquisition unit, a detection unit, an extraction unit, a determination unit, and a reading unit. Wait for it to come true.

即,将包含取得处理过程、检测处理过程、抽出处理过程、确定处理过程、读取处理过程的程序存储在存储程序的程序存储器中。然后,可以通过取得处理过程使中央控制部1的CPU作为以下的单元而发挥功能,即取得对印迹Si进行摄像所得的印迹图像,其中该印迹Si向预定的印图像Sp的周围的具有预定宽度的框部分Sw附加将预定的信息编码为像素集合的规则排列的代码信息Sc而成。另外,可以通过检测处理过程使中央控制部1的CPU作为从取得的印迹图像中检测多个边缘E的单元而发挥功能。另外,可以通过抽出处理过程使中央控制部1的CPU作为以下的单元而发挥功能,即在检测出的多个边缘E、……中,抽出与框部分Sw的宽度大致相等的间隔的大致平行的2条边缘E、E。另外,可以通过确定处理过程使中央控制部1的CPU作为以下的单元而发挥功能,即根据抽出的2条边缘E、E,在印迹图像内确定代码信息Sc的读取区域A。另外,可以通过读取处理过程使中央控制部1的CPU作为在确定的读取区域A中从代码信息Sc读取预定的信息的单元而发挥功能,That is, a program including acquisition processing, detection processing, extraction processing, identification processing, and reading processing is stored in a program memory storing the programs. Then, the CPU of the central control unit 1 can be made to function as a means for acquiring a print image obtained by imaging a print Si having a predetermined width to the periphery of a predetermined print image Sp through an acquisition process. The frame portion Sw of the frame is formed by adding code information Sc that encodes predetermined information as a set of pixels regularly arranged. In addition, the CPU of the central control unit 1 may function as a means for detecting a plurality of edges E from the obtained print image through the detection processing procedure. In addition, the CPU of the central control unit 1 may function as a means for extracting, among the detected plurality of edges E, . The 2 edges E, E of . In addition, the CPU of the central control unit 1 may function as means for specifying the reading area A of the code information Sc in the stamp image based on the two extracted edges E, E by specifying the processing procedure. In addition, the CPU of the central control unit 1 may function as a means for reading predetermined information from the code information Sc in the determined reading area A through the reading process,

同样,对于处理单元,也可以构成为通过中央控制部1的CPU执行预定的程序等来实现。Similarly, the processing unit may also be realized by a configuration in which the CPU of the central control unit 1 executes a predetermined program or the like.

进而,作为存储了用于执行上述各处理的程序的计算机可读取的介质,除了ROM、硬盘等以外,也能够应用快闪存储器等非易失性存储器、CD-ROM等可移动型记录介质。另外,也应用载波(Carrier wave)作为经由预定的通信线路提供程序的数据的介质。Furthermore, as a computer-readable medium storing a program for executing each of the above-mentioned processes, in addition to a ROM, a hard disk, etc., a nonvolatile memory such as a flash memory, and a portable recording medium such as a CD-ROM can also be applied. . In addition, a carrier wave (Carrier wave) is also used as a medium for providing program data via a predetermined communication line.

Claims (19)

1. an image processing apparatus, is characterized in that, possesses:
Acquisition unit, it obtains the print image trace that addition of code information in frame part being carried out to shooting gained;
Determining unit, the frame image-region corresponding with the trace of above-mentioned frame part in the print image obtained by above-mentioned acquisition unit is defined as the reading area reading above-mentioned code information by it;
Reading unit, it reads above-mentioned code information from the above-mentioned reading area determined by above-mentioned determining unit.
2. image processing apparatus according to claim 1, is characterized in that,
Above-mentioned determining unit possesses:
Detecting unit, it detects multiple edge from the print image obtained by above-mentioned acquisition unit;
Extract unit out, they are in the multiple edges detected by above-mentioned detecting unit, extract out and 2 almost parallel edges at interval that the width of above-mentioned frame part is roughly equal, wherein
According to 2 edges extracted out by above-mentioned extraction unit, in above-mentioned print image, determine the reading area of above-mentioned code information,
Above-mentioned reading unit, in the above-mentioned reading area determined by above-mentioned determining unit, reads above-mentioned predetermined information from above-mentioned code information.
3. image processing apparatus according to claim 2, is characterized in that,
The region corresponding with the region of the inner side clamped with above-mentioned 2 edges, in above-mentioned print image, is defined as above-mentioned reading area by above-mentioned determining unit.
4. image processing apparatus according to claim 2, is characterized in that,
Above-mentioned code information is added along the vertical direction substantially vertical with this Width in the Width substantial middle side of above-mentioned frame part,
The region corresponding with the line between the intermediate point connecting above-mentioned 2 edges, in above-mentioned marking image, is defined as above-mentioned reading area by above-mentioned determining unit.
5. image processing apparatus according to claim 1, is characterized in that,
Identical multiple above-mentioned code information is added to above-mentioned frame part,
Also possess: processing unit, it, when be have read the above-mentioned predetermined information of more than predetermined number by above-mentioned reading unit, controls the execution of the process corresponding with this information.
6. image processing apparatus according to claim 1, is characterized in that,
Above-mentioned determining unit possesses:
Presumption unit, it is in the print image obtained by above-mentioned acquisition unit, forms the lateral profile of above-mentioned frame part, estimates the straight line of the predetermined number corresponding with the angle number of the frame of above-mentioned polygon;
Detecting unit, it detects the above-mentioned frame part of the above-mentioned print image be made up of the straight line of the predetermined number deduced by above-mentioned presumption unit.
7. image processing apparatus according to claim 6, is characterized in that,
Above-mentioned presumption unit possesses:
Outline specifying unit, it determines the region of the polygon corresponding with the lateral profile of the above-mentioned frame part of the print image obtained by above-mentioned acquisition unit;
Straight line determining unit, the position on multiple summits in the region of its polygon determined by above-mentioned outline specifying unit according to formation, determines the straight line of the predetermined number of the lateral profile forming above-mentioned frame part.
8. image processing apparatus according to claim 6, is characterized in that,
Above-mentioned straight line determining unit is in the multiple straight lines on any 2 summits that have passed the region forming the polygon determined by above-mentioned outline specifying unit, according at least one party in the relativeness between the number of the pixel of the region overlap of each straight line and above-mentioned polygon and adjacent straight line, determine the straight line of the predetermined number of the lateral profile forming above-mentioned frame part.
9. image processing apparatus according to claim 8, is characterized in that,
Above-mentioned straight line determining unit is also in the multiple straight lines on any 2 summits that have passed the region forming the polygon determined by above-mentioned outline specifying unit, determine this straight line to be defined as the straight line of the lateral profile forming above-mentioned frame part by the straight line that the number of multiple pixel overlaps in the region forming above-mentioned polygon is more than predetermined value.
10. image processing apparatus according to claim 8, is characterized in that,
Above-mentioned straight line determining unit is also in the multiple straight lines on any 2 summits that have passed the region forming the polygon determined by above-mentioned outline specifying unit, determine the straight line roughly equal with the interior angle of the frame of adjacent straight line angulation and above-mentioned polygon, the pixel additional weight overlapping with the region of above-mentioned polygon in the pixel forming this straight line, calculate the evaluation of estimate of each straight line, straight line high for the evaluation of estimate calculated is defined as the straight line of the lateral profile forming above-mentioned frame part.
11. image processing apparatus according to claim 7, is characterized in that,
Above-mentioned detecting unit possesses: summit determining unit, and the point of the predetermined number intersected between the straight line of the predetermined number determined by above-mentioned straight line determining unit is defined as the summit of above-mentioned frame part by it, wherein
According to the summit of the predetermined number determined by above-mentioned summit determining unit, detect the above-mentioned frame part of above-mentioned print image.
12. image processing apparatus according to claim 11, is characterized in that,
Above-mentioned trace forms the mark of reservation shape in the bight of the frame of above-mentioned polygon,
Above-mentioned summit determining unit also determines the position of the sign image corresponding with above-mentioned mark in the print image obtained by above-mentioned acquisition unit, according to the position of determined above-mentioned sign image, determines the summit of above-mentioned frame part.
13. image processing apparatus according to claim 12, is characterized in that,
Also possess: the first generation unit, it, according to the summit of the predetermined number determined by above-mentioned summit determining unit, carries out mapping transformation process to the print image obtained by above-mentioned acquisition unit, generates the print image of polygon,
Above-mentioned detecting unit detects the frame part corresponding with the frame of the print image of the polygon generated by above-mentioned first generation unit.
14. image processing apparatus according to claim 6, is characterized in that,
Also possess: reading unit, it reads predetermined information from the above-mentioned code information in the above-mentioned frame part of the above-mentioned print image detected by above-mentioned detecting unit.
15. image processing apparatus according to claim 1, is characterized in that,
Additional multiple above-mentioned code information on the frame of the polygon of above-mentioned trace,
Possess: processing unit, it, when be have read the above-mentioned predetermined information of more than predetermined number by above-mentioned reading unit, controls the execution of the process corresponding with this predetermined information.
16. image processing apparatus according to claim 6, is characterized in that,
Also possess: pixel count reduces unit, and it is to the print image obtained by above-mentioned acquisition unit, carries out processing the number of the pixel be present in the background of this print image is reduced relatively,
In the print image of above-mentioned presumption unit after above-mentioned pixel count reduces the process of unit, estimate the straight line of above-mentioned predetermined number.
17. image processing apparatus according to claim 1, is characterized in that,
Above-mentioned frame is roughly circular,
Possess: mark determining unit, it determines to be formed in the mark in above-mentioned ring part in the image obtained by above-mentioned acquisition unit,
Above-mentioned reading unit, according to the mark determined by above-mentioned mark determining unit, reads above-mentioned code information.
18. image processing apparatus according to claim 17, is characterized in that,
Also possess: the second generation unit, the position of mark determined by above-mentioned mark determining unit as benchmark, is carried out mapping transformation process to the image obtained by above-mentioned acquisition unit, is generated the image above-mentioned ring part being transformed to positive toroidal by it.
19. 1 kinds of image processing methods employing image processing apparatus, is characterized in that, comprising:
Obtain to the trace that addition of code information in frame part carry out make a video recording gained print image obtain step;
The frame image-region corresponding with the trace of above-mentioned frame part in the print image this obtained is defined as the determining step of the reading area reading above-mentioned code information;
The read step of above-mentioned code information is read from this above-mentioned reading area determined.
CN201410387805.6A 2013-08-08 2014-08-08 Image processing apparatus and image processing method Active CN104346613B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2013164741A JP5858012B2 (en) 2013-08-08 2013-08-08 Image processing apparatus, image processing method, and program
JP2013-164747 2013-08-08
JP2013-164741 2013-08-08
JP2013164747A JP5862623B2 (en) 2013-08-08 2013-08-08 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
CN104346613A true CN104346613A (en) 2015-02-11
CN104346613B CN104346613B (en) 2018-06-15

Family

ID=52502184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410387805.6A Active CN104346613B (en) 2013-08-08 2014-08-08 Image processing apparatus and image processing method

Country Status (1)

Country Link
CN (1) CN104346613B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644183A (en) * 2017-09-01 2018-01-30 福建联迪商用设备有限公司 One-dimension code CMOS images the coding/decoding method and terminal of engine
CN108460381A (en) * 2018-03-13 2018-08-28 南京邮电大学 Invoice reimbursement Information locating based on image recognition and intercept method
CN110313183A (en) * 2017-02-23 2019-10-08 奈飞公司 Iterative technique for being encoded to video content
US11153585B2 (en) 2017-02-23 2021-10-19 Netflix, Inc. Optimizing encoding operations when generating encoded versions of a media title
US11166034B2 (en) 2017-02-23 2021-11-02 Netflix, Inc. Comparing video encoders/decoders using shot-based encoding and a perceptual visual quality metric
US11444999B2 (en) 2017-02-23 2022-09-13 Netflix, Inc. Iterative techniques for generating multiple encoded versions of a media title
US11910039B2 (en) 2017-07-18 2024-02-20 Netflix, Inc. Encoding technique for optimizing distortion and bitrate
US12255940B2 (en) 2017-07-18 2025-03-18 Netflix, Inc. Encoding techniques for optimizing distortion and bitrate

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334543A (en) * 2000-07-25 2002-02-06 佳能株式会社 Bills processing method and device
CN1521656A (en) * 2003-02-10 2004-08-18 吴建明 Novel electronic signature stamp technique
US20090221880A1 (en) * 2002-08-20 2009-09-03 Welch Allyn, Inc. Diagnostic instrument workstation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334543A (en) * 2000-07-25 2002-02-06 佳能株式会社 Bills processing method and device
US20090221880A1 (en) * 2002-08-20 2009-09-03 Welch Allyn, Inc. Diagnostic instrument workstation
CN1521656A (en) * 2003-02-10 2004-08-18 吴建明 Novel electronic signature stamp technique

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11758146B2 (en) 2017-02-23 2023-09-12 Netflix, Inc. Techniques for positioning key frames within encoded video sequences
US11818375B2 (en) 2017-02-23 2023-11-14 Netflix, Inc. Optimizing encoding operations when generating encoded versions of a media title
CN110313183A (en) * 2017-02-23 2019-10-08 奈飞公司 Iterative technique for being encoded to video content
US11153585B2 (en) 2017-02-23 2021-10-19 Netflix, Inc. Optimizing encoding operations when generating encoded versions of a media title
US11166034B2 (en) 2017-02-23 2021-11-02 Netflix, Inc. Comparing video encoders/decoders using shot-based encoding and a perceptual visual quality metric
CN110313183B (en) * 2017-02-23 2021-11-12 奈飞公司 Iterative techniques for encoding video content
US12284363B2 (en) 2017-02-23 2025-04-22 Netflix, Inc. Techniques for selecting resolutions for encoding different shot sequences
US11184621B2 (en) 2017-02-23 2021-11-23 Netflix, Inc. Techniques for selecting resolutions for encoding different shot sequences
US12200235B2 (en) 2017-02-23 2025-01-14 Netflix, Inc. Optimizing encoding operations when generating encoded versions of a media title
US11444999B2 (en) 2017-02-23 2022-09-13 Netflix, Inc. Iterative techniques for generating multiple encoded versions of a media title
US11870945B2 (en) 2017-02-23 2024-01-09 Netflix, Inc. Comparing video encoders/decoders using shot-based encoding and a perceptual visual quality metric
US11871002B2 (en) 2017-02-23 2024-01-09 Netflix, Inc. Iterative techniques for encoding video content
US11910039B2 (en) 2017-07-18 2024-02-20 Netflix, Inc. Encoding technique for optimizing distortion and bitrate
US12255940B2 (en) 2017-07-18 2025-03-18 Netflix, Inc. Encoding techniques for optimizing distortion and bitrate
CN107644183A (en) * 2017-09-01 2018-01-30 福建联迪商用设备有限公司 One-dimension code CMOS images the coding/decoding method and terminal of engine
CN108460381A (en) * 2018-03-13 2018-08-28 南京邮电大学 Invoice reimbursement Information locating based on image recognition and intercept method

Also Published As

Publication number Publication date
CN104346613B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN104346613B (en) Image processing apparatus and image processing method
JP5464656B2 (en) Image quality evaluation device, terminal device, image quality evaluation system, image quality evaluation method, and program
US9357107B2 (en) Image-processing device, image-capturing device, image-processing method, and recording medium
JP5775977B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
CN103996190B (en) Region ad hoc approach, region specific device and system, server and recording medium
US9361500B2 (en) Image processing apparatus, image processing method, and recording medium
US9196029B2 (en) Threshold setting device for setting threshold used in binarization process, object detection device, threshold setting method, and computer readable storage medium
JPWO2018003124A1 (en) Imaging device, imaging method and imaging program
US9462205B2 (en) Image processing device, imaging device, image processing method, and non-transitory computer readable medium
US9877004B2 (en) Color-mixture-ratio calculation device and method, and imaging device
US9374544B2 (en) Image capture device, image processing method, and program
JP6217225B2 (en) Image collation device, image collation method and program
US9270955B2 (en) Imaging apparatus that generates three-layer color data on the basis of a first mosaic image
JP5228705B2 (en) Image reading apparatus, image reading method, image reading program, and storage medium storing image reading program
JP2018107532A (en) Projection control apparatus, projection control method, and program
JP6286919B2 (en) Image processing apparatus, image processing method, and program
JP5858012B2 (en) Image processing apparatus, image processing method, and program
JP5906745B2 (en) Image display device, image display method, and program
JP2012084178A (en) Image processing device, image processing method, and program
JP2012014311A (en) E-mail creation device and program
JP2006079288A (en) Writing face reproducing method, apparatus, and program
JPWO2017006772A1 (en) Image processing apparatus and method
JP2010178324A (en) Imaging device and camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant