JP2023133973A - Program, information processing apparatus, and image creation method - Google Patents
Program, information processing apparatus, and image creation method Download PDFInfo
- Publication number
- JP2023133973A JP2023133973A JP2022039258A JP2022039258A JP2023133973A JP 2023133973 A JP2023133973 A JP 2023133973A JP 2022039258 A JP2022039258 A JP 2022039258A JP 2022039258 A JP2022039258 A JP 2022039258A JP 2023133973 A JP2023133973 A JP 2023133973A
- Authority
- JP
- Japan
- Prior art keywords
- image
- code
- information
- print data
- identification code
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000010365 information processing Effects 0.000 title claims abstract description 42
- 230000009467 reduction Effects 0.000 claims abstract description 17
- 238000007639 printing Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 24
- 230000006870 function Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 11
- 239000002131 composite material Substances 0.000 description 8
- 238000011946 reduction process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 239000003795 chemical substances by application Substances 0.000 description 4
- 239000000470 constituent Substances 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000007651 thermal printing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000007641 inkjet printing Methods 0.000 description 1
- 238000007648 laser printing Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010023 transfer printing Methods 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本開示は、印刷データを作成する技術に関する。 The present disclosure relates to technology for creating print data.
従来、画像データに含まれるバーコード等の識別コードの部分をクロッピングし、シール等の印刷媒体に印刷する技術がある。特許文献1では、ビットマップデータからバーコード領域をクロッピングする技術について開示されている。 2. Description of the Related Art Conventionally, there is a technique of cropping an identification code such as a barcode included in image data and printing it on a print medium such as a sticker. Patent Document 1 discloses a technique for cropping a barcode area from bitmap data.
発明者は、元の画像データに含まれる識別コードをクロッピングして印刷した場合に、印刷された識別コードの形状の品質が低くなっており、そのため識別コードをリーダーで読み取れない場合が発生することを発見した。また発明者は、特に識別コードのサイズを変更して印刷した場合に、識別コードの読み取りができない可能性が高くなる場合があることを発見した。 The inventor discovered that when the identification code included in the original image data is cropped and printed, the quality of the shape of the printed identification code is low, and as a result, the identification code may not be readable by a reader. discovered. The inventor also discovered that there is a high possibility that the identification code cannot be read, especially when the identification code is printed after changing its size.
本開示の一局面は、識別コードの読み取り精度の低下を抑制する技術を提案することを目的とする。 One aspect of the present disclosure aims to propose a technique for suppressing a decrease in identification code reading accuracy.
本開示の一態様は、印刷装置に出力される印刷データを生成可能に構成された制御部を備える情報処理装置の制御部において実行可能なプログラムである。このプログラムは、制御部に、情報取得処理と、画像生成処理と、を実行させる。情報取得処理は、情報を読取り可能に構成された識別コードを含む画像データから、識別コードが示す情報であるコード情報を取得する処理である。画像生成処理は、コード情報に基づいて生成される画像であって、当該コード情報を示す識別コードの画像であるコード画像を含む印刷データを生成する処理である。 One aspect of the present disclosure is a program executable in a control unit of an information processing apparatus including a control unit configured to be able to generate print data to be output to a printing device. This program causes the control unit to execute information acquisition processing and image generation processing. The information acquisition process is a process of acquiring code information, which is information indicated by the identification code, from image data that includes an identification code that is configured to be readable. The image generation process is a process of generating print data that includes a code image that is an image generated based on code information and that is an image of an identification code that indicates the code information.
このようなプログラムであれば、画像データに含まれる識別コードのコード情報に基づいて、新たに識別コードの画像を生成し、この生成されたコード画像を含む印刷データを生成する。そのため、画像データに含まれる識別コードの画像を用いて印刷データを作成する場合と比較して、画像データから印刷データに変換する際に生じうる識別コードの形態変化の影響を受けにくくなる。よって、リーダーでの読み取り精度が高い形態の識別コードの印刷を可能とする印刷データを生成することができる。 With such a program, a new identification code image is generated based on the code information of the identification code included in the image data, and print data including the generated code image is generated. Therefore, compared to the case where print data is created using an image of an identification code included in image data, it is less susceptible to changes in the form of the identification code that may occur when converting image data to print data. Therefore, it is possible to generate print data that enables printing of an identification code in a format that is highly readable by a reader.
また、本開示の別の態様では、上記プログラムにより実現される処理を実行可能な制御部を備える情報処理装置が提供されてもよい。また、上記プログラムにより実現される手順を有する画像生成方法が提供されてもよい。 Further, in another aspect of the present disclosure, an information processing device may be provided that includes a control unit that can execute the processing realized by the above program. Further, an image generation method having a procedure implemented by the above program may be provided.
これらの情報処理装置及び画像生成方法においても、本開示のプログラムと同様の効果を得ることができる。 These information processing devices and image generation methods can also provide the same effects as the program of the present disclosure.
以下、本開示の例示的な実施形態について図面を参照しながら説明する。
[1.実施形態]
[1-1.情報処理装置の全体構成]
本実施形態の情報処理装置1は、一例としてPC(Personal Computerの略)として構成される(図1参照)。しかし、これに限らず、情報処理装置1は、例えば、タブレット型の端末又はスマートフォン等として構成されても良い。
Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings.
[1. Embodiment]
[1-1. Overall configuration of information processing device]
The information processing device 1 of this embodiment is configured as, for example, a PC (abbreviation for personal computer) (see FIG. 1). However, the information processing device 1 is not limited to this, and may be configured as, for example, a tablet-type terminal or a smartphone.
また、情報処理装置1は、外部装置であるプリンタ5と有線通信又は無線通信が可能となっている。プリンタ5は、一例として、作業者が持ち運び可能な小型で軽量のモバイルプリンタとして構成される。しかし、これに限らず、プリンタ5は、例えば、据え置き型のプリンタとして構成されていても良いし、プリンタ及びスキャナとしての機能を備えるMFP(Multi Function Peripheral)として構成されていても良い。
情報処理装置1は、制御部11と、表示部12と、入力部13と、通信部14とを備える。
Further, the information processing device 1 is capable of wired or wireless communication with a
The information processing device 1 includes a
制御部11は、CPU21及びメモリ22を備える。CPU21は、メモリ22に記憶されたプログラムを実行し、これにより、情報処理装置1の各種機能が実現される。なお、制御部11により実現される各種機能は、プログラムの実行によって実現することに限るものではなく、その一部又は全部について、一つあるいは複数のハードウェアを用いて実現してもよい。メモリ22は、非遷移的実体的記録媒体である半導体メモリ(例えば、ROM、RAM及びフラッシュメモリ)を備え、プログラム及びデータを記憶する。
The
なお、メモリ22に記憶されるプログラムには、プリンタドライバ22aが含まれる。プリンタドライバ22aは印刷データをプリンタ5に送信することでプリンタ5に印刷を実行させるためのプログラムである。制御部11は、プリンタドライバ22aの機能によって印刷データを生成可能に構成されている。またプリンタドライバ22aは、後述するシッピングラベル縮小処理を実行する。
Note that the programs stored in the
なお、上述したシッピングラベル縮小処理において実現される機能には、バーコードが含まれる画像からバーコードが示す情報であるコード情報を読み取る第1機能と、取得したコード情報に基づいてバーコードの画像を生成し出力する第2機能と、が含まれる。第1機能において取得するコード情報は、当該バーコードの示す規格、メッセージデータ、及び設定値を含む。メッセージデータとは、数字、記号、アルファベット等に置き換えられる情報である。 The functions realized in the shipping label reduction process described above include the first function of reading code information, which is the information indicated by the barcode, from the image containing the barcode, and the first function of reading the barcode image based on the acquired code information. and a second function for generating and outputting. The code information acquired in the first function includes the standard indicated by the barcode, message data, and setting values. Message data is information that can be replaced with numbers, symbols, alphabets, etc.
表示部12は、図示しない表示装置を備え、表示装置に各種画像を表示する。表示部12は、一例として、液晶ディスプレイ等として構成される。
入力部13は、ユーザからの操作を受け付ける部位であり、例えば、タッチパネル、キーボード、ポインティングデバイス等を有する。入力部13は、ユーザからの操作に応じて操作情報を生成して制御部11に出力する。制御部11は、入力部13からの操作情報に応じて処理を行う。
The
The
通信部14は、プリンタ5及びサーバー7等の外部装置と通信を行う。通信部14は、LANを用いた有線通信、LANを用いた無線通信、USBを用いた有線通信、Bluetooth規格に準拠した方式の近距離無線通信、又は、移動体通信網を利用した無線通信などによって、データ通信を行う。LANは、Local Area Networkの略である。USBは、Universal Serial Busの略である。Bluetoothは登録商標である。
The
プリンタ5は、感熱方式の印刷機構を備え、所定幅(例えば、4インチ)の感熱ロール紙に画像を印刷することができる。なお、プリンタ5は、カット紙に対して印刷可能に構成されていてもよいし、感熱方式以外の周知の記録方式(例えば、インクジェット方式)で印刷可能に構成されていてもよい。
サーバー7は、インターネットを介して情報処理装置1と通信可能に構成されている。サーバー7は、情報処理装置1からの要求に応じて、後述するシッピングラベルの画像データを情報処理装置1に送信するように構成されている。
The
The server 7 is configured to be able to communicate with the information processing device 1 via the Internet. The server 7 is configured to transmit image data of a shipping label, which will be described later, to the information processing device 1 in response to a request from the information processing device 1.
[1-2.情報処理装置において実行される処理]
情報処理装置1は、シッピングラベルを縮小して印刷するための印刷データを生成するシッピングラベル縮小処理を実行する。
[1-2. Processing executed in information processing device]
The information processing device 1 executes a shipping label reduction process that generates print data for reducing and printing a shipping label.
シッピングラベルは、商品が収納された配送箱を販売代行業者へ配送する際に、販売業者によって予め配送箱に貼り付けられるシートである。販売業者は、シッピングラベルの画像データを、販売代行業者のウェブサイトなどからダウンロードすることにより取得することができる。シッピングラベルの画像データは、所定サイズのシートに合わせた画像データであり、販売代行業者へ配送するために必要な所定事項が記載されている。所定サイズとは、例えば、A4サイズである。販売業者は、シッピングラベルの画像データをプリンタ5にて印刷することでシッピングラベルを作成し、作成したシッピングラベルを配送箱に貼り付ける。
A shipping label is a sheet that is attached in advance to a shipping box by a sales agent when the shipping box containing the product is delivered to the sales agent. The seller can obtain the image data of the shipping label by downloading it from the website of the sales agent. The image data of the shipping label is image data tailored to a sheet of a predetermined size, and predetermined items necessary for shipping to a sales agent are described. The predetermined size is, for example, A4 size. The seller creates a shipping label by printing the image data of the shipping label using the
プリンタ5で用いられる印刷媒体における印刷可能な領域の幅がシッピングラベルの画像データが規定する幅よりも小さい場合、シッピングラベルを縮小することで、シッピングラベルが印刷媒体に収まるように印刷できる。本実施形態では、A4サイズのシッピングラベルを、印刷媒体の幅である4インチに縮小する必要がある。なお、A4サイズは、11.69インチ×8.27インチである。
If the width of the printable area on the print medium used by the
シッピングラベルの画像データの一例を図2に示す。シッピングラベル51は、画像データが示す画像領域41の中のラベル領域43に含まれる画像であり、枠線53によって画定される部分である。シッピングラベル51は、第1バーコード55aと、第2バーコード55bと、を含む画像である。以下の説明において第1バーコード55aと第2バーコード55bとを特に区別しない場合、単にバーコード55と記載する。
An example of image data of a shipping label is shown in FIG. 2. The
ラベル領域43のうち、第1バーコード55aが配置される矩形の領域を第1バーコード配置領域57aとし、第2バーコード55bが配置される矩形の領域を第2バーコード配置領域57bとする。また配送箱の配送先などを示す文字及び数字等が記載された情報記載領域59とする。すなわち、シッピングラベル51を構成する全領域のうち、第1バーコード配置領域57a及び第2バーコード配置領域57bを除外した領域が、情報記載領域59である。
In the
次に、情報処理装置1の制御部11が実行するシッピングラベル縮小処理の手順を、図3に示すフローチャートに基づいて説明する。シッピングラベル縮小処理は、シッピングラベル51が含まれる画像データを印刷媒体に印刷するための入力操作が入力部13を介して行われたときに開始される処理である。画像データの取得方法は特に限定されない。上述したように、情報処理装置1がウェブサイト(すなわち、サーバー7)から取得してもよいし、他のデバイスや記録媒体から取得してもよい。
Next, the procedure of the shipping label reduction process executed by the
このシッピングラベル縮小処理では、S1において、制御部11は、画像データから、シッピングラベル51を取得する。ここでは、図2に示される画像データの画像領域41から、シッピングラベル51を抽出する。
In this shipping label reduction process, in S1, the
続くS2では、制御部11は、S1にて取得したシッピングラベル51から、第1バーコード55a、及び、第2バーコード55bが示す情報であるコード情報を取得する。このコード情報は、バーコードの規格を示す規格情報、メッセージデータ、設定値を含む情報である。つまりコード情報には、バーコードを再現するために必要な情報が含まれる。
In subsequent S2, the
続くS3では、制御部11は、シッピングラベル51、第1バーコード55a、及び、第2バーコード55bのサイズの情報を取得する。画像データから上述した各要素のサイズの情報を取得する方法は特に制限されず、公知の様々な手法を用いることができる。
In subsequent S3, the
続くS4では、制御部11は、印刷されるシッピングラベルの縮小率を決定する。ここでは、図4に示されるように、シッピングラベル51を縮小せずに印刷した場合の幅L1と、印刷媒体61における印刷可能な領域の幅L2と、に基づき、印刷媒体61に収まるサイズのシッピングラベル63のサイズを設定する。そして、縮小前後のサイズの比から縮小率を決定する。例えば、縮小率がL2/L1である場合に、印刷媒体61とシッピングラベル63のサイズが一致する。よって、その値以下となるように縮小率を設定することで、シッピングラベル63の全体を印刷できる。なお、L2>L1であれば、縮小をせずとも印刷が可能である。その場合、シッピングラベル51のサイズを変更しなくてもよいし、L2に合わせてシッピングラベル51を拡大してもよい。制御部11は、L1の情報を、プリンタドライバ22aの有するパラメータに基づいて取得してもよいし、プリンタ5から取得してもよい。
In subsequent S4, the
続いて、S5では、制御部11は、コード画像を含む印刷データを生成する画像生成処理を行う。ここでいうコード画像とは、S2にて取得したコード情報に基づいて生成される画像であって、当該コード情報を示すバーコードの画像である。また、このS5にて生成される印刷データは、シッピングラベル51と、コード画像と、を含む。ただし、この印刷データにおいては、シッピングラベル51に含まれる第1バーコード55a及び第2バーコード55bに替えて、それらの位置に、新たに生成されたコード画像が配置される。この画像生成処理の詳細な手順について、図5に示すフローチャートに基づいて説明する。
Subsequently, in S5, the
この画像生成処理では、S11において、制御部11は、縮小したシッピングラベルの画像を生成する。ここでは、S4にて取得した縮小率に従って、シッピングラベル51を縮小する。縮小を行うためのアルゴリズムは特に限定されないが、例えば、バイリニア法を用いてもよい。
In this image generation process, in S11, the
縮小されたシッピングラベルは、図6に示されるように、第1バーコード配置領域57a、及び、第2バーコード配置領域57bを特定の色で塗りつぶして、元のシッピングラベル51に含まれていたバーコード55を消す。これにより、情報記載領域59は縮小され、第1バーコード配置領域57a及び第2バーコード配置領域57bが空欄となった縮小背景画像71が生成される。バーコードを塗りつぶす色は、例えば、白、黒、背景色などが挙げられるが、特に限定されない。
As shown in FIG. 6, the reduced shipping label is created by filling in the first
続いて、S12において、制御部11は、S2にて取得したコード情報に基づいて、コード画像を生成する。S2では、第1バーコード55a及び第2バーコード55bの2つのバーコードからコード情報を取得している。よって、ここではそれに合わせて、図7Aに示す第1コード画像73a及び図7Bに示す第2コード画像73bの2つのコード画像を生成する。以下の説明において第1コード画像73aと第2コード画像73bとを特に区別しない場合、単にコード画像73と記載する。生成された第1コード画像73aは、第1バーコード55aと同じ規格であって、同じメッセージデータを示し、同じ設定値であるバーコードである。また、生成された第2コード画像73bは、第2バーコード55bと同じ規格であって、同じメッセージデータを示し、同じ設定値であるバーコードである。
Subsequently, in S12, the
S12にて生成される2つのコード画像73は、S3にて取得された各バーコードのサイズをS4にて決定された縮小率にて縮小したものと同じサイズの画像である。そして、それらのコード画像73は二値化された画像であり、かつ、形状に欠けのない棒状のバーコードシンボルとなるように形成される。 The two code images 73 generated in S12 are images of the same size as those obtained by reducing the size of each barcode acquired in S3 using the reduction ratio determined in S4. These code images 73 are binarized images, and are formed so as to be barcode symbols having a solid bar shape.
続いて、S13において、制御部11は、S11にて生成した縮小背景画像71と、S12にて生成したコード画像73と、を合成し、図8に示される合成ラベル91を生成する。合成ラベル91では、シッピングラベル51におけるバーコード55の配置されていた部分、つまり、シッピングラベル51の第1バーコード配置領域57a、第2バーコード配置領域57bの位置に、各コード画像73を配置する。このS13の後、CPU21は、画像生成処理を終了する。
Subsequently, in S13, the
なお、S11~S13にて示す画像生成処理は、その具体的な手順は特に限定されず、処理順序の入れ替えが行われてもよいし、複数の処理が並行して実行されてもよい。すなわち、S11~S13にて示した処理が全て実行され、最終的に合成ラベル91が形成されればよい。
Note that the specific steps of the image generation processing shown in S11 to S13 are not particularly limited, and the processing order may be changed, or a plurality of processing may be executed in parallel. That is, all the processes shown in S11 to S13 may be executed to finally form the
合成ラベル91が、本開示の印刷データに相当する。よって、合成ラベル91に基づいてプリンタ5により印刷を行うことで、シッピングラベル51を縮小した縮小背景画像71と、別途生成された2つのコード画像73と、が含まれる画像を印刷媒体上に形成することができる。
The
[1-3.効果]
(1a)本実施形態の情報処理装置1では、制御部11が、情報を読取り可能に構成された2つのバーコード55を含むシッピングラベル51の画像データから、それらのバーコード55が示す情報であるコード情報を取得するする。また制御部11は、取得したコード情報を示すバーコード55の画像である2つのコード画像73を生成し、それらのコード画像73と、元の画像データに含まれるシッピングラベルを縮小した縮小背景画像71と、を含む印刷データを生成する。
[1-3. effect]
(1a) In the information processing device 1 of this embodiment, the
このような情報処理装置1であれば、取得したコード情報に基づいて新たにコード画像73を生成することから、印刷データには、元の画像データに含まれるバーコード55の画像を用いたバーコードの画像が含まれない。元の画像データに含まれるバーコード55の画像を印刷データに使用しようとすると、例えばビットマップやJPEGなどの一般的な形式の画像データを印刷データのフォーマットに変換する際に、画像の形状が乱れてしまう場合がある。特に、画像データのサイズを縮小したり拡大したりする場合には、アンチエイリアスによる輪郭部分のぼやけや、画素補完に伴うジャギーなどが生じてしまう。しかしながら、上記情報処理装置1は、元の画像データのバーコード55の画像を印刷データに使用しないため、そのような問題が生じにくい。よって、リーダーでの読み取り精度が高い形態の識別コードの印刷を可能とする印刷データを生成することができる。 With such an information processing device 1, since a new code image 73 is generated based on the acquired code information, the print data includes a bar code using the image of the bar code 55 included in the original image data. Code images are not included. If you try to use the image of barcode 55 included in the original image data as print data, the shape of the image may change when converting the image data in a general format such as bitmap or JPEG to the print data format. It may become disordered. In particular, when reducing or enlarging the size of image data, blurring of outlines due to anti-aliasing and jaggies due to pixel interpolation occur. However, since the information processing device 1 does not use the image of the barcode 55 of the original image data as print data, such a problem is unlikely to occur. Therefore, it is possible to generate print data that enables printing of an identification code in a format that is highly readable by a reader.
(1b)本実施形態では、情報処理装置1の制御部11は、元の画像データから、バーコード55と、情報記載領域59と、を含むシッピングラベル51を取得する。そして制御部11は、シッピングラベル51を縮小した縮小背景画像71と、生成したコード画像73と、を含む印刷データを生成する。このような情報処理装置1であれば、シッピングラベル51の情報記載領域59に示される情報と、コード画像73と、の両方を含む印刷データを生成できる。
(1b) In the present embodiment, the
なお、情報処理装置1の制御部11は、さらに、シッピングラベル51におけるバーコード55の配置されていた部分、すなわち、第1バーコード配置領域57a及び第2バーコード配置領域57bに、コード画像73を配置した印刷データを生成する。そのため、元の画像データに示されるシッピングラベル51と同じ形態の印刷データを生成できる。
Note that the
なお、情報処理装置1の制御部11は、さらに、シッピングラベル51におけるバーコード55を削除した縮小背景画像71を生成し、そのバーコード55が削除された部分にコード画像73を配置する。そのため、元の画像データに示されるバーコード55の一部又は全部が印刷データに残ってしまうことを抑制でき、その結果、コード画像73以外のバーコードが印刷媒体に対して印刷されてしまうことを抑制できる。これにより、生成した印刷データに示される画像に、元の画像データに示されるバーコードと、新たに生成したバーコードと、が混在してしまうことを抑制できる。
Note that the
(1c)本実施形態では、情報処理装置1の制御部11は、プリンタ5が印刷処理を行う印刷媒体61の印刷が実行される領域の幅に応じたサイズの印刷データを生成する。よってこのような情報処理装置1であれば、印刷媒体61の印刷領域の大きさに合わせて、元の画像データから適切に拡大又は縮小されたシッピングラベルをプリンタ5に印刷させることができる。
(1c) In the present embodiment, the
なお、情報処理装置1の制御部11は、生成するコード画像73の大きさを、元の画像データに係るシッピングラベル51から印刷データに係る縮小背景画像71への縮小率に合わせて縮小した大きさとする。そのため、印刷媒体61に印刷されたシッピングラベルには、合成ラベル91に表されるように、元の画像データにおけるシッピングラベル51とバーコード55との大きさの比率と同じ比率のコード画像73が含まれる。よって、ユーザは、印刷された印刷媒体を、違和感なく使用することができる。
Note that the
(1d)本実施形態では、制御部11が取得するコード情報は、バーコードの規格を示す規格情報を含んでいる。また制御部11は、画像生成処理にて、取得された規格情報が示す規格であるコード画像73を生成する。このような情報処理装置1であれば、元の画像データに示されるバーコードと同じ規格のバーコードをプリンタ5に印刷させることができる。
(1d) In this embodiment, the code information acquired by the
[1-4.対応関係]
上記実施形態におけるシッピングラベル51が本開示における対象画像の一例であり、制御部11が印刷データを作成する際には、縮小された対象画像である縮小背景画像71が用いられる。また、第1バーコード55a及び第2バーコード55bが、情報を読取り可能に構成された識別コードの一例である。また、プリンタ5が印刷装置の一例である。
また、制御部11によるS1の処理が、本開示の画像取得処理に相当し、制御部11によるS2の処理が、本開示の情報取得処理に相当する。
[1-4. Correspondence]
The
Further, the process of S1 by the
[2.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
[2. Other embodiments]
Although the embodiments of the present disclosure have been described above, it goes without saying that the present disclosure is not limited to the above embodiments and can take various forms.
(2a)上記実施形態では、情報処理装置1とプリンタ5とが別々の装置である構成を例示した。しかしながら、情報処理装置1とプリンタ5とが1つの装置として構成されていてもよい。また上記実施形態では、プリンタドライバ22aの機能としてシッピングラベル縮小処理が実行される構成を例示したが、プリンタドライバ22aとは別のプログラムによって上記処理が実行されてもよい。
(2a) In the above embodiment, the information processing device 1 and the
(2b)上記実施形態では、プリンタ5として、ラベルプリンタを例示した。しかしながら、本開示の印刷装置の具体的構成はラベルプリンタに限定されない。例えば、感熱方式及びインクジェット方式の印刷装置に限らず、熱転写方式やレーザー方式のプリンタであってもよい。
(2b) In the embodiments described above, a label printer is illustrated as the
(2c)上記実施形態では、シッピングラベルの印刷データを生成する方法について説明したが、これに限定されるものではない。例えば、多数のバーコードが整列して配置されている画像データに基づき、バーコード単位に分割して印刷する、いわゆるクロップ印刷を行う場合に、上記実施形態の技術を適用してもよい。 (2c) In the above embodiment, a method of generating printing data for a shipping label has been described, but the present invention is not limited to this. For example, the technique of the above embodiment may be applied when performing so-called crop printing, in which image data in which a large number of barcodes are arranged in a row is divided and printed in barcode units.
(2d)上記実施形態では、識別コードとしてバーコードを例示したが、識別コードはこれに限定されるものではない。識別コードは、一次元コード及び二次元コードのうちの少なくともいずれかであればよい。本開示の情報処理装置を用いることで、一次元コード及び二次元コードのうちの少なくともいずれかについて、リーダーでの読み取りが行いやすい形態で印刷することができる。 (2d) In the above embodiments, a barcode is used as an example of the identification code, but the identification code is not limited to this. The identification code may be at least one of a one-dimensional code and a two-dimensional code. By using the information processing device of the present disclosure, at least one of a one-dimensional code and a two-dimensional code can be printed in a format that is easy to read by a reader.
(2e)上記実施形態では、元の画像に示されるシッピングラベル51と同様の形態を示す合成ラベル91を生成する構成を例示した。しかしながら、生成される印刷データは、これに限定されるものではない。
(2e) In the above embodiment, a configuration was exemplified in which a
例えば、情報記載領域59は印刷せず、バーコードのみを含む印刷データを生成するように構成されていてもよいし、情報記載領域59に含まれる一部の情報とバーコードを含む印刷データを生成するように構成されていてもよい。また、バーコードが、元の画像データにおけるシッピングラベル上の位置とは異なる位置に配置される印刷データを生成してもよい。
For example, the
また例えば、シッピングラベル51におけるバーコード55の比率と、印刷データにおける縮小背景画像71とコード画像73の比率と、が異なっていてもよい。言い換えると、コード画像73の縮小率又は拡大率が、縮小背景画像71の縮小率又は拡大率と異なっていてもよい。
Furthermore, for example, the ratio of the barcode 55 on the
(2f)上記実施形態では、縮小背景画像71においてはバーコード55の位置を特定の色で塗りつぶすことでバーコード55を削除する構成を例示したが、このような処理を行わず、単にコード画像73によって上書きするように構成されていてもよい。
(2f) In the above embodiment, the barcode 55 is deleted by filling the position of the barcode 55 with a specific color in the reduced
(2g)上記実施形態では、印刷データに含まれる縮小背景画像71及びコード画像73の大きさは、印刷媒体61における、印刷データに基づく印刷が実行される領域の大きさに応じて設定される構成を例示した。
(2g) In the above embodiment, the size of the reduced
ここで、制御部11は、印刷データに基づく印刷が実行される領域の大きさを特定する処理を行ってもよい。例えば、印刷装置が、印刷可能な領域の大きさの異なる複数の印刷媒体に対して印刷が可能である場合には、印刷対象となる印刷媒体の大きさに基づいて上記領域の大きさを特定してもよい。
Here, the
(2h)上記実施形態では、縦長の印刷媒体を例示したが、これに限定されるものではない。例えば、横長の印刷媒体を用いてもよい。横長の印刷媒体とは、例えば、複数の横長のシールが、ロール紙に一定間隔で貼り付けられている構成を含む。 (2h) In the above embodiment, a vertically long print medium is illustrated, but the present invention is not limited to this. For example, a horizontally long print medium may be used. The horizontally long print medium includes, for example, a configuration in which a plurality of horizontally long stickers are pasted on a roll paper at regular intervals.
なお、上記実施形態では、シッピングラベル51が縦長であることから、回転をせずに印刷データを生成する構成を例示した。しかしながら、シッピングラベルが横長である場合や、印刷媒体が横長である場合など、シッピングラベルを回転させて、さらに必要に応じて縮小又は拡大を行った印刷データを生成してもよい。その場合には、コード画像73も回転させた上でシッピングラベル上の適切な位置に合わせてもよい。
In the above embodiment, since the
(2i)上記実施形態では、画像データから取得したバーコードの規格と同じ規格のコード画像73を生成する構成を例示したが、これに限定されるものではない。例えば、異なる規格のコード画像を生成してもよい。 (2i) In the above embodiment, the configuration is exemplified to generate the code image 73 of the same standard as the standard of the barcode acquired from the image data, but the present invention is not limited to this. For example, code images of different standards may be generated.
(2j)上記実施形態では、生成されたコード画像73は二値化された画像であり、かつ、形状に欠けのない棒状のバーコードシンボルである構成を例示した。しかしながら、生成されるコード画像の具体的な構成、形態は特に限定されない。バーコードリーダーによって高い精度で読取ることができる範囲で、画像処理が施されていてもよい。 (2j) In the above embodiment, the generated code image 73 is a binarized image and is a barcode symbol having a solid bar shape. However, the specific configuration and form of the generated code image are not particularly limited. Image processing may be performed to the extent that it can be read with high accuracy by a barcode reader.
(2k)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 (2k) A plurality of functions of one component in the above embodiment may be realized by a plurality of components, and a function of one component may be realized by a plurality of components. . Further, a plurality of functions possessed by a plurality of constituent elements may be realized by one constituent element, or one function realized by a plurality of constituent elements may be realized by one constituent element. Further, a part of the configuration of the above embodiment may be omitted. Further, at least a part of the configuration of the above embodiment may be added to or replaced with the configuration of other embodiments.
(2l)上述した情報処理装置1の他、当該情報処理装置1を構成要素とするシステム、当該情報処理装置1の制御部11としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実体的記録媒体、画像生成方法など、種々の形態で本開示を実現することもできる。
(2l) In addition to the information processing device 1 described above, a system including the information processing device 1 as a component, a program for causing a computer to function as the
1…情報処理装置、5…プリンタ、7…サーバー、11…制御部、12…表示部、13…入力部、14…通信部、21…CPU、22…メモリ、22a…プリンタドライバ、41…画像領域、43…ラベル領域、51,63…シッピングラベル、53…枠線、55…バーコード、55a…第1バーコード、55b…第2バーコード、57a…第1バーコード配置領域、57b…第2バーコード配置領域、59…情報記載領域、61…印刷媒体、71…縮小背景画像、73…コード画像、73a…第1コード画像、73b…第2コード画像、91…合成ラベル DESCRIPTION OF SYMBOLS 1... Information processing device, 5... Printer, 7... Server, 11... Control unit, 12... Display unit, 13... Input unit, 14... Communication unit, 21... CPU, 22... Memory, 22a... Printer driver, 41... Image Area, 43...Label area, 51, 63...Shipping label, 53...Frame line, 55...Barcode, 55a...First barcode, 55b...Second barcode, 57a...First barcode arrangement area, 57b...Second barcode 2 barcode arrangement area, 59...information writing area, 61...print medium, 71...reduced background image, 73...code image, 73a...first code image, 73b...second code image, 91...composite label
Claims (10)
情報を読取り可能に構成された識別コードを含む画像データから、前記識別コードが示す情報であるコード情報を取得する情報取得処理と、
前記コード情報に基づいて生成される画像であって、当該コード情報を示す前記識別コードの画像であるコード画像を含む前記印刷データを生成する画像生成処理と、を実行させる、プログラム。 The control unit of the information processing device includes a control unit configured to be able to generate print data to be output to the printing device,
Information acquisition processing that acquires code information that is information indicated by the identification code from image data that includes an identification code that is configured to be readable;
A program that causes an image generation process to generate the print data that is an image generated based on the code information and includes a code image that is an image of the identification code indicating the code information.
前記制御部に、さらに、
前記画像データから、少なくとも前記識別コードを含む画像である対象画像を取得する画像取得処理を実行させ、
前記画像生成処理では、前記対象画像と、前記コード画像と、を含む前記印刷データを生成する、プログラム。 The program according to claim 1,
The control unit further includes:
executing an image acquisition process for acquiring a target image, which is an image including at least the identification code, from the image data;
In the image generation process, the program generates the print data including the target image and the code image.
前記画像生成処理では、前記印刷装置が印刷処理を行う印刷媒体における、前記印刷データに基づく印刷が実行される領域の大きさに応じて設定される大きさの前記対象画像及び前記コード画像を含む前記印刷データを生成する、プログラム。 The program according to claim 2,
The image generation process includes the target image and the code image having a size set according to the size of an area where printing based on the print data is executed on a print medium on which the printing device performs print processing. A program that generates the print data.
前記画像生成処理では、生成する前記コード画像の大きさを、前記画像データに係る前記対象画像から前記印刷データに係る前記対象画像への拡大率又は縮小率に応じて設定する、プログラム。 4. The program according to claim 3,
In the image generation process, the program sets a size of the code image to be generated according to an enlargement rate or reduction rate from the target image according to the image data to the target image according to the print data.
前記画像生成処理では、前記識別コードの配置されていた部分に前記コード画像を配置した前記印刷データを生成する、プログラム。 The program according to any one of claims 2 to 4,
In the image generation process, the program generates the print data in which the code image is placed in a portion where the identification code is placed.
前記画像生成処理では、前記対象画像における前記識別コードを削除し、前記識別コードが削除された部分に前記コード画像を配置した前記印刷データを生成する、プログラム。 6. The program according to claim 5,
In the image generation process, the program deletes the identification code in the target image and generates the print data in which the code image is placed in the portion where the identification code has been deleted.
前記コード情報は、前記識別コードの規格を示す規格情報を含み、
前記画像生成処理では、前記規格情報が示す規格である前記コード画像を生成する、プログラム。 The program according to any one of claims 1 to 6,
The code information includes standard information indicating a standard of the identification code,
In the image generation process, the program generates the code image that is a standard indicated by the standard information.
前記識別コードは、一次元コード及び二次元コードのうちの少なくともいずれかである、プログラム。 The program according to any one of claims 1 to 7,
The program, wherein the identification code is at least one of a one-dimensional code and a two-dimensional code.
前記制御部は、
情報を読取り可能に構成された識別コードを含む画像データから、前記識別コードが示す情報であるコード情報を取得する情報取得処理と、
前記コード情報に基づいて生成される画像であって、当該コード情報を示す前記識別コードの画像であるコード画像を含む前記印刷データを生成する画像生成処理と、を実行可能に構成されている、情報処理装置。 An information processing device comprising a control unit configured to be able to generate print data to be output to a printing device, the information processing device comprising:
The control unit includes:
Information acquisition processing that acquires code information that is information indicated by the identification code from image data that includes an identification code that is configured to be readable;
an image generation process that generates the print data that is an image generated based on the code information and includes a code image that is an image of the identification code indicating the code information; Information processing device.
情報を読取り可能に構成された識別コードを含む画像データから、前記識別コードが示す情報であるコード情報を取得することと、
前記コード情報に基づいて生成される画像であって、当該コード情報を示す前記識別コードの画像であるコード画像を含む前記印刷データを生成することと、を備える、画像生成方法。 An image generation method executed by an information processing device including a control unit configured to be able to generate print data to be output to a printing device, the method comprising:
Obtaining code information, which is information indicated by the identification code, from image data including an identification code configured to read information;
An image generation method comprising: generating the print data that is an image generated based on the code information and includes a code image that is an image of the identification code indicating the code information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022039258A JP2023133973A (en) | 2022-03-14 | 2022-03-14 | Program, information processing apparatus, and image creation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022039258A JP2023133973A (en) | 2022-03-14 | 2022-03-14 | Program, information processing apparatus, and image creation method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023133973A true JP2023133973A (en) | 2023-09-27 |
Family
ID=88143380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022039258A Pending JP2023133973A (en) | 2022-03-14 | 2022-03-14 | Program, information processing apparatus, and image creation method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023133973A (en) |
-
2022
- 2022-03-14 JP JP2022039258A patent/JP2023133973A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9330349B2 (en) | Systems and methods for providing variable data printing (VDP) using dynamic font downgrading | |
EP2677418B1 (en) | Image processing device, image processing system, and printing method | |
CN109815451B (en) | PDF (Portable document Format) generation method, device and equipment | |
JP5819698B2 (en) | PRINT DATA PROCESSING DEVICE, PRINT DATA PROCESSING METHOD, PRINTING SYSTEM AND PROGRAM, AND PAGE DATA CREATION DEVICE AND Rasterization Processing Device | |
US20210125386A1 (en) | Systems and methods for clipping images | |
CN109302543A (en) | Image processing apparatus and storage medium | |
US9940557B2 (en) | Document printing using hardware-dependent fonts | |
JP2009042826A (en) | Two dimensional code creation system and two dimensional code printing medium | |
JP2023133973A (en) | Program, information processing apparatus, and image creation method | |
JP4946408B2 (en) | Printing system and printing control method in printing system | |
JP6079471B2 (en) | Information processing program and information processing apparatus | |
JP7028030B2 (en) | Image processing equipment and image processing program | |
JP6208477B2 (en) | Printer, print control program, and printing system | |
JP2009116543A (en) | Information processor and program | |
US9971963B1 (en) | Methods, systems, and devices for individualizing N-up raster images with background forms | |
JP4149351B2 (en) | Image printing system | |
JP4598373B2 (en) | Image output device, program and printed matter | |
US10902182B2 (en) | Changing the height of a facsimile source area in accordance with a registered language | |
JP7028029B2 (en) | Image processing equipment and image processing program | |
JP7166160B2 (en) | Display control device and display control method | |
JP4735128B2 (en) | Document processing device | |
JP7190541B2 (en) | Program, code output method, and terminal device | |
JP2003085476A (en) | Distributing method of electronic book data using two- dimensional barcode | |
WO2015108022A1 (en) | Barcode instruction generating device | |
JP2017226178A (en) | Display device, image forming apparatus, and program |