JP4623214B2 - Photo image area extraction device and copy device - Google Patents

Photo image area extraction device and copy device Download PDF

Info

Publication number
JP4623214B2
JP4623214B2 JP2009013380A JP2009013380A JP4623214B2 JP 4623214 B2 JP4623214 B2 JP 4623214B2 JP 2009013380 A JP2009013380 A JP 2009013380A JP 2009013380 A JP2009013380 A JP 2009013380A JP 4623214 B2 JP4623214 B2 JP 4623214B2
Authority
JP
Japan
Prior art keywords
photographic
image
edge
area
image data
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.)
Expired - Fee Related
Application number
JP2009013380A
Other languages
Japanese (ja)
Other versions
JP2009135954A (en
Inventor
陽一郎 牧
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009013380A priority Critical patent/JP4623214B2/en
Publication of JP2009135954A publication Critical patent/JP2009135954A/en
Application granted granted Critical
Publication of JP4623214B2 publication Critical patent/JP4623214B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、コピーするための技術に関し、特に縁あり、縁なしいずれの写真であっても縁なしでコピーするための技術に関する。   The present invention relates to a technique for copying, and more particularly to a technique for copying a borderless photograph without a border.

コピー装置を用いて写真のコピーをする場合、例えば、特許文献1には写真シートおよび写真イメージのサイズがあらかじめ決められているときに、写真イメージの周囲の縁(写真イメージの周囲の余白)を除去してコピーする装置が記載されている。   When copying a photograph using a copying apparatus, for example, in Patent Document 1, when the size of a photographic sheet and a photographic image is determined in advance, the peripheral edge of the photographic image (the margin around the photographic image) is added. An apparatus for removing and copying is described.

特開平8−101566号公報Japanese Patent Laid-Open No. 8-101656

しかしながら、特許文献1の装置では、写真シートおよび写真イメージのサイズをあらかじめ特定しないと写真イメージの位置を特定することができないし、さらには、写真シートには縁(写真イメージの周囲の余白)があるのかどうかを自動的に判定することもできない。   However, in the apparatus of Patent Document 1, the position of the photographic image cannot be specified unless the sizes of the photographic sheet and the photographic image are specified in advance, and furthermore, the photographic sheet has an edge (a margin around the photographic image). It is not possible to automatically determine whether there is any.

そこで、本発明の目的は、写真シートに印刷されている写真イメージの領域を、縁の有無にかかわらず自動的に検出することである。   Therefore, an object of the present invention is to automatically detect a region of a photographic image printed on a photographic sheet regardless of the presence or absence of a border.

本発明の別の目的は、縁あり印刷および縁なし印刷のいずれの写真シートであっても、縁なしでコピーするための技術を提供することである。   Another object of the present invention is to provide a technique for copying borderless and photographic sheets, both bordered and borderless printed.

本発明の一つの実施態様に従う写真イメージ領域抽出装置は、写真イメージが定着された写真シートに対して光を当てて反射光を読み取り、前記写真シートを含むイメージデータを出力するスキャナ部と、前記スキャナ部から出力されたイメージデータに基づいて、前記写真シートの領域を抽出する写真シート抽出部と、前記写真シート抽出部により抽出された前記写真シート領域のイメージデータを用いて、前記写真イメージの周囲の縁の有無を判定する縁判定部と、前記縁判定部での判定結果に基づいて前記写真イメージ領域を特定し、特定された前記写真イメージ領域を出力する写真イメージ抽出部と、を備える。これにより、縁あり印刷または縁なし印刷のいずれの写真シートであっても、縁を除去した写真イメージ領域を抽出することができる。   According to an embodiment of the present invention, there is provided a photographic image region extracting apparatus that applies a light to a photographic sheet on which a photographic image is fixed, reads reflected light, and outputs image data including the photographic sheet; Based on the image data output from the scanner unit, a photographic sheet extraction unit that extracts a region of the photographic sheet, and using the image data of the photographic sheet region extracted by the photographic sheet extraction unit, An edge determination unit that determines the presence or absence of a peripheral edge, and a photographic image extraction unit that specifies the photographic image region based on a determination result of the edge determination unit and outputs the specified photographic image region. . Thereby, it is possible to extract the photographic image region from which the border is removed, regardless of whether the photographic sheet is printed with border or without border.

好適な実施形態では、前記スキャナ部から出力されたイメージデータの輝度情報に基づいて前記写真シートの少なくとも一辺に沿ってできた影を検出する影検出部をさらに備えるようにしてもよい。そして、前記写真シート抽出部は、前記影検出部によって検出された影に基づいて前記写真シートの領域を抽出するようにしてもよい。これにより、写真シートに沿ってできる影を利用して写真シート領域を抽出することができる。   In a preferred embodiment, the image processing apparatus may further include a shadow detection unit that detects a shadow formed along at least one side of the photographic sheet based on luminance information of the image data output from the scanner unit. The photographic sheet extraction unit may extract a region of the photographic sheet based on the shadow detected by the shadow detection unit. Thereby, a photographic sheet region can be extracted using a shadow formed along the photographic sheet.

好適な実施形態では、前記スキャナ部から出力されたイメージデータの輝度情報に基づいて前記写真シートの少なくとも一辺に沿ってできた影を検出する影検出部をさらに備えてもよい。そして、前記縁判定部は、前記写真シートの影がある辺について縁の有無を判定し、前記写真イメージ抽出部は、前記影がある辺に縁がないときは、前記写真シート領域を前記写真イメージ領域と特定するようにしてもよい。これにより、縁なしのときはすべての辺について縁判定を行わなくてもよい。   In a preferred embodiment, the image processing apparatus may further include a shadow detection unit that detects a shadow formed along at least one side of the photographic sheet based on luminance information of image data output from the scanner unit. The edge determination unit determines the presence or absence of an edge for a side with a shadow of the photographic sheet, and the photographic image extraction unit determines the photographic sheet region as the photo when the side with the shadow has no edge. The image area may be specified. Thereby, when there is no edge, it is not necessary to perform edge determination for all sides.

好適な実施形態では、前記写真イメージ抽出部が抽出した前記写真イメージ領域を表示する表示装置と、前記表示装置に表示された、前記写真イメージ抽出部が抽出した前記写真イメージ領域を修正する修正入力を受け付ける入力装置とを、更に備えてもよい。これにより、自動的に抽出された写真イメージ領域をユーザが修正することができる。   In a preferred embodiment, a display device that displays the photographic image region extracted by the photographic image extraction unit, and a correction input that is displayed on the display device and that corrects the photographic image region extracted by the photographic image extraction unit. And an input device that accepts. Thus, the user can correct the automatically extracted photographic image area.

好適な実施形態では、前記写真イメージ抽出部は、前記縁判定部により前記縁があると判定された場合に、前記写真シート領域の外縁から予め定められた幅の領域を除去して、前記写真イメージ領域を特定するようにしてもよい。   In a preferred embodiment, the photographic image extraction unit removes an area having a predetermined width from an outer edge of the photographic sheet area when the edge determination unit determines that the edge is present, and The image area may be specified.

好適な実施形態では、前記写真イメージ抽出部が出力した写真イメージ領域のイメージデータを、記憶装置に格納するためのファイルを生成するファイル生成手段を更に備えてもよい。   In a preferred embodiment, the image processing device may further include a file generation unit that generates a file for storing the image data of the photographic image area output from the photographic image extraction unit in a storage device.

好適な実施形態では、前記スキャナ部から出力されたイメージデータの輝度情報に基づいて前記写真シートの辺に沿ってできた影を検出する影検出部をさらに備えてもよい。そして、前記写真シート抽出部は、前記影検出部が上下方向の少なくとも一辺に沿ってできた影を検出すると、当該影が検出された前記一辺を長方形の一辺とし、所定値よりも輝度の低い領域を含む長方形領域を前記写真シート領域とすることもできる。これにより、写真シートをスキャナ部で読み取ったときに写真シートの上下方向にできる影を利用して写真シート領域の抽出ができる。   In a preferred embodiment, the image processing apparatus may further include a shadow detection unit that detects a shadow formed along a side of the photographic sheet based on luminance information of image data output from the scanner unit. When the shadow detection unit detects a shadow formed along at least one side in the vertical direction, the photographic sheet extraction unit sets the one side where the shadow is detected as one side of a rectangle, and has a luminance lower than a predetermined value. A rectangular area including the area may be used as the photographic sheet area. As a result, the photographic sheet region can be extracted by using the shadow that is formed in the vertical direction of the photographic sheet when the photographic sheet is read by the scanner unit.

好適な実施形態では、前記スキャナ部から出力されたイメージデータの輝度情報に基づいて前記写真シートの辺に沿ってできた影を検出する影検出部をさらに備えてもよい。そして、前記写真シート抽出部は、前記影検出部が前記写真シートの隣り合う二辺に沿ってできた影を検出すると、前記二辺に沿ってできた影を二辺とする長方形領域を前記写真シート領域とするようにしてもよい。これにより、写真シートをスキャナ部で読み取ったときに写真シート隣り合う二辺に沿ってできた影を利用して写真シート領域の抽出ができる。   In a preferred embodiment, the image processing apparatus may further include a shadow detection unit that detects a shadow formed along a side of the photographic sheet based on luminance information of image data output from the scanner unit. The photographic sheet extraction unit detects a shadow formed along two adjacent sides of the photographic sheet when the shadow detection unit detects a rectangular region having two sides of the shadow formed along the two sides. A photographic sheet area may be used. As a result, when a photographic sheet is read by the scanner unit, a photographic sheet region can be extracted using shadows formed along two sides adjacent to the photographic sheet.

好適な実施形態では、メモリカードを装着するためのカードスロットと、前記写真イメージ抽出部により抽出されたイメージデータを、前記カードスロットに装着されたメモリカードに格納するための格納手段と、をさらに備えるようにしてもよい。   In a preferred embodiment, a card slot for mounting a memory card, and storage means for storing the image data extracted by the photographic image extraction unit in the memory card mounted in the card slot are further included. You may make it prepare.

本発明の一つの実施態様に従うコピー装置は、写真イメージが定着された写真シートに対して光を当てて反射光を読み取り、前記写真シートを含むイメージデータを出力するスキャナ部と、前記スキャナ部から出力されたイメージデータに基づいて、前記写真シートの領域を抽出する写真シート抽出部と、前記写真シート抽出部により抽出された前記写真シート領域のイメージデータを用いて、前記写真イメージの周囲の縁の有無を判定する縁判定部と、前記縁判定部での判定結果に基づいて前記写真イメージ領域を特定し、特定された前記写真イメージ領域を出力する写真イメージ抽出部と、前記イメージ抽出部から出力されたイメージデータに基づいて、写真イメージ領域のサイズが印刷媒体のサイズ以上になるように調整するイメージ処理部と、前記イメージ処理部から出力されたイメージデータに基づいて、前記印刷媒体へ印刷を実行する印刷部と、を備える。これにより、縁あり印刷または縁なし印刷のいずれの写真シートであっても、縁なしコピーをすることができる。   A copying apparatus according to an embodiment of the present invention includes: a scanner unit that applies reflected light to a photographic sheet on which a photographic image is fixed, reads reflected light, and outputs image data including the photographic sheet; Based on the output image data, a photographic sheet extraction unit that extracts an area of the photographic sheet, and an edge around the photographic image using the image data of the photographic sheet area extracted by the photographic sheet extraction unit An edge determination unit that determines the presence or absence of the image, a photographic image extraction unit that identifies the photographic image region based on a determination result in the edge determination unit, and outputs the specified photographic image region; An image adjusted based on the output image data so that the size of the photo image area is equal to or larger than the size of the print medium Comprising a processing section, based on the outputted image data from the image processing unit, and a printing unit which executes printing to the printing medium. As a result, it is possible to make a borderless copy on any photographic sheet with bordered printing or borderless printing.

本発明の一実施形態に係るコピー装置の外観を示す図である。1 is a diagram illustrating an appearance of a copying apparatus according to an embodiment of the present invention. 本実施形態に係るコピー装置のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram showing a hardware configuration of a copy apparatus according to the present embodiment. スキャナ回路の構成を示す図である。It is a figure which shows the structure of a scanner circuit. コピーを実行するときの処理手順を示す図である。It is a figure which shows the process sequence when performing a copy. 前処理を適用したときのイメージの変化を模式的に示す図である。It is a figure which shows typically the change of an image when pre-processing is applied. 前処理のフローチャートである。It is a flowchart of pre-processing. 影抽出処理を説明する図である。It is a figure explaining a shadow extraction process. 影抽出処理を説明する図である。It is a figure explaining a shadow extraction process. 写真シート領域から写真イメージ領域を抽出する処理の説明図である。It is explanatory drawing of the process which extracts a photographic image area | region from a photographic sheet area | region. 影抽出処理を説明する図である。It is a figure explaining a shadow extraction process. 影抽出処理を説明する図である。It is a figure explaining a shadow extraction process. 写真シート領域から写真イメージ領域を抽出する処理の説明図である。It is explanatory drawing of the process which extracts a photographic image area | region from a photographic sheet area | region.

1…コピー装置、12…原稿台、25…スキャナ回路、31…原稿、32…写真シート、33…写真イメージ、34…縁、42,43…影。 DESCRIPTION OF SYMBOLS 1 ... Copy apparatus, 12 ... Original stand, 25 ... Scanner circuit, 31 ... Original, 32 ... Photo sheet, 33 ... Photo image, 34 ... Edge, 42, 43 ... Shadow.

以下、本発明の一実施形態について、図面を用いて説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

図1は、本発明の一実施形態に係るコピー装置の外観を示す図である。このコピー装置1は、文書等の原稿をスキャンイメージデータとして取り込むスキャナ機能と、スキャンイメージデータやアプリケーションデータ等の印刷対象データを印刷イメージデータにして印刷用紙に印刷するプリンタ機能とを有している。コピー装置1は、その内部に制御装置を備え、統括的に制御して、各種機能を実現している。   FIG. 1 is a diagram illustrating an appearance of a copying apparatus according to an embodiment of the present invention. The copying apparatus 1 has a scanner function for capturing a document such as a document as scan image data, and a printer function for printing print target data such as scan image data and application data on print paper as print image data. . The copy apparatus 1 includes a control device therein and performs overall control to realize various functions.

同図に示すように、コピー装置1の本体上面には、表示装置である液晶パネルおよび入力装置である各種ボタンが設けられ、ユーザインターフェース11を形成している。ユーザは、このユーザインターフェース11を介して、原稿の読み取りや印刷の指示、各種読み取り条件設定や印刷条件の設定等を行うことができる。さらに、本実施形態では、印刷の前処理として画像イメージ領域を抽出したとき、その抽出結果を液晶パネルに表示させて、各種操作ボタンによりユーザからの修正入力を受け付ける。   As shown in the drawing, a liquid crystal panel as a display device and various buttons as an input device are provided on the upper surface of the main body of the copy apparatus 1 to form a user interface 11. The user can perform document reading and printing instructions, setting various reading conditions, setting printing conditions, and the like via the user interface 11. Further, in the present embodiment, when an image image region is extracted as preprocessing for printing, the extraction result is displayed on the liquid crystal panel, and a correction input from the user is received by various operation buttons.

また、コピー装置1の本体上面には、原稿を載置するガラス面を有する原稿台12と蓋13とが設けられている。詳細については後述するように、原稿台12の下方には、原稿台12のガラス面に載置された原稿に光を照射する光源と、その反射光を受ける光センサ(いずれもここでは図示しない)とが設けられている。コピー装置1は、ユーザインターフェース11を介してユーザから画像読み取り指示/印刷指示を受け付けると、原稿台12に載置された原稿を読み取り、内部のメモリ上に所定のデータフォーマットでスキャンイメージデータとして格納する。続いて、コピー装置1は、メモリ上に格納されているスキャンイメージデータに基づいて印刷用紙に対する印刷を行う。コピー装置1は、印刷後、印刷用紙を排紙トレー14に排出する。   Further, an original table 12 having a glass surface on which a document is placed and a lid 13 are provided on the upper surface of the main body of the copying apparatus 1. As will be described in detail later, below the document table 12, a light source for irradiating the document placed on the glass surface of the document table 12 and a light sensor for receiving the reflected light (both not shown here) ) And are provided. When receiving an image reading instruction / printing instruction from the user via the user interface 11, the copying apparatus 1 reads the original placed on the original table 12, and stores it as scan image data in a predetermined data format on the internal memory. To do. Subsequently, the copying apparatus 1 performs printing on the printing paper based on the scan image data stored on the memory. The copy apparatus 1 discharges the printing paper to the paper discharge tray 14 after printing.

また、コピー装置1の本体前面には、外部インターフェースとしてのカードスロット15が設けられている。カードスロット15は、例えばPCMCIA規格に準拠しており、このような規格に準拠したメモリカード(図示せず)を着脱可能に構成されている。コピー装置1は、例えば、メモリカードがカードスロット15に挿入され、装着されたことを検出すると、液晶パネルに印刷実行指示を促すメッセージを表示する。ユーザは、これに対して必要に応じて印刷条件を設定するための操作を行って、印刷指示を与えることできる。コピー装置1は、ユーザから印刷指示を受け付けると、メモリカード内に記録されているイメージデータを読み出して、印刷用紙に対する印刷を行う。コピー装置1は、印刷後、印刷用紙を排紙トレー14に排出する。また、スキャナが読み取ったスキャンイメージデータのうち、画像イメージ領域のイメージデータを抽出して、カードスロット15に装着されたメモリカードに格納することもできる。   Further, a card slot 15 as an external interface is provided on the front surface of the main body of the copying apparatus 1. The card slot 15 conforms to, for example, the PCMCIA standard, and is configured to be detachable from a memory card (not shown) conforming to such a standard. For example, when the copying apparatus 1 detects that a memory card is inserted into the card slot 15 and is inserted, a message prompting a print execution instruction is displayed on the liquid crystal panel. In response to this, the user can give a print instruction by performing an operation for setting printing conditions as necessary. When receiving a print instruction from the user, the copy apparatus 1 reads the image data recorded in the memory card and performs printing on the printing paper. The copy apparatus 1 discharges the printing paper to the paper discharge tray 14 after printing. In addition, image data in the image image area can be extracted from the scanned image data read by the scanner and stored in a memory card mounted in the card slot 15.

図2は、本実施形態に係るコピー装置1のハードウェア構成を示すブロックダイアグラムである。プロセッサ21は、各種の制御プログラムを実行する。つまり、ROM22に格納された各種のプログラムは、プロセッサ21に実行されることにより、他のハードウェアと共働して、コピー装置に所定の機能を実現させる。本実施形態では、ユーザインターフェース機能、スキャナ機能、イメージ生成機能、および印刷制御機能等が少なくとも実現される。   FIG. 2 is a block diagram showing a hardware configuration of the copy apparatus 1 according to the present embodiment. The processor 21 executes various control programs. In other words, the various programs stored in the ROM 22 are executed by the processor 21 to cooperate with other hardware to cause the copying apparatus to realize predetermined functions. In the present embodiment, at least a user interface function, a scanner function, an image generation function, a print control function, and the like are realized.

外部インターフェース回路24は、プロセッサ21がカードスロット15に装着されたメモリカード2に対してアクセスを可能にするためのものである。プロセッサ21は、この外部インターフェース回路24を介してメモリカードに記憶されたイメージデータをRAM23にロードした後、設定された印刷条件に従って、そのイメージデータに基づくイメージデータを生成する。   The external interface circuit 24 is for enabling the processor 21 to access the memory card 2 installed in the card slot 15. The processor 21 loads the image data stored in the memory card via the external interface circuit 24 into the RAM 23, and then generates image data based on the image data in accordance with the set printing conditions.

スキャナ回路25は、原稿台12に載置された原稿を読み取り、スキャンイメージデータとして取り込むためのものである。本実施形態では、スキャナ回路25が原稿をプリスキャンして得たイメージデータを用いて前処理を行う。その前処理結果に基づいて、キャナ回路25が原稿を再びスキャン(本スキャン)して取り込まれたスキャンイメージデータをRAM23にロードした後、プロセッサ21が設定された印刷条件に従って、スキャンイメージデータに基づく印刷イメージデータを生成する。スキャナ回路25は、画像入力の方式(原稿をレンズで縮小して読み取る縮小光学系方式や、原稿幅のCCDを使用して原稿を等倍に読み取る密着光学系方式など)に応じたものを用いることができる。また、スキャナ回路25は、原稿の色情報を読み取るために、所定の方法(モノクロリニアCCDとカラーフィルタを組み合わせる方法や、それ自体が色分解機能を有するカラーリニアCCDを使用する方法等)に応じたものを用いることができる。スキャナ回路25の構成の一例について、図3を用いて後に説明する。   The scanner circuit 25 is for reading a document placed on the document table 12 and capturing it as scan image data. In this embodiment, the scanner circuit 25 performs preprocessing using image data obtained by prescanning a document. Based on the pre-processing result, the scanner circuit 25 scans the original again (main scan), loads the scanned image data loaded into the RAM 23, and then the processor 21 based on the scanned image data according to the set printing conditions. Print image data is generated. The scanner circuit 25 uses an image input method (such as a reduction optical system method that reads a document by reducing it with a lens or a contact optical system method that reads a document at an equal magnification using a CCD having a document width). be able to. In addition, the scanner circuit 25 corresponds to a predetermined method (a method of combining a monochrome linear CCD and a color filter, a method of using a color linear CCD having a color separation function, etc.) in order to read color information of an original. Can be used. An example of the configuration of the scanner circuit 25 will be described later with reference to FIG.

イメージメモリ26は、生成された印刷イメージデータを記憶するためのものである。エンジンコントローラ27は、プリントエンジン28の動作を制御しながら、イメージメモリ26に記憶された印刷イメージデータを読み出して、プリントエンジン28に供給する。エンジンコントローラ27は、例えば、イメージメモリ26に所定のバンド幅の印刷イメージデータが展開された時点で、プロセッサ21から送られる印刷実行命令をトリガとして起動される。   The image memory 26 is for storing the generated print image data. The engine controller 27 reads out print image data stored in the image memory 26 while controlling the operation of the print engine 28 and supplies the print image data to the print engine 28. For example, the engine controller 27 is activated when a print execution command sent from the processor 21 is triggered when print image data having a predetermined bandwidth is developed in the image memory 26.

プリントエンジン28は、例えば、紙送り機構やプリントヘッドなどによって構成され、紙などの印刷媒体に印刷を行うものである。プリントエンジン28は、レーザプリンタやシリアルプリンタといったプリンタの種類に応じたものを用いることができる。   The print engine 28 includes, for example, a paper feed mechanism, a print head, and the like, and performs printing on a print medium such as paper. As the print engine 28, a printer corresponding to the type of printer such as a laser printer or a serial printer can be used.

ユーザインターフェース回路29は、液晶パネルおよび各種ボタンにより実現されるユーザインターフェース11を制御するためのものである。   The user interface circuit 29 is for controlling the user interface 11 realized by a liquid crystal panel and various buttons.

次に、スキャナ回路25の構成について図3を用いて説明する。同図では、原稿台12及びスキャナ回路25の概略断面図を示している。スキャナ回路25は、スリット255,256を有する筐体250内に、棒状の光源251と、原稿台12に載せられた原稿31からの反射光を縮小して結像させるレンズ252と、レンズ252によって結像されたイメージを電気信号に変換し、イメージデータを出力するCCD253とが格納されている。光源251からの光は、スリット255を通して原稿台12の下面へ照射される。そして、原稿台12に戴置されている原稿31が、この照射された光を反射すると、その反射光のうちスリット256を通過したものがレンズ252に入射する。図3(a)では、スキャナ回路25は図示しないキャリッジに乗り、原稿台12に戴置されている原稿31を図中の右から左方向へ走査し、原稿31全体をスキャンする。但し、原稿31とスキャナ回路25とは、相対的な位置の変化により原稿31全体をスキャンすればよいので、スキャナ回路25を固定し、紙送り機構によって原稿31を移動させてもよい。   Next, the configuration of the scanner circuit 25 will be described with reference to FIG. In the figure, a schematic sectional view of the document table 12 and the scanner circuit 25 is shown. The scanner circuit 25 includes a rod-shaped light source 251, a lens 252 that reduces the reflected light from the document 31 placed on the document table 12, and a lens 252 in a housing 250 having slits 255 and 256. A CCD 253 for converting the formed image into an electrical signal and outputting image data is stored. Light from the light source 251 is applied to the lower surface of the document table 12 through the slit 255. Then, when the document 31 placed on the document table 12 reflects the irradiated light, the reflected light that has passed through the slit 256 is incident on the lens 252. 3A, the scanner circuit 25 rides on a carriage (not shown), scans the document 31 placed on the document table 12 from right to left in the drawing, and scans the entire document 31. However, since the original 31 and the scanner circuit 25 only need to scan the entire original 31 by a relative change in position, the scanner 31 may be fixed and the original 31 may be moved by a paper feed mechanism.

ここで、原稿台12に戴置されている原稿31にはある程度の厚みがある。このため、光源251から光を照射すると、原稿の外縁311(311a、311b、311c、311d)部分にわずかに影ができる。上述の通り、光源251から原稿台12に対してスリット255を通して斜めに光が当てられるので、特に外縁311a部分に影が強くでることが多い。   Here, the document 31 placed on the document table 12 has a certain thickness. Therefore, when light is emitted from the light source 251, a slight shadow is formed on the outer edge 311 (311 a, 311 b, 311 c, 311 d) portion of the document. As described above, since light is applied obliquely from the light source 251 to the document table 12 through the slit 255, a shadow is often strong particularly on the outer edge 311a.

図3(b)は、図3(a)におけるA−A断面図である。同図に示すように、棒状の光源251の至る所から原稿台12の下面に対して光が照射される。そこで、走査方向と平行な外縁311c、311dについては、原稿台12に蓋13を被せたときに、外縁311c、311d部分にできる原稿台12と蓋13との隙間の大きさによって影が出たり、出なかったりすることがある。以下の例では、例えば図5に示すように、原稿31として長方形の写真シートが戴置されているときに、長方形の隣り合う2辺に影がでる場合を例にとって説明するが、長方形の3辺以上に影が出る場合や、写真イメージの上下方向の一辺に影が出る場合でも同様に行うことができる。   FIG.3 (b) is AA sectional drawing in Fig.3 (a). As shown in the figure, light is irradiated to the lower surface of the document table 12 from all over the bar-shaped light source 251. Therefore, the outer edges 311c and 311d parallel to the scanning direction may be shaded depending on the size of the gap between the document table 12 and the cover 13 formed on the outer edges 311c and 311d when the document table 12 is covered with the cover 13. , May not come out. In the following example, as shown in FIG. 5, for example, when a rectangular photographic sheet is placed as the document 31, a description will be given by taking an example in which shadows appear on two adjacent sides of the rectangle. The same process can be performed when a shadow appears beyond the side or when a shadow appears on one side in the vertical direction of the photographic image.

次に、上述のコピー装置1を用いて、写真シートに印刷された写真イメージを読み込み、その写真イメージを縁(写真イメージの周囲の余白)なしで印刷する場合の処理について説明する。このコピー処理の全体の処理手順を図4のフローチャートで説明する。なお、この明細書において、写真イメージが印刷された写真シートには、コンピュータなどに取り込まれたデジタルデータの画像をプリンタで印刷したもののほか、銀塩写真も含む。すなわち、写真シート上に何らかの方法により画像などの写真イメージが定着されていればよい。   Next, a description will be given of processing when a photographic image printed on a photographic sheet is read using the above-described copying apparatus 1 and the photographic image is printed without a border (a margin around the photographic image). The overall processing procedure of this copy processing will be described with reference to the flowchart of FIG. In this specification, the photographic sheet on which a photographic image is printed includes a silver salt photograph in addition to a digital data image captured by a computer or the like printed by a printer. That is, it is sufficient that a photographic image such as an image is fixed on the photographic sheet by some method.

まず、ユーザからのコピー指示を受けると、スキャナ回路25が原稿台12上の原稿をプリスキャンして、前処理のためのプリスキャンイメージデータを取得する(S101)。ここで、原稿として、例えば図5(a)の写真シートが原稿台12に載せられているときにプリスキャンが行われると、図5(b)のようなプリスキャンイメージデータ40が得られる。このとき、プロセッサ21は、前処理としてプリスキャンイメージデータ40に基づいて、写真シートに印刷されている写真イメージ領域(図5(d)の75の領域)を特定する(S102)。この前処理では、原稿の写真シートが縁あり印刷されているか、縁なし印刷されているかにかかわらず、写真イメージ領域のみを特定する。この前処理の詳細については後述する。   First, upon receiving a copy instruction from the user, the scanner circuit 25 prescans the document on the document table 12 and acquires prescan image data for preprocessing (S101). Here, when a prescan is performed when, for example, the photographic sheet of FIG. 5A is placed on the document table 12 as a document, prescan image data 40 as shown in FIG. 5B is obtained. At this time, the processor 21 specifies a photographic image region (region 75 in FIG. 5D) printed on the photographic sheet based on the pre-scan image data 40 as preprocessing (S102). In this preprocessing, only the photographic image area is specified regardless of whether the photographic sheet of the document is printed with a border or without a border. Details of this preprocessing will be described later.

上述の前処理により写真イメージ領域が特定された後、スキャナ回路25が原稿を本スキャンして、スキャンイメージデータを取得する(S103)。プロセッサ21は、この本スキャンで取得したスキャンイメージデータから、前処理により特定された写真イメージ領域のスキャンイメージデータを抽出する(S104)。すなわち、これにより写真イメージの周囲の縁が除去される。そして、ステップS104で抽出されたイメージデータに対して、プロセッサ21は所定の処理を実行し(S105)、その後、縁なし印刷する(S106)。   After the photographic image area is specified by the above preprocessing, the scanner circuit 25 performs a main scan on the document to obtain scan image data (S103). The processor 21 extracts the scan image data of the photographic image area specified by the preprocessing from the scan image data acquired in the main scan (S104). That is, this removes the peripheral edges of the photographic image. Then, the processor 21 performs a predetermined process on the image data extracted in step S104 (S105), and then performs borderless printing (S106).

なお、ステップS103を行う前に、S102で特定されたイメージ領域をユーザインターフェース11に表示して、ユーザからの修正を受け付けてもよい。これについても後述する。   Before performing step S103, the image area specified in S102 may be displayed on the user interface 11 to accept correction from the user. This will also be described later.

また、ステップS105では複数の処理を行ってもよいし、何の処理も行わなくてもよい。例えば、ステップS104で抽出されたイメージデータをメモリカードに格納する処理でもよいし、退色復元処理などでもよい。   In step S105, a plurality of processes may be performed, or no process may be performed. For example, the image data extracted in step S104 may be stored in a memory card, or a fading restoration process may be performed.

さらには、以下のような処理でもよい。すなわち、ステップS104で抽出されたイメージデータに基づいて写真イメージ領域のサイズと印刷用紙のサイズとを比較する。そして、写真イメージ領域のサイズが印刷用紙のサイズと同一またはこれよりもわずかに大きくなるように、拡大または縮小する調整の要否を判定する。拡大または縮小の処理が必要であるときはそれを行い、いずれも必要でないときは拡大および縮小のいずれもせず、ステップS106で印刷を行う。このとき、印刷用紙のサイズに関する情報は、コピー装置1が予め保持している印刷用紙サイズのデータを参照して取得してもよい。   Further, the following processing may be performed. That is, the size of the photographic image area is compared with the size of the printing paper based on the image data extracted in step S104. Then, it is determined whether or not adjustment to enlarge or reduce is necessary so that the size of the photographic image area is the same as or slightly larger than the size of the printing paper. If enlargement or reduction processing is necessary, it is performed. If neither is necessary, neither enlargement nor reduction is performed, and printing is performed in step S106. At this time, the information regarding the size of the printing paper may be obtained by referring to the printing paper size data held in advance by the copying apparatus 1.

ステップS106の縁なし印刷では、方形の印刷用紙の4辺すべてについて縁がないように印刷することができる。さらには、いずれかの3辺、いずれかの2辺、あるいはいずれかの1辺について縁がないように印刷してもよい。ステップS106で印刷した結果、いずれかの辺に縁ができる場合は、意図的に縁ができるように印刷する場合と、スキューなどが原因で意図しないのに縁ができてしまうような場合とがある。   In the borderless printing in step S106, printing can be performed so that there are no borders on all four sides of the square printing paper. Furthermore, printing may be performed so that there is no edge on any three sides, any two sides, or any one side. As a result of printing in step S106, when one of the sides has an edge, there are a case where the edge is intentionally printed, and a case where the edge is formed unintentionally due to a skew or the like. is there.

次に、ステップS102の前処理について詳細に説明する。図5(a)は、原稿(原画像)として原稿台12に載せられる写真シート32の一例を示す図である。写真シート32には写真イメージ33が印刷されている。写真シート32には、写真イメージ33の周囲に縁34があり、いわゆる縁あり印刷がされている。そこで、まず前処理の第1段階として、プリスキャンイメージデータから、写真シート領域の辺に沿ってできる影を用いて写真シートの領域を抽出する。この写真シート領域抽出処理の手順を図6のフローチャートに沿って説明する。   Next, the preprocessing in step S102 will be described in detail. FIG. 5A is a view showing an example of a photographic sheet 32 placed on the document table 12 as a document (original image). A photographic image 33 is printed on the photographic sheet 32. The photographic sheet 32 has a rim 34 around the photographic image 33 and is printed with a so-called rim. Therefore, as a first stage of pre-processing, a photographic sheet region is extracted from the pre-scan image data using a shadow formed along the side of the photographic sheet region. The procedure of this photographic sheet area extraction process will be described with reference to the flowchart of FIG.

まず、写真シート領域抽出処理のために、この写真シート32を原稿台12に載せ、スキャナ回路25が写真シート32をプリスキャンし、スキャンイメージデータを取得する(図4のS101)。このスキャンイメージデータは、たとえばR(赤)G(緑)B(青)からなるカラーイメージデータであり、RAM23に格納される。   First, for photographic sheet region extraction processing, this photographic sheet 32 is placed on the document table 12, and the scanner circuit 25 prescans the photographic sheet 32 to obtain scan image data (S101 in FIG. 4). The scan image data is color image data composed of, for example, R (red), G (green), and B (blue), and is stored in the RAM 23.

ここで、スキャナ回路25が読み取ったスキャンイメージ40が図5(b)である。スキャンイメージ40には、同図に示すように、写真シート領域のイメージと、その背景領域(写真シート領域以外)41とが含まれている。ここでは、写真シート32に厚みがあることによって生じる写真シート外縁の影42、43が、写真シート領域の下辺および右辺に沿って出ている。影42,43は所々とぎれている部分(たとえば44)もある。   Here, the scan image 40 read by the scanner circuit 25 is shown in FIG. As shown in the figure, the scan image 40 includes an image of a photographic sheet region and a background region (other than the photographic sheet region) 41 thereof. Here, shadows 42 and 43 on the outer edge of the photographic sheet caused by the thickness of the photographic sheet 32 appear along the lower and right sides of the photographic sheet region. The shadows 42 and 43 have a part (for example, 44) which is disconnected in some places.

次に、図5(b)のスキャンイメージデータの各画素のR,G,B値の加重平均に基づいて定まる輝度を用いて、スキャンイメージ40が2値化されて2値化イメージが得られる(S202)。この2値化処理は、たとえば以下のように行う。すなわち、スキャンイメージ40上の、図中左右方向の1ラインについて、左右のそれぞれからスキャンして輝度レベルの判定を行う。輝度レベルの判定とは、例えば、ライン上のある画素の輝度レベルが、背景部分41の輝度レベルより所定レベル以上低いか、あるいは、その画素の輝度レベルが所定の輝度レベル以下であるかを判定する。そして、ライン左からスキャンして上記輝度レベル判定を行って抽出された画素(左抽出画素)、及びライン右から同様にスキャンして上記輝度レベル判定を行って抽出された画素(右抽出画素)を“1”(画像あり)とする。さらに、左抽出画素と右抽出画素との間のそのライン上のすべての画素を“1”(画像あり)とする。そして、同じライン上で、左抽出画素よりも左の画素、及び右抽出画素よりも右の画素を“0”(画像なし)として2値化する。この処理をスキャンイメージ40の左右方向の全ラインについて行い、スキャンイメージ40全体を2値化して、2値化イメージ50を生成する。図5(b)のスキャンイメージ40に対して上記のような処理を適用して得られた2値化イメージ50が図5(c)である。   Next, the scan image 40 is binarized using the luminance determined based on the weighted average of the R, G, and B values of each pixel of the scan image data in FIG. 5B, and a binarized image is obtained. (S202). This binarization processing is performed as follows, for example. In other words, the luminance level is determined by scanning from the left and right sides of one line in the horizontal direction in the figure on the scan image 40. The determination of the luminance level is, for example, determining whether the luminance level of a certain pixel on the line is lower than the luminance level of the background portion 41 by a predetermined level or more, or whether the luminance level of the pixel is equal to or lower than the predetermined luminance level. To do. Then, a pixel extracted by scanning from the left of the line and performing the luminance level determination (left extracted pixel), and a pixel extracted by scanning similarly from the right of the line and performing the luminance level determination (right extracted pixel) Is “1” (image is present). Further, all the pixels on the line between the left extracted pixel and the right extracted pixel are set to “1” (image is present). Then, on the same line, the pixel left from the left extraction pixel and the pixel right from the right extraction pixel are binarized as “0” (no image). This process is performed for all the left and right lines of the scan image 40, and the entire scan image 40 is binarized to generate a binarized image 50. FIG. 5C shows a binarized image 50 obtained by applying the above processing to the scan image 40 shown in FIG.

ここで、図5(c)の2値化イメージ50を参照すると、たとえば51の様に、スキャンイメージ40において影が途切れている部分は画像あり(“1”)とはされていない。そこで、図5(b)のスキャンイメージ40または2値化イメージ50を用いて、影を抽出する処理を行う(S203)。図7では、スキャンイメージ40を用いて影の抽出処理を行うときの詳細な手順について説明する。   Here, referring to the binarized image 50 in FIG. 5C, a portion where the shadow is interrupted in the scan image 40 is not considered to have an image (“1”), for example, 51. Therefore, a process of extracting a shadow is performed using the scan image 40 or the binarized image 50 of FIG. 5B (S203). In FIG. 7, a detailed procedure when performing shadow extraction processing using the scan image 40 will be described.

図7(a)には、この影抽出の処理で使用するマスク60の一例を示す。このマスク60は、たとえば、横4ピクセル縦7ピクセルのサイズである。この処理では、まず、図7(b)に示すように、スキャンイメージ40の右から左へ向けて(つまり影ができている側から)、マスク60を適用する。このとき、マスク60の一番左の列62の7画素の輝度の平均値を求める。そして、一番右の列61の7画素のうち、列62の平均値より所定レベル以上輝度が低い画素が5画素以上あるとき、列61の7画素はいずれも影を構成するものと判定する。マスク60を移動させながらこの処理をスキャンイメージ40の全画素に対して行う。これにより、写真シート32の右に出ている影43が抽出される。   FIG. 7A shows an example of the mask 60 used in this shadow extraction process. The mask 60 is, for example, 4 pixels wide by 7 pixels wide. In this process, first, as shown in FIG. 7B, the mask 60 is applied from the right to the left of the scan image 40 (that is, from the shadowed side). At this time, the average value of the luminances of the seven pixels in the leftmost column 62 of the mask 60 is obtained. Then, among the seven pixels in the rightmost column 61, when there are five or more pixels whose luminance is lower than the average value in the column 62 by a predetermined level or more, it is determined that all the seven pixels in the column 61 constitute a shadow. . This process is performed on all the pixels of the scan image 40 while moving the mask 60. Thereby, the shadow 43 on the right side of the photographic sheet 32 is extracted.

ところで、スキャナによっては、スキャンイメージ40の水平方向及び垂直方向に並んだ画素において、図10に示すように長周期の輝度の変動を有する場合がある。同図において、横軸は、スキャンイメージ40の任意の点から水平方向または垂直方向への画素数で表した距離、縦軸は輝度である。従って、輝度値がこのように長周期で輝度値が変化するスキャンデータに対しては、輝度の絶対値を用いて影を抽出するのは難しい。そこで、この場合には、所定の狭い範囲内(例えば、図中のA)で相対的に輝度が落ち込んでいる部分を影として抽出する必要がある。この場合のマスク60を用いた影抽出は、例えば、以下のように行う。すなわち、列61の7画素及び列62の7画素のそれぞれについて、輝度の平均値及び分布を求める。そして、それぞれの平均値の差が所定値以上であり、かつ、それぞれの分散が所定範囲内であるときに、列61の7画素が影を構成すると判定してもよい。   Incidentally, depending on the scanner, the pixels arranged in the horizontal direction and the vertical direction of the scan image 40 may have long-period luminance fluctuations as shown in FIG. In the figure, the horizontal axis represents the distance represented by the number of pixels from an arbitrary point of the scan image 40 in the horizontal direction or the vertical direction, and the vertical axis represents the luminance. Therefore, it is difficult to extract a shadow using the absolute value of the luminance for the scan data whose luminance value changes in such a long cycle. Therefore, in this case, it is necessary to extract, as a shadow, a portion where the luminance is relatively lowered within a predetermined narrow range (for example, A in the figure). The shadow extraction using the mask 60 in this case is performed as follows, for example. That is, the average value and distribution of luminance are obtained for each of the seven pixels in column 61 and the seven pixels in column 62. Then, when the difference between the respective average values is equal to or greater than the predetermined value and the respective variances are within the predetermined range, it may be determined that the seven pixels in the column 61 form a shadow.

次に、マスク60を右へ90°回転させ、スキャンイメージ40の下から上へ向けて(つまり、この場合も影ができている側から)マスク60を適用し、上記と同様の処理を行って写真シート32の下の影42を抽出する。   Next, the mask 60 is rotated 90 ° to the right, the mask 60 is applied from the bottom to the top of the scan image 40 (that is, from the shadowed side in this case), and the same processing as described above is performed. Then, the shadow 42 under the photographic sheet 32 is extracted.

なお、2値化イメージ50を用いて影の抽出処理を行うときは、輝度値の平均ではなく、列61における“1”の画素数が所定数以上であるかにより判定してもよい。   When shadow extraction processing is performed using the binarized image 50, determination may be made based on whether the number of “1” pixels in the column 61 is equal to or greater than a predetermined number, instead of the average luminance value.

上記処理により、影と判定された画素を“1”、それ以外の画素を“0”として影イメージを生成する。   With the above processing, a shadow image is generated with “1” for pixels determined to be shadows and “0” for other pixels.

ここで、上記の影抽出処理を、たとえば図8(a)に示すような複数の写真シート32a〜dを含む原画像30をスキャンしたスキャンイメージに適用すると、図8(b)に示す影イメージ画像70を得ることができる。ここで、図8(b)に示すように、上述の処理を行って影を抽出しても、影が途切れた部分71が残ってしまう場合がある。そこで、さらにこの途切れた部分71を補間するための処理を行う。   Here, when the above shadow extraction processing is applied to a scanned image obtained by scanning an original image 30 including a plurality of photographic sheets 32a to 32d as shown in FIG. 8A, for example, the shadow image shown in FIG. An image 70 can be obtained. Here, as shown in FIG. 8B, even if the above-described processing is performed to extract a shadow, a portion 71 where the shadow is interrupted may remain. Therefore, processing for interpolating the interrupted portion 71 is further performed.

すなわち、影イメージ画像70において影の途切れた部分71を検出すると、その間隔の距離を測定し、所定のしきい値と比較する。そして、影の途切れた部分71の間隔の距離が所定値以下であるときは、これをつなげる。ここで、しきい値は、例えば5mmとすると好適である。これは、写真シートに縁あり印刷がされたときの縁の幅の最大値が5mmであることと対応する。これにより、複数の写真シート間にできた間隔x、yはつなげられず、写真シート間の間隔と影の途切れ71とを明確に区別できる。   That is, when a shadowed portion 71 is detected in the shadow image 70, the distance of the interval is measured and compared with a predetermined threshold value. And when the distance of the space | interval of the part 71 where the shadow interrupted is below a predetermined value, this is connected. Here, the threshold value is preferably 5 mm, for example. This corresponds to the maximum value of the width of the edge when the photographic sheet is printed with the edge being 5 mm. Thus, the intervals x and y formed between the plurality of photographic sheets are not connected, and the interval between the photographic sheets and the shadow break 71 can be clearly distinguished.

再び図5を参照すると、図5(c)の2値化イメージ50と、上記影抽出処理により得られた影イメージ72とを重ね合わせると、図5(d)に示すようなイメージが得られる。ここで、影72と2値化イメージ50において“1”となっている全画素に内接する長方形、あるいは影72を2辺とする長方形の領域75が写真シート領域(影72と破線で囲まれた領域)75として抽出される。また、影抽出処理で左右方向あるいは上下方向の辺に沿った影42、43に対応する影イメージのみが得られたときは、その影と2値化イメージ50において“1”となっている全画素に内接する長方形の領域が、写真シート領域として抽出されるようにしてもよい。さらに、図8の例のように原画像に複数の写真シートが含まれる場合には、各写真シートの領域が、上述の処理によりそれぞれ抽出される。   Referring again to FIG. 5, when the binarized image 50 of FIG. 5C and the shadow image 72 obtained by the shadow extraction process are superimposed, an image as shown in FIG. 5D is obtained. . Here, a rectangle inscribed in all pixels which are “1” in the shadow 72 and the binarized image 50 or a rectangular region 75 having the shadow 72 as two sides is surrounded by a photographic sheet region (shadow 72 and a broken line). (Region) 75 is extracted. In addition, when only shadow images corresponding to the shadows 42 and 43 along the side in the horizontal direction or the vertical direction are obtained by the shadow extraction process, all of the shadows and the binarized image 50 are “1”. A rectangular area inscribed in the pixel may be extracted as a photographic sheet area. Further, when a plurality of photographic sheets are included in the original image as in the example of FIG. 8, the areas of each photographic sheet are extracted by the above-described processing.

次に、上述した前処理の第1段階に続く前処理の第2段階として、上記第1段階の処理で抽出された写真シート領域のイメージデータを用いて縁の有無を判定し、その中から縁を含まない写真イメージ領域を特定し、これを抽出する。その具体的な処理について図9を用いて説明する。同図を参照すると、原画像の写真シートに縁があるときには、抽出された写真シート領域72のイメージにも縁に対応する領域73が含まれていることがわかる。そこで、この場合には写真シート領域72全体から縁領域73を除去して写真イメージ領域75のみを抽出する。縁領域73の除去の手順は、例えば、以下の通りである。なお、以下の説明では、下辺が最も影が出やすい辺であり、次に影が出やすい辺が右辺である場合について説明している。従って、影が出やすい辺の順序が異なれば、それに応じて縁領域有無の判定順序を変更して行うのが好適である。   Next, as the second stage of the pre-process following the first stage of the pre-process described above, the presence / absence of a border is determined using the image data of the photographic sheet region extracted in the process of the first stage. A photographic image area that does not include a border is identified and extracted. The specific process will be described with reference to FIG. Referring to the figure, when the photographic sheet of the original image has an edge, it can be seen that the extracted image of the photographic sheet area 72 also includes an area 73 corresponding to the edge. Therefore, in this case, the edge region 73 is removed from the entire photographic sheet region 72 and only the photographic image region 75 is extracted. The procedure for removing the edge region 73 is, for example, as follows. In the following description, a case is described in which the lower side is the side where the shadow is most likely to appear, and the next side where the shadow is likely to appear is the right side. Therefore, if the order of sides where shadows are likely to appear is different, it is preferable to change the judgment order of the presence / absence of the edge region accordingly.

縁領域除去の第1の処理手順は、写真シート領域72の下辺、右辺、左辺、上辺(A〜D)の順で、縁領域73の有無を判定し、縁領域73が存在すると判定された場合にはその領域を除去する。   In the first processing procedure for removing the edge area, the presence or absence of the edge area 73 is determined in the order of the lower side, the right side, the left side, and the upper side (A to D) of the photographic sheet area 72, and it is determined that the edge area 73 exists. If so, the area is removed.

この第1の処理手順をフローチャートに示したものが図11である。すなわち、写真シート領域72の下辺について、縁領域の有無の判定を行う(S31)。この縁領域の有無の判定は、例えば下辺の場合には、下辺の外縁から3mm程度内側のライン74上の画素について輝度を調べ、所定の輝度レベル以下の画素の数が所定の割合よりも多いときは、縁なしと判定する。逆に、所定の輝度レベル以下の画素の数が所定の割合に満たないときは、縁があると判定するようにしてもよい。右辺、左辺及び上辺の縁判定を行う場合も、同様の処理手順で行う。   FIG. 11 is a flowchart showing the first processing procedure. That is, it is determined whether or not there is an edge area for the lower side of the photographic sheet area 72 (S31). For example, in the case of the lower side, the determination of the presence / absence of the edge region is performed by checking the luminance of pixels on the line 74 approximately 3 mm from the outer edge of the lower side, and the number of pixels having a predetermined luminance level or less is larger than a predetermined ratio. When it is determined that there is no border. Conversely, when the number of pixels below a predetermined luminance level does not reach a predetermined ratio, it may be determined that there is an edge. The same processing procedure is used when determining the edges of the right side, the left side, and the upper side.

そして、ステップS31で縁領域があると判定されたときは(S31:Yes)、縁領域に相当する、下辺から所定の幅(例えば5mm)の領域を除去する(S32)。一方、下辺において縁がないと判定されたときは(S31:No)、他の辺について縁の有無の判定を行わず、縁除去処理を終了する。これは、縁の有無が最もはっきり認識できるのは下辺であるから、下辺で縁が検出されないときは、この原稿を縁なしとみなしている。   When it is determined in step S31 that there is an edge area (S31: Yes), an area having a predetermined width (for example, 5 mm) corresponding to the edge area is removed (S32). On the other hand, when it is determined that there is no edge on the lower side (S31: No), the edge removal process is terminated without determining the presence or absence of an edge for the other side. This is because it is the lower side that can clearly recognize the presence or absence of the edge, and when the edge is not detected on the lower side, the document is regarded as having no edge.

また、ステップS32で下辺の縁領域が除去されたときは、それに続いて右辺について縁領域の有無の判定を行う(S33)。そして、縁領域があると判定されたときは(S33:Yes)、縁領域に相当する右辺から所定幅の領域を除去し(S34)、縁領域がないと判定されたときは(S33:No)、ステップS34をスキップする。   When the lower edge region is removed in step S32, the presence / absence of the edge region is determined for the right side (S33). When it is determined that there is an edge area (S33: Yes), an area having a predetermined width is removed from the right side corresponding to the edge area (S34), and when it is determined that there is no edge area (S33: No). ), Step S34 is skipped.

左辺および上辺については、図11に示す通り、右辺と同様に縁領域の有無を判定し、その除去処理を行う(S35〜S38)。なお、ここでは、最も影が強く出る下辺以外の3辺について、右辺、左辺、下辺の順で処理を行っているが、必ずしもこの順序でなくてもよい。   For the left side and the top side, as shown in FIG. 11, the presence / absence of an edge region is determined similarly to the right side, and the removal process is performed (S35 to S38). In this example, processing is performed in the order of the right side, the left side, and the lower side for the three sides other than the lower side where the shadow is the strongest, but this order is not necessarily required.

次に、縁領域除去の第2の処理手順について、図12のフローチャートを用いて説明する。   Next, a second processing procedure for edge region removal will be described with reference to the flowchart of FIG.

まず、影が出やすい下辺と右辺の両方について、縁領域の有無判定を行う(S41)。そして、下辺と右辺の両方または少なくともいずれか一方に縁がないと判定されたときは(S41:No)、他の辺について縁の有無の判定を行わず、縁除去処理を終了する。これは、影が出やすい下辺及び右辺のいずれか一方でも縁が検出されないときは、この原稿を縁なしとみなしている。   First, the presence / absence of an edge region is determined for both the lower side and the right side where shadows are likely to appear (S41). When it is determined that there is no edge on both or at least one of the lower side and the right side (S41: No), the edge removal process is terminated without determining the presence or absence of an edge for the other side. This means that if no edge is detected on either the lower side or the right side where a shadow is likely to appear, this document is regarded as having no edge.

一方、下辺と右辺のいずれにも縁があると判定されたときは(S41:Yes)、下辺と右辺について、それぞれ縁の除去処理を実行する(S42)。次に、左辺と上辺については、第1の処理手順の場合と同様に、それぞれの辺について縁領域の有無を判定し(S43,S45)、縁領域があると判定されたときには、それぞれの縁領域を除去する(S44,S45)。なお、ここでは、左辺、上辺の順で縁領域の判定、除去をしているが、順序は逆であってもよい。   On the other hand, when it is determined that there is an edge on both the lower side and the right side (S41: Yes), an edge removal process is executed for each of the lower side and the right side (S42). Next, for the left side and the upper side, as in the case of the first processing procedure, the presence / absence of an edge region is determined for each side (S43, S45). The area is removed (S44, S45). Here, the edge regions are determined and removed in the order of the left side and the upper side, but the order may be reversed.

ステップS41において、下辺と右辺の両方について縁があると判定されれば、その原稿は縁ありである可能性が高いと考えられる。この場合、左辺と上辺については無条件で縁ありとして縁の除去処理を実行することも考えられる。しかしながら、本実施形態では各辺について、それぞれ縁の有無を判定している。これは、影が現れにくい辺については、縁領域と背景との区別がつきにくいため、写真シート領域の検出処理において、縁の領域を背景と間違えて除去してしまっている可能性がある。つまり、検出された写真シート領域には、本来含まれているはずの縁領域が含まれないこともある。それ故、影が現れにくい辺については、上述のようにそれぞれの辺の縁の有無の判定を行うのが好ましい。   If it is determined in step S41 that there are edges on both the lower side and the right side, it is considered that the document is highly likely to have edges. In this case, it is also conceivable to execute the edge removal process with the left and upper sides unconditionally having edges. However, in this embodiment, the presence or absence of an edge is determined for each side. This is because it is difficult to distinguish the edge area from the background for the side where the shadow is difficult to appear, and therefore the edge area may be mistakenly removed from the background in the photographic sheet area detection process. In other words, the detected photographic sheet region may not include the edge region that should have been originally included. Therefore, it is preferable to determine the presence or absence of the edge of each side as described above for the side where the shadow is difficult to appear.

以上のようにして、写真シート領域から縁領域を除去することにより、最終的に図9に示す太破線で囲まれた領域75が写真イメージ領域として特定される。   By removing the edge area from the photographic sheet area as described above, the area 75 surrounded by the thick broken line shown in FIG. 9 is finally specified as the photographic image area.

ここで、上記のようにして特定された写真イメージ領域を、ユーザが修正できるようにしてもよい。修正を行う場合は、例えば、プロセッサ21がユーザインターフェース11の表示画面に、プレスキャンイメージ40と、上述のようにして抽出された写真イメージ領域75を示す画像とを重ねて表示させる。そして、ユーザインターフェース11を介してユーザからの写真イメージ領域の拡大、縮小などの修正するための入力を受け付けると、プロセッサ21がこの修正入力に基づいて写真イメージ領域を修正する。   Here, the user may be able to correct the photographic image area specified as described above. When the correction is performed, for example, the processor 21 causes the display screen of the user interface 11 to superimpose and display the pre-scan image 40 and the image showing the photographic image area 75 extracted as described above. When receiving an input from the user for correction such as enlargement or reduction of the photographic image area via the user interface 11, the processor 21 corrects the photographic image area based on the correction input.

また、写真イメージ領域のイメージデータを所定の記憶媒体に格納することもできる。この場合、プロセッサ21が、印刷の対象となったイメージデータを記憶媒体に格納するために、所定のファイルシステムに従ったファイルを生成する。そして、ここで生成されたファイルを、例えば、カードスロット15に装着されたメモリカードに格納する。このファイルの生成及びメモリカードへの装着は、印刷を実行する前であってもよいし、印刷実行後であってもよい。さらに、コピー装置1が印刷を行わずに、写真イメージ領域のイメージデータを記憶媒体に格納するだけでもよい。つまり、この場合はコピー装置1がスキャナ装置として機能する。また、写真イメージ領域のイメージデータが格納される記憶媒体は、カードスロット15に着脱自在のメモリカードの他、コピー装置1に内蔵されている記憶媒体でもよい。   In addition, the image data of the photographic image area can be stored in a predetermined storage medium. In this case, the processor 21 generates a file according to a predetermined file system in order to store the image data to be printed on the storage medium. Then, the file generated here is stored in, for example, a memory card attached to the card slot 15. The generation of the file and the attachment to the memory card may be performed before the printing is performed or after the printing is performed. Further, the image data of the photographic image area may be stored in the storage medium without the copying apparatus 1 performing printing. That is, in this case, the copy apparatus 1 functions as a scanner apparatus. Further, the storage medium storing the image data of the photographic image area may be a storage medium built in the copying apparatus 1 as well as a memory card detachable from the card slot 15.

以上説明したように、プリスキャンにより得たイメージデータに対して上述のような前処理を適用し、写真シートに印刷された写真イメージの領域を特定することができる。これにより、本実施形態に係るコピー装置1は、上述のように、原画像の写真シートの縁の有無にかかわらず、縁なしでコピーを行うことができる。   As described above, it is possible to specify the region of the photographic image printed on the photographic sheet by applying the preprocessing as described above to the image data obtained by the pre-scan. Thereby, as described above, the copying apparatus 1 according to the present embodiment can perform copying without a border regardless of the presence or absence of the border of the photographic sheet of the original image.

上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。   The above-described embodiments of the present invention are examples for explaining the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.

Claims (3)

棒状の光源を有し、前記棒状の光源を写真イメージが定着された写真シートに対して相対的に移動させながら、前記写真シートに対して斜め方向に光を当てて反射光を読み取り、前記写真シートを含むイメージデータを出力するスキャナ部と、
前記スキャナ部から出力されたイメージデータの輝度情報に基づいて前記写真シートの少なくとも最も影ができやすい一辺に沿ってできた影を検出する影検出部と、
前記スキャナ部から出力されたイメージデータ、及び前記影検出部によって検出された影に基づいて、前記写真シートの領域を抽出する写真シート抽出部と、
前記写真シート抽出部により抽出された前記写真シート領域のイメージデータを用いて、写真イメージ領域の周囲の縁領域の有無を判定する縁判定部であって、前記写真シートに対する前記スキャナ部からの光によって最も影ができやすい一辺について縁の有無を判定し、前記最も影ができやすい一辺に縁がないときは、他の辺について縁の有無の判定をすることなく、前記写真イメージの周囲には縁がないと判定する縁判定部と、
前記縁判定部により前記縁領域があると判定された場合に、前記写真シート領域の外縁から予め定められた幅の前記縁領域を除去して、前記写真イメージ領域を特定し、特定された前記写真イメージ領域を出力する写真イメージ抽出部と、
前記写真イメージ抽出部から出力された前記写真イメージ領域のイメージデータに基づいて、前記写真イメージ領域のサイズが印刷媒体のサイズよりも大きくなるように調整するイメージ処理部と、
前記イメージ処理部から出力されたイメージデータに基づいて、前記印刷媒体へ縁なし印刷を実行する印刷部と、を備えるコピー装置。
A rod-shaped light source is provided, and the rod-shaped light source is moved relative to the photographic sheet on which the photographic image is fixed, and the reflected light is read by applying light obliquely to the photographic sheet. A scanner unit for outputting image data including a sheet;
A shadow detection unit that detects a shadow formed along at least one side of the photographic sheet that is most likely to be a shadow based on luminance information of image data output from the scanner unit;
A photographic sheet extraction unit that extracts an area of the photographic sheet based on the image data output from the scanner unit and the shadow detected by the shadow detection unit;
An edge determination unit that determines the presence or absence of a peripheral region around a photographic image region using image data of the photographic sheet region extracted by the photographic sheet extraction unit , the light from the scanner unit on the photographic sheet To determine the presence or absence of an edge on one side where shadows are most likely to occur, and when there is no edge on one side where shadows are most likely to occur, without determining the presence or absence of edges on other sides, An edge determination unit that determines that there is no edge ;
When the edge determination unit determines that the edge area is present, the edge area having a predetermined width is removed from the outer edge of the photographic sheet area, the photographic image area is specified, and the specified A photographic image extraction unit for outputting a photographic image area;
An image processing unit that adjusts the size of the photographic image region to be larger than the size of the print medium based on the image data of the photographic image region output from the photographic image extraction unit;
And a printing unit that executes borderless printing on the print medium based on image data output from the image processing unit.
棒状の光源を有し、前記棒状の光源を写真イメージが定着された写真シートに対して相対的に移動させながら、前記写真シートに対して斜め方向に光を当てて反射光を読み取り、前記写真シートを含むイメージデータを出力するステップと、
前記出力されたイメージデータの輝度情報に基づいて前記写真シートの少なくとも最も影ができやすい一辺に沿ってできた影を検出するステップと、
前記出力されたイメージデータ、及び前記検出された影に基づいて、前記写真シートの領域を抽出するステップと、
前記抽出された写真シート領域のイメージデータを用いて、写真イメージ領域の周囲の縁領域の有無を判定するステップであって、前記写真シートに対する前記スキャナ部からの光によって最も影ができやすい一辺について縁の有無を判定し、前記最も影ができやすい一辺に縁がないときは、他の辺について縁の有無の判定をすることなく、前記写真イメージの周囲には縁がないと判定するステップと、
前記判定の結果に基づいて、前記縁領域を含まない前記写真イメージ領域を特定するステップと、
前記特定された写真イメージ領域のイメージデータに基づいて、前記写真イメージ領域のサイズが方形の印刷媒体のサイズよりも大きくなるように調整するステップと、
前記印刷媒体のサイズよりも大きくなるように調整されたイメージデータに基づいて、前記印刷媒体へ縁なし印刷を実行するステップと、を備えるコピー方法。
A rod-shaped light source is provided, and the rod-shaped light source is moved relative to the photographic sheet on which the photographic image is fixed, and the reflected light is read by applying light obliquely to the photographic sheet. Outputting image data including a sheet;
Detecting a shadow formed along at least one side of the photographic sheet that is most likely to be shadowed based on luminance information of the output image data;
Extracting a region of the photographic sheet based on the output image data and the detected shadow;
Using the extracted image data of the photographic sheet area to determine the presence or absence of an edge area around the photographic image area, and the one side that is most likely to be shaded by the light from the scanner unit on the photographic sheet Determining the presence or absence of an edge, and determining that there is no edge around the photographic image without determining the presence or absence of an edge on the other side when there is no edge on one side where the shadow is most likely to be formed; ,
Identifying the photographic image region not including the edge region based on the result of the determination;
Adjusting the size of the photographic image area to be larger than the size of a rectangular print medium based on the image data of the identified photographic image area;
Performing borderless printing on the print medium based on image data adjusted to be larger than the size of the print medium.
前記写真イメージ領域を特定するステップは、前記縁領域の有無の判定により前記縁領域があると判定された場合に、前記写真シート領域の外縁から予め定められた幅の前記縁領域を除去して、前記写真イメージ領域を特定する請求項に記載のコピー方法。
The step of specifying the photographic image area includes removing the edge area having a predetermined width from the outer edge of the photographic sheet area when it is determined that the edge area is present by determining whether or not the edge area is present. The copying method according to claim 2 , wherein the photographic image area is specified.
JP2009013380A 2004-05-14 2009-01-23 Photo image area extraction device and copy device Expired - Fee Related JP4623214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009013380A JP4623214B2 (en) 2004-05-14 2009-01-23 Photo image area extraction device and copy device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004145150 2004-05-14
JP2009013380A JP4623214B2 (en) 2004-05-14 2009-01-23 Photo image area extraction device and copy device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004247041A Division JP4277768B2 (en) 2004-05-14 2004-08-26 Photo image area extraction device and copy device

Publications (2)

Publication Number Publication Date
JP2009135954A JP2009135954A (en) 2009-06-18
JP4623214B2 true JP4623214B2 (en) 2011-02-02

Family

ID=40867352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009013380A Expired - Fee Related JP4623214B2 (en) 2004-05-14 2009-01-23 Photo image area extraction device and copy device

Country Status (1)

Country Link
JP (1) JP4623214B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10336428A (en) * 1997-05-29 1998-12-18 Dainippon Screen Mfg Co Ltd Image processing unit
JP2001144920A (en) * 1999-11-10 2001-05-25 Ricoh Co Ltd Image processor, image processing method and computer- readable recording medium for recording program to allow computer to execute the method
JP2003069792A (en) * 2001-08-28 2003-03-07 Oki Data Corp Paper sheet thickness detector and image reader using the same
JP2004104190A (en) * 2002-09-05 2004-04-02 Canon Inc Image processor, control method for image processor, and control program for image processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10336428A (en) * 1997-05-29 1998-12-18 Dainippon Screen Mfg Co Ltd Image processing unit
JP2001144920A (en) * 1999-11-10 2001-05-25 Ricoh Co Ltd Image processor, image processing method and computer- readable recording medium for recording program to allow computer to execute the method
JP2003069792A (en) * 2001-08-28 2003-03-07 Oki Data Corp Paper sheet thickness detector and image reader using the same
JP2004104190A (en) * 2002-09-05 2004-04-02 Canon Inc Image processor, control method for image processor, and control program for image processor

Also Published As

Publication number Publication date
JP2009135954A (en) 2009-06-18

Similar Documents

Publication Publication Date Title
JP3436025B2 (en) Correction method of read image and image reading device
US8208164B2 (en) Image processing apparatus and method
US7830543B2 (en) Photographic image region extracting apparatus and copying apparatus
JP2010011360A (en) Image processor, image reading device, image forming apparatus, image processing method, image processing program, and recording medium
US20100103474A1 (en) Image reading method, image reading apparatus, and program recording medium
JP2008035173A (en) Image processing method
US8285043B2 (en) Image processing apparatus and image processing method
JP2009077068A (en) Image processing apparatus, image processing method, and program
JP4623214B2 (en) Photo image area extraction device and copy device
JP2007208618A (en) Image reading system and method
JP5081885B2 (en) Document reader with preview function
JP2004235680A (en) Manuscript reader
JP2005269095A (en) Image processing method and image processor
JP2006091979A (en) Image processing system and image processing method
JP6950621B2 (en) Image forming device, image processing device, and image processing method
JP4367265B2 (en) Imaging control apparatus and imaging system
JP2009194762A (en) Image processing apparatus
JP2007324648A (en) Image reading system and control method thereof
JP2022025571A (en) Image processing device, image processing method, and program
KR100895622B1 (en) Image forming apparatus and image forming method
JP4936917B2 (en) Document size detection device and image reading device
JP4124219B2 (en) Image processing system
JP4165617B2 (en) Program and recording medium
JP3830385B2 (en) Image processing apparatus, image processing method, and storage medium storing image processing program
JP2008141384A (en) Image processor and image processing program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091013

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100518

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100712

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101018

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees