JP2022069813A - Character reader and inspection device - Google Patents

Character reader and inspection device Download PDF

Info

Publication number
JP2022069813A
JP2022069813A JP2020178698A JP2020178698A JP2022069813A JP 2022069813 A JP2022069813 A JP 2022069813A JP 2020178698 A JP2020178698 A JP 2020178698A JP 2020178698 A JP2020178698 A JP 2020178698A JP 2022069813 A JP2022069813 A JP 2022069813A
Authority
JP
Japan
Prior art keywords
product
unit
label
image data
character
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.)
Pending
Application number
JP2020178698A
Other languages
Japanese (ja)
Inventor
祐治 中川
Yuji Nakagawa
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.)
Ishida Co Ltd
Original Assignee
Ishida 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
Application filed by Ishida Co Ltd filed Critical Ishida Co Ltd
Priority to JP2020178698A priority Critical patent/JP2022069813A/en
Publication of JP2022069813A publication Critical patent/JP2022069813A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)

Abstract

To provide a character reader and an inspection device capable of improving character recognition accuracy regardless of a state of a character contained in image data.SOLUTION: A character reader includes: an acquisition unit that acquires image data including a character; a converter that changes a length-to-width ratio (aspect ratio) of a character contained in the image data by changing vertical and horizontal magnification of the image data; and an analysis unit that performs OCR processing on image data whose magnification is changed by the converter and recognizes the character contained in the image data.SELECTED DRAWING: Figure 3

Description

本発明は、文字読取装置及び検査装置に関する。 The present invention relates to a character reading device and an inspection device.

従来から、画像データに対してOCR処理(光学的文字認識処理)を実施することがある。例えば下記特許文献1には、複数の文字サイズが混在した原稿の画像データを拡縮する場合において、領域毎に適切な文字サイズとなるように画像処理を施すことが記載されている。下記特許文献1では、領域毎の文字サイズが指定された文字サイズとなるように、領域毎に画像が変換される。 Conventionally, OCR processing (optical character recognition processing) may be performed on image data. For example, Patent Document 1 below describes that when the image data of a manuscript in which a plurality of character sizes are mixed is scaled, image processing is performed so that the character size is appropriate for each area. In the following Patent Document 1, the image is converted for each area so that the character size for each area becomes the specified character size.

特開2010-32644号公報Japanese Unexamined Patent Publication No. 2010-322644

例えば商品ラベル等のように文字が印字される領域が定まっている場合、印字される文字数等によっては、縦長もしくは横長の文字が上記領域に印字されることがある。このような文字を含む画像データに対してOCR処理を実施した場合、文字認識の精度が悪いことがある。この場合、例えば上記特許文献1に示されるように文字サイズを変更したとしても、文字認識の精度が向上しにくいことがある。 For example, when an area in which characters are printed is fixed, such as a product label, vertically or horizontally long characters may be printed in the above area depending on the number of characters to be printed. When OCR processing is performed on image data including such characters, the accuracy of character recognition may be poor. In this case, for example, even if the character size is changed as shown in Patent Document 1, it may be difficult to improve the accuracy of character recognition.

本発明の一側面の目的は、画像データに含まれる文字の状態にかかわらず文字認識精度を向上可能な文字読取装置及び検査装置の提供である。 An object of one aspect of the present invention is to provide a character reading device and an inspection device capable of improving character recognition accuracy regardless of the state of characters contained in image data.

本発明の一側面に係る文字読取装置は、文字を含む画像データを取得する取得部と、画像データの縦と横の倍率を変えて、画像データに含まれる文字の縦横比(アスペクト比)を変える変換部と、変換部によって倍率が変えられた画像データをOCR処理し、当該画像データに含まれる文字を認識する解析部と、を備える。 The character reading device according to one aspect of the present invention has an acquisition unit for acquiring image data including characters and an aspect ratio of characters included in the image data by changing the vertical and horizontal magnifications of the image data. It includes a conversion unit for changing, and an analysis unit for performing OCR processing on image data whose magnification has been changed by the conversion unit and recognizing characters included in the image data.

この文字読取装置によれば、変換部は、画像データの縦と横の倍率を変えて、画像データに含まれる文字のアスペクト比を変える。これにより、画像データに含まれる文字の縦横比及び大きさを、解析部に認識されやすい状態に変更できる。したがって、上記文字読取装置を用いることによって、画像データに含まれる文字の状態にかかわらず文字認識精度が向上可能である。 According to this character reading device, the conversion unit changes the aspect ratio of the characters included in the image data by changing the vertical and horizontal magnifications of the image data. This makes it possible to change the aspect ratio and size of the characters included in the image data so that they can be easily recognized by the analysis unit. Therefore, by using the character reading device, the character recognition accuracy can be improved regardless of the state of the characters included in the image data.

画像データには、商品情報が印字されたラベルの第1画像データが含まれ、ラベルに印字された文字の少なくとも一部のアスペクト比は、ラベルの印字欄に商品情報の文字列が収まるように、変更されており、変換部は、縦横比が変更された文字が、元のアスペクト比の文字になるように、第1画像データの縦と横の倍率を変えてもよい。この場合、第1画像データに含まれ、且つ、縦横比が変更された文字を、解析部により認識されやすい状態に変えられた後に、各処理が実施される。したがって、第1画像データに対する文字認識精度を向上できる。 The image data includes the first image data of the label on which the product information is printed, and the aspect ratio of at least a part of the characters printed on the label is such that the character string of the product information fits in the print field of the label. , The conversion unit may change the vertical and horizontal magnifications of the first image data so that the characters whose aspect ratio has been changed become the characters having the original aspect ratio. In this case, each process is performed after the characters included in the first image data and whose aspect ratio has been changed are changed to a state in which they can be easily recognized by the analysis unit. Therefore, the character recognition accuracy for the first image data can be improved.

上記文字読取装置は、帳票に付された商品コードからラベルに印字された商品情報を特定する特定部と、解析部で認識した文字列に、特定部で特定された商品情報の文字列が含まれるか否かを判定する判定部と、をさらに備えてもよい。この場合、判定部による判定精度を向上できる。 The character reading device includes a specific unit that identifies the product information printed on the label from the product code attached to the form, and the character string recognized by the analysis unit includes the character string of the product information specified by the specific unit. A determination unit for determining whether or not the product may be used may be further provided. In this case, the determination accuracy by the determination unit can be improved.

上記文字読取装置は、帳票に付された商品コードを読み取る読取部と、商品コード、及び商品コードに紐付けて特定される商品情報を記憶する記憶部と、をさらに備え、特定部は、読取部で読み取られた商品コードに紐づけられた商品情報を記憶部から読み出して判定部に出力してもよい。この場合、判定部による判定を高速化できる。 The character reading device further includes a reading unit for reading the product code attached to the form, and a storage unit for storing the product code and the product information specified in association with the product code, and the specific unit reads. The product information associated with the product code read by the unit may be read from the storage unit and output to the determination unit. In this case, the determination by the determination unit can be speeded up.

商品情報には、商品名、金額、有効期限、原材料名の少なくとも何れかが含まれてもよい。 The product information may include at least one of a product name, an amount of money, an expiration date, and a raw material name.

本発明の一側面に係る検査装置は、上記文字読取装置を備え、帳票には、商品に貼付されるラベルが貼付されており、取得部は、帳票を撮像するカメラを備え、カメラの撮像データから第1画像データを取得し、帳票に貼付されたラベルに印字された商品情報と、商品コードから特定された商品情報との正否を報知する。この検査装置では、上記文字読取装置を用いることによって、第1画像データの文字認識精度が向上可能である。このため当該検査装置は、ラベルに印字された商品情報と、商品コードから特定された商品情報との正否を精度よく報知できる。 The inspection device according to one aspect of the present invention includes the above-mentioned character reading device, a label affixed to a product is affixed to the form, and the acquisition unit includes a camera for taking an image of the form, and the image pickup data of the camera. The first image data is acquired from the above, and the correctness of the product information printed on the label attached to the form and the product information specified from the product code is notified. In this inspection device, the character recognition accuracy of the first image data can be improved by using the character reading device. Therefore, the inspection device can accurately notify the correctness of the product information printed on the label and the product information specified from the product code.

本発明の一側面によれば、画像データに含まれる文字の状態にかかわらず文字認識精度を向上可能な文字読取装置及び検査装置を提供できる。 According to one aspect of the present invention, it is possible to provide a character reading device and an inspection device capable of improving character recognition accuracy regardless of the state of characters included in image data.

図1は、実施形態に係るラベル貼付装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a label affixing device according to an embodiment. 図2は、帳票の例を示す図である。FIG. 2 is a diagram showing an example of a form. 図3(a)は、見本ラベルの例を示す図であり、図3(b)は、商品ラベルの例を示す図である。FIG. 3A is a diagram showing an example of a sample label, and FIG. 3B is a diagram showing an example of a product label. 図4は、実施形態に係る検査装置の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of an inspection device according to an embodiment. 図5は、図4の端末装置の斜視図である。FIG. 5 is a perspective view of the terminal device of FIG. 図6は、図1の検査装置によって実行される検査処理の流れを示すフローチャートである。FIG. 6 is a flowchart showing a flow of inspection processing executed by the inspection apparatus of FIG. 図7は、図1の検査装置によって実行される検査処理の流れを示すフローチャートである。FIG. 7 is a flowchart showing a flow of inspection processing executed by the inspection apparatus of FIG. 図8は、データ変換部にて変換後の画像データの例を示す図である。FIG. 8 is a diagram showing an example of image data after conversion by the data conversion unit.

以下、図面を参照して、本発明の好適な一実施形態について詳細に説明する。なお、図面の説明において、同一要素には同一符号を付し、重複する説明を省略する。 Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the drawings. In the description of the drawings, the same elements are designated by the same reference numerals, and duplicate description will be omitted.

本実施形態に係る検査装置は、例えば、以下に説明するラベル貼付装置にて用いられ、文字が印字された商品ラベル(ラベル)の正否を検査する装置である。当該検査装置には、商品ラベルに記載される文字の正否を検査するために、少なくとも文字読取装置が含まれる。なお、以下に説明するように検査装置はラベル貼付装置に含まれるが、これに限られない。検査装置は、ラベル貼付装置とは独立した装置でもよいし、ラベル貼付装置とは異なる装置に含まれてもよい。 The inspection device according to the present embodiment is, for example, a device used in the label affixing device described below and inspects the correctness of a product label (label) on which characters are printed. The inspection device includes at least a character reading device for inspecting the correctness of the characters written on the product label. As will be described below, the inspection device is included in the label affixing device, but is not limited to this. The inspection device may be an device independent of the label sticking device, or may be included in a device different from the label sticking device.

図1は、本実施形態に係るラベル貼付装置の構成を示すブロック図である。図1に示されるように、ラベル貼付装置100は、ラベル発行部30、ラベル貼付部40、制御部70、表示入力パネル80及び検査装置1を備える。 FIG. 1 is a block diagram showing a configuration of a label affixing device according to the present embodiment. As shown in FIG. 1, the label affixing device 100 includes a label affixing unit 30, a label affixing unit 40, a control unit 70, a display input panel 80, and an inspection device 1.

ラベル発行部30は、表示入力パネル80を介して指定された商品の情報の少なくとも一部をラベルに印字し、当該ラベルを商品ラベルとして発行する。ラベル貼付部40は、ラベル発行部30で発行された商品ラベルを吸着して保持し、商品ラベルを物品に貼付する。 The label issuing unit 30 prints at least a part of the information of the designated product via the display input panel 80 on the label, and issues the label as the product label. The label attaching unit 40 attracts and holds the product label issued by the label issuing unit 30, and attaches the product label to the article.

制御部70は、ラベル貼付装置100における各種動作を制御する。制御部70は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等で構成される。制御部70における各種動作の制御は、例えばROMに格納されているプログラムがRAM上にロードされてCPUで実行されることによって行われる。制御部70は、ラベル発行部30、ラベル貼付部40、表示入力パネル80及び検査装置1と接続されている。表示入力パネル80は、各種情報を表示すると共に、作業者による各種操作を受け付ける。表示入力パネル80は、商品を指定する操作を受け付ける。 The control unit 70 controls various operations in the label affixing device 100. The control unit 70 is composed of a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The control of various operations in the control unit 70 is performed, for example, by loading a program stored in the ROM into the RAM and executing the program in the CPU. The control unit 70 is connected to a label issuing unit 30, a label attaching unit 40, a display input panel 80, and an inspection device 1. The display input panel 80 displays various information and accepts various operations by the operator. The display input panel 80 accepts an operation for designating a product.

検査装置1は、例えばラベル台帳(帳票)を用いて商品ラベルの正否を検査する。図2は、帳票の例を示す図である。図2に示されるように、商品を生産する工場等には、商品コード51と、当該商品に貼付すべき正しいラベルである見本ラベル61が印字される部分53と、当該商品に貼付される商品ラベル63を貼付する部分55と、当該商品の外観が印字される部分56と、当該商品に貼付すべき見本のワンポイントラベルが印字され且つ当該商品に貼付されるワンポイントラベルを貼付する部分57と、を有する帳票50が用いられることがある。 The inspection device 1 inspects the correctness of the product label using, for example, a label ledger (form). FIG. 2 is a diagram showing an example of a form. As shown in FIG. 2, in a factory or the like that produces a product, a product code 51, a portion 53 on which a sample label 61, which is a correct label to be affixed to the product, is printed, and a product to be affixed to the product. A portion 55 to which the label 63 is affixed, a portion 56 to which the appearance of the product is printed, a portion 57 to which a one-point label of a sample to be affixed to the product is printed and a one-point label to be affixed to the product, and a portion 57. Form 50 may be used.

帳票50では、商品ラベル63を貼付する部分55が複数設けられている。商品ラベル63を貼付する部分55は、貼付する作業の段階(例えば、保管庫からの払出し時又は返却時、作業の開始時、ラベル交換時、及び、作業の終了時のうち何れかであるか、並びに、貼付する時間)で分けられている。工場等の作業者及び管理者は、所定の作業の段階において、帳票50に商品ラベル63を貼付し、当該商品ラベル63が商品に貼付されるべき正しいラベルであるか否かの確認を行う。検査装置1は、このような商品ラベル63の正否を検査する。 The form 50 is provided with a plurality of portions 55 to which the product label 63 is attached. Whether the portion 55 to which the product label 63 is affixed is at the stage of the affixing work (for example, at the time of withdrawal or return from the storage, at the start of the work, at the time of label replacement, and at the end of the work). , And the time of sticking). A worker and a manager of a factory or the like attach a product label 63 to a form 50 at a predetermined stage of work, and confirm whether or not the product label 63 is the correct label to be affixed to the product. The inspection device 1 inspects the correctness of such a product label 63.

商品コード51は、商品を識別する商品識別情報(商品ID情報)を含んでおり、帳票50に付される。例えば、商品コード51は、帳票50に印刷される。商品識別情報は、例えば数字、英字、模様、及び記号等を組み合わせた符号である。本実施形態では、商品コード51には、商品識別情報に加えて、当該商品がどのように製造されるかの予定を特定するための情報である製造識別情報も含んでいる。製造識別情報も、商品識別情報と同様に、例えば数字、英字、模様、及び記号等を組み合わせた符号である。なお、ここでは、商品識別情報及び製造識別情報を含む情報の例として、バーコードを例に挙げて説明したが、これに限られない。商品コード51は、QRコード(登録商標)等の二次元コードであってもよいし、文字列等の情報であってもよい。 The product code 51 includes product identification information (product ID information) that identifies the product, and is attached to the form 50. For example, the product code 51 is printed on the form 50. The product identification information is, for example, a code that combines numbers, letters, patterns, symbols, and the like. In the present embodiment, the product code 51 includes, in addition to the product identification information, manufacturing identification information which is information for specifying a schedule of how the product is manufactured. Like the product identification information, the manufacturing identification information is also a code that combines, for example, numbers, letters, patterns, symbols, and the like. Here, as an example of information including product identification information and manufacturing identification information, a barcode has been described as an example, but the present invention is not limited to this. The product code 51 may be a two-dimensional code such as a QR code (registered trademark) or information such as a character string.

図3(a)に示されるように、見本ラベル61には、商品に関する情報として商品名、金額等の文字が印字された表ラベル61Aが含まれる。表ラベル61Aには、図形、模様等が印刷される領域61aと、上記文字が印字される領域61b,61cとが区画分けされる。領域61b,61cのそれぞれにおいては、文字の縦方向の大きさは予め定められている。見本ラベル61には、商品名、原材料名、消費期限、保存方法、商品コード及び製造者等が印字された裏ラベル61Bが含まれる。ここでの見本ラベル61は、商品ラベル63の画像をそのまま印刷したものである。 As shown in FIG. 3A, the sample label 61 includes a table label 61A on which characters such as a product name and an amount of money are printed as information about the product. The table label 61A is divided into areas 61a on which figures, patterns and the like are printed, and areas 61b and 61c on which the characters are printed. In each of the regions 61b and 61c, the vertical size of the character is predetermined. The sample label 61 includes a back label 61B on which a product name, a raw material name, an expiration date, a storage method, a product code, a manufacturer, and the like are printed. The sample label 61 here is a printed image of the product label 63 as it is.

図3(b)に示されるように、商品ラベル63には、商品名、金額、賞味期限及び消費期限等の有効期限、及び出荷便などが印字された表ラベル63Aが含まれる。表ラベル63Aには、図形、模様等が印刷される領域63aと、上記文字が印字される領域63b~63d(印字欄)とが区画分けされる。領域63b~63dのそれぞれにおいては、文字の縦方向の大きさは、予め定められている。予め定められる文字の縦方向の大きさは、最低値及び最大値の少なくとも一方でもよい。本実施形態では、領域63bの大きさ及び領域63bに印字される文字列の長さに起因して、領域63bに印字される文字の縦横比(アスペクト比)は、領域63bに印字された文字列が収まるように変更されている。例えば、領域63bに印字される文字数が所定値よりも多い場合、図3(b)に示されるように、縦長の文字にて示される商品名が領域63bに印字される。なお、変更前の文字のアスペクト比は、例えば1:1である。よって、例えば領域63bに印字される文字数が所定値以下である場合、領域63bに印字される文字の縦の長さの最大値と横の長さの最大値とは、同一もしくは実質的に同一である。一方、領域63c,63dに印字される文字のアスペクト比は、変更されていない。なお、領域63aには、図形、模様等に加えて、文字が印字されてもよい。 As shown in FIG. 3B, the product label 63 includes a table label 63A on which the product name, amount, expiration date such as expiration date and expiration date, and shipping service are printed. The table label 63A is divided into an area 63a on which a figure, a pattern, etc. are printed and an area 63b to 63d (printing column) on which the characters are printed. In each of the regions 63b to 63d, the vertical size of the character is predetermined. The predetermined vertical size of the character may be at least one of the minimum value and the maximum value. In the present embodiment, the aspect ratio of the characters printed in the area 63b is the character printed in the area 63b due to the size of the area 63b and the length of the character string printed in the area 63b. It has been modified to fit the column. For example, when the number of characters printed in the area 63b is larger than the predetermined value, the product name indicated by the vertically long characters is printed in the area 63b as shown in FIG. 3 (b). The aspect ratio of the characters before the change is, for example, 1: 1. Therefore, for example, when the number of characters printed in the area 63b is equal to or less than a predetermined value, the maximum value of the vertical length and the maximum value of the horizontal length of the characters printed in the area 63b are the same or substantially the same. Is. On the other hand, the aspect ratio of the characters printed in the areas 63c and 63d has not been changed. In addition to figures, patterns, etc., characters may be printed in the area 63a.

加えて、商品ラベル63には、商品名、原材料名、消費期限、保存方法、及び製造者等と、商品コードとが印字された裏ラベル63Bが含まれる。商品ラベル63を貼付する部分55は、作業の段階に応じて商品に貼付すべき商品ラベル63が貼付される部分に対応する。商品ラベル63は、下記(1)~(5)の少なくとも何れかのラベルである。
(1)保管庫から払い出されたラベルロールから剥がされたラベル。
(2)ラベル貼付装置100によるラベル貼付を開始する前に当該ラベル貼付装置100のラベル発行部30で発行されたラベル。
(3)ラベル貼付装置100におけるラベルの交換の直後に当該ラベル貼付装置100のラベル発行部30で発行されたラベル。
(4)ラベル貼付装置100によるラベル貼付を終了した後に当該ラベル貼付装置100のラベル発行部30で発行されたラベル。
(5)保管庫に返却されたラベルロールから剥がされたラベル。
In addition, the product label 63 includes a back label 63B on which a product name, a raw material name, an expiration date, a storage method, a manufacturer, and a product code are printed. The portion 55 to which the product label 63 is attached corresponds to the portion to which the product label 63 to be attached to the product is attached according to the stage of work. The product label 63 is at least one of the following labels (1) to (5).
(1) A label peeled off from a label roll discharged from the storage.
(2) A label issued by the label issuing unit 30 of the label affixing device 100 before the label affixing by the label affixing device 100 is started.
(3) A label issued by the label issuing unit 30 of the label affixing device 100 immediately after the label is exchanged in the label affixing device 100.
(4) A label issued by the label issuing unit 30 of the label affixing device 100 after the label affixing by the label affixing device 100 is completed.
(5) Labels removed from the label rolls returned to the storage.

換言すると、上記(1)の商品ラベル63は、例えば生産計画に基づいて保管庫から払い出された(出庫された)ラベルロールから、手動又は自動で剥がされて成るラベルである。保管庫は、例えばラベルロールが置かれる倉庫である。上記(2)の商品ラベル63は、商品の生産開始時に、その直前にラベル発行部30で発行されて成るラベルである。上記(3)の商品ラベル63は、商品の生産途中にラベル交換を行った場合、その交換の直後にラベル発行部30で発行されて成るラベルである。上記(4)の商品ラベル63は、商品の生産終了時に、その直後にラベル発行部30で発行されて成るラベルである。上記(5)の商品ラベル63は、例えば生産計画に基づいて保管庫に返却された(入庫された)ラベルロールから、手動又は自動で剥がされて成るラベルである。 In other words, the product label 63 in (1) above is a label that is manually or automatically peeled off from, for example, a label roll that has been discharged (delivered) from the storage based on a production plan. The storage is, for example, a warehouse in which label rolls are placed. The product label 63 of the above (2) is a label issued by the label issuing unit 30 immediately before the start of production of the product. The product label 63 of the above (3) is a label issued by the label issuing unit 30 immediately after the label exchange is performed during the production of the product. The product label 63 of the above (4) is a label issued by the label issuing unit 30 immediately after the end of production of the product. The product label 63 in (5) above is a label that is manually or automatically peeled off from a label roll that has been returned (received) to a storage, for example, based on a production plan.

図4は、本実施形態に係る検査装置の構成を示すブロック図である。図4に示されるように、検査装置1は、端末装置3と、端末装置3と通信可能に設けられる管理サーバ9と、を含んで構成されている。検査装置1は、各情報が印字された見本ラベル61を含み、且つ、各情報が印字された商品ラベル63が貼付される帳票50の画像データから、商品ラベル63の正否を検査する。本実施形態では、検査装置1は、帳票50に貼付された商品ラベル63に印字された商品情報と、商品コード51から特定された商品情報(詳細は後述)との正否を検査及び判定する。なお、端末装置3の少なくとも一部と、管理サーバ9の少なくとも一部とによって本実施形態に係る文字読取装置が構成される。 FIG. 4 is a block diagram showing the configuration of the inspection device according to the present embodiment. As shown in FIG. 4, the inspection device 1 includes a terminal device 3 and a management server 9 provided so as to be able to communicate with the terminal device 3. The inspection device 1 inspects the correctness of the product label 63 from the image data of the form 50 including the sample label 61 on which each information is printed and to which the product label 63 on which each information is printed is attached. In the present embodiment, the inspection device 1 inspects and determines whether the product information printed on the product label 63 affixed to the form 50 and the product information specified from the product code 51 (details will be described later) are correct or not. The character reading device according to the present embodiment is configured by at least a part of the terminal device 3 and at least a part of the management server 9.

端末装置3は、帳票50に関するデータを管理サーバ9に送信すると共に、商品ラベル63が正しいラベルであるか否かの判定結果を管理サーバ9から受け取る。端末装置3の例には、据え置き型の端末、スマートフォン等の携帯端末、及びタブレット端末等が含まれる。端末装置3は、例えば、図5に示されるように、柱状部5Aと脚部5Bとを有する架台5に支持される。端末装置3は、帳票50に重なることができるように、架台5に支持される。端末装置3は、帳票50のデータを管理サーバ9に送信する。管理サーバ9に送信されたデータ自体もしくは当該データの加工データは、文字を含む画像データとして管理サーバ9にて用いられる。当該加工データは、例えば、商品ラベル63が正位になるように加工されたデータ等である。この場合、管理サーバ9は、正位に設定された商品ラベル63を含む画像データを取得する。図4に示されるように、端末装置3は、撮像部11と、表示操作部13と、制御部15と、通信部17と、を備える。 The terminal device 3 transmits data related to the form 50 to the management server 9, and also receives a determination result of whether or not the product label 63 is a correct label from the management server 9. Examples of the terminal device 3 include a stationary terminal, a mobile terminal such as a smartphone, a tablet terminal, and the like. The terminal device 3 is supported, for example, by a gantry 5 having a columnar portion 5A and a leg portion 5B, as shown in FIG. The terminal device 3 is supported by the gantry 5 so that it can overlap the form 50. The terminal device 3 transmits the data of the form 50 to the management server 9. The data itself transmitted to the management server 9 or the processed data of the data is used by the management server 9 as image data including characters. The processed data is, for example, data processed so that the product label 63 is in the normal position. In this case, the management server 9 acquires the image data including the product label 63 set to the normal position. As shown in FIG. 4, the terminal device 3 includes an image pickup unit 11, a display operation unit 13, a control unit 15, and a communication unit 17.

撮像部11は、例えば、タブレット端末の背面に搭載されたカメラである。撮像部11による帳票50の撮像は、作業者又は管理者が表示操作部13を操作することによって実行されてもよいし、管理サーバ9で制御されることによって実行されてもよい。撮像部11は、帳票50の一部分ないし全体を撮像し、帳票50の一部分ないし全体の画像のデータ(以下、「撮像データ」ともいう)を取得する。このため、撮像部11は、検査装置1において文字を含むデータを取得する取得部の一部として機能する。本実施形態では、撮像部11は、帳票50の全体を撮像する。撮像部11は、当該撮像データを管理サーバ9に送信する。管理サーバ9には、撮像データ自体もしくは当該撮像データの加工データが送信される。当該加工データは、例えば、撮像データ内の商品ラベル63が正位になるように加工されたデータ等である。 The image pickup unit 11 is, for example, a camera mounted on the back surface of a tablet terminal. The image pickup of the form 50 by the image pickup unit 11 may be executed by the operator or the manager operating the display operation unit 13, or may be executed by being controlled by the management server 9. The image pickup unit 11 takes an image of a part or the whole of the form 50, and acquires data of a part or the whole image of the form 50 (hereinafter, also referred to as “imaging data”). Therefore, the image pickup unit 11 functions as a part of the acquisition unit that acquires data including characters in the inspection device 1. In the present embodiment, the image pickup unit 11 takes an image of the entire form 50. The image pickup unit 11 transmits the image pickup data to the management server 9. The image pickup data itself or the processed data of the image pickup data is transmitted to the management server 9. The processed data is, for example, data processed so that the product label 63 in the image pickup data is in the normal position.

表示操作部13は、例えば、タッチパネルである。表示操作部13は、後述の判定部96Fによって検査された商品ラベル63の正否を報知する。表示操作部13は、後述の判定部96Fによって判定された帳票50の正否を報知する。表示操作部13の報知は、例えば音声、表示及び振動の少なくとも何れかにより実現することができる。表示操作部13は、報知部の少なくとも一部を構成する。 The display operation unit 13 is, for example, a touch panel. The display operation unit 13 notifies the correctness of the product label 63 inspected by the determination unit 96F described later. The display operation unit 13 notifies the correctness of the form 50 determined by the determination unit 96F described later. The notification of the display operation unit 13 can be realized by, for example, at least one of voice, display, and vibration. The display operation unit 13 constitutes at least a part of the notification unit.

制御部15は、CPU、ROM、RAM等からなる電子制御ユニットである。制御部15は、端末装置3における各種動作を制御する。制御部15は、例えばROMに格納されているプログラムがRAM上にロードされてCPUで実行されるソフトウェアとして構成することができる。制御部15は、電子回路等によるハードウェアとして構成されてもよい。制御部15は、例えば、表示操作部13における操作される内容にしたがって撮像部11を制御して、帳票50の撮像データを取得する。制御部15は、例えば、通信部17を制御して、撮像部11が取得した撮像データを管理サーバ9に送信する。制御部15は、例えば、表示操作部13を制御して、管理サーバ9から送信されてくる商品ラベル63及び帳票50の正否検査結果を表示させる。 The control unit 15 is an electronic control unit including a CPU, ROM, RAM, and the like. The control unit 15 controls various operations in the terminal device 3. The control unit 15 can be configured as software in which a program stored in the ROM is loaded on the RAM and executed by the CPU, for example. The control unit 15 may be configured as hardware using an electronic circuit or the like. The control unit 15 controls the image pickup unit 11 according to the contents operated by the display operation unit 13, and acquires the image pickup data of the form 50, for example. For example, the control unit 15 controls the communication unit 17 and transmits the image pickup data acquired by the image pickup unit 11 to the management server 9. The control unit 15 controls, for example, the display operation unit 13 to display the correctness inspection result of the product label 63 and the form 50 transmitted from the management server 9.

通信部17は、管理サーバ9との間で情報を送受信する。通信部17は、撮像部11で撮像された帳票50の撮像データを管理サーバ9に送信する。通信部17は、管理サーバ9から商品ラベル63及び帳票50の正否検査結果を受信する。 The communication unit 17 transmits / receives information to / from the management server 9. The communication unit 17 transmits the image capture data of the form 50 imaged by the image pickup unit 11 to the management server 9. The communication unit 17 receives the correctness inspection result of the product label 63 and the form 50 from the management server 9.

管理サーバ9は、CPU、RAM及びROM等の主記憶部、ハードディスク、フラッシュメモリ等に例示される補助記憶部等を含むコンピュータシステムとして構成されている。管理サーバ9は、記憶部91と、制御部95と、通信部97と、を備えている。管理サーバ9は、クラウドサーバを利用するものであってもよく、この場合、少なくとも記憶部91がクラウドサーバに含まれていてもよい。また、管理サーバ9は、一つの装置で構成されてもよいし、複数の装置で構成されてもよい。複数の装置で構成されている場合には、これらがインターネット又はイントラネット等の通信ネットワークを介して接続されることで、論理的に一つの管理サーバ9が構築される。なお、管理サーバ9は、例えば据え置き型の端末、スマートフォン等の携帯端末、及びタブレット端末等を含んでいてもよい。 The management server 9 is configured as a computer system including a main storage unit such as a CPU, RAM and ROM, an auxiliary storage unit exemplified by a hard disk, a flash memory and the like. The management server 9 includes a storage unit 91, a control unit 95, and a communication unit 97. The management server 9 may use a cloud server, and in this case, at least the storage unit 91 may be included in the cloud server. Further, the management server 9 may be configured by one device or may be configured by a plurality of devices. When composed of a plurality of devices, one management server 9 is logically constructed by connecting them via a communication network such as the Internet or an intranet. The management server 9 may include, for example, a stationary terminal, a mobile terminal such as a smartphone, a tablet terminal, or the like.

記憶部91としては、上述したようにハードディスク、フラッシュメモリ等が例示される。記憶部91は、例えば、帳票50に関する情報、見本ラベル61に関する情報、ラベル貼付装置100を利用する商品に関する情報(商品情報)等を予め記憶する。帳票50に関する情報は、例えば、台帳の種類、商品コード51及び部分53,55の位置座標等である。見本ラベル61に関する情報は、見本ラベルの種類、図形の種類及び位置座標、文字が印字される領域の位置座標等である。例えば、文字が印字される領域の位置座標は、対象となるラベルの中心等の基準位置を基準として記憶される。文字が印字される領域の大きさは、上記位置座標に基づいて決定されてもよい。 As the storage unit 91, a hard disk, a flash memory, or the like is exemplified as described above. The storage unit 91 stores, for example, information about the form 50, information about the sample label 61, information about the product using the label affixing device 100 (product information), and the like in advance. The information regarding the form 50 is, for example, the type of ledger, the position coordinates of the product code 51 and the portions 53, 55, and the like. The information regarding the sample label 61 is the type of the sample label, the type and position coordinates of the figure, the position coordinates of the area where the characters are printed, and the like. For example, the position coordinates of the area where characters are printed are stored with reference to a reference position such as the center of the target label. The size of the area where the characters are printed may be determined based on the above position coordinates.

本実施形態では、記憶部91は、商品コード51と商品情報とを関連付けて予め記憶する。換言すると、記憶部91には、商品コードと、商品コード毎に紐付けて特定される商品情報とが予め記憶される。商品情報には、上述した商品ID情報に加えて、商品名情報、原材料情報、有効期限情報、価格情報(金額)及び重量情報等の少なくとも何れかが含まれる。商品名情報は、例えば、文字数及び文字の種別(日本語、英語等)等を含む。有効期限情報は、例えば、使用推奨期限、賞味期限、消費期限等を含む。 In the present embodiment, the storage unit 91 stores the product code 51 and the product information in advance in association with each other. In other words, the product code and the product information specified in association with each product code are stored in advance in the storage unit 91. In addition to the product ID information described above, the product information includes at least one of product name information, raw material information, expiration date information, price information (amount), weight information, and the like. The product name information includes, for example, the number of characters and the type of characters (Japanese, English, etc.). The expiration date information includes, for example, a recommended usage expiration date, a best-by-date expiration date, an expiration date, and the like.

制御部95は、CPU、ROM、RAM等からなる電子制御ユニットである。制御部95は、管理サーバ9における各種動作を制御する。制御部95は、例えばROMに格納されているプログラムがRAM上にロードされてCPUで実行されるソフトウェアとして構成することができる。制御部95は、電子回路等によるハードウェアとして構成されてもよい。制御部95では、CPU、RAM及びROM等のハードウェアと、プログラム等のソフトウェアとが協働することによって、下記に示すデータ取得部96Aと、商品コード読取部96Bと、商品情報特定部96Cと、データ変換部96Dと、データ解析部96Eと、判定部96Fと、が形成される。 The control unit 95 is an electronic control unit including a CPU, ROM, RAM, and the like. The control unit 95 controls various operations on the management server 9. The control unit 95 can be configured as software in which a program stored in the ROM is loaded on the RAM and executed by the CPU, for example. The control unit 95 may be configured as hardware using an electronic circuit or the like. In the control unit 95, the data acquisition unit 96A, the product code reading unit 96B, and the product information specifying unit 96C shown below are combined with the hardware such as the CPU, RAM, and ROM and the software such as the program. , A data conversion unit 96D, a data analysis unit 96E, and a determination unit 96F are formed.

データ取得部96Aは、通信部17から送信された撮像データを受信し、文字を含む画像データを取得する。データ取得部96Aは、検査装置1の取得部の別の一部として機能する。本実施形態では、データ取得部96Aは、帳票50の画像データに加えて、当該画像データを加工して得られる複数の画像データ(第1画像データ)を取得する。このため、データ取得部96Aにて取得される画像データは、複数の画像データを含む。複数の第1画像データのそれぞれは、帳票50の画像データから所定部分が切り出されたデータに相当する。当該所定部分は、記憶部91に予め記憶される情報(特に、帳票50に関する情報と、部分53,55に関する情報と、見本ラベル61に関する情報との少なくとも一つ)に基づいて定められる。例えば、部分53,55の位置座標に基づいて、見本ラベル61が印刷される領域と、表ラベル63Aと裏ラベル63Bとが貼り付けられたと推定される領域(推定領域)が定められる。この場合、データ取得部96Aは、上記領域及び上記推定領域を切り出す加工を実施する。帳票50には部分53と、複数の部分55が含まれるので、複数の第1画像データが生成される。データ取得部96Aは、例えば、部分53の位置座標と、見本ラベル61において文字が印字される領域の位置座標とから、所定部分のうち領域63b~63dと推定される部分を定める。同様に、データ取得部96Aは、領域63aと推定される部分も定める。これにより、データ取得部96Aは、画像データの取得時に、領域63a~63dのそれぞれの位置及び大きさに関する情報を取得する。 The data acquisition unit 96A receives the image pickup data transmitted from the communication unit 17, and acquires image data including characters. The data acquisition unit 96A functions as another part of the acquisition unit of the inspection device 1. In the present embodiment, the data acquisition unit 96A acquires a plurality of image data (first image data) obtained by processing the image data in addition to the image data of the form 50. Therefore, the image data acquired by the data acquisition unit 96A includes a plurality of image data. Each of the plurality of first image data corresponds to the data obtained by cutting out a predetermined portion from the image data of the form 50. The predetermined portion is determined based on information stored in advance in the storage unit 91 (in particular, at least one of information regarding the form 50, information regarding the portions 53 and 55, and information regarding the sample label 61). For example, based on the position coordinates of the portions 53 and 55, an area on which the sample label 61 is printed and an area (estimated area) in which the front label 63A and the back label 63B are presumed to be attached are defined. In this case, the data acquisition unit 96A performs processing to cut out the above-mentioned region and the above-mentioned estimation region. Since the form 50 includes the portion 53 and the plurality of portions 55, a plurality of first image data are generated. The data acquisition unit 96A determines, for example, a portion of a predetermined portion estimated to be regions 63b to 63d from the position coordinates of the portion 53 and the position coordinates of the region where characters are printed on the sample label 61. Similarly, the data acquisition unit 96A also determines a portion presumed to be the region 63a. As a result, the data acquisition unit 96A acquires information regarding the positions and sizes of the regions 63a to 63d when the image data is acquired.

商品コード読取部96B(読取部)は、画像データに含まれる商品コード51を読み取る。商品コード読取部96Bは、商品コード51の読み取り結果を商品情報特定部96Cに出力する。 The product code reading unit 96B (reading unit) reads the product code 51 included in the image data. The product code reading unit 96B outputs the reading result of the product code 51 to the product information specifying unit 96C.

商品情報特定部96C(特定部)は、読み取った商品コード51から見本ラベル61及び商品ラベル63に印字された商品情報を特定する。商品情報特定部96Cは、商品コード読取部96Bで読み取られた商品コード51に紐づけられた商品情報を記憶部91から読み出す。加えて、商品情報特定部96Cは、記憶部91から読み出した商品情報をデータ変換部96D及び判定部96Fに出力する。 The product information specifying unit 96C (specific unit) specifies the product information printed on the sample label 61 and the product label 63 from the read product code 51. The product information specifying unit 96C reads the product information associated with the product code 51 read by the product code reading unit 96B from the storage unit 91. In addition, the product information specifying unit 96C outputs the product information read from the storage unit 91 to the data conversion unit 96D and the determination unit 96F.

データ変換部96D(変換部)は、画像データの縦と横の倍率を変え、当該画像データに含まれる文字の縦横比(アスペクト比)を変える。データ変換部96Dは、例えば見本ラベル61の領域61b及び商品ラベル63の領域63bに印字される縦長の文字(図3(b)を参照)のアスペクト比を1:1に近づけるように、画像データの縦と横の倍率を変える。本実施形態では、データ変換部96Dは、画像データに含まれる縦長の文字(すなわち、変更後の文字)が、元のアスペクト比の文字(すなわち、変更前の文字)になるように、画像データの縦と横の倍率を変える。データ変換部96Dは、変更後の文字のアスペクト比が変更前の文字のアスペクト比に近づくように、画像データを変えてもよい。また、データ変換部96Dは、画像データを拡大加工するが、縮小加工してもよい。データ変換部96Dにて変換される画像データは、データ取得部96Aにて加工された第1画像データでもよいし、データ取得部96Aにて加工されない画像データでもよい。前者の場合、アスペクト比が変更された文字を含む第1画像データのみ、倍率が変更される。なお、データ変換部96Dによって画像データの縦と横の倍率が変えられるとき、当該画像データの縦と横の少なくとも一方の倍率が変更されればよい。換言すると、画像データの縦と横の倍率の一方は、変更されなくてもよい。 The data conversion unit 96D (conversion unit) changes the vertical and horizontal magnifications of the image data, and changes the aspect ratio of the characters included in the image data. The data conversion unit 96D has, for example, image data so that the aspect ratio of the vertically long characters (see FIG. 3B) printed in the area 61b of the sample label 61 and the area 63b of the product label 63 is close to 1: 1. Change the vertical and horizontal magnification of. In the present embodiment, the data conversion unit 96D performs image data so that the vertically long characters (that is, the characters after the change) included in the image data become the characters with the original aspect ratio (that is, the characters before the change). Change the vertical and horizontal magnification of. The data conversion unit 96D may change the image data so that the aspect ratio of the changed character approaches the aspect ratio of the character before the change. Further, the data conversion unit 96D enlarges the image data, but may reduce the image data. The image data converted by the data conversion unit 96D may be the first image data processed by the data acquisition unit 96A, or may be image data not processed by the data acquisition unit 96A. In the former case, the magnification is changed only for the first image data including the characters whose aspect ratio has been changed. When the vertical and horizontal magnifications of the image data are changed by the data conversion unit 96D, at least one of the vertical and horizontal magnifications of the image data may be changed. In other words, one of the vertical and horizontal magnifications of the image data does not have to be changed.

データ変換部96Dによる画像データの倍率変更は、例えば、文字が印字される領域の大きさ、商品情報特定部96Cにて特定された商品情報(例えば、商品名情報、商品のID情報等)等に基づいて実施される。本実施形態では、上述したように各領域に印字される文字の大きさは予め定められることから、領域の大きさと、当該領域に印字される文字の文字数(例えば、特定された商品情報に含まれる商品名等)とに基づいて、画像データの拡大倍率が定められる。データ変換部96Dには、予め閾値が入力される、もしくは、予め閾値が登録される。当該閾値が商品名の文字数以下である場合、データ変換部96Dは、画像データの縦と横の倍率を変える。換言すると、当該閾値が商品名の文字数より大きい場合、データ変換部96Dは、画像データの縦と横の倍率を変えない。よって、データ変換部96Dは、商品情報特定部96Cにて特定された商品情報等によっては、動作しないことがある。上記閾値は、例えば、商品名が印字される領域の大きさ及び文字数に加えて、文字種別等によって適宜演算される。領域63b~63dに対する上記閾値は、互いに異なる。 The magnification change of the image data by the data conversion unit 96D is, for example, the size of the area where characters are printed, the product information specified by the product information identification unit 96C (for example, product name information, product ID information, etc.), etc. It is carried out based on. In the present embodiment, since the size of the characters printed in each area is predetermined as described above, the size of the area and the number of characters of the characters printed in the area (for example, included in the specified product information). The magnification of the image data is determined based on the product name, etc.). A threshold value is input in advance to the data conversion unit 96D, or a threshold value is registered in advance. When the threshold value is equal to or less than the number of characters in the product name, the data conversion unit 96D changes the vertical and horizontal magnifications of the image data. In other words, when the threshold value is larger than the number of characters in the product name, the data conversion unit 96D does not change the vertical and horizontal magnifications of the image data. Therefore, the data conversion unit 96D may not operate depending on the product information or the like specified by the product information identification unit 96C. The threshold value is appropriately calculated depending on, for example, the size of the area where the product name is printed and the number of characters, as well as the character type and the like. The above thresholds for the regions 63b to 63d are different from each other.

データ解析部96E(解析部)は、データ変換部96Dによって倍率が変えられた画像データをOCR処理し、当該画像データに含まれる文字を認識する。データ変換部96Dが動作しなかった場合、データ解析部96Eは、データ取得部96Aによって取得された画像データをOCR処理し、当該画像データに含まれる文字を認識する。本実施形態では、データ解析部96Eは、商品ラベル63の第1画像データに対してOCR処理し、表ラベル63Aの画像に含まれる商品名及び金額等の文字列(テキスト情報)と、裏ラベル63Bの画像に含まれる商品名、原材料名等の文字列とを認識する。各テキスト情報の抽出手法及び識別手法は、特に限定されず、種々の公知手法を用いることができる。領域63a~63dが推定されている場合、例えば、領域63aを予め除外した上でOCR処理してもよい。これにより、模様等が文字として誤認識されることを防止できる。加えて、領域63aに含まれる文字の影響を排除できる。データ解析部96Eは、見本ラベル61の第1画像データに対してOCR処理し、見本ラベル61の画像に含まれる文字を認識してもよい。 The data analysis unit 96E (analysis unit) performs OCR processing on the image data whose magnification has been changed by the data conversion unit 96D, and recognizes the characters included in the image data. When the data conversion unit 96D does not operate, the data analysis unit 96E performs OCR processing on the image data acquired by the data acquisition unit 96A and recognizes the characters included in the image data. In the present embodiment, the data analysis unit 96E performs OCR processing on the first image data of the product label 63, and the character string (text information) such as the product name and the amount of money included in the image of the front label 63A and the back label. Recognizes character strings such as product names and raw material names included in the image of 63B. The extraction method and identification method of each text information are not particularly limited, and various known methods can be used. When the regions 63a to 63d are estimated, for example, the regions 63a may be excluded in advance and then OCR processing may be performed. This makes it possible to prevent the pattern or the like from being erroneously recognized as a character. In addition, the influence of the characters included in the area 63a can be eliminated. The data analysis unit 96E may perform OCR processing on the first image data of the sample label 61 and recognize the characters included in the image of the sample label 61.

判定部96Fは、データ解析部96Eにて認識した文字列に、商品情報特定部96Cにて特定された商品情報の文字列が含まれるか否かを判定する。例えば、判定部96Fは、表ラベル63Aに含まれる商品名の文字列及び金額の文字列が商品情報の文字列に含まれるか否かを判定する。表ラベル63Aに含まれる商品名の文字列及び金額の文字列の両方が商品情報の文字列に含まれる場合、判定部96Fは、表ラベル63Aが正しいと判定する。一方、表ラベル63Aに含まれる商品名の文字列及び金額の文字列のいずれかが商品情報の文字列に含まれない場合、判定部96Fは、表ラベル63Aが正しくないと判定する。判定部96Fは、上記判定結果を記憶部91に記憶して蓄積する。このとき、判定部96Fは、複数の部分55のそれぞれに対する上記判定結果を記憶部91に記憶する。判定部96Fは、見本ラベル61に含まれる商品名の文字列及び金額の文字列が商品情報の文字列に含まれるか否かを判定してもよい。なお、「文字列に含まれる」とは、一方の文字列を形態素解析等により単語に分節した上で、各単語が他方の文字列に含まれることを示している。一方の文字列に含まれる各単語は、他方の文字列に完全に含まれるが、これに限られない。画像データに含まれる文字を認識する際に、文字の認識誤りが生じる可能性があるため、数文字(たとえば、1,2文字の所定文字数)程度の不一致については、許容してもよい。 The determination unit 96F determines whether or not the character string recognized by the data analysis unit 96E includes the character string of the product information specified by the product information identification unit 96C. For example, the determination unit 96F determines whether or not the character string of the product name and the character string of the amount of money included in the table label 63A are included in the character string of the product information. When both the character string of the product name and the character string of the amount of money included in the table label 63A are included in the character string of the product information, the determination unit 96F determines that the table label 63A is correct. On the other hand, if either the product name character string or the amount character string included in the table label 63A is not included in the product information character string, the determination unit 96F determines that the table label 63A is incorrect. The determination unit 96F stores and stores the determination result in the storage unit 91. At this time, the determination unit 96F stores the determination result for each of the plurality of portions 55 in the storage unit 91. The determination unit 96F may determine whether or not the character string of the product name and the character string of the amount of money included in the sample label 61 are included in the character string of the product information. In addition, "included in the character string" means that one character string is segmented into words by morphological analysis or the like, and then each word is included in the other character string. Each word contained in one string is completely included in the other string, but is not limited to this. Since there is a possibility that a character recognition error may occur when recognizing a character included in the image data, a mismatch of about several characters (for example, a predetermined number of 1 or 2 characters) may be allowed.

判定部96Fは、裏ラベル63Bに含まれる商品コードから商品ID情報を読み出し、当該商品ID情報と、商品情報特定部96Cにて特定された商品情報に含まれる商品ID情報とが一致するか否かを判定する。これらの商品ID情報が一致する場合、裏ラベル63Bが正しいと判定される。一方、これらの商品ID情報が不一致である場合、裏ラベル63Bが正しくないと判定される。判定部96Fは、上記判定結果を記憶部91に記憶して蓄積する。このとき、判定部96Fは、複数の部分55のそれぞれに対する上記判定結果を記憶部91に記憶する。判定部96Fは、見本ラベル61に含まれる商品コードから読み出した商品ID情報と、商品情報特定部96Cにて特定された商品情報に含まれる商品ID情報とが一致するか否かを判定してもよい。 The determination unit 96F reads the product ID information from the product code included in the back label 63B, and whether or not the product ID information matches the product ID information included in the product information specified by the product information identification unit 96C. Is determined. When these product ID information match, it is determined that the back label 63B is correct. On the other hand, if these product ID information do not match, it is determined that the back label 63B is incorrect. The determination unit 96F stores and stores the determination result in the storage unit 91. At this time, the determination unit 96F stores the determination result for each of the plurality of portions 55 in the storage unit 91. The determination unit 96F determines whether or not the product ID information read from the product code included in the sample label 61 and the product ID information included in the product information specified by the product information identification unit 96C match. May be good.

判定部96Fは、裏ラベル63Bに含まれる商品名の文字列等が商品情報の文字列に含まれるか否かを判定してもよい。この場合、商品ID情報の判定は実施されてもよいし、実施されなくてもよい。 The determination unit 96F may determine whether or not the character string of the product name included in the back label 63B is included in the character string of the product information. In this case, the determination of the product ID information may or may not be carried out.

判定部96Fは、上述した全ての判定が正しいか否かを判定する。全ての判定が正しい場合、判定部96Fは、帳票50に問題がないと判定する。一方、少なくとも一つの判定が正しくない場合、判定部96Fは、帳票50に問題があると判定する。 The determination unit 96F determines whether or not all the above-mentioned determinations are correct. If all the determinations are correct, the determination unit 96F determines that there is no problem with the form 50. On the other hand, if at least one determination is incorrect, the determination unit 96F determines that there is a problem with the form 50.

通信部97は、端末装置3との間で情報を送受信する。通信部97は、判定部96Fによる商品ラベル63の正否判定を端末装置3に送信する。通信部97は、判定部96Fによる帳票50の正否判定を端末装置3に送信する。以上のような検査装置1では、判定部96Fによる判定結果が帳票50に問題があるとされる場合に、制御部95が通信部97を介してラベル発行部30にエラー情報を送信する。 The communication unit 97 transmits / receives information to / from the terminal device 3. The communication unit 97 transmits the correctness determination of the product label 63 by the determination unit 96F to the terminal device 3. The communication unit 97 transmits the correctness determination of the form 50 by the determination unit 96F to the terminal device 3. In the inspection device 1 as described above, when the determination result by the determination unit 96F indicates that there is a problem in the form 50, the control unit 95 transmits error information to the label issuing unit 30 via the communication unit 97.

次に、図6~図8を参照しながら、検査装置1の動作の例を説明する。図6及び図7は、図1の検査装置によって実行される検査処理の流れを示すフローチャートである。図8は、データ変換部96Dにて変換後の画像データの例を示す図である。 Next, an example of the operation of the inspection device 1 will be described with reference to FIGS. 6 to 8. 6 and 7 are flowcharts showing the flow of inspection processing executed by the inspection apparatus of FIG. FIG. 8 is a diagram showing an example of image data after conversion by the data conversion unit 96D.

作業者は、帳票50の商品ラベル63の正否を検査する場合、まず、端末装置3を架台5に設置し(図5参照)、帳票50を撮像可能な状態とする。作業者は、端末装置3の表示操作部13を操作して、撮像部11により帳票50を撮像する(ステップS1)。上記ステップS1では、作業者は、帳票50の全体を撮像する。これにより、商品コード51と、商品ラベル63とが映る撮像データを取得する。商品ラベル63は、上記(1)~(5)の少なくとも何れかのラベルである。 When inspecting the correctness of the product label 63 of the form 50, the operator first installs the terminal device 3 on the gantry 5 (see FIG. 5) so that the form 50 can be imaged. The operator operates the display operation unit 13 of the terminal device 3 and images the form 50 by the image pickup unit 11 (step S1). In step S1, the worker takes an image of the entire form 50. As a result, the image pickup data showing the product code 51 and the product label 63 is acquired. The product label 63 is at least one of the labels (1) to (5) above.

撮像部11によって取得された撮像データは、通信部17によって管理サーバ9に送信される(ステップS2)。データ取得部96Aは、受信した撮像データに基づいて、文字を含む画像データを少なくとも一つ取得する。具体例としては、データ取得部96Aは、帳票50の全体を示す画像データと、商品コード51を示す第1画像データと、表ラベル63Aを示す第1画像データと、裏ラベル63Bを示す第1画像データとを取得する。表ラベル63Aを示す第1画像データと、裏ラベル63Bを示す第1画像データとのそれぞれは、帳票50に含まれる各部分55に関連付けて取得される。データ取得部96Aは、見本ラベル61を示す1又は複数の画像データを取得してもよい。取得された画像データは、データ変換部96D等に出力される。以下では、データ取得部96Aは、商品名「国産牛肉を用いた辛口焼きカレーパン」と印字された表ラベル63A及び裏ラベル63Bの画像データを取得したとして、説明する。 The image pickup data acquired by the image pickup unit 11 is transmitted to the management server 9 by the communication unit 17 (step S2). The data acquisition unit 96A acquires at least one image data including characters based on the received image pickup data. As a specific example, the data acquisition unit 96A has image data showing the entire form 50, first image data showing the product code 51, first image data showing the front label 63A, and first showing the back label 63B. Get image data. Each of the first image data showing the front label 63A and the first image data showing the back label 63B is acquired in association with each portion 55 included in the form 50. The data acquisition unit 96A may acquire one or more image data indicating the sample label 61. The acquired image data is output to the data conversion unit 96D or the like. Hereinafter, it is assumed that the data acquisition unit 96A has acquired the image data of the front label 63A and the back label 63B printed with the trade name "dry-baked curry bread using domestic beef".

次に、商品コード51を示す第1画像データもしくは帳票50の全体を示す画像データから、商品コード51を読み取る(ステップS3)。ステップS3では、商品コード読取部96Bは、商品コード51の読み取り結果を商品情報特定部96Cに出力する。商品情報特定部96Cは、入力された商品コード51に紐づけられた商品情報を記憶部91から読み出す。読み出した商品情報は、データ変換部96D等に出力される。以下では、商品情報特定部96Cが特定した商品情報には、記憶部91において商品名「国産牛肉を用いた辛口焼きカレーパン」と、金額「¥110(税込¥118)」とが関連付けられていたとして、説明する。 Next, the product code 51 is read from the first image data indicating the product code 51 or the image data indicating the entire form 50 (step S3). In step S3, the product code reading unit 96B outputs the reading result of the product code 51 to the product information specifying unit 96C. The product information specifying unit 96C reads out the product information associated with the input product code 51 from the storage unit 91. The read product information is output to the data conversion unit 96D or the like. In the following, the product information specified by the product information specifying unit 96C is associated with the product name "dry-baked curry bread using domestic beef" and the amount "¥ 110 (tax included ¥ 118)" in the storage unit 91. I will explain it.

次に、データ変換部96Dは、読み出された商品情報に含まれる商品名の文字数が予め登録される閾値以上か否かを判定する(ステップS4)。ここでは、商品名「国産牛肉を用いた辛口焼きカレーパン」の文字数と、金額「¥110(税込¥118)」の文字数とのそれぞれが、上記閾値以上か否かを判定する。少なくとも何れかの文字数が上記閾値以上である場合(ステップS4:YES)、データ変換部96Dは、表ラベル63Aを示す複数の第1画像データの縦と横の倍率を変更する(ステップS5)。ステップS5では、データ変換部96Dは、まず、商品情報(例えば、商品名の文字数など)と、領域63a~63dの大きさに関する情報とに基づいて、変更倍率を算出する。そして、データ変換部96Dは、上記画像データの倍率を変更する。これにより例えば図8に示されるように、データ変換部96Dは、変更後のアスペクト比にて示される文字を含む変更後の画像データ(第2画像データ)を生成する。一方、判定すべき全ての文字数が上記閾値未満である場合(ステップS4:NO)、データ変換部96Dは、表ラベル63Aを示す第1画像データの縦と横の倍率を変更しない。なお、上記閾値は、上記判定を実施する前に、データ変換部96D等によって演算される。 Next, the data conversion unit 96D determines whether or not the number of characters of the product name included in the read product information is equal to or greater than the threshold value registered in advance (step S4). Here, it is determined whether or not each of the number of characters of the product name "dry-baked curry bread using domestic beef" and the number of characters of the amount of money "¥ 110 (¥ 118 including tax)" is equal to or higher than the above threshold value. When at least one of the characters is equal to or greater than the above threshold value (step S4: YES), the data conversion unit 96D changes the vertical and horizontal magnifications of the plurality of first image data indicating the table label 63A (step S5). In step S5, the data conversion unit 96D first calculates the change magnification based on the product information (for example, the number of characters in the product name) and the information regarding the sizes of the areas 63a to 63d. Then, the data conversion unit 96D changes the magnification of the image data. As a result, for example, as shown in FIG. 8, the data conversion unit 96D generates the changed image data (second image data) including the characters indicated by the changed aspect ratio. On the other hand, when the total number of characters to be determined is less than the above threshold value (step S4: NO), the data conversion unit 96D does not change the vertical and horizontal magnifications of the first image data indicating the table label 63A. The threshold value is calculated by the data conversion unit 96D or the like before performing the determination.

次に、データ解析部96Eは、複数の部分55のうち所定の1つの部分55(所定の部分55)に貼り付けられる表ラベル63Aを示す画像データをOCR処理し、当該画像データに含まれる文字を認識する(ステップS6)。ステップS6では、ステップS5で得られた第2画像データ、もしくは、ステップS2で得られた第1画像データのいずれかがOCR処理される。ここで、データ解析部96Eは、領域63bに示される商品名「国産牛肉を用いた辛口焼きカレーパン」と、領域63cに示される金額「¥110(税込¥118)」と、領域63dに示される有効期限「消費期限 18.12.11 午前3時 Y1」とを、テキスト情報として認識したとする。 Next, the data analysis unit 96E performs OCR processing on the image data indicating the table label 63A attached to the predetermined one portion 55 (predetermined portion 55) among the plurality of portions 55, and the characters included in the image data. (Step S6). In step S6, either the second image data obtained in step S5 or the first image data obtained in step S2 is subjected to OCR processing. Here, the data analysis unit 96E indicates in the area 63d the product name "dry-baked curry bread using domestic beef" shown in the area 63b and the amount "¥ 110 (¥ 118 including tax)" shown in the area 63c. It is assumed that the expiration date "expiration date 18.12.11 3:00 am Y1" is recognized as text information.

次に、判定部96Fは、表ラベル63Aの画像データに含まれる商品名及び金額等の文字列に、商品情報特定部96Cにて特定された商品情報の文字列が含まれるか否かを判定する(ステップS7)。ステップS7では、まず、ステップS6にて認識したテキスト情報から商品名の文字列及び金額の文字列が抽出されると共に、特定された商品情報から商品名の文字列及び金額の文字列が抽出される。続いて、これらの文字列同士を比較する。例えば、表ラベル63Aに含まれる商品名の文字列及び金額の文字列の両方が商品情報の文字列に含まれる場合(ステップS7:YES)、判定部96Fは、表ラベル63Aが正しいと判定する(ステップS8)。一方、表ラベル63Aに含まれる商品名の文字列及び金額の文字列の少なくともいずれかが商品情報の文字列に含まれない場合(ステップS7:NO)、判定部96Fは、表ラベル63Aが正しくないと判定する(ステップS9)。 Next, the determination unit 96F determines whether or not the character string such as the product name and the amount of money included in the image data of the table label 63A includes the character string of the product information specified by the product information identification unit 96C. (Step S7). In step S7, first, the character string of the product name and the character string of the amount of money are extracted from the text information recognized in step S6, and the character string of the product name and the character string of the amount of money are extracted from the specified product information. To. Then, these character strings are compared with each other. For example, when both the character string of the product name and the character string of the amount of money included in the table label 63A are included in the character string of the product information (step S7: YES), the determination unit 96F determines that the table label 63A is correct. (Step S8). On the other hand, when at least one of the product name character string and the amount character string included in the table label 63A is not included in the product information character string (step S7: NO), the determination unit 96F correctly indicates the table label 63A. It is determined that there is no such thing (step S9).

次に、ステップS8後もしくはステップS9後、判定部96Fは、上記所定の部分55に貼り付けられる裏ラベル63Bを示す画像データに含まれる商品コードから商品ID情報を読み出す。続いて、判定部96Fは、読み出した商品ID情報と、商品情報特定部96Cにて特定された商品情報に含まれる商品ID情報とが一致するか否かを判定する(ステップS10)。これらの商品ID情報が一致する場合(ステップS10:YES)、判定部96Fは、裏ラベル63Bが正しいと判定する(ステップS11)。一方、これらの商品ID情報が不一致である場合(ステップS10:NO)、判定部96Fは、裏ラベル63Bが正しくないと判定する(ステップS12)。 Next, after step S8 or after step S9, the determination unit 96F reads the product ID information from the product code included in the image data indicating the back label 63B attached to the predetermined portion 55. Subsequently, the determination unit 96F determines whether or not the read product ID information matches the product ID information included in the product information specified by the product information identification unit 96C (step S10). When these product ID information match (step S10: YES), the determination unit 96F determines that the back label 63B is correct (step S11). On the other hand, when these product ID information do not match (step S10: NO), the determination unit 96F determines that the back label 63B is incorrect (step S12).

次に、上記ステップS6~S12を繰り返し実施する(ステップS13)。これにより、上記所定の部分55以外の部分55に含まれる表ラベル63Aと裏ラベル63Bとの正否が判定される。そして、全ての表ラベル63A及び裏ラベル63Bが正しいか否かを判定する(ステップS14)。全ての判定が正しい場合(ステップS14:YES)、判定部96Fは、帳票50に問題がないと判定する(ステップS15)。一方、少なくとも一つの判定が正しくない場合(ステップS14:NO)、判定部96Fは、帳票50に問題があると判定する(ステップS16)。この場合、制御部95が通信部97を介してラベル発行部30にエラー情報を送信する(ステップS17)。そしてステップS15後もしくはステップS17後、制御部95は、通信部97を介して端末装置3に検査結果を報知する(ステップS18)。 Next, the above steps S6 to S12 are repeatedly carried out (step S13). As a result, the correctness of the front label 63A and the back label 63B included in the portion 55 other than the predetermined portion 55 is determined. Then, it is determined whether or not all the front labels 63A and the back labels 63B are correct (step S14). When all the determinations are correct (step S14: YES), the determination unit 96F determines that there is no problem in the form 50 (step S15). On the other hand, when at least one determination is incorrect (step S14: NO), the determination unit 96F determines that there is a problem in the form 50 (step S16). In this case, the control unit 95 transmits error information to the label issuing unit 30 via the communication unit 97 (step S17). Then, after step S15 or after step S17, the control unit 95 notifies the terminal device 3 of the inspection result via the communication unit 97 (step S18).

以上に説明した本実施形態に係る検査装置1に含まれる文字読取装置によれば、データ変換部96Dは、表ラベル63Aを示す画像データの縦と横の倍率を変え、当該画像データに含まれる商品名「国産牛肉を用いた辛口焼きカレーパン」のアスペクト比を変える。これにより、上記商品名の縦横比及び大きさを、データ解析部96Eに認識されやすい状態に変更できる。したがって、画像データに含まれる文字の状態にかかわらず文字認識精度が向上可能である。 According to the character reading device included in the inspection device 1 according to the present embodiment described above, the data conversion unit 96D changes the vertical and horizontal magnifications of the image data indicating the table label 63A and includes the image data. Change the aspect ratio of the product name "Dry-baked curry bread using domestic beef". As a result, the aspect ratio and size of the product name can be changed to a state in which the data analysis unit 96E can easily recognize them. Therefore, the character recognition accuracy can be improved regardless of the state of the characters included in the image data.

本実施形態では、画像データには、商品情報が印字された商品ラベル63の第1画像データが含まれ、商品ラベル63に印字された文字の少なくとも一部のアスペクト比は、商品ラベル63の領域63bに商品情報の文字列が収まるように、変更されており、データ変換部96Dは、アスペクト比が変更された文字が、元のアスペクト比の文字になるように、第1画像データの縦と横の倍率を変える。このため、第1画像データに含まれる文字の縦横比及び大きさを、データ解析部96Eにより認識されやすい状態に変更できる。 In the present embodiment, the image data includes the first image data of the product label 63 on which the product information is printed, and the aspect ratio of at least a part of the characters printed on the product label 63 is the area of the product label 63. It has been changed so that the character string of the product information fits in 63b, and the data conversion unit 96D vertically and vertically the first image data so that the character whose aspect ratio has been changed becomes the character of the original aspect ratio. Change the horizontal magnification. Therefore, the aspect ratio and size of the characters included in the first image data can be changed to a state in which the data analysis unit 96E can easily recognize the characters.

本実施形態では、上記文字読取装置は、帳票50に付された商品コード51から商品ラベル63に印字された商品情報を特定する商品情報特定部96Cと、データ解析部96Eで認識した文字列に、商品情報特定部96Cで特定された商品情報の文字列が含まれるか否かを判定する判定部96Fを備える。このため、判定部96Fによる判定精度を向上できる。 In the present embodiment, the character reading device uses the product code 51 attached to the form 50 to the product information specifying unit 96C for specifying the product information printed on the product label 63, and the character string recognized by the data analysis unit 96E. The product information specifying unit 96C includes a determination unit 96F for determining whether or not a character string of the product information specified by the product information specifying unit 96C is included. Therefore, the determination accuracy by the determination unit 96F can be improved.

本実施形態では、上記文字読取装置は、帳票50に付された商品コード51を読み取る商品コード読取部96Bと、商品コード51、及び商品コード51に紐付けて特定される商品情報を記憶する記憶部91と、を備え、商品情報特定部96Cは、商品コード読取部96Bで読み取られた商品コード51に紐づけられた商品情報を記憶部91から読み出して判定部96Fに出力する。このため、判定部96Fによる判定を高速化できる。 In the present embodiment, the character reading device stores the product code reading unit 96B for reading the product code 51 attached to the form 50, the product code 51, and the product information specified in association with the product code 51. The product information specifying unit 96C includes the unit 91 and reads the product information associated with the product code 51 read by the product code reading unit 96B from the storage unit 91 and outputs the product information to the determination unit 96F. Therefore, the determination by the determination unit 96F can be speeded up.

本実施形態では、商品情報には、商品名、金額、有効期限、原材料名の少なくとも何れかが含まれてもよい。 In the present embodiment, the product information may include at least one of a product name, an amount of money, an expiration date, and a raw material name.

本実施形態では、検査装置1は上記文字読取装置を備え、帳票50には、商品に貼付される商品ラベル63が貼付されており、データ取得部96Aは、帳票50を撮像する撮像部11であるカメラを備え、カメラの撮像データから商品ラベル63の第1画像データを取得し、検査装置1は、帳票50に貼付された商品ラベルに印字された商品情報と、商品コード51から特定された商品情報との正否を報知する。この検査装置1では、上記文字読取装置を用いることによって、画像データに含まれる文字の状態にかかわらず文字認識精度が向上可能である。このため、検査装置1は、商品ラベル63に印字された商品情報と、商品コード51から特定された商品情報との正否を精度よく報知できる。 In the present embodiment, the inspection device 1 is provided with the character reading device, the product label 63 to be attached to the product is attached to the form 50, and the data acquisition unit 96A is an image pickup unit 11 that images the form 50. A certain camera is provided, the first image data of the product label 63 is acquired from the image pickup data of the camera, and the inspection device 1 is identified from the product information printed on the product label affixed to the form 50 and the product code 51. Notify the correctness of the product information. In the inspection device 1, by using the character reading device, the character recognition accuracy can be improved regardless of the state of the characters included in the image data. Therefore, the inspection device 1 can accurately notify the correctness of the product information printed on the product label 63 and the product information specified from the product code 51.

以上、本発明に係る実施形態について説明したが、本発明は、上記実施形態等に限定されない。発明の趣旨を逸脱しない範囲で種々の変更が可能である。例えば、上記実施形態では、文字読取装置は検査装置に含まれるが、これに限られない。換言すると、文字読取装置は、商品名に限らず、文字を含む画像データの文字を認識するための装置であればよい。文字読取装置は、例えば、管理サーバ等のサーバの制御部におけるデータ取得部、データ変換部、データ解析部を少なくとも有すればよい。 Although the embodiments according to the present invention have been described above, the present invention is not limited to the above-mentioned embodiments and the like. Various changes can be made without departing from the spirit of the invention. For example, in the above embodiment, the character reading device is included in the inspection device, but is not limited thereto. In other words, the character reading device is not limited to the product name, and may be any device for recognizing characters in image data including characters. The character reading device may have at least a data acquisition unit, a data conversion unit, and a data analysis unit in a control unit of a server such as a management server.

上記実施形態では、商品コード読取部にて商品コードの読み取りが実施されるが、これに限られない。例えば、撮像部、もしくは撮像部を含む端末装置は、帳票に付される商品コードを読み取ってもよい。この場合、撮像部もしくは端末装置は文字読取装置の読取部としても機能し、且つ、制御部には商品コード読取部が形成されない。加えて、ステップS3がステップS2の前に実施される。 In the above embodiment, the product code reading unit reads the product code, but the present invention is not limited to this. For example, the image pickup unit or the terminal device including the image pickup unit may read the product code attached to the form. In this case, the image pickup unit or the terminal device also functions as a reading unit of the character reading device, and the product code reading unit is not formed in the control unit. In addition, step S3 is performed before step S2.

上記実施形態では、取得部に撮像部が含まれるが、これに限られない。例えば、取得部は、スキャナ装置、スキャナ機能を備える複合機等を有してもよい。この場合、端末装置は、帳票のスキャンデータを管理サーバに送信する。管理サーバは、当該スキャンデータから1又は複数の画像データを取得する。上記スキャナ装置等を用いる場合、帳票のスキャンデータを生成するときに、帳票に付される商品コードが読み取られてもよい。この場合、上記スキャン装置等は文字読取装置の読取部としても機能し、且つ、制御部には商品コード読取部が形成されない。加えて、ステップS3がステップS2の前に実施される。 In the above embodiment, the acquisition unit includes an image pickup unit, but the acquisition unit is not limited to this. For example, the acquisition unit may have a scanner device, a multifunction device having a scanner function, or the like. In this case, the terminal device transmits the scan data of the form to the management server. The management server acquires one or more image data from the scan data. When the scanner device or the like is used, the product code attached to the form may be read when the scan data of the form is generated. In this case, the scanning device or the like also functions as a reading unit of the character reading device, and the product code reading unit is not formed in the control unit. In addition, step S3 is performed before step S2.

上記実施形態では、ステップS14後に帳票に問題があるか否かを判定しているが、これに限られない。例えば、ステップS7にて表ラベルが正しくないと判定された場合、もしくはステップS10にて裏ラベルが正しくないと判定された場合、ステップS14等を省略してステップS16に進んでもよい。この場合、全てのラベルの正否判定をすることなく帳票に問題があることを判定できるので、検査装置による検査の高速化が可能になる。 In the above embodiment, it is determined whether or not there is a problem in the form after step S14, but the present invention is not limited to this. For example, if it is determined in step S7 that the front label is incorrect, or if it is determined in step S10 that the back label is incorrect, step S14 or the like may be omitted and the process may proceed to step S16. In this case, since it is possible to determine that there is a problem in the form without determining whether all the labels are correct or not, it is possible to speed up the inspection by the inspection device.

上記実施形態では、裏ラベルに商品コードが印刷されているが、これに限られない。裏ラベル63Bに商品コードが印刷されない場合、例えば、裏ラベルをOCR処理し、裏ラベルに印字される商品名等の文字を認識してもよい。そして、裏ラベルに印字される商品名等の文字列が、特定された商品情報に関連付けられる商品名等の文字列に含まれるか否かによって、裏ラベルの正否を判定してもよい。この場合であっても、裏ラベルの正否を判定できる。なお、裏ラベルに商品コードが印刷される場合であっても、裏ラベルに印字される商品名等の文字列が、特定された商品情報に関連付けられる商品名等の文字列に含まれるか否かが判定されてもよい。 In the above embodiment, the product code is printed on the back label, but the present invention is not limited to this. When the product code is not printed on the back label 63B, for example, the back label may be subjected to OCR processing to recognize characters such as the product name printed on the back label. Then, the correctness of the back label may be determined depending on whether or not the character string such as the product name printed on the back label is included in the character string such as the product name associated with the specified product information. Even in this case, the correctness of the back label can be determined. Even if the product code is printed on the back label, whether or not the character string such as the product name printed on the back label is included in the character string such as the product name associated with the specified product information. May be determined.

上記実施形態では、判定部は、商品名の文字列をそのまま比較の対象としたがこれに限定されない。例えば、判定部は、商品名の文字列から予め設定された特定の文字を削除し、当該特定の文字が削除された文字列を比較の対象としてもよい。上記特定の文字の例には、味付、関西風、関東風等の文字列が含まれる。 In the above embodiment, the determination unit uses the character string of the product name as it is as the target of comparison, but the present invention is not limited to this. For example, the determination unit may delete a predetermined specific character from the character string of the product name, and may use the character string from which the specific character is deleted as a comparison target. Examples of the above-mentioned specific characters include character strings such as seasoning, Kansai style, and Kanto style.

上記実施形態では、商品ラベルの正否を検査させる処理をコンピュータに実行させるコンピュータの制御方法又はコンピュータ制御プログラムとして実現してもよい。 In the above embodiment, it may be realized as a computer control method or a computer control program for causing a computer to execute a process of inspecting the correctness of a product label.

1…検査装置、3…端末装置、9…管理サーバ、11…撮像部(取得部)、13…表示操作部、50…帳票、51…商品コード、53,55~57…部分、61…見本ラベル、61A,63A…表ラベル、61B,63B…裏ラベル、63…商品ラベル(ラベル)、63b~63d…領域(印字欄)、70…制御部、91…記憶部、95…制御部、96A…データ取得部(取得部)、96B…商品コード読取部(読取部)、96C…商品情報特定部(特定部)、96D…データ変換部(変換部)、96E…データ解析部(解析部)、96F…判定部。 1 ... Inspection device, 3 ... Terminal device, 9 ... Management server, 11 ... Imaging unit (acquisition unit), 13 ... Display operation unit, 50 ... Form, 51 ... Product code, 53, 55-57 ... Part, 61 ... Sample Label, 61A, 63A ... Front label, 61B, 63B ... Back label, 63 ... Product label (label), 63b-63d ... Area (print field), 70 ... Control unit, 91 ... Storage unit, 95 ... Control unit, 96A ... Data acquisition unit (acquisition unit), 96B ... Product code reading unit (reading unit), 96C ... Product information specifying unit (specific unit), 96D ... Data conversion unit (conversion unit), 96E ... Data analysis unit (analysis unit) , 96F ... Judgment unit.

Claims (6)

文字を含む画像データを取得する取得部と、
前記画像データの縦と横の倍率を変えて、前記画像データに含まれる前記文字の縦横比(アスペクト比)を変える変換部と、
前記変換部によって倍率が変えられた前記画像データをOCR処理し、当該画像データに含まれる前記文字を認識する解析部と、
を備える文字読取装置。
An acquisition unit that acquires image data including characters, and
A conversion unit that changes the aspect ratio of the characters included in the image data by changing the vertical and horizontal magnifications of the image data.
An analysis unit that performs OCR processing on the image data whose magnification has been changed by the conversion unit and recognizes the characters included in the image data.
A character reader equipped with.
前記画像データには、商品情報が印字されたラベルの第1画像データが含まれ、
前記ラベルに印字された文字の少なくとも一部の縦横比(アスペクト比)は、前記ラベルの印字欄に前記商品情報の文字列が収まるように、変更されており、
前記変換部は、縦横比が変更された前記文字が、元の縦横比(アスペクト比)の文字になるように、前記第1画像データの縦と横の倍率を変える、請求項1に記載の文字読取装置。
The image data includes the first image data of the label on which the product information is printed.
The aspect ratio of at least a part of the characters printed on the label has been changed so that the character string of the product information fits in the print field of the label.
The conversion unit according to claim 1, wherein the conversion unit changes the vertical and horizontal magnifications of the first image data so that the characters whose aspect ratio has been changed become the characters having the original aspect ratio. Character reader.
帳票に付された商品コードから前記ラベルに印字される商品情報を特定する特定部と、
前記解析部で認識した文字列に、前記特定部で特定された前記商品情報の文字列が含まれるか否かを判定する判定部と、をさらに備える、請求項2に記載の文字読取装置。
A specific part that identifies the product information printed on the label from the product code attached to the form, and
The character reading device according to claim 2, further comprising a determination unit for determining whether or not the character string recognized by the analysis unit includes the character string of the product information specified by the specific unit.
前記帳票に付された商品コードを読み取る読取部と、
前記商品コード、及び前記商品コードに紐付けて特定される商品情報を記憶する記憶部と、をさらに備え、
前記特定部は、前記読取部で読み取られた前記商品コードに紐づけられた前記商品情報を前記記憶部から読み出して前記判定部に出力する、請求項3に記載の文字読取装置。
A reading unit that reads the product code attached to the form,
Further provided with the product code and a storage unit for storing product information specified in association with the product code.
The character reading device according to claim 3, wherein the specific unit reads the product information associated with the product code read by the reading unit from the storage unit and outputs the information to the determination unit.
前記商品情報には、商品名、金額、有効期限、原材料名の少なくとも何れかが含まれている、請求項2~4のいずれか一項に記載の文字読取装置。 The character reading device according to any one of claims 2 to 4, wherein the product information includes at least one of a product name, an amount of money, an expiration date, and a raw material name. 請求項3または4に記載の文字読取装置を備える検査装置であって、
前記帳票には、商品に貼付されるラベルが貼付されており、
前記取得部は、前記帳票を撮像するカメラを備え、前記カメラの撮像データから前記第1画像データを取得し、
前記帳票に貼付されたラベルに印字された商品情報と、前記商品コードから特定された前記商品情報との正否を報知する、
検査装置。
An inspection device including the character reading device according to claim 3 or 4.
A label affixed to the product is affixed to the form.
The acquisition unit includes a camera that captures the form, and acquires the first image data from the imaging data of the camera.
Notifying the correctness of the product information printed on the label attached to the form and the product information specified from the product code.
Inspection equipment.
JP2020178698A 2020-10-26 2020-10-26 Character reader and inspection device Pending JP2022069813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020178698A JP2022069813A (en) 2020-10-26 2020-10-26 Character reader and inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020178698A JP2022069813A (en) 2020-10-26 2020-10-26 Character reader and inspection device

Publications (1)

Publication Number Publication Date
JP2022069813A true JP2022069813A (en) 2022-05-12

Family

ID=81534308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020178698A Pending JP2022069813A (en) 2020-10-26 2020-10-26 Character reader and inspection device

Country Status (1)

Country Link
JP (1) JP2022069813A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022093682A (en) * 2017-09-30 2022-06-23 株式会社三洋物産 Game machine
JP2022093683A (en) * 2017-09-30 2022-06-23 株式会社三洋物産 Game machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022093682A (en) * 2017-09-30 2022-06-23 株式会社三洋物産 Game machine
JP2022093683A (en) * 2017-09-30 2022-06-23 株式会社三洋物産 Game machine

Similar Documents

Publication Publication Date Title
CN106383131B (en) Visual detection method, device and system for printed matter
US20070242882A1 (en) Image processing apparatus for identifying the position of a process target within an image
US20080187221A1 (en) Document processing apparatus, document processing method, recording medium and data signal
JP2012108854A (en) Printed matter inspection device, printed matter inspection method, program, memory medium and printed matter inspection system
CN102591596A (en) Information processing equipment, and information processing method
CN112292687A (en) Tag data processing system
JP2012218037A (en) Sheet metal process work support system
JP2022069813A (en) Character reader and inspection device
JP2020154791A (en) Commodity information inspection system and control method of computer
JP2007241413A (en) Page error inspection device and page error inspection method
CN106056028A (en) Rapid scanning and waybill recording method and device thereof
WO2014145741A1 (en) System and method for conversion of fingerprint cards into digital format using machine readable code
CN112550886B (en) Inspection device and label sticking device
GB2596403A (en) Image to script converter
CN111126030B (en) Label typesetting processing method, device and system
EP1202213A2 (en) Document format identification apparatus and method
CN117079297A (en) Relay protection fixed value checking method, system, equipment and medium
JP7443938B2 (en) Article recognition method, program, and information processing device
JP2017097859A (en) Information processing device, and processing method and program thereof
US20200150909A1 (en) Device And Method For Checking The Printing of an Article
JP6802107B2 (en) Information processing equipment, methods and programs
US20230298370A1 (en) Information processing device, information processing method, and non-transitory computer readable medium
JP3353999B2 (en) Image data recognition device
JPH096865A (en) Method and device for generating format information
JP5257061B2 (en) Image processing apparatus, method, program, and shipment sorting apparatus