JP5944221B2 - Image processing program, image processing apparatus, and image reading apparatus - Google Patents
Image processing program, image processing apparatus, and image reading apparatus Download PDFInfo
- Publication number
- JP5944221B2 JP5944221B2 JP2012104649A JP2012104649A JP5944221B2 JP 5944221 B2 JP5944221 B2 JP 5944221B2 JP 2012104649 A JP2012104649 A JP 2012104649A JP 2012104649 A JP2012104649 A JP 2012104649A JP 5944221 B2 JP5944221 B2 JP 5944221B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- contour
- document
- rectangular
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Control Or Security For Electrophotography (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
本発明は、画像処理プログラムおよび画像処理装置、画像読取装置に関し、特に、原稿を読み取ることで生成された画像等を処理する画像処理プログラムおよび画像処理装置、原稿の読み取りを行う画像読取装置に関する。 The present invention relates to an image processing program, an image processing apparatus, and an image reading apparatus, and more particularly to an image processing program and an image processing apparatus that process an image generated by reading an original, and an image reading apparatus that reads an original.
近年、複写装置等による原稿の複製が行われることは一般的であり、また、スキャナ等の画像読取装置で原稿を読み取って生成した画像や、デジタルカメラ等により撮影された画像等を、コンピュータ等の情報処理装置で電子文書として取り扱う機会も増加している。 2. Description of the Related Art In recent years, copying of a document by a copying apparatus or the like is generally performed, and an image generated by reading a document by an image reading apparatus such as a scanner, an image taken by a digital camera, or the like is displayed on a computer or the like. Opportunities for handling information documents as electronic documents are increasing.
画像読取装置等を利用する際には、これら装置の読み取り面である原稿台に載置する必要がありが、その際には、原稿台の所定の位置(原点)に原稿の角が合致するように原稿を読み取り面に載置することとなる。 When using an image reading device or the like, it is necessary to place the image reading device on a document table which is a reading surface of these devices. In this case, the corner of the document matches a predetermined position (origin) of the document table. Thus, the document is placed on the reading surface.
なお、複写装置や画像読取装置に、原稿の読み取りを容易に行わせるために、自動原稿送り装置を設けた機器も存在する(例えば、特許文献1参照)。 In addition, there is a device provided with an automatic document feeder so that a copying apparatus or an image reading apparatus can easily read a document (see, for example, Patent Document 1).
前述のように、複写装置や画像読取装置に自動原稿送り装置が設けられていない場合や、自動原稿送り装置に対応しない原稿等を読み取らせる場合には、当該原稿等を原稿台の所定の位置に載置する必要があった。 As described above, when an automatic document feeder is not provided in the copying apparatus or the image reading apparatus, or when a document or the like not corresponding to the automatic document feeder is read, the document or the like is placed at a predetermined position on the document table. It was necessary to mount it.
また、原稿等をデジタルカメラ等により撮影する場合には、原稿とカメラの相対位置に注意して撮影を行わなければ、その結果得られる画像を電子文書として利用する場合に、画像の回転やトリミング等の様々な画像処理を施す必要が生じることとなる。 In addition, when a document or the like is photographed with a digital camera or the like, if the image is not taken while paying attention to the relative position between the document and the camera, the resulting image will be rotated or trimmed when used as an electronic document. It is necessary to perform various image processing such as.
そこで、本発明は、原稿台の任意の位置に載置した原稿に対しても、適切な画像化を行うことのできる画像処理プログラムおよび画像処理装置、画像読取装置を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image processing program, an image processing apparatus, and an image reading apparatus that can appropriately image a document placed on an arbitrary position on a document table. .
上述した目的を達成するため、請求項1の発明は、原稿に基づいて生成された画像を処理する画像処理プログラムであって、未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出処理と、前記輪郭抽出処理で特定した前記矩形図形の輪郭線を補正する輪郭線補正処理と、前記輪郭線補正処理で補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出処理と、前記画像切出処理で切り出された矩形画像を直立させる直立補正処理とをコンピュータに実行させることを特徴とする。
In order to achieve the above-mentioned object, an invention according to
また、請求項2の発明は、原稿に基づいて生成された画像を処理する画像処理装置であって、未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出手段と、前記輪郭抽出手段で特定した前記矩形図形の輪郭線を補正する輪郭線補正手段と、前記輪郭線補正手段により補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出手段と、前記画像切出手段により切り出された矩形画像を直立させる直立補正手段とを具備することを特徴とする。 According to a second aspect of the present invention, there is provided an image processing apparatus for processing an image generated based on a document, wherein one of outlines of a rectangular figure in the image is specified based on a specification of a document size including unspecified. Extracting one or two sides of the rectangle as a part, and specifying a contour extracting means for specifying all of the contour lines of the rectangular image including the extracted sides; and a contour line of the rectangular figure specified by the contour extracting means. Contour line correcting means for correcting, image cutting means for cutting out a rectangular image from the image based on the contour line corrected by the contour correcting means, and upright for standing up the rectangular image cut out by the image cutting means And a correction unit.
また、請求項3の発明は、原稿台上の原稿に基づいて画像を生成する画像読取装置であって、原稿サイズの指定を受け付ける指定受付手段と、前記原稿台と相対する面が黒色であり、該原稿台上に並べられた原稿を押さえる原稿押さえ手段と、前記原稿台を光学的に走査して、該原稿台上に並べられた原稿に基づく画像を生成する画像生成手段と、前記画像生成手段が生成した画像に対して画像処理を施す画像処理手段とを具備し、前記画像処理手段は、前記指定受付手段が受け付けた未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出手段と、前記輪郭抽出手段で特定した前記矩形図形の輪郭線を補正する輪郭線補正手段と、前記輪郭線補正手段により補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出手段と、前記画像切出手段により切り出された矩形画像を直立させる直立補正手段とを具備することを特徴とする。 According to a third aspect of the present invention, there is provided an image reading apparatus for generating an image based on a document on a document table, wherein the specification receiving means for receiving specification of a document size and the surface facing the document table are black. A document pressing means for pressing the documents arranged on the document table, an image generating means for optically scanning the document table to generate an image based on the documents arranged on the document table, and the image An image processing unit that performs image processing on the image generated by the generation unit, and the image processing unit is configured to include a non-designated document size that is received by the designation receiving unit . One or two sides of the rectangle are extracted as a part of the contour line of the rectangular figure, and the contour extracting unit that specifies all the contour lines of the rectangular image including the extracted side is specified by the contour extracting unit . the outline of the rectangular shape Correcting contour correcting means, image cutting means for cutting out a rectangular image from the image based on the contour corrected by the contour correcting means, and upright for standing up the rectangular image cut out by the image cutting means And a correction unit.
また、請求項4の発明は、請求項3の発明において、前記画像処理手段が画像処理を施した画像を、前記指定受付手段が受け付けた原稿サイズに応じた用紙に印刷する画像形成手段をさらに具備することを特徴とする。 According to a fourth aspect of the present invention, there is provided the image forming unit according to the third aspect, further comprising: an image forming unit that prints an image subjected to the image processing by the image processing unit on a sheet according to a document size received by the designation receiving unit. It is characterized by comprising.
本発明によれば、原稿を原稿台の任意の位置に載置した場合であっても、該原稿の大きさに応じた原稿の画像化が可能となる。詳述すれば、作業者が原稿を原稿台に載置する際に、原稿を載置する位置や向きを気にすることなく原稿の読み取りを行った場合でも、原稿の大きさに応じた原稿の画像化が可能であり、原稿が定型のものであれば補正が施された大きさで、原稿が非定型のものであれば当該原稿の大きさで原稿が画像化される。 According to the present invention, even when a document is placed at an arbitrary position on the document table, the document can be imaged according to the size of the document. More specifically, even when an operator places a document on the document table and reads the document without worrying about the position and orientation of the document, the document according to the size of the document. If the document is a standard document, the document is imaged in the corrected size. If the document is an atypical document, the document is imaged in the size of the document.
以下、本発明に係る画像処理プログラムおよび画像処理装置、画像読取装置の一実施の形態について、添付図面を参照して詳細に説明する。 Hereinafter, an image processing program, an image processing apparatus, and an image reading apparatus according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
図1は、画像処理装置の概略を説明するための図である。同図に示すように、画像処理装置1は、スキャナ等の画像読取装置2や、デジタルカメラ等の撮影装置3で生成された画像データ4を取得し、取得した画像データ4に対して画像処理を施す。
FIG. 1 is a diagram for explaining the outline of the image processing apparatus. As shown in FIG. 1, the
画像処理装置1と画像読取装置2を接続する場合、画像読取装置2が原稿を読み取って生成した画像データ4を画像処理装置1に渡すことができればよいため、USB(Universal Serial Bus)等によるローカル接続や、LAN(Local Area Network)等によるネットワーク接続を利用することができる。
When the
また、撮影装置3から画像処理装置1へ画像データ4を渡す際には、各種の記憶メディアを用いることができる。
In addition, when the image data 4 is transferred from the photographing
次に、画像処理装置1の構成について説明する。画像処理装置1は、汎用のコンピュータ等の情報処理装置を画像処理プログラムにしたがって動作させることで実現されるものであり、その構成は、例えば、図2に示すようなものとなる。
Next, the configuration of the
図2に示すように、画像処理装置1は、演算部10と記憶部11、一時記憶部12、外部装置接続部13、記憶装置接続部14、記憶装置15、入力装置接続部16、入力装置17、表示装置接続部18、表示装置19を有している。
As illustrated in FIG. 2, the
演算部10は、演算処理を行うもので、例えば、CPU(Central Processing Unit)等のプロセッサに相当する。記憶部11は、情報等を記憶するもので、例えば、ROM(Read Only Memory)、不揮発性メモリ(Nonvolatile Memory)等のメモリに相当する。一時記憶部12は、情報等を一時的に記憶するもので、例えば、RAM(Random Access Memory)等のメモリに相当する。外部装置接続部13は、画像読取装置2や記憶メディアを接続するインタフェイスとなるもので、例えば、USBのインタフェイス等である。記憶装置接続部14は、記憶装置15を接続するためのインタフェイスである。記憶装置15は、情報等を記憶するもので、例えば、磁気ディスクに相当する。入力装置接続部16は、入力装置17を接続するためのインタフェイスである。入力装置17は、情報等を入力するもので、キーボードやポインティングデバイス等に相当するものである。表示装置接続部18は、表示装置19を接続するためのインタフェイスである。表示装置20は、情報等を表示するもので、モニタディスプレイ等に相当するものである。
The
続いて、画像処理装置1の機能的な構成について説明する。図3は、画像処理装置1の機能的な構成の例を示すブロック図である。
Subsequently, a functional configuration of the
同図に示すように、画像処理装置1は、画像取得部100と、前処理部101、サイズ指定受付部102、矩形抽出処理部103、画像切出処理部104、直立補正処理部105、変換処理部106といった各機能部を有している。また、矩形抽出処理部103は、輪郭抽出処理部130と輪郭補正処理部131といった各機能部を有している。
As shown in the figure, the
これら各機能部は、コンピュータ等の情報処理装置を画像処理プログラムにしたがって動作させることで実現される。この画像処理プログラムは、記録媒体に記録して配布したり、ネットワーク等を利用した通信により配信することが可能なものである。 Each of these functional units is realized by operating an information processing apparatus such as a computer according to an image processing program. The image processing program can be recorded on a recording medium and distributed, or can be distributed by communication using a network or the like.
画像取得部100は、画像読取装置2を動作させて画像データ4を取得するか、記憶メディア等から画像データ4を読み出す、LAN等を介して受信して記憶装置15に記憶された画像データ4をを読み出す等の処理を行い、画像データ4を処理対象として取得する。
The
前処理部101は、画像取得部100が取得した画像データ4複製する。
The
サイズ指定受付部102は、入力装置17から入力された抽出すべき画像のサイズ指定を受け付ける。受け付けるサイズ指定は、「A4」、「A5」、「B5」等の定型サイズの名称、「A4縦」、「A4横」等の定型サイズの名称と向き、縦と横のそれぞれの長さ、縦と横の一方の長さ及び縦横の比率等の抽出すべき画像のサイズを特定できるパラメータであり、これらのいずれかの指定を受け付ける。もちろん、受け付け可能なパラメータの種別は、設計時等に決定することができ、全ての種類のパラメータを受け付けるようにしてもよく、いずれか1つの種類、または、複数種類のパラメータを受け付けるようしてもよい。なお、サイズ指定受付部102が抽出すべき画像のサイズ指定を受け付けなかった場合でも、画像処理装置1は動作可能である。
The size
矩形抽出処理部103は、前処理部101が複製した画像データから、抽出すべき矩形の画像を抽出する。
The rectangle
輪郭抽出処理部130は、前処理部101が複製した画像データから、当該画像中の輪郭線を抽出する。また、輪郭抽出処理部130は、輪郭線の一部を抽出したことで、サイズ指定受付部102が受け付けた抽出すべき画像のサイズ指定に基づいて前処理部101が複製した画像データから当該画像中の輪郭線を特定可能となった場合には、以後の輪郭線の抽出を中止する。
The contour
輪郭補正処理部131は、輪郭抽出処理部130が抽出した輪郭線に囲まれた図形をサイズ指定受付部102が受け付けたサイズ指定に基づいて補正する。また、サイズ指定受付部102がサイズ指定を受け付けなかった場合でも、輪郭抽出処理部130が抽出した輪郭線に囲まれた図形が定型サイズに近いものであった場合、例えば、予め定めた閾値内の図形を定型サイズに補正することもできる。もちろん、サイズ指定受付部102がサイズ指定を受け付けなかった場合には、補正を行わないようにすることもでき、これらの判断は、設計時の決定または登録された設定に従うようにすることができる。
The contour
画像切出処理部104は、前処理部101が複製した画像の元となる元画像、つまり、画像取得部100が取得した画像データ4から、矩形抽出処理部103が抽出した矩形の輪郭線にしたがって、部分画像を切り出す。
The image
直立補正処理部105は、画像切出処理部104が切り出した部分画像を、当該部分画像が直立するように補正する。
The upright
変換処理部106は、直立補正処理部105が補正した部分画像を予め指定された形式に変換し、その結果をファイルとして記憶装置15に保存する。また、記憶装置15に保存したファイルに基づいて、外部装置接続部13に接続されたプリンタ等の画像形成装置から部分画像の印刷出力を行ってもよい。
The
次に、画像処理装置1の各機能部による処理の詳細を、画像処理装置1による画像処理の流れとともに説明する。
Next, details of processing by each functional unit of the
最初に、画像処理装置1が処理対象とする画像データ4について説明する。画像読取装置2で原稿を読み取って画像データ4を生成する場合、図4(a)に示すように、画像読取装置2の原稿台(ガラス台)20の任意の位置に原稿40を載置する。原稿40を載置する位置は任意であるため、従来、原稿の位置合わせに用いていた原点21は無視しても良い。
First, the image data 4 to be processed by the
また、画像データ4を生成する画像読取装置2は、原稿40の読取時に原稿40を押さえる役割を果たす原稿台カバー22のうち、少なくとも原稿台20と相対する面23は、特定の色、例えば、黒色である構成となっている。この特定の色は、原稿40の下地色と異なる色であれば他の色であってもよい。
The
この図4(a)に示した画像読取装置2で原稿40を読み取った結果、画像データ4は、図4(b)に示すような画像を示すデータとなる。
As a result of reading the
なお、原稿台カバー23の原稿台20と相対する面23が特定の色である画像読取装置2を用いる代わりに、一般の画像読取装置を用い、その画像読取装置の原稿台に原稿を載置し、その上に当該原稿よりも大きな特定色のシートを重ねて当該画像読取装置を動作させることでも、画像データ4を生成することが可能である。
In addition, instead of using the
一方、デジタルカメラ等の撮影装置3で画像データ4を生成する場合には、机上等に黒色等の特定の色のシートを載置し、そのシート上に原稿を載置して、これを撮影装置3で撮影することで、図4(b)に示すような画像を示す画像データ4を生成することができる。もちろん、壁等に黒色等の特定の色のシートと原稿を貼り付け、これを撮影することでも同様の画像データ4を生成することができる。
On the other hand, when the image data 4 is generated by the photographing
続いて、画像取得部100が取得した画像データ4に対して、前処理部101が、前処理を施す。前処理部101が施す前処理は、画像取得部100が取得した画像データ4を複製する処理である。なお、以下では、便宜上、画像取得部100が取得した画像データ4を元画像と称し、前処理部101が複製した画像を複製画像と称する。
Subsequently, the
次に、前処理部101が複製した複製画像に対して、矩形抽出処理部103が当該複製画像から矩形部分を抽出する矩形抽出処理を行う。
Next, the rectangle
矩形抽出処理では、まず、輪郭抽出処理部130が抽出する矩形の輪郭線を抽出する処理を行う。輪郭抽出処理部130は、輪郭線の抽出に先立ち、まず、複製画像を各画素が1ビットで表現される2値画像に変換する。そして、輪郭抽出処理部130は、2値化した複製画像から外枠を除去する外枠除去処理を行う。外枠とは、画像読取装置2の枠消し機能等により生じる白枠であり、外枠除去処理は、この白枠の各画素を、黒画素に変換するものである。続いて、輪郭抽出処理部130は、外枠除去処理が施された複製画像から、当該画像中に存在する原稿40の輪郭線に相当する矩形の輪郭線、つまり、白画素の塊の輪郭線を抽出する。
In the rectangle extraction process, first, a process of extracting a rectangular outline extracted by the outline
ここで、輪郭線抽出処理について説明する。図5および図6は、輪郭線抽出処理を説明するための図である。ここでは、輪郭線抽出処理を施す複製画像は、図5(a)に示す8×8画素のもので、白画素の塊が1つ存在するものとする。なお、図5および図6中の斜線を施した正方形は黒画素を示し、他の正方形は、白画素を示す。また、正方形内に円を描画しているものは、輪郭線として抽出された画素を示すものである。 Here, the outline extraction process will be described. 5 and 6 are diagrams for explaining the contour line extraction processing. Here, it is assumed that the duplicate image subjected to the contour line extraction process is an 8 × 8 pixel shown in FIG. 5A and includes one white pixel block. In FIG. 5 and FIG. 6, the shaded squares indicate black pixels, and the other squares indicate white pixels. In addition, what draws a circle in a square indicates a pixel extracted as a contour line.
輪郭線抽出処理では、輪郭抽出処理部130は、まず、ラスタスキャンによる白画素の有無の確認、つまり、図5(a)中の左上の画素P11から画素P12の方向に順に画素P18まで白画素の有無を確認し、画素P18までに白画素が無ければ、次段の画素P21から、同様に白画素の有無を確認する。その結果、画素P25が白画素であるので、この画素P25を始点として、輪郭線の追跡を開始する。
In the contour line extraction processing, the contour
輪郭線の追跡では、処理対象の画素の周りの8画素を反時計方向に順に確認する。処理対象が画素P25である場合には、その周りの8画素のうち、直前に処理対象であった画素P24から反時計方向に隣接する画素P34を始点として白画素の確認を行う(図5(b)参照)。そして、最初に白画素であることが確認された画素、この場合、画素P34を輪郭線の進行方向とする。 In the tracking of the contour line, eight pixels around the pixel to be processed are sequentially checked in the counterclockwise direction. When the processing target is the pixel P25, white pixels are confirmed starting from a pixel P34 that is adjacent in the counterclockwise direction from the pixel P24 that was the processing target immediately before, among the eight surrounding pixels (FIG. 5 ( b)). Then, the pixel first confirmed to be a white pixel, in this case, the pixel P34 is set as the traveling direction of the contour line.
続いて、画素P34を処理対象として、その周りの8画素のうち、直前に処理対象であった画素P25から反時計方向に隣接する画素P24を始点として白画素の確認を行う(図5(c)参照)。この場合、画素P24、画素P23、画素P33、画素P43の順に白画素であるか否かの確認を行い、最初に白画素であることが確認された画素P43を輪郭線の進行方向とする。 Subsequently, with the pixel P34 as a processing target, a white pixel is confirmed starting from a pixel P24 adjacent in the counterclockwise direction from the pixel P25 that was the processing target immediately before the pixel P34 (FIG. 5C). )reference). In this case, it is confirmed whether or not the pixel is a white pixel in the order of the pixel P24, the pixel P23, the pixel P33, and the pixel P43, and the pixel P43 that is first confirmed to be a white pixel is set as the traveling direction of the contour line.
そして、同様の処理を行い、画素P43における輪郭線の進行方向を画素P52(図5(d)参照)、画素P52における輪郭線の進行方向を画素P62(図5(e)参照)、画素P62における輪郭線の進行方向を画素P73(図6(a)参照)、画素P73における輪郭線の進行方向を画素P74(図6(b)参照)、といったように、輪郭線の追跡を行い、輪郭線の進行方向として特定した画素が始点であった画素P25となった場合に、輪郭線の追跡を終了する(図6(c)参照)。 Then, the same processing is performed, and the direction of travel of the contour line in the pixel P43 is the pixel P52 (see FIG. 5D), the direction of travel of the contour line in the pixel P52 is the pixel P62 (see FIG. 5E), and the pixel P62. The contour line is traced such that the direction of travel of the contour line in FIG. 6 is the pixel P73 (see FIG. 6A) and the direction of travel of the contour line in the pixel P73 is the pixel P74 (see FIG. 6B). When the pixel specified as the line traveling direction becomes the starting pixel P25, the tracking of the contour line is terminated (see FIG. 6C).
ところで、前述したように、輪郭抽出処理部130は、輪郭線の一部を抽出したことで、サイズ指定受付部102が受け付けた抽出すべき画像のサイズ指定に基づいて輪郭線の全体を特定可能となった場合には、以後の輪郭線の抽出を中止する。
By the way, as described above, the contour
ここで、輪郭線の抽出を中止する場合の例を説明する。例えば、図7(a)に示すような輪郭線を抽出する場合、サイズ指定受付部102が受け付けたサイズ指定が、「A4」、「A5」、「B5」等の定型サイズの名称、「A4縦」、「A4横」等の定型サイズの名称と向き、縦と横のそれぞれの長さのいずれかである場合、図7(b)に示すように、矩形のうちの1辺を抽出した段階で輪郭線の抽出を中止する。これは、サイズ指定されたパラメータによって、矩形の長辺の長さと短辺の長さの両者を特定できるからである。また、サイズ指定受付部102が受け付けたサイズ指定が、縦と横の一方の長さ及び縦横の比率である場合に、図7(b)に示した矩形の1辺の長さが指定された長さと一致する場合にも、矩形のうちの1辺を抽出した段階で輪郭線の抽出を中止する。
Here, an example in which the extraction of the contour line is stopped will be described. For example, when extracting a contour line as shown in FIG. 7A, the size designation received by the size
サイズ指定受付部102が受け付けたサイズ指定がその他の場合や、サイズ指定受付部102がサイズ指定を受け付けなかった場合には、図7(c)に示すように、矩形のうちの2辺を抽出した段階で輪郭線の抽出を中止する。
When the size designation accepted by the size
なお、画像データ4が撮影装置3で撮影されたものである場合には、サイズ指定受付部102が受け付けたサイズ指定が「A4」等であったとしても、画像データ4中の矩形が原寸であるとは限らないため、矩形のうちの2辺を抽出した段階で輪郭線の抽出を中止することになる場合もある。
When the image data 4 is taken by the photographing
次に、輪郭抽出処理部130が抽出した輪郭線に対して、輪郭補正処理部131が輪郭補正処理を施す。
Next, the contour
輪郭線補正処理部131は、輪郭抽出処理部130が抽出した輪郭線に対して直線化の処理を施す。具体的には、輪郭線上または輪郭線の近傍に黒色等の特定色の画素が残存していた場合に、当該画素の色を原稿の下地色に変換する処理を施す。
The contour
なお、輪郭線補正処理部131は、画像データ4が撮影装置3で撮影されたものである場合等で、サイズ指定受付部102が受け付けたサイズ指定と矩形の大きさが異なる場合には、画像に対して拡縮処理を施すようにしてもよい。
It should be noted that the contour
矩形抽出処理部103による矩形抽出処理が終了すると、画像切出処理部104が、元画像(画像データ4)から矩形抽出処理部103が抽出した矩形画像に相当する部分を部分画像として切り出す。
When the rectangle extraction processing by the rectangle
続いて、直立補正処理部105が、画像切出処理部104が切り出した部分画像に対して直立補正処理を施す。この直立補正処理は、矩形の長辺または短辺が水平方向となるように、部分画像に回転処理を施す処理である。なお、長辺と短辺のいずれかを水平方向に一致させるかは予め定めた設定にしたがって行うものとするが、サイズ指定受付部102が受け付けたサイズ指定が、「A4縦」、「A4横」等の定型サイズの名称と向き、縦と横のそれぞれの長さのいずれかであった場合、当該サイズ指定にしたがって長辺と短辺のいずれかを水平方向に一致させるように部分画像に回転処理を施す。
Subsequently, the upright
最後に、変換処理部106が、直立補正処理部105で直立補正処理が施された画像を、指定された画像ファイルの形式に変換してその結果を記憶装置15に保存する。
Finally, the
なお、前述したように、画像処理装置1は、汎用のコンピュータ等の情報処理装置を画像処理プログラムにしたがって動作させることで実現するものであるが、同様のプログラム、つまり、図3に示した各機能部を実現するプログラムを、画像読取装置の画像処理部で動作させ、前述した画像処理装置1の機能を有する画像読取装置を実現することができる。この場合、当該画像読取装置の原稿台カバーを黒色等の特定の色にするか、任意の色に変更可能な構成とすることで、原稿に特定の色のシートを重ねる等の作業を行う必要もなくなる。
As described above, the
同様に、図3に示した各機能部を実現するプログラムを、複写装置の画像処理部で動作させ、前述した画像処理装置1の機能を有する複写装置を実現することができる。この場合、当該複写装置の原稿台カバーを黒色等の特定の色にするか、任意の色に変更可能な構成とすることで、原稿に特定の色のシートを重ねる等の作業を行う必要もなくなる。
Similarly, a program that realizes each functional unit shown in FIG. 3 is operated by the image processing unit of the copying apparatus, so that a copying apparatus having the functions of the
1 画像処理装置
2 画像読取装置
3 撮影装置
10 演算部
11 記憶部
12 一時記憶部
13 外部装置接続部
14 記憶装置接続部
15 記憶装置
16 入力装置接続部
17 入力装置
18 表示装置接続部
19 表示装置
20 原稿台
21 原点
22 原稿台カバー
23 原稿台カバーの原稿台との相対面
40 原稿
100 画像取得部
101 前処理部
102 サイズ指定受付部
103 矩形抽出処理部
104 画像切出処理部
105 直立補正処理部
106 変換処理部
130 輪郭抽出処理部
131 輪郭補正処理部
P11〜P74 画素
DESCRIPTION OF
Claims (4)
未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出処理と、
前記輪郭抽出処理で特定した前記矩形図形の輪郭線を補正する輪郭線補正処理と、
前記輪郭線補正処理で補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出処理と、
前記画像切出処理で切り出された矩形画像を直立させる直立補正処理と
をコンピュータに実行させることを特徴とする画像処理プログラム。 An image processing program for processing an image generated based on a document,
One or two sides of the rectangle are extracted as a part of the outline of the rectangular figure in the image based on the specification of the document size including unspecified, and the outline of the rectangle image including the extracted side is extracted. Contour extraction processing to identify all ,
An outline correction process for correcting an outline of the rectangular figure identified by the outline extraction process;
An image cutout process for cutting out a rectangular image from the image based on the contour line corrected by the contour line correction process;
An image processing program for causing a computer to execute upright correction processing for erecting a rectangular image cut out by the image cutting processing.
未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出手段と、
前記輪郭抽出手段で特定した前記矩形図形の輪郭線を補正する輪郭線補正手段と、
前記輪郭線補正手段により補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出手段と、
前記画像切出手段により切り出された矩形画像を直立させる直立補正手段と
を具備することを特徴とする画像処理装置。 An image processing apparatus that processes an image generated based on a document,
One or two sides of the rectangle are extracted as a part of the outline of the rectangular figure in the image based on the specification of the document size including unspecified, and the outline of the rectangle image including the extracted side is extracted. Contour extraction means for specifying the whole ;
Contour correcting means for correcting the contour of the rectangular figure specified by the contour extracting means;
Image cutting means for cutting out a rectangular image from the image based on the contour line corrected by the contour line correcting means;
An image processing apparatus comprising: an upright correction unit configured to erect a rectangular image cut out by the image cutout unit.
原稿サイズの指定を受け付ける指定受付手段と、
前記原稿台と相対する面が黒色であり、該原稿台上に並べられた原稿を押さえる原稿押さえ手段と、
前記原稿台を光学的に走査して、該原稿台上に並べられた原稿に基づく画像を生成する画像生成手段と、
前記画像生成手段が生成した画像に対して画像処理を施す画像処理手段と
を具備し、
前記画像処理手段は、
前記指定受付手段が受け付けた未指定を含む原稿サイズの指定に基づいて、前記画像中の矩形図形の輪郭線の一部として該矩形の1辺または2辺を抽出し、該抽出した辺を含む前記矩形画像の輪郭線の全部を特定する輪郭抽出手段と、
前記輪郭抽出手段で特定した前記矩形図形の輪郭線を補正する輪郭線補正手段と、
前記輪郭線補正手段により補正された輪郭線に基づいて前記画像から矩形画像を切り出す画像切出手段と、
前記画像切出手段により切り出された矩形画像を直立させる直立補正手段と
を具備する
ことを特徴とする画像読取装置。 An image reading apparatus that generates an image based on a document on a document table,
A designation accepting means for accepting designation of a document size ;
A document pressing means for pressing the documents arranged on the document table, the surface facing the document table being black;
Image generating means for optically scanning the document table and generating an image based on the documents arranged on the document table;
Image processing means for performing image processing on the image generated by the image generation means,
The image processing means includes
One or two sides of the rectangle are extracted as a part of the outline of the rectangular figure in the image based on the specification of the document size including the undesignated accepted by the designation accepting means, and includes the extracted sides Contour extracting means for specifying all the contour lines of the rectangular image ;
Contour correcting means for correcting the contour of the rectangular figure specified by the contour extracting means;
Image cutting means for cutting out a rectangular image from the image based on the contour line corrected by the contour line correcting means;
An image reading apparatus comprising: an erecting correction unit that erects the rectangular image cut out by the image cutting unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012104649A JP5944221B2 (en) | 2012-05-01 | 2012-05-01 | Image processing program, image processing apparatus, and image reading apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012104649A JP5944221B2 (en) | 2012-05-01 | 2012-05-01 | Image processing program, image processing apparatus, and image reading apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013232834A JP2013232834A (en) | 2013-11-14 |
JP5944221B2 true JP5944221B2 (en) | 2016-07-05 |
Family
ID=49678906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012104649A Active JP5944221B2 (en) | 2012-05-01 | 2012-05-01 | Image processing program, image processing apparatus, and image reading apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5944221B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6630041B2 (en) * | 2014-12-25 | 2020-01-15 | キヤノン電子株式会社 | Image reading device, control method thereof, program, image reading system, and image processing device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2839920B2 (en) * | 1989-11-28 | 1998-12-24 | 富士通株式会社 | Image data input device |
JPH05211604A (en) * | 1992-01-31 | 1993-08-20 | Canon Inc | Device and method for image processing |
JPH10191026A (en) * | 1996-12-26 | 1998-07-21 | Canon Inc | Image processing device and method |
JP2000004315A (en) * | 1998-06-12 | 2000-01-07 | Nec Shizuoka Ltd | Original reader |
JP5205963B2 (en) * | 2007-12-28 | 2013-06-05 | ブラザー工業株式会社 | Image reading device |
JP4924417B2 (en) * | 2007-12-28 | 2012-04-25 | ブラザー工業株式会社 | Image analysis device |
JP2010103808A (en) * | 2008-10-24 | 2010-05-06 | Sharp Corp | Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium |
-
2012
- 2012-05-01 JP JP2012104649A patent/JP5944221B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2013232834A (en) | 2013-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI419556B (en) | Photographic objects, image processing programs, and image processing methods | |
JP5547243B2 (en) | Image processing apparatus, program, and recording medium | |
JP5620244B2 (en) | Image registration method and program for image comparison and document authentication | |
US11245811B2 (en) | Image processing apparatus, method and non-transitory computer readable medium storing image processing program | |
RU2631765C1 (en) | Method and system of correcting perspective distortions in images occupying double-page spread | |
US20140362422A1 (en) | Handheld device document imaging | |
JP2007074579A (en) | Image processor, and program | |
JP2011022867A (en) | Image processing device, image processing system and program | |
US10834281B2 (en) | Document size detecting by matching between image of entire document and read size image | |
JP2011141600A (en) | Image processing apparatus, method, and program | |
JP5944221B2 (en) | Image processing program, image processing apparatus, and image reading apparatus | |
JP2013026839A (en) | Image processing program and image processing device | |
JP6540597B2 (en) | INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM | |
JP2012060452A (en) | Image processor, method therefor and program | |
JP4314148B2 (en) | Two-dimensional code reader | |
JP2014220772A (en) | Image processing apparatus and control method and program of the same | |
JP5208043B2 (en) | Image processing apparatus, image processing method, and program | |
JP2017028447A (en) | Image processing device and image processing method | |
JP6639257B2 (en) | Information processing apparatus and control method therefor | |
JP6815712B1 (en) | Image processing system, image processing method, image processing program, image processing server, and learning model | |
JP2013090177A (en) | Image processing program and image processor | |
JP2014026592A (en) | Character recognition device | |
JP6474161B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2019186759A (en) | Information processing device, information processing system, and information processing program | |
JP2011028611A (en) | Character information reading device and character information reading method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150501 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160209 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160408 |
|
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: 20160426 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160525 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5944221 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |