JP2019149747A - Control program and image processing device - Google Patents

Control program and image processing device Download PDF

Info

Publication number
JP2019149747A
JP2019149747A JP2018034151A JP2018034151A JP2019149747A JP 2019149747 A JP2019149747 A JP 2019149747A JP 2018034151 A JP2018034151 A JP 2018034151A JP 2018034151 A JP2018034151 A JP 2018034151A JP 2019149747 A JP2019149747 A JP 2019149747A
Authority
JP
Japan
Prior art keywords
scan data
image
scan
rotation processing
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018034151A
Other languages
Japanese (ja)
Other versions
JP7031366B2 (en
Inventor
建樹 成田
Takeki Narita
建樹 成田
健二 玉置
Kenji Tamaki
健二 玉置
神谷 信行
Nobuyuki Kamiya
信行 神谷
弘也 野尻
Hiroya Nojiri
弘也 野尻
蕾 李
Lei Li
蕾 李
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018034151A priority Critical patent/JP7031366B2/en
Publication of JP2019149747A publication Critical patent/JP2019149747A/en
Application granted granted Critical
Publication of JP7031366B2 publication Critical patent/JP7031366B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To appropriately perform the rotation processing of an image based on scan data.SOLUTION: When generation of monochromatic-scale scan data is requested and execution of predetermined processing that requires the rotation processing of an image is required, a scan instruction instructing the generation of gray-scale scan data is output. Gray-scale scan data obtained according to the output of a scan instruction is subjected to the rotation processing of an image, and gray-scale scan data having been subjected to rotation processing is converted into binary scan data. Thus, by subjecting gray-scale scan data to the rotation processing of an image, time required for processing can be reduced and the rotation processing of an image can be appropriately performed.SELECTED DRAWING: Figure 1

Description

本発明は、スキャンデータに基づく画像の回転処理を実行可能な画像処理装置のコンピュータが読み取り可能な制御プログラム等に関する。   The present invention relates to a computer-readable control program and the like of an image processing apparatus capable of executing image rotation processing based on scan data.

下記特許文献に記載されているように、スキャンデータに基づく画像を回転させる回転処理を行う技術が知られている。   As described in the following patent document, a technique for performing a rotation process for rotating an image based on scan data is known.

特開2016−63480号公報Japanese Patent Laid-Open No. 2006-63480

本願は、スキャンデータに基づく画像の回転処理に要する時間を短縮することを課題とする。   It is an object of the present application to reduce the time required for image rotation processing based on scan data.

上記課題を解決するために、実施例に開示する制御プログラムは、操作部を備える画像処理装置のコンピュータが読み取り可能な制御プログラムであって、前記コンピュータを、前記操作部を介して、スキャン処理の設定値を受け付ける受付手段と、前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、画像の回転処理を要する所定の処理の実行を要求するものである場合に、グレースケールのスキャンデータの作成を指示するスキャン指示を出力する指示出力手段と、前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第1回転処理実行手段と、前記第1回転処理実行手段による回転処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第1変換手段と、前記第1変換手段により変換された2値のスキャンデータを出力する出力手段と、して機能させることを特徴とする。   In order to solve the above-described problem, a control program disclosed in an embodiment is a control program that can be read by a computer of an image processing apparatus including an operation unit, and the computer performs scan processing via the operation unit. The accepting means for accepting the set value, and the set value accepted by the accepting means are for requesting the creation of binary scan data and requesting the execution of a predetermined process that requires image rotation processing. In some cases, an instruction output unit that outputs a scan instruction for instructing the creation of grayscale scan data, and for the grayscale scan data acquired in response to the output of the scan instruction by the instruction output unit, the scan data First rotation processing execution means for executing image rotation processing based on the rotation, and rotation by the first rotation processing execution means Functioning as first conversion means for converting grayscale scan data subjected to processing into binary scan data, and output means for outputting binary scan data converted by the first conversion means It is characterized by making it.

上記課題を解決するために、実施例に開示する画像処理装置は、操作部と、制御部と、を備える画像処理装置であって、前記制御部を、前記操作部を介して、スキャン処理の設定値を受け付ける受付手段と、前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、画像の回転処理を要する所定の処理の実行を要求するものである場合に、グレースケールのスキャンデータの作成を指示するスキャン指示を出力する指示出力手段と、前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第1回転処理実行手段と、前記第1回転処理実行手段による回転処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第1変換手段と、前記第1変換手段により変換された2値のスキャンデータを出力する出力手段と、して機能させることを特徴とする。   In order to solve the above problems, an image processing device disclosed in an embodiment is an image processing device including an operation unit and a control unit, and the control unit is configured to perform scan processing via the operation unit. The accepting means for accepting the set value, and the set value accepted by the accepting means are for requesting the creation of binary scan data and requesting the execution of a predetermined process that requires image rotation processing. In some cases, an instruction output unit that outputs a scan instruction for instructing the creation of grayscale scan data, and for the grayscale scan data acquired in response to the output of the scan instruction by the instruction output unit, the scan data First rotation processing execution means for executing image rotation processing based on the image, and grayscale scan that has been subjected to rotation processing by the first rotation processing execution means. The data are first converting means for converting the binary scan data, and output means for outputting the scan data of the converted binary by the first converting means, characterized in that to function with.

実施例に開示する制御プログラム及び画像処理装置では、2値のスキャンデータの作成が要求され、かつ、画像の回転処理を要する所定の処理の実行が要求されている場合に、グレースケールのスキャンデータの作成を指示するスキャン指示が出力される。そして、スキャン指示の出力に応じて取得されたグレースケールのスキャンデータに対して、画像の回転処理が実行され、回転処理が実行されたグレースケールのスキャンデータが、2値のスキャンデータに変換される。このように、グレースケールのスキャンデータに対して、画像の回転処理を行うことで、処理に要する時間を短縮することが可能となり、好適に画像の回転処理を行うことができる。   In the control program and the image processing apparatus disclosed in the embodiment, when the creation of binary scan data is requested and the execution of a predetermined process requiring image rotation processing is requested, grayscale scan data A scan instruction for instructing the creation of the file is output. The grayscale scan data acquired in response to the output of the scan instruction is subjected to image rotation processing, and the grayscale scan data subjected to the rotation processing is converted into binary scan data. The In this way, by performing image rotation processing on grayscale scan data, it is possible to shorten the time required for processing, and image rotation processing can be suitably performed.

スキャンシステム1のブロック図である。1 is a block diagram of a scan system 1. FIG. トリミング処理の実行を示す図である。It is a figure which shows execution of a trimming process. 付足処理の実行を示す図である。It is a figure which shows execution of an addition process. サイズ検知処理の実行を示す図である。It is a figure which shows execution of a size detection process. モノクロスケールのスキャンデータに基づく画像の回転処理の実行を示す図である。It is a figure which shows execution of the rotation process of the image based on the scan data of a monochrome scale. グレースケールのスキャンデータに基づく画像の回転処理の実行を示す図である。It is a figure which shows execution of the rotation process of the image based on the scan data of gray scale. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG. スキャナドライバ30のフローチャートを示す図である。3 is a diagram illustrating a flowchart of a scanner driver 30. FIG.

<スキャンシステムの構成>
図1に、本願に係る実施形態として例示されるスキャンシステム1のブロック図を示す。スキャンシステム1は、PC(本発明の画像処理装置の一例)10、スキャナ50を備える。
<Configuration of scan system>
FIG. 1 shows a block diagram of a scan system 1 exemplified as an embodiment according to the present application. The scan system 1 includes a PC (an example of an image processing apparatus of the present invention) 10 and a scanner 50.

PC10は、CPU(コンピュータ及び制御部の一例)12、メモリ14、LCD16、入力I/F(操作部の一例)18、ネットワークI/F20を主に備えている。これらの構成要素は、バス22を介して互いに通信可能とされている。   The PC 10 mainly includes a CPU (an example of a computer and a control unit) 12, a memory 14, an LCD 16, an input I / F (an example of an operation unit) 18, and a network I / F 20. These components can communicate with each other via a bus 22.

PC10は、スキャナ50と、ネットワークI/F20及びネットワーク52を通じて通信可能となっている。通信の方式としては、例えば、有線LAN、USB、Wi−Fi(登録商標)やBluetooth(登録商標)を採用できる。なお、スキャナ50は、PC10との間で各種の情報や指示信号を送受信し、PC10による制御に基づいて、スキャンデータを作成する。   The PC 10 can communicate with the scanner 50 through the network I / F 20 and the network 52. As a communication system, for example, a wired LAN, USB, Wi-Fi (registered trademark), or Bluetooth (registered trademark) can be adopted. The scanner 50 transmits / receives various information and instruction signals to / from the PC 10 and creates scan data based on the control by the PC 10.

CPU12は、メモリ14内のスキャナドライバ(制御プログラムの一例)30、アプリケーション32に従って処理を実行する。スキャナドライバ30は、スキャナ50のデバイスドライバであり、スキャナ50の作動を制御する。また、アプリケーション32は、例えば、スキャナ50により作成されたスキャンデータに対して、任意の画像処理を実行するためのプログラムであり、具体的には、Adobe Photoshop(登録商標)などの画像編集ソフトである。ちなみに、スキャナドライバ30及び、アプリケーション32は、例えば、TWAIN規格に従ったプログラムである。   The CPU 12 executes processing according to a scanner driver (an example of a control program) 30 and an application 32 in the memory 14. The scanner driver 30 is a device driver for the scanner 50 and controls the operation of the scanner 50. The application 32 is a program for executing arbitrary image processing on the scan data created by the scanner 50, for example, specifically, image editing software such as Adobe Photoshop (registered trademark). is there. Incidentally, the scanner driver 30 and the application 32 are programs according to the TWAIN standard, for example.

なお、以下の説明では、スキャナドライバ30等を実行するCPU12のことを、単にプログラム名でも記載する場合がある。例えば、「スキャナドライバ30が」という記載は、「スキャナドライバ30を実行するCPU12が」ということを意味する場合がある。   In the following description, the CPU 12 that executes the scanner driver 30 or the like may be described simply by a program name. For example, the description “the scanner driver 30 is” may mean “the CPU 12 that executes the scanner driver 30 is”.

また、メモリ14は、データ記憶領域(メモリの一例)34を備える。データ記憶領域34は、スキャナドライバ30等の実行に必要なデータなどを記憶する領域である。なお、メモリ14は、RAM、ROM、フラッシュメモリ、HDD、CPU12が備えるバッファなどが組み合わされて構成されている。   The memory 14 also includes a data storage area (an example of a memory) 34. The data storage area 34 is an area for storing data necessary for execution of the scanner driver 30 and the like. Note that the memory 14 is configured by combining a RAM, a ROM, a flash memory, an HDD, a buffer included in the CPU 12, and the like.

メモリ14は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non−transitoryな媒体である。non−transitoryな媒体には、上記の例の他に、CD−ROM、DVD−ROM等の記録媒体も含まれる。また、non−transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non−transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。   The memory 14 may be a computer readable storage medium. A computer-readable storage medium is a non-transitory medium. Non-transitory media include recording media such as CD-ROM and DVD-ROM in addition to the above examples. A non-transitory medium is also a tangible medium. On the other hand, an electrical signal that carries a program downloaded from a server on the Internet is a computer-readable signal medium that is a kind of computer-readable medium, but a non-transitory computer-readable storage. Not included in the media.

LCD16は、PC10の各種機能を表示する。入力I/F18は、キーボード,マウス等を含み、ユーザ操作を入力するためのインタフェースである。   The LCD 16 displays various functions of the PC 10. The input I / F 18 includes a keyboard, a mouse, and the like, and is an interface for inputting user operations.

<スキャンシステムの作動>
本明細書でのスキャンシステム1の作動の説明において、基本的に、プログラムに記述された命令に従ったCPU12の処理を示す。すなわち、以下の説明における「判断」「抽出」「選択」「算出」「決定」「特定」「取得」「受付」「制御」「設定」等の処理は、CPU12の処理を表している。CPU12による処理は、OS36を介したハードウェア制御も含む。なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU12が要求することなくデータを受信するという処理も、「CPU12がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。また、「命令」「応答」「要求」等の処理は、「命令」「応答」「要求」等を示す情報を通信することにより行われる。また、「命令」「応答」「要求」等の文言を、「命令」「応答」「要求」等を示す情報そのものという意味で記載してもよい。
<Operation of scan system>
In the description of the operation of the scan system 1 in this specification, the processing of the CPU 12 according to the instructions described in the program is basically shown. That is, processes such as “determination”, “extraction”, “selection”, “calculation”, “determination”, “specification”, “acquisition”, “acceptance”, “control”, and “setting” in the following description represent processes of the CPU 12. The processing by the CPU 12 includes hardware control via the OS 36. “Acquisition” is used in a concept that does not require a request. That is, the process that the CPU 12 receives data without request is also included in the concept of “the CPU 12 acquires data”. Further, “data” in this specification is represented by a bit string readable by a computer. Data having substantially the same semantic content but different formats are handled as the same data. The same applies to “information” in this specification. Further, processing such as “command”, “response”, and “request” is performed by communicating information indicating “command”, “response”, “request”, and the like. Further, words such as “command”, “response”, and “request” may be described in the meaning of information itself indicating “command”, “response”, “request”, and the like.

スキャンシステム1では、通常、PC10において、入力I/F18を介して、スキャン処理の設定値が入力され、入力された設定値に従ったスキャン指示が、スキャナ50に送信されることで、スキャナ50により、ユーザの意図に従ったスキャン処理が実行される。PC10においてスキャナ50によるスキャン処理に対して設定されるスキャン処理の設定値として、トリミング処理に関する設定値、付足処理に関する設定値、原稿向き自動補正処理(以下、「向き補正処理」と記載する)に関する設定値、原稿サイズに関する設定値、スキャンデータの色のスケールに関する設定値、スキャンデータの解像度に関する設定値などがある。   In the scan system 1, normally, the PC 10 receives a setting value for scan processing via the input I / F 18, and a scan instruction according to the input setting value is transmitted to the scanner 50. As a result, a scan process according to the user's intention is executed. As setting values for scan processing set for the scan processing by the scanner 50 in the PC 10, setting values for trimming processing, setting values for adding processing, automatic document orientation correction processing (hereinafter referred to as “orientation correction processing”). There are setting values relating to the document size, setting values relating to the document size, setting values relating to the color scale of the scan data, setting values relating to the resolution of the scan data, and the like.

トリミング処理に関する設定値は、スキャンデータに基づく画像の任意の縁部を除去する処理の実行の有無を指定する値であり、ONとOFFとがある。また、トリミング処理に関する設定値は、画像からの除去領域を指定する情報を含む。このトリミング処理は、画像を回転させる処理(以下、「回転処理」と記載する)と、画像から除去領域を除去する処理(以下、「除去処理」と記載する)とにより構成される処理となっており、スキャナドライバ30によって実行される。   The setting value related to the trimming process is a value that specifies whether or not to execute the process of removing an arbitrary edge portion of the image based on the scan data, and includes ON and OFF. Further, the setting value related to the trimming process includes information for designating a removal area from the image. This trimming process is a process composed of a process of rotating an image (hereinafter referred to as “rotation process”) and a process of removing a removal area from the image (hereinafter referred to as “removal process”). And is executed by the scanner driver 30.

具体的に、図2(a)に示すように、スキャンデータに基づく画像100のうちの左右の領域(斜線で示される領域)が、除去領域102a,bとして設定されている場合について説明する。なお、スキャンデータは、左右方向に延びるライン(点線104)毎のデータによって構成されている。つまり、画像100の画像データは、行単位のデータによって構成されている。そこで、スキャナドライバ30は、スキャナ50からスキャンデータを取得すると、行単位のデータの除去により、除去領域102をトリミングするべく、スキャンデータに基づく画像100を反時計回りに90度回転させる回転処理を実行する。これにより、図2(b)に示すように、90度回転された画像110において、除去領域102aは下縁に位置する。この際、その画像110の画像データの最後尾に、除去領域102aを示す行単位の画像データが位置する。このため、スキャナドライバ30は、画像110の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像110から除去領域102aを除去する除去処理が実行される。   Specifically, as shown in FIG. 2A, a case will be described in which left and right regions (regions indicated by hatching) in the image 100 based on scan data are set as removal regions 102a and 102b. The scan data is composed of data for each line (dotted line 104) extending in the left-right direction. That is, the image data of the image 100 is composed of data in units of rows. Therefore, when the scanner driver 30 acquires the scan data from the scanner 50, the image data based on the scan data is rotated 90 degrees counterclockwise in order to trim the removal area 102 by removing the data in units of rows. Run. Thereby, as shown in FIG. 2B, in the image 110 rotated 90 degrees, the removal region 102a is located at the lower edge. At this time, the line-by-line image data indicating the removal area 102a is located at the end of the image data of the image 110. For this reason, the scanner driver 30 removes the image data of the line unit located at the end from the image data of the image 110. Thereby, the removal process which removes the removal area | region 102a from the image 110 is performed.

続いて、スキャナドライバ30は、除去領域102aが除去された画像を反時計回りに180度回転させる回転処理を実行する。これにより、図2(c)に示すように、180度回転された画像120において、除去領域102bは下縁に位置する。この際、その画像120の画像データの最後尾に、除去領域102bを示す行単位の画像データが位置する。このため、スキャナドライバ30は、画像120の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像120から除去領域102bを除去する除去処理が実行され、図2(d)に示すように、スキャンデータに基づく画像100から、除去領域102a,bが除去された画像130が得られる。   Subsequently, the scanner driver 30 executes a rotation process for rotating the image from which the removal area 102a has been removed by 180 degrees counterclockwise. As a result, as shown in FIG. 2C, in the image 120 rotated by 180 degrees, the removal region 102b is positioned at the lower edge. At this time, line-by-line image data indicating the removal region 102b is located at the end of the image data of the image 120. For this reason, the scanner driver 30 removes the image data of the row unit located at the end from the image data of the image 120. As a result, a removal process for removing the removal region 102b from the image 120 is executed, and as shown in FIG. 2D, an image 130 from which the removal regions 102a and b have been removed is obtained from the image 100 based on the scan data. .

また、付足処理に関する設定値は、スキャンデータに基づく画像の任意の縁部に余白画像を付加する処理の実行の有無を指定する値であり、ONとOFFとがある。また、付足処理に関する設定値は、余白画像を付加する位置を指定する情報を含む。この付足処理は、回転処理と、スキャンデータに基づく画像に余白画像を付加する処理(以下、「付加処理」と記載する)とにより構成される処理となっており、スキャナドライバ30によって実行される。   Further, the setting value related to the addition process is a value that specifies whether or not to execute a process of adding a blank image to an arbitrary edge portion of an image based on scan data, and includes ON and OFF. In addition, the setting value related to the addition process includes information for designating a position where a blank image is added. This addition process is a process composed of a rotation process and a process for adding a blank image to an image based on scan data (hereinafter referred to as “addition process”), and is executed by the scanner driver 30. The

具体的に、図3(a)に示すように、スキャンデータに基づく画像140の左右の縁部に、余白画像142a,bを付加する付足処理が設定されている場合について説明する。この画像140においても、スキャンデータは、左右方向に延びるライン(点線144)毎のデータによって構成されている。つまり、画像140の画像データは、行単位のデータによって構成されている。そこで、スキャナドライバ30は、スキャナ50からスキャンデータを取得すると、スキャンデータに基づく画像140の右縁部に、余白画像142bを行単位のデータとして付加するべく、画像140を反時計回りに90度回転させる回転処理を実行する。これにより、図3(b)に示すように、90度回転された画像150において、余白画像142aを付加する位置が下縁となる。このため、スキャナドライバ30は、画像150の画像データの最後尾に、余白画像142aの行単位の画像データを付加する。これにより、画像150に余白画像142aを付加する付加処理が実行される。   Specifically, as shown in FIG. 3A, a case will be described in which an addition process for adding margin images 142a and 142b is set on the left and right edges of the image 140 based on the scan data. Also in this image 140, the scan data is composed of data for each line (dotted line 144) extending in the left-right direction. That is, the image data of the image 140 is composed of data in units of rows. Therefore, when the scanner driver 30 acquires the scan data from the scanner 50, the image driver 90 is rotated 90 degrees counterclockwise in order to add the margin image 142b as line-by-line data to the right edge of the image 140 based on the scan data. Executes rotation processing to rotate. As a result, as shown in FIG. 3B, in the image 150 rotated 90 degrees, the position where the margin image 142a is added becomes the lower edge. For this reason, the scanner driver 30 adds image data in units of lines of the margin image 142 a to the end of the image data of the image 150. Thereby, an addition process for adding the blank image 142a to the image 150 is executed.

続いて、スキャナドライバ30は、余白画像142aが付加された画像を反時計回りに180度回転させる回転処理を実行する。これにより、図3(c)に示すように、180度回転された画像160において、余白画像142bを付加する位置が下縁となる。このため、スキャナドライバ30は、画像160の画像データの最後尾に、余白画像142bの行単位の画像データを付加する。これにより、画像160に余白画像142bを付加する付加処理が実行され、図3(d)に示すように、スキャンデータに基づく画像140に、余白画像142a,bが付加された画像170が得られる。   Subsequently, the scanner driver 30 executes a rotation process for rotating the image to which the margin image 142a is added by 180 degrees counterclockwise. As a result, as shown in FIG. 3C, in the image 160 rotated by 180 degrees, the position where the blank image 142b is added becomes the lower edge. For this reason, the scanner driver 30 adds image data in units of lines of the margin image 142b to the end of the image data of the image 160. As a result, an addition process for adding the margin image 142b to the image 160 is executed, and as shown in FIG. 3D, an image 170 in which the margin images 142a and 142b are added to the image 140 based on the scan data is obtained. .

また、向き補正処理に関する設定値は、スキャンデータに基づく画像の向きを自動で補正する処理の実行の有無を指定する値であり、ONとOFFとがある。この向き補正処理は、文字認識処理(以下、「OCR処理」と記載する)と、回転処理とにより構成される処理となっており、スキャナドライバ30によって実行される。   The setting value related to the orientation correction processing is a value that specifies whether or not to execute processing for automatically correcting the orientation of the image based on the scan data, and includes ON and OFF. This orientation correction process is a process composed of a character recognition process (hereinafter referred to as “OCR process”) and a rotation process, and is executed by the scanner driver 30.

具体的には、スキャナドライバ30は、スキャナ50からスキャンデータを取得すると、OCR処理により、スキャンデータに基づく画像に含まれる文字の向きを特定する。そして、スキャナドライバ30は、特定された文字の向きが正常となるように、回転処理を実行する。つまり、例えば、スキャンデータに基づく画像に含まれる文字の向きが正常な状態から上下方向に180度回転している場合に、スキャナドライバ30は、スキャンデータに基づく画像を上下方向に180度回転させる回転処理を行う。これにより、上下方向に反転していない画像が得られる。   Specifically, when acquiring the scan data from the scanner 50, the scanner driver 30 specifies the direction of characters included in the image based on the scan data by OCR processing. Then, the scanner driver 30 performs a rotation process so that the orientation of the specified character becomes normal. That is, for example, when the orientation of characters included in the image based on the scan data is rotated 180 degrees in the vertical direction from the normal state, the scanner driver 30 rotates the image based on the scan data 180 degrees in the vertical direction. Perform rotation processing. Thereby, an image that is not inverted in the vertical direction is obtained.

また、原稿サイズに関する設定値は、スキャン処理の対象となる原稿のサイズを指定する値であり、手動設定と自動設定とがある。手動設定では、A4,B5等の通常のカット紙の用紙サイズから、ユーザにより任意のものが設定される。ちなみ、スキャナ50は、最大でA4サイズの原稿をスキャン可能なデバイスとされている。一方、自動設定では、スキャナ50にセットされている原稿のサイズを自動的に検知する処理(以下、「サイズ検知処理」と記載する)が実行される。このサイズ検知処理は、原稿以外の領域(以下、「原稿外領域」と記載する)を特定する処理と、トリミング処理とにより構成される処理となっており、スキャナドライバ30によって実行される。   The setting value related to the document size is a value for specifying the size of the document to be scanned, and includes a manual setting and an automatic setting. In the manual setting, an arbitrary value is set by the user from the sheet sizes of normal cut sheets such as A4 and B5. Incidentally, the scanner 50 is a device that can scan a document of A4 size at the maximum. On the other hand, in the automatic setting, processing for automatically detecting the size of the document set on the scanner 50 (hereinafter referred to as “size detection processing”) is executed. This size detection process is a process composed of a process for specifying an area other than the original (hereinafter referred to as “external area”) and a trimming process, and is executed by the scanner driver 30.

具体的に、原稿サイズに関する設定値として自動設定が設定されており、例えば、B5サイズの原稿がスキャナ50にセットされている場合について説明する。このような場合に、スキャナドライバ30は、スキャナ50でスキャン可能な最大の原稿サイズ、つまり、A4サイズでのスキャン指示をスキャナ50に送信する。そして、スキャナドライバ30は、スキャナ50からA4サイズの原稿のスキャンデータを取得する。   Specifically, a case where automatic setting is set as a setting value related to the document size, for example, a case where a B5 size document is set in the scanner 50 will be described. In such a case, the scanner driver 30 transmits to the scanner 50 a scan instruction in the maximum document size that can be scanned by the scanner 50, that is, an A4 size. Then, the scanner driver 30 acquires scan data of an A4 size document from the scanner 50.

なお、スキャナ50では、原稿を読み取る読み取り台において、原稿を背面側から抑える原稿カバーが所定の色に着色されている。このため、スキャンデータに基づく画像200では、図4(a)に示すように、原稿に相当する画像202の周囲に、原稿カバーの色を読み取った画像が、原稿の外側の画像(斜線で示される画像)204として存在する。そこで、スキャナドライバ30は、スキャンデータに基づいて、原稿カバーに着色されている色の画像データを、原稿の外側の画像204の画像データとして特定する。これにより、原稿外領域が特定される。   In the scanner 50, the document cover that holds the document from the back side is colored in a predetermined color on the reading table for reading the document. Therefore, in the image 200 based on the scan data, as shown in FIG. 4A, an image obtained by reading the color of the document cover around the image 202 corresponding to the document is an image outside the document (indicated by diagonal lines). Image 204). Therefore, the scanner driver 30 specifies the image data of the color colored on the document cover as the image data of the image 204 outside the document based on the scan data. Thereby, the area outside the document is specified.

そして、原稿外領域が特定されると、スキャナドライバ30は、上述したトリミング処理と同様の処理に従って、スキャンデータに基づく画像200から原稿外領域の画像204を除去する。つまり、図4(b)に示すように、スキャンデータに基づく画像200において、原稿外領域の画像204の一部の画像208が下縁に位置する。この際、その画像200の画像データの最後尾に、画像208を示す行単位の画像データが位置する。このため、スキャナドライバ30は、画像200の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像200から原稿外領域の画像204の一部の画像208を除去する除去処理が実行される。   When the area outside the document is specified, the scanner driver 30 removes the image 204 in the area outside the document from the image 200 based on the scan data according to the same process as the trimming process described above. That is, as shown in FIG. 4B, in the image 200 based on the scan data, a part of the image 208 of the image 204 in the outside document area is located at the lower edge. At this time, line-by-line image data indicating the image 208 is located at the end of the image data of the image 200. For this reason, the scanner driver 30 removes the image data of the line unit located at the end from the image data of the image 200. Thereby, a removal process for removing a part of the image 208 of the image 204 in the outside-document area from the image 200 is executed.

次に、スキャナドライバ30は、画像208が除去された画像を反時計回りに90度回転させる回転処理を実行する。これにより、図4(c)に示すように、90度回転された画像210において、原稿外領域の画像204の一部の画像212が下縁に位置する。このため、スキャナドライバ30は、画像210の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像210から原稿外領域の画像204の一部の画像212を除去する除去処理が実行される。   Next, the scanner driver 30 executes a rotation process for rotating the image from which the image 208 has been removed 90 degrees counterclockwise. As a result, as shown in FIG. 4C, in the image 210 rotated by 90 degrees, a part of the image 212 of the image 204 in the area outside the document is positioned at the lower edge. For this reason, the scanner driver 30 removes the image data of the line unit located at the end from the image data of the image 210. Thereby, a removal process for removing a part of the image 212 of the image 204 in the area outside the document from the image 210 is executed.

続いて、スキャナドライバ30は、画像212が除去された画像を反時計回りに90度回転させる回転処理を実行する。これにより、図4(d)に示すように、90度回転された画像216において、原稿外領域の画像204の一部の画像218が下縁に位置する。このため、スキャナドライバ30は、画像216の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像216から原稿外領域の画像204の一部の画像218を除去する除去処理が実行される。   Subsequently, the scanner driver 30 executes a rotation process for rotating the image from which the image 212 has been removed 90 degrees counterclockwise. As a result, as shown in FIG. 4D, in the image 216 rotated by 90 degrees, a part of the image 218 in the image 204 in the outside document area is positioned at the lower edge. For this reason, the scanner driver 30 removes the image data of the line unit located at the end from the image data of the image 216. As a result, a removal process for removing a part of the image 218 of the image 204 in the outside-document area from the image 216 is executed.

さらに、スキャナドライバ30は、画像218が除去された画像を反時計回りに90度回転させる回転処理を実行する。これにより、図4(e)に示すように、90度回転された画像220において、原稿外領域の画像204の一部の画像222が下縁に位置する。このため、スキャナドライバ30は、画像220の画像データから、最後尾に位置する行単位の画像データを除去する。これにより、画像220から原稿外領域の画像204の一部の画像222を除去する除去処理が実行され、図4(f)に示すように、スキャンデータに基づく画像200から、原稿外領域の画像204が除去された画像202、つまり、原稿に相当する画像が得られる。   Further, the scanner driver 30 executes a rotation process for rotating the image from which the image 218 has been removed 90 degrees counterclockwise. As a result, as shown in FIG. 4E, in the image 220 rotated by 90 degrees, a part of the image 222 of the image 204 in the area outside the document is positioned at the lower edge. For this reason, the scanner driver 30 removes the image data of the line unit located at the end from the image data of the image 220. As a result, a removal process for removing a part of the image 222 of the image 204 in the outside document area from the image 220 is executed. As shown in FIG. 4F, the image in the outside document area is obtained from the image 200 based on the scan data. An image 202 from which 204 is removed, that is, an image corresponding to a document is obtained.

また、スキャンデータの色のスケールに関する設定値は、ビットマップ画像データにおける1ピクセルに対して設定可能な色数を示す値であり、24bit(166777216色)のカラースケール,8bit(256色)のグレースケール,1bit(2色:白と黒)のモノクロスケールである。また、スキャンデータの解像度に関する設定値は、スキャン処理時の読取精度を指定する値であり、300dpi,500dpi等である。   Further, the setting value related to the color scale of the scan data is a value indicating the number of colors that can be set for one pixel in the bitmap image data, and is a color scale of 24 bits (166777216 colors) and gray of 8 bits (256 colors). The scale is a monochrome scale of 1 bit (two colors: white and black). Further, the setting value relating to the resolution of the scan data is a value that specifies the reading accuracy at the time of the scan processing, and is 300 dpi, 500 dpi, or the like.

このような設定値が、PC10では、スキャナ50によるスキャン処理に対して設定可能とされている。そして、ユーザ操作により、入力I/F18を介して、各種設定値が入力されると、スキャナドライバ30が、入力された各種設定値を受け付け、受け付けた各種設定値に応じたスキャン指示を、スキャナ50に送信する。ただし、スキャンデータの色のスケールに応じて、回転処理に要する時間が長くなったり、回転処理におけるメモリ容量を圧迫するといった問題が存在する。そこで、回転処理が必要な特定の処理、つまり、トリミング処理,向き補正処理等の実行が設定されている場合において、入力された設定値と異なるスキャン指示が送信される場合がある。   Such setting values can be set for the scan processing by the scanner 50 in the PC 10. When various setting values are input through the input I / F 18 by a user operation, the scanner driver 30 receives the input various setting values, and issues a scan instruction according to the received various setting values. 50. However, depending on the color scale of the scan data, there are problems that the time required for the rotation process becomes long and the memory capacity in the rotation process is reduced. Therefore, when a specific process requiring a rotation process, that is, execution of a trimming process, a direction correction process, or the like is set, a scan instruction different from the input set value may be transmitted.

具体的に、まず、2値のスキャンデータ、つまり、モノクロスケールのスキャンデータに対する回転処理について説明する。この説明では、図5(a)に示す画像300を、反時計回りに90度回転させる回転処理について説明する。なお、図5において、1枡が1ビットを示しており、図5に示す画像300は、モノクロスケールのスキャンデータに基づく画像であるため、1枡、つまり、1ビットで1画素となる。また、1枡毎の数字は画像データを模式的に示している。そして、1行目の各画素に対する回転処理について説明する。   Specifically, a rotation process for binary scan data, that is, monochrome scale scan data will be described first. In this description, a rotation process for rotating the image 300 shown in FIG. 5A by 90 degrees counterclockwise will be described. In FIG. 5, 1 枡 indicates 1 bit, and the image 300 illustrated in FIG. 5 is an image based on scan data of monochrome scale. Therefore, 1 枡, that is, 1 bit corresponds to 1 pixel. Further, the numbers for every square typically show image data. The rotation process for each pixel in the first row will be described.

PC10での処理は、一般的に、1バイト単位、つまり、8ビット単位で実行される。このため、画像300での1行目の各画素に対する回転処理では、8ビット、つまり、8画素の画像データが、図5(b)に示すように、特定される。そして、8画素の画像データのうちの1個の画素の画像データ(ここでは、左端の画素302の画像データ)が特定される。つまり、モノクロスケールのスキャンデータでは、1画素が1ビットであるため、PC10の8ビット単位の処理の実行により、まず、8画素(8ビット)の画像データが特定され、それら8画素の画像データから1画素(1ビット)の画像データが特定される。このように、1ビット毎の画像データへのアクセスは、一般的に、ビットアクセスと呼ばれる。   The processing in the PC 10 is generally executed in units of 1 byte, that is, in units of 8 bits. Therefore, in the rotation process for each pixel in the first row in the image 300, 8-bit, that is, 8-pixel image data is specified as shown in FIG. Then, image data of one pixel among the image data of eight pixels (here, image data of the pixel 302 at the left end) is specified. That is, in the monochrome scale scan data, one pixel is one bit. Therefore, when the PC 10 executes processing in units of 8 bits, first, image data of 8 pixels (8 bits) is specified. 1 pixel (1 bit) image data is specified. Thus, access to image data for each bit is generally called bit access.

次に、図5(c)に示すように、回転処理により移動させるべき画素、つまり、画像300の中央を中心として、画素302を反時計回りに90度回転させた位置にある画素306に、画素302の画像データがコピーされる。これにより、画素302の画像データに対する回転処理が完了する。そして、残りの7個の画素の各々の画像データに対して、画素302の画像データに対する回転処理と同様の回転処理が実行されることで、1行目の各画素に対する回転処理が完了する。さらに、2行目以降の各画素の画像データに対する回転処理が、1行目の各画素の画像データに対する回転処理と同様に実行されることで、画像300を反時計回りに90度回転させた画像310が得られる。   Next, as shown in FIG. 5C, the pixel to be moved by the rotation process, that is, the pixel 306 at the position where the pixel 302 is rotated 90 degrees counterclockwise around the center of the image 300, The image data of the pixel 302 is copied. Thereby, the rotation process for the image data of the pixel 302 is completed. Then, a rotation process similar to the rotation process for the image data of the pixel 302 is executed for the image data of each of the remaining seven pixels, whereby the rotation process for each pixel in the first row is completed. Furthermore, the rotation process for the image data of each pixel in the second and subsequent rows is executed in the same manner as the rotation process for the image data of each pixel in the first line, thereby rotating the image 300 by 90 degrees counterclockwise. An image 310 is obtained.

次に、グレースケールのスキャンデータに対する回転処理について説明する。この説明では、図6(a)に示す画像320を、反時計回りに90度回転させる回転処理について説明する。なお、図6において、1枡が1ビットを示しており、図6に示す画像320は、グレースケールのスキャンデータに基づく画像であるため、8枡、つまり、8ビットで1画素となる。そして、1行目の各画素に対する回転処理について説明する。   Next, rotation processing for grayscale scan data will be described. In this description, a rotation process for rotating the image 320 shown in FIG. 6A by 90 degrees counterclockwise will be described. In FIG. 6, 1 枡 indicates 1 bit, and the image 320 illustrated in FIG. 6 is an image based on grayscale scan data. Therefore, 8 枡, that is, 8 bits form 1 pixel. The rotation process for each pixel in the first row will be described.

1行目の複数の画素のうちの先頭の8ビット、つまり、8枡の画像データが特定されることで、左端の画素322が特定される。つまり、グレースケールのスキャンデータでは、1画素が8ビットであるため、PC10の8ビット単位の処理の実行により、ビットアクセスを行うことなく、1画素(8ビット)の画像データが特定される。   By specifying the first 8 bits of the plurality of pixels in the first row, that is, 81 image data, the leftmost pixel 322 is specified. In other words, since one pixel is 8 bits in grayscale scan data, image data of one pixel (8 bits) is specified without performing bit access by executing the processing of the PC 10 in units of 8 bits.

次に、図6(b)に示すように、回転処理により移動させるべき画素、つまり、画像320の中央を中心として、画素322を反時計回りに90度回転させた位置にある画素326に、画素322の画像データがコピーされる。これにより、画素322の画像データに対する回転処理が完了する。そして、残りの7個の画素の各々の画像データに対して、画素322の画像データに対する回転処理と同様の回転処理が実行されることで、1行目の各画素に対する回転処理が完了する。さらに、2行目以降の各画素の画像データに対する回転処理が、1行目の各画素の画像データに対する回転処理と同様に実行されることで、画像320を反時計回りに90度回転させた画像330が得られる。   Next, as shown in FIG. 6B, the pixel to be moved by the rotation process, that is, the pixel 326 at the position where the pixel 322 is rotated 90 degrees counterclockwise around the center of the image 320, The image data of the pixel 322 is copied. Thereby, the rotation process for the image data of the pixel 322 is completed. Then, a rotation process similar to the rotation process for the image data of the pixel 322 is performed on the image data of each of the remaining seven pixels, whereby the rotation process for each pixel in the first row is completed. Furthermore, the rotation process for the image data of each pixel in the second and subsequent rows is executed in the same manner as the rotation process for the image data of each pixel in the first line, thereby rotating the image 320 by 90 degrees counterclockwise. An image 330 is obtained.

このように、モノクロスケールのスキャンデータに対する回転処理では、ビットアクセスを行う必要があり、グレースケールのスキャンデータに対する回転処理では、ビットアクセスを行う必要がない。また、画像を構成する画素の数は非常に多い。このため、画素毎にビットアクセスを行っていては、回転処理に要する時間が長くなる。このようなことに鑑みて、回転処理が必要な処理(以下、「要回転処理」と記載する)、つまり、トリミング処理,付足処理,向き補正処理,サイズ検知処理の設定値がONにされている場合に、ユーザ設定により、色のスケールに関する設定値がモノクロスケールに設定されていても、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する。   As described above, in the rotation process for the monochrome scale scan data, it is necessary to perform bit access, and in the rotation process for the gray scale scan data, it is not necessary to perform the bit access. In addition, the number of pixels constituting the image is very large. For this reason, if bit access is performed for each pixel, the time required for the rotation process becomes longer. In view of the above, the setting values of processing that requires rotation processing (hereinafter referred to as “required rotation processing”), that is, trimming processing, addition processing, orientation correction processing, and size detection processing are turned ON. In this case, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 even if the setting value related to the color scale is set to the monochrome scale by the user setting.

これにより、スキャナドライバ30は、グレースケールのスキャンデータを受信し、受信したグレースケールのスキャンデータに基づいて、要回転処理を実行する。つまり、スキャナドライバ30は、グレースケールのスキャンデータに対して、トリミング処理,付足処理,向き補正処理,サイズ検知処理の何れかを実行する。これにより、回転処理を含む要回転処理の実行に要する時間を短縮することが可能となる。ただし、ユーザ設定により、色のスケールに関する設定値はモノクロスケールに設定されている。つまり、ユーザは、モノクロスケールのスキャンデータを望んでいる。このため、要回転処理が終了した後に、スキャナドライバ30は、グレースケールのスキャンデータをモノクロスケールのスキャンデータに変換する。そして、スキャナドライバ30は、モノクロスケールのスキャンデータに変換したスキャンデータをアプリケーション32に出力する。これにより、スキャナドライバ30による処理が完了する。   As a result, the scanner driver 30 receives the grayscale scan data, and executes the rotation required process based on the received grayscale scan data. That is, the scanner driver 30 executes any of trimming processing, adding processing, orientation correction processing, and size detection processing on grayscale scan data. As a result, it is possible to reduce the time required to execute the rotation required process including the rotation process. However, the setting value relating to the color scale is set to the monochrome scale by the user setting. That is, the user desires monochrome scale scan data. For this reason, after the rotation-required process is completed, the scanner driver 30 converts the gray scale scan data into monochrome scale scan data. Then, the scanner driver 30 outputs the scan data converted into the monochrome scale scan data to the application 32. Thereby, the processing by the scanner driver 30 is completed.

ただし、グレースケールのスキャンデータは、当然、モノクロスケールのスキャンデータと比較して、データ量が多い。このため、データ量の抑制を図るべき状況では、グレースケールのスキャンデータに対する回転処理より、モノクロスケールのスキャンデータに対する回転処理を実行することが好ましい。そこで、データ量の抑制を図るべき状況では、スキャナドライバ30は、ユーザ設定に応じて、モノクロスケールでのスキャン指示をスキャナ50に送信する。つまり、要回転処理の設定値がONに設定されており、かつ、色のスケールに関する設定値がモノクロスケールに設定されている場合であっても、データ量の抑制を図るべき状況では、スキャナドライバ30は、ユーザ設定に応じて、モノクロスケールでのスキャン指示をスキャナ50に送信する。   However, as a matter of course, the gray scale scan data has a larger data amount than the monochrome scale scan data. For this reason, in a situation where the amount of data should be suppressed, it is preferable to execute rotation processing for monochrome scale scan data rather than rotation processing for gray scale scan data. Therefore, in a situation where the amount of data should be suppressed, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50 according to the user setting. In other words, even if the setting value for rotation required processing is set to ON and the setting value for the color scale is set to the monochrome scale, the scanner driver should 30 transmits a scan instruction in monochrome scale to the scanner 50 according to the user setting.

そして、スキャナドライバ30は、モノクロスケールのスキャンデータを受信し、受信したモノクロスケールのスキャンデータに基づいて、要回転処理を実行する。これにより、処理時間の短縮を図ることはできないが、データ量の抑制を図ることが可能となる。なお、データ量の抑制を図るべき状況として、スキャナ50から送信されるスキャンデータのデータ量が多くなると想定される場合と、PC10のメモリの空き容量が少ない場合とが考えられる。このため、ユーザによるスキャン処理の設定値が、予め設定された設定解像度以上のスキャンデータの作成を要求するものである場合、及び、予め設定されたサイズ以上の原稿のスキャンデータの作成を要求するものである場合に、スキャナ50から送信されるスキャンデータのデータ量が多くなると想定し、スキャナドライバ30は、モノクロスケールでのスキャン指示をスキャナ50に送信する。また、PC10のデータ記憶領域34の空き容量が設定量以下である場合に、スキャナドライバ30は、モノクロスケールでのスキャン指示をスキャナ50に送信する。   Then, the scanner driver 30 receives the monochrome scale scan data, and executes a rotation required process based on the received monochrome scale scan data. As a result, the processing time cannot be shortened, but the data amount can be suppressed. It should be noted that there are two situations where the data amount should be suppressed: a case where the amount of scan data transmitted from the scanner 50 is assumed to be large, and a case where the free space of the PC 10 memory is small. For this reason, when the setting value of the scan processing by the user requests creation of scan data having a preset resolution or higher, and creation of scan data of a document having a preset size or more is requested. If it is, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50 on the assumption that the amount of scan data transmitted from the scanner 50 increases. When the free space in the data storage area 34 of the PC 10 is equal to or less than the set amount, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50.

ただし、向き補正処理ではOCR処理を行う必要があり、サイズ検知処理では原稿外領域の特定処理を行う必要がある。そして、OCR処理及び原稿外検知処理では、モノクロスケールのスキャンデータに基づいて各処理を適切に実行できない虞がある。これは、モノクロスケールのスキャンデータでは、色数が少ないため、文字の検知および、原稿外領域の特定を行い難いためである。このため、要回転処理が向き補正処理およびサイズ検知処理である場合には、データ量の抑制を図るべき状況であっても、スキャナドライバ30は、モノクロスケールでのスキャン指示でなく、グレースケールのスキャン指示をスキャナ50に送信する。つまり、要回転処理がトリミング処理および付足処理である場合にのみ、データ量の抑制を図るべき状況において、スキャナドライバ30は、モノクロスケールでのスキャン指示をスキャナ50に送信する。   However, the OCR process needs to be performed in the orientation correction process, and the area outside the document needs to be specified in the size detection process. In the OCR process and the out-of-document detection process, there is a possibility that the processes cannot be appropriately executed based on the monochrome scale scan data. This is because the monochrome scale scan data has a small number of colors, so that it is difficult to detect characters and specify an area outside the document. For this reason, if the rotation-required processing is orientation correction processing and size detection processing, the scanner driver 30 does not issue a scan instruction in monochrome scale, but in grayscale even in a situation where the amount of data should be suppressed. A scan instruction is transmitted to the scanner 50. That is, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50 in a situation where the amount of data should be suppressed only when the rotation required processing is trimming processing and addition processing.

以上のことを纏めると、トリミング処理若しくは付足処理の設定値がONに設定されており、かつ、色のスケールに関する設定値がモノクロスケールに設定されている場合であっても、データ量の抑制を図るべき状況では、スキャナドライバ30は、モノクロスケールでのスキャン指示をスキャナ50に送信する。そして、スキャナドライバ30は、モノクロスケールのスキャンデータを受信し、受信したモノクロスケールのスキャンデータに基づいて、トリミング処理、若しくは、付足処理を実行する。これにより、データ量の抑制を図ることができる。なお、トリミング処理、若しくは、付足処理が実行されたスキャンデータは、モノクロスケールであり、ユーザはモノクロスケールのスキャンデータを望んでいるため、スキャンデータの色スケールの変換を行う必要はない。このため、スキャナドライバ30は、トリミング処理、若しくは、付足処理を実行すると、各処理を実行したスキャンデータをアプリケーション32に出力する。これにより、スキャナドライバ30による処理が完了する。   Summarizing the above, even if the setting value for the trimming process or the appending process is set to ON and the setting value for the color scale is set to the monochrome scale, the data amount can be suppressed. Therefore, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50. Then, the scanner driver 30 receives the monochrome scale scan data, and executes trimming processing or addition processing based on the received monochrome scale scan data. Thereby, the amount of data can be suppressed. Note that the scan data on which the trimming process or the append process has been executed is a monochrome scale, and the user desires the monochrome scale scan data, and therefore it is not necessary to convert the color scale of the scan data. For this reason, when the scanner driver 30 executes the trimming process or the appending process, the scanner driver 30 outputs the scan data obtained by executing each process to the application 32. Thereby, the processing by the scanner driver 30 is completed.

また、向き補正処理若しくはサイズ検知処理の設定値がONに設定されており、かつ、色のスケールに関する設定値がモノクロスケールに設定されている場合には、データ量の抑制を図るべき状況であっても、スキャナドライバ30は、グレースケールのスキャン指示をスキャナ50に送信する。そして、スキャナドライバ30は、グレースケールのスキャンデータを受信し、受信したグレースケールのスキャンデータに基づいて、OCR処理、若しくは、原稿外領域の特定処理を実行する。これにより、OCR処理、若しくは、原稿外領域の特定処理を適切に実行することができる。   In addition, when the setting value for the orientation correction process or the size detection process is set to ON and the setting value for the color scale is set to the monochrome scale, the data amount should be suppressed. However, the scanner driver 30 transmits a grayscale scan instruction to the scanner 50. Then, the scanner driver 30 receives the grayscale scan data, and executes an OCR process or an area outside the original document based on the received grayscale scan data. As a result, the OCR process or the process for specifying the area outside the document can be appropriately executed.

そして、OCR処理もしくは原稿外領域の特定処理が実行された後に、向き補正処理では回転処理が実行され、サイズ検知処理ではトリミング処理が実行される。そして、回転処理およびトリミング処理は、処理速度の短縮を目的としなければ、モノクロスケールのスキャンデータに対して実行することができる。また、スキャナドライバ30がグレースケールのスキャン指示を送信した目的は、OCR処理および原稿外領域の特定処理の適切な実行であり、処理速度の短縮でない。さらに言えば、PC10は、データ量の抑制を図るべき状況下にある。   Then, after the OCR process or the document outside area specifying process is executed, the rotation process is executed in the orientation correction process, and the trimming process is executed in the size detection process. The rotation process and the trimming process can be executed on monochrome scale scan data unless the purpose is to reduce the processing speed. The purpose of the scanner driver 30 transmitting the grayscale scan instruction is to appropriately execute the OCR processing and the document outside area specifying processing, and not to reduce the processing speed. Furthermore, the PC 10 is in a situation where the amount of data should be suppressed.

このため、スキャナドライバ30は、OCR処理、若しくは、原稿外領域の特定処理を実行すると、各処理が実行されたスキャンデータ、つまり、グレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する。そして、スキャナドライバ30は、モノクロスケールのスキャンデータに基づいて、要回転処理が向き補正処理であれば、回転処理を実行し、要回転処理がサイズ検知処理であれば、トリミング処理を実行する。これにより、回転処理、若しくは、トリミング処理が実行される期間だけでも、データ量の抑制を図ることができる。そして、スキャナドライバ30は、回転処理、若しくは、トリミング処理を実行すると、各処理を実行したスキャンデータをアプリケーション32に出力する。これにより、スキャナドライバ30による処理が完了する。   For this reason, when the scanner driver 30 executes the OCR process or the outside area specifying process, the scanner driver 30 converts the scan data in which each process is executed, that is, the gray scale scan data, into the monochrome scale scan data. Then, based on the monochrome scale scan data, the scanner driver 30 executes a rotation process if the required rotation process is a direction correction process, and executes a trimming process if the required rotation process is a size detection process. As a result, it is possible to suppress the data amount only during the period in which the rotation process or the trimming process is executed. Then, when the rotation process or the trimming process is executed, the scanner driver 30 outputs the scan data obtained by executing each process to the application 32. Thereby, the processing by the scanner driver 30 is completed.

なお、要回転処理の設定値がOFFにされている場合において、スキャナドライバ30は、設定値に従ったスキャン指示をスキャナ50に送信し、従来のスキャンシステムで実行される処理と同じ処理が実行される。また、要回転処理の設定値がONにされていても、ユーザ設定により、色のスケールに関する設定値がモノクロスケール以外のスケール、つまり、カラースケール若しくはグレースケールに設定されている場合において、スキャナドライバ30は、設定値に従ったスキャン指示をスキャナ50に送信し、従来のスキャンシステムで実行される処理と同じ処理が実行される。   When the setting value of the rotation required process is OFF, the scanner driver 30 transmits a scan instruction according to the setting value to the scanner 50, and the same process as the process executed in the conventional scan system is executed. Is done. Even if the setting value for rotation required processing is ON, the scanner driver when the setting value related to the color scale is set to a scale other than the monochrome scale, that is, the color scale or the gray scale, by the user setting. 30 transmits a scan instruction according to the set value to the scanner 50, and the same processing as that executed in the conventional scanning system is executed.

<スキャナドライバの処理>
上述したPC10からスキャナ50へのスキャン指示の送信,および、スキャン指示の送信に応じて取得されたスキャンデータに対する各種処理の実行は、CPU12においてスキャナドライバ30が実行されることによって行われる。以下に、図7乃至図12を用いて、スキャナドライバ30のフローが実行される際の処理を説明する。本処理は、スキャナドライバ30が起動し、スキャン処理の設定に関するユーザ操作が入力された後に、スキャン処理の実行を指示するユーザ操作が入力された場合に実行される処理である。
<Scanner driver processing>
The above-described transmission of the scan instruction from the PC 10 to the scanner 50 and the execution of various processes on the scan data acquired in response to the transmission of the scan instruction are performed by the CPU 12 executing the scanner driver 30. Hereinafter, processing when the flow of the scanner driver 30 is executed will be described with reference to FIGS. 7 to 12. This process is a process executed when a user operation for instructing execution of a scan process is input after the scanner driver 30 is activated and a user operation related to scan process settings is input.

まず、スキャナドライバ30は、要回転処理に関する設定値がONに設定されているか否かを判断する(S100:図7参照)。この際、要回転処理に関する設定値がOFFに設定されている場合(S100:NO)に、従来処理と同じ処理が実行される(S102)。なお、従来処理とは、スキャン処理の設定に従い、スキャン処理の実行とスキャンデータに基づく画像の画像処理を行うことである。そして、本フローが終了する。   First, the scanner driver 30 determines whether or not the setting value related to the rotation required process is set to ON (S100: refer to FIG. 7). At this time, if the setting value related to the rotation required process is set to OFF (S100: NO), the same process as the conventional process is executed (S102). Note that the conventional processing is to execute scan processing and perform image processing based on scan data in accordance with scan processing settings. Then, this flow ends.

また、要回転処理に関する設定値がONに設定されている場合(S100:YES)に、スキャナドライバ30は、色のスケールに関する設定値がモノクロスケールに設定されているか否かを判断する(S104)。この際、色のスケールに関する設定値がモノクロスケール以外に設定されている場合(S104:NO)に、従来処理と同じ処理が実行される(S102)。そして、本フローが終了する。   If the setting value related to the rotation required process is set to ON (S100: YES), the scanner driver 30 determines whether the setting value related to the color scale is set to the monochrome scale (S104). . At this time, when the setting value related to the color scale is set to other than the monochrome scale (S104: NO), the same processing as the conventional processing is executed (S102). Then, this flow ends.

また、色のスケールに関する設定値がモノクロスケールに設定されている場合(S104:YES)に、スキャナドライバ30は、要回転処理が向き補正処理であるか否かを判断する(S106)。この際、要回転処理が向き補正処理である場合(S106:YES)に、スキャナドライバ30は、データ量の抑制を図るべき状況であるか否かを判断する(S108)。そして、データ量の抑制を図るべき状況でない場合(S108:NO)に、速度優先向き補正処理実行サブルーチンが実行される(S110)。   If the setting value related to the color scale is set to the monochrome scale (S104: YES), the scanner driver 30 determines whether or not the rotation required process is a direction correction process (S106). At this time, if the rotation required process is the direction correction process (S106: YES), the scanner driver 30 determines whether or not the data amount should be suppressed (S108). Then, when the data amount is not to be suppressed (S108: NO), a speed priority direction correction process execution subroutine is executed (S110).

速度優先向き補正処理実行サブルーチンでは、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する(S140:図8参照)。そして、スキャナドライバ30は、グレースケールのスキャンデータを取得する(S142)。続いて、スキャナドライバ30は、グレースケールのスキャンデータに基づいてOCR処理を実行する(S144)。そして、スキャナドライバ30は、OCR処理の処理結果に基づいて、スキャンデータに基づく画像に含まれる文字の方向を検知する(S146)。次に、スキャナドライバ30は、検知した文字の方向を利用して回転処理を実行する(S148)。続いて、スキャナドライバ30は、回転処理を実行したグレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する(S150)。そして、スキャナドライバ30は、モノクロスケールに変換したスキャンデータをアプリケーション32に出力する(S152)。これにより、速度優先向き補正処理実行サブルーチンが終了し、本フローが終了する。   In the speed priority direction correction processing execution subroutine, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 (S140: see FIG. 8). Then, the scanner driver 30 acquires grayscale scan data (S142). Subsequently, the scanner driver 30 executes OCR processing based on the grayscale scan data (S144). Then, the scanner driver 30 detects the direction of characters included in the image based on the scan data based on the processing result of the OCR processing (S146). Next, the scanner driver 30 executes a rotation process using the detected character direction (S148). Subsequently, the scanner driver 30 converts the grayscale scan data that has been subjected to the rotation processing into monochrome scale scan data (S150). Then, the scanner driver 30 outputs the scan data converted to the monochrome scale to the application 32 (S152). As a result, the speed priority direction correction processing execution subroutine ends, and this flow ends.

また、S108(図7参照)でデータ量の抑制を図るべき状況である場合(S108:YES)に、メモリ優先向き補正処理実行サブルーチンが実行される(S112)。メモリ優先向き補正処理実行サブルーチンでは、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する(S160:図9参照)。そして、スキャナドライバ30は、グレースケールのスキャンデータを取得する(S162)。続いて、スキャナドライバ30は、グレースケールのスキャンデータに基づいてOCR処理を実行する(S164)。そして、スキャナドライバ30は、OCR処理の処理結果に基づいて、スキャンデータに基づく画像に含まれる文字の方向を検知する(S166)。次に、スキャナドライバ30は、OCR処理を実行したグレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する(S168)。続いて、スキャナドライバ30は、S166で検知した文字の方向を利用して回転処理を実行する(S170)。そして、スキャナドライバ30は、回転処理を実行したスキャンデータをアプリケーション32に出力する(S172)。これにより、メモリ優先向き補正処理実行サブルーチンが終了し、本フローが終了する。   In S108 (see FIG. 7), if the data amount should be suppressed (S108: YES), the memory priority direction correction processing execution subroutine is executed (S112). In the memory priority orientation correction processing execution subroutine, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 (S160: see FIG. 9). The scanner driver 30 acquires grayscale scan data (S162). Subsequently, the scanner driver 30 executes OCR processing based on the grayscale scan data (S164). Then, the scanner driver 30 detects the direction of characters included in the image based on the scan data based on the processing result of the OCR process (S166). Next, the scanner driver 30 converts the grayscale scan data that has been subjected to the OCR processing into monochrome scale scan data (S168). Subsequently, the scanner driver 30 executes a rotation process using the character direction detected in S166 (S170). Then, the scanner driver 30 outputs the scan data subjected to the rotation process to the application 32 (S172). As a result, the memory priority direction correction processing execution subroutine ends, and this flow ends.

また、S106(図7参照)で要回転処理が向き補正処理でない場合(S106:NO)に、スキャナドライバ30は、要回転処理がサイズ検知処理で有るか否かを判断する(S114)。この際、要回転処理がサイズ検知処理である場合(S114:YES)に、スキャナドライバ30は、データ量の抑制を図るべき状況であるか否かを判断する(S116)。そして、データ量の抑制を図るべき状況でない場合(S116:NO)に、速度優先サイズ検知処理実行サブルーチンが実行される(S118)。   When the required rotation process is not the orientation correction process in S106 (see FIG. 7) (S106: NO), the scanner driver 30 determines whether the required rotation process is a size detection process (S114). At this time, if the rotation required process is a size detection process (S114: YES), the scanner driver 30 determines whether or not the data amount should be suppressed (S116). Then, when the data amount is not to be suppressed (S116: NO), the speed priority size detection process execution subroutine is executed (S118).

速度優先サイズ検知処理実行サブルーチンでは、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する(S180:図10参照)。そして、スキャナドライバ30は、グレースケールのスキャンデータを取得する(S182)。続いて、スキャナドライバ30は、グレースケールのスキャンデータに基づいて原稿外領域の検知処理を実行する(S184)。そして、スキャナドライバ30は、原稿外領域の検知処理の処理結果に基づいて、トリミング処理を実行する(S186)。続いて、スキャナドライバ30は、トリミング処理を実行したグレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する(S190)。そして、スキャナドライバ30は、モノクロスケールに変換したスキャンデータをアプリケーション32に出力する(S194)。これにより、速度優先サイズ検知処理実行サブルーチンが終了し、本フローが終了する。   In the speed priority size detection process execution subroutine, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 (S180: see FIG. 10). Then, the scanner driver 30 acquires grayscale scan data (S182). Subsequently, the scanner driver 30 executes a process for detecting an outside document area based on the grayscale scan data (S184). Then, the scanner driver 30 executes the trimming process based on the processing result of the outside-area detection process (S186). Subsequently, the scanner driver 30 converts the grayscale scan data subjected to the trimming processing into monochrome scale scan data (S190). Then, the scanner driver 30 outputs the scan data converted to the monochrome scale to the application 32 (S194). As a result, the speed priority size detection process execution subroutine ends, and this flow ends.

また、S116(図7参照)でデータ量の抑制を図るべき状況である場合(S116:YES)に、メモリ優先サイズ検知処理実行サブルーチンが実行される(S120)。メモリ優先サイズ検知処理実行サブルーチンでは、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する(S200:図11参照)。そして、スキャナドライバ30は、グレースケールのスキャンデータを取得する(S202)。続いて、スキャナドライバ30は、グレースケールのスキャンデータに基づいて原稿外領域の検知処理を実行する(S204)。そして、スキャナドライバ30は、原稿外領域の検知処理を実行したグレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する(S206)。次に、スキャナドライバ30は、原稿外領域の検知処理の処理結果に基づいて、トリミング処理を実行する(S208)。そして、スキャナドライバ30は、トリミング処理を実行したスキャンデータをアプリケーション32に出力する(S214)。これにより、メモリ優先サイズ検知処理実行サブルーチンが終了し、本フローが終了する。   In S116 (see FIG. 7), when the data amount should be suppressed (S116: YES), a memory priority size detection process execution subroutine is executed (S120). In the memory priority size detection process execution subroutine, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 (S200: refer to FIG. 11). Then, the scanner driver 30 acquires grayscale scan data (S202). Subsequently, the scanner driver 30 executes a process for detecting an outside document area based on the grayscale scan data (S204). Then, the scanner driver 30 converts the grayscale scan data that has been subjected to the detection process of the area outside the document into monochrome scale scan data (S206). Next, the scanner driver 30 executes a trimming process based on the processing result of the outside-area detection process (S208). Then, the scanner driver 30 outputs the scan data subjected to the trimming process to the application 32 (S214). As a result, the memory priority size detection process execution subroutine ends, and this flow ends.

また、S114(図7参照)で要回転処理がサイズ検知処理でない場合(S114:NO)に、スキャナドライバ30は、データ量の抑制を図るべき状況であるか否かを判断する(S122)。そして、データ量の抑制を図るべき状況でない場合(S122:NO)に、速度優先トリミングor付足処理実行サブルーチンが実行される(S124)。   When the rotation required process is not the size detection process in S114 (see FIG. 7) (S114: NO), the scanner driver 30 determines whether or not the data amount should be suppressed (S122). If the situation is not such that the data amount should be suppressed (S122: NO), the speed priority trimming or leg addition process execution subroutine is executed (S124).

速度優先トリミングor付足処理実行サブルーチンでは、スキャナドライバ30は、グレースケールでのスキャン指示をスキャナ50に送信する(S220:図12参照)。そして、スキャナドライバ30は、グレースケールのスキャンデータを取得する(S222)。続いて、スキャナドライバ30は、グレースケールのスキャンデータに基づいてトリミング処理、若しくは、付足処理を実行する(S226)。そして、スキャナドライバ30は、トリミング処理、若しくは、付足処理を実行したグレースケールのスキャンデータを、モノクロスケールのスキャンデータに変換する(S228)。そして、スキャナドライバ30は、モノクロスケールに変換したスキャンデータをアプリケーション32に出力する(S230)。これにより、速度優先トリミングor付足処理実行サブルーチンが終了し、本フローが終了する。   In the speed priority trimming or added leg processing execution subroutine, the scanner driver 30 transmits a scan instruction in gray scale to the scanner 50 (S220: see FIG. 12). Then, the scanner driver 30 acquires grayscale scan data (S222). Subsequently, the scanner driver 30 performs a trimming process or an adding process based on the grayscale scan data (S226). Then, the scanner driver 30 converts the grayscale scan data that has been subjected to the trimming process or the append process to monochrome scale scan data (S228). Then, the scanner driver 30 outputs the scan data converted to the monochrome scale to the application 32 (S230). As a result, the speed priority trimming or foot process execution subroutine ends, and this flow ends.

また、S122(図7参照)でデータ量の抑制を図るべき状況である場合(S122:YES)に、メモリ優先トリミングor付足処理実行サブルーチンが実行される(S126)。メモリ優先トリミングor付足処理実行サブルーチンでは、スキャナドライバ30は、モノクロスケールでのスキャン指示をスキャナ50に送信する(S240:図13参照)。そして、スキャナドライバ30は、モノクロスケールのスキャンデータを取得する(S242)。続いて、スキャナドライバ30は、モノクロスケールのスキャンデータに基づいてトリミング処理、若しくは、付足処理を実行する(S246)。そして、スキャナドライバ30は、トリミング処理、若しくは、付足処理を実行したモノクロスケールのスキャンデータをアプリケーション32に出力する(S248)。これにより、メモリ優先トリミングor付足処理実行サブルーチンが終了し、本フローが終了する。   Further, when the data amount is to be suppressed in S122 (see FIG. 7) (S122: YES), the memory priority trimming or adding process execution subroutine is executed (S126). In the memory priority trimming or added leg processing execution subroutine, the scanner driver 30 transmits a scan instruction in monochrome scale to the scanner 50 (S240: see FIG. 13). Then, the scanner driver 30 acquires monochrome scale scan data (S242). Subsequently, the scanner driver 30 performs a trimming process or an addition process based on the monochrome scale scan data (S246). Then, the scanner driver 30 outputs the monochrome scale scan data on which the trimming process or the add process has been executed to the application 32 (S248). As a result, the memory priority trimming or added leg processing execution subroutine ends, and this flow ends.

なお、S140,S160,S180,S200,S220,S240を実行するCPU12は、指示出力手段の一例である。S148,S186,S226を実行するCPU12は、第1回転処理実行手段の一例である。S150,S190,S228を実行するCPU12は、第1変換手段の一例である。S152,S172,S194,S214,S230,S248を実行するCPU12は、出力手段の一例である。S164,S204を実行するCPU12は、所定処理実行手段の一例である。S168,S206を実行するCPU12は、第2変換手段の一例である。S170,S208を実行するCPU12は、第3回転処理実行手段の一例である。S246を実行するCPU12は、第2回転処理実行手段の一例である。   The CPU 12 that executes S140, S160, S180, S200, S220, and S240 is an example of an instruction output unit. The CPU 12 that executes S148, S186, and S226 is an example of a first rotation processing execution unit. The CPU 12 that executes S150, S190, and S228 is an example of a first conversion unit. The CPU 12 that executes S152, S172, S194, S214, S230, and S248 is an example of an output unit. The CPU 12 that executes S164 and S204 is an example of a predetermined process execution unit. The CPU 12 that executes S168 and S206 is an example of a second conversion unit. The CPU 12 that executes S170 and S208 is an example of third rotation processing execution means. The CPU 12 that executes S246 is an example of a second rotation processing execution unit.

また、本発明は、上記実施形態に限定されるものではなく、当業者の知識に基づいて種々の変更、改良を施した種々の態様で実施することが可能である。具体的には、例えば、上記実施形態では、PC10においてスキャン処理の設定値を受け付け、PC10がスキャナ50にスキャン指示を出力しているが、スキャナ50においてスキャン処理の設定値を受け付け、スキャナ50のスキャン指示に従ってスキャナ50がスキャン処理を実行してもよい。   The present invention is not limited to the above-described embodiment, and can be implemented in various modes with various changes and improvements based on the knowledge of those skilled in the art. Specifically, for example, in the above embodiment, the PC 10 receives a scan process setting value and the PC 10 outputs a scan instruction to the scanner 50. However, the scanner 50 receives the scan process setting value, and the scanner 50 The scanner 50 may execute a scan process according to the scan instruction.

また、上記実施形態では、CPU12によって図7乃至図13に示す処理が実行される例を説明したが、これら処理は、CPU12に限らず、ASICや他の論理集積回路により実行されてもよいし、これら処理が、CPU等やASIC、他の論理集積回路が協働することにより実行されてもよい。   In the above embodiment, the example in which the processing shown in FIGS. 7 to 13 is executed by the CPU 12 has been described. However, the processing is not limited to the CPU 12, and may be executed by an ASIC or other logical integrated circuit. These processes may be executed by cooperation of a CPU or the like, an ASIC, or another logic integrated circuit.

10:PC、12:CPU、18:入力I/F、30:スキャナドライバ、50:スキャナ   10: PC, 12: CPU, 18: input I / F, 30: scanner driver, 50: scanner

Claims (7)

操作部を備える画像処理装置のコンピュータが読み取り可能な制御プログラムであって、
前記コンピュータを、
前記操作部を介して、スキャン処理の設定値を受け付ける受付手段と、
前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、画像の回転処理を要する所定の処理の実行を要求するものである場合に、グレースケールのスキャンデータの作成を指示するスキャン指示を出力する指示出力手段と、
前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第1回転処理実行手段と、
前記第1回転処理実行手段による回転処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第1変換手段と、
前記第1変換手段により変換された2値のスキャンデータを出力する出力手段と、
して機能させることを特徴とする制御プログラム。
A control program readable by a computer of an image processing apparatus including an operation unit,
The computer,
An accepting means for accepting a setting value for scan processing via the operation unit;
When the set value received by the accepting unit requests the creation of binary scan data and requests the execution of a predetermined process that requires image rotation processing, a grayscale scan is performed. Instruction output means for outputting a scan instruction for instructing creation of data;
First rotation processing execution means for executing rotation processing of an image based on the scan data for grayscale scan data acquired in response to the output of the scan instruction by the instruction output means;
First conversion means for converting grayscale scan data that has been subjected to rotation processing by the first rotation processing execution means into binary scan data;
Output means for outputting binary scan data converted by the first conversion means;
A control program characterized by functioning as a function.
前記第1回転処理実行手段は、
グレースケールのスキャンデータに含まれる1画素の容量毎のデータをコピーすることで、当該スキャンデータに基づく画像の回転処理を実行することを特徴とする請求項1に記載の制御プログラム。
The first rotation processing execution means includes
The control program according to claim 1, wherein the image rotation processing based on the scan data is executed by copying the data for each pixel capacity included in the grayscale scan data.
前記指示出力手段は、
前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、前記所定の処理の実行を要求するものである場合であっても、前記受付手段が受け付けた設定値が、予め設定された設定解像度以上のスキャンデータの作成を要求するものであることと、予め設定された設定サイズ以上の原稿のスキャンデータの作成を要求するものであることとの少なくとも一方を条件として、2値のスキャンデータの作成を指示するスキャン指示を出力し、
前記コンピュータを、
前記指示出力手段によるスキャン指示の出力に応じて取得した2値のスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第2回転処理実行手段と、
して機能させ、
前記出力手段は、
前記第2回転処理実行手段による回転処理が実行された2値のスキャンデータを出力することを特徴とする請求項1又は2に記載の制御プログラム。
The instruction output means includes
Even if the setting value received by the receiving unit is a request for creating binary scan data and requesting the execution of the predetermined process, the receiving unit has received the setting value. At least one of requesting the creation of scan data having a set value greater than or equal to a preset set resolution and requesting creation of scan data of a document having a preset size or larger A scan instruction to instruct the creation of binary scan data,
The computer,
Second rotation processing execution means for executing image rotation processing based on the scan data for binary scan data acquired in response to the output of the scan instruction by the instruction output means;
To function,
The output means includes
The control program according to claim 1 or 2, wherein binary scan data that has been subjected to rotation processing by the second rotation processing execution means is output.
前記指示出力手段は、
前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、前記所定の処理の実行を要求するものである場合であっても、前記画像処理装置のメモリの空き容量が設定量以下であることを条件として、2値のスキャンデータの作成を指示するスキャン指示を出力し、
前記コンピュータを、
前記指示出力手段によるスキャン指示の出力に応じて取得した2値のスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第2回転処理実行手段と、
して機能させ、
前記出力手段は、
前記第2回転処理実行手段による回転処理が実行された2値のスキャンデータを出力することを特徴とする請求項1又は2に記載の制御プログラム。
The instruction output means includes
Even if the setting value received by the receiving unit is a request for creating binary scan data and a request for executing the predetermined process, the memory of the image processing apparatus A scan instruction that instructs the creation of binary scan data is output on condition that the free space of
The computer,
Second rotation processing execution means for executing image rotation processing based on the scan data for binary scan data acquired in response to the output of the scan instruction by the instruction output means;
To function,
The output means includes
The control program according to claim 1 or 2, wherein binary scan data that has been subjected to rotation processing by the second rotation processing execution means is output.
前記受付手段が受け付けた設定値が、予め設定された設定解像度以上のスキャンデータの作成を要求するものであることと、予め設定された設定サイズ以上の原稿のスキャンデータの作成を要求するものであることとの少なくとも一方を条件として、
前記コンピュータを、
前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、前記所定の処理を実行する所定処理実行手段と、
前記所定処理実行手段による処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第2変換手段と、
前記第2変換手段により変換された2値のスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第3回転処理実行手段と、
して機能させ、
前記出力手段は、
前記第3回転処理実行手段による回転処理が実行された2値のスキャンデータを出力することを特徴とする請求項1又は2に記載の制御プログラム。
The setting value received by the receiving means is for requesting creation of scan data having a preset resolution or higher, and requesting for creation of scan data of a document having a preset size or more. Subject to at least one of being,
The computer,
Predetermined process execution means for executing the predetermined process on grayscale scan data acquired in response to the output of a scan instruction by the instruction output means;
Second conversion means for converting grayscale scan data that has been processed by the predetermined process execution means into binary scan data;
Third rotation processing execution means for executing, on the binary scan data converted by the second conversion means, image rotation processing based on the scan data;
To function,
The output means includes
The control program according to claim 1 or 2, wherein binary scan data that has been subjected to rotation processing by the third rotation processing execution means is output.
前記画像処理装置のメモリの空き容量が設定量以下であることを条件として、
前記コンピュータを、
前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、前記所定の処理を実行する所定処理実行手段と、
前記所定処理実行手段による処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第2変換手段と、
前記第2変換手段により変換された2値のスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第3回転処理実行手段と、
して機能させ、
前記出力手段は、
前記第3回転処理実行手段による回転処理が実行された2値のスキャンデータを出力することを特徴とする請求項1又は2に記載の制御プログラム。
On condition that the free space of the memory of the image processing apparatus is not more than a set amount,
The computer,
Predetermined process execution means for executing the predetermined process on grayscale scan data acquired in response to the output of a scan instruction by the instruction output means;
Second conversion means for converting grayscale scan data that has been processed by the predetermined process execution means into binary scan data;
Third rotation processing execution means for executing, on the binary scan data converted by the second conversion means, image rotation processing based on the scan data;
To function,
The output means includes
The control program according to claim 1 or 2, wherein binary scan data that has been subjected to rotation processing by the third rotation processing execution means is output.
操作部と、
制御部と、
を備える画像処理装置であって、
前記制御部を、
前記操作部を介して、スキャン処理の設定値を受け付ける受付手段と、
前記受付手段が受け付けた設定値が、2値のスキャンデータの作成を要求するものであり、かつ、画像の回転処理を要する所定の処理の実行を要求するものである場合に、グレースケールのスキャンデータの作成を指示するスキャン指示を出力する指示出力手段と、
前記指示出力手段によるスキャン指示の出力に応じて取得したグレースケールのスキャンデータに対して、当該スキャンデータに基づく画像の回転処理を実行する第1回転処理実行手段と、
前記第1回転処理実行手段による回転処理が実行されたグレースケールのスキャンデータを、2値のスキャンデータに変換する第1変換手段と、
前記第1変換手段により変換された2値のスキャンデータを出力する出力手段と、
して機能させることを特徴とする画像処理装置。
An operation unit;
A control unit;
An image processing apparatus comprising:
The control unit
An accepting means for accepting a setting value for scan processing via the operation unit;
When the set value received by the accepting unit requests the creation of binary scan data and requests the execution of a predetermined process that requires image rotation processing, a grayscale scan is performed. Instruction output means for outputting a scan instruction for instructing creation of data;
First rotation processing execution means for executing rotation processing of an image based on the scan data for grayscale scan data acquired in response to the output of the scan instruction by the instruction output means;
First conversion means for converting grayscale scan data that has been subjected to rotation processing by the first rotation processing execution means into binary scan data;
Output means for outputting binary scan data converted by the first conversion means;
An image processing apparatus characterized in that the image processing apparatus functions.
JP2018034151A 2018-02-28 2018-02-28 Control program and image processing equipment Active JP7031366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018034151A JP7031366B2 (en) 2018-02-28 2018-02-28 Control program and image processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018034151A JP7031366B2 (en) 2018-02-28 2018-02-28 Control program and image processing equipment

Publications (2)

Publication Number Publication Date
JP2019149747A true JP2019149747A (en) 2019-09-05
JP7031366B2 JP7031366B2 (en) 2022-03-08

Family

ID=67850845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018034151A Active JP7031366B2 (en) 2018-02-28 2018-02-28 Control program and image processing equipment

Country Status (1)

Country Link
JP (1) JP7031366B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000244720A (en) * 1999-02-18 2000-09-08 Sharp Corp Image processor
JP2007266921A (en) * 2006-03-28 2007-10-11 Toshiba Corp Image forming apparatus, and image forming method and program
JP2008205997A (en) * 2007-02-22 2008-09-04 Seiko Epson Corp Facsimile apparatus and image data processing method
JP2011250178A (en) * 2010-05-27 2011-12-08 Canon Inc Image reading apparatus, control method therefor, and computer program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000244720A (en) * 1999-02-18 2000-09-08 Sharp Corp Image processor
JP2007266921A (en) * 2006-03-28 2007-10-11 Toshiba Corp Image forming apparatus, and image forming method and program
JP2008205997A (en) * 2007-02-22 2008-09-04 Seiko Epson Corp Facsimile apparatus and image data processing method
JP2011250178A (en) * 2010-05-27 2011-12-08 Canon Inc Image reading apparatus, control method therefor, and computer program

Also Published As

Publication number Publication date
JP7031366B2 (en) 2022-03-08

Similar Documents

Publication Publication Date Title
EP2372998B1 (en) Image processing apparatus, image processing method and computer program product
JP6175905B2 (en) Information processing apparatus, information processing method, system, and program
US10397442B2 (en) Image processing apparatus performing edge correction process on scan data and acquiring characteristic information
JP4933415B2 (en) Image processing apparatus, method, and program
US20130194277A1 (en) Screen generating apparatus, screen generating system, and screen generating method
CN107800922B (en) Image processing apparatus, control method thereof, and computer-readable storage medium
JP7031366B2 (en) Control program and image processing equipment
JP6015173B2 (en) PRINT SERVER, PRINT SYSTEM, PRINT PROCESSING METHOD, AND PROGRAM
JP2015015599A (en) Image processing apparatus, image forming apparatus, image processing method, and program and recording medium of the same
JP6171727B2 (en) Image processing device, sheet, computer program
US10855883B2 (en) Image processing apparatus for performing edge correction of image, method of controlling the same, and storage medium
US10805481B2 (en) Image processing apparatus receiving setting values for scan process and outputting scan data
US20200076987A1 (en) Image processing apparatus, control method thereof, and storage medium
JP5090969B2 (en) Image processing device
US10951777B2 (en) Image forming apparatus and non-transitory computer-readable recording medium storing image forming program
US20240106965A1 (en) Information processing apparatus, non-transitory computer readable medium storing computer program, and information processing method
US10440224B2 (en) Transmitting command for scanner to generate scan data and processing data to determine size of original
JP5992956B2 (en) Image processing device
JP2022061279A (en) Image processing apparatus, method for controlling image processing apparatus, and program
JP2022141319A (en) Image processing device, control method for the same, and program
JP2023157146A (en) printer and program
JP2023170925A (en) Image processing apparatus, image forming apparatus, and program
JP5732864B2 (en) Information processing apparatus, program, and printing method
JP2007036514A (en) Image conversion system
JP2018082409A (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211026

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211223

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220207

R150 Certificate of patent or registration of utility model

Ref document number: 7031366

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150