JP6969258B2 - Image pickup device, printing system, image processing method and program - Google Patents

Image pickup device, printing system, image processing method and program Download PDF

Info

Publication number
JP6969258B2
JP6969258B2 JP2017185287A JP2017185287A JP6969258B2 JP 6969258 B2 JP6969258 B2 JP 6969258B2 JP 2017185287 A JP2017185287 A JP 2017185287A JP 2017185287 A JP2017185287 A JP 2017185287A JP 6969258 B2 JP6969258 B2 JP 6969258B2
Authority
JP
Japan
Prior art keywords
image
extraction range
target
extraction
extracted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017185287A
Other languages
Japanese (ja)
Other versions
JP2019061481A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2017185287A priority Critical patent/JP6969258B2/en
Publication of JP2019061481A publication Critical patent/JP2019061481A/en
Priority to JP2021169073A priority patent/JP7276401B2/en
Application granted granted Critical
Publication of JP6969258B2 publication Critical patent/JP6969258B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、撮像装置、印刷システム、画像処理方法及びプログラムに関する。 The present invention relates to an image pickup apparatus, a printing system, an image processing method and a program.

撮像画像からターゲットを抽出する技術が知られている。例えば、特許文献1は、撮像画像に含まれる文字列を読み取る文字読み取り装置を開示している。具体的に説明すると、特許文献1に開示された文字読み取り装置は、撮像画像に含まれる文字列の抽出範囲である認識枠をプレビュー画像の中央に表示する。ユーザは、プレビュー画面を確認しながら、読み取り対象の文字列が認識枠内に収まるようにカメラの視点を調整する。その上で、ユーザが読み取り対象の文字列を撮像すると、文字読み取り装置によって認識枠内の文字列が読み取られる。 A technique for extracting a target from an captured image is known. For example, Patent Document 1 discloses a character reading device that reads a character string included in a captured image. Specifically, the character reading device disclosed in Patent Document 1 displays a recognition frame, which is an extraction range of a character string included in a captured image, in the center of a preview image. While checking the preview screen, the user adjusts the viewpoint of the camera so that the character string to be read fits within the recognition frame. Then, when the user captures the character string to be read, the character reading device reads the character string in the recognition frame.

特開2005−215775号公報Japanese Unexamined Patent Publication No. 2005-215775

特許文献1に開示された文字読み取り装置を用いて撮像画像から抽出範囲内のターゲットを抽出する場合において、撮像前に抽出範囲内にターゲットを収めても、撮像時に手振れ等が生じることによって、ターゲットが抽出範囲内からはみ出ることがある。このような場合に、撮像画像からターゲットを適切に抽出することが難しくなる、との課題がある。 When a target within the extraction range is extracted from a captured image using the character reading device disclosed in Patent Document 1, even if the target is within the extraction range before imaging, camera shake or the like occurs during imaging, so that the target May exceed the extraction range. In such a case, there is a problem that it becomes difficult to properly extract the target from the captured image.

本発明は、以上のような課題を解決するためのものであり、撮像画像からターゲットを適切に抽出することが可能な撮像装置、印刷システム、画像処理方法及びプログラムを提供することを目的とする。 The present invention is intended to solve the above problems, and an object of the present invention is to provide an image pickup device, a printing system, an image processing method, and a program capable of appropriately extracting a target from an image captured image. ..

上記目的を達成するため、本発明に係る撮像装置は、
ターゲットを撮像することにより撮像画像を生成する撮像手段と、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示手段と、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御手段と、
前記撮像画像から、前記拡大制御手段によって拡大された後の前記抽出範囲の画像を抽出する抽出手段と、
前記抽出手段によって抽出された画像を、前記拡大制御手段によって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成手段と、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信手段と、
を備えることを特徴とする。
In order to achieve the above object, the image pickup apparatus according to the present invention is
An imaging means that generates an captured image by imaging a target,
A display means for displaying the extraction range set in the captured image on the display unit, and
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. Means and
An extraction means for extracting an image of the extraction range after being enlarged by the enlargement control means from the captured image, and an extraction means.
A generation means for generating an extracted image including the target by reducing the image extracted by the extraction means to the size of the extraction range before being enlarged by the enlargement control means.
A transmission means for transmitting the generated extracted image as a print image to another device, and
It is characterized by having.

本発明によれば、撮像画像からターゲットを適切に抽出することができる。 According to the present invention, the target can be appropriately extracted from the captured image.

本発明の実施形態に係る印刷システムの全体構成を示す図である。It is a figure which shows the whole structure of the printing system which concerns on embodiment of this invention. 本発明の実施形態に係る撮像装置の物理的構成を示す図である。It is a figure which shows the physical structure of the image pickup apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る印刷装置の物理的構成を示す図である。It is a figure which shows the physical structure of the printing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る印刷システムの機能的構成を示す図である。It is a figure which shows the functional structure of the printing system which concerns on embodiment of this invention. 本発明の実施形態に係る撮像装置によるプレビュー画像の表示を説明するための図である。It is a figure for demonstrating the display of the preview image by the image pickup apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る撮像装置によるターゲット領域の選択を説明するための図である。It is a figure for demonstrating the selection of the target area by the image pickup apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る撮像装置による抽出画像の生成を説明するための図である。It is a figure for demonstrating the generation of the extracted image by the image pickup apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る印刷システムが実行する処理を説明するためのシーケンス図である。It is a sequence diagram for demonstrating the process performed by the printing system which concerns on embodiment of this invention. 本発明の実施形態に係る撮像装置が実行する抽出処理を説明するためのフローチャートである。It is a flowchart for demonstrating the extraction process performed by the image pickup apparatus which concerns on embodiment of this invention.

以下、本発明の実施形態について、図面を参照して説明する。なお、図中互いに同一又は同等の構成には、互いに同一の符号を付す。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the figure, the same or equivalent configurations are designated by the same reference numerals.

図1に示す印刷システム1は、撮像装置2と、印刷装置3と、を備えている。撮像装置2は、印刷装置3との間で無線通信を行い、データを送受信する。 The printing system 1 shown in FIG. 1 includes an image pickup apparatus 2 and a printing apparatus 3. The image pickup apparatus 2 performs wireless communication with the printing apparatus 3 and transmits / receives data.

撮像装置2は、スマートフォン、デジタルカメラ、タブレット端末、PC(Personal Computer)等の、撮像機能を有し、ユーザによって操作される端末機器である。撮像装置2は、図2に示すように、制御部21と、記憶部22と、撮像部23と、入力部24と、出力部25と、通信部26と、を備えている。 The image pickup device 2 is a terminal device having an image pickup function and operated by a user, such as a smartphone, a digital camera, a tablet terminal, and a PC (Personal Computer). As shown in FIG. 2, the image pickup apparatus 2 includes a control unit 21, a storage unit 22, an image pickup unit 23, an input unit 24, an output unit 25, and a communication unit 26.

制御部21は、CPU(Central Processing Unit)を備え、記憶部22に記憶されたプログラム及びデータに従って後述する抽出処理を含む各種処理を実行する。制御部21は、コマンド及びデータの伝送経路であるシステムバスを介して撮像装置2の各部に接続されており、撮像装置2全体を統括制御する。 The control unit 21 includes a CPU (Central Processing Unit) and executes various processes including an extraction process described later according to the programs and data stored in the storage unit 22. The control unit 21 is connected to each unit of the image pickup apparatus 2 via a system bus which is a transmission path of commands and data, and controls the entire image pickup apparatus 2 in an integrated manner.

記憶部22は、ROM(Read Only Memory)と、RAM(Random Access Memory)と、フラッシュメモリ、ハードディスク等の不揮発性メモリと、を備えており、制御部21が各種処理を実行するために用いるプログラム及びデータを記憶する。具体的に、ROMは、制御部21が実行する制御プログラムを記憶する。また、RAMは、制御部21が各種処理を実行することによって生成又は取得したデータを記憶する。また、RAMは、制御部21のワークエリアとして機能する。 The storage unit 22 includes a ROM (Read Only Memory), a RAM (Random Access Memory), and a non-volatile memory such as a flash memory and a hard disk, and is a program used by the control unit 21 to execute various processes. And store the data. Specifically, the ROM stores a control program executed by the control unit 21. Further, the RAM stores data generated or acquired by the control unit 21 executing various processes. Further, the RAM functions as a work area of the control unit 21.

撮像部23は、光学レンズ部23aと、イメージセンサ23bと、を備えており、制御部21による制御に従い、被写体を撮像することによって画像を生成する。撮像部23は、生成した画像を制御部21へ供給する。 The image pickup unit 23 includes an optical lens unit 23a and an image sensor 23b, and generates an image by taking an image of a subject under the control of the control unit 21. The image pickup unit 23 supplies the generated image to the control unit 21.

具体的に、光学レンズ部23aは、被写体から射出された光を集光する光学レンズと、光学レンズの焦点、露出、ホワイトバランス等の撮像パラメータを調整する周辺回路と、を備えている。イメージセンサ23bは、CCD(Charge Coupled Device)、COMS(Complementary Metal Oxide Semiconductor)等の撮像素子を備え、光学レンズ部23aが光を集光することによって結像した被写体の光学像に対応する電圧情報を取得する。イメージセンサ23bは、取得した電圧情報に対してA/D(Analog-to Digital)変換を施すことにより画像データを生成し、生成された画像データを制御部21へ供給する。 Specifically, the optical lens unit 23a includes an optical lens that collects light emitted from a subject, and a peripheral circuit that adjusts imaging parameters such as focus, exposure, and white balance of the optical lens. The image sensor 23b includes an image pickup element such as a CCD (Charge Coupled Device) or a COMS (Complementary Metal Oxide Semiconductor), and voltage information corresponding to an optical image of a subject imaged by the optical lens unit 23a condensing light. To get. The image sensor 23b generates image data by performing A / D (Analog-to Digital) conversion on the acquired voltage information, and supplies the generated image data to the control unit 21.

入力部24は、各種操作ボタン、入力キー、スイッチ、タッチパッド、タッチパネル等の入力装置を備え、ユーザによって入力された各種操作指示を受け付け、受け付けた操作指示を制御部21へ供給する。具体的に、入力部24は、後述する撮像画像の撮像の指示を受け付ける撮像ボタン24aと、撮像ボタン24aの押下を検出する図示しないセンサと、を備えており、撮像ボタン24aが押下されたことに応答して撮像画像の撮像の指示を受け付ける。 The input unit 24 includes input devices such as various operation buttons, input keys, switches, touch pads, and a touch panel, receives various operation instructions input by the user, and supplies the received operation instructions to the control unit 21. Specifically, the input unit 24 includes an image pickup button 24a that receives an instruction to capture an image captured image, which will be described later, and a sensor (not shown) that detects the pressing of the image pickup button 24a, and the image pickup button 24a is pressed. In response to, the instruction to capture the captured image is received.

出力部25は、制御部21による制御に従い、ユーザが認識可能な形態で各種情報を出力する。具体的に、出力部25は、表示部25aを備えている。表示部25aは、液晶ディスプレイ、有機EL(Electroluminescence)ディスプレイ等の表示装置を備え、制御部21による制御に従い、各種画像を表示する。例えば、表示部25aは、制御部21による制御に従い、撮像部23によって生成された後述するプレビュー画像を表示する。 The output unit 25 outputs various information in a form recognizable by the user according to the control by the control unit 21. Specifically, the output unit 25 includes a display unit 25a. The display unit 25a includes a display device such as a liquid crystal display and an organic EL (Electroluminescence) display, and displays various images under the control of the control unit 21. For example, the display unit 25a displays a preview image, which will be described later, generated by the image pickup unit 23 under the control of the control unit 21.

通信部26は、制御部21による制御に従い、外部の機器との間で通信を行うことによりデータを送受信する。具体的に、通信部26は、無線LAN(Local Area Network)等の通信網を介して印刷装置3との間で無線通信を行い、データを送受信する。また、通信部26は、有線通信又は無線通信を行うことにより、インターネット等の広域ネットワークに接続することができる。 The communication unit 26 transmits / receives data by communicating with an external device according to the control of the control unit 21. Specifically, the communication unit 26 performs wireless communication with the printing device 3 via a communication network such as a wireless LAN (Local Area Network), and transmits / receives data. Further, the communication unit 26 can be connected to a wide area network such as the Internet by performing wired communication or wireless communication.

図1に戻り、印刷装置3は、ユーザが把持して印刷媒体上を移動させることが可能であり、当該移動に従って印刷媒体に印刷対象の画像を印刷する手動走査型の印刷装置である。手動走査型の印刷装置は、ハンディプリンタ、ハンドヘルドプリンタ等とも呼ばれる。印刷対象の画像は、印刷装置3によって印刷媒体に印刷される画像である。印刷対象の画像は、印刷画像、印刷パターン等とも呼ばれる。印刷対象の画像の具体例としては、文字、図形、記号、模様、絵、これらの組み合わせ等が挙げられる。印刷媒体は、印刷時に印刷対象の画像が印刷される対象物である。印刷媒体は、被印刷媒体、記録媒体、印刷対象物等とも呼ばれる。印刷媒体の具体例としては、紙、布、合成樹脂、段ボール、箱、瓶等が挙げられる。 Returning to FIG. 1, the printing device 3 is a manual scanning type printing device that can be grasped by the user and moved on the print medium, and prints an image to be printed on the print medium according to the movement. The manual scanning type printing device is also called a handy printer, a handheld printer, or the like. The image to be printed is an image printed on a printing medium by the printing device 3. The image to be printed is also called a print image, a print pattern, or the like. Specific examples of the image to be printed include characters, figures, symbols, patterns, pictures, combinations thereof, and the like. The print medium is an object on which an image to be printed is printed at the time of printing. The print medium is also called a print medium, a recording medium, a print object, or the like. Specific examples of the print medium include paper, cloth, synthetic resin, corrugated cardboard, boxes, bottles and the like.

印刷装置3は、図3に示すように、制御部31と、記憶部32と、ユーザインタフェース33と、電源部34と、通信部35と、移動量検出部36と、印刷部37と、を備える。 As shown in FIG. 3, the printing device 3 includes a control unit 31, a storage unit 32, a user interface 33, a power supply unit 34, a communication unit 35, a movement amount detection unit 36, and a printing unit 37. Be prepared.

制御部31は、CPUを備え、記憶部32に記憶されたプログラム及びデータに従って各種処理を実行する。制御部31は、コマンド及びデータの伝送経路であるシステムバスを介して印刷装置3の各部に接続されており、印刷装置3全体を統括制御する。 The control unit 31 includes a CPU and executes various processes according to the programs and data stored in the storage unit 32. The control unit 31 is connected to each unit of the printing device 3 via a system bus which is a transmission path for commands and data, and controls the entire printing device 3 in an integrated manner.

記憶部32は、ROMと、RAMと、フラッシュメモリ、ハードディスク等の不揮発性メモリと、を備えており、制御部31が各種処理を実行するために用いるプログラム及びデータを記憶する。具体的に、ROMは、制御部31が実行する制御プログラムを記憶する。また、RAMは、制御部31が各種処理を実行することによって生成又は取得したデータを記憶する。また、RAMは、制御部31のワークエリアとして機能する。 The storage unit 32 includes a ROM, a RAM, a flash memory, a non-volatile memory such as a hard disk, and stores programs and data used by the control unit 31 to execute various processes. Specifically, the ROM stores a control program executed by the control unit 31. Further, the RAM stores data generated or acquired by the control unit 31 executing various processes. Further, the RAM functions as a work area of the control unit 31.

ユーザインタフェース33は、各種操作ボタン、入力キー、スイッチ、タッチパッド、タッチパネル等の入力装置を備え、ユーザによって入力された各種操作指示を受け付け、受け付けた操作指示を制御部31へ供給する。また、ユーザインタフェース33は、表示装置、スピーカ等の出力装置を備えており、制御部31による制御に従い、ユーザが認識可能な形態で各種情報を出力する。 The user interface 33 includes input devices such as various operation buttons, input keys, switches, touch pads, and touch panels, receives various operation instructions input by the user, and supplies the received operation instructions to the control unit 31. Further, the user interface 33 includes an output device such as a display device and a speaker, and outputs various information in a form recognizable by the user according to the control by the control unit 31.

電源部34は、制御部31による制御に従い、印刷装置3の各部に電力を供給する。 The power supply unit 34 supplies electric power to each unit of the printing device 3 according to the control by the control unit 31.

通信部35は、制御部31による制御に従い、外部の機器との間で通信を行うことによりデータを送受信する。具体的に、通信部35は、無線LAN等の通信網を介して撮像装置2との間で無線通信を行い、データを送受信する。 The communication unit 35 transmits / receives data by communicating with an external device according to the control of the control unit 31. Specifically, the communication unit 35 performs wireless communication with the image pickup apparatus 2 via a communication network such as a wireless LAN, and transmits / receives data.

移動量検出部36は、印刷装置3の印刷媒体に対する相対的な移動量を検出する。移動量検出部36は、検出された印刷装置3の移動量を表すデータを、制御部31へ供給する。具体的に、移動量検出部36は、図示しないレーザ式光学センサを備え、印刷媒体の表面へレーザ光を照射し、印刷媒体の表面で反射されたレーザ光を図示しないイメージセンサによって撮像する。移動量検出部36は、撮像されたレーザ光の干渉縞を解析することによって印刷装置3の移動量を検出する。 The movement amount detection unit 36 detects the movement amount of the printing device 3 relative to the print medium. The movement amount detection unit 36 supplies data representing the detected movement amount of the printing device 3 to the control unit 31. Specifically, the movement amount detection unit 36 includes a laser type optical sensor (not shown), irradiates the surface of the print medium with laser light, and captures the laser light reflected on the surface of the print medium by an image sensor (not shown). The movement amount detection unit 36 detects the movement amount of the printing device 3 by analyzing the interference fringes of the captured laser beam.

印刷部37は、インクジェットヘッド37aと、インクジェットヘッド制御回路37bと、を備えており、微滴化したインクを印刷媒体へ吐出するインクジェット方式により、印刷対象の画像を印刷媒体に印刷する。 The printing unit 37 includes an inkjet head 37a and an inkjet head control circuit 37b, and prints an image to be printed on the printing medium by an inkjet method of ejecting the atomized ink to the printing medium.

インクジェットヘッド37aは、印刷ヘッド、記録ヘッド、プリントヘッド等とも呼ばれる。インクジェットヘッド37aは、インクジェットヘッド制御回路37bによる制御に従い、図示しないインクタンクに充填されたインクを印刷媒体へ吐出することによって印刷を実行する。インクジェットヘッド37aと上述のインクタンクとを合わせてインクカートリッジ等と呼ぶこともある。より具体的に、インクジェットヘッド37aは、図示しない複数のインクノズルを備えている。インクノズル内部のインクがヒータによって加熱されると気泡が生じ、この気泡が破裂することによってインクノズルから印刷媒体へインクが吐出され、印刷が実行される。 The inkjet head 37a is also called a print head, a recording head, a print head, or the like. The inkjet head 37a executes printing by ejecting ink filled in an ink tank (not shown) to a printing medium in accordance with control by the inkjet head control circuit 37b. The inkjet head 37a and the above-mentioned ink tank may be collectively referred to as an ink cartridge or the like. More specifically, the inkjet head 37a includes a plurality of ink nozzles (not shown). When the ink inside the ink nozzle is heated by the heater, bubbles are generated, and when the bubbles burst, the ink is ejected from the ink nozzles to the printing medium, and printing is executed.

インクジェットヘッド制御回路37bは、制御部31による制御に従い、インクジェットヘッド37aによるインクの吐出を制御する。具体的に、インクジェットヘッド制御回路37bは、移動量検出部36によって検出された印刷装置3の移動量に従って、後述する印刷データをインクジェットヘッド37aへ送信する。インクジェットヘッド制御回路37bは、インクジェットヘッド37aへ印刷データを送信すると、インクの吐出を指示する吐出コマンドをインクジェットヘッド37aへ送信する。インクジェットヘッド37aは、吐出コマンドを受信したことに応答してインクを吐出し、印刷を実行する。 The inkjet head control circuit 37b controls the ink ejection by the inkjet head 37a according to the control by the control unit 31. Specifically, the inkjet head control circuit 37b transmits the print data described later to the inkjet head 37a according to the movement amount of the printing device 3 detected by the movement amount detection unit 36. When the inkjet head control circuit 37b transmits print data to the inkjet head 37a, the inkjet head control circuit 37b transmits a ejection command instructing ink ejection to the inkjet head 37a. The inkjet head 37a ejects ink in response to receiving an ejection command, and executes printing.

以下、上述した物理的構成を備える印刷システム1の機能的構成について説明する。撮像装置2は、制御部21の機能として、図4に示すように、撮像制御部201と、表示制御部202と、検出部203と、判定部204と、取得部205と、送信部206と、を備えている。制御部21は、記憶部22に記憶された制御プログラムを実行して撮像装置2を制御することにより、これらの各部として機能する。 Hereinafter, the functional configuration of the printing system 1 having the above-mentioned physical configuration will be described. As a function of the control unit 21, the image pickup device 2 includes an image pickup control unit 201, a display control unit 202, a detection unit 203, a determination unit 204, an acquisition unit 205, and a transmission unit 206, as shown in FIG. , Is equipped. The control unit 21 functions as each of these units by executing the control program stored in the storage unit 22 to control the image pickup apparatus 2.

撮像制御部201は、撮像部23を制御し、画像を生成させる。具体的に、撮像制御部201は、撮像装置2が備える複数の制御モードのうちの1つである撮像モードをユーザが入力部24を操作することによって選択すると、撮像部23を制御して被写体を撮像させ、プレビュー画像を生成させる。プレビュー画像は、スルー画像とも呼ばれる。撮像制御部201は、撮像部23からプレビュー画像を取得し、表示制御部202へ供給する。 The image pickup control unit 201 controls the image pickup unit 23 to generate an image. Specifically, when the user selects the image pickup mode, which is one of the plurality of control modes included in the image pickup device 2, by operating the input unit 24, the image pickup control unit 201 controls the image pickup unit 23 to control the subject. Is imaged and a preview image is generated. The preview image is also called a through image. The image pickup control unit 201 acquires a preview image from the image pickup unit 23 and supplies it to the display control unit 202.

撮像制御部201は、撮像ボタン24aがユーザによって押下されると、撮像ボタン24aが押下された時点において撮像部23により生成されたプレビュー画像を、撮像画像として取得する。撮像制御部201は、取得した撮像画像を、検出部203及び取得部205へ供給する。すなわち、撮像部23は、撮像制御部201による制御に従い、被写体を撮像することにより撮像画像を生成する。 When the image pickup button 24a is pressed by the user, the image pickup control unit 201 acquires a preview image generated by the image pickup unit 23 at the time when the image pickup button 24a is pressed as an image pickup image. The image pickup control unit 201 supplies the acquired image to the detection unit 203 and the acquisition unit 205. That is, the image pickup unit 23 generates an image to be captured by taking an image of the subject in accordance with the control of the image pickup control unit 201.

表示制御部202は、図5に示すように、表示部25aに、撮像制御部201から供給されたプレビュー画像Iaを表示させる。さらに、表示制御部202は、表示部25aに、プレビュー画像Ia内に抽出範囲アイコンCaを表示させる。表示制御部202は、表示手段として機能する。 As shown in FIG. 5, the display control unit 202 causes the display unit 25a to display the preview image Ia supplied from the image pickup control unit 201. Further, the display control unit 202 causes the display unit 25a to display the extraction range icon Ca in the preview image Ia. The display control unit 202 functions as a display means.

抽出範囲アイコンCaは、撮像画像中の後述する抽出範囲を表す。詳細は後述するものの、撮像装置2は、抽出範囲に少なくとも一部が含まれる文字領域をターゲット領域として判定し、ターゲット領域を含む抽出画像を生成する。プレビュー画像Ia中における抽出範囲アイコンCaの位置は、撮像画像中における抽出範囲の位置に対応している。また、プレビュー画像Ia全体のサイズに対する抽出範囲アイコンCaのサイズの割合は、撮像画像全体のサイズに対する抽出範囲のサイズの割合と同一である。また、抽出範囲アイコンCaの形状は、抽出範囲の形状に対応している。 The extraction range icon Ca represents an extraction range described later in the captured image. Although the details will be described later, the image pickup apparatus 2 determines the character region including at least a part of the extraction range as the target region, and generates an extracted image including the target region. The position of the extraction range icon Ca in the preview image Ia corresponds to the position of the extraction range in the captured image. Further, the ratio of the size of the extraction range icon Ca to the size of the entire preview image Ia is the same as the ratio of the size of the extraction range to the size of the entire captured image. Further, the shape of the extraction range icon Ca corresponds to the shape of the extraction range.

以下、被写体OBが、名刺、広告ポスター、看板等の文字列が印刷された物体である場合を例に用いて説明する。また、以下、ユーザが、被写体OBに印刷された文字列の何れかをターゲット(抽出対象)として撮像画像から抽出することを所望する場合を例に用いて説明する。 Hereinafter, a case where the subject OB is an object on which a character string such as a business card, an advertisement poster, or a signboard is printed will be described as an example. Further, a case where the user desires to extract any of the character strings printed on the subject OB from the captured image as a target (extraction target) will be described below as an example.

撮像装置2を用いて撮像画像を生成する際、ユーザは、撮像装置2を手に持ち、表示部25aに表示されたプレビュー画像Iaを目視しつつ撮像装置2を動かして、被写体OBに印刷された、撮像画像から抽出することを所望する文字列が抽出範囲アイコンCa内に収まる位置へ移動させる。ユーザは、撮像装置2が、被写体OBに印刷された、撮像画像から抽出することを所望する文字列が抽出範囲アイコンCa内に収まる位置に配置された状態において、撮像ボタン24aを押下する。この結果、被写体OBに印刷された、撮像画像から抽出することをユーザが所望する文字列が抽出範囲に含まれた撮像画像が撮像装置2によって生成される。 When generating an image to be captured by using the image pickup device 2, the user holds the image pickup device 2 in his hand and moves the image pickup device 2 while visually observing the preview image Ia displayed on the display unit 25a to print on the subject OB. Further, the character string desired to be extracted from the captured image is moved to a position within the extraction range icon Ca. The user presses the image pickup button 24a in a state where the image pickup apparatus 2 is arranged at a position where the character string printed on the subject OB and desired to be extracted from the captured image is within the extraction range icon Ca. As a result, the image pickup device 2 generates an image captured image in which the character string that the user desires to extract from the image captured image printed on the subject OB is included in the extraction range.

図4に戻り、検出部203は、撮像制御部201から供給された撮像画像に含まれる文字領域を検出する。文字領域は、文字列を含む領域である。文字領域は、ターゲットの候補に相当する。文字領域の検出には、オブジェクト検出、パターン認識、OCR(Optical Character Recognition)等の公知の画像認識の手法を用いることができる。 Returning to FIG. 4, the detection unit 203 detects the character region included in the image captured image supplied from the image pickup control unit 201. The character area is an area containing a character string. The character area corresponds to a candidate target. For the detection of the character area, a known image recognition method such as object detection, pattern recognition, OCR (Optical Character Recognition) can be used.

判定部204は、検出部203によって検出された文字領域のうち所定の条件を満たす文字領域を、抽出対象であるターゲット領域として判定する。具体的に、判定部204は、文字領域全体のサイズに対する当該文字領域のうち撮像画像内に設定された抽出範囲に含まれる部分のサイズの割合である占有割合が選択条件を満たす文字領域をターゲット領域として判定する。選択条件は、占有割合が予め設定された抽出閾値以上である場合に満たされる。すなわち、判定部204は、文字領域のうち、占有割合が選択閾値以上である文字領域をターゲット領域として判定する。撮像画像中における抽出範囲の位置と、抽出範囲のサイズと、抽出範囲の形状と、は実験等の任意の方法により予め設定されている。本実施形態において、抽出範囲は、矩形の範囲である。選択閾値は、実験等の任意の方法により予め設定されている。具体的に、本実施形態において、選択閾値は、60%に設定されている。 The determination unit 204 determines, among the character areas detected by the detection unit 203, a character area satisfying a predetermined condition as a target area to be extracted. Specifically, the determination unit 204 targets a character area whose occupancy ratio, which is the ratio of the size of the part included in the extraction range set in the captured image to the size of the entire character area, satisfies the selection condition. Judge as an area. The selection condition is satisfied when the occupancy ratio is equal to or higher than the preset extraction threshold value. That is, the determination unit 204 determines the character area in which the occupancy ratio is equal to or higher than the selection threshold value as the target area. The position of the extraction range, the size of the extraction range, and the shape of the extraction range in the captured image are preset by an arbitrary method such as an experiment. In the present embodiment, the extraction range is a rectangular range. The selection threshold is set in advance by an arbitrary method such as an experiment. Specifically, in this embodiment, the selection threshold is set to 60%.

以下、図6を参照し、撮像画像Ibに文字列「ABCDE」、「XYZ」及び「012−345−6789」が含まれている場合を例に用いて説明する。検出部203は、撮像画像Ibから、文字列「ABCDE」を表す文字領域Ic1と、文字列「XYZ」を表す文字領域Ic2と、文字列「012−345−6789」を表す文字領域Ic3と、を検出する。文字領域Ic1及び文字領域Ic2は、抽出範囲Aaに部分的に含まれている。一方、文字領域Ic3は、抽出範囲Aaに含まれていない。以下、文字領域Ic1の占有割合が80%であり、文字領域Ic2の占有割合が10%であり、文字領域Ic3の占有割合が0%である場合を例に用いて説明する。判定部204は、占有割合が選択閾値である60%以上である文字領域Ic1をターゲット領域として判定する。一方、占有割合が選択閾値である60%を下回る文字領域Ic2及び文字領域Ic3は、ターゲット領域として判定されない。 Hereinafter, the case where the captured image Ib contains the character strings “ABCDE”, “XYZ”, and “012-345-6789” will be described with reference to FIG. 6 as an example. From the captured image Ib, the detection unit 203 includes a character area Ic1 representing the character string "ABCDE", a character area Ic2 representing the character string "XYZ", and a character area Ic3 representing the character string "012-345-6789". Is detected. The character area Ic1 and the character area Ic2 are partially included in the extraction range Aa. On the other hand, the character area Ic3 is not included in the extraction range Aa. Hereinafter, a case where the occupancy ratio of the character area Ic1 is 80%, the occupancy ratio of the character area Ic2 is 10%, and the occupancy ratio of the character area Ic3 is 0% will be described as an example. The determination unit 204 determines the character area Ic1 whose occupancy ratio is 60% or more, which is the selection threshold value, as the target area. On the other hand, the character area Ic2 and the character area Ic3 whose occupancy ratio is less than the selection threshold value of 60% are not determined as the target area.

取得部205は、撮像制御部201によって供給された撮像画像Ibから、判定部204によってターゲット領域として判定された文字領域を抽出する。具体的に、取得部205は、撮像画像Ibに基づいて、ターゲット領域を含む抽出画像を生成することにより、撮像画像Ibから当該ターゲット領域を抽出する。 The acquisition unit 205 extracts a character area determined as a target area by the determination unit 204 from the image pickup image Ib supplied by the image pickup control unit 201. Specifically, the acquisition unit 205 extracts the target region from the captured image Ib by generating an extracted image including the target region based on the captured image Ib.

取得部205は、撮像画像Ib内に設定された抽出範囲Aaにターゲット領域の一部が含まれており、かつ、抽出範囲Aaにターゲット領域の全体が含まれていない場合、拡大部205aと、抽出部205bと、生成部205cと、により当該ターゲット領域を抽出する。 When the extraction range Aa set in the captured image Ib includes a part of the target area and the extraction range Aa does not include the entire target area, the acquisition unit 205 and the enlargement unit 205a The target region is extracted by the extraction unit 205b and the generation unit 205c.

より具体的に、拡大部205aは、撮像画像Ib内に設定された抽出範囲Aaにターゲット領域の一部が含まれており、かつ、抽出範囲Aaにターゲット領域の全体が含まれていない場合、抽出範囲Aaを、ターゲット領域の全体を包含するサイズに拡大する。具体的に、拡大部205aは、抽出範囲Aaの中心の位置と縦横比とを変化させることなく、抽出範囲Aaのサイズを、ターゲット領域の全体を包含するサイズへ変化させる。抽出範囲Aaの縦横比とは、矩形の領域である抽出範囲Aaの縦の辺の長さに対する横の辺の長さの割合である。判定部204によって複数の文字領域がターゲット領域として判定され、これらのターゲット領域のうち少なくとも一つが抽出範囲Aaに一部のみが含まれている場合、拡大部205aは、抽出範囲Aaを、全てのターゲット領域の全体を包含するサイズに拡大する。なお、上述した占有割合は、文字領域全体のサイズに対する当該文字領域のうち拡大部205aによって拡大される前の抽出範囲Aaに含まれる部分のサイズの割合である。拡大部205aは、拡大制御手段として機能する。 More specifically, when the extraction range Aa set in the captured image Ib includes a part of the target region and the extraction range Aa does not include the entire target region, the enlarged portion 205a is used. The extraction range Aa is expanded to a size that covers the entire target area. Specifically, the expansion unit 205a changes the size of the extraction range Aa to a size that covers the entire target area without changing the position of the center of the extraction range Aa and the aspect ratio. The aspect ratio of the extraction range Aa is the ratio of the length of the horizontal side to the length of the vertical side of the extraction range Aa which is a rectangular area. When a plurality of character areas are determined as target areas by the determination unit 204 and at least one of these target areas is partially included in the extraction range Aa, the expansion unit 205a sets the extraction range Aa to all. Expand to a size that covers the entire target area. The above-mentioned occupancy ratio is the ratio of the size of the portion of the character area included in the extraction range Aa before being expanded by the enlarged portion 205a to the size of the entire character area. The enlargement unit 205a functions as an enlargement control means.

抽出部205bは、撮像画像Ibから、拡大部205aによって拡大された後の抽出範囲Aaの画像を抽出する。 The extraction unit 205b extracts an image of the extraction range Aa after being enlarged by the enlargement unit 205a from the captured image Ib.

生成部205cは、抽出部205bによって抽出された画像を、拡大部205aによって拡大される前の抽出範囲Aaのサイズに縮小することにより、抽出画像を生成する。 The generation unit 205c generates an extracted image by reducing the image extracted by the extraction unit 205b to the size of the extraction range Aa before being expanded by the enlargement unit 205a.

以下、図7を参照し、撮像装置2による抽出画像の生成について説明する。具体的に、以下、撮像画像Ibに含まれた、文字列「FGHIJ」を表す文字領域Ic4が判定部204によってターゲット領域として判定された場合を例に用いて説明する。ターゲット領域である文字領域Ic4は、抽出範囲Aaに部分的に含まれている。拡大部205aは、抽出範囲Aaを、文字領域Ic4全体を包含するサイズに拡大する。抽出部205bは、撮像画像Ibから、拡大部205aによって拡大された後の抽出範囲Aaの画像Idを抽出する。なお、この際、ターゲット領域以外の領域は所定の色で塗り潰してから抽出範囲Aaの画像Idを抽出するようにしてもよい。生成部205cは、抽出部205bによって抽出された画像Idを、拡大部205aによって拡大される前の抽出範囲Aaのサイズに縮小することにより、抽出画像Ieを生成する。 Hereinafter, the generation of the extracted image by the image pickup apparatus 2 will be described with reference to FIG. 7. Specifically, the case where the character region Ic4 representing the character string “FGHIJ” included in the captured image Ib is determined as the target region by the determination unit 204 will be described below as an example. The character area Ic4, which is the target area, is partially included in the extraction range Aa. The expansion unit 205a expands the extraction range Aa to a size that includes the entire character region Ic4. The extraction unit 205b extracts the image Id of the extraction range Aa after being enlarged by the enlargement unit 205a from the captured image Ib. At this time, the area other than the target area may be filled with a predetermined color, and then the image Id in the extraction range Aa may be extracted. The generation unit 205c generates the extracted image Ie by reducing the image Id extracted by the extraction unit 205b to the size of the extraction range Aa before being expanded by the enlargement unit 205a.

図4に戻り、取得部205は、撮像画像Ib内に設定された抽出範囲Aaにターゲット領域の全体が含まれている場合、撮像画像Ibから、抽出範囲Aaの画像を抽出し、抽出された画像を抽出画像Ieとして取得する。 Returning to FIG. 4, when the extraction range Aa set in the captured image Ib includes the entire target region, the acquisition unit 205 extracts and extracts the image of the extraction range Aa from the captured image Ib. The image is acquired as the extracted image Ie.

送信部206は、取得部205によって取得された抽出画像Ieを、印刷装置3へ送信する。具体的に、送信部206は、通信部26を制御して、印刷装置3との間で無線通信を行わせ、抽出画像Ieを表す印刷データと、印刷開始を指示する印刷開始コマンドと、を印刷装置3へ送信させる。 The transmission unit 206 transmits the extracted image IE acquired by the acquisition unit 205 to the printing device 3. Specifically, the transmission unit 206 controls the communication unit 26 to perform wireless communication with the printing device 3, and outputs print data representing the extracted image Ie and a print start command instructing the start of printing. Send to the printing device 3.

印刷装置3は、制御部31の機能として、受信部301と、印刷制御部302と、を備えている。制御部31は、記憶部32に記憶された制御プログラムを実行した印刷装置3を制御することにより、これらの各部として機能する。 The printing device 3 includes a receiving unit 301 and a printing control unit 302 as functions of the control unit 31. The control unit 31 functions as each of these units by controlling the printing device 3 that has executed the control program stored in the storage unit 32.

受信部301は、撮像装置2から送信された抽出画像Ieを受信する。具体的に、受信部301は、通信部35を制御して、撮像装置2との間で無線通信を行わせ、撮像装置2から送信された抽出画像Ieを表す印刷データと、印刷開始コマンドと、を受信させる。 The receiving unit 301 receives the extracted image Ie transmitted from the image pickup apparatus 2. Specifically, the receiving unit 301 controls the communication unit 35 to perform wireless communication with the image pickup device 2, and print data representing the extracted image Ie transmitted from the image pickup device 2 and a print start command. , To be received.

印刷制御部302は、印刷部37を制御し、受信部301によって受信された抽出画像Ieを印刷媒体に印刷させる。具体的に、印刷制御部302は、インクジェットヘッド制御回路37bを制御し、受信部301によって受信された抽出画像Ieを表す印刷データを、移動量検出部36が検出した印刷装置3の移動量に従ってインクジェットヘッド37aへ送信させる。さらに、印刷制御部302は、インクジェットヘッド制御回路37bを制御し、インクジェットヘッド37aへ吐出コマンドを送信させる。この結果、インクジェットヘッド37aからインクが吐出され、抽出画像Ieが印刷媒体に印刷される。このようにして、ユーザは、撮像装置2によって生成された抽出画像Ieを、印刷装置3に印刷させることができる。 The print control unit 302 controls the print unit 37 to print the extracted image Ie received by the reception unit 301 on the print medium. Specifically, the print control unit 302 controls the inkjet head control circuit 37b, and print data representing the extracted image Ie received by the reception unit 301 is according to the movement amount of the printing device 3 detected by the movement amount detection unit 36. It is transmitted to the inkjet head 37a. Further, the print control unit 302 controls the inkjet head control circuit 37b and causes the inkjet head 37a to transmit a ejection command. As a result, the ink is ejected from the inkjet head 37a, and the extracted image Ie is printed on the print medium. In this way, the user can have the printing device 3 print the extracted image Ie generated by the image pickup device 2.

以下、上述の物理的・機能的構成を備える印刷システム1が実行する処理について、図8及び図9を参照して説明する。 Hereinafter, the processing executed by the printing system 1 having the above-mentioned physical and functional configurations will be described with reference to FIGS. 8 and 9.

撮像装置2が備える複数の制御モードのうちの1つである撮像モードをユーザが撮像装置2の入力部24を操作することによって選択すると、図8に示す処理が開始される。 When the user selects the image pickup mode, which is one of the plurality of control modes included in the image pickup apparatus 2, by operating the input unit 24 of the image pickup apparatus 2, the process shown in FIG. 8 is started.

図8に示す処理が開始されると、撮像装置2において、撮像制御部201は、撮像部23を制御して、プレビュー画像Iaの生成を開始させる(ステップS101)。以後、撮像部23は、後述するステップS109の処理でプレビュー画像Iaの生成が停止されるまで、プレビュー画像Iaの生成を継続する。表示制御部202は、表示部25aを制御して、抽出範囲アイコンCaを含むプレビュー画像Iaの表示を開始させる(ステップS102)。以後、表示部25aは、後述するステップS108の処理でプレビュー画像Iaの表示が停止されるまで、プレビュー画像Iaの表示を継続する。 When the process shown in FIG. 8 is started, in the image pickup apparatus 2, the image pickup control unit 201 controls the image pickup unit 23 to start the generation of the preview image Ia (step S101). After that, the image pickup unit 23 continues to generate the preview image Ia until the generation of the preview image Ia is stopped by the process of step S109 described later. The display control unit 202 controls the display unit 25a to start displaying the preview image Ia including the extraction range icon Ca (step S102). After that, the display unit 25a continues to display the preview image Ia until the display of the preview image Ia is stopped by the process of step S108 described later.

次に、撮像制御部201は、撮像ボタン24aが押下されたか否かを判定する(ステップS103)。撮像ボタン24aが押下されていないと撮像制御部201が判定すると(ステップS103;No)、処理はステップS103へ戻り、撮像ボタン24aの押下を待機する。撮像ボタン24aが押下されたと判定すると(ステップS103;Yes)、撮像制御部201は、撮像ボタン24aが押下された時点において撮像部23により生成されたプレビュー画像Iaを、撮像画像Ibとして取得する(ステップS104)。制御部21は、抽出処理を実行することにより、ステップS104で取得された撮像画像Ibに基づいて、抽出画像Ieを取得する(ステップS105)。以下、抽出処理の詳細について、図9のフローチャートを参照して説明する。 Next, the image pickup control unit 201 determines whether or not the image pickup button 24a is pressed (step S103). If the image pickup control unit 201 determines that the image pickup button 24a is not pressed (step S103; No), the process returns to step S103 and waits for the image pickup button 24a to be pressed. When it is determined that the image pickup button 24a is pressed (step S103; Yes), the image pickup control unit 201 acquires the preview image Ia generated by the image pickup unit 23 at the time when the image pickup button 24a is pressed as the image pickup image Ib (step S103; Yes). Step S104). The control unit 21 acquires the extracted image Ie based on the captured image Ib acquired in step S104 by executing the extraction process (step S105). Hereinafter, the details of the extraction process will be described with reference to the flowchart of FIG.

図9のフローチャートに示す抽出処理が開始されると、まず、検出部203が、図8の処理のステップS104で取得された撮像画像Ibに含まれる文字領域を検出する(ステップS201)。検出部203は、ステップS201で1つ以上の文字領域を検出したか否かを判定する(ステップS202)。文字領域を1つも検出しなかったと判定すると(ステップS202;No)、検出部203は、エラーフラグをオン状態に設定し(ステップS214)、抽出処理を終了する。 When the extraction process shown in the flowchart of FIG. 9 is started, the detection unit 203 first detects the character area included in the captured image Ib acquired in step S104 of the process of FIG. 8 (step S201). The detection unit 203 determines whether or not one or more character areas have been detected in step S201 (step S202). If it is determined that no character area has been detected (step S202; No), the detection unit 203 sets the error flag to the on state (step S214), and ends the extraction process.

一方、文字領域を1つ以上検出したと検出部203が判定すると(ステップS202;Yes)、判定部204が、ステップS201で検出された文字領域のうち1つを指定する(ステップS203)。判定部204は、ステップS203で指定した文字領域の占有割合を算出する(ステップS204)。次に、判定部204は、ステップS201で検出された全ての文字領域を指定済みであるか否かを判定する(ステップS205)。ステップS201で検出された全ての文字領域を指定済みであると判定部204が判定すると(ステップS205;Yes)、処理はステップS206へ移る。一方、ステップS201で検出された文字領域のうちに未だ指定されていない文字領域があると判定部204が判定すると(ステップS205;No)、処理はステップS203へ戻り、判定部204は、未だ指定されていない文字領域のうち何れかを指定する(ステップS203)。判定部204は、ステップS205でYesと判定されるまでステップS203〜S205の処理を繰り返すことにより、ステップS201で検出された全ての文字領域の占有割合を算出する。 On the other hand, when the detection unit 203 determines that one or more character areas have been detected (step S202; Yes), the determination unit 204 designates one of the character areas detected in step S201 (step S203). The determination unit 204 calculates the occupancy ratio of the character area specified in step S203 (step S204). Next, the determination unit 204 determines whether or not all the character areas detected in step S201 have been designated (step S205). When the determination unit 204 determines that all the character areas detected in step S201 have been designated (step S205; Yes), the process proceeds to step S206. On the other hand, when the determination unit 204 determines that there is a character area that has not yet been specified in the character area detected in step S201 (step S205; No), the process returns to step S203, and the determination unit 204 still specifies. Any one of the character areas not specified is specified (step S203). The determination unit 204 repeats the processes of steps S203 to S205 until it is determined to be Yes in step S205, thereby calculating the occupancy ratio of all the character areas detected in step S201.

判定部204は、ステップS201で検出された文字領域のうちに占有割合が選択閾値以上の文字領域があるか否かを判定する(ステップS206)。占有割合が選択閾値以上である文字領域がないと判定すると(ステップS206;No)、判定部204は、エラーフラグをオン状態に設定し(ステップS214)、抽出処理を終了する。一方、占有割合が選択閾値以上である文字領域があると判定すると(ステップS206;Yes)、判定部204は、占有割合が選択閾値である全ての文字領域をターゲット領域として判定する(ステップS207)。 The determination unit 204 determines whether or not the character area detected in step S201 has a character area whose occupancy ratio is equal to or greater than the selection threshold value (step S206). When it is determined that there is no character area whose occupancy ratio is equal to or greater than the selection threshold value (step S206; No), the determination unit 204 sets the error flag to the on state (step S214), and ends the extraction process. On the other hand, if it is determined that there is a character area whose occupancy ratio is equal to or higher than the selection threshold value (step S206; Yes), the determination unit 204 determines all the character areas whose occupancy ratio is the selection threshold value as the target area (step S207). ..

取得部205は、ステップS207で判定されたターゲット領域の中に一部が抽出範囲Aaに含まれないターゲット領域があるか否かを判定する(ステップS208)。全てのターゲット領域の全体が抽出範囲Aaに含まれていると判定すると(ステップS208;No)、取得部205は、ステップS104で取得された撮像画像Ibのうち抽出範囲Aaの画像を抽出する(ステップS212)。なお、この際にターゲット領域以外の領域は所定の色で塗り潰した抽出範囲Aaの画像を抽出するようにしてもよい。取得部205は、ステップS212で抽出された画像を抽出画像Ieとして取得し(ステップS213)、抽出処理を終了する。 The acquisition unit 205 determines whether or not there is a target area whose part is not included in the extraction range Aa among the target areas determined in step S207 (step S208). When it is determined that the entire target region is included in the extraction range Aa (step S208; No), the acquisition unit 205 extracts the image of the extraction range Aa from the captured images Ib acquired in step S104 (step S208; No). Step S212). At this time, the area other than the target area may be filled with a predetermined color to extract the image of the extraction range Aa. The acquisition unit 205 acquires the image extracted in step S212 as the extracted image Ie (step S213), and ends the extraction process.

一方、ターゲット領域の中に一部が抽出範囲Aaに含まれないターゲット領域があると取得部205が判定すると(ステップS208;Yes)、拡大部205aは、抽出範囲Aaを、ステップS207で判定された全てのターゲット領域の全体を包含するサイズに拡大する(ステップS209)。抽出部205bは、ステップS104で取得された撮像画像Ibのうち、ステップS209で拡大された後の抽出範囲Aaの画像を抽出する(ステップS210)。生成部205cは、ステップS210で抽出された画像を、ステップS209で拡大される前の抽出範囲Aaのサイズに縮小することにより抽出画像Ieを生成し(ステップS211)、抽出処理を終了する。 On the other hand, when the acquisition unit 205 determines that there is a target area in the target area that is not partially included in the extraction range Aa (step S208; Yes), the expansion unit 205a determines the extraction range Aa in step S207. The size is expanded to include the entire target area (step S209). The extraction unit 205b extracts the image of the extraction range Aa after being enlarged in step S209 from the captured image Ib acquired in step S104 (step S210). The generation unit 205c generates an extraction image Ie by reducing the image extracted in step S210 to the size of the extraction range Aa before being expanded in step S209 (step S211), and ends the extraction process.

図8に戻り、ステップS105の抽出処理を実行すると、制御部21は、エラーフラグがオン状態であるか否かを判定する(ステップS106)。エラーフラグがオン状態であると判定すると(ステップS106;Yes)、制御部21は、エラーフラグをクリアし(ステップS107)、処理はステップS108へ移る。なお、エラーフラグをクリアするとは、エラーフラグを初期状態であるオフ状態に設定することを指す。 Returning to FIG. 8, when the extraction process of step S105 is executed, the control unit 21 determines whether or not the error flag is on (step S106). When it is determined that the error flag is on (step S106; Yes), the control unit 21 clears the error flag (step S107), and the process proceeds to step S108. Clearing the error flag means setting the error flag to the off state, which is the initial state.

一方、エラーフラグがオン状態ではないと制御部21が判定すると(ステップS106;No)、送信部206が、通信部26を制御して、印刷装置3との間で無線通信を行わせ、ステップS105で取得された抽出画像Ieを印刷装置3へ送信させる(ステップS110)。撮像装置2から抽出画像Ieが送信されると、印刷装置3において、受信部301が、通信部35を制御して、撮像装置2との間で無線通信を行わせ、送信された抽出画像Ieを受信させる。 On the other hand, when the control unit 21 determines that the error flag is not in the ON state (step S106; No), the transmission unit 206 controls the communication unit 26 to perform wireless communication with the printing device 3, and steps are taken. The extracted image Ie acquired in S105 is transmitted to the printing apparatus 3 (step S110). When the extracted image Ie is transmitted from the image pickup device 2, the receiving unit 301 controls the communication unit 35 in the printing device 3 to perform wireless communication with the image pickup device 2, and the transmitted extracted image Ie is transmitted. To receive.

印刷装置3において、抽出画像Ieを受信すると、印刷制御部302が、印刷部37を制御して、受信した抽出画像Ieを印刷させる(ステップS111)。具体的に、印刷制御部302は、インクジェットヘッド制御回路37bを制御し、受信部301によって受信された抽出画像Ieを表す印刷データを、移動量検出部36が検出した印刷装置3の移動量に従ってインクジェットヘッド37aへ送信させる。さらに、印刷制御部302は、インクジェットヘッド制御回路37bを制御し、インクジェットヘッド37aへ吐出コマンドを送信させる。この結果、インクジェットヘッド37aからインクが吐出され、抽出画像Ieが印刷媒体に印刷される。 When the printing device 3 receives the extracted image Ie, the print control unit 302 controls the printing unit 37 to print the received extracted image Ie (step S111). Specifically, the print control unit 302 controls the inkjet head control circuit 37b, and print data representing the extracted image Ie received by the reception unit 301 is according to the movement amount of the printing device 3 detected by the movement amount detection unit 36. It is transmitted to the inkjet head 37a. Further, the print control unit 302 controls the inkjet head control circuit 37b and causes the inkjet head 37a to transmit a ejection command. As a result, the ink is ejected from the inkjet head 37a, and the extracted image Ie is printed on the print medium.

撮像装置2において、ステップS110で抽出画像を送信した後、表示制御部202が、表示部25aを制御して、プレビュー画像Iaの表示を停止させる(ステップS108)。撮像制御部201は、撮像部23を制御して、プレビュー画像Iaの生成を停止させる(ステップS109)。撮像装置2においてプレビュー画像Iaの生成を停止すると、図8に示す印刷システム1における処理は終了する。 After transmitting the extracted image in step S110 in the image pickup apparatus 2, the display control unit 202 controls the display unit 25a to stop the display of the preview image Ia (step S108). The image pickup control unit 201 controls the image pickup unit 23 to stop the generation of the preview image Ia (step S109). When the generation of the preview image Ia is stopped in the image pickup apparatus 2, the process in the printing system 1 shown in FIG. 8 ends.

以上説明したように、撮像装置2の拡大部205aは、撮像画像Ib内に設定された抽出範囲Aaにターゲット領域の一部が含まれており、かつ、抽出範囲Aaにターゲット領域の全体が含まれていない場合、抽出範囲Aaを、ターゲット領域の全体を包含するサイズに拡大する。抽出部205bは、撮像画像Ibから、拡大部205aによって拡大された後の抽出範囲Aaの画像を抽出する。生成部205cは、抽出部205bによって抽出された画像を、拡大部205aによって拡大される前の抽出範囲Aaのサイズに縮小することにより、ターゲット領域を含む抽出画像Ieを生成する。 As described above, in the enlarged portion 205a of the image pickup apparatus 2, a part of the target area is included in the extraction range Aa set in the captured image Ib, and the entire target area is included in the extraction range Aa. If not, the extraction range Aa is expanded to a size that covers the entire target area. The extraction unit 205b extracts an image of the extraction range Aa after being enlarged by the enlargement unit 205a from the captured image Ib. The generation unit 205c generates an extracted image Ie including a target region by reducing the image extracted by the extraction unit 205b to the size of the extraction range Aa before being expanded by the enlargement unit 205a.

このため、撮像装置2は、撮像画像Ibを生成する際に手振れ等が原因でターゲット領域の一部が抽出範囲Aaからはみ出した場合にも、当該ターゲット領域を撮像画像Ibから抽出することができる。すなわち、撮像装置2は、ターゲット領域の抽出に失敗する可能性を低減することができる。また、ユーザは、ターゲットが抽出範囲Aaに収まるように厳密に撮像装置2の撮像位置を調整することなく、ターゲットを撮像装置2に抽出させることができる。このため、ユーザにとっての利便性が向上する。 Therefore, the image pickup apparatus 2 can extract the target area from the image pickup image Ib even when a part of the target area protrudes from the extraction range Aa due to camera shake or the like when the image pickup image Ib is generated. .. That is, the image pickup apparatus 2 can reduce the possibility that the extraction of the target region fails. Further, the user can have the image pickup device 2 extract the target without strictly adjusting the image pickup position of the image pickup device 2 so that the target fits within the extraction range Aa. Therefore, the convenience for the user is improved.

また、判定部204は、占有割合が抽出閾値以上である文字領域を、抽出対象であるターゲット領域として判定する。このため、撮像装置2は、ユーザが抽出を所望する文字領域をターゲット領域として抽出することができる。ユーザは、文字領域のうち何れをターゲット領域として抽出するかを指定する必要がない。このため、ユーザにとっての利便性が向上する。 Further, the determination unit 204 determines the character area whose occupancy ratio is equal to or higher than the extraction threshold value as the target area to be extracted. Therefore, the image pickup apparatus 2 can extract the character region desired by the user as the target region. The user does not need to specify which of the character areas is to be extracted as the target area. Therefore, the convenience for the user is improved.

以上に本発明の実施形態について説明したが、上記実施形態は一例であり、本発明の適用範囲はこれに限られない。すなわち、本発明の実施形態は種々の応用が可能であり、あらゆる実施の形態が本発明の範囲に含まれる。 Although the embodiment of the present invention has been described above, the above embodiment is an example, and the scope of application of the present invention is not limited to this. That is, various embodiments of the present invention are possible, and all embodiments are included in the scope of the present invention.

例えば、上記実施形態では、印刷装置3が、インクジェット方式により印刷対象の画像を印刷するものとして説明した。しかし、これは一例に過ぎず、印刷装置3は、任意の方法で印刷対象の画像を印刷できる。例えば、印刷装置3は、感熱方式や熱転写方式により印刷対象の画像を印刷してもよい。 For example, in the above embodiment, the printing device 3 has been described as printing an image to be printed by an inkjet method. However, this is only an example, and the printing apparatus 3 can print the image to be printed by any method. For example, the printing device 3 may print an image to be printed by a heat-sensitive method or a heat transfer method.

上記実施形態では、印刷装置3は、印刷媒体上における自装置の移動に合わせて印刷対象の画像を印刷する手動走査型の印刷装置であるものとして説明した。しかし、これは一例に過ぎず、印刷装置3は、任意の種類の印刷装置であってよい。例えば、印刷装置3は、印刷媒体上で自装置を移動させる移動手段を備え、移動に合わせて印刷を行う自走式の印刷装置であってもよい。あるいは、印刷装置3は、据置型の印刷装置であってもよい。 In the above embodiment, the printing device 3 has been described as being a manual scanning type printing device that prints an image to be printed according to the movement of the own device on the printing medium. However, this is only an example, and the printing device 3 may be any kind of printing device. For example, the printing device 3 may be a self-propelled printing device that includes a moving means for moving the own device on the print medium and prints according to the movement. Alternatively, the printing device 3 may be a stationary printing device.

あるいは、印刷装置3は、クリアフォルダ、ファイルバインダー、筆記用具等の物品に添付されるラベルに、ターゲットである抽出画像Ieを印刷対象の画像として印刷するラベルプリンターであってもよい。この場合、印刷装置3は、印刷対象の画像が印刷される表面と粘着剤又は接着剤が塗布された裏面とを有する印刷テープと、当該裏面に添付され当該印刷テープから剥離可能な剥離テープと、が積層されたテープに印刷対象の画像を印刷した後、当該テープを切断することによってラベルを作成する。すなわち、ラベルは、上述したテープの切片である。なお、この場合、抽出範囲Aaは、印刷装置3によって作成されるラベルの大きさ(サイズ)を示すこととすればよい。すなわち、抽出範囲Aaは、ラベルと同一の大きさ及び形状を有することとすればよい。ラベルの大きさとは、言い換えると、ラベルプリンターである印刷装置3によりターゲットである抽出画像Ieが印刷されるラベルの領域である。すなわち、抽出範囲Aaは、ラベルプリンターである印刷装置3でターゲットが印刷されるラベルの領域を示す。この形態によれば、抽出範囲Aaにターゲットが収まるように撮像画像Ibを撮像することにより、ターゲットを印刷装置3により作成されるラベルと同一の大きさで撮像装置2に抽出させ、印刷装置3に印刷させることができる。このため、ユーザにとっての利便性が向上する。 Alternatively, the printing device 3 may be a label printer that prints the target extracted image Ie as an image to be printed on a label attached to an article such as a clear folder, a file binder, or a writing tool. In this case, the printing apparatus 3 includes a printing tape having a front surface on which the image to be printed is printed and a back surface coated with an adhesive or an adhesive, and a release tape attached to the back surface and removable from the printing tape. After printing the image to be printed on the tape on which the and are laminated, a label is created by cutting the tape. That is, the label is a section of the tape described above. In this case, the extraction range Aa may indicate the size (size) of the label created by the printing apparatus 3. That is, the extraction range Aa may have the same size and shape as the label. The label size is, in other words, an area of the label on which the target extracted image Ie is printed by the printing device 3 which is a label printer. That is, the extraction range Aa indicates the area of the label on which the target is printed by the printing device 3 which is a label printer. According to this embodiment, by capturing the captured image Ib so that the target fits in the extraction range Aa, the target is extracted by the image pickup device 2 in the same size as the label created by the printing device 3, and the printing device 3 is used. Can be printed on. Therefore, the convenience for the user is improved.

上記実施形態では、選択閾値が予め設定されているものとして説明したが、これは一例に過ぎない。撮像装置2は、ユーザによる入力部24を用いた選択閾値の設定を受け付け、設定された選択閾値に従って選択画像を選択してもよい。この形態によれば、ユーザは、撮像画像Ibから抽出することを所望するターゲットである文字列のうち抽出範囲Aaに含まれる部分の割合に応じて選択閾値を調整し、ターゲットである文字列をより適切に撮像装置2に抽出させることができる。 In the above embodiment, the selection threshold has been described as being preset, but this is only an example. The image pickup apparatus 2 may accept the setting of the selection threshold value by the user using the input unit 24 and select the selected image according to the set selection threshold value. According to this embodiment, the user adjusts the selection threshold according to the ratio of the portion included in the extraction range Aa among the target character strings desired to be extracted from the captured image Ib, and sets the target character string. The image pickup device 2 can be used for extraction more appropriately.

上記実施形態では、撮像装置2が、ターゲット領域の全体が抽出範囲Aaに含まれている場合、撮像画像Ibのうち抽出範囲Aaの画像を抽出し、抽出された画像を抽出画像Ieとして取得するものとして説明した。しかし、これは一例に過ぎず、撮像装置2は、ターゲット領域の全体が抽出範囲Aaに含まれている場合、他の方法により抽出画像Ieを取得してもよい。例えば、撮像装置2は、抽出範囲Aaにターゲット領域の全体が含まれている場合、抽出範囲Aaを、ターゲット領域のサイズに応じたサイズに縮小すればよい。具体的に、撮像装置2は、抽出範囲Aaの中心の位置と縦横比とを変化させることなく、抽出範囲Aaのサイズを、ターゲット領域のサイズに応じたサイズへ変化させる。撮像装置2は、撮像画像Ibのうち、ターゲット領域のサイズに応じて縮小された後の抽出範囲Aaの画像を抽出する。撮像装置2は、抽出された画像を、ターゲット領域のサイズに応じて縮小される前の抽出範囲Aaのサイズに拡大することにより、抽出画像Ieを生成すればよい。この形態によれば、抽出範囲Aaにターゲットが余裕をもって収まるように撮像画像Ibを撮像した上で、ターゲットを抽出範囲Aaと同等のサイズまで拡大して抽出することができる。 In the above embodiment, when the entire target region is included in the extraction range Aa, the image pickup apparatus 2 extracts the image of the extraction range Aa from the captured images Ib and acquires the extracted image as the extraction image Ie. Explained as a thing. However, this is only an example, and the image pickup apparatus 2 may acquire the extracted image Ie by another method when the entire target region is included in the extraction range Aa. For example, when the extraction range Aa includes the entire target region, the image pickup apparatus 2 may reduce the extraction range Aa to a size corresponding to the size of the target region. Specifically, the image pickup apparatus 2 changes the size of the extraction range Aa to a size corresponding to the size of the target region without changing the position of the center of the extraction range Aa and the aspect ratio. The image pickup apparatus 2 extracts an image of the extraction range Aa after being reduced according to the size of the target region from the captured image Ib. The image pickup apparatus 2 may generate the extracted image Ie by enlarging the extracted image to the size of the extraction range Aa before being reduced according to the size of the target region. According to this form, the captured image Ib can be imaged so that the target fits in the extraction range Aa with a margin, and then the target can be enlarged to the same size as the extraction range Aa and extracted.

上記実施形態では、撮像装置2が、撮像画像Ibに含まれる文字領域のうち抽出範囲Aaに少なくとも一部が含まれる文字領域をターゲット領域として判定し、当該ターゲット領域を撮像画像Ibから抽出するものとして説明した。しかし、これは一例に過ぎず、撮像装置2は、撮像画像Ibに含まれる任意の画像領域をターゲット領域として撮像画像Ibから抽出することができる。例えば、撮像装置2は、撮像画像Ibに含まれる顔領域のうち抽出範囲Aaに少なくとも一部が含まれる顔領域をターゲット領域として判定し、撮像画像Ibから抽出してもよい。顔領域は、被写体人物の顔を表す画像領域である。顔領域は、ターゲットの候補の他の例である。具体的に、撮像装置2は、上記実施形態で文字領域を対象として行った処理と同等の処理を、顔領域を対象として実行すればよい。なお、撮像画像Ibに含まれる顔領域の検出には、任意の公知技術を用いることができる。 In the above embodiment, the image pickup apparatus 2 determines as a target area a character area including at least a part of the extraction range Aa among the character areas included in the captured image Ib, and extracts the target area from the captured image Ib. Explained as. However, this is only an example, and the image pickup apparatus 2 can extract an arbitrary image region included in the captured image Ib from the captured image Ib as a target region. For example, the image pickup apparatus 2 may determine a face region including at least a part of the extraction range Aa among the face regions included in the captured image Ib as a target region and extract the face region from the captured image Ib. The face area is an image area representing the face of the subject person. The face area is another example of a candidate target. Specifically, the image pickup apparatus 2 may perform the same processing as that performed on the character region in the above embodiment for the face region. Any known technique can be used to detect the face region included in the captured image Ib.

上記実施形態では、選択条件は、占有割合が選択閾値以上である場合に満たされるものとして説明したが、これは一例に過ぎず、選択条件は任意に設定できる。例えば、選択条件は、他の文字領域の占有割合よりも占有割合が大きい場合に満たされることとしてもよい。すなわち、判定部204は、文字領域のうち、他の文字領域の占有割合よりも占有割合が大きい文字領域をターゲット領域として判定してもよい。 In the above embodiment, the selection condition has been described as being satisfied when the occupancy ratio is equal to or higher than the selection threshold value, but this is only an example, and the selection condition can be set arbitrarily. For example, the selection condition may be satisfied when the occupancy ratio is larger than the occupancy ratio of other character areas. That is, the determination unit 204 may determine the character area having a larger occupancy ratio than the occupancy ratio of the other character area as the target area in the character area.

なお、本発明に係る機能を実現するための構成を予め備えた撮像装置2及び印刷装置3として提供できることはもとより、プログラムの適用により、既存の情報処理装置等を、本発明に係る撮像装置2及び印刷装置3として機能させることもできる。すなわち、本発明に係る撮像装置2及び印刷装置3の各機能構成を実現させるためのプログラムを、既存の情報処理装置等を制御するCPU等が実行できるように適用することで、当該既存の情報処理装置等を本発明に係る撮像装置2及び印刷装置3として機能させることができる。 It should be noted that the image pickup device 2 and the printing device 3 provided in advance with the configuration for realizing the function according to the present invention can be provided, and by applying the program, the existing information processing device or the like can be used as the image pickup device 2 according to the present invention. And it can also function as a printing device 3. That is, by applying the program for realizing each functional configuration of the image pickup device 2 and the printing device 3 according to the present invention so that the CPU or the like that controls the existing information processing device or the like can execute the existing information. The processing device and the like can function as the image pickup device 2 and the printing device 3 according to the present invention.

なお、このようなプログラムの適用方法は任意である。プログラムを、例えば、フレキシブルディスク、CD(Compact Disc)−ROM、DVD(Digital Versatile Disc)−ROM、メモリカード等のコンピュータ読み取り可能な記憶媒体に格納して適用できる。さらに、プログラムを搬送波に重畳し、インターネットなどの通信媒体を介して適用することもできる。例えば、通信ネットワーク上の掲示板(BBS:Bulletin Board System)にプログラムを掲示して配信してもよい。そして、このプログラムを起動し、OS(Operating System)の制御下で、他のアプリケーションプログラムと同様に実行することにより、上記の処理を実行できるように構成してもよい。 The method of applying such a program is arbitrary. The program can be stored and applied in a computer-readable storage medium such as a flexible disc, a CD (Compact Disc) -ROM, a DVD (Digital Versatile Disc) -ROM, or a memory card. Further, the program can be superimposed on a carrier wave and applied via a communication medium such as the Internet. For example, the program may be posted and distributed on a bulletin board system (BBS: Bulletin Board System) on a communication network. Then, by starting this program and executing it in the same manner as other application programs under the control of the OS (Operating System), the above processing may be executed.

以上、本発明の好ましい実施形態について説明したが、本発明は係る特定の実施形態に限定されるものではなく、本発明には、特許請求の範囲に記載された発明とその均等の範囲とが含まれる。以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。 Although the preferred embodiment of the present invention has been described above, the present invention is not limited to the specific embodiment, and the present invention includes the invention described in the claims and the equivalent range thereof. included. The inventions described in the original claims of the present application are described below.

(付記1)
ターゲットを撮像することにより撮像画像を生成する撮像手段と、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示手段と、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御手段と、
前記撮像画像から、前記拡大制御手段によって拡大された後の前記抽出範囲の画像を抽出する抽出手段と、
前記抽出手段によって抽出された画像を、前記拡大制御手段によって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成手段と、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信手段と、
を備えることを特徴とする撮像装置。
(Appendix 1)
An imaging means that generates an captured image by imaging a target,
A display means for displaying the extraction range set in the captured image on the display unit, and
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. Means and
An extraction means for extracting an image of the extraction range after being enlarged by the enlargement control means from the captured image, and an extraction means.
A generation means for generating an extracted image including the target by reducing the image extracted by the extraction means to the size of the extraction range before being enlarged by the enlargement control means.
A transmission means for transmitting the generated extracted image as a print image to another device, and
An imaging device characterized by being provided with.

(付記2)
前記ターゲットの候補のうちの、前記拡大制御手段によって拡大される前の前記抽出範囲に含まれる部分の割合が選択条件を満たす場合に、当該ターゲットの候補を前記ターゲットとして判定する判定手段をさらに備え、
前記拡大制御手段は、前記抽出範囲を、前記判定手段によって判定された前記ターゲットの全体を包含するサイズに拡大する、
ことを特徴とする付記1に記載の撮像装置。
(Appendix 2)
Further provided with a determination means for determining the target candidate as the target when the ratio of the portion included in the extraction range before being expanded by the expansion control means among the target candidates satisfies the selection condition. ,
The expansion control means expands the extraction range to a size that includes the entire target determined by the determination means.
The image pickup apparatus according to Appendix 1, wherein the image pickup apparatus is characterized in that.

(付記3)
前記選択条件は、前記割合が閾値以上である場合に満たされ、
ユーザによる前記閾値の設定を受け付ける入力手段をさらに備えることを特徴とする付記2に記載の撮像装置。
(Appendix 3)
The selection condition is satisfied when the ratio is equal to or greater than the threshold value.
The image pickup apparatus according to Appendix 2, further comprising an input means for receiving the setting of the threshold value by the user.

(付記4)
前記抽出範囲に前記ターゲットの全体が含まれている場合、前記抽出範囲を、前記ターゲットのサイズに応じたサイズに縮小する縮小手段と、
前記撮像画像から、前記縮小手段によって縮小された後の前記抽出範囲の画像を抽出する第2の抽出手段と、
前記第2の抽出手段によって抽出された画像を、前記縮小手段によって縮小される前の前記抽出範囲のサイズに拡大することにより、前記抽出画像を生成する第2の生成手段と、
を備えることを特徴とする付記1から3の何れか一つに記載の撮像装置。
(Appendix 4)
When the extraction range includes the entire target, a reduction means for reducing the extraction range to a size corresponding to the size of the target, and a reduction means.
A second extraction means for extracting an image of the extraction range after being reduced by the reduction means from the captured image, and a second extraction means.
A second generation means for generating the extracted image by enlarging the image extracted by the second extraction means to the size of the extraction range before being reduced by the reduction means.
The image pickup apparatus according to any one of Supplementary note 1 to 3, wherein the image pickup apparatus is provided.

(付記5)
前記抽出範囲は、縦横比が一定の矩形範囲であることを特徴とする付記1から4の何れか一つに記載の撮像装置。
(Appendix 5)
The imaging device according to any one of Supplementary note 1 to 4, wherein the extraction range is a rectangular range having a constant aspect ratio.

(付記6)
前記生成手段は、前記ターゲット以外の領域を単色で塗り潰して前記抽出画像を生成することを特徴とする付記1から5の何れか一つに記載の撮像装置。
(Appendix 6)
The image pickup apparatus according to any one of Supplementary note 1 to 5, wherein the generation means fills a region other than the target with a single color to generate the extracted image.

(付記7)
前記送信手段は、前記抽出画像を印刷する印刷装置へ送信することを特徴とする付記1から6の何れか一つに記載の撮像装置。
(Appendix 7)
The image pickup apparatus according to any one of Supplementary note 1 to 6, wherein the transmission means transmits the extracted image to a printing apparatus for printing the extracted image.

(付記8)
付記7に記載の撮像装置と、前記印刷装置と、を備える印刷システムであって、
前記印刷装置は、前記撮像装置から送信された前記抽出画像を受信する受信手段と、
前記受信手段によって受信された前記抽出画像を印刷媒体に印刷する印刷手段と、
を備えることを特徴とする印刷システム。
(Appendix 8)
A printing system including the image pickup apparatus according to Appendix 7 and the printing apparatus.
The printing apparatus includes a receiving means for receiving the extracted image transmitted from the imaging apparatus and a receiving means.
A printing means for printing the extracted image received by the receiving means on a printing medium, and
A printing system characterized by being equipped with.

(付記9)
前記印刷装置はラベルプリンターであり、
前記抽出範囲は、前記ラベルプリンターで前記ターゲットが印刷されるラベルの領域を示すことを特徴とする付記8に記載の印刷システム。
(Appendix 9)
The printing device is a label printer.
The printing system according to Appendix 8, wherein the extraction range indicates an area of a label on which the target is printed by the label printer.

(付記10)
ターゲットを撮像することにより撮像画像を生成する撮像ステップと、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示ステップと、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御ステップと、
前記撮像画像から、前記拡大制御ステップによって拡大された後の前記抽出範囲の画像を抽出する抽出ステップと、
前記抽出ステップによって抽出された画像を、前記拡大制御ステップによって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成ステップと、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信ステップと、
を含むことを特徴とする画像処理方法。
(Appendix 10)
An imaging step that generates an captured image by imaging the target,
A display step for displaying the extraction range set in the captured image on the display unit, and
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. Steps and
An extraction step of extracting an image of the extraction range after being enlarged by the enlargement control step from the captured image, and an extraction step.
A generation step of generating an extracted image including the target by reducing the image extracted by the extraction step to the size of the extraction range before being expanded by the enlargement control step.
A transmission step of transmitting the generated extracted image as a print image to another device, and
An image processing method comprising.

(付記11)
コンピュータを、
ターゲットを撮像することにより撮像画像を生成する撮像手段、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示手段、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御手段、
前記撮像画像から、前記拡大制御手段によって拡大された後の前記抽出範囲の画像を抽出する抽出手段、
前記抽出手段によって抽出された画像を、前記拡大制御手段によって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成手段、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信手段、
として機能させることを特徴とするプログラム。
(Appendix 11)
Computer,
An imaging means that generates an captured image by imaging a target,
A display means for displaying the extraction range set in the captured image on the display unit,
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. means,
An extraction means for extracting an image of the extraction range after being enlarged by the enlargement control means from the captured image.
A generation means for generating an extracted image including the target by reducing the image extracted by the extraction means to the size of the extraction range before being enlarged by the enlargement control means.
A transmission means for transmitting the generated extracted image as a print image to another device.
A program characterized by functioning as.

1…印刷システム、2…撮像装置、3…印刷装置、21,31…制御部、22,32…記憶部、23…撮像部、23a…光学レンズ部、23b…イメージセンサ、24…入力部、24a…撮像ボタン、25…出力部、25a…表示部、26,35…通信部、33…ユーザインタフェース、34…電源部、36…移動量検出部、37…印刷部、37a…インクジェットヘッド、37b…インクジェットヘッド制御回路、201…撮像制御部、202…表示制御部、203…検出部、204…判定部、205…取得部、205a…拡大部、205b…抽出部、205c…生成部、206…送信部、301…受信部、302…印刷制御部、Aa…抽出範囲、Ca…抽出範囲アイコン、Ia…プレビュー画像、Ib…撮像画像、Ic1,Ic2,Ic3,Ic4…文字領域、Id…抽出部によって抽出された画像、Ie…抽出画像、OB…被写体 1 ... printing system, 2 ... image pickup device, 3 ... printing device, 21, 31 ... control unit, 22, 32 ... storage unit, 23 ... image pickup unit, 23a ... optical lens unit, 23b ... image sensor, 24 ... input unit, 24a ... Image pickup button, 25 ... Output unit, 25a ... Display unit, 26, 35 ... Communication unit, 33 ... User interface, 34 ... Power supply unit, 36 ... Movement amount detection unit, 37 ... Printing unit, 37a ... Inkjet head, 37b ... Inkjet head control circuit, 201 ... Image control unit, 202 ... Display control unit, 203 ... Detection unit, 204 ... Judgment unit, 205 ... Acquisition unit, 205a ... Enlargement unit, 205b ... Extraction unit, 205c ... Generation unit, 206 ... Transmission unit, 301 ... Reception unit, 302 ... Print control unit, Aa ... Extraction range, Ca ... Extraction range icon, Ia ... Preview image, Ib ... Captured image, Ic1, Ic2, Ic3, Ic4 ... Character area, Id ... Extraction unit Image extracted by, Ie ... Extracted image, OB ... Subject

Claims (11)

ターゲットを撮像することにより撮像画像を生成する撮像手段と、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示手段と、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御手段と、
前記撮像画像から、前記拡大制御手段によって拡大された後の前記抽出範囲の画像を抽出する抽出手段と、
前記抽出手段によって抽出された画像を、前記拡大制御手段によって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成手段と、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信手段と、
を備えることを特徴とする撮像装置。
An imaging means that generates an captured image by imaging a target,
A display means for displaying the extraction range set in the captured image on the display unit, and
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. Means and
An extraction means for extracting an image of the extraction range after being enlarged by the enlargement control means from the captured image, and an extraction means.
A generation means for generating an extracted image including the target by reducing the image extracted by the extraction means to the size of the extraction range before being enlarged by the enlargement control means.
A transmission means for transmitting the generated extracted image as a print image to another device, and
An imaging device characterized by being provided with.
前記ターゲットの候補のうちの、前記拡大制御手段によって拡大される前の前記抽出範囲に含まれる部分の割合が選択条件を満たす場合に、当該ターゲットの候補を前記ターゲットとして判定する判定手段をさらに備え、
前記拡大制御手段は、前記抽出範囲を、前記判定手段によって判定された前記ターゲットの全体を包含するサイズに拡大する、
ことを特徴とする請求項1に記載の撮像装置。
Further provided with a determination means for determining the target candidate as the target when the ratio of the portion included in the extraction range before being expanded by the expansion control means among the target candidates satisfies the selection condition. ,
The expansion control means expands the extraction range to a size that includes the entire target determined by the determination means.
The image pickup apparatus according to claim 1.
前記選択条件は、前記割合が閾値以上である場合に満たされ、
ユーザによる前記閾値の設定を受け付ける入力手段をさらに備えることを特徴とする請求項2に記載の撮像装置。
The selection condition is satisfied when the ratio is equal to or greater than the threshold value.
The image pickup apparatus according to claim 2, further comprising an input means for receiving the setting of the threshold value by the user.
前記抽出範囲に前記ターゲットの全体が含まれている場合、前記抽出範囲を、前記ターゲットのサイズに応じたサイズに縮小する縮小手段と、
前記撮像画像から、前記縮小手段によって縮小された後の前記抽出範囲の画像を抽出する第2の抽出手段と、
前記第2の抽出手段によって抽出された画像を、前記縮小手段によって縮小される前の前記抽出範囲のサイズに拡大することにより、前記抽出画像を生成する第2の生成手段と、
を備えることを特徴とする請求項1から3の何れか一項に記載の撮像装置。
When the extraction range includes the entire target, a reduction means for reducing the extraction range to a size corresponding to the size of the target, and a reduction means.
A second extraction means for extracting an image of the extraction range after being reduced by the reduction means from the captured image, and a second extraction means.
A second generation means for generating the extracted image by enlarging the image extracted by the second extraction means to the size of the extraction range before being reduced by the reduction means.
The image pickup apparatus according to any one of claims 1 to 3, further comprising.
前記抽出範囲は、縦横比が一定の矩形範囲であることを特徴とする請求項1から4の何れか一項に記載の撮像装置。 The imaging device according to any one of claims 1 to 4, wherein the extraction range is a rectangular range having a constant aspect ratio. 前記生成手段は、前記ターゲット以外の領域を単色で塗り潰して前記抽出画像を生成することを特徴とする請求項1から5の何れか一項に記載の撮像装置。 The image pickup apparatus according to any one of claims 1 to 5, wherein the generation means fills a region other than the target with a single color to generate the extracted image. 前記送信手段は、前記抽出画像を印刷する印刷装置へ送信することを特徴とする請求項1から6の何れか一項に記載の撮像装置。 The image pickup apparatus according to any one of claims 1 to 6, wherein the transmission means transmits the extracted image to a printing apparatus for printing the extracted image. 請求項7に記載の撮像装置と、前記印刷装置と、を備える印刷システムであって、
前記印刷装置は、前記撮像装置から送信された前記抽出画像を受信する受信手段と、
前記受信手段によって受信された前記抽出画像を印刷媒体に印刷する印刷手段と、
を備えることを特徴とする印刷システム。
A printing system including the image pickup apparatus according to claim 7 and the printing apparatus.
The printing apparatus includes a receiving means for receiving the extracted image transmitted from the imaging apparatus and a receiving means.
A printing means for printing the extracted image received by the receiving means on a printing medium, and
A printing system characterized by being equipped with.
前記印刷装置はラベルプリンターであり、
前記抽出範囲は、前記ラベルプリンターで前記ターゲットが印刷されるラベルの領域を示すことを特徴とする請求項8に記載の印刷システム。
The printing device is a label printer.
The printing system according to claim 8, wherein the extraction range indicates an area of a label on which the target is printed by the label printer.
ターゲットを撮像することにより撮像画像を生成する撮像ステップと、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示ステップと、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御ステップと、
前記撮像画像から、前記拡大制御ステップによって拡大された後の前記抽出範囲の画像を抽出する抽出ステップと、
前記抽出ステップによって抽出された画像を、前記拡大制御ステップによって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成ステップと、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信ステップと、
を含むことを特徴とする画像処理方法。
An imaging step that generates an captured image by imaging the target,
A display step for displaying the extraction range set in the captured image on the display unit, and
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. Steps and
An extraction step of extracting an image of the extraction range after being enlarged by the enlargement control step from the captured image, and an extraction step.
A generation step of generating an extracted image including the target by reducing the image extracted by the extraction step to the size of the extraction range before being expanded by the enlargement control step.
A transmission step of transmitting the generated extracted image as a print image to another device, and
An image processing method comprising.
コンピュータを、
ターゲットを撮像することにより撮像画像を生成する撮像手段、
前記撮像画像内に設定された抽出範囲を表示部に表示する表示手段、
前記抽出範囲に前記ターゲットの一部が含まれており、かつ、前記抽出範囲に前記ターゲットの全体が含まれていない場合、前記抽出範囲を、前記ターゲットの全体を包含するサイズに拡大する拡大制御手段、
前記撮像画像から、前記拡大制御手段によって拡大された後の前記抽出範囲の画像を抽出する抽出手段、
前記抽出手段によって抽出された画像を、前記拡大制御手段によって拡大される前の前記抽出範囲のサイズに縮小することにより、前記ターゲットを含む抽出画像を生成する生成手段、
前記生成された抽出画像を印刷用画像として他の機器に送信する送信手段、
として機能させることを特徴とするプログラム。
Computer,
An imaging means that generates an captured image by imaging a target,
A display means for displaying the extraction range set in the captured image on the display unit,
When the extraction range includes a part of the target and the extraction range does not include the entire target, the expansion control for expanding the extraction range to a size including the entire target. means,
An extraction means for extracting an image of the extraction range after being enlarged by the enlargement control means from the captured image.
A generation means for generating an extracted image including the target by reducing the image extracted by the extraction means to the size of the extraction range before being enlarged by the enlargement control means.
A transmission means for transmitting the generated extracted image as a print image to another device.
A program characterized by functioning as.
JP2017185287A 2017-09-26 2017-09-26 Image pickup device, printing system, image processing method and program Active JP6969258B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017185287A JP6969258B2 (en) 2017-09-26 2017-09-26 Image pickup device, printing system, image processing method and program
JP2021169073A JP7276401B2 (en) 2017-09-26 2021-10-14 Image processing device, image processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017185287A JP6969258B2 (en) 2017-09-26 2017-09-26 Image pickup device, printing system, image processing method and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021169073A Division JP7276401B2 (en) 2017-09-26 2021-10-14 Image processing device, image processing method and program

Publications (2)

Publication Number Publication Date
JP2019061481A JP2019061481A (en) 2019-04-18
JP6969258B2 true JP6969258B2 (en) 2021-11-24

Family

ID=66178563

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2017185287A Active JP6969258B2 (en) 2017-09-26 2017-09-26 Image pickup device, printing system, image processing method and program
JP2021169073A Active JP7276401B2 (en) 2017-09-26 2021-10-14 Image processing device, image processing method and program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2021169073A Active JP7276401B2 (en) 2017-09-26 2021-10-14 Image processing device, image processing method and program

Country Status (1)

Country Link
JP (2) JP6969258B2 (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003348316A (en) * 2002-05-23 2003-12-05 Seiko Epson Corp Image processing apparatus, and image forming device
RU2251738C2 (en) * 2003-01-28 2005-05-10 "Аби Софтвер Лтд." Method for synchronizing filled machine-readable form and its template in case of presence of deviations
JP2005354331A (en) 2004-06-10 2005-12-22 Casio Comput Co Ltd Image output unit and program
JP2007150400A (en) 2005-11-24 2007-06-14 Seiko Epson Corp Image edit apparatus, image edit method, image edit program, and storage medium
JP4725351B2 (en) 2006-02-20 2011-07-13 セイコーエプソン株式会社 Image processing apparatus, image processing method, and image processing program
JP2009003713A (en) * 2007-06-21 2009-01-08 Fujifilm Corp Red eye detection device and red eye detection method
JP2009098867A (en) * 2007-10-16 2009-05-07 Canon Inc Character string recognition method, computer program and storage medium
JP2010044644A (en) * 2008-08-14 2010-02-25 Fuji Xerox Co Ltd Fixed form medium processor, fixed form medium processing program, and fixed form medium processing system
JP5964078B2 (en) * 2012-02-28 2016-08-03 学校法人東京電機大学 Character recognition device, character recognition method and program
JP6409430B2 (en) 2014-09-11 2018-10-24 セイコーエプソン株式会社 Print image generation apparatus, print system, print image generation method, and program
JP6548920B2 (en) * 2015-03-09 2019-07-24 株式会社東芝 INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP6547563B2 (en) * 2015-09-30 2019-07-24 富士通株式会社 Detection program, detection method and detection apparatus

Also Published As

Publication number Publication date
JP2022002156A (en) 2022-01-06
JP2019061481A (en) 2019-04-18
JP7276401B2 (en) 2023-05-18

Similar Documents

Publication Publication Date Title
US10308014B2 (en) Non-transitory recording medium, image forming device, and image forming system
JP5949261B2 (en) Label production system, label production method, printing apparatus and program
US7999967B2 (en) Print control apparatus, printing apparatus, print control method, and program thereof
US10806231B2 (en) Drawing apparatus, drawing method, and recording medium storing program
US11323582B2 (en) Image reading apparatus capable of reading and displaying image of document placed on platen
JP4779289B2 (en) Image display device, image display method, and program
JP6969258B2 (en) Image pickup device, printing system, image processing method and program
JP2020042418A (en) Data generation system, communication terminal, image formation device and program
US11233909B2 (en) Display apparatus capable of displaying guidance information and non-transitory computer readable medium storing program
JP2018056894A (en) Image editing program and image editing device
US20190149672A1 (en) Display apparatus and non-transitory computer readable medium storing program
US10759164B2 (en) Application device, ink application method, and non-transitory recording medium
JP6746987B2 (en) Printing device, printing method, and program
JP2017159459A (en) Image forming apparatus
JP7087434B2 (en) Image processing equipment, printing system, printing equipment, image processing method and program
JP6866636B2 (en) Character editing methods, electronic devices, and programs
JP2019130734A (en) Printing system, terminal device, printer, printing method and program
JP6319007B2 (en) Printing apparatus, printing method, and program
JP7070769B2 (en) Printing equipment, printing methods and programs
JP6919751B2 (en) Printing equipment, printing methods and programs
JP2017170803A (en) Printing device, printing method and program
US8441681B2 (en) Printing apparatus for printing composite image, print data generating apparatus for generating print data of composite image, and print data generating program for generating print data of composite image
JP7135800B2 (en) Coating device, coating system, coating method and program
JP2017183766A (en) Server program, image generation device and image data generation method
JP2023142767A (en) Image processing apparatus, image processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200907

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210909

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211011

R150 Certificate of patent or registration of utility model

Ref document number: 6969258

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150