JP7459730B2 - Reading device, program, and reading method - Google Patents
Reading device, program, and reading method Download PDFInfo
- Publication number
- JP7459730B2 JP7459730B2 JP2020148630A JP2020148630A JP7459730B2 JP 7459730 B2 JP7459730 B2 JP 7459730B2 JP 2020148630 A JP2020148630 A JP 2020148630A JP 2020148630 A JP2020148630 A JP 2020148630A JP 7459730 B2 JP7459730 B2 JP 7459730B2
- Authority
- JP
- Japan
- Prior art keywords
- identification information
- slip
- image
- unit
- information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 59
- 230000015654 memory Effects 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 12
- 238000012795 verification Methods 0.000 claims description 12
- 238000003384 imaging method Methods 0.000 description 17
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005401 electroluminescence Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000881 depressing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Images
Landscapes
- Cash Registers Or Receiving Machines (AREA)
- Character Input (AREA)
Description
本発明は、読取装置、プログラム及び読取方法に関する。 The present invention relates to a reading device , a program , and a reading method .
従来、配送業者によって用いられ、伝票に付されたコード情報(例えば、バーコード、2次元コードなど)を読み取るための端末装置としてハンディターミナル(読取装置)が知られている。このようなハンディターミナルにはイメージングセンサーが備えられており、伝票に付されたコード情報をイメージングセンサーによって撮像して画像を取得し、当該画像に基づいてコード情報をデコードすることによって伝票の識別情報を取得することができる。 Handheld terminals (reading devices) have been used by delivery companies as terminal devices for reading code information (e.g., bar codes, two-dimensional codes, etc.) attached to slips. Such handheld terminals are equipped with imaging sensors, and can obtain identification information for the slip by capturing an image of the code information attached to the slip using the imaging sensor and decoding the code information based on the image.
上記のような伝票に付されたコード情報から識別情報を取得する方法として、伝票の表面画像を取得して解析することでバーコードの位置座標を検出し、検出したバーコード位置座標を基に伝票画像の画素データを切出して識別情報を取得する方法が知られている(特許文献1)。 A method for obtaining identification information from code information attached to a slip such as the one described above is known in which the surface image of the slip is obtained and analyzed to detect the position coordinates of the barcode, and the pixel data of the slip image is extracted based on the detected barcode position coordinates to obtain the identification information (Patent Document 1).
このようなコード情報から識別情報を取得する方法では、伝票の画像を撮像するという簡単な動作で実施することが可能である。しかし、例えば床置きした荷物に付された伝票をユーザーが立った状態で読み取る場合にあっては、ハンディターミナルから伝票までの距離が遠くなり、撮像された画像における伝票のコード情報部分の画素数が少なくなるために、識別情報の取得に失敗してしまうという問題がある。 This method of acquiring identification information from code information can be implemented by a simple operation of capturing an image of a slip. However, for example, when a user stands up and reads a slip attached to a baggage placed on the floor, the distance from the handheld terminal to the slip becomes long, and the number of pixels in the code information part of the slip in the captured image increases. There is a problem in that the acquisition of identification information fails because the number of identification information decreases.
本発明は、撮像時における距離合わせの負担を低減できる読取装置、プログラム及び読取方法を提供することを目的とする。 An object of the present invention is to provide a reading device , a program, and a reading method that can reduce the burden of distance adjustment during imaging.
上記課題を解決するために、本発明に係る読取装置は、コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得部と、第1モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部と、前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部と、を備えることを特徴とする。
また、本発明に係るプログラムは、コンピューターを、コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得部、第1モ
ードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部、前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部、として機能させることを特徴とする。
また、本発明に係る読取方法は、読取装置が実行する読取方法であって、コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得処理と、第1モードにおいて、前記取得処理による前記識別情報の取得が成功したか否かを判断する第1判断処理と、前記第1判断処理によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索処理と、を含むことを特徴とする。
In order to solve the above problems, the reading device of the present invention is characterized in that it comprises an acquisition unit that acquires identification information related to the slip from code information based on an image including the slip to which the code information is attached; a first judgment unit that, in a first mode, judges whether the acquisition of the identification information by the acquisition unit is successful or not; and a search unit that, when it is determined by the first judgment unit that the acquisition of the identification information has failed, searches for search information that corresponds a comparison image stored in a memory unit with the identification information, and acquires the identification information associated with the comparison image that matches the image including the slip .
The program according to the present invention includes a computer including: an acquisition unit that acquires identification information related to a slip from code information based on an image including the slip to which code information is attached;
In this mode, the code is characterized in that it functions as a first judgment unit that judges whether the acquisition unit has been successful in acquiring the identification information, and a search unit that, when the first judgment unit determines that the acquisition of the identification information has failed, searches for search information that associates a comparison image stored in a memory unit with the identification information, and acquires the identification information associated with the comparison image that matches an image including the slip.
Furthermore, the reading method of the present invention is a reading method executed by a reading device, and is characterized in that it includes an acquisition process for acquiring identification information related to the slip from code information based on an image including the slip to which code information is attached, a first judgment process for judging whether acquisition of the identification information by the acquisition process has been successful, and a search process for searching for search information in which a comparison image stored in a memory unit is associated with the identification information when it is judged by the first judgment process that acquisition of the identification information has failed, and acquiring the identification information associated with the comparison image that matches the image including the slip.
本発明によれば、撮像時における距離合わせの負担を低減できる。 According to the present invention, the burden of distance adjustment during imaging can be reduced.
以下、本発明の実施の形態について、図面を参照しながら説明する。ただし、本発明の範囲は、以下の実施形態や図面に記載されたものに限定されるものではない。 The following describes an embodiment of the present invention with reference to the drawings. However, the scope of the present invention is not limited to the following embodiment or those described in the drawings.
まず、本実施形態に係る読取装置としてのハンディターミナル10の概要について説明する。ハンディターミナル10は、配送業者によって用いられ、伝票に付されたコード情報(例えばバーコード、2次元コードなど)を読み取るための端末装置である。図1は、ハンディターミナル10の正面を示す外観図である。図2は、ハンディターミナル10の背面を示す外観図である。
First, an overview of the
ハンディターミナル10の背面には、撮像部18が設けられている。また、ハンディターミナル10は、撮像部18に撮像動作を開始させるための入力操作を受け付けるトリガーキー151と、ユーザーによる各種情報入力のための入力操作を受け付ける一般入力キー152と、各種情報を表示する表示部16と、を備える。
An
トリガーキー151は、ハンディターミナル10の側面に1つ設けられている。なお、トリガーキー151は、複数設けられていてもよい。
一般入力キー152は、数字や文字などを入力するための文字入力キー、所定の機能を呼び出して実行させるためのファンクションキー、及び表示部16内に表示されたカーソルを移動させたり情報入力の対象領域を遷移させたりするためのカーソルキーなどを含む。これらの一般入力キー152及びトリガーキー151から、操作部15(図3参照)が構成される。
One
The
表示部16は、ハンディターミナル10の正面に配置されており、LCD(Liquid Crystal Display)又は有機EL(Electro Luminescence)ディスプレイなどで構成される。
The
撮像部18は、CCD(Charge Coupled Device)やCMOS(Complementary Metal-Oxide Semiconductor)などの撮像素子を利用した小型カメラを備える。近距離から遠距離まで読み取り可能なフォーカシング(焦点距離調整)機構を備えるカメラは、高価であり、また、フォーカシングに時間を要し、スピーディーなスキャニングができない。そのため、撮像部18に備えられる小型カメラには、単焦点型のカメラが用いられる。
また、撮像部18は、トリガーキー151に対する入力操作(トリガーキー151を押下する操作)がなされると、当該入力操作に応じて当該カメラで撮影を行い、撮影した画像の画像データをCPU11(Central Processing Unit)(図3参照)に出力する。
The
Further, when an input operation to the trigger key 151 (operation of pressing the trigger key 151) is performed, the
図3は、ハンディターミナル10の機能構成を示すブロック図である。
ハンディターミナル10は、CPU11(コンピューター)と、RAM12(Random Access Memory)と、ROM13(Read Only Memory)と、記憶部14と、操作部15と、表示部16と、通信部17と、撮像部18と、バス19などを備える。ハンディターミナル10の各部は、バス19により接続されている。以下では、既に説明した構成についての説明は省略する。
FIG. 3 is a block diagram showing the functional configuration of the
The
CPU11は、記憶部14に記憶されているプログラム141や業務アプリ142に従って各種処理を行うことでハンディターミナル10の各部を制御するプロセッサである。
CPU11は、プログラム141を実行して後述する読取処理を行うことで、コード情報が付された伝票を含む画像に基づいて、コード情報から伝票に係る識別情報を取得する。ここで、CPU11は取得部として機能する。
また、CPU11は、プログラム141を実行して後述する読取処理を行うことで、配達モード(第1モード)において、取得部による識別情報の取得が成功したか否かを判断する。ここで、CPU11は第1判断部として機能する。
また、CPU11は、プログラム141を実行して後述する画像検索処理を行うことで、識別情報の取得が失敗したと判断された場合に、記憶部14に記憶された照合用画像と識別情報とが対応付けられた検索情報143を検索して、伝票を含む画像とマッチした照合用画像に対応付けられた識別情報を取得する。ここで、CPU11は検索部として機能する。
また、CPU11は、プログラム141を実行して後述する読取処理を行うことで、登録モード(第2モード)において、取得部による識別情報の取得が成功したか否かを判断する。ここで、CPU11は第2判断部として機能する。
また、CPU11は、プログラム141を実行して後述する画像登録処理を行うことで、第2判断部によって識別情報の取得が成功した場合に、識別情報と当該識別情報の取得に成功した伝票を含む画像とを対応付けて検索情報143として記憶部14に記憶させる。ここで、CPU11は記憶制御部として機能する。
The
The
Moreover, the
Furthermore, the
Moreover, the
Furthermore, the
RAM12は、CPU11に作業用のメモリ空間を提供し、一時データを記憶する。RAM12は、不揮発性メモリを含んでいてもよい。
ROM13は、情報を読み出し可能な不揮発性の記憶部であり、各種設定データ等が格納されている。
記憶部14は、HDD(Hard Disk Drive)、SSD(Solid State Drive)、フラッシュメモリといった、データの書き込み及び読み出しが可能な記憶装置を備え、プログラム141、業務アプリ142、及び各種データを記憶する。
また、記憶部14は、伝票の識別情報と伝票に記載されたコード情報を含む画像(照合用画像)データを対応付けた検索情報143を記憶する。検索情報143には、識別情報と画像データの組み合わせの他に、当該組み合わせの登録数が含まれる。
The
The
通信部17は、アンテナ、変復調回路、信号処理回路などを有する通信モジュールであり、無線LANによる無線通信に係る通信規格に対応した通信制御を行う。
The
次に、本実施形態によるハンディターミナル10における動作を説明する。ハンディターミナル10における動作には、登録モード(第2モード)及び配達モード(第1モード)の二つのモードがある。
CPU11は、登録モードにおいて、後述する画像登録処理を行うことで、識別情報と伝票を含む画像とを対応付けて検索情報143として記憶部14に記憶する。
また、CPU11は、配達モードにおいて、識別情報の取得に失敗した場合、後述する画像検索処理を行うことで、記憶部14が記憶する検索情報143を検索し、伝票を含む画像に対応付けられた識別情報を取得する。
図4は、ハンディターミナル10が実行する読取処理の流れを示すフローチャートである。ここでは、業務アプリ142等におけるユーザーの操作によって、予めハンディターミナル10における動作のモードが選択されている状態である。
CPU11は、ユーザーがトリガーキー151に対する入力操作(トリガーキー151を押下する操作)を行ったことを契機として、読取処理を開始する。
Next, a description will be given of the operation of the
In the registration mode, the
In addition, when the
4 is a flowchart showing the flow of the reading process executed by the
When the user performs an input operation on the trigger key 151 (depressing the trigger key 151), the
まず、CPU11は、撮像部18を制御して、伝票のコード情報を含む画像を撮影する(ステップS1)。図5に伝票を近距離から撮影した画像の例を示す。
次に、CPU11は、現在のハンディターミナル10の動作モードは登録モードであるか否かを判断する(ステップS2)。動作モードが登録モードであった場合(ステップS2;YES)、CPU11は、ステップS1において撮像部18が撮影した写真の画像データからコード情報を検出する(ステップS3)。
次に、CPU11は、撮像部18が撮影した写真の画像データからコード情報が検出できたか否かを判断する(ステップS4)。コード情報が検出できた場合(ステップS4;YES)、CPU11は、検出されたコード情報をデコードして識別情報を取得する(ステップS5)。配達前に伝票の識別情報を登録する場合、コード情報を含む画像を近距離から撮影するので、撮影した画像のコード情報部分の画素数は十分にあり、当該コード情報をデコードし、識別情報を取得することができる。
次に、CPU11は、ステップS5におけるデコードが成功したか否かを判断する(ステップS6)。デコードが成功した場合(ステップS6;YES)、CPU11は、画像登録処理を実行する(ステップS7)。
First, the
Next, the
Next, the
Next, the
図6は、ハンディターミナル10が実行する画像登録処理の流れを示すフローチャートである。
画像登録処理において、CPU11は、読取処理のステップS1で撮影した画像(照合用画像)の画像データと、ステップS5で取得した識別情報を対応付けて、検索情報143として記憶部14に記憶する(ステップS71)。
次に、CPU11は、記憶部14に記憶されている画像データと識別情報の組み合わせ数である登録数を+1して(ステップS72)、画像登録処理を終了し、図4に示す読取処理のフローチャートに戻る。
FIG. 6 is a flowchart showing the flow of the image registration process executed by the
In the image registration process, the
Next, the
次に、CPU11は、通信部17を介して、ステップS5で取得した識別情報を外部に送信し(ステップS8)、処理を終了する。
また、撮影画像データからコード情報が検出できない場合(ステップS4;NO)、またはコード情報のデコードに失敗した場合(ステップS6;NO)、CPU11は、表示部16にエラー表示をし(ステップS9)、処理を終了する。
Next, the
Furthermore, if the code information cannot be detected from the captured image data (step S4; NO), or if decoding of the code information fails (step S6; NO), the
また、ステップS2において、動作モードが配達モードである場合(ステップS2;NO)、CPU11は、上記ステップS3~S6と同様のステップS10~S13を行うが、荷物を床置きして、ユーザーが立った状態で伝票に記載されたコード情報を撮影することがある。図7に伝票をユーザーが立った状態で撮影した画像の例を示す。この場合、ハンディターミナル10から伝票までの距離が遠くなり、撮影された画像における伝票のコード情報部分の画素数が少なくなるためにコード情報を検出できなかったり(ステップS11;NO)、コード情報のデコードに失敗することがある(ステップS13;NO)。このとき、CPU11は、画像検索処理を実行する(ステップS14)。
Also, in step S2, if the operating mode is the delivery mode (step S2; NO), the
図8は、ハンディターミナル10が実行する画像検索処理の流れを示すフローチャートである。
画像検索処理において、CPU11は、記憶部14に、伝票に記載されたコード情報を含む画像(照合用画像)データとそれに対応する伝票の識別情報の組み合わせである検索情報143が1組でも登録されているか、つまり登録された照合用画像データがあるか否かを判断する(ステップS141)。
照合用画像データがある場合(ステップS141;YES)、CPU11は、照合用画像データを1つ取り出し、図4に示す読取処理のステップS1で撮影した画像の画像データ(撮影画像データ)と画像認識で比較をする(ステップS142)。
次に、CPU11は、ステップS142の比較の結果、撮影画像データの中に照合用画像データが検出できたか否かを判断する(ステップS143)。図5に示す画像の例を照合用画像データD1、図7に示す画像の例を撮影画像データD2であるとすると、撮影画像データD2の中から照合用画像データD1を検出することができる。
撮影画像データの中に照合用画像データが検出できた場合(ステップS143;YES)、CPU11は、照合用画像データに対応付けて記憶されている識別情報を取得して(ステップS144)、画像検索処理を終了する。
FIG. 8 is a flowchart showing the flow of the image search process executed by the
In the image search process, the
If there is comparison image data (step S141; YES), the
Next, the
If the comparison image data is detected in the captured image data (step S143; YES), the
また、撮影画像データの中に照合用画像データが検出できなかった場合(ステップS143;NO)、CPU11は、次に登録されている照合用画像データと識別情報の組み合わせがあるか否かを判断する(ステップS145)。
次に登録されている照合用画像データと識別情報の組み合わせがある場合(ステップS145;YES)、CPU11は、ステップS142に移行する。そして、CPU11は、撮影画像データの中に照合用画像データを検出するか(ステップS143;YES)、全ての照合用画像データと撮影画像データを比較するまで(ステップS145;NO)、ステップS142からステップS145を繰り返す。
照合用画像データと識別情報の組み合わせが登録されていない場合(ステップS141;NO)、または撮影画像データの中にすべての照合用画像データが検出されなかった場合(ステップS145;NO)、CPU11は、撮影画像データに対応する識別情報は記憶されていないとし(ステップS146)、画像検索処理を終了し、図4に示す読取処理のフローチャートに戻る。
Further, if the verification image data cannot be detected in the photographed image data (step S143; NO), the
Next, if there is a registered combination of verification image data and identification information (step S145; YES), the
If the combination of verification image data and identification information is not registered (step S141; NO), or if all verification image data is not detected in the captured image data (step S145; NO), the
次に、CPU11は、ステップS14の画像検索処理において、撮影画像データに対応する識別情報が取得できたか否か判断する(ステップS15)。
識別情報が取得できた場合(ステップS15;YES)、CPU11は、ステップS8に移行する。識別情報が取得できなかった場合(ステップS15;NO)、CPU11は、読取処理を終了する。
Next, the
If the identification information has been acquired (step S15; YES), the
以上、上記の実施形態に係る読取装置(ハンディターミナル10)は、コード情報が付された伝票を含む画像に基づいてコード情報から伝票に係る識別情報を取得する取得部(CPU11)と、第1モード(配達モード)において、取得部による識別情報の取得が成功したか否かを判断する第1判断部(CPU11)と、第1判断部によって識別情報の取得が失敗したと判断された場合に、記憶部(記憶部14)に記憶された照合用画像と識別情報とが対応付けられた検索情報143を検索して、伝票を含む画像とマッチした照合用画像に対応付けられた識別情報を取得する検索部(CPU11)と、を備える。
従って、撮像時における距離合わせの負担を低減できる。
また、上記の実施形態に係る読取装置(ハンディターミナル10)は、第2モード(登録モード)において、取得部(CPU11)による識別情報の取得が成功したか否かを判断する第2判断部(CPU11)と、第2判断部によって識別情報の取得が成功した場合に、識別情報と当該識別情報の取得に成功した伝票を含む画像とを対応付けて検索情報143として記憶部(記憶部14)に記憶させる記憶制御部(CPU11)と、を備えるので、伝票を含む画像に基づいて識別情報を取得することができる。
As described above, the reading device (handy terminal 10) according to the above embodiment includes an acquisition unit (CPU 11) that acquires identification information related to a slip from code information based on an image including a slip to which code information is attached; mode (delivery mode), a first determination unit (CPU 11) that determines whether or not the acquisition of identification information by the acquisition unit was successful; , searches the
Therefore, the burden of distance adjustment during imaging can be reduced.
The reading device (handy terminal 10) according to the embodiment described above also includes a second determination unit (which determines whether or not the acquisition unit (CPU 11) has successfully acquired identification information in the second mode (registration mode)). When the acquisition of the identification information is successful by the second determination unit, the CPU 11) associates the identification information with the image including the slip from which the identification information has been successfully acquired, and stores it as
(変形例)
本変形例では、上記の実施形態の図4に示す読取処理のフローチャートのステップS5の代わりに、チェックデコード処理を行う。チェックデコード処理を含む読取処理において、CPU11は、伝票を含む画像において、コード情報の横幅に対する伝票を含む画像の横幅の画素数の比率が所定値未満である場合に、ユーザーへの報知として表示部16にエラー表示を行わせる。ここで、CPU11は、報知制御部として機能し、表示部16は、報知部として機能する。
従って、伝票を含む画像において、コード情報の横幅に対する伝票を含む画像の横幅の画素数の比率が所定値未満である場合に、ユーザーにエラー表示を行い、当該比率が所定値以上になるように、ユーザーに伝票を含む画像を撮影し直すことを促すことができる。
登録モード時に撮影した画像において当該比率が所定値以上である場合、荷物の外面のデザイン等の伝票周囲の情報も撮影した画像に含まれ、画像検索処理の画像認識に利用される情報量が増えるため、伝票を含む画像の検出率を向上することができる。
図9は、ハンディターミナル10が実行するチェックデコード処理の流れを示すフローチャートである。
(Modification)
In this modified example, a check decode process is performed instead of step S5 in the flowchart of the reading process shown in Fig. 4 of the above embodiment. In the reading process including the check decode process, if the ratio of the number of pixels in the width of the image including the slip to the width of the code information in the image including the slip is less than a predetermined value, the
Therefore, in an image including a slip, if the ratio of the number of pixels in the width of the image including the slip to the width of the code information is less than a specified value, an error message can be displayed to the user, and the user can be prompted to re-take the image including the slip so that the ratio is equal to or greater than the specified value.
If this ratio is equal to or greater than a specified value in an image captured in registration mode, information about the area surrounding the slip, such as the exterior design of the luggage, will also be included in the captured image, increasing the amount of information available for image recognition in the image search process, thereby improving the detection rate of images containing slips.
FIG. 9 is a flowchart showing the flow of the check decode process executed by the
まず、CPU11は、ステップS1で撮影した伝票を含む画像において、コード情報の横幅に対する伝票を含む画像の横幅の画素数の比率を求める(ステップS51)。
図10、図11に伝票を含む画像の例を示す。ここで、コード情報の横幅の画素数をa、伝票を含む画像の横幅の画素数をbと表すと、コード情報の横幅に対する伝票を含む画像の横幅の画素数の比率はb/aである。
次に、CPU11は、比率(b/a)が、所定値(例えば、2.3)以上か否かを判断する(ステップS52)。
比率が2.3以上である場合(ステップS52;YES)、CPU11は、コード情報をデコードして識別情報を取得する(ステップS53)。
次に、CPU11は、ステップS53におけるデコードが成功したか否かを判断する(ステップS54)。デコードが成功した場合(ステップS54;YES)、CPU11は、「デコード成功」を保持し(ステップS55)、チェックデコード処理を終了する。
First, the
10 and 11 show examples of images including a slip. If the number of pixels in the width of the code information is represented as a and the number of pixels in the width of the image including the slip is represented as b, then the ratio of the number of pixels in the width of the image including the slip to the width of the code information is b/a.
Next, the
If the ratio is equal to or greater than 2.3 (step S52; YES), the
Next, the
また、比率が2.3未満である場合(ステップS52;NO)、またはデコードが失敗した場合(ステップS54;NO)、CPU11は、「デコード失敗」を保持し(ステップS56)、チェックデコード処理を終了する。この場合、CPU11は、図4に示す読取処理のフローチャートのステップS9において、エラー表示を行う。
Further, if the ratio is less than 2.3 (step S52; NO) or if decoding has failed (step S54; NO), the
以上、上記の実施形態に係る読取装置(ハンディターミナル10)は、第2モード(登録モード)において、伝票を含む画像における、コード情報の横幅に対する伝票を含む画像の横幅の比率が所定値未満である場合に、報知部(表示部16)に報知を行わせる報知制御部(CPU11)を備えるので、ユーザーに伝票を含む画像を撮影し直すことを促すことができる。
また、検索部(CPU11)は、伝票を含む画像に含まれる伝票の周囲の情報に基づいて照合用画像と比較するので、画像検索処理の画像認識に利用される情報量が増えるため、伝票を含む画像の検出率を向上することができ、容易に識別情報を取得することができる。
As described above, the reading device (handheld terminal 10) of the above embodiment is equipped with a notification control unit (CPU 11) that causes the notification unit (display unit 16) to issue a notification when, in the second mode (registration mode), the ratio of the width of the image including the slip to the width of the code information in the image including the slip is less than a predetermined value, thereby urging the user to re-take the image including the slip.
In addition, since the search unit (CPU 11) compares the image containing the slip with the matching image based on information about the surroundings of the slip contained in the image, the amount of information available for image recognition in the image search process increases, thereby improving the detection rate of images containing slips and making it possible to easily obtain identification information.
以上、本発明は上記の実施形態等に限定されるものではなく、本発明の趣旨を逸脱しない範囲で適宜変更可能であることは言うまでもない。
例えば、上記の実施形態及び変形例では、記憶部14が、伝票に記載されたコード情報を含む画像データとそれに対応する伝票の識別情報の組み合わせである検索情報143を有するとしたがこれに限らない。検索情報143を有する記憶部は外部装置に備えられるとしてもよい。この場合、CPU11は、通信部17を介して、伝票に記載されたコード情報を含む画像(照合用画像)データとそれに対応する伝票の識別情報の組み合わせを外部装置の所定の記憶部に送信し、登録する。
As described above, the present invention is not limited to the above-described embodiment, and it goes without saying that appropriate modifications can be made without departing from the spirit of the present invention.
For example, in the above embodiment and modified example, the
また、上記の実施形態及び変形例では、伝票の識別情報登録時に、伝票に記載されたコード情報を含む画像データとそれに対応する伝票の識別情報の組み合わせを記憶部に登録するとしたがこれに限らない。伝票に記載されたコード情報を含む画像データの代わりに、当該画像データへのパスや当該画像データのファイル名を伝票の識別情報と対応付けて登録してもよい。 Furthermore, in the above embodiments and modifications, when registering the identification information of a slip, the combination of image data including code information written on the slip and the corresponding identification information of the slip is registered in the storage unit, but this is not limited to this. do not have. Instead of the image data including the code information written on the slip, a path to the image data or a file name of the image data may be registered in association with the identification information of the slip.
また、上記の実施形態の変形例では、CPU11は、伝票を含む画像において、コード情報の横幅に対する伝票を含む画像の横幅の画素数の比率が2.3未満である場合に、ユーザーへの報知としてエラー表示を行うとしたがこれに限らない。当該比率は2.3に限らず、画像検索処理において検出率が向上する数値であればよい。
In addition, in the modified example of the above embodiment, the
本発明の実施の形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得部と、
第1モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部と、
前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部と、
を備える読取装置。
<請求項2>
第2モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第2判断部と、
前記第2判断部によって前記識別情報の取得が成功した場合に、前記識別情報と前記識別情報の取得に成功した前記伝票を含む画像とを対応付けて前記検索情報として前記記憶部に記憶制御部を備える請求項1に記載の読取装置。
<請求項3>
前記第2モードにおいて、前記伝票を含む画像における、前記コード情報の横幅に対する前記伝票を含む画像の横幅の比率が所定値未満である場合に、報知部に報知を行わせる報知制御部を備える請求項2に記載の読取装置。
<請求項4>
前記検索部は、前記伝票を含む画像に含まれる前記伝票の周囲の情報に基づいて前記照合用画像と比較する請求項1から3のいずれか一項に記載の読取装置。
<請求項5>
コンピューターを、
コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得部、
第1モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部、
前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部、
として機能させるプログラム。
Although the embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and equivalent ranges thereof.
Below, the invention described in the claims first attached to the application of this application will be added. The claim numbers listed in the supplementary notes are as in the claims originally attached to the request for this application.
[Additional note]
<Claim 1>
an acquisition unit that acquires identification information related to the slip from the code information based on an image including the slip to which code information is attached;
In a first mode, a first determination unit that determines whether the acquisition of the identification information by the acquisition unit is successful;
If the first determination unit determines that the acquisition of the identification information has failed, search the search information in which the verification image stored in the storage unit and the identification information are associated with each other, and retrieve the slip. a search unit that acquires the identification information associated with the matching image that matches the containing image;
A reading device comprising:
<Claim 2>
In a second mode, a second determination unit that determines whether the acquisition of the identification information by the acquisition unit is successful;
If the acquisition of the identification information is successful by the second determination unit, the storage control unit associates the identification information with an image including the slip from which the identification information has been successfully acquired and stores it in the storage unit as the search information. The reading device according to
<Claim 3>
In the second mode, the invention further comprises a notification control unit that causes a notification unit to perform notification when a ratio of the width of the image including the slip to the width of the code information in the image including the slip is less than a predetermined value. The reading device according to
<Claim 4>
The reading device according to any one of
<Claim 5>
computer,
an acquisition unit that acquires identification information related to the slip from the code information based on an image including the slip to which code information is attached;
In a first mode, a first determination unit that determines whether the acquisition of the identification information by the acquisition unit is successful;
If the first determination unit determines that the acquisition of the identification information has failed, search the search information in which the verification image stored in the storage unit and the identification information are associated with each other, and retrieve the slip. a search unit that acquires the identification information associated with the matching image that matches the containing image;
A program that functions as
10 ハンディターミナル(読取装置)
11 CPU(取得部、第1判断部、第2判断部、検索部、記憶制御部、報知制御部、コンピューター)
12 RAM
13 ROM
14 記憶部
141 プログラム
142 業務アプリ
15 操作部
151 トリガーキー
152 一般入力キー
16 表示部(報知部)
17 通信部
18 撮像部
10 Handy terminal (reading device)
11 CPU (acquisition unit, first judgment unit, second judgment unit, search unit, storage control unit, notification control unit, computer)
12 RAM
13 ROM
14
17
Claims (6)
第1モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部と、
前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部と、
を備える読取装置。 an acquisition unit that acquires identification information related to a slip from code information based on an image including the slip to which code information is attached;
a first determination unit that determines whether or not the acquisition unit has successfully acquired the identification information in a first mode;
a search unit that searches for search information in which a matching image and the identification information stored in a storage unit are associated with each other when the first judgment unit judges that acquisition of the identification information has failed, and acquires the identification information associated with the matching image that matches an image including the slip;
A reading device comprising:
前記第2判断部によって前記識別情報の取得が成功した場合に、前記識別情報と前記識別情報の取得に成功した前記伝票を含む画像とを対応付けて前記検索情報として前記記憶部に記憶させる記憶制御部を備える請求項1に記載の読取装置。 a second determination unit that determines whether or not the acquisition unit has successfully acquired the identification information in the second mode;
The reading device according to claim 1, further comprising a memory control unit that, when the second judgment unit is successful in obtaining the identification information, associates the identification information with an image including the slip for which the identification information has been successfully obtained and stores the associated information in the memory unit as the search information.
コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得部、
第1モードにおいて、前記取得部による前記識別情報の取得が成功したか否かを判断する第1判断部、
前記第1判断部によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索部、
として機能させるプログラム。 computer,
an acquisition unit that acquires identification information related to the slip from the code information based on an image including the slip to which code information is attached;
In a first mode, a first determination unit that determines whether the acquisition of the identification information by the acquisition unit is successful;
If the first determination unit determines that the acquisition of the identification information has failed, search the search information in which the verification image stored in the storage unit and the identification information are associated with each other, and retrieve the slip. a search unit that acquires the identification information associated with the matching image that matches the containing image;
A program that functions as
コード情報が付された伝票を含む画像に基づいて前記コード情報から前記伝票に係る識別情報を取得する取得処理と、an acquisition process for acquiring identification information relating to the slip from the code information based on an image including the slip to which the code information is attached;
第1モードにおいて、前記取得処理による前記識別情報の取得が成功したか否かを判断する第1判断処理と、In a first mode, a first determination process that determines whether or not the acquisition of the identification information by the acquisition process was successful;
前記第1判断処理によって前記識別情報の取得が失敗したと判断された場合に、記憶部に記憶された照合用画像と前記識別情報とが対応付けられた検索情報を検索して、前記伝票を含む画像とマッチした照合用画像に対応付けられた前記識別情報を取得する検索処理と、If it is determined that the acquisition of the identification information has failed in the first determination process, search the search information in which the verification image stored in the storage unit and the identification information are associated with each other, and retrieve the slip. a search process for acquiring the identification information associated with the matching image that matches the containing image;
を含む読取方法。A reading method including:
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020148630A JP7459730B2 (en) | 2020-09-04 | 2020-09-04 | Reading device, program, and reading method |
JP2024036549A JP2024056085A (en) | 2020-09-04 | 2024-03-11 | Reading device, reading method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020148630A JP7459730B2 (en) | 2020-09-04 | 2020-09-04 | Reading device, program, and reading method |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2024036549A Division JP2024056085A (en) | 2020-09-04 | 2024-03-11 | Reading device, reading method, and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2022043401A JP2022043401A (en) | 2022-03-16 |
JP2022043401A5 JP2022043401A5 (en) | 2023-06-13 |
JP7459730B2 true JP7459730B2 (en) | 2024-04-02 |
Family
ID=80668395
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020148630A Active JP7459730B2 (en) | 2020-09-04 | 2020-09-04 | Reading device, program, and reading method |
JP2024036549A Pending JP2024056085A (en) | 2020-09-04 | 2024-03-11 | Reading device, reading method, and program |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2024036549A Pending JP2024056085A (en) | 2020-09-04 | 2024-03-11 | Reading device, reading method, and program |
Country Status (1)
Country | Link |
---|---|
JP (2) | JP7459730B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000251010A (en) | 1999-03-01 | 2000-09-14 | Hitachi Ltd | Document readout method |
-
2020
- 2020-09-04 JP JP2020148630A patent/JP7459730B2/en active Active
-
2024
- 2024-03-11 JP JP2024036549A patent/JP2024056085A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000251010A (en) | 1999-03-01 | 2000-09-14 | Hitachi Ltd | Document readout method |
Also Published As
Publication number | Publication date |
---|---|
JP2024056085A (en) | 2024-04-19 |
JP2022043401A (en) | 2022-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7447362B2 (en) | System and method of enabling a cellular/wireless device with imaging capabilities to decode printed alphanumeric characters | |
JP4995554B2 (en) | Retrieval method of personal information using knowledge base for optical character recognition correction | |
US20050082370A1 (en) | System and method for decoding barcodes using digital imaging techniques | |
EP1585306A1 (en) | Digital still camera and method of controlling same | |
US20090017765A1 (en) | System and Method of Enabling a Cellular/Wireless Device with Imaging Capabilities to Decode Printed Alphanumeric Characters | |
JP5044958B2 (en) | Imaging apparatus, photographing restriction method, and program | |
JP7459730B2 (en) | Reading device, program, and reading method | |
JP3982132B2 (en) | Information output control method and information display device | |
JP4337597B2 (en) | Code symbol reader and program | |
JP2004152036A (en) | Cellular phone with character recognizing function, correction method of recognized character, and program | |
JP2010217997A (en) | Device, program, and method for recognizing character | |
JP2005122609A (en) | Device for recognizing photographed object | |
JP5780219B2 (en) | Information terminal and program | |
CN107369130A (en) | A kind of image processing method and terminal | |
JP5223739B2 (en) | Portable character recognition device, character recognition program, and character recognition method | |
JP2008134868A (en) | Image recognition device, electronic device, image recognition method and control program | |
JP6705984B2 (en) | Information processing apparatus, processing method thereof, and program | |
JP2005057360A (en) | Picture photographing apparatus and program | |
JP6432585B2 (en) | Information terminal and program | |
US10628713B2 (en) | Mobile terminal, image processing method, and computer-readable recording medium | |
EP3614298B1 (en) | Portable terminal apparatus, information recording method and storage medium | |
JP6056915B2 (en) | Information terminal and program | |
JP4694389B2 (en) | Character recognition method and photographing apparatus | |
JP2006330834A (en) | Portable terminal, server, and photographic print order system provided therewith | |
JP6738008B2 (en) | Mobile terminal, processing method and program therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230601 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230601 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20240220 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240221 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240304 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7459730 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |