JP2007188157A - Barcode and imaging device - Google Patents

Barcode and imaging device Download PDF

Info

Publication number
JP2007188157A
JP2007188157A JP2006003682A JP2006003682A JP2007188157A JP 2007188157 A JP2007188157 A JP 2007188157A JP 2006003682 A JP2006003682 A JP 2006003682A JP 2006003682 A JP2006003682 A JP 2006003682A JP 2007188157 A JP2007188157 A JP 2007188157A
Authority
JP
Japan
Prior art keywords
barcode
information
area
code
imaging
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
Application number
JP2006003682A
Other languages
Japanese (ja)
Inventor
Takuya Nakajima
拓也 中島
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2006003682A priority Critical patent/JP2007188157A/en
Publication of JP2007188157A publication Critical patent/JP2007188157A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To acquire a barcode and imaging device for restraining generation of useless decoding time. <P>SOLUTION: A real data area 60B for a two-dimensional code 60 for recording coded real data at predesignated first recording density, and an index area 60A for recording coded index information capable of identifying what is indicated by the information of the real data by the second recording density lower than that of the first recording density. In a digital camera, the information corresponding to the index area 60A is decoded, it is determined whether or not the two-dimensional code 60 is a barcode to be read on the basis of the index information obtained thereby, and the information corresponding to the real data area 60B is decoded only when determined the barcode is to be read. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、バーコード及び撮像装置に係り、特に、1次元バーコード、2次元コード等のバーコード及び当該バーコードを撮像する撮像装置に関する。   The present invention relates to a barcode and an imaging device, and more particularly to a barcode such as a one-dimensional barcode and a two-dimensional code and an imaging device that images the barcode.

近年、CCD(Charge Coupled Device)エリアセンサ、CMOS(Complementary Metal Oxide Semiconductor)イメージ・センサ等の固体撮像素子の高解像度化に伴い、デジタル電子スチルカメラ、デジタルビデオカメラ、携帯電話機、PDA(Personal Digital Assistant,携帯情報端末)等の撮影機能を有する情報機器の需要が急増している。なお、以上のような撮影機能を有する情報機器を撮像装置と総称する。   In recent years, with the increase in resolution of solid-state imaging devices such as CCD (Charge Coupled Device) area sensors and CMOS (Complementary Metal Oxide Semiconductor) image sensors, digital electronic still cameras, digital video cameras, mobile phones, PDAs (Personal Digital Assistants) , Portable information terminals) and other information devices having a photographing function are rapidly increasing. Note that information devices having the above photographing functions are collectively referred to as imaging devices.

ところで、以上のような撮像装置では、近年、その利便性を向上させるための種々の技術が提案されており、特許文献1には、複雑な操作を行うことなく所望モードを用いた撮影を可能にすることを目的として、バーコードデータカードにビデオカメラの一連の操作プログラムデータを記録しておく一方、ビデオカメラに上記データカードのデータを読み取るバーコード読み取り部を設け、読み取った操作プログラムデータに基づきマイコンが制御を実行する技術が開示されている。   By the way, in the imaging apparatus as described above, various techniques for improving the convenience of the imaging apparatus have been proposed in recent years, and Patent Document 1 enables imaging using a desired mode without performing a complicated operation. For this purpose, a series of operation program data for the video camera is recorded on the barcode data card, while a barcode reading unit for reading the data on the data card is provided on the video camera, A technology for executing control by a microcomputer is disclosed.

また、特許文献2には、簡易に各種機能を設定可能とすることを目的として、機能設定項目とこれと対応するバーコードとを記憶する記憶手段と、画像を撮影する撮影手段と、前記撮影手段により撮影された画像が前記記憶手段に記憶されたバーコードと一致するか否かを判定し、その判定結果に基づき機能設定を行う制御手段と、を有する技術が開示されている。   Further, in Patent Document 2, for the purpose of enabling various functions to be easily set, a storage unit that stores function setting items and a corresponding bar code, an imaging unit that captures an image, and the imaging A technique is disclosed that includes a control unit that determines whether or not an image captured by the unit matches a barcode stored in the storage unit, and sets a function based on the determination result.

その一方で、近年、1次元のバーコードより多くの情報を記録できるコードとしてQR(Quick Response)コード(登録商標)等の2次元コードが普及してきており、上述した特許文献に開示されている技術に対して2次元コードを適用することにより、より複雑な動作の設定を1つのコードによって行うことができるようになる。なお、ここでは、バーコードに、1次元バーコードの他、2次元コードや当該2次元コードを拡張した3次元コードも含まれるものとし、各コードを区別することなく表記する場合には‘バーコード’と称する。   On the other hand, in recent years, two-dimensional codes such as QR (Quick Response) code (registered trademark) have become widespread as codes capable of recording more information than one-dimensional barcodes, and are disclosed in the above-mentioned patent documents. By applying a two-dimensional code to the technology, more complex operation settings can be made with a single code. Here, it is assumed that the barcode includes a one-dimensional barcode, a two-dimensional code, and a three-dimensional code obtained by extending the two-dimensional code. Called 'Cord'.

そして、この技術における2次元コードの秘匿性を向上させるために適用できる技術として、特許文献3には、情報単位であるデータセルを配置したデータセル領域と、このデータセル領域の位置情報を記録したファインダーパターン領域と、前記データセル領域及び前記ファインダーパターン領域の周囲に位置するように設けられ前記2つの領域を他の領域と区画する周辺領域とから構成された2次元コードにおいて、前記データセル領域のうちの少なくとも一部の領域に含まれる画像データを、視覚復号型暗号技術を用いて複数の画像データに分解し、これら複数の画像データの中の少なくとも1つの画像データを記録するように構成した技術が開示されている。
特開平5−260355号公報 特開2003−289350号公報 特開2003−331235号公報
As a technique that can be applied to improve the confidentiality of the two-dimensional code in this technique, Patent Document 3 records a data cell area in which a data cell as an information unit is arranged and position information of the data cell area. In the two-dimensional code comprising the finder pattern area, and the data cell area and a peripheral area provided around the finder pattern area and dividing the two areas from other areas, the data cell Image data included in at least some of the areas is decomposed into a plurality of image data using visual decryption encryption technology, and at least one of the plurality of image data is recorded. A structured technique is disclosed.
JP-A-5-260355 JP 2003-289350 A JP 2003-331235 A

ところで、上述したようなバーコードを撮像して当該バーコードにより示される情報を取得する場合、バーコード全体をデコード(decode)する必要があるため、当該デコードに時間がかかる、という問題点があった。特に、2次元コードや3次元コードをデコードする場合には、1次元バーコードに比較してデコードする情報量が著しく多いため、この問題点は深刻である。   Incidentally, when acquiring the information indicated by the barcode by imaging the barcode as described above, it is necessary to decode the entire barcode, so that there is a problem that the decoding takes time. It was. In particular, when a two-dimensional code or a three-dimensional code is decoded, the amount of information to be decoded is significantly larger than that of a one-dimensional barcode, and this problem is serious.

なお、上記特許文献3に開示されている技術では、2次元コードの秘匿性を向上させることはできるものの、デコードに要する時間については考慮されていないため、この問題点を解決することはできない。   Although the technique disclosed in Patent Document 3 can improve the secrecy of the two-dimensional code, it does not take into account the time required for decoding, and thus cannot solve this problem.

本発明は上記問題点を解決するためになされたものであり、無駄なデコード時間の発生を抑制することのできるバーコード及び撮像装置を提供することを目的とする。   The present invention has been made to solve the above problems, and an object of the present invention is to provide a barcode and an imaging apparatus that can suppress generation of useless decoding time.

上記目的を達成するために、本発明のバーコードは、予め定められた第1記録密度で所定情報がコード化されて記録された第1コード領域と、前記第1記録密度より低い第2記録密度で前記所定情報が何を示す情報なのかを特定することのできる特定情報がコード化されて記録された第2コード領域と、を有する。   In order to achieve the above object, the barcode of the present invention includes a first code area in which predetermined information is encoded and recorded at a predetermined first recording density, and a second recording lower than the first recording density. Specific information that can identify what the predetermined information indicates by density, and a second code area that is coded and recorded.

従って、本発明のバーコードによれば、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードするものとして利用することにより、無駄なデコード時間の発生を抑制することができる。   Therefore, according to the barcode of the present invention, the information corresponding to the second code area whose recording density is lower than that of the first code area is decoded, and the barcode is selected as a reading target based on the specific information obtained thereby. It is determined whether or not the barcode is to be read, and only when it is determined that the barcode is to be read, the information corresponding to the first code area is used for decoding, thereby generating unnecessary decoding time. Can be suppressed.

なお、本発明は、前記第1コード領域と前記第2コード領域の境界位置に設けられた所定形状のマークを更に有するものとしてもよい。   The present invention may further include a mark having a predetermined shape provided at a boundary position between the first code area and the second code area.

更に、本発明は、前記第1コード領域及び前記第2コード領域の各領域により構成されるコードが2次元コード又は3次元コードであるものとしてもよい。なお、上記2次元コードには、QRコード(登録商標)が含まれる。   Furthermore, according to the present invention, the code configured by each of the first code area and the second code area may be a two-dimensional code or a three-dimensional code. The two-dimensional code includes a QR code (registered trademark).

一方、上記目的を達成するために、本発明の撮像装置は、被写体を撮像することによって被写体像を示す画像情報を取得する撮像手段と、請求項1乃至請求項3の何れか1項記載のバーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報の前記第2コード領域に対応する情報をデコードする第1デコード手段と、前記第1デコード手段により得られた特定情報に基づいて前記バーコードが読み取り対象とするバーコードであるか否かを判定する判定手段と、前記判定手段により読み取り対象とするバーコードであると判定された場合に前記撮像によって取得された画像情報の前記第1コード領域に対応する情報をデコードする第2デコード手段と、を備えている。   On the other hand, in order to achieve the above object, the imaging apparatus according to the present invention includes an imaging unit that acquires image information indicating a subject image by imaging the subject, and any one of claims 1 to 3. When the barcode is imaged by the imaging means, the first decoding means for decoding information corresponding to the second code area of the image information acquired by the imaging, and the specific information obtained by the first decoding means A determination unit that determines whether or not the barcode is a barcode to be read based on the image, and an image acquired by the imaging when the determination unit determines that the barcode is a barcode to be read Second decoding means for decoding information corresponding to the first code area of information.

本発明の撮像装置によれば、本発明のバーコードが被写体を撮像することによって被写体像を示す画像情報を取得する撮像手段により撮像されたとき、第1デコード手段により、当該撮像によって取得された画像情報の前記第2コード領域に対応する情報がデコードされる。なお、上記撮像手段には、CCDエリアセンサ及びCMOSイメージ・センサが含まれる。   According to the imaging apparatus of the present invention, when the barcode of the present invention is imaged by the imaging unit that acquires the image information indicating the subject image by imaging the subject, the barcode is acquired by the first decoding unit by the imaging. Information corresponding to the second code area of the image information is decoded. Note that the imaging means includes a CCD area sensor and a CMOS image sensor.

そして、本発明では、前記第1デコード手段により得られた特定情報に基づいて前記バーコードが読み取り対象とするバーコードであるか否かが判定手段により判定され、読み取り対象とするバーコードであると判定された場合に、第2デコード手段により、前記撮像によって取得された画像情報の前記第1コード領域に対応する情報がデコードされる。   In the present invention, the determination unit determines whether the barcode is a barcode to be read based on the specific information obtained by the first decoding unit, and the barcode is to be read. Is determined, the second decoding means decodes information corresponding to the first code area of the image information acquired by the imaging.

このように、本発明の撮像装置によれば、本発明のバーコードに対して、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードしているので、無駄なデコード時間の発生を抑制することができる。   As described above, according to the imaging apparatus of the present invention, for the barcode of the present invention, the information corresponding to the second code area whose recording density is lower than the first code area is decoded, and the identification obtained thereby It is determined whether or not the barcode is a barcode to be read based on the information, and the information corresponding to the first code area is decoded only when it is determined to be a barcode to be read. Therefore, it is possible to suppress generation of useless decoding time.

なお、本発明は、前記特定情報が、自身の有効期限を示す期限情報を含むものとされ、前記バーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報により示される前記期限情報によって示される有効期限を過ぎていた場合に前記第2デコード手段によるデコードを禁止するデコード禁止手段を更に備えたものとしてもよい。   In the present invention, it is assumed that the specific information includes time limit information indicating its own expiration date, and when the barcode is imaged by the imaging means, the image information indicated by the image information acquired by the imaging Decoding prohibiting means for prohibiting decoding by the second decoding means when the expiration date indicated by the time limit information has passed may be further provided.

本発明のバーコードによれば、予め定められた第1記録密度で所定情報がコード化されて記録された第1コード領域と、前記第1記録密度より低い第2記録密度で前記所定情報が何を示す情報なのかを特定することのできる特定情報がコード化されて記録された第2コード領域と、を有しているので、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードするものとして利用することにより、無駄なデコード時間の発生を抑制することができる、という効果が得られる。   According to the barcode of the present invention, the predetermined information is recorded at a first code area in which predetermined information is coded and recorded at a predetermined first recording density, and at a second recording density lower than the first recording density. And a second code area in which specific information that can identify what information is coded is recorded, and corresponds to a second code area whose recording density is lower than that of the first code area Only when it is determined that the barcode is a barcode to be read based on the specific information obtained by decoding the information to be read and whether the barcode is to be read By using the information corresponding to the first code area as decoding, it is possible to suppress the generation of useless decoding time.

また、本発明の撮像装置によれば、本発明のバーコードに対して、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードしているので、無駄なデコード時間の発生を抑制することができる、という効果が得られる。   According to the imaging apparatus of the present invention, the information corresponding to the second code area whose recording density is lower than the first code area is decoded for the barcode of the present invention, and the specific information obtained thereby is decoded. Since it is determined whether or not the barcode is a barcode to be read based on the information, the information corresponding to the first code area is decoded only when it is determined to be a barcode to be read. The effect that generation | occurrence | production of useless decoding time can be suppressed is acquired.

以下、図面を参照して、本発明の実施の形態について詳細に説明する。なお、ここでは、本発明の撮像装置を、静止画像の撮影を行うデジタル電子スチルカメラ(以下、「デジタルカメラ」という。)に適用した場合について説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Here, the case where the imaging apparatus of the present invention is applied to a digital electronic still camera (hereinafter referred to as “digital camera”) that captures a still image will be described.

まず、図1を参照して、本実施の形態に係るデジタルカメラ10の外観上の構成を説明する。   First, an external configuration of the digital camera 10 according to the present embodiment will be described with reference to FIG.

デジタルカメラ10の正面には、被写体像を結像させるためのレンズ21と、撮影時に必要に応じて被写体に照射する光を発するストロボ44と、撮影する被写体の構図を決定するために用いられるファインダ20と、が備えられている。また、デジタルカメラ10の上面には、撮影を実行する際に押圧操作されるレリーズスイッチ(所謂シャッター)56Aと、電源スイッチ56Bと、モード切替スイッチ56Cと、が備えられている。   In front of the digital camera 10, a lens 21 for forming a subject image, a strobe 44 that emits light to irradiate the subject when necessary, and a viewfinder used to determine the composition of the subject to be photographed. 20 is provided. Further, on the upper surface of the digital camera 10, a release switch (so-called shutter) 56A, a power switch 56B, and a mode changeover switch 56C that are pressed when performing shooting are provided.

なお、本実施の形態に係るデジタルカメラ10のレリーズスイッチ56Aは、中間位置まで押下される状態(以下、「半押し状態」という。)と、当該中間位置を超えた最終押下位置まで押下される状態(以下、「全押し状態」という。)と、の2段階の押圧操作が検出可能に構成されている。   Note that the release switch 56A of the digital camera 10 according to the present embodiment is pressed down to an intermediate position (hereinafter referred to as “half-pressed state”) and to a final pressed position beyond the intermediate position. A two-stage pressing operation of a state (hereinafter referred to as a “fully pressed state”) can be detected.

そして、デジタルカメラ10では、レリーズスイッチ56Aを半押し状態にすることによりAE(Automatic Exposure、自動露出)機能が働いて露出状態(シャッタースピード、絞りの状態)が設定された後、AF(Auto Focus、自動合焦)機能が働いて合焦制御され、その後、引き続き全押し状態にすると露光(撮影)が行われる。   In the digital camera 10, the release switch 56A is pressed halfway to activate the AE (Automatic Exposure) function and set the exposure state (shutter speed, aperture state), and then AF (Auto Focus). , Automatic focusing) function is performed to control focusing, and then exposure (photographing) is performed when the button is fully pressed.

また、モード切替スイッチ56Cは、撮影を行うモードである撮影モード及び被写体像を後述するLCD38に再生するモードである再生モードの何れかのモードに設定する際に回転操作される。   The mode changeover switch 56C is rotated when setting to any one of a shooting mode that is a mode for shooting and a playback mode that is a mode for playing back a subject image on the LCD 38 described later.

一方、デジタルカメラ10の背面には、前述のファインダ20の接眼部と、撮影された被写体像やメニュー画面等を表示する液晶ディスプレイ(以下、「LCD」という。)38と、十字カーソルスイッチ56Dと、が備えられている。なお、十字カーソルスイッチ56Dは、LCD38の表示領域における上・下・左・右の4方向の移動方向を示す4つの矢印キーを含んで構成されている。   On the other hand, on the back surface of the digital camera 10, an eyepiece of the finder 20, a liquid crystal display (hereinafter referred to as “LCD”) 38 for displaying a photographed subject image, a menu screen, and the like, and a cross cursor switch 56D. And are provided. The cross-cursor switch 56D includes four arrow keys that indicate four moving directions of up, down, left, and right in the display area of the LCD 38.

更に、デジタルカメラ10の背面には、LCD38にメニュー画面を表示させるときに押圧操作されるメニュースイッチと、それまでの操作内容を確定するときに押圧操作される決定スイッチと、直前の操作内容をキャンセルするときに押圧操作されるキャンセルスイッチと、後述するバーコード撮影モードに設定するときに押圧操作されるバーコード撮影モード設定スイッチとが備えられている。   Furthermore, on the back of the digital camera 10, a menu switch that is pressed when displaying the menu screen on the LCD 38, a determination switch that is pressed when confirming the operation content up to that point, and the previous operation content are displayed. A cancel switch that is pressed when canceling and a bar code shooting mode setting switch that is pressed when setting a bar code shooting mode to be described later are provided.

次に、図2を参照して、本実施の形態に係るデジタルカメラ10の電気系の要部構成を説明する。   Next, with reference to FIG. 2, the configuration of the main part of the electrical system of the digital camera 10 according to the present embodiment will be described.

デジタルカメラ10は、前述のレンズ21を含んで構成された光学ユニット22と、レンズ21の光軸後方に配設された電荷結合素子(以下、「CCD」という。)24と、入力されたアナログ信号に対して各種のアナログ信号処理を行うアナログ信号処理部26と、を含んで構成されている。   The digital camera 10 includes an optical unit 22 including the lens 21 described above, a charge coupled device (hereinafter referred to as “CCD”) 24 disposed behind the optical axis of the lens 21, and an input analog. And an analog signal processing unit 26 that performs various analog signal processing on the signal.

また、デジタルカメラ10は、入力されたアナログ信号をデジタルデータに変換するアナログ/デジタル変換器(以下、「ADC」という。)28と、入力されたデジタルデータに対して各種のデジタル信号処理を行うデジタル信号処理部30と、を含んで構成されている。   The digital camera 10 also performs an analog / digital converter (hereinafter referred to as “ADC”) 28 that converts an input analog signal into digital data, and performs various digital signal processing on the input digital data. And a digital signal processing unit 30.

なお、デジタル信号処理部30は、所定容量のラインバッファを内蔵し、入力されたデジタルデータを後述するメモリ48の所定領域に直接記憶させる制御も行う。   The digital signal processing unit 30 has a built-in line buffer having a predetermined capacity, and also performs control to directly store the input digital data in a predetermined area of the memory 48 described later.

CCD24の出力端はアナログ信号処理部26の入力端に、アナログ信号処理部26の出力端はADC28の入力端に、ADC28の出力端はデジタル信号処理部30の入力端に、各々接続されている。従って、CCD24から出力された被写体像を示すアナログ信号はアナログ信号処理部26によって所定のアナログ信号処理が施され、ADC28によってデジタル画像データに変換された後にデジタル信号処理部30に入力される。   The output terminal of the CCD 24 is connected to the input terminal of the analog signal processing unit 26, the output terminal of the analog signal processing unit 26 is connected to the input terminal of the ADC 28, and the output terminal of the ADC 28 is connected to the input terminal of the digital signal processing unit 30. . Accordingly, the analog signal indicating the subject image output from the CCD 24 is subjected to predetermined analog signal processing by the analog signal processing unit 26, converted into digital image data by the ADC 28, and then input to the digital signal processing unit 30.

一方、デジタルカメラ10は、被写体像やメニュー画面等をLCD38に表示させるための信号を生成してLCD38に供給するLCDインタフェース36と、デジタルカメラ10全体の動作を司るCPU(中央処理装置)40と、撮影により得られたデジタル画像データ等を一時的に記憶するメモリ48と、メモリ48に対するアクセスの制御を行うメモリインタフェース46と、を含んで構成されている。   On the other hand, the digital camera 10 generates a signal for displaying a subject image, a menu screen or the like on the LCD 38 and supplies the signal to the LCD 38, and a CPU (Central Processing Unit) 40 that controls the operation of the entire digital camera 10. A memory 48 that temporarily stores digital image data obtained by photographing, and a memory interface 46 that controls access to the memory 48 are included.

更に、デジタルカメラ10は、可搬型のメモリカード52をデジタルカメラ10でアクセス可能とするための外部メモリインタフェース50と、デジタル画像データに対する圧縮処理及び伸張処理を行う圧縮・伸張処理回路54と、を含んで構成されている。   Further, the digital camera 10 includes an external memory interface 50 for enabling the portable memory card 52 to be accessed by the digital camera 10, and a compression / decompression processing circuit 54 for performing compression processing and decompression processing on the digital image data. It is configured to include.

なお、本実施の形態のデジタルカメラ10では、メモリ48としてフラッシュ・メモリ(Flash Memory)が用いられ、メモリカード52としてスマートメディア(Smart Media(登録商標))が用いられている。   In the digital camera 10 of the present embodiment, a flash memory is used as the memory 48, and a smart media (Smart Media (registered trademark)) is used as the memory card 52.

デジタル信号処理部30、LCDインタフェース36、CPU40、メモリインタフェース46、外部メモリインタフェース50及び圧縮・伸張処理回路54はシステムバスBUSを介して相互に接続されている。従って、CPU40は、デジタル信号処理部30及び圧縮・伸張処理回路54の作動の制御、LCD38に対するLCDインタフェース36を介した各種情報の表示、メモリ48及びメモリカード52へのメモリインタフェース46ないし外部メモリインタフェース50を介したアクセスを各々行うことができる。   The digital signal processing unit 30, the LCD interface 36, the CPU 40, the memory interface 46, the external memory interface 50, and the compression / decompression processing circuit 54 are connected to each other via a system bus BUS. Therefore, the CPU 40 controls the operation of the digital signal processing unit 30 and the compression / decompression processing circuit 54, displays various information via the LCD interface 36 to the LCD 38, and the memory interface 46 or the external memory interface to the memory 48 and the memory card 52. 50 can be accessed each.

一方、デジタルカメラ10には、主としてCCD24を駆動させるためのタイミング信号を生成してCCD24に供給するタイミングジェネレータ32が備えられており、CCD24の駆動はCPU40によりタイミングジェネレータ32を介して制御される。   On the other hand, the digital camera 10 includes a timing generator 32 that mainly generates a timing signal for driving the CCD 24 and supplies the timing signal to the CCD 24, and the driving of the CCD 24 is controlled by the CPU 40 via the timing generator 32.

更に、デジタルカメラ10にはモータ駆動部34が備えられており、光学ユニット22に備えられた図示しない焦点調整モータ、ズームモータ及び絞り駆動モータの駆動もCPU40によりモータ駆動部34を介して制御される。   Further, the digital camera 10 is provided with a motor drive unit 34, and driving of a focus adjustment motor, a zoom motor, and an aperture drive motor (not shown) provided in the optical unit 22 is also controlled by the CPU 40 via the motor drive unit 34. The

すなわち、本実施の形態に係るレンズ21は複数枚のレンズを有し、焦点距離の変更(変倍)が可能なズームレンズとして構成されており、図示しないレンズ駆動機構を備えている。このレンズ駆動機構に上記焦点調整モータ、ズームモータ及び絞り駆動モータは含まれるものであり、これらのモータは各々CPU40の制御によりモータ駆動部34から供給された駆動信号によって駆動される。   In other words, the lens 21 according to the present embodiment has a plurality of lenses, is configured as a zoom lens that can change (magnify) the focal length, and includes a lens driving mechanism (not shown). The lens drive mechanism includes the focus adjustment motor, the zoom motor, and the aperture drive motor, and these motors are each driven by a drive signal supplied from the motor drive unit 34 under the control of the CPU 40.

更に、前述のレリーズスイッチ56A、電源スイッチ56B、モード切替スイッチ56C、十字カーソルスイッチ56D、メニュースイッチ、バーコード撮影モード設定スイッチ等の各種スイッチ(同図では、「操作部56」と総称。)はCPU40に接続されており、CPU40は、これらの操作部56に対する操作状態を常時把握できる。   Further, various switches such as the release switch 56A, the power switch 56B, the mode switch 56C, the cross cursor switch 56D, the menu switch, and the barcode shooting mode setting switch (generally referred to as “operation unit 56” in the figure). The CPU 40 is connected to the CPU 40, and the CPU 40 can always grasp the operation state of the operation unit 56.

また、デジタルカメラ10には、ストロボ44とCPU40との間に介在されると共に、CPU40の制御によりストロボ44を発光させるための電力を充電する充電部42が備えられている。更に、ストロボ44はCPU40にも接続されており、ストロボ44の発光はCPU40によって制御される。   In addition, the digital camera 10 includes a charging unit 42 that is interposed between the strobe 44 and the CPU 40 and charges power for causing the strobe 44 to emit light under the control of the CPU 40. Further, the strobe 44 is also connected to the CPU 40, and the light emission of the strobe 44 is controlled by the CPU 40.

ところで、本実施の形態に係るデジタルカメラ10は、各種機能を実現するために実行されるプログラム(ここでは、ファームウエア)がメモリ48の所定領域に予め記憶されている。そして、デジタルカメラ10には、上記プログラムによる処理内容を変更するための情報を示す所定画像(ここでは、2次元コード)がCCD24により撮像されたとき、当該撮像によって取得された画像データにより示される情報を用いて上記プログラムによる処理内容を変更する動作モードであるバーコード撮影モードが予め用意されている。   Incidentally, in the digital camera 10 according to the present embodiment, a program (here, firmware) that is executed in order to realize various functions is stored in a predetermined area of the memory 48 in advance. When a predetermined image (in this case, a two-dimensional code) indicating information for changing the processing content of the program is captured by the CCD 24, the digital camera 10 is indicated by image data acquired by the imaging. A bar code shooting mode is prepared in advance, which is an operation mode for changing the processing contents of the program using information.

図3には、本実施の形態に係る2次元コード60の構成が示されている。   FIG. 3 shows the configuration of the two-dimensional code 60 according to the present embodiment.

同図に示すように、本実施の形態に係る2次元コード60は略正方形とされており、その内部を水平方向及び垂直方向の各方向に対して各々2つずつの同一面積の領域で合計4つの領域に区分し、平面視左上の領域がインデックス領域60A(本発明の「第2コード領域」に相当。)とされ、残りの領域が実データ領域60B(本発明の「第1コード領域」に相当。)とされている。なお、このように、本実施の形態に係る2次元コード60は、全体の面積の25%の領域をインデックス領域60Aとし、残りの75%の領域を実データ領域60Bとしているが、インデックス領域60Aと実データ領域60Bの面積比はこれに限らず、任意の面積比を適用することができる。   As shown in the figure, the two-dimensional code 60 according to the present embodiment is substantially square, and the inside of the two-dimensional code 60 is a total of two areas of the same area in each of the horizontal and vertical directions. The area is divided into four areas, and the upper left area in plan view is an index area 60A (corresponding to the “second code area” of the present invention), and the remaining area is an actual data area 60B (“first code area of the present invention”). ”).) As described above, in the two-dimensional code 60 according to the present embodiment, the area of 25% of the entire area is the index area 60A and the remaining 75% of the area is the actual data area 60B. The area ratio of the actual data region 60B is not limited to this, and an arbitrary area ratio can be applied.

ここで、実データ領域60Bは、少なくともデジタルカメラ10のCCD24の最大解像度で読み取り可能な記録密度以下であるものとして予め定められた第1記録密度で所定情報がコード化されて記録されている。   Here, in the actual data area 60B, predetermined information is encoded and recorded at a first recording density determined in advance as being at least a recording density that can be read at the maximum resolution of the CCD 24 of the digital camera 10.

一方、インデックス領域60Aは、上記第1記録密度より低い第2記録密度(本実施の形態では、第1記録密度の半分の記録密度)で前記所定情報が何を示す情報なのかを特定することのできる情報(本発明の「特定情報」に相当。)がコード化されて記録されている。   On the other hand, the index area 60A specifies what the predetermined information indicates at a second recording density lower than the first recording density (in the present embodiment, a recording density that is half the first recording density). Information (corresponding to “specific information” of the present invention) that can be encoded and recorded.

一方、図4には、本実施の形態に係る2次元コード60によって示される情報が模式的に示されている。   On the other hand, FIG. 4 schematically shows information indicated by the two-dimensional code 60 according to the present embodiment.

同図に示すように、本実施の形態に係る2次元コード60には、インデックス領域60Aに記録される情報であるインデックス情報と、実データ領域60Bに記録される情報である実データが含まれている。なお、上記インデックス情報には、種別情報、有効期間情報、バージョン情報等が含まれている。   As shown in the figure, the two-dimensional code 60 according to the present embodiment includes index information that is information recorded in the index area 60A and real data that is information recorded in the actual data area 60B. ing. The index information includes type information, validity period information, version information, and the like.

ここで、上記種別情報は、上記実データとして記録されている情報の種別を示す情報であり、本実施の形態では、ファームウエア、画像データ、テキストデータ、及び言語データの何れか1つを示す情報が記録される。また、上記有効期限情報は、当該2次元コード60の有効期限を示す情報であり、本実施の形態では、年月日を示す情報が記録される。更に、上記バージョン情報は、上記実データとして記録されている情報のバージョンを示す情報であり、本実施の形態では、当該バージョンを示す数値情報が記録される。   Here, the type information is information indicating the type of information recorded as the actual data. In the present embodiment, the type information indicates any one of firmware, image data, text data, and language data. Information is recorded. The expiration date information is information indicating the expiration date of the two-dimensional code 60, and in the present embodiment, information indicating the date is recorded. Furthermore, the version information is information indicating the version of the information recorded as the actual data. In the present embodiment, numerical information indicating the version is recorded.

なお、本実施の形態に係る2次元コード60の実データとして記録されるファームウエアは、その一部領域に自身のバージョンを示す情報(以下、「ファームバージョン情報」という。)と、自身がどのファームウエアであるかを示す情報(以下、「ファーム種別情報」という。)が予め含まれるものとされている。また、本実施の形態では、2次元コード60が印刷された所定用紙がデジタルカメラ10のメーカによって提供されるものとされている。   The firmware recorded as the actual data of the two-dimensional code 60 according to the present embodiment includes information indicating its own version (hereinafter referred to as “firmware version information”) in a partial area thereof, Information indicating whether it is firmware (hereinafter referred to as “firm type information”) is included in advance. In the present embodiment, a predetermined paper on which the two-dimensional code 60 is printed is provided by the manufacturer of the digital camera 10.

次に、本実施の形態に係るデジタルカメラ10の撮影時における全体的な動作について簡単に説明する。   Next, an overall operation at the time of shooting of the digital camera 10 according to the present embodiment will be briefly described.

まず、CCD24は、光学ユニット22を介した撮像を行い、被写体像を示すR(赤)、G(緑)、B(青)毎のアナログ信号をアナログ信号処理部26に順次出力する。アナログ信号処理部26は、CCD24から入力されたアナログ信号に対して相関二重サンプリング処理等のアナログ信号処理を施した後にADC28に順次出力する。   First, the CCD 24 performs imaging through the optical unit 22 and sequentially outputs analog signals for R (red), G (green), and B (blue) indicating the subject image to the analog signal processing unit 26. The analog signal processing unit 26 performs analog signal processing such as correlated double sampling processing on the analog signal input from the CCD 24 and sequentially outputs the analog signal to the ADC 28.

ADC28は、アナログ信号処理部26から入力されたR、G、B毎のアナログ信号を各々12ビットのR、G、Bの信号(デジタル画像データ)に変換してデジタル信号処理部30に順次出力する。デジタル信号処理部30は、内蔵しているラインバッファにADC28から順次入力されるデジタル画像データを蓄積して一旦メモリ48の所定領域に直接格納する。   The ADC 28 converts the R, G, and B analog signals input from the analog signal processing unit 26 into 12-bit R, G, and B signals (digital image data) and sequentially outputs them to the digital signal processing unit 30. To do. The digital signal processing unit 30 accumulates digital image data sequentially input from the ADC 28 in a built-in line buffer and temporarily stores the digital image data directly in a predetermined area of the memory 48.

