JP2021081784A - Program and information processing device - Google Patents

Program and information processing device Download PDF

Info

Publication number
JP2021081784A
JP2021081784A JP2019206290A JP2019206290A JP2021081784A JP 2021081784 A JP2021081784 A JP 2021081784A JP 2019206290 A JP2019206290 A JP 2019206290A JP 2019206290 A JP2019206290 A JP 2019206290A JP 2021081784 A JP2021081784 A JP 2021081784A
Authority
JP
Japan
Prior art keywords
image
paper
printer
reference component
candidate
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
JP2019206290A
Other languages
Japanese (ja)
Other versions
JP7371451B2 (en
Inventor
ポーチュン チュー
Po Chun Chew
ポーチュン チュー
康史 深澤
Yasushi Fukazawa
康史 深澤
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 JP2019206290A priority Critical patent/JP7371451B2/en
Publication of JP2021081784A publication Critical patent/JP2021081784A/en
Application granted granted Critical
Publication of JP7371451B2 publication Critical patent/JP7371451B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

To provide a technology which is a program of an information processing device capable of setting a characteristic parameter used for printing in a printer, and which reduces the time and labor of a user at the time of the setting.SOLUTION: A PC1 acquires captured data indicating a photographed image, by executing a candidate parameter determination application 43; identifies the image of a reference part which a printer 2 comprises, and the image of a sheet equipped in the printer 2, from the acquired captured data; compares the identified image of the reference part with the image of the sheet; calculates a candidate parameter which serves as a candidate of a print parameter, based on the comparison result and a feature value of the reference part; and sets the calculated candidate parameter, as the candidate of the print parameter used for printing in the printer 2.SELECTED DRAWING: Figure 4

Description

本明細書に開示される技術分野は、プリンタでの印刷に用いる特性パラメータを取得するプログラムおよび情報処理装置に関する。 The technical fields disclosed herein relate to programs and information processing devices that acquire characteristic parameters used for printing on a printer.

パーソナルコンピュータ等の情報処理装置においてユーザ定義の用紙サイズを記憶し、その用紙サイズに基づいてプリンタでの印刷に用いる用紙を設定する技術が知られている。例えば、特許文献1には、情報処理装置から出力された印刷データにユーザ定義の用紙サイズが指定されていた場合に、管理サーバによって適切なプリンタ用紙を選択する技術が開示されている。 There is known a technique of storing a user-defined paper size in an information processing device such as a personal computer and setting the paper to be used for printing by a printer based on the paper size. For example, Patent Document 1 discloses a technique of selecting an appropriate printer paper by a management server when a user-defined paper size is specified in the print data output from the information processing apparatus.

特開2014−63386号公報Japanese Unexamined Patent Publication No. 2014-63386

例えば、ユーザによって用紙サイズを設定する場合、適切なサイズを計測器を用いてユーザが計測する必要がある。しかしながら、ユーザは、計測器を所持していない等、必ずしも計測器を直ぐに利用できるとは限らない。その場合、計測器を取りに戻る等、計測器を利用できるようにするには、ユーザにとって手間になる。また、用紙サイズに限らず、印刷に用いる特性パラメータを設定する場合、その特性パラメータの設定に必要な情報や手段をユーザが直ぐに入手できるとは限らない。特許文献1では、印刷に用いる特性パラメータの設定時の詳細に関する技術が開示されていない。 For example, when the paper size is set by the user, it is necessary for the user to measure an appropriate size using a measuring instrument. However, the user does not always have the measuring instrument immediately because he / she does not have the measuring instrument. In that case, it is troublesome for the user to make the measuring instrument available, such as returning to pick up the measuring instrument. Further, when setting characteristic parameters used for printing regardless of the paper size, the user may not always be able to immediately obtain the information and means necessary for setting the characteristic parameters. Patent Document 1 does not disclose a technique relating to details when setting characteristic parameters used for printing.

本明細書は、プリンタでの印刷に用いる特性パラメータの設定が可能な情報処理装置のプログラムであって、その設定時のユーザの手間を低減する技術を開示する。 This specification is a program of an information processing device capable of setting characteristic parameters used for printing with a printer, and discloses a technique for reducing the time and effort of a user at the time of setting the program.

この課題の解決を目的としてなされたプログラムは、情報処理装置のコンピュータによって実行可能であり、プリンタでの印刷に用いる特性パラメータの設定を行うプログラムであって、前記コンピュータに、撮影された画像を示す撮像データを取得する取得処理と、前記取得処理にて取得した前記撮像データから、前記プリンタが備える基準部品の画像と、前記プリンタに装着された用紙の画像とを特定する特定処理と、前記特定処理にて特定した前記基準部品の画像と前記用紙の画像とを比較し、その比較結果と、前記基準部品の特徴値と、に基づいて前記特性パラメータを算出する算出処理と、前記算出処理にて算出した前記特性パラメータを、前記プリンタでの印刷に用いる前記特性パラメータとして設定する設定処理と、を実行させる、ことを特徴としている。 A program made for the purpose of solving this problem is a program that can be executed by a computer of an information processing apparatus and sets characteristic parameters used for printing by a printer, and displays a captured image on the computer. The acquisition process for acquiring the imaging data, the identification process for specifying the image of the reference component included in the printer and the image of the paper mounted on the printer from the imaging data acquired in the acquisition process, and the identification. In the calculation process of comparing the image of the reference component specified in the process with the image of the paper, and calculating the characteristic parameter based on the comparison result and the feature value of the reference component, and the calculation process. It is characterized in that the setting process of setting the characteristic parameter calculated as described above as the characteristic parameter used for printing on the printer is executed.

本明細書に開示されるプログラムを実行することで、情報処理装置は、撮像データから基準部品の画像と用紙の画像とを特定し、それらの比較結果と基準部品の特徴値とに基づいて、特性パラメータを算出する。ユーザは、例えば、情報処理装置の備えるカメラで基準部品と用紙とが含まれる画像を撮影して、情報処理装置に撮像データを取得させるだけで、簡単に特性パラメータを算出して印刷に用いることができる。すなわち、印刷に用いる特性パラメータの設定の際、その設定に必要な計測機器等を用意する必要はなく、設定時のユーザの手間が少ない。 By executing the program disclosed in the present specification, the information processing apparatus identifies the image of the reference component and the image of the paper from the imaging data, and based on the comparison result and the feature value of the reference component, Calculate characteristic parameters. For example, a user can easily calculate characteristic parameters and use them for printing simply by taking an image including a reference component and paper with a camera provided in the information processing device and having the information processing device acquire the imaged data. Can be done. That is, when setting the characteristic parameters used for printing, it is not necessary to prepare the measuring equipment or the like necessary for the setting, and the user's labor at the time of setting is small.

上記プログラムの機能を実現する情報処理装置、プログラムの機能を実現するための制御方法、プログラムを格納するコンピュータにて読取可能な記憶媒体も、新規で有用である。 An information processing device that realizes the function of the program, a control method for realizing the function of the program, and a storage medium that can be read by a computer that stores the program are also new and useful.

本明細書に開示される技術によれば、プリンタでの印刷に用いる特性パラメータの設定が可能な情報処理装置のプログラムであって、その設定時のユーザの手間を低減する技術が実現される。 According to the technique disclosed in the present specification, a program of an information processing device capable of setting characteristic parameters used for printing with a printer, and a technique for reducing the time and effort of the user at the time of setting are realized.

実施の形態にかかるモバイル装置の概略構成図である。It is a schematic block diagram of the mobile device which concerns on embodiment. (A)はプリンタを上面から見た図であり、(B)は(A)に示したプリンタのX−X断面の内部構成の概略を示す図である。(A) is a view of the printer viewed from above, and (B) is a diagram showing an outline of the internal configuration of the XX cross section of the printer shown in (A). 候補パラメータ決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the candidate parameter determination process. 撮像画像の例を示す説明図である。It is explanatory drawing which shows the example of the captured image. 用紙画像特定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the paper image identification processing. 算出設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the calculation setting process. 裏面の撮像画像の例を示す説明図である。It is explanatory drawing which shows the example of the captured image of the back surface. プリンタパラメータ決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the printer parameter determination process.

以下、モバイル装置にて実行されるアプリケーションプログラム(以下、「アプリ」とする)を具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本形態は、カメラを備えるモバイル装置を開示するものである。 Hereinafter, an embodiment in which an application program (hereinafter referred to as an “application”) executed on a mobile device is embodied will be described in detail with reference to the attached drawings. The present embodiment discloses a mobile device including a camera.

本形態のモバイル装置1は、図1に示すように、コントローラ10と、ユーザインタフェース(以下、「ユーザIF」とする)20と、通信インタフェース(以下、「通信IF」とする)30と、カメラ40と、を備えている。ユーザIF20及び通信IF30は、コントローラ10に電気的に接続されている。モバイル装置1は、例えば、スマートフォン、タブレット型コンピュータ、ノート型パーソナルコンピュータである。モバイル装置1は、情報処理装置の一例である。なお、図1中のコントローラ10は、モバイル装置1の制御に利用されるハードウェアやソフトウェアを纏めた総称であって、実際にモバイル装置1に存在する単一のハードウェアを表すとは限らない。 As shown in FIG. 1, the mobile device 1 of the present embodiment includes a controller 10, a user interface (hereinafter referred to as "user IF") 20, a communication interface (hereinafter referred to as "communication IF") 30, and a camera. 40 and. The user IF 20 and the communication IF 30 are electrically connected to the controller 10. The mobile device 1 is, for example, a smartphone, a tablet computer, or a notebook personal computer. The mobile device 1 is an example of an information processing device. Note that the controller 10 in FIG. 1 is a general term for hardware and software used for controlling the mobile device 1, and does not necessarily represent a single hardware actually existing in the mobile device 1. ..

モバイル装置1のコントローラ10は、図1に示すように、CPU11と、メモリ12と、を含む。CPU11は、メモリ12から読み出したプログラムに従って、また、ユーザの指示に基づいて、各種の処理を実行する。CPU11は、コンピュータの一例である。メモリ12は、ROMと、RAMと、不揮発性メモリと、を含み、各種のプログラムや各種のデータなどを記憶する。 As shown in FIG. 1, the controller 10 of the mobile device 1 includes a CPU 11 and a memory 12. The CPU 11 executes various processes according to the program read from the memory 12 and based on the user's instruction. The CPU 11 is an example of a computer. The memory 12 includes a ROM, a RAM, and a non-volatile memory, and stores various programs, various data, and the like.

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

ユーザIF20は、例えば、タッチパネルであり、ユーザによる入力操作を受け付ける機能と情報の表示を行う機能とを備えるハードウェアを含む。ユーザIF20は、表示デバイスの一例であり、ユーザインタフェースの一例である。なお、表示デバイスと入力デバイスとは、別のデバイスであっても良く、ユーザIF20は、表示機能を有するディスプレイと入力受付機能を有するキーボードやマウス等との組合せであっても良い。 The user IF 20 is, for example, a touch panel, and includes hardware having a function of accepting an input operation by the user and a function of displaying information. The user IF 20 is an example of a display device and an example of a user interface. The display device and the input device may be different devices, and the user IF 20 may be a combination of a display having a display function and a keyboard, a mouse, or the like having an input reception function.

通信IF30は、各種の外部装置との通信を行うためのハードウェアを含む。通信IF30は、通信方式の異なる複数のインタフェースを含んでいても良い。通信方式としては、例えば、有線あるいは無線によるネットワーク通信、USB通信、Bluetooth(登録商標)等の近距離通信がある。モバイル装置1は、通信IF30を介してプリンタ2と通信可能である。 The communication IF 30 includes hardware for communicating with various external devices. The communication IF 30 may include a plurality of interfaces having different communication methods. Communication methods include, for example, wired or wireless network communication, USB communication, and short-range communication such as Bluetooth (registered trademark). The mobile device 1 can communicate with the printer 2 via the communication IF 30.

カメラ40は、少なくとも静止画像を撮影可能なハードウェアを含む。モバイル装置1は、カメラ40を起動すると、例えば、所定時間ごとにイメージセンサにて画像を取得し、取得された画像であるライブビュー画像と撮影ボタンとをユーザIF20に表示させる。モバイル装置1は、表示中の撮影ボタンへの操作を受け付けたらカメラ40による撮影を実行し、撮像データを取得する。モバイル装置1は、撮像データの取得後に、取得した撮像データを記憶するか破棄するかの選択を受け付けても良い。なお、ライブビュー画像は、見かけ上連続的に変化する画像であり、連続的に変化する画像の一例である。 The camera 40 includes at least hardware capable of capturing a still image. When the camera 40 is activated, the mobile device 1 acquires an image with an image sensor at predetermined time intervals, and causes the user IF 20 to display the acquired live view image and the shooting button. When the mobile device 1 receives an operation on the shooting button being displayed, the mobile device 1 executes shooting with the camera 40 and acquires imaging data. After acquiring the imaging data, the mobile device 1 may accept the option of storing or discarding the acquired imaging data. The live view image is an image that apparently changes continuously, and is an example of an image that changes continuously.

本形態のモバイル装置1は、図1に示すように、メモリ12に、オペレーティングシステム(以下、「OS」とする)41と、印刷アプリ42と、候補パラメータ決定アプリ43と、が記憶されている。OS41は、例えば、iOS(登録商標)、Android(登録商標)、である。 In the mobile device 1 of this embodiment, as shown in FIG. 1, an operating system (hereinafter referred to as “OS”) 41, a print application 42, and a candidate parameter determination application 43 are stored in the memory 12. .. OS41 is, for example, iOS®, Android®.

次に、本形態のモバイル装置1に接続されるプリンタ2について説明する。図2(A)は、プリンタ2を上面から見た図であり、図2(B)は、図2(A)に示したプリンタのX−X断面の内部構成の概略を示している。本形態のプリンタ2は、例えば、図2(B)に示すように、感熱方式の印字ヘッド21を備え、印刷媒体22を装着した状態で、印刷媒体22への印刷と印刷媒体22の搬送とを並行して行う。プリンタ2にて印刷に用いられる印刷媒体22は、交換可能なものであり、連続した帯状の用紙がロール状に巻かれた状態でプリンタ2にセットされる。以下では、印刷媒体22について、図2(A)に示すように、プリンタ2によって搬送される方向を搬送方向とし、搬送方向に直交する方向を幅方向とする。 Next, the printer 2 connected to the mobile device 1 of the present embodiment will be described. FIG. 2A is a view of the printer 2 viewed from above, and FIG. 2B shows an outline of the internal configuration of the XX cross section of the printer shown in FIG. 2A. As shown in FIG. 2B, for example, the printer 2 of this embodiment is provided with a heat-sensitive printing head 21, and with the printing medium 22 attached, printing on the printing medium 22 and conveying the printing medium 22. In parallel. The print medium 22 used for printing in the printer 2 is replaceable, and is set in the printer 2 in a state in which continuous strip-shaped paper is rolled into a roll. In the following, with respect to the print medium 22, as shown in FIG. 2A, the direction conveyed by the printer 2 is defined as the transport direction, and the direction orthogonal to the transport direction is defined as the width direction.

印字ヘッド21は、幅方向に並ぶ複数の発熱素子を備えている。プリンタ2は、各発熱素子を選択的に発熱させることで、搬送される印刷媒体22に対して印刷データに基づく印刷を行い、印刷媒体22のうちの印刷済みの部分を、排出口23から機外へ突出させる。プリンタ2は、排出口23の近傍に、例えば、手動式のカッター24を備える。カッター24がユーザによって操作されることで、機外へ突出した部分が残りの印刷媒体22から切り取られて排出される。 The print head 21 includes a plurality of heat generating elements arranged in the width direction. The printer 2 selectively heats each heat generating element to print on the conveyed print medium 22 based on the print data, and prints the printed portion of the print medium 22 from the discharge port 23. Protrude to the outside. The printer 2 includes, for example, a manual cutter 24 in the vicinity of the discharge port 23. When the cutter 24 is operated by the user, the portion protruding outside the machine is cut out from the remaining print medium 22 and discharged.

プリンタ2にて用いられる印刷媒体22は、例えば、図2(B)に部分的に拡大して示すように、連続した帯状の剥離紙221と、剥離紙221の片面に貼着されたラベル紙222とを含むラベルロールである。印刷媒体22には、ラベル紙222の形状によって、複数の用紙種がある。用紙種は、例えば、長尺テープ、ダイカットラベル、マーク付きメディアである。 The printing medium 22 used in the printer 2 is, for example, a continuous strip-shaped release paper 221 and a label paper attached to one side of the release paper 221 as shown in FIG. 2 (B) in a partially enlarged manner. It is a label roll including 222. The print medium 22 has a plurality of paper types depending on the shape of the label paper 222. Paper types are, for example, long tapes, die-cut labels, and marked media.

長尺テープは、連続した剥離紙221の一面に、剥離紙221と同様の連続した帯状のラベル紙222が貼着されているものである。例えば、印刷済みの部分をカッター24等で切り取ることで、長尺テープから所定の長さのラベルが作成される。ダイカットラベルは、所定の形状に予め整形されたラベル紙222が、連続した剥離紙221の一面に所定の間隔を空けて貼着されているものである。マーク付きメディアは、搬送方向に所定の間隔で予めマークが設けられている印刷媒体22である。マークは、例えば、淡色の剥離紙221のうちラベル紙222が貼着されていない側の面である裏面に黒色で設けられる。 The long tape is obtained by sticking a continuous strip-shaped label paper 222 similar to the release paper 221 on one surface of the continuous release paper 221. For example, a label having a predetermined length is created from a long tape by cutting a printed portion with a cutter 24 or the like. The die-cut label is a label paper 222 that has been preformed into a predetermined shape and is attached to one surface of a continuous release paper 221 at a predetermined interval. The marked medium is a print medium 22 in which marks are provided in advance at predetermined intervals in the transport direction. The mark is provided in black on the back surface, which is the side surface of the light-colored release paper 221 on which the label paper 222 is not attached.

そして、本形態のプリンタ2は、印字ヘッド21の近傍に、印刷媒体22を検知する透過センサ25と反射センサ26とを有している。透過センサ25は、発光素子と受光素子とが印刷媒体22の搬送路を挟んで反対側に配置されるセンサである。反射センサ26は、発光素子と受光素子とが印刷媒体22の搬送路に対して同じ側に配置されるセンサである。反射センサ26は、印刷媒体22の剥離紙221の裏面を検知するように配置されている。 The printer 2 of this embodiment has a transmission sensor 25 for detecting the print medium 22 and a reflection sensor 26 in the vicinity of the print head 21. The transmission sensor 25 is a sensor in which a light emitting element and a light receiving element are arranged on opposite sides of the transport path of the print medium 22. The reflection sensor 26 is a sensor in which the light emitting element and the light receiving element are arranged on the same side with respect to the transport path of the print medium 22. The reflection sensor 26 is arranged so as to detect the back surface of the release paper 221 of the print medium 22.

プリンタ2は、装着されている印刷媒体22を搬送しつつ透過センサ25および反射センサ26で検出することで、印刷媒体22の頭出しを行う。プリンタ2は、透過センサ25の出力結果に基づいて、例えば、ダイカットラベルのラベル紙222の有無を検出し、ラベル紙222の先頭位置を印字ヘッド21の位置に合わせることができる。また、プリンタ2は、反射センサ26の出力結果に基づいて、例えば、マーク付きメディアのマークの有無を検知し、マークの位置を印字ヘッド21の位置に合わせることができる。 The printer 2 cue the print medium 22 by detecting it with the transmission sensor 25 and the reflection sensor 26 while carrying the mounted print medium 22. The printer 2 can detect, for example, the presence or absence of the label paper 222 of the die-cut label based on the output result of the transmission sensor 25, and align the head position of the label paper 222 with the position of the print head 21. Further, the printer 2 can detect, for example, the presence or absence of a mark on the marked media based on the output result of the reflection sensor 26, and adjust the position of the mark to the position of the print head 21.

モバイル装置1のメモリ12に記憶されている印刷アプリ42は、プリンタ2に印刷を指示する印刷指示データを作成するアプリである。印刷指示データには、印刷アプリ42にて決定された印刷パラメータと、画像データとが含まれる。印刷パラメータには、印刷対象の印刷媒体22に関する情報である用紙パラメータと、プリンタ2の動作に関するパラメータであるプリンタパラメータと、が含まれる。印刷パラメータは、特性パラメータの一例である。 The print application 42 stored in the memory 12 of the mobile device 1 is an application that creates print instruction data instructing the printer 2 to print. The print instruction data includes print parameters determined by the print application 42 and image data. The print parameters include paper parameters that are information about the print medium 22 to be printed, and printer parameters that are parameters related to the operation of the printer 2. The print parameter is an example of a characteristic parameter.

用紙パラメータには、例えば、用紙種、搬送方向および幅方向の用紙サイズ、の情報が含まれる。用紙種は、印刷媒体22が、長尺テープ、ダイカットラベル、マーク付きメディアのいずれであるかを示す情報である。用紙パラメータのうち、搬送方向の用紙サイズは、用紙種が長尺テープであればユーザの指示に基づいて設定され、ダイカットラベルまたはマーク付きメディアであれば、ラベル紙222のサイズやマークの位置に基づいて決定される。なお、用紙種が長尺テープの場合には、用紙パラメータに搬送方向の用紙サイズは含まれなくても良い。幅方向の用紙サイズは、用紙種にかかわらずラベル紙222の幅方向のサイズである。 Paper parameters include, for example, information about paper type, paper size in the transport direction and width direction. The paper type is information indicating whether the print medium 22 is a long tape, a die-cut label, or a marked medium. Of the paper parameters, the paper size in the transport direction is set based on the user's instructions if the paper type is long tape, and if it is a die-cut label or marked media, the size of the label paper 222 or the position of the mark. Determined based on. When the paper type is a long tape, the paper parameter may not include the paper size in the transport direction. The paper size in the width direction is the size in the width direction of the label paper 222 regardless of the paper type.

プリンタパラメータには、例えば、センサ感度、エネルギーランク、の情報が含まれる。センサ感度は、例えば、透過センサ25や反射センサ26の感度のパラメータである。エネルギーランクは、印字ヘッド21の発熱量のパラメータである。 The printer parameters include, for example, information such as sensor sensitivity and energy rank. The sensor sensitivity is, for example, a parameter of the sensitivity of the transmission sensor 25 and the reflection sensor 26. The energy rank is a parameter of the calorific value of the print head 21.

印刷アプリ42には、印刷指示データに含ませる印刷パラメータの候補となる候補パラメータを複数登録することができる。モバイル装置1のメモリ12に記憶されている候補パラメータ決定アプリ43は、候補パラメータを決定して印刷アプリ42に登録するアプリである。例えば、所定のアドレスに候補パラメータを保存する保存ファイルが用意され、候補パラメータ決定アプリ43は、保存ファイルに候補パラメータを登録する。本形態の候補パラメータ決定アプリ43は、例えば、プリンタ2に装着されている印刷媒体22に関する用紙パラメータを含む候補パラメータを決定する。候補パラメータ決定アプリ43は、プログラムの一例である。 In the print application 42, a plurality of candidate parameters that are candidates for print parameters to be included in the print instruction data can be registered. The candidate parameter determination application 43 stored in the memory 12 of the mobile device 1 is an application that determines candidate parameters and registers them in the print application 42. For example, a save file for saving the candidate parameters at a predetermined address is prepared, and the candidate parameter determination application 43 registers the candidate parameters in the save file. The candidate parameter determination application 43 of the present embodiment determines, for example, candidate parameters including paper parameters related to the print medium 22 mounted on the printer 2. The candidate parameter determination application 43 is an example of a program.

なお、候補パラメータを保存する保存ファイルは、印刷アプリ42と候補パラメータ決定アプリ43とがいずれもアクセス可能な領域に保存されていればよい。保存ファイルは、メモリ12の所定の領域に記憶されていても良いし、モバイル装置1のOS41が用意した記憶領域、例えば、Windows(登録商標)のレジストリに記憶されていても良い。また、保存ファイルは、サーバ等の、モバイル装置1からアクセス可能な外部装置に記憶されていても良い。 The save file for saving the candidate parameters may be saved in an area accessible to both the print application 42 and the candidate parameter determination application 43. The saved file may be stored in a predetermined area of the memory 12, or may be stored in a storage area prepared by the OS 41 of the mobile device 1, for example, in the registry of Windows (registered trademark). Further, the saved file may be stored in an external device such as a server that can be accessed from the mobile device 1.

印刷アプリ42は、印刷指示データを生成する際に保存ファイルにアクセスして、候補パラメータを取得することができる。印刷アプリ42は、例えば、保存ファイルに記憶されている候補パラメータの1つの選択を受け付け、選択された候補パラメータに基づいて、印刷指示データに含ませる印刷パラメータを決定する。印刷アプリ42は、選択された候補パラメータをそのまま印刷パラメータとしても良い。また、印刷アプリ42は、選択された候補パラメータに対する編集を受け付けて、編集された候補パラメータを印刷パラメータとしても良い。印刷アプリ42は、例えば、ユーザIF20を介して、候補パラメータ中の用紙パラメータの数値の変更指示等を受け付けても良い。 The print application 42 can access the save file when generating the print instruction data and acquire the candidate parameters. The print application 42 accepts, for example, one selection of the candidate parameters stored in the save file, and determines the print parameters to be included in the print instruction data based on the selected candidate parameters. The print application 42 may use the selected candidate parameter as it is as a print parameter. Further, the print application 42 may accept editing for the selected candidate parameter and use the edited candidate parameter as a print parameter. The print application 42 may accept, for example, an instruction to change the numerical value of the paper parameter in the candidate parameters via the user IF20.

なお、印刷アプリ42は、印刷パラメータそのものを印刷指示データに含ませる代わりに、決定した印刷パラメータをメモリ12等に記憶させ、その記憶場所を示す情報を印刷指示データに含ませても良い。また、印刷アプリ42は、画像データそのものを印刷指示データに含ませる代わりに、画像データが記憶されている記憶場所を示す情報を印刷指示データに含ませても良い。印刷パラメータや画像データの記憶場所は、モバイル装置1のメモリ12でも良いし、プリンタ2のメモリでも良いし、サーバ等の外部装置でも良い。プリンタ2は、受信した印刷指示データに基づいて印刷パラメータや画像データをその記憶場所から読み出し、印刷に使用する。 Instead of including the print parameter itself in the print instruction data, the print application 42 may store the determined print parameter in the memory 12 or the like, and include information indicating the storage location in the print instruction data. Further, the print application 42 may include information indicating a storage location where the image data is stored in the print instruction data instead of including the image data itself in the print instruction data. The storage location of the print parameters and image data may be the memory 12 of the mobile device 1, the memory of the printer 2, or an external device such as a server. The printer 2 reads print parameters and image data from the storage location based on the received print instruction data, and uses the printer 2 for printing.

なお、印刷アプリ42は、他のアプリから画像データの印刷指示を受け付け、受け付けた指示に基づいて印刷指示データを生成するアプリであっても良い。例えば、印刷アプリ42は、プリンタドライバであっても良い。また、印刷アプリ42は、自身で画像データの作成または編集とその印刷指示とを受け付けるアプリであっても良いし、外部から画像データを取得してその印刷指示データを生成するアプリであっても良い。また、印刷アプリ42は、OS41などの他のプログラムと共同で印刷指示データを生成しても良いし、生成した印刷指示データを他のプログラムと共同でプリンタ2に送信してもよい。 The print application 42 may be an application that receives print instructions for image data from another application and generates print instruction data based on the received instructions. For example, the print application 42 may be a printer driver. Further, the print application 42 may be an application that accepts the creation or editing of image data and its print instruction by itself, or may be an application that acquires image data from the outside and generates the print instruction data. good. Further, the print application 42 may generate print instruction data jointly with another program such as OS 41, or may transmit the generated print instruction data to the printer 2 jointly with another program.

続いて、候補パラメータ決定アプリ43による処理について説明する。なお、以下の処理およびフローチャートの各処理ステップは、基本的に、各プログラムに記述された命令に従ったCPU11の処理を示す。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」等の処理は、CPU11の処理を表している。CPU11による処理は、PC1のOS41のAPIを用いたハードウェア制御も含む。本明細書では、OS41の記載を省略して各プログラムの動作を説明する。すなわち、以下の説明において、「プログラムBがハードウェアCを制御する」という趣旨の記載は、「プログラムBがOS41のAPIを用いてハードウェアCを制御する」ことを指してもよい。また、プログラムに記述された命令に従ったCPU11の処理を、省略した文言で記載することがある。例えば、「CPU11が行う」、「プログラムが行う」のように記載することがある。 Subsequently, the processing by the candidate parameter determination application 43 will be described. The following processing and each processing step in the flowchart basically indicate the processing of the CPU 11 according to the instructions described in each program. That is, the processing of "judgment", "extraction", "selection", "calculation", "decision", "specification", "acquisition", "acceptance", "control", etc. in the following description is the processing of the CPU 11. Represents. The processing by the CPU 11 also includes hardware control using the API of the OS 41 of the PC1. In this specification, the operation of each program will be described by omitting the description of OS 41. That is, in the following description, the description to the effect that "program B controls hardware C" may refer to "program B controls hardware C using the API of OS41". In addition, the processing of the CPU 11 according to the instructions described in the program may be described in abbreviated terms. For example, it may be described as "performed by the CPU 11" or "performed by the program".

なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU11が要求することなくデータを受信するという処理も、「CPU11がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。また、「要求する」、「指示する」とは、要求していることを示す情報や、指示していることを示す情報を相手に出力することを示す概念である。また、要求していることを示す情報や指示していることを示す情報のことを、単に、「要求」、「指示」とも記載する。 Note that "acquisition" is used in a concept that does not require a request. That is, the process of receiving data without the CPU 11 requesting is also included in the concept of "the CPU 11 acquires the data". Further, the "data" in the present specification is represented by a bit string that can be read by a computer. Then, data having the same substantial meaning and contents but different formats are treated as the same data. The same applies to "information" in the present specification. Further, "requesting" and "instructing" are concepts indicating that information indicating that a request is being made or information indicating that an instruction is being given is output to the other party. In addition, the information indicating that the request is made or the information indicating that the instruction is given is simply described as "request" or "instruction".

また、CPU11による、情報Aは事柄Bであることを示しているか否かを判断する処理を、「情報Aから、事柄Bであるか否かを判断する」のように概念的に記載することがある。CPU11による、情報Aが事柄Bであることを示しているか、事柄Cであることを示しているか、を判断する処理を、「情報Aから、事柄Bであるか事柄Cであるかを判断する」のように概念的に記載することがある。 Further, the process of determining whether or not the information A indicates that the information A is the matter B by the CPU 11 is conceptually described as "determining whether or not the information A is the matter B from the information A". There is. The process of determining whether the information A indicates that the information A is the matter B or the matter C by the CPU 11 is "determined from the information A whether the information A is the matter B or the matter C." It may be described conceptually as.

本形態のモバイル装置1にて、各種の印刷パラメータの候補となる候補パラメータを決定する候補パラメータ決定処理の手順について、図3のフローチャートを参照して説明する。候補パラメータ決定処理は、候補パラメータ決定アプリ43の実行指示を受け付けたことを契機に、コントローラ10のCPU11にて実行される。 The procedure of the candidate parameter determination process for determining the candidate parameters that are candidates for various print parameters in the mobile device 1 of the present embodiment will be described with reference to the flowchart of FIG. The candidate parameter determination process is executed by the CPU 11 of the controller 10 when the execution instruction of the candidate parameter determination application 43 is received.

候補パラメータ決定処理では、CPU11は、まず、確認リストを生成する(S101)。確認リストは、候補パラメータのリストであり、このうちから今回装着されている用紙の情報をユーザに選択させるための候補のリストである。前述したように、候補パラメータは保存ファイルに保存されており、S101では、CPU11は、例えば、保存ファイルから候補パラメータを読み出して確認リストを生成する。 In the candidate parameter determination process, the CPU 11 first generates a confirmation list (S101). The confirmation list is a list of candidate parameters, and is a list of candidates for allowing the user to select information on the paper loaded this time. As described above, the candidate parameters are stored in the save file, and in S101, the CPU 11 reads, for example, the candidate parameters from the save file and generates a confirmation list.

なお、CPU11は、例えば、保存ファイルに保存されている全ての候補パラメータによる確認リストを生成しても良いし、候補パラメータとは別に候補パラメータ決定アプリ43に確認リスト用の1以上の候補パラメータを記憶して、記憶している候補パラメータを確認リストに加えても良い。あるいは、CPU11は、候補パラメータ決定アプリ43に記憶している確認リスト用の候補パラメータのみを用いて確認リストを生成しても良い。また、CPU11は、印刷アプリ42のAPIを用いて、印刷アプリ42に候補パラメータまたはそのリストを要求して候補パラメータまたはそのリストを取得し、取得した情報に基づいて確認リストを生成しても良い。 The CPU 11 may, for example, generate a confirmation list based on all the candidate parameters saved in the save file, or separately provide the candidate parameter determination application 43 with one or more candidate parameters for the confirmation list in addition to the candidate parameters. You may memorize and add the memorized candidate parameters to the confirmation list. Alternatively, the CPU 11 may generate a confirmation list using only the candidate parameters for the confirmation list stored in the candidate parameter determination application 43. Further, the CPU 11 may use the API of the print application 42 to request the print application 42 for the candidate parameter or its list, acquire the candidate parameter or its list, and generate a confirmation list based on the acquired information. ..

CPU11は、モードの指定を受け付けたか否かを判断する(S102)。本形態の候補パラメータ決定アプリ43は、例えば、用紙種を指定して用紙パラメータを取得する指示を受け付ける。受け付け可能なモードは、例えば、長尺テープ、ダイカットラベル、マーク付きメディア、自動、である。自動は、用紙種を指定しないで用紙パラメータを取得する指示であり、長尺テープ、ダイカットラベル、マーク付きメディアはそれぞれ、用紙種を指定して用紙パラメータを取得する指示である。なお、S102では、CPU11は、モードの指定以外にキャンセルの指示も受け付ける。 The CPU 11 determines whether or not the mode designation has been accepted (S102). The candidate parameter determination application 43 of the present embodiment receives, for example, an instruction to specify a paper type and acquire a paper parameter. Acceptable modes are, for example, long tape, die-cut labels, marked media, and automatic. Automatic is an instruction to acquire paper parameters without specifying a paper type, and long tape, die-cut label, and marked media are instructions to acquire paper parameters by specifying a paper type, respectively. In S102, the CPU 11 accepts a cancellation instruction in addition to the mode designation.

キャンセル以外のモードが指定されたと判断した場合(S102:YES)、CPU11は、撮像データを取得して、取得した撮像データをユーザIF20に表示させる(S103)。S103は、取得処理の一例である。本形態では、CPU11は、カメラ40を起動して撮影を実行して撮像データを取得しても良いし、メモリ12等から撮影済の撮像データを取得しても良い。CPU11は、例えば、撮影するか否かを問い合わせるメッセージをユーザIF20に表示させ、ユーザの入力を受け付ける。 When it is determined that the mode other than the cancel is specified (S102: YES), the CPU 11 acquires the imaging data and causes the user IF 20 to display the acquired imaging data (S103). S103 is an example of the acquisition process. In the present embodiment, the CPU 11 may activate the camera 40 to perform shooting to acquire imaging data, or may acquire captured imaging data from the memory 12 or the like. For example, the CPU 11 causes the user IF 20 to display a message inquiring whether or not to shoot, and accepts the user's input.

撮影する指示を受け付けた場合、CPU11は、カメラ40を起動させ、ユーザIF20にライブビュー画像を表示させる。この場合、S103は、撮影処理でもあり、ライブビュー画像の画像データが、撮像データである。また、CPU11は、ライブビュー画像を表示中に撮影指示を受け付けた場合、カメラ40による撮影を行い、撮像データを取得する。この場合、CPU11は、ライブビュー画像の表示を中止して、取得した撮像データをユーザIF20に表示させる。この場合もS103は、撮影処理でもあり、撮影によって取得した撮像データが、撮像データである。一方、撮影せず、メモリ12等から撮像データを取得する指示を受け付けた場合、CPU11は、指定された撮像データを読み出して、ユーザIF20にその画像を表示させる。この場合、S103は、静止画表示処理でもある。 When the instruction to shoot is received, the CPU 11 activates the camera 40 and causes the user IF 20 to display the live view image. In this case, S103 is also a shooting process, and the image data of the live view image is the imaging data. Further, when the CPU 11 receives a shooting instruction while displaying the live view image, the CPU 11 shoots with the camera 40 and acquires the captured data. In this case, the CPU 11 stops the display of the live view image and causes the user IF 20 to display the acquired imaging data. In this case as well, S103 is also an imaging process, and the imaging data acquired by the imaging is the imaging data. On the other hand, when the instruction to acquire the image pickup data is received from the memory 12 or the like without taking a picture, the CPU 11 reads the designated image pickup data and causes the user IF 20 to display the image. In this case, S103 is also a still image display process.

なお、候補パラメータ決定アプリ43では、ユーザに、プリンタ2の外面に設けられている特定の基準部品と用紙とが、同じ画像に入っている撮像データを取得することを要請する。例えば、CPU11は、候補パラメータを決定する対象のプリンタのモデル情報を取得し、モデル情報に基づいて特定した基準部品を指定して、撮影を要請するメッセージをユーザIF20に表示させる。 The candidate parameter determination application 43 requests the user to acquire imaging data in which a specific reference component and paper provided on the outer surface of the printer 2 are contained in the same image. For example, the CPU 11 acquires the model information of the target printer for which the candidate parameters are determined, specifies the specified reference component based on the model information, and causes the user IF 20 to display a message requesting shooting.

基準部品は、同じモデルのプリンタの全てが備える部品であって、例えば、プリンタ2の排出口23の近傍に設けられるロゴ、プレート、シールであり、プリンタのモデルごとに予め決められている。プリンタ2は、基準部品として、用紙との比較用の専用の部品を有していてもよい。候補パラメータ決定アプリ43は、プリンタのモデルごとの基準部品の色や外形等の特徴情報を、プリンタのモデル情報に関連付けて予め記憶している。なお、基準部品としては、プリンタの外装の色とは異なる色の部品が選択される。 The reference parts are parts included in all printers of the same model, for example, a logo, a plate, and a sticker provided in the vicinity of the discharge port 23 of the printer 2, and are predetermined for each printer model. The printer 2 may have a dedicated component for comparison with paper as a reference component. The candidate parameter determination application 43 stores in advance feature information such as the color and outer shape of the reference component for each printer model in association with the printer model information. As the reference component, a component having a color different from the color of the exterior of the printer is selected.

CPU11は、撮影を要請するメッセージとして、例えば、プリンタ2の基準部品を具体的に示して、用紙と共に撮影する指示を、ユーザIF20にテキストやイラストで表示させる、または、音声メッセージで出力させるとよい。さらに、CPU11は、ダイカットラベルの情報を取得する場合には、1枚分が含まれる画像を取得するよう要請するメッセージを出力するとよい。 As a message requesting shooting, the CPU 11 may, for example, specifically indicate the reference component of the printer 2 and cause the user IF 20 to display an instruction to shoot together with the paper as text or an illustration, or output it as a voice message. .. Further, when acquiring the die-cut label information, the CPU 11 may output a message requesting that an image including one image be acquired.

撮像画像の例を、図4(A)に示す。図4(A)の例は、ダイカットラベル52が装着されているプリンタ2を撮影した画像50である。図4(A)の画像50に含まれるプリンタ2の基準部品は、排出口23の図中上方に設けられているロゴマーク51である。本形態のプリンタ2の外装は暗色であり、ロゴマーク51は淡色である。 An example of the captured image is shown in FIG. 4 (A). The example of FIG. 4A is an image 50 obtained by photographing the printer 2 to which the die-cut label 52 is attached. The reference component of the printer 2 included in the image 50 of FIG. 4A is the logo mark 51 provided at the upper part of the discharge port 23 in the drawing. The exterior of the printer 2 of this embodiment is dark, and the logo mark 51 is light.

CPU11は、取得した撮像データを二値化し(S104)、予め記憶している基準部品の特徴情報に基づいて、基準部品の画像と推定される候補画像の検出を試行する(S105)。S105は、候補画像特定処理の一例である。CPU11は、撮像データに基準部品が含まれていれば、メモリ12に記憶される基準部品の情報と二値化画像とに基づいて、基準部品の位置を取得できる。 The CPU 11 binarizes the acquired imaging data (S104), and attempts to detect a candidate image presumed to be an image of the reference component based on the feature information of the reference component stored in advance (S105). S105 is an example of the candidate image identification process. If the imaging data includes the reference component, the CPU 11 can acquire the position of the reference component based on the information of the reference component stored in the memory 12 and the binarized image.

CPU11は、基準部品の画像と推定される候補画像を検出できたか否かを判断する(S106)。検出できなかったと判断した場合(S106:NO)、CPU11は、試行回数が所定値より小さいか否かを判断する(S107)。所定値は、例えば、3であり、予め決まった回数である。試行回数が所定値より小さいと判断した場合(S107:YES)、CPU11は、二値化パラメータを調整して(S108)、S104に戻り、再度、二値化と基準部品の画像の検出を試行する。 The CPU 11 determines whether or not the candidate image presumed to be the image of the reference component could be detected (S106). When it is determined that the detection could not be performed (S106: NO), the CPU 11 determines whether or not the number of trials is smaller than the predetermined value (S107). The predetermined value is, for example, 3, which is a predetermined number of times. When it is determined that the number of trials is smaller than the predetermined value (S107: YES), the CPU 11 adjusts the binarization parameter (S108), returns to S104, and tries binarization and detection of the image of the reference component again. To do.

試行回数が所定値に達したと判断した場合(S107:NO)、CPU11は、基準部品の画像を検出できなかったことを示すメッセージ、または、S103と同様の撮影を要請するメッセージを、ユーザIF20に表示させる(S109)。なお、初回の試行における二値化パラメータは、候補パラメータ決定アプリ43にて予め決まった値であり、例えば、プリンタのモデルごとに異なる値であっても良い。 When it is determined that the number of trials has reached a predetermined value (S107: NO), the CPU 11 sends a message indicating that the image of the reference component could not be detected, or a message requesting photography similar to that of S103, to the user IF20. Is displayed (S109). The binarization parameter in the first trial is a value predetermined by the candidate parameter determination application 43, and may be different for each printer model, for example.

一方、基準部品の画像と推定される候補画像を検出できたと判断した場合(S106:YES)、CPU11は、取得した基準部品の画像の外郭を示す画像である部品枠を、撮像データの画像に重ねて、ユーザIF20に表示させる(S110)。S110は、ガイド表示処理の一例である。図4の例では、図4(B)に示すように、ロゴマーク51の画像の周囲を囲む部品枠511が、蛍光色等で画像50に重ねて表示される。この例では、部品枠511で囲まれたロゴマーク51の画像は、第1の候補画像の一例であり、部品枠511は、ガイド画像の一例である。基準部品の画像と推定される候補画像を検出するS106は、特定処理の一例である。 On the other hand, when it is determined that the candidate image presumed to be the image of the reference component can be detected (S106: YES), the CPU 11 uses the component frame, which is an image showing the outline of the acquired image of the reference component, as the image of the captured data. Overlapping, it is displayed on the user IF20 (S110). S110 is an example of the guide display process. In the example of FIG. 4, as shown in FIG. 4B, the component frame 511 surrounding the image of the logo mark 51 is displayed superimposed on the image 50 in a fluorescent color or the like. In this example, the image of the logo mark 51 surrounded by the component frame 511 is an example of the first candidate image, and the component frame 511 is an example of the guide image. S106, which detects a candidate image presumed to be an image of a reference component, is an example of specific processing.

次に、CPU11は、用紙の画像を検出する処理である用紙画像特定処理を実行する(S111)。用紙画像特定処理の手順について、図5のフローチャートを参照して説明する。図4(A)の例では、排出口23から引き出されている用紙の先端部が写っている。この例の用紙画像は、ダイカットラベル52の画像である。ダイカットラベルは、剥離紙の上に整形されたラベル紙が貼着されている用紙であるが、剥離紙とラベル紙との明度の差は、さほど大きくないことが多い。本形態の候補パラメータ決定アプリ43は、色濃度ヒストグラムを使用して用紙画像の特定を試行する。 Next, the CPU 11 executes a paper image identification process, which is a process of detecting a paper image (S111). The procedure of the paper image identification process will be described with reference to the flowchart of FIG. In the example of FIG. 4A, the tip of the paper pulled out from the discharge port 23 is shown. The paper image of this example is an image of the die-cut label 52. A die-cut label is a paper in which a shaped label paper is attached on a release paper, but the difference in brightness between the release paper and the label paper is often not so large. The candidate parameter determination application 43 of this embodiment attempts to identify a paper image using a color density histogram.

用紙画像特定処理では、CPU11は、まず、撮像データをグレースケール化する(S201)。そして、CPU11は、メモリ12から補正値を読み出す(S202)。補正値は、用紙画像を検出する閾値を補正する値である。読み出した補正値にて補正した閾値を用いて、CPU11は、グレースケール画像から、背景と剥離紙との境界、および、剥離紙とラベル紙との境界を判別し、ラベル紙の画像である用紙画像と推定される候補画像の検出を試行する(S203)。S203は、候補画像特定処理の一例である。なお、背景と剥離紙との境界は、二値化データに基づいて取得しても良い。 In the paper image identification process, the CPU 11 first grayscales the captured data (S201). Then, the CPU 11 reads the correction value from the memory 12 (S202). The correction value is a value for correcting the threshold value for detecting the paper image. Using the threshold corrected by the read correction value, the CPU 11 determines the boundary between the background and the release paper and the boundary between the release paper and the label paper from the gray scale image, and the paper which is the image of the label paper. Attempts to detect a candidate image presumed to be an image (S203). S203 is an example of the candidate image identification process. The boundary between the background and the release paper may be acquired based on the binarized data.

例えば、外装が暗色のプリンタ2の画像であれば、画像中で最大濃度の箇所がプリンタ2の外装、最小濃度の箇所がラベル紙と推定される。そこで、CPU11は、最大濃度から最小濃度へ至る色変化ベクトルを取得し、剥離紙とラベル紙との境界の濃度である閾値を決定する。CPU11は、例えば、最小濃度で濃度変化が平坦となる箇所をラベル紙の範囲とし、濃度変化が平坦となる一歩手前であって、濃度変化がピークとなる箇所を剥離紙とラベル紙との境界と判断し、その箇所の濃度をデフォルトの閾値とする。S203では、デフォルトの閾値にS202にて読み出した補正値を加えた値を閾値として、用紙画像を検出する。なお、背景と剥離紙との境界の検出は、二値化データに基づいて、ロゴマーク51の画像の検出時に並行して行っても良いし、行わなくても良い。 For example, if the exterior of the image is a dark-colored printer 2, it is estimated that the highest density portion in the image is the exterior of the printer 2 and the minimum density portion is the label paper. Therefore, the CPU 11 acquires a color change vector from the maximum density to the minimum density, and determines a threshold value which is the density of the boundary between the release paper and the label paper. The CPU 11 defines, for example, the range of the label paper where the density change becomes flat at the minimum density, and the boundary between the release paper and the label paper where the density change peaks just before the density change becomes flat. Is determined, and the concentration at that location is used as the default threshold. In S203, the paper image is detected with the value obtained by adding the correction value read in S202 to the default threshold value as the threshold value. The boundary between the background and the release paper may or may not be detected in parallel with the detection of the image of the logo mark 51 based on the binarized data.

そして、CPU11は、用紙画像が検出できたか否かを判断する(S204)。用紙画像が検出できなかったと判断した場合(S204:NO)、CPU11は、試行回数が所定値より小さいか否かを判断する(S205)。所定値は、例えば、3であり、予め決まった回数である。なお、所定値は、候補パラメータ決定処理のS107にて用いる所定値とは異なる数でも良い。試行回数が所定値より小さいと判断した場合(S205:YES)、CPU11は、閾値を調整して(S206)、S203に戻り、再度、用紙画像の検出を試行する。 Then, the CPU 11 determines whether or not the paper image can be detected (S204). When it is determined that the paper image could not be detected (S204: NO), the CPU 11 determines whether or not the number of trials is smaller than the predetermined value (S205). The predetermined value is, for example, 3, which is a predetermined number of times. The predetermined value may be a number different from the predetermined value used in S107 of the candidate parameter determination process. When it is determined that the number of trials is smaller than the predetermined value (S205: YES), the CPU 11 adjusts the threshold value (S206), returns to S203, and tries to detect the paper image again.

試行回数が所定値に達したと判断した場合(S205:NO)、CPU11は、用紙画像を検出できなかったことを示すメッセージ、または、S103と同様の撮影を要請するメッセージを、ユーザIF20に表示させ(S207)、用紙画像特定処理を終了し、候補パラメータ決定処理に戻る。 When it is determined that the number of trials has reached a predetermined value (S205: NO), the CPU 11 displays a message indicating that the paper image could not be detected or a message requesting shooting similar to S103 to the user IF20. (S207), the paper image identification process is terminated, and the process returns to the candidate parameter determination process.

一方、用紙画像が検出できたと判断した場合(S204:YES)、CPU11は、検出された用紙画像の外郭を示す画像である用紙枠を、撮像データの画像に重ねてユーザIF20に表示させる(S208)。S208は、ガイド表示処理の一例である。 On the other hand, when it is determined that the paper image can be detected (S204: YES), the CPU 11 superimposes the paper frame, which is an image showing the outline of the detected paper image, on the image of the captured data and displays it on the user IF20 (S208). ). S208 is an example of the guide display process.

図4の例では、図4(B)に示すように、ダイカットラベル52の画像の周囲を囲む用紙枠521が、蛍光色等で画像50に重ねて表示される。用紙枠521で囲まれたダイカットラベル52の画像は、第2の候補画像の一例であり、用紙枠521は、ガイド画像の一例である。なお、用紙は矩形であると推定されることから、CPU11は、例えば、ラベル紙に手指がかかっていたとしても、その部分を補間して矩形の用紙枠521を形成する。なお、剥離紙の外郭を示す枠も表示しても良い。 In the example of FIG. 4, as shown in FIG. 4B, the paper frame 521 surrounding the image of the die-cut label 52 is displayed superimposed on the image 50 in a fluorescent color or the like. The image of the die-cut label 52 surrounded by the paper frame 521 is an example of the second candidate image, and the paper frame 521 is an example of the guide image. Since the paper is presumed to be rectangular, the CPU 11 interpolates the portion of the label paper, for example, to form a rectangular paper frame 521. A frame showing the outer shell of the release paper may also be displayed.

なお、カメラ40を起動させてライブビュー画像を表示させている状態であれば、CPU11は、例えば、部品枠と用紙枠との両方を表示できるまで、S103と同様の撮影を要請するメッセージを出力し続け、部品枠と用紙枠との両方を表示させた場合に、適切な撮像データが取得できたことを示すメッセージ表示や音声案内を行うとよい。 If the camera 40 is activated and the live view image is displayed, the CPU 11 outputs a message requesting shooting similar to that of S103 until, for example, both the component frame and the paper frame can be displayed. When both the parts frame and the paper frame are displayed continuously, it is advisable to display a message or voice guidance indicating that appropriate imaging data has been acquired.

CPU11は、表示させた用紙枠521が適切か否かをユーザに問い合わせる表示を行い、用紙枠521の修正指示を受け付ける(S209)。S209は、ガイド修正処理の一例である。CPU11は、例えば、表示中の用紙枠521へのタッチやドラッグによる修正指示を受け付ける。用紙枠521の修正指示を受け付けたと判断した場合(S209:YES)、CPU11は、S208に戻り、用紙枠521を修正して表示する。修正指示を受け付けていないと判断した場合(S209:NO)、CPU11は、用紙枠521の確定指示を受け付けたか否かを判断する(S210)。確定指示を受け付けていないと判断した場合(S210:NO)、CPU11は、修正指示または確定指示を受け付けるまで待機する。 The CPU 11 displays asking the user whether or not the displayed paper frame 521 is appropriate, and receives a correction instruction for the paper frame 521 (S209). S209 is an example of the guide correction process. The CPU 11 receives, for example, a correction instruction by touching or dragging the displayed paper frame 521. When it is determined that the correction instruction of the paper frame 521 has been accepted (S209: YES), the CPU 11 returns to S208, corrects the paper frame 521, and displays the paper frame 521. When it is determined that the correction instruction is not accepted (S209: NO), the CPU 11 determines whether or not the confirmation instruction of the paper frame 521 has been accepted (S210). When it is determined that the confirmation instruction is not accepted (S210: NO), the CPU 11 waits until the correction instruction or the confirmation instruction is received.

用紙枠521の確定指示を受け付けたと判断した場合(S210:YES)、CPU11は、その時点で表示中の用紙枠521で囲まれる範囲を、用紙画像として決定する(S211)。S204とS211とは、特定処理の一例である。 When it is determined that the confirmation instruction of the paper frame 521 has been accepted (S210: YES), the CPU 11 determines the range surrounded by the paper frame 521 being displayed at that time as the paper image (S211). S204 and S211 are examples of specific processing.

そして、CPU11は、確定指示を受け付けた際の用紙枠521の位置から、ユーザによって修正された用紙枠521の修正量を取得し、修正量に基づく補正値をメモリ12に記憶して(S212)、用紙画像特定処理を終了し、候補パラメータ決定処理に戻る。S212は、記憶処理の一例である。補正値は、例えば、確定した用紙枠521の位置に対応する濃度値と、デフォルトの閾値の濃度値との差である。S212にて記憶された補正値は、次回の用紙画像特定処理のS202にて読み出される。 Then, the CPU 11 acquires the correction amount of the paper frame 521 corrected by the user from the position of the paper frame 521 when the confirmation instruction is received, and stores the correction value based on the correction amount in the memory 12 (S212). , The paper image identification process is finished, and the process returns to the candidate parameter determination process. S212 is an example of storage processing. The correction value is, for example, the difference between the density value corresponding to the position of the fixed paper frame 521 and the density value of the default threshold value. The correction value stored in S212 is read out in S202 of the next paper image identification process.

図3の説明に戻る。CPU11は、S111の用紙画像特定処理にて用紙画像が特定されたか否かを判断する(S112)。用紙画像特定処理のS205にて試行回数が所定値に達した場合には、用紙画像が特定されていない。また、用紙画像特定処理のS210にて確定指示の他にキャンセルの指示を受け付けるようにしても良い。その場合、キャンセルの指示を受け付けた場合には、用紙画像が特定されていない。 Returning to the description of FIG. The CPU 11 determines whether or not the paper image is specified by the paper image specifying process of S111 (S112). When the number of trials reaches a predetermined value in S205 of the paper image specifying process, the paper image is not specified. Further, the cancellation instruction may be accepted in addition to the confirmation instruction in S210 of the paper image identification process. In that case, when the cancellation instruction is accepted, the paper image is not specified.

用紙画像が特定されなかったと判断した場合(S112:NO)、または、S109の後、CPU11は、撮像データの撮り直しを行うか否かを問い合わせるメッセージを表示し、ユーザの指示を受け付ける(S113)。撮り直しを行うと判断した場合(S113:YES)、CPU11は、S103に戻って、新たな撮像データを取得する。S103にて取得した撮像データには、基準部品の画像や用紙の画像が含まれないものも含まれ、その場合にはS107やS112にてNOと判断することから、CPU11は、S113にて撮り直しを行うか否かを判断する。 When it is determined that the paper image has not been specified (S112: NO), or after S109, the CPU 11 displays a message inquiring whether or not to retake the captured data, and accepts the user's instruction (S113). .. When it is determined to perform re-shooting (S113: YES), the CPU 11 returns to S103 and acquires new imaging data. The imaging data acquired in S103 includes those that do not include the image of the reference component or the image of the paper. In that case, since it is determined as NO in S107 or S112, the CPU 11 takes a picture in S113. Decide whether to fix it.

なお、S103にて取得した画像がライブビュー画像である場合には、モバイル装置1が所定時間ごとにライブビュー画像を取得することから、再撮影の指示を受け付けていなくても再撮影を行う。その場合、再撮影されることにより基準部品の画像や用紙画像の位置が移動すれば、CPU11は、移動後の各画像の位置に合わせて部品枠511や用紙枠521を追従させて表示させる。 When the image acquired in S103 is a live view image, the mobile device 1 acquires the live view image at predetermined time intervals, so that the re-imaging is performed even if the re-imaging instruction is not received. In that case, if the position of the image of the reference component or the paper image moves due to the re-photographing, the CPU 11 causes the component frame 511 and the paper frame 521 to follow and display according to the position of each image after the movement.

一方、用紙画像が特定されたと判断した場合(S112:YES)、CPU11は、算出設定処理を実行する(S114)。算出設定処理は、用紙種や用紙サイズを取得して、候補パラメータの用紙パラメータとして設定する処理である。算出設定処理の手順について、図6のフローチャートを参照して説明する。 On the other hand, when it is determined that the paper image has been specified (S112: YES), the CPU 11 executes the calculation setting process (S114). The calculation setting process is a process of acquiring a paper type and a paper size and setting them as paper parameters of candidate parameters. The procedure of the calculation setting process will be described with reference to the flowchart of FIG.

算出設定処理では、CPU11は、プリンタ2が備える基準部品の実際のサイズを取得する(S301)。プリンタ2の基準部品のサイズは、基準部品の特徴値の一例である。プリンタ2の基準部品のサイズは、予めメモリ12に記憶されていてもよいし、サーバ等の外部装置から取得しても良い。そして、CPU11は、基準部品の画像を示す部品枠511のサイズと用紙画像を示す用紙枠521のサイズとを比較し、その比較結果とS301にて取得した実際のサイズとに基づいて、用紙サイズを取得する(S302)。S302は、算出処理の一例である。 In the calculation setting process, the CPU 11 acquires the actual size of the reference component included in the printer 2 (S301). The size of the reference component of the printer 2 is an example of the feature value of the reference component. The size of the reference component of the printer 2 may be stored in the memory 12 in advance, or may be acquired from an external device such as a server. Then, the CPU 11 compares the size of the component frame 511 showing the image of the reference component with the size of the paper frame 521 showing the paper image, and based on the comparison result and the actual size acquired in S301, the paper size. (S302). S302 is an example of the calculation process.

例えば、図4の例では、図4(C)に示すように、プリンタ2の基準部品の実際の幅に、部品枠511の幅waに対する用紙枠521の幅wbの比を乗算することで、比較対象の用紙の用紙幅が算出される。同様に用紙長さwc、剥離紙の幅wdを算出することもできる。なお、算出に際して、台形補正を行っても良い。 For example, in the example of FIG. 4, as shown in FIG. 4C, the actual width of the reference component of the printer 2 is multiplied by the ratio of the width wb of the paper frame 521 to the width wa of the component frame 511. The paper width of the paper to be compared is calculated. Similarly, the paper length wc and the release paper width wd can be calculated. In addition, keystone correction may be performed at the time of calculation.

また、CPU11は、用紙画像から用紙種を取得する(S303)。例えば図4の例のように、用紙画像の四方に剥離紙の画像が含まれる場合には、CPU11は、用紙種はダイカットラベルであると判断する。一方、用紙画像の左右等の二方向のみに剥離紙の画像が含まれる場合には、CPU11は、用紙種は長尺テープであると判断する。 Further, the CPU 11 acquires the paper type from the paper image (S303). For example, when the image of the release paper is included in all four sides of the paper image as in the example of FIG. 4, the CPU 11 determines that the paper type is a die-cut label. On the other hand, when the image of the release paper is included only in two directions such as the left and right of the paper image, the CPU 11 determines that the paper type is a long tape.

そして、CPU11は、取得した用紙種が、候補パラメータ決定処理のS102にて受け付けたモードと一致しているか否かを判断する(S304)。なお、モードとして自動が選択されている場合には、CPU11は、一致すると判断する。一致していると判断した場合(S304:YES)、CPU11は、この用紙の用紙種をS303にて取得した用紙種に決定する(S305)。S305では、用紙種が、ダイカットラベルまたは長尺テープに決定される。S305は、判定処理の一例である。 Then, the CPU 11 determines whether or not the acquired paper type matches the mode received in S102 of the candidate parameter determination process (S304). When automatic is selected as the mode, the CPU 11 determines that they match. If it is determined that they match (S304: YES), the CPU 11 determines the paper type of this paper to the paper type acquired in S303 (S305). In S305, the paper type is determined to be a die-cut label or a long tape. S305 is an example of the determination process.

一方、S303にて取得された用紙種が、ユーザの指定したモードと一致していないと判断した場合(S304:NO)、CPU11は、裏面の判定を行うか否かを判断する(S306)。例えば、マークが用紙の裏面に設けられているマーク付きメディアでは、CPU11は、S303にて、用紙の表面の画像に基づいて長尺テープであると判断する。ユーザの指定したモードがマーク付きメディアであれば、CPU11は、S306にて、裏面の判定を行うと判断する。マーク付きメディアを指定したモードの指定は、用紙種入力処理の一例である。 On the other hand, when it is determined that the paper type acquired in S303 does not match the mode specified by the user (S304: NO), the CPU 11 determines whether or not to determine the back surface (S306). For example, in the marked media in which the mark is provided on the back surface of the paper, the CPU 11 determines in S303 that the tape is a long tape based on the image on the front surface of the paper. If the mode specified by the user is the marked media, the CPU 11 determines in S306 that the back surface is determined. Specifying the mode in which the marked media is specified is an example of the paper type input process.

裏面の判定を行うと判断した場合(S306:YES)、CPU11は、用紙の裏面を撮影した撮像データを取得する(S307)。S307は、裏面取得処理の一例である。例えば、CPU11は、裏面を撮影するように指示するメッセージを表示して、カメラ40を起動させ、ライブビュー画像を取得する。あるいは、CPU11は、ユーザの指示に基づいて、カメラ40での撮影を行うか、メモリ12等から読み出すことで、裏面を撮影した撮像データを取得する。 When it is determined that the back surface is determined (S306: YES), the CPU 11 acquires the imaging data obtained by photographing the back surface of the paper (S307). S307 is an example of the back surface acquisition process. For example, the CPU 11 displays a message instructing to shoot the back surface, activates the camera 40, and acquires a live view image. Alternatively, the CPU 11 acquires the imaging data obtained by photographing the back surface by taking a picture with the camera 40 or reading it from the memory 12 or the like based on the instruction of the user.

マーク付きメディアの裏面を撮影した撮像画像の例を、図7(A)に示す。ユーザは、プリンタ2の排出口23から引き出されている用紙の先端部の裏面をカメラ40に向けることで、モバイル装置1に裏面の撮像データを取得させる。図7(A)の例では、用紙の裏面53を撮影した撮像画像60には、4箇所のマーク画像531が含まれている。本形態では、マーク付きメディアのマークは、淡色の剥離紙に濃色で設けられている。 An example of a captured image obtained by photographing the back surface of the marked media is shown in FIG. 7 (A). The user causes the mobile device 1 to acquire the imaging data on the back surface by pointing the back surface of the front end portion of the paper drawn from the ejection port 23 of the printer 2 toward the camera 40. In the example of FIG. 7A, the captured image 60 obtained by photographing the back surface 53 of the paper includes four mark images 531. In this embodiment, the mark of the marked media is provided in a dark color on a light-colored release paper.

そして、CPU11は、裏面の撮像データから用紙の画像に含まれるマークの検出を試行する(S308)。S308は、裏面特定処理の一例である。CPU11は、例えば、裏面の撮像データを二値化して、二値化データからマークの位置を検出する。あるいは、CPU11は、色濃度ヒストグラムに基づく判定を行っても良い。 Then, the CPU 11 tries to detect the mark included in the image of the paper from the imaged data on the back surface (S308). S308 is an example of the back surface specifying process. The CPU 11 binarizes the imaged data on the back surface, for example, and detects the position of the mark from the binarized data. Alternatively, the CPU 11 may make a determination based on the color density histogram.

CPU11は、マークの検出に成功したか否かを判断する(S309)。成功したと判断した場合(S309:YES)、CPU11は、用紙種をマーク付きメディアであると決定する(S310)。さらに、CPU11は、裏面の撮像データ中のマーク間の距離と、表面の撮像データから算出される剥離紙の幅とに基づいて、マーク間の距離を算出する(S311)。CPU11は、例えば、図7(B)に示すように、用紙の長さ方向に並ぶ2箇所のマークの位置を取得し、表面の撮像画像から取得した剥離紙の幅wdに基づいて、マーク間の距離weを取得する。 The CPU 11 determines whether or not the mark has been successfully detected (S309). If it is determined to be successful (S309: YES), the CPU 11 determines that the paper type is the marked media (S310). Further, the CPU 11 calculates the distance between the marks based on the distance between the marks in the imaging data on the back surface and the width of the release paper calculated from the imaging data on the front surface (S311). For example, as shown in FIG. 7B, the CPU 11 acquires the positions of two marks arranged in the length direction of the paper, and based on the width wd of the release paper acquired from the captured image on the surface, between the marks. To get the distance we.

一方、マークを検出できなかったと判断した場合(S309:NO)、CPU11は、長尺テープであると決定する(S312)。なお、マークの検出に成功しなかった場合、候補パラメータ決定処理のS106〜S108で行ったように、所定回数以内の二値化パラメータの調整を行っても良いし、ユーザの指示に基づいて、撮像データの撮り直しを行っても良い。 On the other hand, when it is determined that the mark cannot be detected (S309: NO), the CPU 11 determines that the tape is a long tape (S312). If the mark detection is not successful, the binarization parameter may be adjusted within a predetermined number of times as performed in S106 to S108 of the candidate parameter determination process, or based on the user's instruction. The captured data may be retaken.

S305、S311、S312のいずれかの後、CPU11は、決定した用紙種であって算出した用紙サイズに近いサイズの用紙の用紙パラメータを、確認リストから抽出する(S313)。近いサイズとは、例えば、算出した用紙サイズを中心に±1mmの範囲である。さらに、CPU11は、抽出した用紙パラメータの一覧をユーザIF20に表示させる(S314)。 After any of S305, S311 and S312, the CPU 11 extracts from the confirmation list the paper parameters of the determined paper type and the size close to the calculated paper size (S313). The close size is, for example, a range of ± 1 mm centered on the calculated paper size. Further, the CPU 11 causes the user IF 20 to display a list of the extracted paper parameters (S314).

そして、CPU11は、一覧表示させた用紙パラメータからユーザの選択を受け付け、選択または新規設定の指示を受け付けたか否かを判断する(S315)。一覧表示させた用紙パラメータからユーザの選択を受け付けたと判断した場合(S315:YES)、CPU11は、選択された用紙パラメータを候補パラメータの用紙パラメータとして用いることを決定する(S316)。S316にて決定される用紙パラメータは、特性パラメータの一例である。なお、CPU11は、決定前に、選択された用紙パラメータに対する微調整を受け付けても良く、微調整後の用紙パラメータを候補パラメータとしても良い。 Then, the CPU 11 accepts the user's selection from the paper parameters displayed in the list, and determines whether or not the selection or new setting instruction is accepted (S315). When it is determined from the list-displayed paper parameters that the user's selection has been accepted (S315: YES), the CPU 11 determines to use the selected paper parameters as the paper parameters of the candidate parameters (S316). The paper parameter determined in S316 is an example of a characteristic parameter. The CPU 11 may accept fine adjustments to the selected paper parameters before the determination, and the paper parameters after the fine adjustment may be used as candidate parameters.

また、今回取得した用紙の情報に近い用紙パラメータが確認リストに含まれていない場合、CPU11は、S315にて、今回の用紙の情報をユーザIF20に表示させ、新規設定として設定する指示も受け付ける。新規設定の指示を受け付けたと判断した場合(S315:YES)、CPU11は、今回の用紙の情報に基づく用紙パラメータを生成して、候補パラメータの用紙パラメータとして用いることを決定する(S316)。なお、CPU11は、今回の用紙の情報に対する微調整の指示を受け付けても良い。 Further, when the confirmation list does not include the paper parameters close to the paper information acquired this time, the CPU 11 displays the information of the paper this time on the user IF20 in S315, and also accepts an instruction to set as a new setting. When it is determined that the new setting instruction has been accepted (S315: YES), the CPU 11 determines to generate a paper parameter based on the information of the current paper and use it as the paper parameter of the candidate parameter (S316). The CPU 11 may accept an instruction for fine adjustment with respect to the information on the paper this time.

用紙パラメータを決定した場合、CPU11は、プリンタパラメータ決定処理を実行する(S317)。プリンタパラメータ決定処理は、今回候補パラメータとして決定した用紙パラメータの用紙への印刷を実行する際に、印刷指示データに含ませる各種のプリンタパラメータを決定する処理である。 When the paper parameters are determined, the CPU 11 executes the printer parameter determination process (S317). The printer parameter determination process is a process of determining various printer parameters to be included in the print instruction data when printing on paper with the paper parameters determined as candidate parameters this time.

プリンタパラメータ決定処理の手順について、図8のフローチャートを参照して説明する。プリンタパラメータ決定処理では、CPU11は、候補パラメータ決定処理のS103にて取得した表面の撮像データに含まれる基準部品の画像の色情報を取得する(S401)。また、CPU11は、同じ撮像データから用紙画像の色情報を取得する(S402)。S402では、CPU11は、表面の撮像データに含まれる用紙画像から、剥離紙の色とラベル紙の色とを取得する。 The procedure of the printer parameter determination process will be described with reference to the flowchart of FIG. In the printer parameter determination process, the CPU 11 acquires the color information of the image of the reference component included in the surface imaging data acquired in S103 of the candidate parameter determination process (S401). Further, the CPU 11 acquires the color information of the paper image from the same imaging data (S402). In S402, the CPU 11 acquires the color of the release paper and the color of the label paper from the paper image included in the image capture data on the surface.

CPU11は、ラベル紙の色に基づいて、エネルギーランクを決定する(S403)。例えば、ラベル紙の色が標準的な用紙の色に比較して暗い場合、ラベル紙がざらつきの大きい素材である可能性が高いことから、CPU11は、エネルギーランクを高くする。さらに、剥離紙の色とラベル紙の色との差に基づいて、CPU11は、透過センサ25のセンサ感度を決定する(S404)。例えば、剥離紙の色とラベル紙の色とが近い場合、CPU11は、透過センサ25のセンサ感度を高くする。 The CPU 11 determines the energy rank based on the color of the label paper (S403). For example, when the color of the label paper is darker than the color of the standard paper, the label paper is likely to be a material having a large roughness, so that the CPU 11 raises the energy rank. Further, the CPU 11 determines the sensor sensitivity of the transmission sensor 25 based on the difference between the color of the release paper and the color of the label paper (S404). For example, when the color of the release paper and the color of the label paper are close to each other, the CPU 11 increases the sensor sensitivity of the transmission sensor 25.

そして、CPU11は、用紙種をマーク付きメディアと決定したか否かを判断する(S405)。マーク付きメディアと決定したと判断した場合(S405:YES)、CPU11は、裏面の撮像データに基づいて、マーク画像の色情報を取得する(S406)。そして、剥離紙の色とマーク画像の色との差に基づいて、CPU11は、反射センサ26のセンサ感度を決定する(S407)。例えば、剥離紙の色とマーク画像の色とが近い場合、CPU11は、反射センサ26のセンサ感度を高くする。 Then, the CPU 11 determines whether or not the paper type is determined to be the marked media (S405). When it is determined that the media is marked (S405: YES), the CPU 11 acquires the color information of the marked image based on the imaged data on the back surface (S406). Then, the CPU 11 determines the sensor sensitivity of the reflection sensor 26 based on the difference between the color of the release paper and the color of the mark image (S407). For example, when the color of the release paper and the color of the mark image are close to each other, the CPU 11 increases the sensor sensitivity of the reflection sensor 26.

S407の後、または、裏面の撮像データが無いと判断した場合(S405:NO)、CPU11は、決定した各プリンタパラメータを基準部品の画像の色情報に基づいて補正し(S408)、補正後の値をプリンタパラメータとして決定する。S408にて決定される各プリンタパラメータは、特性パラメータの一例である。 After S407 or when it is determined that there is no image pickup data on the back surface (S405: NO), the CPU 11 corrects each determined printer parameter based on the color information of the image of the reference component (S408), and after the correction. Determine the value as a printer parameter. Each printer parameter determined in S408 is an example of a characteristic parameter.

例えば、CPU11は、メモリに記憶される基準部品の情報に基づく基準部品の本来の色と、撮像データに含まれる基準部品の画像の色とを比較し、色補正の補正値を取得する。基準部品の本来の色は、基準部品の特徴値の一例である。CPU11は、例えば、本来の色に対して画像の色が暗い場合、画像の色を本来の色に変更する明るさ補正のための補正値を取得する。そして、CPU11は、取得した補正値に基づいて、センサ感度やエネルギーランクを補正する。なお、各プリンタパラメータを決定する前に、基準部品の画像に基づく補正値を取得して撮像データを補正し、補正後の撮像データを用いて各プリンタパラメータを決定しても良い。 For example, the CPU 11 compares the original color of the reference component based on the information of the reference component stored in the memory with the color of the image of the reference component included in the imaging data, and acquires the correction value of the color correction. The original color of the reference component is an example of the feature value of the reference component. For example, when the color of the image is darker than the original color, the CPU 11 acquires a correction value for brightness correction that changes the color of the image to the original color. Then, the CPU 11 corrects the sensor sensitivity and the energy rank based on the acquired correction value. Before determining each printer parameter, a correction value based on the image of the reference component may be acquired to correct the imaging data, and each printer parameter may be determined using the corrected imaging data.

S408の後、CPU11は、プリンタパラメータ決定処理を終了して、算出設定処理に戻る。算出設定処理では、S317のプリンタパラメータ決定処理の後、または、裏面の判定は行わないと判断した場合(S306:NO)、または、選択も新規設定もされずにキャンセルされたと判断した場合(S315:NO)、CPU11は、算出設定処理を終了して、候補パラメータ決定処理に戻る。 After S408, the CPU 11 ends the printer parameter determination process and returns to the calculation setting process. In the calculation setting process, after the printer parameter determination process of S317, when it is determined that the back side is not determined (S306: NO), or when it is determined that the printer is canceled without selection or new setting (S315). : NO), the CPU 11 ends the calculation setting process and returns to the candidate parameter determination process.

図3の候補パラメータ決定処理の説明に戻る。候補パラメータ決定処理では、S114の算出設定処理の後、決定した候補パラメータを所定の保存ファイルに登録する(S115)。保存ファイルに保存された候補パラメータが印刷アプリ42にて印刷パラメータとして使用されることから、S115は、設定処理の一例である。S115の後、または、モードの指定を受け付けずにキャンセルされたと判断した場合(S102:NO)、または、再撮影の指示を受け付けなかったと判断した場合(S113:NO)、CPU11は、候補パラメータ決定処理を終了する。 Returning to the description of the candidate parameter determination process of FIG. In the candidate parameter determination process, after the calculation setting process of S114, the determined candidate parameter is registered in a predetermined save file (S115). Since the candidate parameters saved in the save file are used as print parameters in the print application 42, S115 is an example of the setting process. After S115, when it is determined that the mode is canceled without accepting the designation (S102: NO), or when it is determined that the re-shooting instruction is not accepted (S113: NO), the CPU 11 determines the candidate parameters. End the process.

以上、詳細に説明したように、本明細書に記載の候補パラメータ決定アプリ43を実行することで、モバイル装置1は、基準部品の画像と用紙の画像との比較結果に基づいて、プリンタ2での印刷に用いる印刷パラメータの候補パラメータを決定する。ユーザは、例えば、カメラ40によって撮影した撮像データを入力することで、簡単に各情報を候補パラメータとして決定できる。すなわち、印刷パラメータの設定の際、その設定に必要な計測機器等を用意する必要はなく、ユーザの手間が少ない。 As described in detail above, by executing the candidate parameter determination application 43 described in the present specification, the mobile device 1 is the printer 2 based on the comparison result between the image of the reference component and the image of the paper. Determine the candidate parameters of the print parameters used for printing. The user can easily determine each information as a candidate parameter by inputting the imaging data captured by the camera 40, for example. That is, when setting the print parameters, it is not necessary to prepare the measuring equipment or the like necessary for the setting, which saves the user time and effort.

さらに、本形態では、基準部品のサイズに基づいて用紙サイズを算出するので、用紙サイズを検出する機能を備えないプリンタ2であっても、容易に用紙パラメータを設定できる。また、用紙をフィードすることなく用紙パラメータを取得するので、用紙の無駄を低減できる。また、本形態では、マーク付きメディアが指定されている場合、裏面の撮像データに基づいて、マークの画像を取得するので、マーク間の距離も算出できる。 Further, in the present embodiment, since the paper size is calculated based on the size of the reference component, the paper parameters can be easily set even in the printer 2 which does not have the function of detecting the paper size. Moreover, since the paper parameters are acquired without feeding the paper, waste of the paper can be reduced. Further, in the present embodiment, when the marked media is specified, the image of the mark is acquired based on the imaged data on the back surface, so that the distance between the marks can also be calculated.

さらに、本形態では、撮像データの画像に重ねて部品枠511や用紙枠521を表示するので、プログラムによって正しく基準部品や用紙が認識されているか否かをユーザが確認できる。さらに、用紙枠521の修正を受け付けるので、より正確に基準部品や用紙をプログラムが認識できる。なお、部品枠の修正も受け付けても良い。また、裏面の撮像データにも取得したマーク画像の位置を示すガイド表示を行っても良い。 Further, in the present embodiment, since the component frame 511 and the paper frame 521 are displayed on the image of the captured data, the user can confirm whether or not the reference component or the paper is correctly recognized by the program. Further, since the correction of the paper frame 521 is accepted, the program can recognize the reference component and the paper more accurately. It should be noted that the parts frame may be modified. In addition, a guide display indicating the position of the acquired mark image may be displayed on the imaged data on the back surface.

さらに、本形態では、用紙枠521が修正された場合、修正後の閾値とデフォルトの閾値との差を補正値として記憶し、次回の用紙画像の検出に使用する。デフォルトの閾値は、標準的なアルゴリズムによって検出された境界位置であり、ユーザによって修正された補正値によって補正することで、次回の検出では、より正確な検出となる可能性が高い。なお、本形態では、前回記憶した補正値をそのまま次回に使用しているが、複数回の補正値を記憶して平均値や中央値を利用しても良いし、補正値を教師データとして機械学習させるモデルを構築してもよい。また、基準部品の画像の検出時にも補正値を使用しても良い。 Further, in the present embodiment, when the paper frame 521 is modified, the difference between the modified threshold value and the default threshold value is stored as a correction value and used for the next detection of the paper image. The default threshold is the boundary position detected by a standard algorithm, and correction by a correction value corrected by the user is likely to result in more accurate detection in the next detection. In this embodiment, the correction value stored last time is used as it is next time, but the correction value may be stored a plurality of times and the average value or the median value may be used, or the correction value may be used as teacher data by the machine. You may build a model to be trained. Further, the correction value may be used when detecting the image of the reference component.

さらに、本形態では、用紙パラメータに加えて、撮像データに基づいてセンサ感度やエネルギーランク等のプリンタパラメータの値も取得し、取得した値を候補パラメータとして決定するので、決定した候補パラメータを印刷パラメータとして用いて印刷を実行すれば、より適切な印刷となる可能性が高い。さらに、基準部品の画像の色情報に基づいて、各種のプリンタパラメータを補正するので、撮像環境によるプリンタパラメータのばらつきを抑制できる。 Further, in this embodiment, in addition to the paper parameters, the values of the printer parameters such as the sensor sensitivity and the energy rank are acquired based on the imaging data, and the acquired values are determined as the candidate parameters. Therefore, the determined candidate parameters are used as the print parameters. If printing is performed using the above, there is a high possibility that the printing will be more appropriate. Further, since various printer parameters are corrected based on the color information of the image of the reference component, it is possible to suppress the variation of the printer parameters depending on the imaging environment.

なお、本実施の形態は単なる例示にすぎず、本発明を何ら限定するものではない。したがって本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、PCやプリンタの台数は、図示の例に限らない。また、プリンタ2の印刷方式は、感熱方式に限らず、例えば、熱転写方式、インクジェット方式、電子写真方式でもよい。また、印刷媒体は、ラベル紙に限らず、例えば、単なるロール紙でもよい。 It should be noted that the present embodiment is merely an example and does not limit the present invention in any way. Therefore, as a matter of course, the present invention can be improved and modified in various ways without departing from the gist thereof. For example, the number of PCs and printers is not limited to the illustrated example. The printing method of the printer 2 is not limited to the thermal method, and may be, for example, a thermal transfer method, an inkjet method, or an electrophotographic method. Further, the print medium is not limited to the label paper, and may be, for example, a simple roll paper.

また、本形態では、モバイル装置1が印刷アプリ42と候補パラメータ決定アプリ43とを備えるとしたが、これに限らない。例えば、印刷アプリ42と候補パラメータ決定アプリ43とは、別の装置にインストールされていても良い。例えば、モバイル装置1が候補パラメータ決定アプリ43を備え、パーソナルコンピュータ等のモバイル装置1とは別の装置が印刷アプリ42を備えるとしても良い。その場合、モバイル装置1は、決定した候補パラメータを、別の装置の印刷アプリ42にて利用可能な領域に保存する。 Further, in the present embodiment, the mobile device 1 includes the print application 42 and the candidate parameter determination application 43, but the present invention is not limited to this. For example, the print application 42 and the candidate parameter determination application 43 may be installed in different devices. For example, the mobile device 1 may include the candidate parameter determination application 43, and a device other than the mobile device 1 such as a personal computer may include the printing application 42. In that case, the mobile device 1 stores the determined candidate parameter in an area that can be used by the print application 42 of another device.

また、プリンタ2が印刷アプリ42と同等の機能を備えていても良い。モバイル装置1は、決定した候補パラメータをプリンタ2に登録しても良い。さらに、プリンタ2が候補パラメータ決定アプリ43と同等の機能を有していても良い。プリンタ2は、候補パラメータ決定処理を実行して候補パラメータを決定し、自装置に登録しても良い。これらの場合、プリンタ2は、画像データの印刷に際して、プリンタ2に登録されている候補パラメータを選択し、印刷パラメータとして使用できる。なお、プリンタ2は、内蔵のフラッシュメモリ、外付けのSDカード等のメモリに記憶された画像データの印刷時に候補パラメータを使用できる。 Further, the printer 2 may have the same function as the print application 42. The mobile device 1 may register the determined candidate parameter in the printer 2. Further, the printer 2 may have the same function as the candidate parameter determination application 43. The printer 2 may execute the candidate parameter determination process to determine the candidate parameter and register it in its own device. In these cases, the printer 2 can select the candidate parameters registered in the printer 2 and use them as print parameters when printing the image data. The printer 2 can use candidate parameters when printing image data stored in a memory such as a built-in flash memory or an external SD card.

また、本形態では、モバイル装置1は、決定した候補パラメータを所定の領域に記憶される保存ファイルに登録するとしたが、これに限らない。例えば、モバイル装置1は、候補パラメータを記述した保存ファイルを作成してエクスポートしても良い。印刷アプリ42は、エクスポートされた保存ファイルをインポートして印刷パラメータの候補として使用しても良い。あるいは、エクスポートされた保存ファイルの内容を、別の手段によって印刷アプリ42の保存ファイル等に書き込むことによって、候補パラメータを印刷アプリ42に登録しても良い。 Further, in the present embodiment, the mobile device 1 registers the determined candidate parameters in a storage file stored in a predetermined area, but the present invention is not limited to this. For example, the mobile device 1 may create and export a save file in which candidate parameters are described. The print application 42 may import the exported saved file and use it as a candidate for print parameters. Alternatively, the candidate parameters may be registered in the print application 42 by writing the contents of the exported save file to the save file or the like of the print application 42 by another means.

また、例えば、本形態では、モバイル装置1は、用紙パラメータやプリンタパラメータの全てを設定するとしたが、これらの一部のみを設定しても良い。例えば、用紙パラメータのみでも良いし、プリンタパラメータのみでも良いし、用紙パラメータのうちの用紙サイズのみや用紙幅のみでも良い。 Further, for example, in the present embodiment, the mobile device 1 is set to set all the paper parameters and the printer parameters, but only a part of these may be set. For example, only the paper parameters may be used, only the printer parameters may be used, or only the paper size or the paper width among the paper parameters may be used.

また、本形態では、基準部品の画像の検出を二値化データに基づいて行い、用紙画像の検出をグレースケールデータに基づいて行うとしたが、これに限らない。例えば、逆でもよいし、両方とも二値化データに基づいて行っても良いし、両方ともグレースケールデータに基づいて行っても良い。 Further, in the present embodiment, the image of the reference component is detected based on the binarized data, and the paper image is detected based on the grayscale data, but the present invention is not limited to this. For example, the reverse may be performed, both may be performed based on binarized data, or both may be performed based on grayscale data.

また、モードの指定は受け付けなくても良い。例えば、候補パラメータ決定アプリを起動すると自動モードでの検出を行うとしても良い。あるいは、自動モードが無く、用紙種はモードの指定によって決定されるとしても良い。また、例えば、確認リストの生成は、一覧表示を行うまでに実行すればよい。また、本形態では、検出の試行を所定値以内の回数繰り返すとしたが、リトライは行わなくても良い。また、基準部品の画像の検出と用紙画像の検出との順序は逆でもよいし、並行して行っても良い。 Also, the mode specification does not have to be accepted. For example, when the candidate parameter determination application is started, detection may be performed in the automatic mode. Alternatively, there may be no automatic mode, and the paper type may be determined by specifying the mode. Further, for example, the confirmation list may be generated before the list is displayed. Further, in the present embodiment, the detection trial is repeated a number of times within a predetermined value, but the retry may not be performed. Further, the order of detecting the image of the reference component and detecting the paper image may be reversed or may be performed in parallel.

また、本形態では、基準部品の画像の色情報に基づいて、各種のプリンタパラメータを補正するとしたが、補正しなくても良い。つまり、各種のプリンタパラメータを用紙画像のみから設定しても良い。 Further, in the present embodiment, various printer parameters are corrected based on the color information of the image of the reference component, but it is not necessary to correct them. That is, various printer parameters may be set only from the paper image.

また、本形態では、候補パラメータ決定アプリ43が候補パラメータを保存ファイルに登録し、印刷アプリ42が保存ファイルに登録されている候補パラメータから選択して印刷パラメータとして設定するとしたが、これに限らない。例えば、印刷アプリ42が、印刷指示データの作成時に候補パラメータ決定アプリ43を起動しても良い。その場合、候補パラメータ決定アプリ43が候補パラメータを決定して出力し、印刷アプリ42は、出力された候補パラメータをそのまま印刷パラメータとして設定する、あるいは、出力された候補パラメータを編集して印刷パラメータとして設定する、とすればよい。 Further, in the present embodiment, the candidate parameter determination application 43 registers the candidate parameters in the save file, and the print application 42 selects from the candidate parameters registered in the save file and sets them as print parameters, but the present invention is not limited to this. .. For example, the print application 42 may start the candidate parameter determination application 43 when creating the print instruction data. In that case, the candidate parameter determination application 43 determines the candidate parameter and outputs it, and the print application 42 sets the output candidate parameter as it is as a print parameter, or edits the output candidate parameter and uses it as a print parameter. You can set it.

また、モバイル装置1は、印刷アプリ42と候補パラメータ決定アプリ43との両方の機能を有するアプリを備えていても良い。その場合、そのアプリの機能によって、モバイル装置1は、本形態の候補パラメータ決定アプリ43と同様に候補パラメータを決定し、決定された候補パラメータを用いて、本形態の印刷アプリ42と同様に印刷を実行しても良い。また、モバイル装置1は、そのアプリによって決定された候補パラメータを複数保存し、保存されている候補パラメータのうちのいずれかを選択して印刷に用いても良いし、選択した候補パラメータを編集して印刷に用いても良い。 Further, the mobile device 1 may include an application having both functions of the print application 42 and the candidate parameter determination application 43. In that case, the mobile device 1 determines the candidate parameters in the same manner as the candidate parameter determination application 43 of the present embodiment by the function of the application, and prints using the determined candidate parameters in the same manner as the printing application 42 of the present embodiment. May be executed. Further, the mobile device 1 may save a plurality of candidate parameters determined by the application, select one of the saved candidate parameters and use it for printing, or edit the selected candidate parameters. May be used for printing.

また、実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 Further, in any flowchart disclosed in the embodiment, the plurality of processes in the arbitrary plurality of steps can be arbitrarily changed in the execution order or executed in parallel as long as the processing contents do not conflict with each other.

また、実施の形態に開示されている処理は、単一のCPU、複数のCPU、ASICなどのハードウェア、またはそれらの組合せで実行されてもよい。また、実施の形態に開示されている処理は、その処理を実行するためのプログラムを記録した記録媒体、または方法等の種々の態様で実現することができる。 Further, the process disclosed in the embodiment may be executed by a single CPU, a plurality of CPUs, hardware such as an ASIC, or a combination thereof. In addition, the process disclosed in the embodiment can be realized in various aspects such as a recording medium or a method in which a program for executing the process is recorded.

1 モバイル装置
2 プリンタ
11 CPU
12 メモリ
20 ユーザIF
40 カメラ
43 候補パラメータ決定アプリ
1 Mobile device 2 Printer 11 CPU
12 memory 20 user IF
40 camera 43 candidate parameter determination app

Claims (13)

情報処理装置のコンピュータによって実行可能であり、プリンタでの印刷に用いる特性パラメータの設定を行うプログラムであって、
前記コンピュータに、
撮影された画像を示す撮像データを取得する取得処理と、
前記取得処理にて取得した前記撮像データから、前記プリンタが備える基準部品の画像と、前記プリンタに装着された用紙の画像とを特定する特定処理と、
前記特定処理にて特定した前記基準部品の画像と前記用紙の画像とを比較し、その比較結果と、前記基準部品の特徴値と、に基づいて前記特性パラメータを算出する算出処理と、
前記算出処理にて算出した前記特性パラメータを、前記プリンタでの印刷に用いる前記特性パラメータとして設定する設定処理と、
を実行させる、
ことを特徴とするプログラム。
A program that can be executed by the computer of the information processing device and sets characteristic parameters used for printing with a printer.
On the computer
The acquisition process to acquire the imaging data indicating the captured image, and
Specific processing for identifying an image of a reference component included in the printer and an image of paper mounted on the printer from the imaging data acquired in the acquisition process.
A calculation process in which the image of the reference component specified in the specific process is compared with the image of the paper, and the characteristic parameter is calculated based on the comparison result and the feature value of the reference component.
A setting process for setting the characteristic parameter calculated in the calculation process as the characteristic parameter used for printing with the printer, and a setting process.
To execute,
A program characterized by that.
請求項1に記載するプログラムにおいて、
前記算出処理では、
前記基準部品の画像のサイズと前記用紙の画像のサイズとを比較し、その比較結果と前記基準部品の特徴値としての前記基準部品のサイズとに基づいて、前記特性パラメータとして用紙の幅を算出する、
ことを特徴とするプログラム。
In the program according to claim 1,
In the calculation process,
The size of the image of the reference component is compared with the size of the image of the paper, and the width of the paper is calculated as the characteristic parameter based on the comparison result and the size of the reference component as a feature value of the reference component. To do,
A program characterized by that.
請求項2に記載するプログラムにおいて、
前記コンピュータに、
前記用紙の画像に基づいて用紙種を判定する判定処理を実行させ、
前記算出処理では、
前記判定処理にて用紙種が用紙サイズのパラメータとして幅と長さとを有する用紙種であった場合、前記用紙の画像に基づいて、前記特性パラメータとして用紙の幅と長さとを算出する、
ことを特徴とするプログラム。
In the program described in claim 2,
On the computer
A determination process for determining the paper type based on the image of the paper is executed.
In the calculation process,
When the paper type has width and length as the parameters of the paper size in the determination process, the width and length of the paper are calculated as the characteristic parameters based on the image of the paper.
A program characterized by that.
請求項1に記載するプログラムにおいて、
前記算出処理では、
前記基準部品の画像の色と前記用紙の画像の色とを比較し、その比較結果と前記基準部品の特徴値としての前記基準部品の色とに基づいて、前記特性パラメータとして前記プリンタでの用紙の検出に用いるセンサの感度の補正値を算出する、
ことを特徴とするプログラム。
In the program according to claim 1,
In the calculation process,
The color of the image of the reference component is compared with the color of the image of the paper, and based on the comparison result and the color of the reference component as a feature value of the reference component, the paper in the printer is used as the characteristic parameter. Calculate the correction value of the sensitivity of the sensor used for the detection of
A program characterized by that.
請求項1に記載するプログラムにおいて、
前記算出処理では、
前記基準部品の画像の色と前記用紙の画像の色とを比較し、その比較結果と前記基準部品の特徴値としての前記基準部品の色とに基づいて、前記特性パラメータとして前記プリンタでの印刷に用いる印字ヘッドのエネルギーランクの補正値を算出して取得する、
ことを特徴とするプログラム。
In the program according to claim 1,
In the calculation process,
The color of the image of the reference component is compared with the color of the image of the paper, and based on the comparison result and the color of the reference component as a feature value of the reference component, printing with the printer is performed as the characteristic parameter. Calculate and obtain the correction value of the energy rank of the print head used for
A program characterized by that.
請求項1から請求項5のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
比較対象の用紙の用紙種が、用紙の裏面に前記特性パラメータの取得に用いる画像が含まれる特定の用紙種であるか否かの入力を受け付ける用紙種入力処理と、
前記用紙種入力処理にて前記特定の用紙種であることが入力された場合、前記プリンタに装着された前記用紙の裏面が撮影された撮像データの入力を要求して取得する裏面取得処理と、
前記裏面取得処理にて取得した前記撮像データから、前記用紙の裏面の画像を特定する裏面特定処理と、を実行させ、
前記算出処理では、
前記特定処理にて特定した前記基準部品の画像および前記用紙の画像と、前記裏面特定処理にて特定した前記用紙の裏面の画像とを比較し、その比較結果と前記基準部品の特徴値とに基づいて、前記特性パラメータを取得する、
ことを特徴とするプログラム。
In the program according to any one of claims 1 to 5.
On the computer
A paper type input process that accepts an input as to whether or not the paper type of the paper to be compared is a specific paper type in which the image used for acquiring the characteristic parameter is included on the back surface of the paper.
When it is input that the specific paper type is used in the paper type input process, the back side acquisition process of requesting and acquiring the imaging data obtained by photographing the back side of the paper mounted on the printer, and the back side acquisition process.
From the imaging data acquired in the back surface acquisition process, a back surface identification process for specifying an image on the back surface of the paper is executed.
In the calculation process,
The image of the reference component and the image of the paper specified in the specific process are compared with the image of the back surface of the paper specified in the back surface identification process, and the comparison result and the feature value of the reference component are obtained. Based on, the characteristic parameter is acquired.
A program characterized by that.
請求項1から請求項6のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
前記特定処理を実行する前に、前記取得処理にて取得した前記撮像データから、前記基準部品の候補の画像である第1の候補画像と、前記用紙の候補の画像である第2の候補画像とを特定する候補画像特定処理と、
前記候補画像特定処理にて少なくとも一方の候補画像を特定した場合、特定した前記候補画像の外郭を示すガイド画像を、前記撮像データの画像に重ねて前記情報処理装置の表示デバイスに表示させるガイド表示処理と、を実行させ、
前記特定処理では、
前記ガイド画像によって示される前記第1の候補画像を前記基準部品の画像に特定し、前記ガイド画像によって示される前記第2の候補画像を前記用紙の画像に特定する、
ことを特徴とするプログラム。
In the program according to any one of claims 1 to 6.
On the computer
From the imaging data acquired in the acquisition process before executing the specific process, a first candidate image which is a candidate image of the reference component and a second candidate image which is a candidate image of the paper. Candidate image identification processing to identify and
When at least one candidate image is specified by the candidate image identification process, a guide display indicating the outline of the specified candidate image is superimposed on the image of the captured data and displayed on the display device of the information processing apparatus. Process and execute,
In the specific process,
The first candidate image shown by the guide image is specified as an image of the reference component, and the second candidate image shown by the guide image is specified as an image of the paper.
A program characterized by that.
請求項7に記載するプログラムにおいて、
前記コンピュータに、
前記情報処理装置のカメラを起動し、前記カメラによって撮影されて連続的に変化する画像を前記表示デバイスに表示させる撮影処理を実行させ、
前記ガイド表示処理では、
前記撮影処理にて表示される前記連続的に変化する画像に、前記ガイド画像を追従させる、
ことを特徴とするプログラム。
In the program according to claim 7.
On the computer
The camera of the information processing device is activated, and a shooting process of displaying an image shot by the camera and continuously changing is displayed on the display device is executed.
In the guide display process,
The guide image is made to follow the continuously changing image displayed in the shooting process.
A program characterized by that.
請求項7に記載するプログラムにおいて、
前記コンピュータに、
前記取得処理にて取得した前記撮像データに示される静止画を、前記表示デバイスに表示させる静止画表示処理を実行させ、
前記ガイド表示処理では、
前記静止画表示処理にて表示される前記静止画に、前記ガイド画像を重ねる、
ことを特徴とするプログラム。
In the program according to claim 7.
On the computer
A still image display process for displaying the still image shown in the captured image data acquired in the acquisition process on the display device is executed.
In the guide display process,
The guide image is superimposed on the still image displayed by the still image display process.
A program characterized by that.
請求項7から請求項9のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
前記ガイド画像が表示された状態で、前記ガイド画像の位置の修正を、前記情報処理装置のユーザインタフェースを介して受け付けるガイド修正処理を実行させ、
前記候補画像特定処理では、
前記ガイド修正処理によって前記ガイド画像の位置が修正された場合、修正された前記ガイド画像によって示される画像を前記候補画像とする、
ことを特徴とするプログラム。
In the program according to any one of claims 7 to 9.
On the computer
With the guide image displayed, a guide correction process for receiving the correction of the position of the guide image via the user interface of the information processing device is executed.
In the candidate image identification process,
When the position of the guide image is corrected by the guide correction process, the image indicated by the corrected guide image is used as the candidate image.
A program characterized by that.
請求項10に記載するプログラムにおいて、
前記コンピュータに、
前記ガイド修正処理にて前記ガイド画像の位置を修正した場合に、修正量に基づく補正値をメモリに記憶する記憶処理を実行させ、
前記ガイド表示処理では、
前記ガイド画像を表示する際、前記記憶処理にて記憶された補正値に基づいて、前記ガイド画像を表示する位置を決定する、
ことを特徴とするプログラム。
In the program according to claim 10.
On the computer
When the position of the guide image is corrected by the guide correction process, a storage process for storing the correction value based on the correction amount in the memory is executed.
In the guide display process,
When displaying the guide image, the position where the guide image is displayed is determined based on the correction value stored in the storage process.
A program characterized by that.
情報処理装置のコンピュータによって実行可能であり、プリンタでの印刷に用いる特性パラメータの設定を行うプログラムであって、
前記コンピュータに、
カメラによって撮影された画像を示す撮像データを取得する取得処理と、
前記取得処理にて取得した前記撮像データから、前記プリンタでの印刷に用いられる用紙の画像を特定する特定処理と、
前記特定処理にて特定した前記用紙の画像に基づいて、前記特性パラメータを算出する算出処理と、
前記算出処理にて算出した前記特性パラメータを、前記プリンタでの印刷に用いる前記特性パラメータとして設定する設定処理と、
を実行させる、
ことを特徴とするプログラム。
A program that can be executed by the computer of the information processing device and sets characteristic parameters used for printing with a printer.
On the computer
Acquisition process to acquire image data showing the image taken by the camera,
Specific processing for specifying an image of paper used for printing by the printer from the imaging data acquired in the acquisition process, and
A calculation process for calculating the characteristic parameters based on the image of the paper specified in the specific process, and a calculation process for calculating the characteristic parameters.
A setting process for setting the characteristic parameter calculated in the calculation process as the characteristic parameter used for printing with the printer, and a setting process.
To execute,
A program characterized by that.
コンピュータを備える情報処理装置であって、
前記コンピュータは、
カメラによって撮影された画像を示す撮像データを取得する取得処理と、
前記取得処理にて取得した前記撮像データから、前記情報処理装置と接続されるプリンタが備える基準部品の画像と、前記プリンタに装着された用紙の画像とを特定する特定処理と、
前記特定処理にて特定した前記基準部品の画像と前記用紙の画像とを比較し、その比較結果と、前記基準部品の特徴値とに基づいて前記プリンタでの印刷に用いる特性パラメータを算出する算出処理と、
前記算出処理にて算出した前記特性パラメータを、前記プリンタでの印刷に用いる前記特性パラメータとして設定する設定処理と、
を実行する、
ことを特徴とする情報処理装置。
An information processing device equipped with a computer
The computer
Acquisition process to acquire image data showing the image taken by the camera,
Specific processing for identifying an image of a reference component included in a printer connected to the information processing apparatus and an image of paper mounted on the printer from the imaging data acquired in the acquisition process.
Calculation that compares the image of the reference component specified in the specific process with the image of the paper, and calculates the characteristic parameter used for printing with the printer based on the comparison result and the feature value of the reference component. Processing and
A setting process for setting the characteristic parameter calculated in the calculation process as the characteristic parameter used for printing with the printer, and a setting process.
To execute,
An information processing device characterized by this.
JP2019206290A 2019-11-14 2019-11-14 program Active JP7371451B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019206290A JP7371451B2 (en) 2019-11-14 2019-11-14 program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019206290A JP7371451B2 (en) 2019-11-14 2019-11-14 program

Publications (2)

Publication Number Publication Date
JP2021081784A true JP2021081784A (en) 2021-05-27
JP7371451B2 JP7371451B2 (en) 2023-10-31

Family

ID=75965141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019206290A Active JP7371451B2 (en) 2019-11-14 2019-11-14 program

Country Status (1)

Country Link
JP (1) JP7371451B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010814A (en) * 2007-06-29 2009-01-15 Fujifilm Corp Image processing device and method, and program, and imaging apparatus and method, and program
JP2010128448A (en) * 2008-12-01 2010-06-10 Fuji Xerox Co Ltd Image displacement correction device and image forming apparatus
JP2011060270A (en) * 2009-08-10 2011-03-24 Canon Inc Printing system and method
JP2013089017A (en) * 2011-10-18 2013-05-13 Ricoh Co Ltd Information providing system, information providing method, program and terminal device
JP2014174599A (en) * 2013-03-06 2014-09-22 Brother Ind Ltd Processing program for label production and processing method for label production
JP2015114564A (en) * 2013-12-13 2015-06-22 京セラドキュメントソリューションズ株式会社 Printing position adjustment method of image formation device and adjustment value setting device
JP2015209296A (en) * 2014-04-25 2015-11-24 セイコーエプソン株式会社 Detection threshold value setting method in label detection, transportation unit and printer
JP2016022652A (en) * 2014-07-18 2016-02-08 ニスカ株式会社 Medium discrimination device, medium transport device and printer
JP2017013969A (en) * 2015-07-01 2017-01-19 コニカミノルタ株式会社 Sheet size determination system, sheet size determination method, sheet size determination program, and image formation apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142324B2 (en) 2001-10-17 2006-11-28 Hewlett-Packard Development Company, L.P. Sensing media parameter information from marked sheets

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010814A (en) * 2007-06-29 2009-01-15 Fujifilm Corp Image processing device and method, and program, and imaging apparatus and method, and program
JP2010128448A (en) * 2008-12-01 2010-06-10 Fuji Xerox Co Ltd Image displacement correction device and image forming apparatus
JP2011060270A (en) * 2009-08-10 2011-03-24 Canon Inc Printing system and method
JP2013089017A (en) * 2011-10-18 2013-05-13 Ricoh Co Ltd Information providing system, information providing method, program and terminal device
JP2014174599A (en) * 2013-03-06 2014-09-22 Brother Ind Ltd Processing program for label production and processing method for label production
JP2015114564A (en) * 2013-12-13 2015-06-22 京セラドキュメントソリューションズ株式会社 Printing position adjustment method of image formation device and adjustment value setting device
JP2015209296A (en) * 2014-04-25 2015-11-24 セイコーエプソン株式会社 Detection threshold value setting method in label detection, transportation unit and printer
JP2016022652A (en) * 2014-07-18 2016-02-08 ニスカ株式会社 Medium discrimination device, medium transport device and printer
JP2017013969A (en) * 2015-07-01 2017-01-19 コニカミノルタ株式会社 Sheet size determination system, sheet size determination method, sheet size determination program, and image formation apparatus

Also Published As

Publication number Publication date
JP7371451B2 (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN107867090B (en) Printing apparatus, control method of printing apparatus, and recording medium
US8934139B2 (en) Label creation system, print control apparatus, print control method and computer program product
EP3339043A1 (en) Printing device; printing method and recording medium
US8289593B2 (en) Multifunction printer, printing system, and program for combining portions of two or more images
US10257372B2 (en) Color measurement system, image generating apparatus, and non-transitory computer readable medium for performing color measurement on an image displayed in an augmented reality space
JP6669163B2 (en) Colorimetric device and colorimetric method
JP4769847B2 (en) Image processing apparatus, image processing method, program, and computer-readable storage medium
CN111301010B (en) Intelligent printing device and control method thereof
US10806231B2 (en) Drawing apparatus, drawing method, and recording medium storing program
GB2459675A (en) Double sided substrate scanning
JP7371451B2 (en) program
WO2012121217A1 (en) Label-making processing program and label-making processing method
EP3301616A1 (en) Slip processing device, slip processing method, and recording medium
JP2018056894A (en) Image editing program and image editing device
US20190196762A1 (en) Image processing apparatus, method of controlling the same, and storage medium
JP2020149387A (en) Program, program for storage, and information processing device
JP2008284868A (en) Printing method, printer, and program
CN102213592B (en) Printing medium movement amount detection device, and error information production method
JP2020119068A (en) Program and information processor
JP7192516B2 (en) Program and Information Processing Equipment
JP6973295B2 (en) Image processing device and image processing method
JP7367468B2 (en) Programs, information processing devices and printers
US10536587B2 (en) Document scanning apparatus composed of an automatic document feeding device and an image capturing device and scanning method thereof
JP2019055018A (en) Printer, control method of printer, and program
JP2017222453A (en) Transportation detection device, transportation device, recording device, transportation detection method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230807

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231002

R150 Certificate of patent or registration of utility model

Ref document number: 7371451

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150