JP2011146759A - Detector capable of detecting code, control method of the same, and program - Google Patents

Detector capable of detecting code, control method of the same, and program Download PDF

Info

Publication number
JP2011146759A
JP2011146759A JP2010003628A JP2010003628A JP2011146759A JP 2011146759 A JP2011146759 A JP 2011146759A JP 2010003628 A JP2010003628 A JP 2010003628A JP 2010003628 A JP2010003628 A JP 2010003628A JP 2011146759 A JP2011146759 A JP 2011146759A
Authority
JP
Japan
Prior art keywords
code
reading
detection area
document
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010003628A
Other languages
Japanese (ja)
Other versions
JP5558844B2 (en
Inventor
Daisuke Suga
大介 須賀
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2010003628A priority Critical patent/JP5558844B2/en
Publication of JP2011146759A publication Critical patent/JP2011146759A/en
Application granted granted Critical
Publication of JP5558844B2 publication Critical patent/JP5558844B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To solve the following problem: a code cannot be detected in a predetermined code detection area when an original is largely deviated from a predetermined position during execution of pressure plate reading because a processing time increases when the code detection area is widened too much during execution of ADF reading, to decrease performance such as the speed of device reading and copying, in the device for detecting a code. <P>SOLUTION: A code detection area is made to be different during execution of ADF reading and pressure plate reading. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、コードを扱うことができる装置、その制御方法、プログラムに関するものである。   The present invention relates to an apparatus capable of handling codes, a control method thereof, and a program.

特許文献1に示すように、従来から、コードを紙面上に印刷しておき、これを読取ることによりコピーの許可、禁止制御を行う技術が知られている。
また、高速なコードの検知を目的として、特許文献1は、紙面のうちの規定の領域にコードを印刷することも開示している。
As shown in Patent Document 1, conventionally, a technique is known in which a code is printed on a paper surface, and copying is permitted or prohibited by reading the code.
Further, for the purpose of high-speed code detection, Patent Document 1 also discloses that a code is printed in a prescribed area of the paper surface.

特開2009−55406JP 2009-55406 A

さて、このようなコードの検出であるが、コードが原稿の所定位置(例えば、4隅)に配置されていてそこだけ検出すれば良いと規定されていても、圧板読みだと、コードの位置が所定位置からずれやすい。これは、圧版読みの場合、原稿に比べて相当に大きな領域のうちのどこからの領域に人があまり位置を正確に考えずに原稿を置くからである。この結果、原稿の位置が本来複写機メーカーとして置いて欲しい位置から微妙にずれ、コードが正常に読み取れなくなる可能性が大きい。そこで、圧版読みの場合には、少し広い領域でコードの検出動作を行う必要が出てくる。なお、圧版読みとは、原稿の位置は固定のまま、読取り手段を構成する光源を動かし、原稿の照射位置を時々刻々ずらして(変化させて)いくことにより、原稿全体を読み取る方法のことである。   Now, in the detection of such a code, even if it is specified that the code is arranged at a predetermined position (for example, four corners) of the document and only that position needs to be detected, Tends to deviate from the predetermined position. This is because in the case of plate reading, a person puts an original in an area from which the area is considerably larger than the original without considering the position so much. As a result, there is a high possibility that the position of the original is slightly deviated from the position originally desired as a copier manufacturer and the code cannot be read normally. Therefore, in the case of plate reading, it is necessary to perform a code detection operation in a slightly wide area. Note that “press plate reading” is a method of reading the entire original by moving the light source that constitutes the reading means while keeping the position of the original fixed, and gradually shifting (changing) the irradiation position of the original. It is.

一方、ADF読みでは機械で原稿を搬送するので原稿がずれにくく、所定領域(4隅のコード検出範囲)から原稿位置つまりコード位置はずれにくい。なお、ADF読みとは、照射位置を固定にし、原稿の方が動くことで原稿の読取りを行う方法である。このADF読みの場合、原稿はその左端を所定の位置にきちんと合うようにユーザによりセットされることになり(セットされないとADFは、原稿を搬送しないので)、左右の位置ずれが少ない。また、上下(正確に言うと奥行き)に関しても、大部分のユーザは原稿を正確な位置にセットする(置く)ための上下に存在するスライダーを利用して正確な位置に原稿をセットするため、上下の位置ずれも少ない。このため、圧板読みほどの広い領域でコードの検出動作を行う必要性は低い。よって、上記少し広い領域より狭い領域でコードの検出動作を行うことが望まれる。また、ADF読みの場合には、1枚1枚原稿を再セットする必要のある圧版読みと違い、原稿がどんどん読取られるため、より速い複写が望まれ、そうした関係上も、領域を絞ってコードを検知するのが望ましい。   On the other hand, in ADF reading, since the document is conveyed by a machine, the document is not easily displaced, and the document position, that is, the code position is not easily displaced from a predetermined area (the code detection range at the four corners). ADF reading is a method of reading a document by fixing the irradiation position and moving the document. In this ADF reading, the document is set by the user so that the left end of the document is properly aligned with a predetermined position (the ADF does not convey the document if it is not set), and there is little left-right positional deviation. Also, regarding the top and bottom (to be precise, depth), most users set the document at the correct position using the sliders located above and below to set (place) the document at the correct position. There is little vertical displacement. For this reason, it is not necessary to perform the code detection operation in a region as wide as the platen reading. Therefore, it is desired to perform the code detection operation in a narrower area than the slightly wider area. Also, in the case of ADF reading, unlike the plate reading that requires resetting one document at a time, the document is read more and more, so faster copying is desired. It is desirable to detect the code.

上記課題を解決するために、本発明に係る装置は、請求項に記載の構成を有する。   In order to solve the above-described problems, an apparatus according to the present invention has the configuration described in the claims.

本発明における一実施例によれば、コードを検出する装置において圧板読みで原稿があらかじめ固定されたコード検出範囲からコード位置がずれた場合にコード検出できない事態を減少させるという効果がある。ADF読みのように原稿があらかじめ固定されたコード位置からずれにくい場合に読み取りや複写の速度というパフォーマンスを低下させないという効果がある。   According to an embodiment of the present invention, there is an effect of reducing the situation where the code cannot be detected when the code position is deviated from the code detection range in which the original is fixed in advance by the pressure plate reading in the code detecting device. As in ADF reading, there is an effect that the performance of reading and copying speed is not lowered when the original is not easily displaced from the code position fixed in advance.

実施例1のフローチャートを示す図The figure which shows the flowchart of Example 1. ADF読み取り時のコード検出領域の一例を示す図The figure which shows an example of the code detection area at the time of ADF reading 圧板読み取り時のコード検出領域の一例を示す図The figure which shows an example of the code detection area at the time of pressure plate reading 圧板読み取り時の非対称コード検出領域とADF読み取り時のコード検出領域の一例を示す図The figure which shows an example of the asymmetric code detection area at the time of pressure plate reading, and the code detection area at the time of ADF reading 圧板読み取り時の非対称コード検出領域の一例を示す図The figure which shows an example of the asymmetrical code detection area at the time of pressure plate reading 原稿混載モードでA4R原稿を上側に寄せたADF読み取り時のコード検出領域の一例を示す図The figure which shows an example of the code | cord | chord detection area | region at the time of ADF reading which moved the A4R original document up in the original document mixed mode 原稿混載モードでA4R原稿を下側に寄せたADF読み取り時のコード検出領域の一例を示す図The figure which shows an example of the code | cord | chord detection area at the time of ADF reading which brought the A4R original document down in the original document mixture mode 原稿混載モードのADF読み取り時のコード検出領域の一例を示す図The figure which shows an example of the code | cord | chord detection area at the time of ADF reading of a document mixed loading mode 実施例5のフローチャートを示す図The figure which shows the flowchart of Example 5. 原稿混載モードのフローチャートを示す図The figure which shows the flowchart of manuscript mixed loading mode 実施例6の学習モードのフローチャートを示す図The figure which shows the flowchart of the learning mode of Example 6. コード検出座標とコード検出領域座標の関係を示す図Diagram showing the relationship between code detection coordinates and code detection area coordinates コードがコード検出領域外にある事を示す図Diagram showing that the code is outside the code detection area

以下、本発明を実施するための最良の形態について図面を用いて説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

圧版読みとは、原稿の位置は固定のまま、読取り手段を構成する光源を動かし、原稿の照射位置を時々刻々ずらして(変化させて)いくことにより、原稿全体を読み取る方法のことである。一方、ADF読みとは、照射位置を固定にし、原稿の方を動かす(原稿の位置を変化させる)ことで原稿の読取りを行う方法である。   The plate reading is a method of reading the entire original by moving the light source that constitutes the reading means while keeping the position of the original fixed, and gradually shifting (changing) the irradiation position of the original. . On the other hand, ADF reading is a method of reading a document by fixing the irradiation position and moving the document (changing the position of the document).

コード検出を実施する装置の例としては複写機、MFP、スキャナーのような画像処理装置とコンピュータ等があげられる。本実施例ではMFPを例にとり説明を行うが実施形態を制限するものではない。また実施例ではMFPを画像処理装置と呼ぶ。画像処理装置の内部構成は一般的な構成であり図示しない。
画像処理装置は画像の入出力機能を有するものであり、紙原稿の入力および紙への印刷出力を行うものである。入力した画像情報は、デジタルデータとして保存やLANや電話網を経由して他の機器への転送なども可能である。また、コンピュータからのプリントデータや、他の画像処理装置からの画像情報を受信し、紙への印刷出力も可能である。画像の入力には受光素子を使った読み取りセンサと原稿を照射する光源と原稿台とADFとそれらを駆動する機械と原稿サイズ検出センサを組み合わせた読取装置を具備する。画像の出力には電子写真方式などのプリンタを具備する。画像処理装置内にはシステム全体を制御するプロセッサおよびASIC(特定用用途向けIC)を内蔵している。ASICにはシステムが動作するために必要な回路や画像処理回路が内蔵されている。また画像処理装置が動作するためのワークメモリ、画像データを一時記憶するための画像メモリとして用いる記憶部にRAMを有する。上記ワークメモリ、画像メモリをメモリと呼ぶ。また、画像処理装置のブートプログラムとして用いるROMを有する。また画像処理装置のシステムソフトウェア、画像データ、設定値を記憶するハードディスクドライブ(HDD)を有する。システムソフトウェアは、コピー、スキャン、プリンタ、FAX、コード検出等の機能を実現するためのプログラムであり、RAM上に展開されて動作する。画像処理装置ではシステムソフトウェアをプロセッサが実行する事で動作制御を実施する。画像処理装置内ではシステムソフトウェアによるソフト処理、または画像処理回路によるハード処理で、画像データの符号化、復号化、ラスタライズ、回転、多値と2値の変換、変倍、コード検出、その他適切な画像処理を行う。また画像処理装置へユーザの指示を伝達するUI(ユーザインターフェース)を有する。ユーザはUIを操作してログイン、コピー、スキャン、プリンタ、FAXなどの動作を指示する。
Examples of apparatuses that perform code detection include image processing apparatuses such as copiers, MFPs, and scanners, computers, and the like. In this embodiment, an MFP will be described as an example, but the embodiment is not limited. In the embodiment, the MFP is called an image processing apparatus. The internal configuration of the image processing apparatus is a general configuration and is not shown.
The image processing apparatus has an image input / output function, and inputs a paper original and prints it out on paper. The input image information can be stored as digital data or transferred to other devices via a LAN or telephone network. In addition, print data from a computer and image information from another image processing apparatus can be received and printed out on paper. For inputting an image, a reading device using a light receiving element, a light source for irradiating a document, a document table, an ADF, a machine for driving them, and a document size detection sensor are provided. An image is output by a printer such as an electrophotographic system. The image processing apparatus incorporates a processor for controlling the entire system and an ASIC (specific application IC). The ASIC includes a circuit and an image processing circuit necessary for the system to operate. A RAM is provided in a storage unit used as a work memory for operating the image processing apparatus and an image memory for temporarily storing image data. The work memory and image memory are called memories. Also, it has a ROM used as a boot program for the image processing apparatus. The image processing apparatus also includes a hard disk drive (HDD) that stores system software, image data, and setting values. The system software is a program for realizing functions such as copying, scanning, printer, FAX, and code detection, and is developed and operated on the RAM. In the image processing apparatus, operation control is performed by a system software being executed by a processor. In the image processing apparatus, software processing by system software or hardware processing by an image processing circuit is used to encode, decode, rasterize, rotate, convert multi-value and binary, scale, code detection, and other appropriate data processing. Perform image processing. In addition, it has a UI (user interface) for transmitting user instructions to the image processing apparatus. The user operates the UI to instruct operations such as login, copying, scanning, printer, and FAX.

画像処理装置にユーザがログインしようとしたとき、画像処理装置は、ログインユーザを特定する情報をデータサーバにアクセスして取得し、画像処理装置内の記憶手段(HDD、メモリ等)に格納するものとする。この格納により、ログインが完了する。尚、データサーバは、図示していないが、画像処理装置と電気的に接続されるログイン管理サーバのことである。なお、ユーザを特定する情報のことを本実施例等ではユーザ情報と称する。例えば、ユーザIDやユーザの名前などがこのユーザ情報に含まれる。また、ユーザを間接的に特定する情報も、ユーザを特定する情報である。例えば、複写時刻や、複写を行う画像処理装置の機体番号なども、ユーザを間接的に特定する情報である。なぜなら、複写時刻や画像処理装置の機体番号がわかれば、誰が複写指示を行ったかわかる事があるためである。トレース機能ではこのユーザ情報をコードに埋め込んでいる。   When the user attempts to log in to the image processing apparatus, the image processing apparatus acquires information specifying the login user by accessing the data server and stores it in storage means (HDD, memory, etc.) in the image processing apparatus And This storage completes login. Although not shown, the data server is a login management server that is electrically connected to the image processing apparatus. In addition, the information which specifies a user is called user information in a present Example etc. For example, the user ID and the user name are included in the user information. In addition, information that indirectly identifies the user is also information that identifies the user. For example, the copy time and the machine number of the image processing apparatus that performs copying are also information that indirectly specifies the user. This is because if the copy time and the machine number of the image processing apparatus are known, it may be known who made the copy instruction. The trace function embeds this user information in the code.

またユーザが画像処理装置で複写指示を行った時に、原稿に埋め込まれたコードを読み取り、複写禁止属性を持っていれば複写動作を行わない。ジョブロック機能では、コードに埋め込まれた禁止属性を利用している。また複写に限らず、FAX、スキャンといった動作にも禁止属性は有効である。   Further, when the user gives a copy instruction with the image processing apparatus, the code embedded in the original is read, and if the user has a copy prohibiting attribute, the copying operation is not performed. The job lock function uses a prohibited attribute embedded in the code. The prohibited attribute is effective not only for copying but also for operations such as FAX and scanning.

ここからユーザの実際の操作を記載しつつ画像処理装置の動作を説明する。
図1は、画像処理装置の読取装置に原稿を設置して複写指示を行った時の画像処理装置を制御するプロセッサの処理フローを示す。重要となるステップはS102〜S106である。
The operation of the image processing apparatus will now be described while describing the actual operation of the user.
FIG. 1 shows a processing flow of a processor that controls an image processing apparatus when a document is placed in a reading apparatus of the image processing apparatus and a copy instruction is issued. The important steps are S102 to S106.

ステップS100では、画像処理装置の読取装置に置かれた原稿の複写の指示がログインユーザから画像処理装置に対して行われる。そしてそしてステップS101へ移行する。(S100)
ステップS101では、画像処理装置は読取装置を用いて原稿の読み取りを1ページ分行い、その1ページ分の画像データを画像メモリへ保存する。画像メモリには原稿サイズ検出センサにより決定された原稿幅かユーザに指示された原稿幅に合わせた画像データが保存されるか読み取りセンサ全幅に合わせた画像データが保存される。それは場合により、適したケースに合った方が選択される。圧板読み取りかADF読み取りかはユーザにより指示される。そしてステップS102へ移行する。(S101)
ステップS102では、画像処理装置は読取装置のADFから読み取ったか、原稿台から読み取ったかの判定を行う。通常はステップS100でADFに原稿が挿入されたことをセンサで検出するとADFからの読み取りと判断しステップS103へ移行する。ADFに原稿が挿入されたことを検出できないと原稿台からの読み取りと判断しステップS104へ移行する。(S102)
ステップS103では、ADF読み取りに応じたコード検出領域を設定する。コード検出領域について説明する。図2は、ADF読み取り時のコード検出領域の一例を示している。原稿200内の4隅のいずれか1ヶ所にコード205が配置されている。検出を容易にするためにコードは規定で端部30mm以内の位置に配置されている。そして検出領域はマージンを持たせて原稿4隅の端部40mm以内とする事が望ましいとする。ここでADF読み取り時では、コード検出領域を4隅とも201,202,203,204のように規定通り端部から40mm以内と設定する。ADF読み取りの時、ADF内の原稿サイズ検出センサにより決定された原稿サイズに対してコード検出領域が設定される。そしてステップS106へ移行する。(S103)
ステップS104では、圧板読み取りに応じたコード検出領域を設定する。図3は、圧板読み取り時のコード検出領域の一例を示している。原稿300内の4隅のいずれか1ヶ所にコード305が配置されている。検出を容易にするためにコードは規定で端部30mm以内の位置に配置されている。そして検出領域はマージンを持たせて原稿4隅の端部40mm以内とする事が望ましいとする。ここで圧板読み取り時では、コード検出領域を4隅とも301,302,303,304のように規定より+20mm広げて端部から60mm以内と設定する。圧板読み取りでは人手で原稿を設置するので、原稿がずれた結果、コード305がコード検出領域から外れやすいため、ここでコード検出領域をADF読み取り時より広げている。広げることでコードが検出できない事態を回避しやすくなる。圧板読み取りの時、原稿台内の原稿サイズ検出センサにより決定された原稿サイズあるいはユーザが指示した原稿サイズに対してコード検出領域が設定される。そしてステップS106へ移行する。また別の実施例では図2に示すコード検出領域とは違う設定を行うが、後に説明する。(S104)
ステップS106では、画像処理装置は上記ステップS103あるいはS104で設定したコード検出領域に対して、画像データに含まれているコードを検出する画像処理を行う。コードの検出アルゴリズムは公知であるのでここには記載しない。そして検出した結果とコードの内容をメモリに保存する。ここで圧板読み取り時はコード検出領域をADF読み取り時より広げているのでコードが検出できない事態を回避しやすくなる。広げた面積分だけコード検出の画像処理時間が増加するが、圧板読み取りでは人手で原稿を1枚づつ交換するので、処理時間の増加は問題とならない。ここでADF読み取り時は機械で原稿を搬送するのでコード検出領域とコードの位置がずれることは少なく、問題となる事は少ない。そしてADF読み取り時はコード検出領域(検知対象領域)が規定通りなので、コード検出の画像処理時間は増加せず、ADFの読み取り速度の低下を招かずに読み取りを継続することができる。そしてステップS107へ移行する。(S106)
ステップS107では、画像処理装置は画像データ(画像データとは、読取手段による読取結果のことである。読取結果という言葉には、読取ったまさにその結果だけでなく、その結果に対して画像処理を施したものも含まれる。)内にコードを検出したか否かを判断する処理を行う。コードを検出した場合、ステップS108に移行する。コードを検出できなかった場合、ステップS109に移行する。(S107)
ステップS108では、ステップS106で検出したコードを、画像処理装置が復号化する。これにより、ジョブロック、トレース機能に必要なコードに含まれる情報が得られる事になる。そして、この得られた情報を記憶部に格納する。そしてステップS109に移行する。(S108)
ステップS109では、画像処理装置は検出されたコードの有無とその情報に基づき処理を行う。画像処理装置に対するジョブロック機能が有効になっており、複写禁止を示すコードが検出されれば、装置はユーザに指示された複写動作を中止する。画像処理装置が複写禁止を示すコードを検出できなかった時や複写可能を示すコードを検出した時は、複写可と判断し、複写動作を継続する。また画像処理装置に対するトレース機能が有効になっており、誰が作成した、誰が複写した紙媒体かというユーザ情報を示すコードが検出されれば現在ログインしているユーザ情報を埋め込んだコードを新たに符号化で生成する。そして新たに生成したコードを紙媒体に埋め込む処理を複写時に行う。1ページづつ記録するか、記録用画像データを全ページ分作成し保存しておきまとめてプリントするかは画像処理装置の設定あるいは適切と判断した方で処理する。そしてステップS110へ移行する。(S109)
ステップS111では、画像処理装置はADF読み取りの時、ADF内のセンサにより次に読み取るべき次ページがあるかを判定する。圧板読み取りの時、ユーザにUIで次に読み取るべき次ページがあるかを問い合わせて、操作の結果で判定する。読み取るべき次ページがある時はステップS101へ戻る。読み取るべき次ページがない時はステップS111へ移行する。(S110)
ステップS110では、画像処理装置は一連の動作の終了処理を行う。記録用画像データを複写する時はプリントを行い、複写禁止と判定された時は複写を中止する。そして画像処理装置は待機状態へと遷移する。(S111)
上記の例では、画像処理装置で原稿を複写したときに、プリントされることを想定している。コンピュータでコードを検出する画像処理を実施している場合、装置が直接読み取りとプリントを行う事は無いが、コード検出の処理は同じであるため、本実施例は複写機、MFP、スキャナーに限られないのは言うまでもない。
In step S100, an instruction to copy a document placed on the reading device of the image processing apparatus is issued from the login user to the image processing apparatus. Then, the process proceeds to step S101. (S100)
In step S101, the image processing apparatus reads one page of the document using the reading device, and stores the image data for the one page in the image memory. The image memory stores image data that matches the document width determined by the document size detection sensor or the document width specified by the user, or image data that matches the entire width of the reading sensor. In some cases, the one that fits the appropriate case is selected. The user instructs whether to read the pressure plate or ADF. Then, the process proceeds to step S102. (S101)
In step S102, the image processing apparatus determines whether reading is performed from the ADF of the reading apparatus or reading from the document table. Normally, when a sensor detects that a document has been inserted into the ADF in step S100, it is determined that reading from the ADF is performed, and the process proceeds to step S103. If it cannot be detected that a document has been inserted into the ADF, it is determined that the document is read from the document table, and the process proceeds to step S104. (S102)
In step S103, a code detection area corresponding to ADF reading is set. The code detection area will be described. FIG. 2 shows an example of a code detection area at the time of ADF reading. A code 205 is arranged at any one of four corners in the document 200. In order to facilitate the detection, the cord is stipulated and located at a position within 30 mm of the end. The detection area is preferably within 40 mm at the end of the four corners of the document with a margin. Here, at the time of ADF reading, the code detection areas are set to be within 40 mm from the end as prescribed, such as 201, 202, 203, 204 at all four corners. At the time of ADF reading, a code detection area is set for the document size determined by the document size detection sensor in the ADF. Then, the process proceeds to step S106. (S103)
In step S104, a code detection area corresponding to the pressure plate reading is set. FIG. 3 shows an example of the code detection area at the time of reading the pressure plate. A code 305 is arranged at any one of four corners in the document 300. In order to facilitate the detection, the cord is stipulated and located at a position within 30 mm of the end. The detection area is preferably within 40 mm at the end of the four corners of the document with a margin. Here, at the time of reading the pressure plate, the code detection areas are set to be within 20 mm from the end by widening +20 mm from the regulation, such as 301, 302, 303, and 304 at the four corners. Since the manuscript is manually set in the pressure plate reading, the code 305 is easily detached from the code detection area as a result of the deviation of the manuscript. Therefore, the code detection area is made wider than that at the time of ADF reading. By spreading it, it becomes easier to avoid the situation where the code cannot be detected. When the platen is read, a code detection area is set for the document size determined by the document size detection sensor in the document table or the document size designated by the user. Then, the process proceeds to step S106. In another embodiment, setting different from the code detection area shown in FIG. 2 is performed, which will be described later. (S104)
In step S106, the image processing apparatus performs image processing for detecting a code included in the image data for the code detection region set in step S103 or S104. The code detection algorithm is well known and will not be described here. Then, the detected result and the content of the code are stored in the memory. Here, since the code detection area is wider when reading the pressure plate than when reading the ADF, it is easy to avoid a situation where the code cannot be detected. The code processing image processing time increases by the expanded area. However, when the platen is read, the manuscripts are manually replaced one by one, so that the processing time does not increase. Here, when the ADF is read, since the document is conveyed by the machine, the position of the code detection area and the code is less likely to be shifted, and there is little problem. When the ADF is read, the code detection area (detection target area) is as prescribed, so that the image processing time for code detection does not increase, and the reading can be continued without causing a decrease in the reading speed of the ADF. Then, control goes to a step S107. (S106)
In step S107, the image processing apparatus displays image data (the image data is a result of reading by the reading unit. The word “reading result” includes not only the result of reading but also image processing for the result. (Including those that have been applied.)) A process for determining whether or not a code has been detected is performed. If a code is detected, the process proceeds to step S108. If the code cannot be detected, the process proceeds to step S109. (S107)
In step S108, the image processing apparatus decodes the code detected in step S106. As a result, information included in the code necessary for the job block and the trace function can be obtained. Then, the obtained information is stored in the storage unit. Then, control goes to a step S109. (S108)
In step S109, the image processing apparatus performs processing based on the presence / absence of the detected code and its information. If the job block function for the image processing apparatus is enabled and a code indicating copy prohibition is detected, the apparatus stops the copying operation instructed by the user. When the image processing apparatus cannot detect a code indicating that copying is prohibited or detects a code indicating that copying is possible, it determines that copying is possible and continues the copying operation. In addition, if the trace function for the image processing apparatus is enabled and a code indicating user information such as who created and who copied the paper medium is detected, a code in which the currently logged-in user information is embedded is newly encoded. Generate by conversion. A process of embedding the newly generated code in a paper medium is performed at the time of copying. Whether to record one page at a time or to create, save and print the recording image data for all pages is processed according to the setting of the image processing apparatus or the one judged appropriate. Then, the process proceeds to step S110. (S109)
In step S111, at the time of ADF reading, the image processing apparatus determines whether there is a next page to be read next by a sensor in the ADF. When reading the pressure plate, the user is inquired whether there is a next page to be read next through the UI, and is determined based on the operation result. When there is a next page to be read, the process returns to step S101. When there is no next page to be read, the process proceeds to step S111. (S110)
In step S110, the image processing apparatus performs a series of operation end processing. Printing is performed when copying image data for recording, and copying is stopped when it is determined that copying is prohibited. Then, the image processing apparatus transitions to a standby state. (S111)
In the above example, it is assumed that the document is printed when the document is copied by the image processing apparatus. When image processing for code detection is performed by a computer, the device does not directly read and print, but the code detection processing is the same, so this embodiment is limited to copying machines, MFPs, and scanners. Needless to say, you can't.

図4を用いた本実施例の説明にあたっては、図1と異なる処理(S104の処理)についてのみ説明を行う。本実施例では、図1に示すプロセッサの処理フローと同じフローであるが、コード検出領域の設定に関する処理を変更した。   In the description of the present embodiment using FIG. 4, only the processing different from that in FIG. 1 (the processing in S104) will be described. In this embodiment, the processing flow is the same as the processing flow of the processor shown in FIG. 1, but the processing related to the setting of the code detection area is changed.

図4は圧板読み取り時の非対称コード検出領域とADF読み取り時のコード検出領域の一例を示す図である。   FIG. 4 is a diagram illustrating an example of an asymmetric code detection area at the time of reading a pressure plate and a code detection area at the time of reading an ADF.

実施例2のステップS104では、画像処理装置は圧板読み取り時のコード検出領域を設定する。ユーザがA4原稿の圧板読みを指示したあるいは原稿台内の原稿サイズ検出センサがA4サイズを検出したとする。原稿が正規の位置414に設置されていれば、コード検出領域は410,411,412,413のようにADF読み取り時と同じでも検出できる。しかし原稿が副走査方向下流側(この図では405,406の方向)へ20mmずれて人手で設置された場合を想定する。するとコードの検出領域も20mm広げてやる事でコードを検出できる。この図では405,406,404,407の斜線部分を広げた検出領域としてやればよい。コードを検出する事を重要視して、同様に副走査側上流や主走査方向上流(この図では端部415の方向)や主走査下流あるいは斜め方向にずれる可能性を含めて考えると、コード検出領域を401,402,403,404と非対称に設定する。この例ではコード検出領域401は60x60mm,402は80x60mm,403は80x60mm,404は60x60mmとなる。なお圧板の原稿ガイド部材408,409の部分は、読み取りセンサでは読み取りができないため広げる対象とはしない。圧板読み取り時に広げるコード検出領域は、想定原稿サイズとADF読み取り時の規定領域と規定領域を何mm長くするかの設定値と原稿ガイド部材より算出することができる。このようにコード検出領域の内、複数のコード検出領域面積を異ならせる事で、よりコード検出できる可能性が高くなる。
それ以外の処理は実施例1と同じであるため説明を省略する。
In step S104 of the second embodiment, the image processing apparatus sets a code detection area when reading the pressure plate. Assume that the user instructs the A4 original to read the pressure plate, or the original size detection sensor in the original table detects the A4 size. If the document is placed at the regular position 414, the code detection area can be detected even when reading the ADF, such as 410, 411, 412 and 413. However, it is assumed that the document is manually placed with a displacement of 20 mm downstream in the sub-scanning direction (directions 405 and 406 in this figure). Then, the code can be detected by expanding the code detection area by 20 mm. In this figure, it suffices to perform the detection region with the hatched portions 405, 406, 404, and 407 widened. If importance is attached to the detection of the code, similarly, considering the possibility of shifting to the sub-scanning side upstream, the main scanning direction upstream (the direction of the end 415 in this figure), the main scanning downstream, or the diagonal direction, The detection area is set asymmetrically with 401, 402, 403, and 404. In this example, the code detection area 401 is 60 × 60 mm, 402 is 80 × 60 mm, 403 is 80 × 60 mm, and 404 is 60 × 60 mm. Note that the portions of the original plate guide members 408 and 409 of the pressure plate are not to be expanded because they cannot be read by the reading sensor. The code detection area to be expanded at the time of reading the pressure plate can be calculated from an assumed original size, a specified area at the time of ADF reading, a setting value for how long the specified area is to be lengthened, and an original guide member. In this way, by making the areas of the plurality of code detection areas different from each other in the code detection area, the possibility of more code detection becomes higher.
Since other processes are the same as those in the first embodiment, description thereof is omitted.

図5を用いた本実施例の説明にあたっては、図1と異なる処理(S104の処理)についてのみ説明を行う。本実施例では、図1に示すプロセッサの処理フローと同じフローであるが、コード検出領域の設定に関する処理を変更した。   In the description of the present embodiment using FIG. 5, only the processing different from that in FIG. 1 (processing in S <b> 104) will be described. In this embodiment, the processing flow is the same as the processing flow of the processor shown in FIG. 1, but the processing related to the setting of the code detection area is changed.

図5は圧板読み取り時の非対称コード検出領域の一例を示す図である。
実施例3のステップS104では、画像処理装置は圧板読み取り時のコード検出領域を設定する。ユーザがA4R原稿の圧板読みを指示したあるいは原稿台内の原稿サイズ検出センサがA4Rサイズを検出したとする。原稿が正規の位置511に設置されていれば、コード検出領域は505,506,507,508のようにADF読み取り時と同じでも検出できる。しかし原稿が副走査方向下流側へ20mmずれて人手で設置された場合を想定する。するとコードの検出領域も20mm広げてやる事でコードを検出できる。この図では501,502,503,504を広げた検出領域としてやればよい。コードを検出する事を重要視して、コード検出領域を501,502,503,504と非対称に設定する。この例ではコード検出領域501は60x60mm,502は80x60mm,503は80x80mm,504は60x80mmとなる。なお圧板の原稿ガイド部材509,510の部分は、読み取りセンサでは読み取りができないため広げる対象とはしない。広げるコード検出領域は、想定原稿サイズとADF読み取り時の規定領域と規定領域を何mm長くするかの設定値と原稿ガイド部材より算出することができる。このようにコード検出領域の内、複数のコード検出領域面積を異ならせる事で、よりコード検出できる可能性が高くなる。
それ以外の処理は実施例1と同じであるため説明を省略する。
FIG. 5 is a diagram showing an example of the asymmetric code detection area at the time of reading the pressure plate.
In step S104 of the third embodiment, the image processing apparatus sets a code detection area at the time of reading the pressure plate. Assume that the user instructs the A4R original to read the pressure plate, or the original size detection sensor in the original table detects the A4R size. If the original is placed at the regular position 511, the code detection area can be detected even when the ADF is read, such as 505, 506, 507, and 508. However, it is assumed that the document is manually placed with a displacement of 20 mm downstream in the sub-scanning direction. Then, the code can be detected by expanding the code detection area by 20 mm. In this figure, the detection areas 501, 502, 503, and 504 may be expanded. The code detection area is set asymmetrically as 501, 502, 503, and 504 with an emphasis on detecting the code. In this example, the code detection area 501 is 60 × 60 mm, 502 is 80 × 60 mm, 503 is 80 × 80 mm, and 504 is 60 × 80 mm. Note that the document guide members 509 and 510 of the pressure plate are not to be expanded because they cannot be read by the reading sensor. The code detection area to be expanded can be calculated from an assumed original size, a prescribed area at the time of ADF reading, a set value of how long the prescribed area is to be lengthened, and an original guide member. In this way, by making the areas of the plurality of code detection areas different from each other in the code detection area, the possibility of more code detection becomes higher.
Since other processes are the same as those in the first embodiment, description thereof is omitted.

図6、7、8、10を用いた本実施例の説明にあたっては、図1と異なる処理(S103の処理)(S106の処理)についてのみ説明を行う。本実施例では、図1に示すプロセッサの処理フローと同じフローであるが、コード検出領域の設定、検出に関する処理を変更した。   In the description of the present embodiment using FIGS. 6, 7, 8, and 10, only the process (the process of S <b> 103) (the process of S <b> 106) different from FIG. 1 will be described. In this embodiment, the processing flow is the same as the processing flow of the processor shown in FIG. 1, but the processing related to the setting and detection of the code detection area is changed.

図6は原稿混載モードでA4R原稿を上側に寄せたADF読み取り時のコード検出領域の一例を示す図である。図7は原稿混載モードでA4R原稿を下側に寄せたADF読み取り時のコード検出領域の一例を示す図である。図8は原稿混載モードのADF読み取り時のコード検出領域の一例を示す図である。図10は原稿混載モードのフローチャートを示す図である。   FIG. 6 is a diagram showing an example of a code detection area at the time of ADF reading in which the A4R original is moved upward in the original mixed mode. FIG. 7 is a diagram showing an example of a code detection area at the time of ADF reading in which the A4R original is moved downward in the original mixed mode. FIG. 8 is a diagram showing an example of a code detection area at the time of ADF reading in the original mixed mode. FIG. 10 is a flowchart showing the original mixed mode.

実施例4におけるステップS103は、図10に示すステップS1001から始まるより細かい分岐に処理を置き換える。   In step S103 in the fourth embodiment, the processing is replaced with a finer branch starting from step S1001 shown in FIG.

まずステップS102でADF読み取りと判定されると、ステップS103に移行するのであるが、実施例4ではステップS1001に移行して、実施例4に特徴的な処理が開始される。そしてステップS1002へ移行する。(S1001)
ステップS1002では、画像処理装置はユーザに原稿混載モードが指示されたかにより処理を分岐させる。原稿混載モードでなければステップS1003へ移行する。原稿混載モードであればステップS1004へ移行する。(S1002)
ステップS1003では、画像処理装置は以前と同じ従来例1〜3に示すADF読みに応じた検出領域を設定する。そしてステップS1007へ移行する。(S1003)
ステップS1004では、画像処理装置は原稿サイズ及び読み取りセンサに対する位置が検出できたかを判定する。例えばA3原稿とA4R原稿をADFに混載した時、図6に示すようにA4R原稿が上側に設置された場合と図7に示すようにA4R原稿が下側に設置された場合を例に取る。画像処理装置がこの区別をつける事ができるならA4R原稿を読み取った時に、図6の場合はコード検出領域を601,605,606,607に設定すれば良い。そして図7の場合はコード検出領域を701,702,703,604に設定すれば良い。画像処理装置は原稿サイズ及び読み取りセンサに対する位置が検出できた時とは、言い換えると原稿を寄せる側として上側と下側の区別がついている事を指している。そしてこの検出ができた時はステップS1006へ移行する。そして主走査方向の原稿サイズ検出センサが少ないなどの理由で検出できない時はステップS1005へ移行する。(S1004)
ステップS1005では、画像処理装置は可能性のある原稿サイズ及び位置に応じた検出領域を設定する。先ほど述べたように主走査方向のどの位置に原稿が配置されているかが検出できていないので、読み取りセンサ全幅の画像に対して図8に示すように601,605,606,607,701,702,703,604の8ヶ所のコード検出領域を設定する。ここで原稿の長さは検出できているので上記8ヶ所を検出領域とする。そしてステップS1007へ移行する。(S1005)
ステップS1006では、画像処理装置は原稿サイズに応じた検出領域を設定する。先ほど述べたように原稿サイズが検出できているので、読み取った原稿がA4Rの上側寄せであれば図6に示すようにコード検出領域を601,605,606,607に設定する。A4Rの下側寄せであれば図7に示すようにコード検出領域を701,702,703,604に設定する。A3であれば図6に示すようにコード検出領域を601,602,603,604に設定する。そしてステップS1007へ移行する。(S1006)
ステップS1007では、元の図1のステップS106のフローへ戻る。(S1007)
そしてステップS106で異なるのは、ステップS1005を経由した時だけ、コードを検出できた箇所から逆算してA4R原稿が上側あるいは下側に寄せているかを判定して以後の処理を行う点にある。
その他の処理は実施例1と同じであるので説明を省略する。
First, when it is determined in step S102 that the ADF is read, the process proceeds to step S103. In the fourth embodiment, the process proceeds to step S1001, and processing characteristic of the fourth embodiment is started. Then, control goes to a step S1002. (S1001)
In step S1002, the image processing apparatus branches the process depending on whether the user has instructed the document mixed mode. If it is not the original mixed mode, the process proceeds to step S1003. If it is the original mixed mode, the process proceeds to step S1004. (S1002)
In step S1003, the image processing apparatus sets a detection region corresponding to the ADF reading shown in the conventional examples 1 to 3 as before. Then, control goes to a step S1007. (S1003)
In step S1004, the image processing apparatus determines whether the document size and the position with respect to the reading sensor have been detected. For example, when an A3 original and an A4R original are mixedly loaded on the ADF, the case where the A4R original is placed on the upper side as shown in FIG. 6 and the case where the A4R original is placed on the lower side as shown in FIG. If the image processing apparatus can make this distinction, the code detection area may be set to 601, 605, 606, and 607 in the case of FIG. In the case of FIG. 7, the code detection area may be set to 701, 702, 703, and 604. When the image processing apparatus can detect the document size and the position with respect to the reading sensor, in other words, it means that the upper side and the lower side are distinguished as the side on which the document is moved. When this detection is completed, the process proceeds to step S1006. If it cannot be detected because the number of document size detection sensors in the main scanning direction is small, the process proceeds to step S1005. (S1004)
In step S1005, the image processing apparatus sets a detection area according to a possible document size and position. As described above, since it is not possible to detect at which position in the main scanning direction the document is arranged, as shown in FIG. 8, 601, 605, 606, 607, 701, 702 for the image of the full width of the reading sensor. , 703, 604 are set at eight code detection areas. Here, since the length of the original has been detected, the above eight positions are set as detection areas. Then, control goes to a step S1007. (S1005)
In step S1006, the image processing apparatus sets a detection area according to the document size. Since the document size can be detected as described above, the code detection area is set to 601, 605, 606, and 607 as shown in FIG. If the A4R is shifted downward, the code detection area is set to 701, 702, 703, 604 as shown in FIG. If A3, the code detection area is set to 601, 602, 603, 604 as shown in FIG. Then, control goes to a step S1007. (S1006)
In step S1007, the process returns to the original flow of step S106 in FIG. (S1007)
The difference in step S106 is that only after passing through step S1005, it is determined whether the A4R document is moved upward or downward by performing backward calculation from the position where the code can be detected, and the subsequent processing is performed.
Since other processes are the same as those in the first embodiment, description thereof is omitted.

図9を用いた本実施例の説明にあたっては、図1に追加された処理(S907とS913〜S917の処理)についてのみ説明を行う。コードを検出できなかった時のコード検出領域の再設定に関する処理を追加した。   In the description of the present embodiment using FIG. 9, only the processing added to FIG. 1 (the processing of S907 and S913 to S917) will be described. Added a process for resetting the code detection area when a code could not be detected.

図9は実施例5のフローチャートを示す図である。
実施例5のステップS900は実施例1のステップS100に対応し同じである。同様にステップS901はS101、S902はS102、S903はS103、S904はS104、S906はS106、S908はS108、S909はS109、S910はS110、S911はS111に対応し同じである。
FIG. 9 is a flowchart illustrating the fifth embodiment.
Step S900 of the fifth embodiment corresponds to step S100 of the first embodiment and is the same. Similarly, step S901 corresponds to S101, S902 corresponds to S102, S903 corresponds to S103, S904 corresponds to S104, S906 corresponds to S106, S908 corresponds to S108, S909 corresponds to S109, S910 corresponds to S110, and S911 corresponds to S111.

ステップS907は少し分岐が異なるので、S907から説明する。
ステップS907では、画像処理装置は画像データ内にコードを検出したか否かを判断する処理を行う。コードを検出した場合、ステップS908に移行する。コードを検出できなかった場合、ステップS913に移行する。(S907)
ステップS913では、画像処理装置は原稿サイズ検出センサ出力に基づき可能性の高い原稿サイズ候補を列挙する。例えばADF読みでA4RかB5Rサイズか確定できなかった場合や圧板読みでユーザの指示が自動検出でA4RかB5Rサイズか確定できない場合を考える。すると画像処理装置は原稿サイズ候補を第1候補はA4R、第2候補はB5R、最終候補は読み取りセンサ全面サイズあるいは原稿全面サイズと設定する。圧板読み取りの時は最終候補は読み取りセンサ全面サイズとする。ADF読み取りの時、最終候補は原稿全面サイズと設定する。そしてステップS914へ移行する。(S913)
ステップS914では、画像処理装置は次に可能性の高い原稿サイズ候補に応じたコード検出領域を設定する。この例では最初に第1候補A4Rサイズの原稿4隅端部に対してコード検出領域が設定される。実施例1で説明したようにADF読み取りか圧板読み取りかによりコード検出領域は異なる。もし第1候補で検出できなかった時は第2候補B5Rサイズの原稿4隅端部に対してコード検出領域が設定される。もし第2候補でも検出できなかった時は最終候補の読み取りセンサ全面サイズに対してコード検出領域が設定される。最終候補の時は読み取った画像データ全面に対してコード検出を行うため処理時間が長くなるが、確実に検出するためである。そしてステップS915へ移行する。(S914)
ステップS915では、画像処理装置は上記ステップS914で設定したコード検出領域に対して、画像データに含まれているコードを検出する画像処理を行う。そして検出した結果とコードの内容をメモリに保存する。そしてステップS916へ移行する。(S915)
ステップS916では、画像処理装置は画像データ内にコードを検出したか否かを判断する処理を行う。コードを検出した場合、ステップS908に移行する。コードを検出できなかった場合、ステップS917に移行する。(S916)
ステップS917では、画像処理装置は最終の原稿サイズ候補までコード検出を試みたかを判断する処理を行う。この例では第1候補で検出できなかった時は第2候補があるのでステップS914へ移行する。第2候補で検出できなかった時は最終候補があるのでステップS914へ移行する。最終候補で検出できなかった時は次の候補は無いためステップS917へ移行する。(S917)
実施例5では、原稿検出センサの出力に基づき可能性の高い原稿サイズ順にコード検出を行い、圧板読み取りの時最後は読み取りセンサ全面サイズで、ADF読み取りの時最後は原稿全面サイズで検出を試みる。そのためコード検出できる可能性が高くなる。それ以外の処理は実施例1と同じであるため説明を省略する。
Step S907 is slightly different from the branch, and will be described from S907.
In step S907, the image processing apparatus performs a process of determining whether a code is detected in the image data. If a code is detected, the process proceeds to step S908. If the code cannot be detected, the process proceeds to step S913. (S907)
In step S913, the image processing apparatus enumerates document size candidates with high possibility based on the output of the document size detection sensor. For example, consider a case where the A4R or B5R size cannot be determined by ADF reading or a case where the user's instruction cannot be determined by automatic detection by the pressure plate reading. Then, the image processing apparatus sets the document size candidate as the first candidate as A4R, the second candidate as B5R, and the final candidate as the entire size of the reading sensor or the entire document size. When reading the pressure plate, the final candidate is the entire size of the reading sensor. At the time of ADF reading, the final candidate is set to the entire document size. Then, control goes to a step S914. (S913)
In step S914, the image processing apparatus sets a code detection area corresponding to the next most likely document size candidate. In this example, a code detection area is first set for the four corners of the first candidate A4R document. As described in the first embodiment, the code detection area differs depending on whether the ADF reading or the pressure plate reading is performed. If the first candidate cannot be detected, a code detection area is set for the corner of the four corners of the second candidate B5R document. If even the second candidate cannot be detected, a code detection area is set for the entire size of the reading sensor of the final candidate. This is because when the final candidate is selected, code detection is performed on the entire surface of the read image data, which increases the processing time, but ensures detection. Then, control goes to a step S915. (S914)
In step S915, the image processing apparatus performs image processing for detecting a code included in the image data with respect to the code detection area set in step S914. Then, the detected result and the content of the code are stored in the memory. Then, control goes to a step S916. (S915)
In step S916, the image processing apparatus performs processing for determining whether a code is detected in the image data. If a code is detected, the process proceeds to step S908. If the code cannot be detected, the process proceeds to step S917. (S916)
In step S917, the image processing apparatus performs processing to determine whether code detection has been attempted up to the final document size candidate. In this example, when the first candidate cannot be detected, the second candidate exists, and the process proceeds to step S914. When the second candidate cannot be detected, there is a final candidate, and the process proceeds to step S914. If the final candidate cannot be detected, there is no next candidate and the process moves to step S917. (S917)
In the fifth embodiment, codes are detected in the order of the most likely document size based on the output of the document detection sensor. At the end of reading the pressure plate, detection is performed with the entire size of the reading sensor, and when reading with ADF, the detection is attempted with the entire size of the document. Therefore, the possibility that the code can be detected increases. Since other processes are the same as those in the first embodiment, description thereof is omitted.

図11を用いた本実施例の説明にあたっては、図1に追加された処理(S1107とS1112〜S1116の処理)についてのみ説明を行う。コード検出領域の学習機能に関する処理を追加した。   In the description of the present embodiment using FIG. 11, only the processing added to FIG. 1 (the processing of S1107 and S1112-S1116) will be described. Added processing related to the learning function of the code detection area.

図11は実施例6のフローチャートを示す図である。
実施例6のステップS1100は実施例1のステップS100に対応し同じである。同様にステップS1101はS101、S1102はS102、S1103はS103、S1104はS104、S1106はS106、S1108はS108、S1109はS109、S1110はS110に対応し同じである。またS1111はS111に対応し同じである。
FIG. 11 is a flowchart illustrating the sixth embodiment.
Step S1100 of the sixth embodiment corresponds to step S100 of the first embodiment and is the same. Similarly, step S1101 corresponds to S101, S1102 corresponds to S102, S1103 corresponds to S103, S1104 corresponds to S104, S1106 corresponds to S106, S1108 corresponds to S108, S1109 corresponds to S109, and S1110 corresponds to S110. S1111 corresponds to S111 and is the same.

ステップS1107は少し分岐が異なるので、S1107から説明する。
ステップS1107では、画像処理装置は画像データ内にコードを検出したか否かを判断する処理を行う。コードを検出した場合、ステップS1112に移行する。コードを検出できなかった場合、ステップS1115に移行する。(S1107)
ステップS1112では、画像処理装置はコードを検出した座標を記憶する。図12はコード検出座標とコード検出領域座標の関係を示す図である。ここではコード1202を検出した隅の端部1205から一番遠くなるコード座標(主走査方向1207、副走査方向1206)を記憶する。コード1202が端部1205に近い時は図12(a)のようになり、コード1202が端部1205より遠い時は図12(b)のようになる。そしてステップS1113に移行する。(S1112)
ステップS1113では、画像処理装置は現在の設定された検出領域座標−コード検出座標>しきい値であるかを判定する。ここでは検出した隅の端部1205からのコード検出領域の距離を、現在の設定された検出領域座標とする。すると図12(a)を使って説明すると主走査方向は1204、副走査方向は1203が現在の設定された検出領域座標となる。そして主走査方向の現在の設定された検出領域座標1204−コード検出座標1206を算出してしきい値より大きいかを判定する。上記しきい値はある一定値や設定した値を用い、例えば0.5mmの距離に相当する値とする。また副走査方向の現在の設定された検出領域座標1203−コード検出座標1207を算出してしきい値より大きいかを判定する。両方ともしきい値より大きいと判定された時はステップS1114に移行する。そうでないと判定された時は、ステップS1108に移行する。ステップS1108に移行する時は、図12(b)に示すように現在の設定された検出領域は、コードが打たれた位置に対してマージンが無いため、コード検出領域を狭める事ができないと判定されたという事である。(S1103)
ステップS1114では、画像処理装置は現在の設定された検出領域を小さくする。言い換えると図12(a)のように、現在の設定された検出領域は、コードが打たれた位置よりも大きすぎるため、コード検出領域を狭めても問題なく検出できると判定されたという事である。現在の設定された検出領域を主走査方向分は1208、副走査方向分は1209の距離を小さくする。すると次回のコード検出は主走査方向が図12(a)中の1204−1208の距離で、副走査方向が1203−1209の距離で行われる。ここで小さくする距離1208、1209はある一定値や設定した値を用い、例えば0.5mmの距離にする、あるいはステップS1103で述べたしきい値と同じにしてもよい。そしてコード検出領域を学習によって狭めて画像処理に要する処理時間を短縮し、コード検出処理が装置の読み取りや複写の速度というパフォーマンスを低下させる要因となっている時に改善する事ができる。そしてステップS1108に移行する。(S1114)
ステップS1115では画像処理装置は検出領域を最終値まで大きくしたかを判定する。言い換えると画像処理装置はコードを検出できなかったので、コード検出領域をさらに大きくする余地があるかを判定する。もしコード検出領域が最終値まで大きくなっても検出できない時は、元々コードが存在しないか読み取りセンサの読み取り範囲外に存在するという事だから、これ以上の処理は行わずにステップS1109へ移行する。まだコード検出領域が最終値でない時は、コード検出領域を大きくすれば検出できる可能性があるという事だから、ステップS1116へ移行する。(S1115)
ステップS1116では、画像処理装置は現在の設定された検出領域を大きくする。図13は、コードがコード検出領域外にある事を示す図である。図13のように、現在の設定された検出領域1201は、コード1202が外側にあってコードが検出できなかったかもしれないので検出領域を広げる。現在の設定された検出領域1201の主走査方向1204と副走査方向1203にある値を加算する。ここで大きくする距離はある一定値や設定した値を用い、例えば0.5mmの距離にする、あるいはステップS1103で述べたしきい値と同じにしてもよい。そして段階的に検出領域1201を広げていく。そして何度かステップS1106で検出を試みても検出できなかった場合は検出領域を最終値まで大きくする。ここでの最終値はある値あるいは原稿全面あるいは読み取りセンサ全面画像を対象にする値である。段階的に検出領域を広げずに最初に最終値としても良い。検出領域を広げると画像処理時間が長くなるが、確実に検出するためである。そしてステップS1106へ移行する。(S1116)
実施例6では、学習機能によりコード検出領域を狭めて処理時間を短縮したり、広げてコード検出の可能性を高めたりする。それ以外の処理は実施例1と同じであるため説明を省略する。
Step S1107 is slightly different from the branch, and will be described from S1107.
In step S1107, the image processing apparatus performs a process of determining whether a code is detected in the image data. If a code is detected, the process proceeds to step S1112. If the code cannot be detected, the process proceeds to step S1115. (S1107)
In step S1112, the image processing apparatus stores the coordinates at which the code is detected. FIG. 12 is a diagram showing the relationship between code detection coordinates and code detection area coordinates. Here, the code coordinates (main scanning direction 1207, sub-scanning direction 1206) farthest from the end 1205 of the corner where the code 1202 is detected are stored. When the cord 1202 is close to the end portion 1205, it becomes as shown in FIG. 12A, and when the cord 1202 is far from the end portion 1205, it becomes as shown in FIG. Then, control goes to a step S1113. (S1112)
In step S1113, the image processing apparatus determines whether or not the currently set detection area coordinate−code detection coordinate> threshold. Here, the distance of the code detection area from the detected corner edge 1205 is set as the currently set detection area coordinates. Then, with reference to FIG. 12A, 1204 is the currently set detection area coordinates in the main scanning direction and 1203 is in the sub-scanning direction. Then, the currently set detection area coordinate 1204-code detection coordinate 1206 in the main scanning direction is calculated to determine whether it is larger than the threshold value. As the threshold value, a certain fixed value or a set value is used, for example, a value corresponding to a distance of 0.5 mm. Also, a currently set detection area coordinate 1203-code detection coordinate 1207 in the sub-scanning direction is calculated to determine whether it is larger than the threshold value. When it is determined that both are larger than the threshold value, the process proceeds to step S1114. If it is determined that this is not the case, the process proceeds to step S1108. When the process proceeds to step S1108, as shown in FIG. 12B, the currently set detection area has no margin with respect to the position where the code is hit, so it is determined that the code detection area cannot be narrowed. It is that it was done. (S1103)
In step S1114, the image processing apparatus reduces the currently set detection area. In other words, as shown in FIG. 12A, since the currently set detection area is too larger than the position where the code is struck, it is determined that it can be detected without any problem even if the code detection area is narrowed. is there. The currently set detection area is reduced by 1208 for the main scanning direction and 1209 for the sub-scanning direction. Then, the next code detection is performed at a distance of 1204-1208 in the main scanning direction and a distance of 1203-1209 in the sub-scanning direction in FIG. Here, the distances 1208 and 1209 to be reduced may be set to a certain value or a set value, for example, a distance of 0.5 mm, or the same as the threshold value described in step S1103. Then, the code detection area can be narrowed by learning to shorten the processing time required for image processing, and can be improved when the code detection process is a factor of reducing the performance of reading and copying of the apparatus. Then, control goes to a step S1108. (S1114)
In step S1115, the image processing apparatus determines whether the detection area has been enlarged to the final value. In other words, since the image processing apparatus could not detect the code, it is determined whether there is room for further enlargement of the code detection area. If no code can be detected even if the code detection area is increased to the final value, it means that the code originally does not exist or is outside the reading range of the reading sensor, and the process proceeds to step S1109 without further processing. If the code detection area is not yet the final value, it can be detected if the code detection area is enlarged, and the process proceeds to step S1116. (S1115)
In step S1116, the image processing apparatus enlarges the currently set detection area. FIG. 13 is a diagram showing that the code is outside the code detection area. As shown in FIG. 13, the currently set detection area 1201 is widened because the code 1202 may be outside and the code may not be detected. The values in the main scanning direction 1204 and the sub scanning direction 1203 of the currently set detection area 1201 are added. The distance to be increased here uses a certain fixed value or a set value, for example, a distance of 0.5 mm, or may be the same as the threshold value described in step S1103. Then, the detection area 1201 is expanded step by step. If detection is not possible even after several attempts at step S1106, the detection area is increased to the final value. The final value here is a certain value or a value for the entire image of the document or the entire image of the reading sensor. The final value may be set first without expanding the detection area step by step. This is because if the detection area is expanded, the image processing time becomes longer, but detection is performed reliably. Then, control goes to a step S1106. (S1116)
In the sixth embodiment, the code detection area is narrowed by the learning function to shorten the processing time, or widen to increase the possibility of code detection. Since other processes are the same as those in the first embodiment, description thereof is omitted.

以上、実施例1〜6では、各フローチャートにおける各ステップの処理が一台の装置で行われるものとして説明したが、各ステップの処理が、夫々、別の装置で行われても良いのは言うまでもない。   As described above, in the first to sixth embodiments, the processing of each step in each flowchart is described as being performed by one apparatus, but it goes without saying that the processing of each step may be performed by another apparatus. Yes.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (3)

原稿を読み取る読取手段と、
前記読取手段での読取結果からコードを検知する検知手段とを有する検知装置であって、
原稿の位置を固定とし照射位置を変化させることにより前記読取手段が原稿を読み取る場合には、照射位置を固定とし原稿の位置を変化させることにより前記読取手段が原稿を読み取る場合に比べて、
前記検知手段は、前記読取結果のうちのより広い領域を検知対象領域として前記コードを検知することを特徴とする検知装置。
Reading means for reading a document;
A detection device having detection means for detecting a code from a reading result of the reading means,
When the reading unit reads the document by fixing the position of the document and changing the irradiation position, compared to the case where the reading unit reads the document by changing the position of the document and fixing the irradiation position,
The detection unit detects the code with a wider area of the read result as a detection target area.
原稿を読み取る読取工程と、
前記読取工程での読取結果からコードを検知する検知工程とを有する検知装置の制御方法であって、
前記読取工程で原稿の位置を固定とし照射位置を変化させることにより原稿を読み取った場合には、前記読取工程で照射位置を固定とし原稿の位置を変化させることにより原稿を読み取った場合に比べて、
前記検知工程では、前記読取結果のうちのより広い領域を検知対象領域として前記コードを検知することを特徴とする検知装置の制御方法。
A reading process for reading a document;
A detection step of detecting a code from a reading result in the reading step,
When the original is read by fixing the position of the original in the reading process and changing the irradiation position, compared to the case of reading the original by changing the position of the original and fixing the irradiation position in the reading process. ,
In the detecting step, the code is detected using a wider area of the reading result as a detection target area.
請求項2に記載の検知装置の制御方法をコンピュータに実行させるためのプログラム。   The program for making a computer perform the control method of the detection apparatus of Claim 2.
JP2010003628A 2010-01-12 2010-01-12 Image processing apparatus, control method thereof, and program Expired - Fee Related JP5558844B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010003628A JP5558844B2 (en) 2010-01-12 2010-01-12 Image processing apparatus, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010003628A JP5558844B2 (en) 2010-01-12 2010-01-12 Image processing apparatus, control method thereof, and program

Publications (2)

Publication Number Publication Date
JP2011146759A true JP2011146759A (en) 2011-07-28
JP5558844B2 JP5558844B2 (en) 2014-07-23

Family

ID=44461255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010003628A Expired - Fee Related JP5558844B2 (en) 2010-01-12 2010-01-12 Image processing apparatus, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP5558844B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027243A (en) * 2007-07-17 2009-02-05 Fuji Xerox Co Ltd Image processor, image processing method, and image processing program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027243A (en) * 2007-07-17 2009-02-05 Fuji Xerox Co Ltd Image processor, image processing method, and image processing program

Also Published As

Publication number Publication date
JP5558844B2 (en) 2014-07-23

Similar Documents

Publication Publication Date Title
JP4164523B2 (en) Image processing system
JP5340234B2 (en) Apparatus, method and program
US8315424B2 (en) Image processing apparatus, image processing method, and program product
US8430330B1 (en) Apparatus handling codes, method for controlling the same and program
US20150222787A1 (en) Printing device and printing method
JP2007160922A (en) Image processor, program, and finish data movement method in image processor
JP5005460B2 (en) Image forming apparatus, image forming method, and image forming program
JP2012191252A (en) Apparatus capable of detecting two-dimensional code
JP5619221B2 (en) Device capable of handling a two-dimensional code, its control method, program, and storage medium
JP4471395B2 (en) Image forming apparatus and image processing method
JP2009037539A (en) Information processing apparatus, pre-flight method and program
JP5558844B2 (en) Image processing apparatus, control method thereof, and program
JP5371797B2 (en) Device, method and program capable of handling codes
JP2006119542A (en) Image processor, image processing method, computer program, and computer readable storage medium
JP2006019904A (en) Image processor and processing method, storage medium storing computer readable program, and program
JP2006174183A (en) Recording condition setting device
JP6551680B2 (en) Image forming device
JP2007221333A (en) Document processing apparatus and document processing method
JP2020005061A (en) Image processing apparatus and program
JP2012244206A (en) Image forming apparatus
JP4926030B2 (en) Image forming apparatus, image forming method, and image forming program
JP2017209879A (en) Image formation apparatus
JP2006146316A (en) Image processor and system control method therefor
JP2008072480A (en) System for embedding data in paper or reading data from paper, its control method, and computer readable memory medium
JP2009253666A (en) Image processing method and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140407

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: 20140507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140605

R151 Written notification of patent or utility model registration

Ref document number: 5558844

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees