JP2021082889A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2021082889A
JP2021082889A JP2019207110A JP2019207110A JP2021082889A JP 2021082889 A JP2021082889 A JP 2021082889A JP 2019207110 A JP2019207110 A JP 2019207110A JP 2019207110 A JP2019207110 A JP 2019207110A JP 2021082889 A JP2021082889 A JP 2021082889A
Authority
JP
Japan
Prior art keywords
barcode
reading
image
pixels
forming apparatus
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
JP2019207110A
Other languages
Japanese (ja)
Inventor
智雄 山中
Tomoo Yamanaka
智雄 山中
堤 隆弘
Takahiro Tsutsumi
隆弘 堤
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2019207110A priority Critical patent/JP2021082889A/en
Publication of JP2021082889A publication Critical patent/JP2021082889A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Image Input (AREA)

Abstract

To provide an image forming apparatus that can accurately read a bar code displayed on a screen.SOLUTION: An image forming apparatus that can read an image from a document in a platen-set method reads multiple times a bar code displayed on a screen of a smartphone placed on a platen glass in a state where lighting on an object to be read is turned off, and creates a plurality of read images. The image forming apparatus adds up pixel values of pixels corresponding to each other in the plurality of read images to determine a total value. In the individual read images, since a difference in pixel value between a white part and a black part of the bar code is small, it is difficult to accurately distinguish between the white part and the black part under the influence of noise (a), but in an added image, since noise is equalized and the difference in pixel value between the white part and the black part is increased, the distinguishing accuracy is improved (b).SELECTED DRAWING: Figure 7

Description

本開示は、画像形成装置に関し、特に、画面表示されたバーコードの読み取り精度を向上させる技術に関する。 The present disclosure relates to an image forming apparatus, and more particularly to a technique for improving the reading accuracy of a barcode displayed on a screen.

近年、普及が著しい電子決済の一形態としてバーコード決済がある。さまざまな商品やサービスがバーコード決済の対象になっており、コンビニエンスストア等の店舗に設置されている複合機(MFP: Multi-Function Peripheral)の利用料金についても、バーコード決済を採用すればユーザーの利便性を向上させることができる。 Bar code payment is one form of electronic payment that has become very popular in recent years. Various products and services are subject to bar code payment, and users can also use bar code payment for the usage charges of multifunction devices (MFPs) installed in stores such as convenience stores. It is possible to improve the convenience of.

バーコード決済には2種類あり、そのうちユーザースキャン方式の決済は、店舗提示型(MPM: Merchant-Presented Mode)とも呼ばれ、店舗側が提示したバーコードに、顧客がスマートフォンをかざして読み取ることによって、決済を行うものである。複合機の料金決済にユーザースキャン方式を適用した場合、ユーザーがスマートフォンを操作してアプリを起動し、バーコードの読み取りを行うための画面に切り替えた後、複合機の操作パネルに表示されているバーコードを読み取らなければならないので、ユーザー操作が煩瑣なものになっている。 There are two types of barcode payment, of which the user scan method payment is also called the store presentation type (MPM: Merchant-Presented Mode), in which the customer holds the smartphone over the barcode presented by the store and reads it. It is for making payments. When the user scan method is applied to the payment of charges for the multifunction device, it is displayed on the operation panel of the multifunction device after the user operates the smartphone to start the application and switches to the screen for reading the barcode. Since the barcode must be read, the user operation is complicated.

ユーザースキャン方式に代えて、顧客が提示したバーコードを店舗側がバーコードリーダーを用いて読み取るストアスキャン方式(利用者提示型(CPM: Consumer-Presented Mode)ともいう。)の決済を採用すれば、煩瑣なユーザー操作を要することなくバーコード決済を行うことができる。 If, instead of the user scan method, the store scan method (also called consumer-presented mode (CPM)), in which the store reads the barcode presented by the customer using a barcode reader, is adopted, the payment can be made. Bar code payment can be performed without complicated user operations.

しかしながら、店舗内に据え付けられている複合機の利用料金は、当該店舗のレジではなく、例えば、コイン投入型の自動精算機を使用して、複合機の設置場所で清算することが多い。これに合わせて、バーコード決済を行うためのバーコードリーダーを複合機に搭載すると、装置コストが上昇してしまう。 However, the usage fee of the multifunction device installed in the store is often settled at the place where the multifunction device is installed, for example, using a coin-insertion type automatic payment machine instead of the cash register of the store. In line with this, if a barcode reader for performing barcode payment is installed in the multifunction device, the device cost will increase.

このような問題に対して、専用のバーコードリーダーを追加することなく、複合機が備えているスキャナーにバーコードを読み取らせることにすれば、装置コストの上昇を回避することができる。 For such a problem, if the scanner provided in the multifunction device is made to read the barcode without adding a dedicated barcode reader, it is possible to avoid an increase in the equipment cost.

特開2015−015664号公報JP 2015-015664

複合機が備えるスキャナーは、原稿を鮮明に読み取るために、原稿に強力な照明光を照射して、その反射光を検出する。このため、普通紙に印刷されたバーコードでは、図20(a)に示すように、白色部分2001wの読み取り濃度と、黒色部分2001bの読み取り濃度との間の濃度差C2001が大きく、高いコントラスト特性を有している。従って、バーコードの白色部分と黒色部分とを精度よく判別することができる。 The scanner provided in the multifunction device irradiates the document with strong illumination light and detects the reflected light in order to read the document clearly. Therefore, in the barcode printed on plain paper, as shown in FIG. 20A, the density difference C2001 between the reading density of the white portion 2001w and the reading density of the black portion 2001b is large, and the contrast characteristic is high. have. Therefore, the white portion and the black portion of the barcode can be accurately discriminated.

一方、スマートフォンの表示画面(以下、「スマフォ画面」と略称する。)は発光によってバーコードを表示するため、当該スマフォ画面を照明しても白色部分2002wの読み取り濃度を高くすることはできないので、白色部分2002wの読み取り濃度は、スマートフォン自体の発光量に応じた読み取り濃度にしかならない。そして、スマートフォンの発光量は、スキャナーの照明光量よりも大幅に少ないため、白色部分2002wの読み取り濃度が低くならざるを得ず、黒色部分2001bの読み取り濃度との間の濃度差C2002が、上述した普通紙からバーコードを読み取る際の濃度差C2001よりも小さくなる。 On the other hand, since the display screen of the smartphone (hereinafter, abbreviated as "smartphone screen") displays the bar code by emitting light, the reading density of the white portion 2002w cannot be increased even if the smartphone screen is illuminated. The reading density of the white portion 2002w is only the reading density according to the amount of light emitted from the smartphone itself. Since the amount of light emitted from the smartphone is significantly smaller than the amount of illumination light of the scanner, the reading density of the white portion 2002w has to be low, and the density difference C2002 with the reading density of the black portion 2001b is described above. It is smaller than the density difference C2001 when reading a barcode from plain paper.

上述のような強力な照明光を用いてコントラストを高めた読み取り画像では、スキャナーにおけるA/D(Analogue to Digital)変換や、データ伝送によってノイズが重畳しても、S/N比が高いので、画像品質に問題が発生することはない。一方、スマフォ画面から読み取ったバーコード画像は、コントラストが低いため、ノイズの悪影響を無視することができない。 In the scanned image whose contrast is enhanced by using the strong illumination light as described above, the S / N ratio is high even if noise is superimposed by A / D (Analogue to Digital) conversion in the scanner or data transmission. There are no problems with image quality. On the other hand, the barcode image read from the smartphone screen has low contrast, so that the adverse effect of noise cannot be ignored.

例えば、図20(b)に例示するように、白色部分と黒色部分とを識別するためにゲイン調整処理(コントラスト強調処理)を行っても、S/N比そのものは改善されないため、ノイズの影響によって白色部分どうしや黒色部分どうしで架橋が発生する等の問題が発生する。このため、白色部分や黒色部分の幅を検出することができなくなると、バーコードを精度よく解析することができない。 For example, as illustrated in FIG. 20B, even if gain adjustment processing (contrast enhancement processing) is performed to distinguish between a white portion and a black portion, the S / N ratio itself is not improved, so that the influence of noise This causes problems such as cross-linking between white parts and black parts. Therefore, if the width of the white portion or the black portion cannot be detected, the barcode cannot be analyzed accurately.

このような、問題はスマフォ画面以外の表示画面からバーコードを読み取る際にも発生し得る。 Such a problem may also occur when reading a barcode from a display screen other than the smartphone screen.

本開示は、上述のような問題に鑑みて為されたものであって、画面表示されたバーコードを精度よく読み取ることができる画像形成装置を提供することを目的とする。 The present disclosure has been made in view of the above-mentioned problems, and an object of the present disclosure is to provide an image forming apparatus capable of accurately reading a barcode displayed on a screen.

上記目的を達成するため、本開示の一形態に係る画像形成装置は、プラテンセット方式で読み取りを行う際に、読み取り対象を照明する照明手段と、前記読み取り対象の読み取り面に沿って前記照明手段とともに移動しながら、前記読み取り対象からの受光量を検出する受光量検出手段と、前記検出した受光量を画素値に変換する変換手段と、を有する画像形成装置であって、前記読み取り対象が、可搬性デバイスのディスプレイ画面に表示されたバーコードであるか否かを判断する読み取り対象判断手段と、前記判断が肯定的である場合に、前記受光量検出手段の制御と、前記変換によって得た画素値を変更する画像処理との少なくとも一方を行うことによって、前記バーコードの白色部分と黒色部分との間で画素値の差を拡大させ、かつ当該画像処理後の画素値に含まれているノイズ成分を画素どうしで平均化するバーコード読み取り制御手段と、を備えることを特徴とする。 In order to achieve the above object, the image forming apparatus according to one embodiment of the present disclosure includes a lighting means for illuminating the reading target and the lighting means along the reading surface of the reading target when reading by the platen set method. An image forming apparatus having a light receiving amount detecting means for detecting a light receiving amount from the reading target and a conversion means for converting the detected light receiving amount into a pixel value while moving together with the reading target. Obtained by the reading target determination means for determining whether or not the bar code is displayed on the display screen of the portable device, the control of the light receiving amount detecting means when the determination is affirmative, and the conversion. By performing at least one of the image processing for changing the pixel value, the difference in the pixel value between the white portion and the black portion of the bar code is increased, and the pixel value is included in the pixel value after the image processing. It is characterized by including a bar code reading control means for averaging noise components among pixels.

この場合において、前記読み取り対象がディスプレイ画面に表示されたバーコードであると判断した場合に、前記照明手段を消灯する消灯手段を備えてもよい。 In this case, a light-off means for turning off the lighting means may be provided when it is determined that the reading target is a barcode displayed on the display screen.

また、前記読み取り対象判断手段は、前記読み取り対象がバーコードであるか否かの指定を受け付ける受付手段を備え、前記受付手段が受け付けた指定に応じて、前記読み取り対象の判断を実行してもよいし、前記読み取り対象判断手段は、前記変換によって得た画素値が所定の閾値以上である画素が集中している集中領域があるか否かを判断する集中領域判断手段を備え、前記集中領域があると判断された場合に、前記読み取り対象はバーコードであると判断してもよい。 Further, the reading target determining means includes a receiving means for receiving a designation as to whether or not the reading target is a barcode, and even if the reading target is determined according to the designation received by the receiving means. Alternatively, the read target determining means includes a concentrated area determining means for determining whether or not there is a concentrated area in which pixels whose pixel values obtained by the conversion are equal to or greater than a predetermined threshold are concentrated, and the concentrated area is determined. When it is determined that there is, the reading target may be determined to be a barcode.

また、前記バーコード読み取り制御手段は、前記画像処理において、画像データ上の位置から同色と推定される画素どうしで画素値を加算して、得られた画素値を当該画素の組に対応する画素値とすることによって、前記画素値の差を拡大させてもよい。 Further, in the image processing, the barcode reading control means adds pixel values to pixels estimated to have the same color from positions on the image data, and the obtained pixel values are pixels corresponding to the pixel set. By setting the value, the difference between the pixel values may be increased.

また、前記バーコード読み取り制御手段は、前記受光量検出手段を、前記プラテンガラスに沿って読み取り開始端から読み取り終了端まで移動しながら受光量を検出する作業を、複数回繰り返させ、得られた複数の画像データどうしで同じ位置にある画素を同色の画素と推定して、その画素値を加算してもよい。 Further, the barcode reading control means was obtained by repeating the work of detecting the light receiving amount a plurality of times while moving the light receiving amount detecting means from the reading start end to the reading end end along the platen glass. Pixels at the same position among a plurality of image data may be estimated as pixels of the same color, and the pixel values may be added.

また、前記バーコードのバー方向が、前記受光量検出手段の移動方向に一致した状態で、前記読み取り対象がプラテンガラス上に載置されている場合に、前記バー方向に沿って連続する画素を同色の画素と推定して、その画素値を加算し、前記バー方向と直交する方向において当該連続する画素と同じ位置にある画素の画素値としてもよい。 Further, when the reading target is placed on the platen glass in a state where the bar direction of the bar code coincides with the moving direction of the light receiving amount detecting means, pixels continuous along the bar direction are generated. Pixels of the same color may be estimated, and the pixel values may be added to obtain pixel values of pixels at the same positions as the continuous pixels in a direction orthogonal to the bar direction.

また、前記バーコード読み取り手段は、前記受光量検出手段を制御して、その移動速度を低下させることによって、前記バーコードにおけるバー方向に直交する同一ラインを複数回読み取らせ、前記同一ライン上で同じ位置に対応する複数の画素を同色の画素と推定して、その画素値を加算してもよい。 Further, the barcode reading means controls the light receiving amount detecting means to reduce the moving speed thereof so that the same line orthogonal to the bar direction in the barcode is read a plurality of times on the same line. A plurality of pixels corresponding to the same position may be estimated as pixels of the same color, and the pixel values may be added.

また、前記バーコード読み取り手段は、前記受光量検出手段を制御して、前記読み取り対象が画面表示されたバーコードでないと判断した場合よりも、1画素の受光量を検出するための露光時間を長くすることによって、前記画素値の差を拡大させてもよい。 Further, the bar code reading means controls the light receiving amount detecting means to set an exposure time for detecting the light receiving amount of one pixel as compared with the case where it is determined that the reading target is not the bar code displayed on the screen. By lengthening the pixel value, the difference between the pixel values may be increased.

また、前記バーコードのバー方向が、前記受光量検出手段の移動方向に一致するように、前記読み取り対象がプラテンガラス上に載置されている場合に、前記バーコード読み取り手段は、前記読み取り対象が画面表示されたバーコードでないと判断した場合よりも、前記バー方向における広い範囲を1画素としての受光量を検出することによって、前記画素値の差を拡大させてもよい。 Further, when the reading target is placed on the platen glass so that the bar direction of the barcode coincides with the moving direction of the light receiving amount detecting means, the barcode reading means is the reading target. The difference in pixel values may be increased by detecting the amount of light received as one pixel in a wide range in the bar direction, as compared with the case where is determined not to be the bar code displayed on the screen.

また、前記バーコード読み取り手段は、前記読み取り対象が画面表示されたバーコードであると判断した場合の露光時間に対する、前記読み取り対象が画面表示されたバーコードでないと判断した場合の露光時間の比率に応じて、前記受光量検出手段の移動速度を低下させてもよい。 Further, the bar code reading means is a ratio of the exposure time when it is determined that the reading target is not the bar code displayed on the screen to the exposure time when it is determined that the reading target is the bar code displayed on the screen. Depending on the situation, the moving speed of the light receiving amount detecting means may be reduced.

また、読み取り時に、前記バーコードが前記受光量検出手段の移動方向に沿って移動するように表示される場合において、前記バーコード読み取り制御手段は、前記受光量検出手段の移動方向における互いに異なる位置で受光量を検出した画素どうしであって、かつ 画像データ上で対応する位置にある画素どうしの画素値を加算して、得られた画素値を当該位置に対応する画素の画素値とすることによって、前記画素値の差を拡大させてもよい。 Further, when the bar code is displayed so as to move along the moving direction of the received light amount detecting means at the time of reading, the bar code reading control means are located at different positions in the moving direction of the received light amount detecting means. Add the pixel values of the pixels whose light reception amount is detected in the above and the pixels at the corresponding positions on the image data, and use the obtained pixel values as the pixel values of the pixels corresponding to the position. May increase the difference between the pixel values.

また、前記バーコードが前記移動方向に沿った移動が複数の位置を断続的に移動する場合において、前記バーコード読み取り手段は、読み取り画像上で、前記複数の位置に表示されたバーコードどうしを区切り位置で区画して、複数の部分画像に分割する画像分割手段と、前記複数の部分画像どうしで、対応する位置にある画素どうしの画素値を加算する画像加算手段と、を備えてもよい。 Further, when the movement of the barcode along the movement direction intermittently moves at a plurality of positions, the barcode reading means reads the barcodes displayed at the plurality of positions on the scanned image. An image dividing means for dividing at a dividing position and dividing into a plurality of partial images, and an image adding means for adding pixel values of pixels at corresponding positions between the plurality of partial images may be provided. ..

また、前記バーコードが、前記受光量検出手段の移動速度よりも遅い速度で連続的に移動する場合において、前記バーコード上でバー方向に直交するラインのうち、バー方向に隣り合うラインどうしを区画する区切り位置で、読み取り画像を複数の部分画像に分割する画像分割手段と、部分画像ごとに、前記バー方向に連続する画素どうしで画素値を加算して、当該ライン上の位置に対応する画素の画素値とする画像加算手段と、を備えてもよい。 Further, when the bar code continuously moves at a speed slower than the moving speed of the light receiving amount detecting means, among the lines orthogonal to the bar direction on the bar code, the lines adjacent to each other in the bar direction are selected. An image segmentation means for dividing a scanned image into a plurality of partial images at a partitioning position, and a pixel value is added to each of the pixels continuous in the bar direction for each partial image to correspond to a position on the line. An image segmentation means for setting the pixel value of a pixel may be provided.

このようにすれば、前記バーコードの白色部分と黒色部分との間で画素値の差を拡大させるので、白色部分と黒色部分とを精度よく判別することができるようになり、バーコード解析の精度を向上させることができる。 By doing so, the difference in pixel values between the white portion and the black portion of the barcode is increased, so that the white portion and the black portion can be accurately discriminated, and the barcode analysis can be performed. The accuracy can be improved.

本開示の第1の実施の形態に係る画像形成装置1の外観斜視図である。It is an external perspective view of the image forming apparatus 1 which concerns on 1st Embodiment of this disclosure. 画像読み取り装置100の主要な構成を示す断面斜視図である。It is sectional drawing which shows the main structure of the image reading apparatus 100. 画像形成装置1の主要な機能構成を説明するブロック図である。It is a block diagram explaining the main functional structure of the image forming apparatus 1. FIG. 画像読み取り装置100の主要な機能構成を説明するブロック図である。It is a block diagram explaining the main functional structure of the image reading apparatus 100. 画像形成装置1の読み取り動作のメインルーチンを説明するフローチャートである。It is a flowchart explaining the main routine of the reading operation of the image forming apparatus 1. 本開示の第1の実施の形態に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on 1st Embodiment of this disclosure. (a)は加算前のバーコード画像におけるコントラスト特性とノイズ成分を説明するグラフであり、(b)は加算後のバーコード画像におけるコントラスト特性とノイズ成分を説明するグラフである。(A) is a graph explaining the contrast characteristic and the noise component in the barcode image before addition, and (b) is a graph explaining the contrast characteristic and the noise component in the barcode image after addition. 本開示の第1の実施の形態の第1の変形例に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on 1st modification of 1st Embodiment of this disclosure. バーコード画像を例示する図である。It is a figure which illustrates the bar code image. 本開示の第1の実施の形態の第2の変形例に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on the 2nd modification of the 1st Embodiment of this disclosure. 本開示の第2の実施の形態に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on 2nd Embodiment of this disclosure. CMOSセンサー223のリセット周期と画素ごとの蓄積電荷量との関係を説明する図である。It is a figure explaining the relationship between the reset period of CMOS sensor 223 and the amount of accumulated electric charge for each pixel. 本開示の第2の実施の形態の変形例に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on the modification of the 2nd Embodiment of this disclosure. 本開示の第3の実施の形態に係るスマートフォン240のバーコード表示処理を説明するフローチャートである。It is a flowchart explaining the bar code display process of the smartphone 240 which concerns on 3rd Embodiment of this disclosure. (a)はスマフォ画面の1番目の位置に表示したバーコードを例示し、(b)はスマフォ画面の2番目の位置に表示したバーコードを例示し、(c)は画像読み取り装置100が読み取ったバーコード画像を例示する。(A) exemplifies the barcode displayed at the first position on the smartphone screen, (b) exemplifies the barcode displayed at the second position on the smartphone screen, and (c) exemplifies the barcode displayed at the second position on the smartphone screen, and (c) is read by the image reading device 100. An example of a barcode image is shown. 本開示の第3の実施の形態に係るバーコード読み取り処理を説明するフローチャートである。It is a flowchart explaining the bar code reading process which concerns on 3rd Embodiment of this disclosure. 本開示の第3の実施の形態の変形例に係るスマフォ画面に表示されたバーコード、画像読み取り装置100が読み取ったバーコード画像および加算後のバーコード画像を説明するフローチャートである。It is a flowchart explaining the barcode displayed on the smartphone screen which concerns on the modification of the 3rd Embodiment of this disclosure, the barcode image read by the image reading apparatus 100, and the barcode image after addition. 本開示の変形例に係るバーコード読み取り処理の実行要否判定処理を説明するフローチャートである。It is a flowchart explaining the execution necessity determination process of the bar code reading process which concerns on the modification of this disclosure. 本開示の変形例に係る別のバーコード読み取り処理の実行要否判定処理を説明するフローチャートである。It is a flowchart explaining the execution necessity determination process of another bar code reading process which concerns on the modification of this disclosure. (a)は普通紙から読み取ったバーコード画像のコントラスト特性と、スマフォ画面から読み取ったバーコード画像のコントラスト特性とを比較する図であり、(b)はスマフォ画面から読み取ったバーコード画像の画素値のゲイン調整前のグラフとゲイン調整後のグラフとを例示する。(A) is a figure comparing the contrast characteristic of the barcode image read from plain paper with the contrast characteristic of the barcode image read from the smartphone screen, and (b) is the pixel of the barcode image read from the smartphone screen. An example is an example of a graph before the value gain adjustment and a graph after the gain adjustment.

以下、本開示に係る画像読み取り装置および画像形成装置の実施の形態について、図面を参照しながら説明する。
[1]第1の実施の形態
本実施の形態においては、複数のバーコード画像を加算し、バーコード画像に重畳したランダムノイズを均一化するとともに、コントラストを強調することによって、バーコードの検出精度を向上させる。
(1−1)画像形成装置の構成
まず、本実施の形態に係る画像形成装置の構成について説明する。
Hereinafter, embodiments of the image reading device and the image forming device according to the present disclosure will be described with reference to the drawings.
[1] First Embodiment In the present embodiment, a plurality of barcode images are added to equalize the random noise superimposed on the barcode image, and the contrast is emphasized to detect the barcode. Improve accuracy.
(1-1) Configuration of Image Forming Device First, the configuration of the image forming apparatus according to the present embodiment will be described.

図1に示すように、本実施の形態に係る画像形成装置1は、スキャン機能やプリント機能、コピー機能、ファクシミリ機能、ネットワーク機能、BOX機能などを兼ね備えたいわゆる複合機(MFP: Multi-Function Peripheral)であって、画像読み取り装置100、自動原稿搬送装置(ADF: Automatic Document Feeder)110、画像形成装置120、給紙装置130および操作パネル140を備えている。 As shown in FIG. 1, the image forming apparatus 1 according to the present embodiment is a so-called multi-function peripheral (MFP) having a scanning function, a printing function, a copying function, a facsimile function, a network function, a BOX function, and the like. ), Which includes an image reading device 100, an automatic document feeder (ADF) 110, an image forming device 120, a paper feeding device 130, and an operation panel 140.

画像読み取り装置100は、シートスルー方式とプラテンセット方式との2つの読み取り方式で画像を読み取ることができる。図2に示すように、画像読み取り装置100の上面にはスリットが開けられており、当該スリットはコンタクトガラス201によって閉塞されている。コンタクトガラス201は、自動原稿搬送装置110による原稿の搬送経路のうち、自動原稿搬送装置110の底面に沿った部分に対面している。シートスルー方式の場合には、原稿がコンタクトガラス201上を通過する。 The image reading device 100 can read an image by two reading methods, a sheet-through method and a platen set method. As shown in FIG. 2, a slit is opened on the upper surface of the image reading device 100, and the slit is closed by the contact glass 201. The contact glass 201 faces a portion of the document transport path by the automatic document transport device 110 along the bottom surface of the automatic document transport device 110. In the case of the sheet-through method, the document passes over the contact glass 201.

画像読み取り装置100の上面には、プラテンガラス202が配設されており、コンタクトガラス201が閉塞しているスリットとは別の開口部を閉塞している。プラテンセット方式で原稿を読み取る場合には、プラテンガラス202上に原稿が載置される。バーコード241等が表示されているスマートフォン240の表示画面(以下、「スマフォ画面」と略称する。)を読み取る場合には、当該スマフォ画面をプラテンガラス202側へ向けた状態で、スマートフォン240をプラテンガラス202上に載置する。 A platen glass 202 is disposed on the upper surface of the image reading device 100, and closes an opening different from the slit in which the contact glass 201 is closed. When the original is read by the platen set method, the original is placed on the platen glass 202. When reading the display screen of the smartphone 240 on which the barcode 241 or the like is displayed (hereinafter, abbreviated as "smartphone screen"), the smartphone 240 is placed on the platen with the smartphone screen facing the platen glass 202 side. Place on glass 202.

画読み取り装置100には、駆動モーター231が内蔵されており、矢印A方向または矢印B方向に回転することによって、ワイヤー232を牽引する。また、ワイヤー232にはスライダー233が固定されている。このため、駆動モーター231がワイヤー232を牽引すると、スライダー233がコントラクトガラス201の直下から、コンタクトガラス201から見てプラテンガラス202の反対側の端部までの間を往復移動する。 The image reading device 100 has a built-in drive motor 231 and pulls the wire 232 by rotating in the direction of arrow A or the direction of arrow B. A slider 233 is fixed to the wire 232. Therefore, when the drive motor 231 pulls the wire 232, the slider 233 reciprocates from directly below the contract glass 201 to the opposite end of the platen glass 202 as viewed from the contact glass 201.

スライダー233には線光源210が内蔵されている。プラテンセット方式で原稿を読み取る場合、スライダー233は矢印C方向(副走査方向)に移動しながら、線光源210が出射する照明光を原稿面に照射する。原稿面からの反射光は、折り返しミラー234、235および236を経由して、光学素子221に入射する。当該入射光は、光学素子221、222によって集束させられた後、ラインセンサー223によって主走査方向における位置毎に光量(反射濃度)を検出される。 A line light source 210 is built in the slider 233. When the document is read by the platen set method, the slider 233 moves in the arrow C direction (sub-scanning direction) and irradiates the document surface with the illumination light emitted by the line light source 210. The reflected light from the document surface enters the optical element 221 via the folded mirrors 234, 235 and 236. The incident light is focused by the optical elements 221 and 222, and then the amount of light (reflection density) is detected at each position in the main scanning direction by the line sensor 223.

ラインセンサー223が検出光量に応じたアナログ信号を出力すると、当該アナログ信号はデジタル信号に変換され、画像データが生成される。生成された画像データは後述のように、画像形成装置120へ送信される。 When the line sensor 223 outputs an analog signal according to the amount of detected light, the analog signal is converted into a digital signal and image data is generated. The generated image data is transmitted to the image forming apparatus 120 as described later.

シートスルー方式で原稿を読み取る場合、スライダー233をコンタクトガラス201の直下に静止させた状態で、線光源210により原稿面を照明し、反射光量を検出することによって、画像データを生成する。 When reading a document by the sheet-through method, image data is generated by illuminating the document surface with a line light source 210 and detecting the amount of reflected light while the slider 233 is stationary directly under the contact glass 201.

自動原稿搬送装置110は、シートスルー方式で原稿を読み取る場合に、原稿台トレイ111に載置された原稿束の最上位の原稿から1枚ずつ原稿を送り出して搬送し、原稿面をコンタクトガラス201側に向けた状態で、原稿にコンタクトガラス201上を通過させた後、当該原稿を排紙トレイ112上へ排出する。 When the automatic document conveying device 110 reads the originals by the sheet-through method, the automatic document conveying device 110 feeds out the originals one by one from the highest-ranked originals in the original bundle placed on the platen tray 111 and conveys the originals one by one, and the original surface is contact glass 201. After passing the document through the contact glass 201 while facing the side, the document is ejected onto the output tray 112.

画像形成装置120は、画像読み取り装置100が生成した画像データや、他の装置から受け付けた画像データを用いて、給紙装置130が供給する記録シートに画像を形成する。画像形成した記録シートは排紙トレイ121上に排出される。 The image forming apparatus 120 forms an image on a recording sheet supplied by the paper feeding apparatus 130 by using the image data generated by the image reading apparatus 100 and the image data received from another apparatus. The image-formed recording sheet is discharged onto the paper ejection tray 121.

操作パネル140は、複合機1のユーザーに対向する正面側に配設されている。操作パネル140は、平面ディスプレイとタッチパッドとからなるタッチパネルやハードキー、スピーカーを備えており、複合機1のユーザーにメニュー画面などの画面表示を行ったり、ユーザーによるタッチ入力やキー操作を受け付けたりする。操作パネル140は、操作面の角度をユーザーが自由に調整することができるようになっており、ユーザーの操作姿勢に応じて高い操作性を実現することができる。
(1−2)複合機1の制御系統
次に、複合機1の制御系統について説明する。
The operation panel 140 is arranged on the front side facing the user of the multifunction device 1. The operation panel 140 is provided with a touch panel, hard keys, and a speaker consisting of a flat display and a touch pad, and can display a screen such as a menu screen to the user of the multifunction device 1 or accept touch input or key operation by the user. To do. The operation panel 140 allows the user to freely adjust the angle of the operation surface, and can realize high operability according to the operation posture of the user.
(1-2) Control system of the multifunction device 1 Next, the control system of the multifunction device 1 will be described.

図3に示すように、画像形成装置120には、複合機1の動作を制御するためのシステムコントローラー300が搭載されている。システムコントローラー300は、CPU(Central Processing Unit)301およびROM(Read Only Memory)302を備えている。CPU301は、リセットされると起動し、ROM302から制御プログラムや動作パラメーター等のデータを読み出して実行する。これによって、コントローラー300は複合機1の動作を制御し、スキャンジョブやプリントジョブ、コピージョブ、ファクシミリ送受信ジョブ、メール送受信ジョブなどのジョブを実行させる。 As shown in FIG. 3, the image forming apparatus 120 is equipped with a system controller 300 for controlling the operation of the multifunction device 1. The system controller 300 includes a CPU (Central Processing Unit) 301 and a ROM (Read Only Memory) 302. The CPU 301 starts when it is reset, reads data such as a control program and operating parameters from the ROM 302, and executes the data. As a result, the controller 300 controls the operation of the multifunction device 1 and executes jobs such as a scan job, a print job, a copy job, a facsimile transmission / reception job, and a mail transmission / reception job.

画像形成装置120は、更に入力画像処理部310、メモリ320、ネットワークインターフェイス330、プリンターエンジン340、出力画像処理部350および記憶装置350を備え、これらはいずれもシステムコントローラー300に接続されている。 The image forming apparatus 120 further includes an input image processing unit 310, a memory 320, a network interface 330, a printer engine 340, an output image processing unit 350, and a storage device 350, all of which are connected to the system controller 300.

入力画像処理部310は、画像読み取り装置100が生成した画像データのデータ形式を変換する処理を行う。 The input image processing unit 310 performs a process of converting the data format of the image data generated by the image reading device 100.

メモリ320は、RAM(Random Access Memory)であって、CPU301が制御プログラムを実行する際に、作業用記憶領域として利用され、画像データやテンポラリーデータ等のデータの書き込みと読み出しがなされる。 The memory 320 is a RAM (Random Access Memory), which is used as a work storage area when the CPU 301 executes a control program, and data such as image data and temporary data are written and read.

ネットワークインターフェイス330は、LAN(Local Area Network)やインターネットといった複合機1が接続されているネットワークを経由して、他の装置とジョブデータや電子メール等の送受信を行うための通信処理を実行する。 The network interface 330 executes communication processing for sending and receiving job data, e-mail, and the like with other devices via a network to which the multifunction device 1 is connected, such as a LAN (Local Area Network) or the Internet.

プリンターエンジン340は、出力画像処理部360が生成した印刷用のラスターデータを用いて記録シートに画像を形成する処理を実行する。 The printer engine 340 executes a process of forming an image on a recording sheet using the raster data for printing generated by the output image processing unit 360.

出力画像処理部360は、メモリ320に記憶されている画像データを処理して印刷用のラスターデータを生成する。複合機1がプリントジョブを実行する場合には、当該プリントジョブで指定された画像データからラスターデータを生成する。また、コピージョブの場合には、画像読み取り装置100が生成した画像データからラスターデータを生成する。 The output image processing unit 360 processes the image data stored in the memory 320 to generate raster data for printing. When the multifunction device 1 executes a print job, raster data is generated from the image data specified in the print job. Further, in the case of a copy job, raster data is generated from the image data generated by the image reading device 100.

記憶装置106は、HDD(Hard Disk Drive)等の大容量で不揮発性の記憶装置である。記憶装置106は、複合機1の動作に関わる各種のデータ、例えば、操作パネル140の画面に表示する画面データ等を記憶するために用いられる。 The storage device 106 is a large-capacity, non-volatile storage device such as an HDD (Hard Disk Drive). The storage device 106 is used to store various data related to the operation of the multifunction device 1, for example, screen data to be displayed on the screen of the operation panel 140.

画像読み取り装置100は、図4に示すように、線光源210、駆動モーター231、ラインセンサー223、A/D変換部401およびバーコード処理部402を備えている。線光源210は、画像形成装置120のコントローラー300が備えるCPU121から発光命令を受け付けると上方へ照明光を出射する。これによって、原稿面上で副走査方向に沿った線状の領域が照明される。 As shown in FIG. 4, the image reading device 100 includes a line light source 210, a drive motor 231 and a line sensor 223, an A / D conversion unit 401, and a barcode processing unit 402. When the line light source 210 receives a light emission command from the CPU 121 included in the controller 300 of the image forming apparatus 120, the line light source 210 emits illumination light upward. As a result, a linear region along the sub-scanning direction is illuminated on the document surface.

線光源210が照明光を出射している状態で駆動モーター231はスライダー233を移動させ、原稿面からの反射光が折り返しミラー234、235、236および光学素子221、222を経由してラインセンサー223に入射すると、ラインセンサー223は、副走査位置毎に入射光量を検出して、アナログ画像信号を出力する。 The drive motor 231 moves the slider 233 while the line light source 210 emits illumination light, and the reflected light from the document surface passes through the folded mirrors 234, 235, 236 and the optical elements 221 and 222, and the line sensor 223. The line sensor 223 detects the amount of incident light at each sub-scanning position and outputs an analog image signal.

A/D変換部402は、ラインセンサー223が出力したアナログ画像信号をデジタルデータに変換して画像データを生成する。生成した画像データは、CPU301からの処理種別信号に応じて、画像形成装置120の入力画像処理部310または画像読み取り装置100自身のバーコード処理部402に入力する。 The A / D conversion unit 402 converts the analog image signal output by the line sensor 223 into digital data to generate image data. The generated image data is input to the input image processing unit 310 of the image forming device 120 or the bar code processing unit 402 of the image reading device 100 itself according to the processing type signal from the CPU 301.

バーコード処理部402は、A/D変換部402が出力した画像に含まれているバーコードが鮮明になるように画像処理して、処理後の画像データを入力画像処理部310に入力する。
(1−2)複合機1のバーコード検出動作
次に、複合機1のバーコード検出動作について説明する。
(1−2−1)メインルーチン
複合機1は、ユーザーが操作パネル140を用いてジョブの内容を設定し、操作パネル140のスタートキーを押下することによって、ジョブ内容の設定を完了すると、ジョブの設定内容を確認する。図5に示すように、ユーザーからスキャンジョブを受け付けた場合には(S501:YES)、当該スキャンジョブがスマフォ画面からバーコードを読み取るジョブであるかどうかを当該スキャンジョブの設定内容から判断する。スマフォ画面からのバーコードの読み取りでない場合には(S502:NO)、通常の読み取り処理を実行した後(S506)、ステップS501へ進んで、次のジョブを待つ。
The barcode processing unit 402 performs image processing so that the barcode included in the image output by the A / D conversion unit 402 becomes clear, and inputs the processed image data to the input image processing unit 310.
(1-2) Bar code detection operation of the multifunction device 1 Next, the bar code detection operation of the multifunction device 1 will be described.
(1-2-1) Main Routine When the user sets the job content using the operation panel 140 and presses the start key on the operation panel 140, the multifunction device 1 completes the job content setting. Check the settings of. As shown in FIG. 5, when a scan job is accepted from the user (S501: YES), it is determined from the setting contents of the scan job whether or not the scan job is a job for reading a barcode from the smartphone screen. If the barcode is not read from the smartphone screen (S502: NO), after executing the normal reading process (S506), the process proceeds to step S501 and waits for the next job.

スマフォ画面からのバーコード読み取りである場合には(S502:YES)、バーコード読み取り処理を実行し(S503)、得られたバーコードを解析した後(S504)、解析結果を出力して(S505)、ステップS501へ進んで、次のジョブを待つ。なお、バーコードを解析するとは、白色部分や黒色部分の幅を特定したり、特定した幅の大小からバーコードをデコードしたりする処理である。
(1−2−2)バーコード読み取り処理(S503)
バーコード読み取り処理においては、図6に示すように、まず、線光源210を消灯した後(S601)、作業用変数nの値を1に初期化する(S602)。次に、線光源210を消灯したまま、駆動モーター241を回転させて、スライダー233を移動させる。すると、プラテンガラス202上に載置されているスマフォ240のスマフォ画面の出射光が、折り返しミラー234、235、236および光学素子221、222を経由して、ラインセンサー223に入射する。
If the barcode is read from the smartphone screen (S502: YES), the barcode reading process is executed (S503), the obtained barcode is analyzed (S504), and then the analysis result is output (S505). ), Proceed to step S501 and waits for the next job. The barcode analysis is a process of specifying the width of the white portion or the black portion, or decoding the barcode from the size of the specified width.
(1-2-2) Bar code reading process (S503)
In the barcode reading process, as shown in FIG. 6, first, the line light source 210 is turned off (S601), and then the value of the working variable n is initialized to 1 (S602). Next, with the line light source 210 turned off, the drive motor 241 is rotated to move the slider 233. Then, the emitted light of the smartphone screen of the smartphone 240 mounted on the platen glass 202 is incident on the line sensor 223 via the folding mirrors 234, 235, 236 and the optical elements 221 and 222.

ラインセンサー223は副走査位置毎に入射光量を検出して画像信号を生成し、A/D変換部401はラインセンサー223が生成した画像信号をデジタル化して画像データを生成し、バーコード処理部402に入力する(S603)。 The line sensor 223 detects the amount of incident light at each sub-scanning position and generates an image signal, and the A / D conversion unit 401 digitizes the image signal generated by the line sensor 223 to generate image data, and a bar code processing unit. Input to 402 (S603).

バーコード処理部402は入力された画像データどうしを加算する(S604)。すなわち、画像データどうしで対応する画素の画素値を合計する。この画素ごとの合計値は、当該画素に対応して検出した入射光量の合計量に対応している。画像データのうち、バーコード部分の画素の画素値は、スマートフォン240の出射光量に相当するバーコード成分と、ノイズ成分とを含んでいる。 The barcode processing unit 402 adds the input image data to each other (S604). That is, the pixel values of the corresponding pixels of the image data are summed. The total value for each pixel corresponds to the total amount of incident light detected corresponding to the pixel. In the image data, the pixel value of the pixel of the barcode portion includes a barcode component corresponding to the amount of emitted light of the smartphone 240 and a noise component.

ノイズ成分は所謂ランダムノイズであって、図7(a)に例示するように、画素どうしでノイズ成分701の大きさが異なる。スマートフォンの画面に表示したバーコードのように、ノイズ成分701の大きさの変動幅と比較して、コントラストが低い場合には、画素ごとの画素値を用いて、白色部分と黒色部分とを精度良く識別することが難しくなる。 The noise component is so-called random noise, and as illustrated in FIG. 7A, the magnitude of the noise component 701 differs between pixels. When the contrast is low compared to the fluctuation range of the size of the noise component 701, such as a barcode displayed on the screen of a smartphone, the pixel value for each pixel is used to make the white part and the black part accurate. It becomes difficult to identify well.

これに対して、画素ごとのノイズ成分の平均値が、画素どうしで互いに一致している場合には、互いに対応する画素どうしで画素値を合計してゆくと、当該合計値に含まれるノイズ成分の画素値の合計値が、互いに対応しない画素どうしでも漸近する。従って、図7(b)に例示するように、白色画素に重畳するノイズ成分702と、黒色画素に重畳するノイズ成分703とで、ノイズ成分の大きさが近くなる。 On the other hand, when the average value of the noise component for each pixel matches each other among the pixels, the noise component included in the total value is calculated by summing the pixel values among the pixels corresponding to each other. The total value of the pixel values of is asymptotic even between pixels that do not correspond to each other. Therefore, as illustrated in FIG. 7B, the noise component 702 superimposed on the white pixel and the noise component 703 superimposed on the black pixel have similar magnitudes of the noise component.

更に、画像データを加算してゆくと、白色画素と黒色画素とのコントラスト(画素値の差)が、1枚でのコントラストに対して、加算した画像データの枚数倍になって、コントラストが改善されるという効果もある。従って、画像データどうしの加算を繰り返せば、加算画像を用いてバーコードを精度よく解析することができる。 Furthermore, as the image data is added, the contrast between the white pixel and the black pixel (difference in pixel value) becomes twice as many as the number of added image data with respect to the contrast of one image, and the contrast is improved. There is also the effect of being done. Therefore, if the addition of image data is repeated, the barcode can be analyzed accurately using the added image.

このような効果を狙って、作業用変数nの値が所定の閾値Nよりも小さい場合には(S605:YES)、作業用変数nの値を1だけ増加させて(S606)、ステップS603へ進み、画像データの加算を繰り返す。その後、作業用変数nの値が所定の閾値Nよりも小さい場合には(S605:YES)、バーコード処理部402は、加算画像データを入力画像処理部310に向けて出力して(S607)、メインルーチンに復帰する。 Aiming at such an effect, when the value of the working variable n is smaller than the predetermined threshold value N (S605: YES), the value of the working variable n is increased by 1 (S606), and the process proceeds to step S603. Proceed and repeat the addition of image data. After that, when the value of the working variable n is smaller than the predetermined threshold value N (S605: YES), the barcode processing unit 402 outputs the added image data to the input image processing unit 310 (S607). , Return to the main routine.

なお、バーコード処理部402は、S607において、画素ごとの画素値を加算した画像データの枚数Nで除算してから、除算後の画像データを出力してもよい。 In S607, the barcode processing unit 402 may output the image data after the division after dividing by the number N of the image data obtained by adding the pixel values for each pixel.

このように、画像データを加算することによって、ノイズ成分を加算してゆけば、加算後の画素どうしノイズ成分をその平均値のN倍に均一化することができる。特に、ランダムノイズの平均値が0である場合には、平均値のN倍である0に均一化し、言い換えるとノイズ成分を相殺することができる。また、加算後の白色画素と黒色画素との画素値の差を大きくすることができる。 By adding the image data in this way, if the noise components are added, the noise components between the added pixels can be made uniform to N times the average value. In particular, when the average value of random noise is 0, it can be made uniform to 0, which is N times the average value, in other words, the noise component can be offset. In addition, the difference in pixel value between the white pixel and the black pixel after addition can be increased.

従って、バーコードにおける白色画素と黒色画素と確実に識別することができるので、白色部分と黒色部分との境界を精度良く検出することができる。すると、バーコードを構成する縞模様状の黒線の幅と、隣り合う黒線どうしの間隔を精度よく特定することができるので、当該幅と間隔とを用いて符号化されたバーコードデータを精度よく解析することができる。
(1−3)第1の実施の形態の変形例
本実施の形態については次のような変形例を考えることができる。
(1−3−1)第1の変形例
上記実施の形態においては、複数の画像データを加算することによってノイズの均一化とコントラストの強調とを図る場合を例にとって説明したが、本変形例においては1枚の画像データのみを用いて同様の効果を達成する。
Therefore, since the white pixel and the black pixel in the barcode can be reliably distinguished, the boundary between the white portion and the black portion can be detected with high accuracy. Then, the width of the striped black lines constituting the barcode and the distance between the adjacent black lines can be accurately specified. Therefore, the barcode data encoded using the width and the distance can be obtained. It can be analyzed with high accuracy.
(1-3) Modification example of the first embodiment The following modification example can be considered for this embodiment.
(1-3-1) First Modification Example In the above embodiment, a case where noise is made uniform and contrast is enhanced by adding a plurality of image data has been described as an example, but this modification has been described. In, the same effect is achieved by using only one image data.

すなわち、図8に示すように、バーコード読み取り処理において、線光源210を消灯し(S801)、スマフォ画面を読み取って、画像データを生成した後(S802)、バーコード上で隣り合う同色の画素どうしで画素値を合計する(S803)。 That is, as shown in FIG. 8, in the barcode reading process, after turning off the line light source 210 (S801), reading the smartphone screen and generating image data (S802), adjacent pixels of the same color on the barcode The pixel values are summed together (S803).

バーコードにおいては、図9に例示するように、縞模様状の黒線の長さ方向(以下、「バー方向」という。)に沿って黒色画素または白色画素が並んでいる。このため、バー方向に隣り合う画素どうしで画素値を合計すれば、同色の画素どうしで画素値を加算することができるので、上記実施の形態と同様の仕組みによってノイズ成分を均一化して、白色画素と黒色画素とを確実に識別することができる。 In the barcode, as illustrated in FIG. 9, black pixels or white pixels are arranged along the length direction of the striped black line (hereinafter, referred to as “bar direction”). Therefore, if the pixel values are summed between the pixels adjacent to each other in the bar direction, the pixel values can be added to the pixels of the same color. Therefore, the noise component is made uniform by the same mechanism as in the above embodiment, and the white color is obtained. Pixels and black pixels can be reliably distinguished.

このようなバーコードの特徴に着目して、ステップS803では、バー方向に沿って連続する複数の画素の画素値の合計を、当該複数の画素のうちのいずれかの画素の画素値にする。例えば、当該複数の画素のうち、スライダー233の移動方向における最も上流側の画素の画素値にしてもよいし、最も下流側の画素であってもよい。 Focusing on such characteristics of the barcode, in step S803, the sum of the pixel values of the plurality of pixels continuous along the bar direction is set to the pixel value of any one of the plurality of pixels. For example, among the plurality of pixels, the pixel value of the pixel on the most upstream side in the moving direction of the slider 233 may be used, or the pixel may be the pixel on the most downstream side.

また、バー方向に連続する複数の画素のうちの中央の画素の画素値にしてもよい。バー方向におけるスマフォ画面の端部から離れた位置にバーコードが表示されるのが一般的であるため、スマフォ画面の端部に対応する画素の画素値については、当該画素値を算出するために合計する画素値の個数が少なくなっても、バーコードを解析するという目的からすれば、問題を生じる可能性はないと考えられる。 Further, the pixel value of the central pixel of the plurality of pixels continuous in the bar direction may be used. Since the barcode is generally displayed at a position away from the edge of the smartphone screen in the bar direction, the pixel value of the pixel corresponding to the edge of the smartphone screen is calculated in order to calculate the pixel value. Even if the number of pixel values to be totaled is small, it is considered that there is no possibility of causing a problem for the purpose of analyzing the barcode.

また、スライダー233の移動方向における最も上流側から画素を所定の個数ずつグループ分けし、当該グループ毎に、グループに属する画素の画素値の合計を、当該グループに属する各画素の画素値にしてもよい。このようにすれば、スマフォ画面の端部であるか否かに関係なく、画素値を合計する画素数を揃えることができる。 Further, the pixels are grouped by a predetermined number from the most upstream side in the moving direction of the slider 233, and the total pixel value of the pixels belonging to the group is set to the pixel value of each pixel belonging to the group for each group. Good. In this way, the number of pixels for which the pixel values are totaled can be made uniform regardless of whether or not it is at the edge of the smartphone screen.

その後、当該合計値列をシステムコントローラー300の入力画像処理部に入力して(S804)、メインルーチンに復帰する。システムコントローラー300は、合計値列における白色画素と黒色画素との分布を参照することによって、バーコードにおけるバーの線幅と間隔とを特定することができるので、バーコードを精度よく解析することができる。 After that, the total value sequence is input to the input image processing unit of the system controller 300 (S804), and the process returns to the main routine. Since the system controller 300 can specify the line width and the interval of the bar in the barcode by referring to the distribution of the white pixel and the black pixel in the total value sequence, the barcode can be analyzed accurately. it can.

なお、バー方向の特定の仕方については、例えば、ユーザーがスマートフォン240をプラテンガラス202上に載置する際に、予め決められた方向にバー方向が向くように載置させたり、操作パネル140を用いてユーザーにバー方向を入力させたりしてもよい。また、スマフォ画面におけるバーコードの表示位置を、操作パネル140を用いてユーザーに指定させてもよい。
(1−3−2)第2の変形例
上記実施の形態においては、複数の画像データを1枚ずつ生成する場合を例にとって説明したが、本開示がこれに限定されないことは言うまでもなく、これに代えて次のようにしてもよい。
Regarding the method of specifying the bar direction, for example, when the user places the smartphone 240 on the platen glass 202, the smartphone 240 is placed so that the bar direction faces in a predetermined direction, or the operation panel 140 is placed. It may be used to force the user to enter the bar direction. Further, the user may be made to specify the display position of the barcode on the smartphone screen by using the operation panel 140.
(1-3-2) Second Modified Example In the above embodiment, a case where a plurality of image data are generated one by one has been described as an example, but it goes without saying that the present disclosure is not limited to this. Instead of, the following may be used.

すなわち、図10に示すように、バーコード読み取り処理において、線光源210を消灯し(S1001)、駆動モーター241の回転速度を通常の読み取り処理時における回転速度の1/Nに設定する(S1002)。このように回転速度を設定する一方、ラインセンサー223による読み取り速度を通常時と同じにして、スマフォ画面の読み取りを行い、主走査方向のライン数が通常時のN倍の画像データを生成する(S1003)。 That is, as shown in FIG. 10, in the barcode reading process, the line light source 210 is turned off (S1001), and the rotation speed of the drive motor 241 is set to 1 / N of the rotation speed in the normal reading process (S1002). .. While setting the rotation speed in this way, the reading speed by the line sensor 223 is set to the same as the normal time, the smartphone screen is read, and image data in which the number of lines in the main scanning direction is N times the normal time is generated ( S1003).

更に、ステップS802にて生成した画像データについて、副走査方向における先頭のラインからNライン毎に、主走査方向において同じ位置にあるN個の画素の画素値を合計して(S1004)、得られた画像データをシステムコントローラー300の入力画像処理部301へ出力する(S1005)。このようにすれば、N枚の画像データを合計したのと同じように、ノイズを均一化し、かつコントラストを強調した画像データを得ることができるので、精度よくバーコードを解析することができる。
[2]第2の実施の形態
本実施の形態においては、スマフォ画面を読み取る際に、ラインセンサー223の露光時間を延長して、コントラストを改善する。このため、スマフォ画面に表示されたバーコードのバー方向が画像読み取り装置100の副走査方向に一致するように、スマートフォンをプラテンガラス上に載置した状態でバーコードを読み取る。本実施の形態に係るバーコード読み取り処理においても、図11に示すように、まず線光源210を消灯する(S1101)。
Further, with respect to the image data generated in step S802, the pixel values of N pixels at the same position in the main scanning direction are totaled for each N line from the first line in the sub-scanning direction (S1004) to obtain the image data. The image data is output to the input image processing unit 301 of the system controller 300 (S1005). By doing so, it is possible to obtain image data in which noise is uniformed and contrast is emphasized in the same manner as when N image data are summed up, so that the barcode can be analyzed with high accuracy.
[2] Second Embodiment In the present embodiment, when reading the smartphone screen, the exposure time of the line sensor 223 is extended to improve the contrast. Therefore, the bar code is read with the smartphone placed on the platen glass so that the bar direction of the bar code displayed on the smartphone screen matches the sub-scanning direction of the image reading device 100. Also in the barcode reading process according to the present embodiment, as shown in FIG. 11, the line light source 210 is first turned off (S1101).

本実施の形態では、ラインセンサー223としてCMOS(Complementary Metal Oxide Semiconductor)センサーを用いて、通常の読み取り時には、例えば、42マイクロ秒毎にリセット信号を入力して1画素あたりの露光量を検出するのに対して、スマフォ画面を読み取る際には、CMOSセンサーにリセット信号を入力する周期を延長して(S1102)、スマフォ画面を読み取る(S1103)。 In the present embodiment, a CMOS (Complementary Metal Oxide Semiconductor) sensor is used as the line sensor 223, and during normal reading, for example, a reset signal is input every 42 microseconds to detect the exposure amount per pixel. On the other hand, when reading the smartphone screen, the cycle of inputting the reset signal to the CMOS sensor is extended (S1102), and the smartphone screen is read (S1103).

図12に示すように、CMOSセンサー223のリセット信号の入力周期が通常の長さである場合には、普通紙に印刷したバーコードの白色部分は、線光源210が出射する照明光の反射光量が多い。CMOSセンサー223は、受光量に応じた電荷を蓄積するため、図12に示すように、普通紙に印刷したバーコードの白色部分に対応する画素については蓄積電荷量1201が多くなる。 As shown in FIG. 12, when the input cycle of the reset signal of the CMOS sensor 223 is a normal length, the white portion of the barcode printed on plain paper is the amount of reflected light of the illumination light emitted by the line light source 210. There are many. Since the CMOS sensor 223 accumulates charges according to the amount of received light, as shown in FIG. 12, the accumulated charge amount 1201 increases for the pixels corresponding to the white portion of the barcode printed on plain paper.

一方、スマフォ画面に表示したバーコードの白色部分は、スマートフォン240の表示光量が線光源210の照明光量よりも少ないために、普通紙からバーコードを読み取る場合の露光時間と露光時間を同じにすると、CMOSセンサー223の当該画素についての蓄積電荷量1202が少なくなる。 On the other hand, in the white part of the bar code displayed on the smartphone screen, the display light amount of the smartphone 240 is smaller than the illumination light amount of the line light source 210, so if the exposure time when reading the bar code from plain paper is the same, the exposure time is the same. , The amount of accumulated charge 1202 for the pixel of the CMOS sensor 223 is reduced.

これに対して、本実施の形態に係るバーコード読み取り処理においては、バー方向と副走査方向とを一致させて、スライダー233が移動しても白色部分の表示光がCMOSセンサー223に入射し続けるようにした上で、CMOSセンサー223のリセット周期を延長するので、CMOSセンサー223の当該画素についての蓄積電荷量1203がリセットされずに、増加する。 On the other hand, in the bar code reading process according to the present embodiment, the bar direction and the sub-scanning direction are matched, and even if the slider 233 moves, the display light in the white portion continues to be incident on the CMOS sensor 223. Since the reset cycle of the CMOS sensor 223 is extended in this way, the accumulated charge amount 1203 for the pixel of the CMOS sensor 223 is increased without being reset.

例えば、CMOSセンサーにリセット信号を入力する周期を通常の10倍にすれば、1画素当たりの露光時間が10倍になるので、1画素当たりの露光量を増加させることができる。従って、バーコードを構成する白色画素と黒色画素との間の画素値の差もまた10倍にして、バーコード画像のコントラストを強調することができるので、精度よくバーコード画像を解析することができる。 For example, if the cycle of inputting the reset signal to the CMOS sensor is set to 10 times the normal period, the exposure time per pixel becomes 10 times, so that the exposure amount per pixel can be increased. Therefore, the difference in pixel values between the white pixels and the black pixels constituting the barcode can also be increased by 10 times to enhance the contrast of the barcode image, so that the barcode image can be analyzed accurately. it can.

また、1枚のバーコード画像を読み取るのに要する時間が、普通紙等からバーコード画像を読み取る通常時と同じ長さで済む。
(2−1)第2の実施の形態の変形例
上記第2の実施の形態では、スマフォ画面に表示したバーコードのバー方向が画像読み取り装置100の副走査方向に一致するように、ユーザーがスマートフォン240をプラテンガラス202上に載置しなければならない。また、副走査方向の解像度が低下するという問題もある。
In addition, the time required to read one barcode image is the same as the normal time for reading a barcode image from plain paper or the like.
(2-1) Modification Example of the Second Embodiment In the above second embodiment, the user sets the bar direction of the bar code displayed on the smartphone screen to match the sub-scanning direction of the image reading device 100. The smartphone 240 must be placed on the platen glass 202. There is also a problem that the resolution in the sub-scanning direction is lowered.

このような問題に対して、本変形例では、図13に示すように、スマフォ画面からバーコードを読み取る際のCMOSセンサー223のリセット周期を通常時のリセット周期のN倍に設定するとともに(S1302)、駆動モーター231の回転速度を通常時の回転速度の1/N倍に設定して(S1303)、バーコードを読み取る(S1304)。 In response to such a problem, in this modification, as shown in FIG. 13, the reset cycle of the CMOS sensor 223 when reading the barcode from the smartphone screen is set to N times the normal reset cycle (S1302). ), The rotation speed of the drive motor 231 is set to 1 / N times the normal rotation speed (S1303), and the barcode is read (S1304).

このようにすれば、スマフォ画面上の位置ごとに、当該位置に対応する画素についての蓄積電荷量を多くすることができるので、バーコード画像のコントラストを改善することができる。従って、ユーザーがプラテンガラス202上にスマートフォン240を載置する方向を制限する必要が無く、かつ副走査方向の解像度が低下することもない。
[3]第3の実施の形態
本実施の形態においては、スマフォ画面上でバーコードの表示位置をバー方向へ断続的に移動させながら、画像読み取り装置100がバーコード画像を読み取り、バーコード上の同じ位置に対応する画素どうしで画素値を合計することによって、ノイズ成分を均一化するとともに、白色部分と黒色部分とのコントラストを強調する。
(3−1)スマートフォン240のバーコード表示処理
本実施の形態において、スマートフォン240はプラテンガラス202上に載置された状態で、図14に示すように、まず作業用変数nの値を1に初期化する(S1401)。次に、n番目の表示領域にバーコードを表示する(S1402)。図15(a)に示す例では、作業用変数nの値が1である場合、スマフォ画面上の表示領域1511にバーコード1512が表示されている。
By doing so, it is possible to increase the amount of accumulated charge for the pixels corresponding to each position on the smartphone screen, so that the contrast of the barcode image can be improved. Therefore, it is not necessary for the user to limit the direction in which the smartphone 240 is placed on the platen glass 202, and the resolution in the sub-scanning direction does not decrease.
[3] Third Embodiment In the present embodiment, the image reading device 100 reads the barcode image while intermittently moving the display position of the barcode on the smartphone screen in the bar direction, and the barcode image is displayed on the barcode. By summing the pixel values among the pixels corresponding to the same position, the noise component is made uniform and the contrast between the white part and the black part is emphasized.
(3-1) Bar Code Display Processing of Smartphone 240 In the present embodiment, the smartphone 240 is placed on the platen glass 202, and as shown in FIG. 14, the value of the working variable n is first set to 1. Initialize (S1401). Next, the barcode is displayed in the nth display area (S1402). In the example shown in FIG. 15A, when the value of the working variable n is 1, the barcode 1512 is displayed in the display area 1511 on the smartphone screen.

その後、画像読み取り装置100の読み取り位置がバーコード1512を通過するのに必要な時間をタイマーにセットして(S1403)、当該時間の経過を待つ。当該時間が経過して、タイムアウトが発生したら(S1404:YES)、作業用変数nの値と、バーコードを表示する位置の個数Nとを比較する。 After that, the time required for the reading position of the image reading device 100 to pass the barcode 1512 is set in the timer (S1403), and the elapse of the time is waited for. When the time elapses and a timeout occurs (S1404: YES), the value of the working variable n is compared with the number N of the positions where the barcode is displayed.

この比較の結果、作業用変数nの値の方が小さい場合には(S1405:YES)、作業用変数nの値を1だけ増加させて(S1406)、ステップS1402に進み、次の位置にバーコードを表示する。図15(b)に示す例では、作業用変数nの値が2である場合、スマフォ画面上の表示領域1521にバーコード1522が表示されている。画像読み取り装置100は、スライダー233を移動させてバーコード1522を読み取る。 As a result of this comparison, if the value of the working variable n is smaller (S1405: YES), the value of the working variable n is increased by 1 (S1406), the process proceeds to step S1402, and the bar is placed at the next position. Display the code. In the example shown in FIG. 15B, when the value of the working variable n is 2, the barcode 1522 is displayed in the display area 1521 on the smartphone screen. The image reading device 100 moves the slider 233 to read the barcode 1522.

その後、作業用変数nの値が個数Nに達して、N個目のバーコードの読み取りが完了したら(S1405:NO)、処理を終了する。 After that, when the value of the working variable n reaches the number N and the reading of the Nth barcode is completed (S1405: NO), the process ends.

なお、スマートフォン240は、画像読み取り装置100とタイミングを合わせて動作する必要がある。このため、スマートフォン240は、表示画面側に備えているインカメラを用いて、画像読み取り装置100が線光源210を消灯したことを検出し、線光源210が消灯されたら直ちに、または所定時間が経過した後にバーコードの表示(S1402)を開始してもよい。
(3−2)画像読み取り装置100のバーコード読み取り処理
画像読み取り装置100は、図16に示すように、線光源210を消灯し(S1601)、N個のバーコードを読み取って、画像データを生成する(S1602)。図15(c)に例示した画像データ1531は、N個のバーコード1532を含む画像データである。
The smartphone 240 needs to operate at the same timing as the image reading device 100. Therefore, the smartphone 240 detects that the image reading device 100 has turned off the line light source 210 by using the in-camera provided on the display screen side, and immediately after the line light source 210 is turned off, or a predetermined time elapses. After that, the bar code display (S1402) may be started.
(3-2) Bar Code Reading Process of Image Reading Device 100 As shown in FIG. 16, the image reading device 100 turns off the line light source 210 (S1601), reads N bar codes, and generates image data. (S1602). The image data 1531 illustrated in FIG. 15C is image data including N barcodes 1532.

次に、生成した画像データから、それぞれバーコードを1つだけ含むN個のバーコード画像を切り出す(S1603)。N個のバーコードを含む画像データ1531からN個の画像データを切り出すための切り出し線1533の位置(区切り位置)は予め設定されている。画像読み取り装置100は、この切り出し線1533の位置で画像データを切り分けることによってN個の画像データを切り出す。 Next, N barcode images including only one barcode are cut out from the generated image data (S1603). The position (separation position) of the cutout line 1533 for cutting out N image data from the image data 1531 including N barcodes is set in advance. The image reading device 100 cuts out N image data by cutting out the image data at the position of the cutout line 1533.

更に、切り出したN個の画像データを合計した加算画像データを生成して(S1604)、得られた画像データを出力する(S1605)。このようにしても、バーコード画像に重畳するノイズ成分を均一化するとともに、バーコード画像のコントラストを強調することができるので、バーコードを精度良く解析することができる。 Further, the added image data obtained by summing the N cut-out image data is generated (S1604), and the obtained image data is output (S1605). Even in this way, the noise component superimposed on the barcode image can be made uniform and the contrast of the barcode image can be emphasized, so that the barcode can be analyzed with high accuracy.

なお、N個のバーコードを順次、スマフォ画面に表示する代わりに、N個のバーコードをすべてスマフォ画面に表示してもよく、このようにしても同様の効果を得ることができる。
(3−3)第3の実施の形態の変形例
上記第3の実施の形態においては、N個所の位置にバーコードを表示させる場合を例にとって説明したが、これに代えて、スライダー233の移動速度よりも遅い速度でバーコードをバー方向(副走査方向)に連続的に移動させながら、当該バーコードを読み取ってもよい。
Instead of displaying N barcodes on the smartphone screen in sequence, all N barcodes may be displayed on the smartphone screen, and the same effect can be obtained in this way.
(3-3) Modification Example of Third Embodiment In the above-mentioned third embodiment, a case where a barcode is displayed at N positions has been described as an example, but instead of this, the slider 233 The barcode may be read while continuously moving the barcode in the bar direction (sub-scanning direction) at a speed slower than the moving speed.

図17(a)に例示するように、スマフォ画面上の表示領域1711にバーコード1712を表示させて、スライダー233の移動方向である副走査方向へバーコードを移動させながら、画像読み取り装置100によって読み取りを行う。 As illustrated in FIG. 17A, the barcode 1712 is displayed in the display area 1711 on the smartphone screen, and the image reading device 100 moves the barcode in the sub-scanning direction, which is the moving direction of the slider 233. Read.

すると、バーコードの移動速度とスライダー233の移動速度の差に応じて、図17(b)に例示するように、バーコード画像1721の副走査方向の長さが変化する。特に、スマフォ画面上でのバーコードの移動速度がスライダー233の移動速度よりも遅いほど、バーコード画像1721が副走査方向に拡大される。 Then, as illustrated in FIG. 17B, the length of the barcode image 1721 in the sub-scanning direction changes according to the difference between the moving speed of the barcode and the moving speed of the slider 233. In particular, as the moving speed of the barcode on the smartphone screen is slower than the moving speed of the slider 233, the barcode image 1721 is enlarged in the sub-scanning direction.

これによって、副走査方向におけるバーコード画像の長さが、スマフォ画面に表示されたバーコードのN倍になった場合には、副走査方向における上流側からNラインずつ主走査方向の読み取り線をグループ化する。そして、同じグループに属するラインにおいて互いに対応する画素の画素値を、加算器1731を用いて合計する。 As a result, when the length of the barcode image in the sub-scanning direction becomes N times the barcode displayed on the smartphone screen, N lines from the upstream side in the sub-scanning direction are read in the main scanning direction. Group. Then, the pixel values of the pixels corresponding to each other in the lines belonging to the same group are summed using the adder 1731.

このようにして生成したバーコード画像1741もまたノイズ成分を均一化するとともに、コントラストが強調されているので、バーコードを精度良く解析することができる。
[4]変形例
以上、本開示を実施の形態に基づいて説明してきたが、本開示が上述の実施の形態に限定されないのは勿論であり、以下のような変形例を実施することができる。
(4−1)バーコード読み取り処理を実行するか否かの判定は、例えば、図18に示すように、ユーザーが操作パネル140を用いてスキャンジョブの内容を設定する際に、バーコード読み取りモードが選択された場合に(S1801:YES)、バーコード読み取り処理に移行してもよい(S1802)。
Since the bar code image 1741 generated in this way also homogenizes the noise component and emphasizes the contrast, the bar code can be analyzed with high accuracy.
[4] Modified Examples Although the present disclosure has been described above based on the embodiments, it goes without saying that the present disclosure is not limited to the above-described embodiments, and the following modified examples can be implemented. ..
(4-1) The determination as to whether or not to execute the barcode reading process is performed, for example, as shown in FIG. 18, when the user sets the content of the scan job using the operation panel 140, the barcode reading mode. When is selected (S1801: YES), the process may shift to the barcode reading process (S1802).

また、別の方法として、図19に示すように、まず線光源210を消灯し(S1901)、画像を読み取って画像データを生成する(S1902)。次に、生成した画像データの画素ごとに画素値が所定の閾値よりも大きいかどうかによって2値化して(S1903)、当該2値化画像において画素値が1である白色画素の個数をカウントする(S1904)。 As another method, as shown in FIG. 19, the line light source 210 is first turned off (S1901), the image is read, and image data is generated (S1902). Next, each pixel of the generated image data is binarized according to whether or not the pixel value is larger than a predetermined threshold value (S1903), and the number of white pixels having a pixel value of 1 in the binarized image is counted. (S1904).

白色画素の個数が所定の個数(閾値)よりも多い場合には(S1905:YES)、照明光を照射しなくても自ら発光するスマフォ画面に表示されたバーコード画像であると判断されるので、バーコード読み取り処理へ移行する(S1906)。 If the number of white pixels is larger than the predetermined number (threshold value) (S1905: YES), it is determined that the barcode image is displayed on the smartphone screen that emits light by itself without irradiating the illumination light. , Shift to the barcode reading process (S1906).

白色画素の個数が所定の個数(閾値)以下である場合には(S1905:NO)、普通紙など自ら発光せず、従って、線光源210を用いて照明しないと暗く、画素値が低下する媒体からの画像読み取りであると判断されるので、線光源210を点灯して、通常の読み取り処理を実行する。 When the number of white pixels is less than or equal to a predetermined number (threshold value) (S1905: NO), plain paper or the like does not emit light by itself, and therefore it is dark unless illuminated with a line light source 210, and the pixel value decreases. Since it is determined that the image is being read from, the line light source 210 is turned on and a normal reading process is executed.

なお、白色画素の個数が所定の個数(閾値)よりも多い場合には(S1905:YES)、更に、バーコードと同じ面積および形状の矩形領域を2値化画像上で移動させながら、当該矩形領域ごとに黒色画素の個数をカウントして、黒色画素の個数が所定の個数(白色画素の個数の閾値とは別途、設定される閾値)よりも多いかどうかを確認する。 When the number of white pixels is larger than the predetermined number (threshold value) (S1905: YES), the rectangular area having the same area and shape as the bar code is moved on the binarized image. The number of black pixels is counted for each region, and it is confirmed whether or not the number of black pixels is larger than a predetermined number (a threshold value set separately from the threshold value of the number of white pixels).

バーコードを含む矩形領域は、バーコードを含まない矩形領域と比較して、当該領域内に黒色画素が集中していると考えられる。このため、黒色画素の個数が閾値よりも多い場合にのみ、当該矩形領域にバーコードが含まれていると判断して、バーコード読み取り処理へ移行してもよい。 It is considered that the rectangular area including the barcode has black pixels concentrated in the rectangular area as compared with the rectangular area not including the barcode. Therefore, only when the number of black pixels is larger than the threshold value, it may be determined that the rectangular area contains the barcode, and the process may shift to the barcode reading process.

普通紙など自ら発光せず、従って、線光源210を用いて照明しないと暗く、画素値が低下する媒体からの読み取り画像を2値化すると黒色画素の個数が多くなり易い。このため、白色画素の個数を閾値と比較して、画面表示であることを確認してから、黒色画素の個数をカウントすれば、バーコード画像が画面表示されている場合にだけ、バーコード読み取り処理へ移行することができる。
(4−2)上記実施の形態においては、画像形成装置が複合機である場合を例にとって説明したが、本開示がこれに限定されないのは言うまでもなく、これに代えてコピー装置やファクシミリ装置など、画像読み取り装置100を備える単機能機であってもよい。また、自動原稿搬送装置110を備えていなくても、本開示を適用することによって、上述のような効果を得ることができる。
(4−3)上記実施の形態においては、スマフォ画面に表示されたバーコードを読み取る場合を例にとって説明したが、本開示がこれに限定されないのは言うまでもなく、タブレット端末などスマートフォン240以外の可搬型の端末装置に表示されたバーコードを読み取ってもよい。発光することによって画面表示されたバーコードを読み取る場合であれば、本開示を適用することによって、その効果を得ることができる。
(4−4)上記実施の形態においては、スマフォ画面に表示されたバーコードを読み取る際に、線光源210を消灯する場合を例にとって説明したが、本開示がこれに限定されないのは言うまでもなく、これに代えて、線光源210を点灯した状態で、スマフォ画面からバーコードを読み取ってもよい。線光源210を点灯する場合にも、本開示を適用することによって同様の効果を得ることができる。
Since it does not emit light by itself such as plain paper, it is dark unless it is illuminated with a line light source 210, and the number of black pixels tends to increase when the image read from a medium whose pixel value decreases is binarized. Therefore, if the number of white pixels is compared with the threshold value to confirm that the screen is displayed and then the number of black pixels is counted, the barcode is read only when the barcode image is displayed on the screen. You can move to processing.
(4-2) In the above embodiment, the case where the image forming apparatus is a multifunction device has been described as an example, but it goes without saying that the present disclosure is not limited to this, and instead, a copying apparatus, a facsimile apparatus, etc. , It may be a single-function device including the image reading device 100. Further, even if the automatic document transporting device 110 is not provided, the above-mentioned effects can be obtained by applying the present disclosure.
(4-3) In the above embodiment, the case of reading the barcode displayed on the smartphone screen has been described as an example, but it goes without saying that the present disclosure is not limited to this, and other than the smartphone 240 such as a tablet terminal is possible. The barcode displayed on the portable terminal device may be read. If the barcode displayed on the screen is read by emitting light, the effect can be obtained by applying the present disclosure.
(4-4) In the above embodiment, the case where the line light source 210 is turned off when reading the barcode displayed on the smartphone screen has been described as an example, but it goes without saying that the present disclosure is not limited to this. Instead of this, the barcode may be read from the smartphone screen with the line light source 210 turned on. The same effect can be obtained by applying the present disclosure when the line light source 210 is turned on.

本開示に係る画像読み取り装置および画像形成装置は、画面表示されたバーコードを高い精度で読み取ることができる装置として有用である。 The image reading device and the image forming device according to the present disclosure are useful as devices capable of reading the barcode displayed on the screen with high accuracy.

1………画像形成装置
100…画像読み取り装置
202…プラテンガラス
210…線光源
223…ラインセンサー
233…スライダー
240…スマートフォン
241…バーコード
1 ... Image forming device 100 ... Image reading device 202 ... Platen glass 210 ... Line light source 223 ... Line sensor 233 ... Slider 240 ... Smartphone 241 ... Bar code

Claims (14)

プラテンセット方式で読み取りを行う際に、読み取り対象を照明する照明手段と、
前記読み取り対象の読み取り面に沿って前記照明手段とともに移動しながら、前記読み取り対象からの受光量を検出する受光量検出手段と、
前記検出した受光量を画素値に変換する変換手段と、を有する画像形成装置であって、
前記読み取り対象が、可搬性デバイスのディスプレイ画面に表示されたバーコードであるか否かを判断する読み取り対象判断手段と、
前記判断が肯定的である場合に、前記受光量検出手段の制御と、前記変換によって得た画素値を変更する画像処理との少なくとも一方を行うことによって、前記バーコードの白色部分と黒色部分との間で画素値の差を拡大させ、かつ当該画像処理後の画素値に含まれているノイズ成分を画素どうしで平均化するバーコード読み取り制御手段と、を備える
ことを特徴とする画像形成装置。
When reading with the platen set method, the lighting means to illuminate the reading target and
A light receiving amount detecting means for detecting the light receiving amount from the reading target while moving together with the lighting means along the reading surface of the reading target.
An image forming apparatus comprising a conversion means for converting the detected light receiving amount into a pixel value.
A reading target determining means for determining whether or not the reading target is a barcode displayed on the display screen of the portable device, and
When the determination is affirmative, the white portion and the black portion of the barcode are formed by performing at least one of the control of the light receiving amount detecting means and the image processing for changing the pixel value obtained by the conversion. An image forming apparatus comprising: a bar code reading control means for expanding the difference in pixel values between pixels and averaging noise components contained in the pixel values after the image processing among the pixels. ..
前記読み取り対象がディスプレイ画面に表示されたバーコードであると判断した場合に、前記照明手段を消灯する消灯手段を備える
ことを特徴とする請求項1に記載の画像形成装置。
The image forming apparatus according to claim 1, further comprising a light-off means for turning off the lighting means when it is determined that the reading target is a barcode displayed on a display screen.
前記読み取り対象判断手段は、
前記読み取り対象がバーコードであるか否かの指定を受け付ける受付手段を備え、
前記受付手段が受け付けた指定に応じて、前記読み取り対象の判断を実行する
ことを特徴とする請求項1または2に記載の画像形成装置。
The reading target determination means is
A reception means for accepting designation as to whether or not the read target is a barcode is provided.
The image forming apparatus according to claim 1 or 2, wherein the determination of the reading target is executed according to the designation received by the receiving means.
前記読み取り対象判断手段は、
前記変換によって得た画素値が所定の閾値以上である画素が集中している集中領域があるか否かを判断する集中領域判断手段を備え、
前記集中領域があると判断された場合に、前記読み取り対象はバーコードであると判断する
ことを特徴とする請求項1または2に記載の画像形成装置。
The reading target determination means is
A concentration area determination means for determining whether or not there is a concentration area in which pixels whose pixel values obtained by the conversion are equal to or greater than a predetermined threshold value are concentrated is provided.
The image forming apparatus according to claim 1 or 2, wherein when it is determined that there is a concentrated area, it is determined that the reading target is a barcode.
前記バーコード読み取り制御手段は、前記画像処理において、
画像データ上の位置から同色と推定される画素どうしで画素値を加算して、得られた画素値を当該画素の組に対応する画素値とすることによって、前記画素値の差を拡大させる
ことを特徴とする請求項1から4のいずれかに記載の画像形成装置。
The barcode reading control means is used in the image processing.
The difference between the pixel values is increased by adding the pixel values between the pixels estimated to be the same color from the position on the image data and making the obtained pixel value the pixel value corresponding to the pixel set. The image forming apparatus according to any one of claims 1 to 4.
前記バーコード読み取り制御手段は、
前記受光量検出手段を、前記プラテンガラスに沿って読み取り開始端から読み取り終了端まで移動しながら受光量を検出する作業を、複数回繰り返させ、
得られた複数の画像データどうしで同じ位置にある画素を同色の画素と推定して、その画素値を加算する
ことを特徴とする請求項5に記載の画像形成装置。
The barcode reading control means is
The operation of detecting the light receiving amount while moving the light receiving amount detecting means from the reading start end to the reading end end along the platen glass is repeated a plurality of times.
The image forming apparatus according to claim 5, wherein pixels at the same position among the obtained plurality of image data are estimated as pixels of the same color, and the pixel values are added.
前記バーコードのバー方向が、前記受光量検出手段の移動方向に一致した状態で、前記読み取り対象がプラテンガラス上に載置されている場合に、
前記バー方向に沿って連続する画素を同色の画素と推定して、その画素値を加算し、前記バー方向と直交する方向において当該連続する画素と同じ位置にある画素の画素値とする
ことを特徴とする請求項5に記載の画像形成装置。
When the reading target is placed on the platen glass in a state where the bar direction of the barcode coincides with the moving direction of the light receiving amount detecting means.
Pixels that are continuous along the bar direction are estimated to be pixels of the same color, and the pixel values are added to obtain the pixel values of pixels that are at the same position as the continuous pixels in the direction orthogonal to the bar direction. The image forming apparatus according to claim 5.
前記バーコード読み取り手段は、
前記受光量検出手段を制御して、その移動速度を低下させることによって、前記バーコードにおけるバー方向に直交する同一ラインを複数回読み取らせ、
前記同一ライン上で同じ位置に対応する複数の画素を同色の画素と推定して、その画素値を加算する
ことを特徴とする請求項5に記載の画像形成装置。
The barcode reading means is
By controlling the light receiving amount detecting means and reducing the moving speed thereof, the same line orthogonal to the bar direction in the barcode is read a plurality of times.
The image forming apparatus according to claim 5, wherein a plurality of pixels corresponding to the same position on the same line are estimated as pixels of the same color, and the pixel values are added.
前記バーコード読み取り手段は、
前記受光量検出手段を制御して、前記読み取り対象が画面表示されたバーコードでないと判断した場合よりも、1画素の受光量を検出するための露光時間を長くすることによって、前記画素値の差を拡大させる
ことを特徴とする請求項1から4のいずれかに記載の画像形成装置。
The barcode reading means is
By controlling the light receiving amount detecting means to lengthen the exposure time for detecting the light receiving amount of one pixel as compared with the case where it is determined that the reading target is not the bar code displayed on the screen, the pixel value is determined. The image forming apparatus according to any one of claims 1 to 4, wherein the difference is enlarged.
前記バーコードのバー方向が、前記受光量検出手段の移動方向に一致するように、前記読み取り対象がプラテンガラス上に載置されている場合に、
前記バーコード読み取り手段は、
前記読み取り対象が画面表示されたバーコードでないと判断した場合よりも、前記バー方向における広い範囲を1画素としての受光量を検出することによって、前記画素値の差を拡大させる
ことを特徴とする請求項9に記載の画像形成装置。
When the reading target is placed on the platen glass so that the bar direction of the barcode coincides with the moving direction of the light receiving amount detecting means.
The barcode reading means is
It is characterized in that the difference in pixel values is increased by detecting the amount of light received as one pixel in a wide range in the bar direction, as compared with the case where it is determined that the reading target is not the bar code displayed on the screen. The image forming apparatus according to claim 9.
前記バーコード読み取り手段は、
前記読み取り対象が画面表示されたバーコードであると判断した場合の露光時間に対する、前記読み取り対象が画面表示されたバーコードでないと判断した場合の露光時間の比率に応じて、前記受光量検出手段の移動速度を低下させる
ことを特徴とする請求項9に記載の画像形成装置。
The barcode reading means is
The light receiving amount detecting means according to the ratio of the exposure time when it is determined that the reading target is not the screen-displayed barcode to the exposure time when it is determined that the reading target is not the screen-displayed barcode. The image forming apparatus according to claim 9, wherein the moving speed of the image forming apparatus is reduced.
読み取り時に、前記バーコードが前記受光量検出手段の移動方向に沿って移動するように表示される場合において、
前記バーコード読み取り制御手段は、
前記受光量検出手段の移動方向における互いに異なる位置で受光量を検出した画素どうしであって、かつ 画像データ上で対応する位置にある画素どうしの画素値を加算して、得られた画素値を当該位置に対応する画素の画素値とすることによって、前記画素値の差を拡大させる
ことを特徴とする請求項1から4のいずれかに記載の画像形成装置。
When the barcode is displayed to move along the moving direction of the received light amount detecting means at the time of reading.
The barcode reading control means is
The pixel values obtained by adding the pixel values of the pixels whose light receiving amounts are detected at different positions in the moving direction of the light receiving amount detecting means and at the corresponding positions on the image data are obtained. The image forming apparatus according to any one of claims 1 to 4, wherein the difference between the pixel values is increased by setting the pixel value of the pixel corresponding to the position.
前記バーコードが前記移動方向に沿った移動が複数の位置を断続的に移動する場合において、
前記バーコード読み取り手段は、
読み取り画像上で、前記複数の位置に表示されたバーコードどうしを区切り位置で区画して、複数の部分画像に分割する画像分割手段と、
前記複数の部分画像どうしで、対応する位置にある画素どうしの画素値を加算する画像加算手段と、を備える
ことを特徴とする請求項12に記載の画像形成装置。
When the movement of the barcode along the movement direction intermittently moves to a plurality of positions.
The barcode reading means is
An image dividing means for dividing the barcodes displayed at the plurality of positions on the scanned image at the dividing positions and dividing the barcodes into a plurality of partial images.
The image forming apparatus according to claim 12, further comprising an image adding means for adding pixel values of pixels at corresponding positions among the plurality of partial images.
前記バーコードが、前記受光量検出手段の移動速度よりも遅い速度で連続的に移動する場合において、
前記バーコード上でバー方向に直交するラインのうち、バー方向に隣り合うラインどうしを区画する区切り位置で、読み取り画像を複数の部分画像に分割する画像分割手段と、
部分画像ごとに、前記バー方向に連続する画素どうしで画素値を加算して、当該ライン上の位置に対応する画素の画素値とする画像加算手段と、を備える
ことを特徴とする請求項12に記載の画像形成装置。
When the barcode continuously moves at a speed slower than the moving speed of the received light amount detecting means.
Among the lines orthogonal to the bar direction on the barcode, an image dividing means for dividing the scanned image into a plurality of partial images at a dividing position for dividing adjacent lines in the bar direction.
The twelfth claim is characterized in that each partial image is provided with an image adding means for adding pixel values between pixels continuous in the bar direction to obtain pixel values of pixels corresponding to positions on the line. The image forming apparatus according to.
JP2019207110A 2019-11-15 2019-11-15 Image forming apparatus Pending JP2021082889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019207110A JP2021082889A (en) 2019-11-15 2019-11-15 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019207110A JP2021082889A (en) 2019-11-15 2019-11-15 Image forming apparatus

Publications (1)

Publication Number Publication Date
JP2021082889A true JP2021082889A (en) 2021-05-27

Family

ID=75965488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019207110A Pending JP2021082889A (en) 2019-11-15 2019-11-15 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP2021082889A (en)

Similar Documents

Publication Publication Date Title
US7200285B2 (en) Detecting skew angle in a scanned image
JP6537699B2 (en) Image reading apparatus, control method and control program
JP4329767B2 (en) Image reading apparatus and color discrimination method
JP2013115728A (en) Image processing apparatus, image processing method, and program
US20100091312A1 (en) Smart copy function enhancements
JP6264057B2 (en) Reader
JP2021082889A (en) Image forming apparatus
JP2006197445A (en) Image processor
US8184341B2 (en) Image reading apparatus, image reading method, and storage medium
JP2023129915A (en) Image processing apparatus, image processing method, and program
JP2022012616A (en) Image reading apparatus
JP2007266961A (en) Image reading apparatus, image reading method, image reading program, and record medium
JP4855017B2 (en) Document size detection apparatus, image reading apparatus, and image forming apparatus
US7570394B2 (en) System for determining the size of an original image, such as in a digital copier
JP7533327B2 (en) IMAGE READING DEVICE, IMAGE READING PROGRAM, IMAGE PROCESSING DEVICE, AND IMAGE PROCESSING PROGRAM
JP7543564B2 (en) Information processing device, control method, and control program
US20100002274A1 (en) Independent scanning apparatus and independent scanning method
JP6107493B2 (en) Image reading apparatus, image processing apparatus, and program
JP6958516B2 (en) Reader
JP5477964B2 (en) Image processing device
JP6711224B2 (en) Document reading device, document reading method, and document reading program
JP2012147382A (en) Image reading apparatus and image forming apparatus
EP3510757A1 (en) Transparent platen with chamfered egress edge
JP2021197605A (en) Image reading device, skew angle determination method, and program
JP2022063681A (en) Image reading device and method for controlling image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221017

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230822

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20240305