メモリ48の所定領域に格納されたデジタル画像データは、CPU40による制御に応じてデジタル信号処理部30により読み出され、所定の物理量に応じたR,G,B毎のデジタルゲインをかけることでホワイトバランス調整を行うと共に、ガンマ処理及びシャープネス処理を行って8ビットのデジタル画像データを生成する。   The digital image data stored in a predetermined area of the memory 48 is read out by the digital signal processing unit 30 according to the control by the CPU 40, and is subjected to white gain by applying a digital gain for each of R, G, and B according to a predetermined physical quantity. In addition to performing balance adjustment, gamma processing and sharpness processing are performed to generate 8-bit digital image data.

そして、デジタル信号処理部30は、生成した8ビットのデジタル画像データに対しYC信号処理を施して輝度信号Yとクロマ信号Cr、Cb(以下、「YC信号」という。)を生成し、YC信号をメモリ48の上記所定領域とは異なる領域に格納する。   The digital signal processing unit 30 performs YC signal processing on the generated 8-bit digital image data to generate a luminance signal Y and chroma signals Cr and Cb (hereinafter referred to as “YC signal”), and the YC signal. Are stored in an area different from the predetermined area of the memory 48.

なお、LCD38は、CCD24による連続的な撮像によって得られた動画像(スルー画像)を表示してファインダとして使用することができるものとして構成されており、LCD38をファインダとして使用する場合には、生成したYC信号を、LCDインタフェース36を介して順次LCD38に出力する。これによってLCD38にスルー画像が表示されることになる。   The LCD 38 is configured to display a moving image (through image) obtained by continuous imaging by the CCD 24 and can be used as a finder. When the LCD 38 is used as a finder, the LCD 38 is generated. The YC signals thus output are sequentially output to the LCD 38 via the LCD interface 36. As a result, a through image is displayed on the LCD 38.

ここで、レリーズスイッチ56Aがユーザによって半押し状態とされたタイミングで前述のようにAE機能が働いて露出状態が設定された後、AF機能が働いて合焦制御され、その後、引き続き全押し状態とされたタイミングで、その時点でメモリ48に格納されているYC信号を、圧縮・伸張処理回路54によって所定の圧縮形式(本実施の形態では、JPEG形式)で圧縮した後に外部メモリインタフェース50を介してメモリカード52に電子化ファイル(画像ファイル)として記録する。   Here, at the timing when the release switch 56A is half pressed by the user, after the AE function is activated and the exposure state is set as described above, the AF function is activated and the focus control is performed, and then the fully pressed state is continued. The YC signal stored in the memory 48 at that time is compressed in a predetermined compression format (in this embodiment, JPEG format) by the compression / decompression processing circuit 54 and then the external memory interface 50 is To the memory card 52 as an electronic file (image file).

次に、図5を参照して、バーコード撮影モードが設定された際のデジタルカメラ10の作用を説明する。なお、図5は、バーコード撮影モード設定スイッチが押圧操作された際にデジタルカメラ10のCPU40によって実行されるバーコード撮影モード処理プログラムの処理の流れを示すフローチャートであり、当該プログラムはメモリ48の所定領域に予め記憶されている。また、ここでは、錯綜を回避するために、バーコード撮影モード処理プログラムが予め定められたファームウエア(以下、「更新対象ファームウエア」という。)のバージョン・アップ(更新)のみに対応するものとして説明する。   Next, the operation of the digital camera 10 when the barcode shooting mode is set will be described with reference to FIG. FIG. 5 is a flowchart showing a flow of processing of a barcode shooting mode processing program executed by the CPU 40 of the digital camera 10 when the barcode shooting mode setting switch is pressed, and the program is stored in the memory 48. It is stored in advance in a predetermined area. Also, here, in order to avoid complications, it is assumed that the barcode shooting mode processing program supports only version upgrade (update) of a predetermined firmware (hereinafter referred to as “update target firmware”). explain.

まず、ステップ100では、上記第2記録密度で記録されているインデックス領域60Aのコードを読み取ることのできる解像度で、かつ最小の解像度にて撮像を行うようにCCD24、アナログ信号処理部26、デジタル信号処理部30等の撮像解像度に関係する各部を設定する。ここで、ユーザは、バーコード撮影モード設定スイッチを押圧操作した後、デジタルカメラ10によって処理対象とする2次元コード60を撮影する。   First, in step 100, the CCD 24, the analog signal processing unit 26, the digital signal so as to perform imaging at a resolution at which the code of the index area 60A recorded at the second recording density can be read and at a minimum resolution. Each unit related to the imaging resolution such as the processing unit 30 is set. Here, the user photographs the two-dimensional code 60 to be processed by the digital camera 10 after pressing the barcode photographing mode setting switch.

そこで、次のステップ102では、ユーザによる撮影の完了待ちを行い、次のステップ104では、当該撮影によって記憶されたデジタル画像データをメモリ48から読み出すことによって当該画像データを取得し、次のステップ106にて、取得したデジタル画像データによって示される画像に有効な2次元コード(ここでは、一例として図3及び図4に示される構成とされた2次元コードであり、以下、「処理対象画像」という。)が含まれているか否かを判定して、肯定判定となった場合はステップ108に移行する。   Therefore, in the next step 102, the user waits for the completion of shooting, and in the next step 104, the digital image data stored by the shooting is read from the memory 48 to acquire the image data, and the next step 106. The two-dimensional code effective for the image indicated by the acquired digital image data (here, the two-dimensional code configured as shown in FIGS. 3 and 4 as an example, and hereinafter referred to as “processing target image”) .) Is included, and if the determination is affirmative, the routine proceeds to step 108.

ステップ108では、処理対象画像におけるインデックス領域60Aのコードをデコードし、次のステップ110では、当該デコードにより得られた種別情報がファームウエアを示すものであるか否かを判定することにより、処理対象画像がファームウエアのバージョン・アップ(更新)を行うためのものであるか否かを判定し、肯定判定となった場合はステップ112に移行する。   In step 108, the code of the index area 60A in the processing target image is decoded, and in the next step 110, it is determined whether or not the type information obtained by the decoding indicates firmware. It is determined whether or not the image is for firmware upgrade (update). If the determination is affirmative, the process proceeds to step 112.

ステップ112では、メモリ48に既に記憶(インストール)されている更新対象ファームウエアのファームバージョン情報を読み出し、次のステップ114にて、当該バージョン情報により示されるバージョンが、上記デコードにより得られたバージョン情報により示されるバージョン以下であるか否かを判定することにより、処理対象画像に含まれるファームウエアが新バージョンのファームウエアであるか否かを判定して、肯定判定となった場合はステップ116に移行する。   In step 112, the firmware version information of the update target firmware already stored (installed) in the memory 48 is read, and in the next step 114, the version indicated by the version information is the version information obtained by the decoding. It is determined whether or not the firmware included in the processing target image is a new version of firmware by determining whether or not the version is less than or equal to the version indicated by step S <b> 116. Transition.

ステップ116では、現時点が上記デコードにより得られた有効期限情報により示される有効期限以内となっているか否かを判定し、肯定判定となった場合はステップ120に移行する。   In step 116, it is determined whether or not the current time is within the expiration date indicated by the expiration date information obtained by the decoding. If the determination is affirmative, the process proceeds to step 120.

一方、上記ステップ106、ステップ110、ステップ114、及びステップ116の何れかにおいて否定判定となった場合はステップ118に移行して、予め定められた警告画面を表示するようにLCDインタフェース36を制御し、その後に本バーコード撮影モード処理プログラムを終了する。   On the other hand, if a negative determination is made in any of Step 106, Step 110, Step 114, and Step 116, the process proceeds to Step 118 and the LCD interface 36 is controlled to display a predetermined warning screen. Thereafter, the barcode shooting mode processing program is terminated.

図6(A)には、上記ステップ118の処理によってLCD38に表示される警告画面の表示状態が示されている。同図に示されるように、本実施の形態に係る警告画面では、ファームウエアの更新を行うことができなかったことを示すメッセージが、その理由と共に表示される。従って、当該画面を参照することにより、ユーザは、これらの事実を把握することができる。   FIG. 6A shows the display state of the warning screen displayed on the LCD 38 by the processing of step 118 described above. As shown in the figure, on the warning screen according to the present embodiment, a message indicating that the firmware could not be updated is displayed along with the reason. Therefore, the user can grasp these facts by referring to the screen.

一方、ステップ120では、予め定められた確認画面を表示するようにLCDインタフェース36を制御し、次のステップ122にて、所定情報の入力待ちを行う。   On the other hand, in step 120, the LCD interface 36 is controlled to display a predetermined confirmation screen, and in the next step 122, input of predetermined information is waited.

図6(B)には、上記ステップ120の処理によってLCD38に表示される確認画面の表示状態が示されている。同図に示されるように、本実施の形態に係る確認画面では、ファームウエアを更新してよいか否かの指示入力を促すメッセージが、実行ボタン及び中止ボタンと共に表示される。同図に示される確認画面が表示されると、ユーザは、ファームウエアを更新する場合は実行ボタンを、ファームウエアの更新を中止する場合には中止ボタンを、各々十字カーソルスイッチ56Dの操作によって指定する。これに応じて、上記ステップ122が肯定判定となってステップ124に移行する。   FIG. 6B shows the display state of the confirmation screen displayed on the LCD 38 by the process of step 120 described above. As shown in the figure, on the confirmation screen according to the present embodiment, a message for prompting an instruction to update the firmware is displayed together with an execution button and a cancel button. When the confirmation screen shown in the figure is displayed, the user designates an execution button when updating the firmware and a cancel button when updating the firmware by operating the cross cursor switch 56D. To do. In response, step 122 is affirmative and the process proceeds to step 124.

ステップ124では、確認画面上でユーザによって実行ボタンが指定されたか否かを判定することにより、ファームウエアを更新するか否かを判定し、否定判定となった場合はステップ126に移行してバーコード撮影モードを終了した後、本バーコード撮影モード処理プログラムを終了する。   In step 124, it is determined whether or not the firmware is to be updated by determining whether or not the execution button has been designated by the user on the confirmation screen. After ending the code shooting mode, the barcode shooting mode processing program is ended.

一方、上記ステップ124において肯定判定となった場合にはステップ128に移行し、上記第1記録密度で記録されている実データ領域60Bのコードを読み取ることのできる解像度で、かつ最小の解像度にて撮像を行うようにCCD24、アナログ信号処理部26、デジタル信号処理部30等の撮像解像度に関係する各部を設定する。ここで、ユーザは、デジタルカメラ10によって処理対象とする2次元コード60を再度撮影する。   On the other hand, if the determination in step 124 is affirmative, the process proceeds to step 128, at a resolution at which the code of the actual data area 60B recorded at the first recording density can be read, and at a minimum resolution. Each unit related to the imaging resolution such as the CCD 24, the analog signal processing unit 26, and the digital signal processing unit 30 is set so as to perform imaging. Here, the user re-photographs the two-dimensional code 60 to be processed by the digital camera 10.

そこで、次のステップ130では、ユーザによる撮影の完了待ちを行い、次のステップ132では、当該撮影によって記憶されたデジタル画像データをメモリ48から読み出すことによって当該画像データを取得し、次のステップ134にて、取得したデジタル画像データによって示される画像における実データ領域60Bのコードをデコードする。   Therefore, in the next step 130, the user waits for the completion of shooting, and in the next step 132, the digital image data stored by the shooting is read from the memory 48 to acquire the image data, and the next step 134. Then, the code of the actual data area 60B in the image indicated by the acquired digital image data is decoded.

次のステップ136では、上記ステップ134の処理によって得られたファームウエアをメモリ48の更新対象ファームウエアに上書きすることにより当該更新対象ファームウエアをバージョン・アップし、次のステップ138にて、予め定められた更新完了画面を表示するようにLCDインタフェース36を制御する。   In the next step 136, the firmware obtained by the process in step 134 is overwritten on the firmware to be updated in the memory 48 to update the version of the firmware to be updated. The LCD interface 36 is controlled to display the updated update completion screen.

図6(C)には、本ステップ138の処理によってLCD38に表示される更新完了画面の表示状態が示されている。同図に示されるように、本実施の形態に係る更新完了画面では、ファームウエアの更新が完了した旨を示すメッセージが表示される。   FIG. 6C shows the display state of the update completion screen displayed on the LCD 38 by the process of step 138. As shown in the figure, a message indicating that the firmware update is completed is displayed on the update completion screen according to the present embodiment.

そして、次のステップ140にて、デジタルカメラ10本体のリブート(Reboot)を実行して、本バーコード撮影モード処理プログラムを終了する。   Then, at the next step 140, the digital camera 10 main body is rebooted (Reboot), and the barcode photographing mode processing program is terminated.

以上詳細に説明したように、本実施の形態に係る2次元コードでは、予め定められた第1記録密度で所定情報(ここでは、実データ)がコード化されて記録された第1コード領域(ここでは、実データ領域60B)と、前記第1記録密度より低い第2記録密度で前記所定情報が何を示す情報なのかを特定することのできる特定情報(ここでは、インデックス情報)がコード化されて記録された第2コード領域(ここでは、インデックス領域60A)と、を有しているので、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードするものとして利用することにより、無駄なデコード時間の発生を抑制することができる。   As described above in detail, in the two-dimensional code according to the present embodiment, the first code area (in this case, actual data) is encoded and recorded with a predetermined first recording density (the actual data). Here, the actual data area 60B) and specific information (here, index information) that can specify what the predetermined information indicates at a second recording density lower than the first recording density are encoded. And the recorded second code area (here, index area 60A), the information corresponding to the second code area whose recording density is lower than that of the first code area is decoded, thereby Based on the obtained specific information, it is determined whether or not the barcode is a barcode to be read. Only when it is determined that the barcode is a barcode to be read, the first code is read. By utilizing as decoding the information corresponding to the region, it is possible to suppress the wasteful decoding time.

また、本実施の形態では、本発明のバーコードとして2次元コードを適用しているので、1次元バーコードとした場合に比較して多くの情報を記録することができ、より複雑な処理に対応することができる。   In the present embodiment, since the two-dimensional code is applied as the barcode of the present invention, more information can be recorded as compared with the case of the one-dimensional barcode, and more complicated processing can be performed. Can respond.

そして、本実施の形態に係る撮像装置(ここでは、デジタルカメラ10)では、上記2次元コードに対して、記録密度が第1コード領域より低い第2コード領域に対応する情報をデコードして、これによって得られた特定情報に基づいて当該バーコードが読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定した場合のみに第1コード領域に対応する情報をデコードしているので、無駄なデコード時間の発生を抑制することができる。   And in the imaging device (here, the digital camera 10) according to the present embodiment, the information corresponding to the second code area whose recording density is lower than the first code area is decoded for the two-dimensional code, Based on the specific information obtained by this, it is determined whether or not the barcode is a barcode to be read, and only when it is determined to be a barcode to be read, it corresponds to the first code area. Since information is decoded, generation of useless decoding time can be suppressed.

更に、本実施の形態に係る撮像装置では、前記特定情報が、自身の有効期限を示す期限情報を含むものとされ、前記バーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報により示される前記期限情報によって示される有効期限を過ぎていた場合に前記第1コード領域に対応する情報のデコードを禁止しているので、有効期限を過ぎたバーコードの第1コード領域に対応する情報のデコードを未然に回避することができる。   Furthermore, in the imaging apparatus according to the present embodiment, the specific information includes expiration date information indicating its own expiration date, and is acquired by the imaging when the barcode is imaged by the imaging means. Since the decoding of information corresponding to the first code area is prohibited when the expiration date indicated by the expiration date information indicated by the image information has passed, the first code area of the barcode whose expiration date has passed is prohibited. The decoding of the corresponding information can be avoided beforehand.

また、本実施の形態では、前記特定情報が自身のバージョンを示すバージョン情報を含むものとされ、前記バーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報により示される前記バージョン情報により示されるバージョンが前記記憶手段に記憶されているファームウエアのバージョン以下である場合にファームウエアの更新を禁止しているので、既にバージョン・アップが完了しているファームウエアの無駄なインストールを未然に防止することができる。   In the present embodiment, the specific information includes version information indicating its own version, and when the barcode is imaged by the imaging means, the image information indicated by the image information acquired by the imaging is used. Since the firmware update is prohibited when the version indicated by the version information is equal to or lower than the firmware version stored in the storage means, useless installation of firmware that has already been upgraded Can be prevented in advance.

なお、上記実施の形態では、本発明のバーコードの一例としてインデックス領域60Aと実データ領域60Bの境界位置が既知とされた2次元コード60(図3参照。)を適用した場合について説明したが、本発明はこれに限定されるものではなく、例えば、図7に示すように、インデックス領域62Aと実データ領域62Bの境界位置を示すマーク62Cが設けられた2次元コード62を適用する形態とすることもできる。この場合、デジタルカメラ10のCPU40は、バーコード撮影モード処理プログラム(図5参照。)の実行時に処理対象画像からマーク62Cの位置を検出して、インデックス領域62A及び実データ領域62Bの各領域を区分することになる。この場合、インデックス領域と実データ領域の境界位置が既知である必要がなくなるので、2次元コードの利用範囲を広くすることができ、利便性を向上させることができる。なお、同図では、上記マークとして矩形状及びL字状のものを適用しているが、これに限らず、直線状、円形状、楕円形状等の他の形状のものを適用してもよいことは言うまでもない。   In the above embodiment, the case where the two-dimensional code 60 (see FIG. 3) in which the boundary position between the index area 60A and the actual data area 60B is known has been described as an example of the barcode of the present invention. The present invention is not limited to this. For example, as shown in FIG. 7, a two-dimensional code 62 provided with a mark 62C indicating the boundary position between the index area 62A and the actual data area 62B is applied. You can also In this case, the CPU 40 of the digital camera 10 detects the position of the mark 62C from the processing target image when executing the barcode shooting mode processing program (see FIG. 5), and sets the index area 62A and the actual data area 62B. It will be divided. In this case, since it is not necessary to know the boundary position between the index area and the actual data area, the use range of the two-dimensional code can be widened, and convenience can be improved. In the figure, rectangular and L-shaped marks are used as the mark, but the mark is not limited to this, and other shapes such as a linear shape, a circular shape, and an elliptical shape may be applied. Needless to say.

また、上記実施の形態では、本発明のバーコードとして2次元コード60を適用した場合について説明したが、本発明はこれに限定されるものではなく、例えば、1次元バーコードや3次元コードを適用する形態とすることもできる。   In the above embodiment, the case where the two-dimensional code 60 is applied as the barcode of the present invention has been described. However, the present invention is not limited to this, and for example, a one-dimensional barcode or a three-dimensional code is used. It can also be set as the form to apply.

図8には、この場合の3次元コード64の構成例が示されている。なお、同図に示される3次元コード64は、上記実施の形態に係る2次元コード60に比較して、インデックス領域64A及び実データ領域64Bに記録されるコードが複数階調(同図では、3階調)の濃度を有する点のみが異なっている。この場合、2次元コード60に比較して、より多くの情報を表現することができ、より幅広い用途に適用することができる。なお、3次元コードの他の形態例としては、2次元コード60に対し、インデックス領域60A及び実データ領域60Bに記録されるコードを複数の色で記録する形態等を例示することができる。   FIG. 8 shows a configuration example of the three-dimensional code 64 in this case. Note that the three-dimensional code 64 shown in the figure has a plurality of gradations (in the figure, the codes recorded in the index area 64A and the actual data area 64B are compared to the two-dimensional code 60 according to the above embodiment). The only difference is that it has a density of (3 gradations). In this case, as compared with the two-dimensional code 60, more information can be expressed and can be applied to a wider range of applications. As another example of the three-dimensional code, for the two-dimensional code 60, a code recorded in the index area 60A and the actual data area 60B with a plurality of colors can be exemplified.

また、上記実施の形態では、バーコード撮影モード処理プログラムにおいて、インデックス領域60Aの情報を取得するためと実データ領域60Bの情報を取得するために各々1回ずつ、合計2回撮影をユーザに実行させる場合について説明したが、本発明はこれに限定されるものではなく、例えば、撮影を、第1記録密度で記録されている実データ領域60Bのコードを読み取ることのできる解像度で、かつ最小の解像度にて撮像を行うように1回のみ実行させ、インデックス領域60Aのみのデコード結果に応じて処理対象画像が読み取り対象とするバーコードであるか否かを判定し、読み取り対象とするバーコードであると判定された場合のみに実データ領域60Bをデコードする形態とすることもできる。この場合、撮影回数を1回のみとすることができるので、より利便性を向上させることができる。   In the above-described embodiment, in the barcode shooting mode processing program, the user performs two shootings in total, once each for obtaining the information in the index area 60A and for obtaining the information in the actual data area 60B. Although the present invention has been described, the present invention is not limited to this. For example, the imaging can be performed at a resolution that can read the code of the actual data area 60B recorded at the first recording density, and at the minimum. It is executed only once so as to perform imaging at the resolution, and it is determined whether or not the processing target image is a barcode to be read according to the decoding result of only the index area 60A. Only when it is determined that there is a real data area 60B can be decoded. In this case, since the number of times of photographing can be set to only one, the convenience can be further improved.

また、上記実施の形態では、バーコード撮影モード設定スイッチが押圧操作された際にバーコード撮影モード処理プログラムを実行する場合について説明したが、本発明はこれに限定されるものではなく、例えば、2次元コード等の特定画像を撮影した際に実行する形態等、他のタイミングでバーコード撮影モード処理プログラムを実行する形態とすることもできる。この場合も、上記実施の形態と同様の効果を奏することができる。   In the above embodiment, the case where the barcode shooting mode processing program is executed when the barcode shooting mode setting switch is pressed has been described, but the present invention is not limited to this, for example, It is also possible to adopt a form in which the barcode photographing mode processing program is executed at another timing, such as a form that is executed when a specific image such as a two-dimensional code is photographed. In this case as well, the same effects as in the above embodiment can be obtained.

また、上記実施の形態において、2次元コード60のインデックス情報に処理対象とする機種を特定するための機種情報を含めておき、バーコード撮影モード処理プログラムにより、上記機種情報によって示される機種が自機でない場合に処理を中止する形態とすることもできる。この場合、自身と無関係の2次元コードについては処理を行わないようにすることができ、かつ機種別に本発明を実現することができる。   In the above embodiment, model information for specifying the model to be processed is included in the index information of the two-dimensional code 60, and the model indicated by the model information is automatically determined by the barcode shooting mode processing program. If the machine is not a machine, the process may be stopped. In this case, it is possible not to process the two-dimensional code unrelated to itself, and to realize the present invention for each model.

その他、上記実施の形態に係るデジタルカメラ10のハードウェアの構成及び2次元コード60の構成(図1〜図4参照。)は一例であり、本発明の主旨を逸脱しない範囲内において適宜変更可能であることは言うまでもない。   In addition, the hardware configuration of the digital camera 10 according to the above embodiment and the configuration of the two-dimensional code 60 (see FIGS. 1 to 4) are examples, and can be appropriately changed without departing from the gist of the present invention. Needless to say.

また、上記実施の形態において説明したバーコード撮影モード処理プログラムの処理の流れ(図5参照。)も一例であり、本発明の主旨を逸脱しない範囲内において、各ステップの処理順序の変更、処理内容の変更、不要なステップの削除、新たなステップの追加等を行うことができることは言うまでもない。   The processing flow of the barcode shooting mode processing program described in the above embodiment (see FIG. 5) is also an example, and the processing order of each step can be changed and processed without departing from the gist of the present invention. Needless to say, it is possible to change the contents, delete unnecessary steps, add new steps, and the like.

また、上記実施の形態において説明した各種画面の表示状態(図6参照。)も一例であり、本発明の主旨を逸脱しない範囲内において変更することができることは言うまでもない。   Further, the display states of various screens described in the above embodiment (see FIG. 6) are also examples, and it goes without saying that they can be changed without departing from the gist of the present invention.

更に、上記実施の形態では、本発明の撮像装置をデジタルカメラに適用した場合について説明したが、本発明は、PDA、携帯電話機等、撮影機能を有する電子機器であれば如何なるものにでも適用できることは言うまでもない。   Further, in the above embodiment, the case where the imaging device of the present invention is applied to a digital camera has been described. However, the present invention can be applied to any electronic device having a photographing function such as a PDA or a mobile phone. Needless to say.

実施の形態に係るデジタルカメラの外観を示す外観図である。It is an external view which shows the external appearance of the digital camera which concerns on embodiment. 実施の形態に係るデジタルカメラの電気系の要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of the electric system of the digital camera which concerns on embodiment. 実施の形態に係る2次元コードの構成を示す外観図(平面図)である。It is an external view (plan view) showing the configuration of the two-dimensional code according to the embodiment. 実施の形態に係る2次元コードのデータ構成を示す模式図である。It is a schematic diagram which shows the data structure of the two-dimensional code which concerns on embodiment. 実施の形態に係るバーコード撮影モード処理プログラムの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the barcode imaging | photography mode processing program which concerns on embodiment. 実施の形態に係る各種画面の表示状態を示す図であり、(A)は警告画面を示す図で、(B)は確認画面を示す図で、(C)は更新完了画面を示す図である。It is a figure which shows the display state of the various screen which concerns on embodiment, (A) is a figure which shows a warning screen, (B) is a figure which shows a confirmation screen, (C) is a figure which shows an update completion screen. . 実施の形態に係る2次元コードの構成の変形例を示す外観図(平面図)である。It is an external view (plan view) which shows the modification of the structure of the two-dimensional code which concerns on embodiment. 実施の形態に係る2次元コードの構成の他の変形例(3次元コード)を示す外観図(平面図)である。It is an external view (plan view) which shows the other modification (three-dimensional code) of the structure of the two-dimensional code which concerns on embodiment.

符号の説明Explanation of symbols

10 デジタルカメラ
24 CCD(撮像手段)
38 LCD
40 CPU(第1デコード手段、判定手段、第2デコード手段、デコード禁止手段)
48 メモリ
60 2次元コード(バーコード)
60A インデックス領域(第2コード領域)
60B 実データ領域(第1コード領域)
62 2次元コード(バーコード)
62A インデックス領域(第2コード領域)
62B 実データ領域(第1コード領域)
62C マーク
64 3次元コード(バーコード)
64A インデックス領域(第2コード領域)
64B 実データ領域(第1コード領域)
10 Digital camera 24 CCD (Imaging means)
38 LCD
40 CPU (first decoding means, determination means, second decoding means, decoding prohibition means)
48 memory 60 2D code (bar code)
60A Index area (second code area)
60B Actual data area (first code area)
62 Two-dimensional code (bar code)
62A Index area (second code area)
62B Real data area (first code area)
62C Mark 64 3D code (barcode)
64A Index area (second code area)
64B actual data area (first code area)

Claims (5)

予め定められた第1記録密度で所定情報がコード化されて記録された第1コード領域と、
前記第1記録密度より低い第2記録密度で前記所定情報が何を示す情報なのかを特定することのできる特定情報がコード化されて記録された第2コード領域と、
を有するバーコード。
A first code area in which predetermined information is encoded and recorded at a predetermined first recording density;
A second code area in which specific information capable of specifying what the predetermined information is at a second recording density lower than the first recording density is encoded and recorded;
With barcode.
前記第1コード領域と前記第2コード領域の境界位置に設けられた所定形状のマークを更に有する請求項1記載のバーコード。   The barcode according to claim 1, further comprising a mark having a predetermined shape provided at a boundary position between the first code area and the second code area. 前記第1コード領域及び前記第2コード領域の各領域により構成されるコードは2次元コード又は3次元コードである
請求項1又は請求項2記載のバーコード。
The barcode according to claim 1 or 2, wherein a code configured by each of the first code area and the second code area is a two-dimensional code or a three-dimensional code.
被写体を撮像することによって被写体像を示す画像情報を取得する撮像手段と、
請求項1乃至請求項3の何れか1項記載のバーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報の前記第2コード領域に対応する情報をデコードする第1デコード手段と、
前記第1デコード手段により得られた特定情報に基づいて前記バーコードが読み取り対象とするバーコードであるか否かを判定する判定手段と、
前記判定手段により読み取り対象とするバーコードであると判定された場合に前記撮像によって取得された画像情報の前記第1コード領域に対応する情報をデコードする第2デコード手段と、
を備えた撮像装置。
Imaging means for acquiring image information indicating a subject image by imaging the subject;
A first decoding for decoding information corresponding to the second code area of the image information acquired by the imaging when the barcode according to any one of claims 1 to 3 is imaged by the imaging means. Means,
Determining means for determining whether or not the barcode is a barcode to be read based on the specific information obtained by the first decoding means;
Second decoding means for decoding information corresponding to the first code area of the image information acquired by the imaging when the determination means determines that the barcode is to be read;
An imaging apparatus comprising:
前記特定情報は、自身の有効期限を示す期限情報を含むものとされ、
前記バーコードが前記撮像手段によって撮像されたとき、当該撮像によって取得された画像情報により示される前記期限情報によって示される有効期限を過ぎていた場合に前記第2デコード手段によるデコードを禁止するデコード禁止手段を更に備えた
請求項4記載の撮像装置。
The specific information includes deadline information indicating its own expiration date,
Decoding prohibition that prohibits decoding by the second decoding means when the barcode is imaged by the imaging means and the expiration date indicated by the time limit information indicated by the image information acquired by the imaging has passed. The imaging apparatus according to claim 4, further comprising means.
JP2006003682A 2006-01-11 2006-01-11 Barcode and imaging device Pending JP2007188157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006003682A JP2007188157A (en) 2006-01-11 2006-01-11 Barcode and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006003682A JP2007188157A (en) 2006-01-11 2006-01-11 Barcode and imaging device

Publications (1)

Publication Number Publication Date
JP2007188157A true JP2007188157A (en) 2007-07-26

Family

ID=38343304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006003682A Pending JP2007188157A (en) 2006-01-11 2006-01-11 Barcode and imaging device

Country Status (1)

Country Link
JP (1) JP2007188157A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009176084A (en) * 2008-01-25 2009-08-06 Denso Wave Inc Optical information reading device
JP2017011399A (en) * 2015-06-18 2017-01-12 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, recording medium, and program
JP2019071627A (en) * 2018-12-12 2019-05-09 富士ゼロックス株式会社 Image processing apparatus and program
JP2019079254A (en) * 2017-10-24 2019-05-23 清水建設株式会社 Information communication system, information medium, and reading device
JP2019537098A (en) * 2016-09-28 2019-12-19 スリーエム イノベイティブ プロパティズ カンパニー Shield resistant optical code for machine readable articles

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009176084A (en) * 2008-01-25 2009-08-06 Denso Wave Inc Optical information reading device
JP2017011399A (en) * 2015-06-18 2017-01-12 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, recording medium, and program
JP2019537098A (en) * 2016-09-28 2019-12-19 スリーエム イノベイティブ プロパティズ カンパニー Shield resistant optical code for machine readable articles
JP7088597B2 (en) 2016-09-28 2022-06-21 スリーエム イノベイティブ プロパティズ カンパニー Shielding resistant optics for machine-readable articles
JP2019079254A (en) * 2017-10-24 2019-05-23 清水建設株式会社 Information communication system, information medium, and reading device
JP2019071627A (en) * 2018-12-12 2019-05-09 富士ゼロックス株式会社 Image processing apparatus and program

Similar Documents

Publication Publication Date Title
JP2006121185A (en) Electronic apparatus, information processing apparatus, and control method for them, computer program, and computer-readable storage medium
JP2012222495A (en) Image processor, image processing method, and program
JP2007188157A (en) Barcode and imaging device
JP2009027647A (en) Captured image recording system, photographic device, captured image recording method
JP2007208903A (en) Photographic system and photographic instruction apparatus
JP2009088710A (en) Photographic apparatus, photographing method, and photographing program
JP2009088578A (en) Image display device and image display method
JP2009088708A (en) Image display device, image display method, program, and photographic device
JP2009141472A (en) Imaging apparatus, method of setting imaging apparatus and program
JP4652368B2 (en) Electronic equipment, image display program
JP2005221771A (en) Imaging device and function display method
JP5187416B2 (en) Imaging apparatus, imaging condition setting method and program
JP2005109658A (en) Photographing apparatus
JP2006237963A (en) Image display device, photographing device and image display method
JP2005253003A (en) Digital camera
JP2014022921A (en) Electronic apparatus and program
JP2007288424A (en) Imaging apparatus
JP2006039203A (en) Imaging apparatus, and its control method
JP5641352B2 (en) Image processing apparatus, image processing method, and program
JP4757828B2 (en) Image composition apparatus, photographing apparatus, image composition method, and image composition program
JP4727526B2 (en) Imaging device
JP2007184875A (en) Imaging apparatus, and method for changing operation content of imaging apparatus
JP6335064B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP2005079667A (en) Photographing apparatus
JP2013247541A (en) Imaging apparatus, control method of the same, and program