JP2005260663A - Digital camera and program - Google Patents

Digital camera and program Download PDF

Info

Publication number
JP2005260663A
JP2005260663A JP2004070607A JP2004070607A JP2005260663A JP 2005260663 A JP2005260663 A JP 2005260663A JP 2004070607 A JP2004070607 A JP 2004070607A JP 2004070607 A JP2004070607 A JP 2004070607A JP 2005260663 A JP2005260663 A JP 2005260663A
Authority
JP
Japan
Prior art keywords
image
digital camera
determination
character
acquired
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004070607A
Other languages
Japanese (ja)
Other versions
JP2005260663A5 (en
JP4366484B2 (en
Inventor
Junichi Maeda
順一 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004070607A priority Critical patent/JP4366484B2/en
Publication of JP2005260663A publication Critical patent/JP2005260663A/en
Publication of JP2005260663A5 publication Critical patent/JP2005260663A5/ja
Application granted granted Critical
Publication of JP4366484B2 publication Critical patent/JP4366484B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To save user labor or the like by quickly and accurately determining image quality in document computerization using a digital camera. <P>SOLUTION: A control part 110 of a digital camera 100 calculates a hand shaking amount at the time of photographing on the basis of a detection value acquired from a sensor part 170 and compares the hand shaking amount with a preset determination reference value to thereby determine whether a document image to be acquired is illegible. The determination reference value is individually set in accordance with image usage application, and an outputting part 140 outputs notification information based on a determination result corresponding to the usage application. The control part 110 segments a character part from the acquired document image and specifies a character size on the image. The control part 110 performs comparison with the determination reference value performed in advance to thereby determine whether the document image is illegible. The determination reference value is individually set in accordance with the image usage application and an influence of lens performance, whether to be illegible is determined by taking into consideration the usage application and the lens performance and the outputting part 140 outputs notification information corresponding to a determination result. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、デジタルカメラに関し、特に、文書の電子化に好適なデジタルカメラに関する。   The present invention relates to a digital camera, and more particularly to a digital camera suitable for digitizing a document.

従来、用紙などに記された文書を電子化するには、フラットベッドスキャナなどで読み込むことが一般的であったが、近年、高画素のデジタルカメラが低価格で入手できるようになったことにより、スキャナやメモの代わりとしてデジタルカメラが利用されつつある。撮影した画像をデジタルデータとして記録することができるデジタルカメラの特徴を活かし、用紙に印刷されている文書や、街中の看板などに記されている文字などをデジタルカメラで撮影することで、文書情報を手軽に電子化することができる。また、フラットベッドスキャナなどと異なり、デジタルカメラは携帯性にすぐれているため、対象とする文書の形態にかかわらず、いつでもどこでも文書の電子化を実施することができる。また、デジタルデータで記録することができるので、所定の文字認識処理などにより、利便性の高いテキストデータへの変換なども容易におこなうことができる。   Conventionally, in order to digitize documents on paper etc., it was common to read them with a flatbed scanner, etc., but in recent years, high-pixel digital cameras have become available at low prices. Digital cameras are being used instead of scanners and memos. Taking advantage of the features of a digital camera that can record the captured image as digital data, document information can be obtained by shooting a document printed on paper or characters on a signboard in the city with a digital camera. Can be easily digitized. In addition, unlike a flatbed scanner or the like, a digital camera is excellent in portability, so that it is possible to digitize a document anytime and anywhere regardless of the form of the target document. Further, since it can be recorded as digital data, it can be easily converted into convenient text data by a predetermined character recognition process or the like.

しかしながら、対象との距離などが常に一定であるフラットベッドスキャナなどとは異なり、デジタルカメラによる撮影では、撮影条件が撮影毎に異なるため、文字認識処理で必要とされる画像品質を常に得ることは困難である。すなわち、デジタルカメラによる撮影では、外光、レンズ性能、手ブレ、などの影響があり、フラットベッドスキャナなどのように一定条件の画像を常に得ることが困難である。その結果、必要な画像品質を得られないことがあり、文字認識処理に適さない画像を記録してしまうことがある。   However, unlike flatbed scanners where the distance to the target is always constant, shooting with digital cameras has different shooting conditions for each shooting, so it is always possible to obtain the image quality required for character recognition processing. Have difficulty. In other words, shooting with a digital camera is affected by external light, lens performance, camera shake, and the like, and it is difficult to always obtain an image under certain conditions as in a flatbed scanner. As a result, necessary image quality may not be obtained, and an image that is not suitable for character recognition processing may be recorded.

したがって、デジタルカメラを用いて文書情報を記録する場合には、従来、(1)同じ撮影対象を複数枚撮影して、最も画像品質のよいものを撮影後に選択したり、(2)撮影毎に画面で画像品質を確認し、画像品質が悪い場合には撮り直しする、などの作業によって対応していた。(1)の方法では、画像品質の低い画像データまでも記録しておかなければならないため、メモリ領域を無駄に占有してしまい、本当に必要な画像の記録に支障をきたすことがある。また、デジタルカメラに備えられている画面(液晶表示装置など)は解像度が低いことが多く、画像品質を確認するためには、画像を拡大表示させたりスクロールしなければならない。したがって、(2)の方法では確認のための作業時間が長くなってしまい、撮影効率を低下させてしまう。また、いずれの方法もユーザ(撮影者)がおこなう作業であるため、ユーザの労力を要し、負担となっていた。   Therefore, when document information is recorded using a digital camera, conventionally, (1) a plurality of images of the same object to be imaged are selected and the image with the best image quality is selected after shooting, or (2) each image is captured. The work was done by checking the image quality on the screen and re-taking the image if the image quality was bad. In the method (1), even image data with low image quality must be recorded, so that the memory area is occupied unnecessarily, which may hinder the recording of a really necessary image. In addition, a screen (such as a liquid crystal display device) provided in a digital camera often has a low resolution, and in order to check the image quality, the image must be enlarged or scrolled. Therefore, in the method (2), the work time for confirmation becomes long and the photographing efficiency is lowered. In addition, since both methods are operations performed by the user (photographer), the user's labor is required and is a burden.

このような不都合を解消するため、所定の画像品質であるか否かを画像処理によって自動的に判断する技術(例えば、特許文献1、2)などが提案されている。しかしながら、これらの手法では、取得した画像データに画像処理をおこなうことで画像品質を判断しているため、処理に時間を要し、撮影時に処理を待たなければならないことがある。このため、迅速な撮影を行うことができず、撮影効率が低下してしまう。この結果、文書の電子化にかかる作業効率も低下してしまい、デジタルカメラの利便性を十分に活かすことができなかった。   In order to eliminate such inconveniences, techniques (for example, Patent Documents 1 and 2) that automatically determine whether or not the image quality is predetermined are proposed. However, in these methods, since the image quality is determined by performing image processing on the acquired image data, it takes time for processing, and it may be necessary to wait for processing at the time of shooting. For this reason, rapid photographing cannot be performed, and photographing efficiency is lowered. As a result, the work efficiency associated with the digitization of the document is reduced, and the convenience of the digital camera cannot be fully utilized.

また、デジタルカメラによる撮影では、レンズ収差の影響により、画像の縁部付近で歪みや滲みが発生することがある。このような画像から文字を切り出して文字サイズを特定する場合、本来同じサイズの文字であっても、画像上の位置によってはことなるサイズとして特定されてしまうことがある。したがって、上記従来技術のように、画像中の文字を一義的に切り出して文字サイズを特定する方法では、レンズ性能による影響を考慮していないため、正確に文字サイズを特定することが困難である。すなわち、上記従来技術による画像品質の判断は正確性に欠け、誤った判断となる場合があった。   Further, in photographing with a digital camera, distortion and blur may occur near the edge of an image due to the influence of lens aberration. When character size is specified by cutting out characters from such an image, even a character of the same size may be specified as a different size depending on the position on the image. Therefore, as in the conventional technique described above, the method of unambiguously cutting out characters in an image and specifying the character size does not consider the influence of lens performance, so it is difficult to specify the character size accurately. . In other words, the determination of the image quality according to the above prior art is not accurate and may be erroneous.

さらに、撮影した文書画像の利用用途は、撮影対象やユーザによって異なることが多い。すなわち、文字認識処理によるテキストデータの取得を目的とする場合がある一方、画像を表示等させるだけでよい場合もある。文字認識処理によって高い認識率で文字認識させたい場合、通常、比較的高い画像品質が要求される。一方、人間の目視による判読性の許容範囲はこれよりも広く、文字認識処理で要求される画像品質よりも低い画像品質の画像であっても認識することができる。すなわち、文字認識処理を目的とする場合と目視認識を目的とする場合とでは、必要とされる画像品質のレベルに差がある。   Furthermore, the usage of the photographed document image is often different depending on the photographing object and the user. That is, there are cases where the purpose is to acquire text data by character recognition processing, while there are cases where it is only necessary to display an image or the like. When it is desired to perform character recognition at a high recognition rate by character recognition processing, a relatively high image quality is usually required. On the other hand, the permissible range of human legibility is wider than this, and even an image having an image quality lower than the image quality required in the character recognition process can be recognized. That is, there is a difference in the level of image quality required between the case of character recognition processing and the case of visual recognition.

しかしながら、従来技術では、画像品質の判断基準が一律であったため、必要十分な画像品質が得られるにもかかわらず、撮り直しなどを強いられてしまう場合があった。すなわち、文字認識処理で要求されるレベルを基準とした場合、目視認識に十分な画像品質の画像が撮影できるにもかかわらず、画像品質が低いと判断されてしまうことがある。この場合、ユーザは判断にしたがって撮り直し等をすることとなるが、目視認識を目的としている場合には無駄な作業となり撮影効率が低下する。
特開平10−247220号公報 特開平08−063547号公報
However, in the prior art, since the judgment criteria for image quality are uniform, there is a case where re-taking is forced even though necessary and sufficient image quality is obtained. That is, when the level required in the character recognition process is used as a reference, it may be determined that the image quality is low although an image with an image quality sufficient for visual recognition can be taken. In this case, the user performs re-taking according to the judgment, but if the purpose is visual recognition, it becomes useless work and the photographing efficiency is lowered.
JP-A-10-247220 Japanese Patent Laid-Open No. 08-063547

本発明は上記実状に鑑みてなされたもので、文書撮影をおこなう場合に画像品質を迅速かつ適切に判定して通知することができるデジタルカメラおよびプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a digital camera and a program capable of quickly and appropriately determining and notifying image quality when taking a document.

またに、文書撮影をおこなう場合に画像品質を正確かつ適切に判定して通知することができるデジタルカメラおよびプログラムを提供することを目的とする。   It is another object of the present invention to provide a digital camera and a program capable of accurately and appropriately determining and notifying image quality when taking a document.

上記目的を達成するため、本発明の第1の観点に係るデジタルカメラは、
入射光をデジタルデータに変換して画像データを取得するデジタルカメラにおいて、
撮影時の前記デジタルカメラの動きを検出する検出手段と、
少なくとも前記検出手段の検出結果に基づいて、取得する画像に示される文字の判読可否を判定する判定手段と、
前記判定手段の判定結果に基づいて、所定の動作を実行する実行手段と、を備え、
前記判定手段は、
少なくとも前記検出手段の検出結果に基づいて、取得される画像上の手ブレ量を算出する手ブレ量算出手段と、
判定の基準を示す判定基準情報を記憶する判定基準記憶手段と、をさらに備え、
前記手ブレ量算出手段が算出した手ブレ量と前記判定基準記憶手段に記憶されている判定基準情報とに基づいて文字の判読可否を判定し、
前記実行手段は、前記判定手段の判定結果に基づいて、所定の通知情報を出力する出力手段をさらに備える、
ことを特徴とする。
In order to achieve the above object, a digital camera according to the first aspect of the present invention provides:
In a digital camera that acquires image data by converting incident light into digital data,
Detecting means for detecting movement of the digital camera at the time of shooting;
Determination means for determining whether or not the character shown in the image to be acquired can be read based on at least the detection result of the detection means;
Execution means for executing a predetermined operation based on the determination result of the determination means,
The determination means includes
A camera shake amount calculating means for calculating a camera shake amount on the acquired image based on at least the detection result of the detecting means;
A determination criterion storage means for storing determination criterion information indicating a criterion for determination;
Determining whether or not the character can be read based on the camera shake amount calculated by the camera shake amount calculating unit and the criterion information stored in the criterion storage unit;
The execution unit further includes an output unit that outputs predetermined notification information based on a determination result of the determination unit.
It is characterized by that.

上記デジタルカメラにおいて、
前記判定基準記憶手段は、取得する画像の用途に応じた複数の判定基準情報を記憶し、
前記判定手段は、前記手ブレ量算出手段が算出した手ブレ量と前記判定基準記憶手段に記憶されている判定基準情報とに基づき、前記画像の用途に応じて、文字の判読可否を判定することが望ましい。
In the above digital camera,
The determination criterion storage means stores a plurality of determination criterion information according to the use of the image to be acquired,
The determination means determines whether or not the character can be read based on the use of the image based on the camera shake amount calculated by the camera shake amount calculation means and the determination reference information stored in the determination reference storage means. It is desirable.

上記デジタルカメラにおいて、
前記手ブレ量算出手段は、少なくとも前記検出手段の検出結果と当該撮影時に設定されたシャッタスピードとに基づいて手ブレ量を算出することが望ましい。
In the above digital camera,
It is desirable that the camera shake amount calculating unit calculates the camera shake amount based on at least a detection result of the detecting unit and a shutter speed set at the time of the photographing.

上記デジタルカメラにおいて、
前記手ブレ量算出手段は、取得する画像のサイズに応じて手ブレ量を算出することが望ましい。
In the above digital camera,
It is desirable that the camera shake amount calculating means calculates the camera shake amount according to the size of the image to be acquired.

上記デジタルカメラにおいて、
前記検出手段は、前記デジタルカメラの揺れを検出することが望ましい。
In the above digital camera,
It is desirable that the detection means detects a shake of the digital camera.

上記デジタルカメラにおいて、
前記判定手段は、
取得される画像上に所定の領域を設定する領域設定手段と、
取得される画像に示される文字を、前記領域設定手段が設定した領域毎に特定する文字特定手段と、
前記文字特定手段が特定した文字の前記画像上でのサイズを特定する文字サイズ特定手段と、をさらに備えていてもよく、この場合、
前記文字サイズ特定手段が特定した文字サイズと前記判定基準記憶手段に記憶されている判定基準情報とに基づいて、前記画像に示される文字の判読可否を判定することが望ましい。
In the above digital camera,
The determination means includes
Area setting means for setting a predetermined area on the acquired image;
Character specifying means for specifying the character shown in the acquired image for each area set by the area setting means;
Character size specifying means for specifying the size of the character specified by the character specifying means on the image may further be provided.
It is desirable to determine whether or not the character shown in the image can be read based on the character size specified by the character size specifying means and the determination reference information stored in the determination reference storage means.

上記デジタルカメラにおいて、
前記領域設定手段は、前記デジタルカメラのレンズ性能に基づいて、前記領域を設定することが望ましい。
In the above digital camera,
The area setting means preferably sets the area based on lens performance of the digital camera.

上記デジタルカメラにおいて、
前記判定基準記憶手段は、取得される画像の用途、および、当該画像上の位置に応じた複数の判定基準情報を記憶し、
前記判定手段は、前記文字サイズ特定手段が特定した文字サイズと前記判定基準記憶手段に記憶されている判定基準情報とに基づいて、前記画像に示される文字の判読可否を前記用途に応じて判定することが望ましい。
In the above digital camera,
The determination criterion storage means stores a plurality of determination criterion information according to the use of the acquired image and the position on the image,
The determination means determines whether or not the character shown in the image is legible based on the character size specified by the character size specification means and the determination reference information stored in the determination reference storage means according to the application. It is desirable to do.

上記デジタルカメラにおいて、
前記文字サイズ特定手段は、前記取得する画像のサイズに応じて、当該画像上の文字サイズを特定することが望ましい。
In the above digital camera,
The character size specifying means preferably specifies the character size on the image according to the size of the acquired image.

上記デジタルカメラは、
ユーザからの指示を入力する入力手段をさらに備えていることが望ましく、この場合、
前記判定基準記憶手段は、前記入力手段に入力されたユーザの指示に応じて、判定基準情報を更新することが望ましい。
The above digital camera
It is desirable to further include an input means for inputting an instruction from the user.
It is desirable that the determination criterion storage unit updates the determination criterion information in accordance with a user instruction input to the input unit.

上記デジタルカメラにおいて、
前記出力手段は、前記判定手段の判定結果に応じて、取得する画像における文字の判読可否を示す情報を撮影時に出力することが望ましい。
In the above digital camera,
It is desirable that the output means outputs information indicating whether or not the characters in the acquired image can be read at the time of photographing according to the determination result of the determination means.

上記デジタルカメラにおいて、
前記出力手段は、前記判定手段の判定結果に応じて、前記取得される画像に示される文字を、目視で判読可能か否か、コンピュータによる文字認識で判読可能か否か、及び/又は、当該画像の全域で判読可能か否か、を示す情報を前記通知情報として出力する、ことが望ましい。
In the above digital camera,
The output means, according to the determination result of the determination means, whether or not the characters shown in the acquired image can be visually read, whether or not the characters can be read by computer recognition, and / or It is desirable to output information indicating whether or not the entire image can be read as the notification information.

上記デジタルカメラにおいて、
前記判定基準記憶手段は、前記取得される画像に示される文字を、目視で判読可能か否かを判定するための判定基準と、コンピュータによる文字認識が可能か否かを判定するための判定基準と、を示す判定基準情報を記憶することが望ましい。
In the above digital camera,
The determination criterion storage means includes a determination criterion for determining whether or not the characters shown in the acquired image can be visually read and a determination criterion for determining whether or not character recognition by a computer is possible It is desirable to store determination criterion information indicating

上記目的を達成するため、本発明の第2の観点にかかるプログラムは、
入射光をデジタルデータに変換して画像データを取得するデジタルカメラを制御するコンピュータに、
取得する画像に示される文字の判読可否を判定するための基準を示す判定基準情報を、当該画像の用途に応じて設定して記憶するステップと、
手ブレの要因となる前記デジタルカメラの動きを示す情報を取得するステップと、
前記デジタルカメラの動きに基づいて、取得される画像上の手ブレ量を、当該画像のサイズに応じて算出するステップと、
算出した手ブレ量と前記判定基準情報とに基づいて、前記取得する画像に示される文字の判読可否を、前記用途に応じて判定するステップと、
判定結果に応じた所定の通知情報を出力するステップと、
を実行させることを特徴とする。
In order to achieve the above object, a program according to the second aspect of the present invention is:
To a computer that controls a digital camera that converts incident light into digital data and acquires image data,
A step of setting and storing determination criterion information indicating a criterion for determining whether or not the character shown in the image to be acquired can be read, according to the use of the image;
Obtaining information indicating movement of the digital camera that causes camera shake;
Calculating the amount of camera shake on the acquired image based on the movement of the digital camera according to the size of the image;
Based on the calculated amount of camera shake and the determination criterion information, determining whether or not the character shown in the acquired image is readable according to the application;
Outputting predetermined notification information according to the determination result;
Is executed.

上記目的を達成するため、本発明の第3の観点にかかるプログラムは、
入射光をデジタルデータに変換して画像データを取得するデジタルカメラを制御するコンピュータに、
取得する画像に示される文字の判読可否を判定するための基準を示す判定基準情報を、当該画像の用途および画像上の位置に応じて設定して記憶するステップと、
取得する画像上に、前記デジタルカメラのレンズ性能に基づく所定の領域を設定するステップと、
前記取得する画像に示される文字を前記設定された領域毎に特定して、当該画像上での文字サイズを特定するステップと、
特定された文字サイズと前記判定基準情報とに基づいて、前記取得する画像上に示される文字の判読可否を前記用途に応じて判定するステップと、
判定結果に応じた所定の通知情報を出力するステップと、
を実行させることを特徴とするプログラム。
In order to achieve the above object, a program according to the third aspect of the present invention is:
To a computer that controls a digital camera that converts incident light into digital data and acquires image data,
Setting and storing determination criterion information indicating a criterion for determining whether or not the character shown in the acquired image is readable according to the use of the image and the position on the image;
Setting a predetermined area based on the lens performance of the digital camera on the image to be acquired; and
Specifying the characters shown in the image to be acquired for each of the set areas, and specifying the character size on the image;
Based on the specified character size and the determination criterion information, determining whether or not the character shown on the acquired image is readable according to the application;
Outputting predetermined notification information according to the determination result;
A program characterized by having executed.

本発明によれば、撮影時のデジタルカメラの動きを検出して手ブレ量を算出し、画像中に示される文字の判読可否を判定して通知するので、文書を撮影する場合に画像品質を迅速に判定して通知することができる。また、撮影画像上に領域を割り当て、領域毎に文字サイズを特定して文字の判読可否を判定するので、画像品質を正確に判定して通知することができる。さらに、撮影画像の利用用途に応じて判定基準値を設定できるので、画像品質を適切に判定して通知することができる。この結果、撮影効率の向上や、撮影時あるいは後処理における省力化を図ることができるとともに、メモリ領域の浪費などを防止することができる。   According to the present invention, the amount of camera shake is detected by detecting the movement of the digital camera at the time of shooting, and it is determined and notified whether or not the characters shown in the image can be read. Judgment can be made quickly. In addition, since an area is allocated on the photographed image and the character size is specified for each area to determine whether or not the character can be read, the image quality can be accurately determined and notified. Furthermore, since the determination reference value can be set according to the usage of the captured image, it is possible to appropriately determine and notify the image quality. As a result, it is possible to improve shooting efficiency, save labor in shooting or post-processing, and prevent waste of the memory area.

(実施形態1)
本発明にかかる実施形態を、以下図面を参照して説明する。本実施形態では、CCD(Charge Coupled Device:電荷結合素子)などの撮像素子を用いて画像データを取得するデジタルカメラ(撮像装置)によって文字や文書を撮影する場合(以下、「文書撮影」とする)を例に以下説明する。本実施形態において「文書撮影」とは、例えば、用紙や看板などに記されている文字をデジタルカメラで撮影し、スキャナなどによる取り込みやメモなどの代用として文書情報(文字情報)を記録することをいうものとする。また、文書撮影により取得された画像を「文書画像」とする。このような文書画像は所定の文字認識処理に供せられることでテキストデータなどに変換される。すなわち、デジタルカメラで文書を撮影することで、文書情報の電子化を図るものである。
(Embodiment 1)
Embodiments according to the present invention will be described below with reference to the drawings. In this embodiment, when a character or document is photographed by a digital camera (imaging device) that acquires image data using an imaging device such as a CCD (Charge Coupled Device) (hereinafter referred to as “document photographing”). ) As an example. In this embodiment, “document shooting” refers to, for example, shooting characters written on paper, billboards, etc. with a digital camera, and recording document information (character information) as a substitute for taking in with a scanner or a memo. It shall be said. In addition, an image acquired by document shooting is referred to as a “document image”. Such a document image is converted into text data by being subjected to a predetermined character recognition process. That is, document information is digitized by photographing a document with a digital camera.

本実施形態に係るデジタルカメラの構成を図1、図2を参照して説明する。図1は本実施形態にかかるデジタルカメラ100のシステム構成(内部構成)を示すブロック図であり、図2はデジタルカメラ100の外観例を示す図(図2(a)は正面図、図2(b)は背面図)である。図示するように、本実施形態にかかるデジタルカメラ100は、制御部110と、撮像部120と、入力部130、出力部140と、画像記録部150と、記憶部160と、センサ部170と、を備える。   The configuration of the digital camera according to this embodiment will be described with reference to FIGS. FIG. 1 is a block diagram showing a system configuration (internal configuration) of a digital camera 100 according to the present embodiment, FIG. 2 is a diagram showing an example of the appearance of the digital camera 100 (FIG. 2A is a front view, FIG. b) is a rear view). As illustrated, the digital camera 100 according to the present embodiment includes a control unit 110, an imaging unit 120, an input unit 130, an output unit 140, an image recording unit 150, a storage unit 160, a sensor unit 170, Is provided.

制御部110は、例えば、CPU(Central Processing Unit:中央演算処理装置)などから構成され、デジタルカメラ100の各部を制御する。ここで、制御部110は、記憶部160に格納された動作プログラムを実行することで後述する各処理が実現される。なお、制御部110は、動作時に必要なデータや動作プログラムなどを展開(ロード)するための記憶領域を備えているものとする。この記憶領域(以下「ワークエリア」とする)は、例えば、レジスタやキャッシュメモリ、および、RAM(Random Access Memory)などから構成される。   The control unit 110 includes, for example, a CPU (Central Processing Unit) and controls each unit of the digital camera 100. Here, the control part 110 implement | achieves each process mentioned later by running the operation | movement program stored in the memory | storage part 160. FIG. Note that the control unit 110 includes a storage area for developing (loading) data and operation programs necessary for operation. This storage area (hereinafter referred to as “work area”) is configured by, for example, a register, a cache memory, and a RAM (Random Access Memory).

撮像部120は、制御部110の制御によって撮像動作をおこなうものであり、本実施形態では、図1に示すように、レンズユニット121、測距・測光部122、撮像素子123、などを備える。   The imaging unit 120 performs an imaging operation under the control of the control unit 110. In the present embodiment, as illustrated in FIG. 1, the imaging unit 120 includes a lens unit 121, a distance measurement / photometry unit 122, an imaging element 123, and the like.

レンズユニット121は、レンズ群や絞り羽根などから構成される光学的部材や、光学的部材を駆動する駆動部などから構成される。駆動部は、制御部110の制御により光学的部材を駆動する。例えば、設定された絞り(F値)となるよう絞り羽根を駆動する。また、レンズユニット121がAF(Auto Focus:オートフォーカス)機能を備えている場合は、撮影対象に合焦するよう光学的部材を駆動し、ズーム機能を備えている場合には、ユーザのズーム操作に応じて光学的部材を駆動する。   The lens unit 121 includes an optical member including a lens group and diaphragm blades, and a drive unit that drives the optical member. The drive unit drives the optical member under the control of the control unit 110. For example, the diaphragm blades are driven to achieve the set diaphragm (F value). In addition, when the lens unit 121 has an AF (Auto Focus) function, the optical member is driven to focus on an object to be photographed. The optical member is driven accordingly.

測距・測光部122は、例えば、赤外線照射部、受光部、距離センサ、光センサなどから構成され、デジタルカメラ100から撮影対象(被写体)までの距離や光量(EV値)などを測定する。   The distance measuring / photometric unit 122 includes, for example, an infrared irradiation unit, a light receiving unit, a distance sensor, a light sensor, and the like, and measures a distance, a light amount (EV value), and the like from the digital camera 100 to a photographing target (subject).

撮像素子123は、例えば、CCD(Charge Coupled Device:電荷結合素子)などから構成され、レンズユニット121を介して入光した可視光(入射光)を光電変換により電荷に変換して蓄積する。ここで撮像素子123は、所定のAD変換回路などを備えるものとし、蓄積された電荷量に基づいてデジタルデータに変換する。すなわち、変換されたデジタルデータは、入射光から得られる「画像データ」を構成することとなる。   The imaging device 123 is configured by, for example, a CCD (Charge Coupled Device), and converts visible light (incident light) incident through the lens unit 121 into electric charge by photoelectric conversion and accumulates it. Here, the image pickup device 123 includes a predetermined AD conversion circuit and the like, and converts it into digital data based on the accumulated charge amount. That is, the converted digital data constitutes “image data” obtained from incident light.

入力部130は、ユーザによって操作される部材から構成され、ユーザからの指示を受け付ける。入力部130は、操作に応じた所定の信号を制御部110に送出することで、ユーザの指示を制御部110に入力する。本実施形態では、入力部130は、少なくとも、シャッタボタン131と操作入力部132とを備える。   The input unit 130 is configured by a member operated by the user, and receives an instruction from the user. The input unit 130 inputs a user instruction to the control unit 110 by sending a predetermined signal corresponding to the operation to the control unit 110. In the present embodiment, the input unit 130 includes at least a shutter button 131 and an operation input unit 132.

シャッタボタン131は、ユーザによる押下に応じて上下方向に可動するボタンなどから構成され、ユーザに押下されることによって、撮影開始などを指示する信号(以下、「シャッタ信号」とする)を制御部110に送出する。なお、シャッタボタン131は、いわゆる「半押し」状態と「全押し」状態の2つの状態に応じて異なる信号を制御部110に送出するものとする。ここで「半押し」とはシャッタボタン131の可動ストロークの半ばまで押された状態をいい、「全押し」とはシャッタボタン131が完全に押し込まれた状態をいうものとする。   The shutter button 131 includes a button that can be moved up and down in response to a press by the user, and a signal that instructs the start of shooting (hereinafter referred to as a “shutter signal”) when pressed by the user. 110. Note that the shutter button 131 sends different signals to the control unit 110 depending on two states, a so-called “half-pressed” state and a “full-pressed” state. Here, “half-pressed” refers to a state where the shutter button 131 is pressed halfway, and “full-pressed” refers to a state where the shutter button 131 is fully pressed.

通常のカメラと同様、本実施形態にかかるデジタルカメラ100においても、「半押し」で測距・測光やピント合わせ(合焦)など(以下、「撮像準備動作」とする)をおこない、「全押し」で撮像・記録(以下、「撮像動作」とする)をおこなう。したがって、シャッタボタン131が半押しされたときには、その旨を示すシャッタ信号(以下、「半押し信号」とする)が制御部110に送出され、制御部110はこれに応じて合焦動作の開始などを実行する。また、シャッタボタン131が全押しされたときには、その旨を示すシャッタ信号(以下、「全押し信号」とする)が制御部110に送出され、制御部110は撮像・記録動作の開始などを実行する。すなわち、制御部110は、シャッタボタン131から送出された信号の受信を契機に撮像のための各動作を開始する。   As with a normal camera, the digital camera 100 according to this embodiment performs distance measurement, photometry, focusing (focusing) and the like (hereinafter referred to as “imaging preparation operation”) by “half-pressing”. “Press” to capture and record (hereinafter referred to as “imaging operation”). Therefore, when the shutter button 131 is half-pressed, a shutter signal indicating that effect (hereinafter referred to as “half-press signal”) is sent to the control unit 110, and the control unit 110 starts the focusing operation accordingly. And so on. When the shutter button 131 is fully pressed, a shutter signal indicating that effect (hereinafter referred to as a “full press signal”) is sent to the control unit 110, and the control unit 110 executes the start of an imaging / recording operation. To do. That is, the control unit 110 starts each operation for imaging upon reception of a signal transmitted from the shutter button 131.

操作入力部132は、例えば、所定の操作ボタンやダイヤル、カーソルキー、などから構成され、ユーザの操作により、種々の設定を変更する指示などが入力される。本実施形態においては、撮影モードをはじめとする各種モードの変更・設定に用いられる他、文書画像における文字の判読可否の判定基準の設定に用いられる。また、本実施形態では、撮影モードとして「文書撮影モード」が用意されるものとし、デジタルカメラ100で文書撮影をおこなう場合は、操作入力部132を操作して文書撮影モードにする。   The operation input unit 132 includes, for example, predetermined operation buttons, dials, cursor keys, and the like, and instructions for changing various settings are input by user operations. In the present embodiment, it is used not only for changing / setting various modes including a photographing mode but also for setting a criterion for determining whether characters can be read in a document image. In this embodiment, it is assumed that “document shooting mode” is prepared as the shooting mode. When the digital camera 100 performs shooting of a document, the operation input unit 132 is operated to set the document shooting mode.

出力部140は、ユーザに対して通知される種々の情報を出力するものであり、本実施形態では、画像を出力する表示部141と、音声を出力する報音部142と、点灯や点滅などの発光をおこなうインジケータ部143、を備える。表示部141、報音部142、インジケータ部143は、図2(b)に示すように、デジタルカメラ100の背面側に構成される。すなわち、出力された情報を撮影者(ユーザ)に伝達可能な位置に構成されることが望ましい。   The output unit 140 outputs various types of information notified to the user. In the present embodiment, the display unit 141 that outputs an image, the sound report unit 142 that outputs sound, lighting, flashing, and the like. The indicator part 143 which performs this light emission is provided. The display unit 141, the sound report unit 142, and the indicator unit 143 are configured on the back side of the digital camera 100 as shown in FIG. That is, it is desirable that the output information is configured at a position where it can be transmitted to the photographer (user).

表示部141は、例えば、液晶表示装置などから構成され、画像情報を表示出力する。本実施形態では、撮像素子123によって得られた画像や画像記録部150に記録された画像を表示する他、設定変更をおこなうためのメニュー画面、および、設定状態やユーザに対する警告を示す情報(例えば、文字やアイコン)などが表示される。本実施形態では、文書画像の判読可否に応じたユーザへの警告や案内を示す画像や文字情報が表示される。なお、表示部141がタッチパネルなどから構成される場合には、操作入力部132と同等の入力装置として機能させてもよい。   The display unit 141 is composed of, for example, a liquid crystal display device, and displays and outputs image information. In the present embodiment, in addition to displaying an image obtained by the image sensor 123 and an image recorded in the image recording unit 150, a menu screen for changing the setting, and information indicating a setting state and a warning to the user (for example, , Characters and icons) are displayed. In the present embodiment, an image or character information indicating a warning or guidance to the user according to whether or not the document image can be read is displayed. Note that when the display unit 141 includes a touch panel or the like, the display unit 141 may function as an input device equivalent to the operation input unit 132.

報音部142は、例えば、スピーカなどから構成され、所定の音声情報を出力する。ここでは、デジタルカメラ100による撮影時の各種動作(例えば、合焦、シャッタ押下など)に応じた音声(アラーム音など)が出力される他、本実施形態では、文書画像の判読可否に応じたユーザへの警告や案内を示す音声などが出力される。   The sound report unit 142 includes, for example, a speaker and outputs predetermined sound information. Here, sound (alarm sound, etc.) corresponding to various operations (for example, focusing, shutter pressing, etc.) at the time of shooting by the digital camera 100 is output, and in the present embodiment, depending on whether the document image can be read or not. A voice indicating a warning or guidance to the user is output.

インジケータ部143は、例えば、LED(Light Emitting Diode:発光ダイオード)などから構成され、デジタルカメラ100による撮影時の各種動作(例えば、合焦、シャッタ押下など)に応じて所定の色や明滅パターンで発光される他、本実施形態では、文書画像の判読可否に応じたユーザへの警告・案内時などにも発光する。   The indicator unit 143 includes, for example, an LED (Light Emitting Diode) and the like, and has a predetermined color or blinking pattern according to various operations (for example, focusing, shutter pressing, etc.) at the time of shooting by the digital camera 100. In addition to the light emission, in the present embodiment, the light is also emitted at the time of warning / guidance to the user according to whether or not the document image can be read.

なお、文書画像の判読可否に応じた警告や案内の出力は、表示部141、報音部142、インジケータ部143のすべてによって行われてもよく、あるいは、これらのいずれかによって行われてもよい。また、いずれの出力装置を用いるかはユーザによって任意に選択・設定可能であるものとする。   It should be noted that the warning and guidance output depending on whether the document image can be read may be performed by all of the display unit 141, the report sound unit 142, and the indicator unit 143, or any one of them. . It is assumed that which output device is used can be arbitrarily selected and set by the user.

画像記録部150は、例えば、ROM(Read Only Memory)、もしくは、フラッシュメモリなどの記憶装置を備えるメモリカードなどから構成され、撮像素子123のAD変換回路によって変換されたデジタルデータを記録することで、撮像部120の撮像動作によって得られた画像データを記録する。また、画像記録部150は、撮像素子123によって得られた画像データを一時的に保持する記憶領域(以下、「バッファ」とする)を有しているものとする。   The image recording unit 150 includes, for example, a ROM (Read Only Memory) or a memory card including a storage device such as a flash memory, and records digital data converted by the AD conversion circuit of the image sensor 123. The image data obtained by the imaging operation of the imaging unit 120 is recorded. Further, it is assumed that the image recording unit 150 has a storage area (hereinafter referred to as “buffer”) that temporarily stores image data obtained by the image sensor 123.

記憶部160は、例えば、ROMやフラッシュメモリなどの記憶装置から構成され、制御部110が実行するプログラムや、各処理に必要なデータ(以下、「処理データ」とする)などを記憶する。ここでは、撮像準備動作および撮像動作のための各種制御を実行するプログラム(以下、「撮像プログラム」とする)の他、本実施形態では、文書画像に示される文字の判読可否を判定して通知するためのプログラムが格納される。より詳細には、以下のようなプログラムが格納される。
(P1)「手ブレ量算出プログラム」:センサ部170による検出値や撮影パラメータなどに基づいて、文書画像上の手ブレ量を算出するためのプログラム
(P2)「判読可否判定プログラム」:算出された手ブレ量などに基づいて、文書画像の画像品質を判定し、文書画像に示されている文字が判読可能か否かを判定するためのプログラム
(P3)「判定基準設定プログラム」:判読可否の判定に用いる基準値を設定するためのプログラム
(P4)「通知情報出力プログラム」:判読可否の判定結果に基づいて所定の通知情報を出力するためのプログラム
The storage unit 160 includes, for example, a storage device such as a ROM or a flash memory, and stores a program executed by the control unit 110, data necessary for each process (hereinafter referred to as “process data”), and the like. In this embodiment, in addition to a program for executing various preparations for the imaging preparation operation and the imaging operation (hereinafter referred to as “imaging program”), in this embodiment, it is determined whether or not the characters shown in the document image can be read and notified. A program for storing is stored. More specifically, the following program is stored.
(P1) “Camera shake amount calculation program”: A program for calculating the amount of camera shake on a document image based on the detection value by the sensor unit 170, photographing parameters, etc. (P2) “Readability determination program”: calculated A program (P3) “determination criteria setting program” for determining the image quality of a document image based on the amount of camera shake and determining whether or not the characters shown in the document image are readable Program (P4) “notification information output program” for setting a reference value used for determination of: a program for outputting predetermined notification information based on the determination result of legibility

このようなプログラムを制御部110が実行することで、制御部110は以下のような機能を実現する。
(F1)「撮像機能」:撮像部120を動作させ、レンズユニット121から入光した入射光に基づく画像データを取得する機能
(F2)「手ブレ検出機能」:センサ部170の検出値に基づいて、手ブレの有無を検出するとともに、文書画像中の手ブレ量を算出する機能
(F3)「判読可否判定機能」:手ブレ量などに基づいて、文書画像の画像品質を判定し、文書画像にに示される文字が判読可能か否かを判定する機能
(F4)「判定基準設定機能」:判読可否の判定基準をユーザの任意入力などで設定する機能
(F5)「出力機能」:判読可否の判定結果に応じて、ユーザへの通知情報を出力する機能
When the control unit 110 executes such a program, the control unit 110 realizes the following functions.
(F1) “Imaging function”: a function for operating the imaging unit 120 and acquiring image data based on incident light incident from the lens unit 121 (F2) “camera shake detection function”: based on a detection value of the sensor unit 170 Function for detecting the presence or absence of camera shake and calculating the amount of camera shake in the document image (F3) “readability determination function”: the image quality of the document image is determined based on the amount of camera shake, etc. Function for determining whether or not the characters shown in the image are legible (F4) “Judgment criteria setting function”: Function for setting judgment criteria for legibility by user's arbitrary input (F5) “Output function”: Reading Function to output notification information to the user according to the determination result

なお、本実施形態では、制御部110がプログラムを実行することによるソフトウェア処理で上記各機能を実現するが、例えば、これらの各機能をそれぞれ専門的に処理する回路等(いわゆる「ASIC」(Application Specific Integrated Circuit))をデジタルカメラ100に構成することにより、ハードウェア処理によって上記各機能が実現されてもよい。   In the present embodiment, each function is realized by software processing by the control unit 110 executing a program. For example, a circuit or the like that specially processes each function (so-called “ASIC” (Application By configuring the Specific Integrated Circuit)) in the digital camera 100, the above functions may be realized by hardware processing.

また、記憶部160には、「処理データ」として、例えば、撮影時の露光量(EV値)に対する絞り値(F値)やシャッタスピードの組み合わせなどといった撮影時に必要となる諸設定を示す情報(以下、「撮影パラメータ」という)などが記憶される他、本実施形態では、上記「判読可否判定機能」による判定時の基準を示す情報(以下、「判定基準情報」とする)が記憶される。すなわち、本実施形態では、後述する各処理により、撮影時の手ブレの程度に基づいて当該文字の判読性を判定するが、この手ブレ判定における基準を示す情報が記憶部160に予め記憶される。ここで、判定基準情報に示される基準は、例えば、所定の数値などで示され、判読可否の閾値として機能する。   Further, in the storage unit 160, as “process data”, for example, information indicating various settings required at the time of shooting such as a combination of an aperture value (F value) with respect to an exposure amount (EV value) at the time of shooting and a shutter speed, In the present embodiment, information indicating the criterion at the time of determination by the “readability determination function” (hereinafter referred to as “determination criterion information”) is stored. . That is, in the present embodiment, the legibility of the character is determined based on the degree of camera shake at the time of shooting by each process described later, and information indicating a reference for the camera shake determination is stored in the storage unit 160 in advance. The Here, the reference indicated in the determination reference information is indicated by a predetermined numerical value, for example, and functions as a threshold for legibility.

なお、本発明の実施形態における「判読」とは、取得した文書画像を表示等させたときに「ユーザ(人間)が目視により文字を認識可能である」ことをいう他、コンピュータによる文字認識処理において「一定以上の認識率(許容し得る認識率)で文字が認識される」ことをいうものとする。以下、人間の目視による認識(判読)を「目視認識」とし、コンピュータによる文字認識処理での認識(判読)を「機械認識」とする。   Note that “reading” in the embodiment of the present invention means “a user (human) can visually recognize a character” when displaying an acquired document image or the like, or a character recognition process by a computer. In the above, “characters are recognized at a certain recognition rate (acceptable recognition rate)”. Hereinafter, human visual recognition (interpretation) is referred to as “visual recognition”, and computer recognition (interpretation) is referred to as “machine recognition”.

本実施形態では、撮影時の手ブレの度合を示す「手ブレ量」基づいて、撮影した文書画像の判読可否を判定する(詳細後述)。したがって、本実施形態にかかる判定基準情報は、手ブレ量についての所定の基準値を示す。ここでは、手ブレ量の単位として「ピクセル」を採用するものとする。すなわち、手ブレによって画像にブレが生じた場合、このブレの幅(ブレ幅)を画像を構成するピクセルの数で規定する。   In the present embodiment, whether or not the captured document image is decipherable is determined based on “the amount of camera shake” indicating the degree of camera shake at the time of shooting (details will be described later). Therefore, the determination criterion information according to the present embodiment indicates a predetermined reference value for the amount of camera shake. Here, “pixel” is adopted as the unit of the amount of camera shake. That is, when a blur occurs in an image due to camera shake, the blur width (blur width) is defined by the number of pixels constituting the image.

このような判定基準情報は、例えば、図3(a)に示すような「判定基準情報テーブル」に設定されて記憶部160に格納される。ここで、「判定基準情報テーブル」には、デジタルカメラ100が取得する文書画像の利用用途に応じて判定基準値が設定される。本実施形態では、文書画像の利用用途として「目視認識」と「機械認識」を想定する。したがって、図3(a)に示すように、判定基準値が設定される「設定値」の欄には、「目視認識」と「機械認識」の項目が用意され、それぞれについて独立に判定基準値が設定される。   Such determination criterion information is set in, for example, a “determination criterion information table” as shown in FIG. Here, a determination reference value is set in the “determination reference information table” according to the use application of the document image acquired by the digital camera 100. In the present embodiment, “visual recognition” and “machine recognition” are assumed as usages of the document image. Accordingly, as shown in FIG. 3 (a), items of “visual recognition” and “machine recognition” are prepared in the “set value” field where the determination reference value is set, and the determination reference value is independently set for each item. Is set.

上述したように、判定基準値は判読可否の閾値として機能し、また、これらの数値は画像上でのブレ幅を示す。したがって、例えば、「判定基準情報テーブル」の「目視認識」に設定されている値以上のブレ幅となる手ブレが生じた場合には、「目視での文字認識ができない」と判定されることになる。同様に、「機械認識」に設定されている値以上のブレ幅となる手ブレが生じた場合には、「文字認識処理において所望する認識精度で認識できない」と判定されることになる。すなわち、判定基準値を上回るブレが生じている場合、「所望する画像品質ではない」ということとなる。   As described above, the determination reference value functions as a threshold for legibility, and these numerical values indicate the blur width on the image. Therefore, for example, if a camera shake with a blur width that is greater than or equal to the value set for “visual recognition” in the “determination criterion information table” occurs, it is determined that “character recognition cannot be performed visually”. become. Similarly, when a camera shake having a blur width equal to or greater than the value set in “machine recognition” occurs, it is determined that “cannot be recognized with a desired recognition accuracy in the character recognition process”. That is, if blurring that exceeds the determination reference value occurs, it means “not desired image quality”.

「判定基準情報テーブル」に設定される判定基準値は、デジタルカメラ100の製造者によって予め定められる他、ユーザによっても任意に設定可能であるものとする。したがって、図3(a)に示すように、製造者による設定値は「デフォルト値」として記録され、ユーザによる設定値は「ユーザ設定値」として記録される。   The determination reference value set in the “determination reference information table” is determined in advance by the manufacturer of the digital camera 100 and can be arbitrarily set by the user. Therefore, as shown in FIG. 3A, the set value by the manufacturer is recorded as “default value”, and the set value by the user is recorded as “user set value”.

ユーザによる設定は、操作入力部132および表示部141を用いて行われる。すなわち、図4に示すような設定画面を表示部141に表示し、操作入力部132を操作することにより、ユーザが所望する判定基準値が入力される。入力された情報は、「判定基準情報テーブル」の「ユーザ設定値」に記録される。なお、ユーザによる設定の要否は任意であるため、「ユーザ設定値」に設定がない場合は「デフォルト値」に設定されている値が判定に採用され、「ユーザ設定値」に設定がある場合は「ユーザ設定値」に設定されている値が判定に採用されるものとする。   Setting by the user is performed using the operation input unit 132 and the display unit 141. That is, by displaying the setting screen as shown in FIG. 4 on the display unit 141 and operating the operation input unit 132, a determination reference value desired by the user is input. The input information is recorded in “user set value” of the “determination reference information table”. Since the necessity of setting by the user is arbitrary, when there is no setting in the “user setting value”, the value set in the “default value” is adopted for the determination, and the “user setting value” is set. In this case, the value set in the “user set value” is adopted for the determination.

なお、このような判定基準値の設定は一例であり、判定基準値として設定する値や単位、および、設定方法などは任意である。例えば、「機械認識」に設定する判定基準値は、文字認識処理をおこなうプログラムや装置の認識精度などに応じて設定することができる。この場合、ユーザが操作入力部132を操作して設定可能なことはもとより、例えば、デジタルカメラ100と当該文字認識プログラムとの連携(協働)によって、「機械認識」の判定基準値が自動的に設定されるようにしてもよい。   Such setting of the determination reference value is an example, and the value and unit set as the determination reference value, the setting method, and the like are arbitrary. For example, the determination reference value to be set to “machine recognition” can be set according to a character recognition processing program, device recognition accuracy, and the like. In this case, the determination reference value of “machine recognition” is automatically set by, for example, cooperation (cooperation) between the digital camera 100 and the character recognition program as well as being settable by the user operating the operation input unit 132. You may make it set to.

また、本実施形態では、判読可否の判定に用いる「手ブレ量」を、デジタルカメラ100の揺れに基づいて制御部110が演算するが(詳細後述)、画像上での手ブレ量は、例えば、撮影時の焦点距離(f値)や記録画素数(画像サイズ)などに応じて異なる。すなわち、レンズの焦点距離が長い(すなわち、望遠側)ほど手ブレの影響を受けやすいため、デジタルカメラ100の揺れの度合が同じであっても、焦点距離が異なれば、画像上での手ブレ量(ブレ幅)も異なる。また、撮像素子123の有効画素数を制御することで複数種類の画像サイズに切替可能である場合、画像サイズ毎に解像度が異なることとなる。したがって、本実施形態のようにブレ幅をピクセル数で表す場合、解像度が異なれば、ブレ度合が同じであっても、それを表すピクセル数が異なる。   In this embodiment, the control unit 110 calculates the “hand shake amount” used to determine whether or not the image can be read based on the shake of the digital camera 100 (details will be described later). Depending on the focal length (f value) at the time of shooting, the number of recorded pixels (image size), and the like. In other words, the longer the focal length of the lens (that is, the telephoto side), the more susceptible to camera shake. Therefore, even if the degree of shaking of the digital camera 100 is the same, if the focal length differs, The amount (blur width) is also different. In addition, when the number of effective pixels of the image sensor 123 can be controlled to switch to a plurality of types of image sizes, the resolution differs for each image size. Therefore, when the blur width is represented by the number of pixels as in the present embodiment, if the resolution is different, the number of pixels representing it is different even if the blur degree is the same.

すなわち、手ブレの要因となるデジタルカメラ100の揺れ(方向や量)が同じであっても、そのときの焦点距離や画像サイズなどの条件が異なれば、画像上でのブレ度合やそれを表すピクセル数が異なってくる。したがって、手ブレ量を演算する際には、撮影時の諸条件に応じた所定の定数(以下、「手ブレ量定数C」とする)を用いることで適正な手ブレ量を求める。そのため、本実施形態では、この「手ブレ量定数C」を規定するための「手ブレ量定数テーブル」が記憶部160に作成される(図3(b))。   That is, even if the shake (direction and amount) of the digital camera 100 that causes camera shake is the same, if the conditions such as the focal length and the image size at that time are different, the degree of shake on the image and that are expressed. The number of pixels will be different. Therefore, when calculating the amount of camera shake, an appropriate amount of camera shake is obtained by using a predetermined constant (hereinafter referred to as “camera shake amount constant C”) according to various conditions at the time of shooting. For this reason, in this embodiment, a “camera shake amount constant table” for defining this “camera shake amount constant C” is created in the storage unit 160 (FIG. 3B).

「手ブレ量定数テーブル」には、図3(b)に示すように、デジタルカメラ100のレンズ性能(例えば、焦点距離f)と記録可能な画像サイズ(記録画素数)との組み合わせに対応する手ブレ量定数Cが設定されている。なお、本実施形態にかかるデジタルカメラ100は、焦点距離fが可変の、いわゆるズーム機能を有しているものとし、また、撮像素子123の有効画素数を制御することで複数種類の画像サイズ(解像度)に切替可能であるものとする。このような場合、図3(b)に示すように、「手ブレ量定数テーブル」には、ズーム範囲(焦点距離範囲)を、例えば、所定のステップ(1〜n)で区分し、各ステップと画像サイズの種類(例えば、1〜m種類)の組み合わせに応じて「手ブレ量定数C」が対応付けられる。   As shown in FIG. 3B, the “camera shake amount constant table” corresponds to a combination of lens performance (for example, focal length f) of the digital camera 100 and recordable image size (number of recording pixels). A camera shake amount constant C is set. Note that the digital camera 100 according to the present embodiment has a so-called zoom function in which the focal length f is variable, and a plurality of types of image sizes (by controlling the number of effective pixels of the image sensor 123 ( It is possible to switch to (Resolution). In such a case, as shown in FIG. 3B, in the “camera shake amount constant table”, the zoom range (focal length range) is divided into, for example, predetermined steps (1 to n). "Shake amount constant C" is associated with the combination of the image size (for example, 1 to m types).

すなわち、「手ブレ量定数テーブル」は、デジタルカメラ100の性能に応じて設定されるものであり、レンズの焦点距離や取得可能な画像サイズなどに応じて適宜設定される。また、撮像素子123の総画素数なども影響するため、撮像素子123の性能も考慮して設定される。このような設定値は、例えば、デジタルカメラ100の製造者が得た実測値に基づいて決定される。なお、撮影時に選択されている画像サイズを示す情報は、撮影パラメータとして記憶部160に記憶されるものとする。   That is, the “camera shake amount constant table” is set according to the performance of the digital camera 100, and is appropriately set according to the focal length of the lens, the obtainable image size, and the like. Further, since the total number of pixels of the image sensor 123 influences, the performance of the image sensor 123 is set in consideration. Such a setting value is determined based on an actual measurement value obtained by the manufacturer of the digital camera 100, for example. Note that information indicating the image size selected at the time of shooting is stored in the storage unit 160 as a shooting parameter.

また記憶部160には、出力部140が出力する「通知情報」が記憶される。本実施形態では、後述する処理によって判定される判読可否に応じて、所定の通知情報が出力される。したがって、本実施形態では、判読可否の判定結果を示す情報と出力される通知情報とが対応付けられた、図3(c)に示すような「通知情報テーブル」が記憶部160に用意される。「通知情報テーブル」の項目「通知情報」には、所定のメッセージを示すテキストデータ(もしくは画像データ)が記録される他、必要に応じてアイコンなどの画像データが記録される。   The storage unit 160 stores “notification information” output from the output unit 140. In the present embodiment, predetermined notification information is output in accordance with the legibility determined by processing described later. Therefore, in this embodiment, a “notification information table” as shown in FIG. 3C is prepared in the storage unit 160 in which information indicating the determination result of legibility is associated with output notification information. . In the item “notification information” of the “notification information table”, text data (or image data) indicating a predetermined message is recorded, and image data such as an icon is recorded as necessary.

また、本実施形態では、判定基準値を「目視認識」と「機械認識」とで独立に設定しているので、各用途毎の判定結果に応じて通知情報が用意される。例えば、「目視認識は可能だが機械認識は不可」である旨を示すメッセージ(通常「機械認識」での判定基準の方が「目視認識」での判定基準よりシビアであるため)や、「目視認識、機械認識ともに不可」である旨のメッセージなどが通知情報として記録され、用途毎の判定結果に応じて選択的に出力される。なお、図3(c)の例では、判定結果が「判読不可」である場合を「NG」と表記し、「判読可」である場合を「OK」と表記している。   In the present embodiment, since the determination reference value is set independently for “visual recognition” and “machine recognition”, notification information is prepared according to the determination result for each application. For example, a message indicating that “visual recognition is possible but machine recognition is not possible” (since the judgment standard in “machine recognition” is usually more severe than the judgment standard in “visual recognition”) A message indicating that “recognition and machine recognition are both impossible” is recorded as notification information, and is selectively output according to a determination result for each application. In the example of FIG. 3C, the case where the determination result is “unreadable” is described as “NG”, and the case where it is “readable” is described as “OK”.

また、「通知情報テーブル」には、設定されている通知方式がいずれであるかを示す情報も記録される。ここで「通知方式」とは、通知情報の出力形態であり、デジタルカメラ100が有する出力部140の構成に応じて用意される。本実施形態では、例えば、「メッセージ表示」、「アイコン表示」、「インジケータ発光」、「音声通知」、「アラーム通知」、などが通知方式として用意される(詳細後述)。これらの通知方式は、ユーザによって任意に選択されるものであり、操作入力部132などの操作によって、ユーザが所望する通知方式が選択・設定される。なお、「通知方式」として「インジケータ発光」や「アラーム通知」が用意される場合は、例えば、発光パターンや報音パターンなどを示す情報が「通知情報テーブル」の「通知情報」欄に記録されているものとする。   In the “notification information table”, information indicating which notification method is set is also recorded. Here, the “notification method” is an output form of notification information, and is prepared according to the configuration of the output unit 140 of the digital camera 100. In this embodiment, for example, “message display”, “icon display”, “indicator light emission”, “voice notification”, “alarm notification”, and the like are prepared as notification methods (details will be described later). These notification methods are arbitrarily selected by the user, and the notification method desired by the user is selected and set by the operation of the operation input unit 132 or the like. In addition, when “indicator light emission” or “alarm notification” is prepared as the “notification method”, for example, information indicating a light emission pattern, a sound report pattern, etc. is recorded in the “notification information” column of the “notification information table”. It shall be.

センサ部170は、例えば、加速度センサや角速度センサ(ジャイロセンサ)などから構成され、撮影時の手ブレの要因となるデジタルカメラ100の動き(「揺れ」など)を検出するセンサ(揺れセンサ)である。本実施形態では、加速度センサから構成されるものとし、デジタルカメラ100の揺れを検出し、その度合を示す加速度(mm/s)を検出値として随時制御部110に送出する。   The sensor unit 170 includes, for example, an acceleration sensor, an angular velocity sensor (gyro sensor), and the like, and is a sensor (a shake sensor) that detects a movement (such as “shake”) of the digital camera 100 that causes a camera shake during shooting. is there. In the present embodiment, the digital camera 100 is assumed to be composed of an acceleration sensor, and an acceleration (mm / s) indicating the degree is sent to the control unit 110 as a detection value as needed.

すなわち、センサ部170により撮影時の手ブレの有無が検出され、手ブレが発生した場合にはその度合が検出される。ここで、「手ブレ」は、撮影時のデジタルカメラ100に働く外力(例えば、シャッタ押下などのユーザの動作)によりデジタルカメラ100が動くことで、撮影した画像にブレが生じることである。手ブレが発生することで、画像品質が低下し、文書撮影においては、取得される文書画像の判読性が低下することとなる。センサ部170は、このような手ブレを物理的な検出動作により撮影時に検出する。なお、撮影時の手ブレを検出できるのであれば、センサの種類や検出方法は任意である。   That is, the sensor unit 170 detects the presence or absence of camera shake at the time of shooting, and when a camera shake occurs, the degree is detected. Here, “camera shake” means that the digital camera 100 moves due to an external force acting on the digital camera 100 at the time of shooting (for example, a user operation such as pressing a shutter), and thus a shot image is blurred. Due to the occurrence of camera shake, the image quality deteriorates, and in document photographing, the readability of the acquired document image decreases. The sensor unit 170 detects such camera shake at the time of photographing by a physical detection operation. Note that the type of sensor and the detection method are arbitrary as long as camera shake during shooting can be detected.

なお、上記の各構成は、本発明の実施に必要な要部であり、デジタルカメラ100には、これらの他に、デジタルカメラとして必要な構成や機能、および、その他の付加的な構成や機能が、必要に応じて備えられているものとする。   Note that each of the above-described configurations is a main part necessary for carrying out the present invention, and in addition to these, the digital camera 100 includes other configurations and functions necessary as a digital camera, and other additional configurations and functions. Are provided as necessary.

次に、上記のように構成されたデジタルカメラ100の動作を図面を参照して以下説明する。後述する各処理は、記憶部160に格納されている動作プログラムを制御部110が実行することで実現される。   Next, the operation of the digital camera 100 configured as described above will be described below with reference to the drawings. Each process to be described later is realized by the control unit 110 executing an operation program stored in the storage unit 160.

本発明の実施形態1にかかる「文書撮影処理(1)」を図5、図6に示すフローチャートを参照して説明する。ここでは、用紙や看板などに記された文字(以下、「文書」とする)をデジタルカメラ100で撮影し、当該文書の内容を示す画像データとして保存する。保存された画像データは、例えば、所定の文字認識プログラムで処理されることにより、テキストデータなどに変換して抽出することで、従来のメモやスキャナによる取り込みの代用として利用される。このような目的で文書を撮影することを「文書撮影」とし、文書撮影によって得られる画像を「文書画像」とする。以下に説明する「文書撮影処理(1)」は、撮影モードとして「文書撮影モード」が選択された状態で、制御部110がシャッタボタン131からシャッタ信号を受信することを契機に開始される。なお、「文書撮影モード」が選択されている状態では、撮像素子123がレンズユニット121を介して入光する入射光を受光し、受光した素子の電荷に応じた画像を表示部141に表示する。   The “document shooting process (1)” according to the first embodiment of the present invention will be described with reference to the flowcharts shown in FIGS. Here, characters (hereinafter referred to as “document”) written on a sheet of paper or a signboard are photographed by the digital camera 100 and stored as image data indicating the contents of the document. For example, the stored image data is processed by a predetermined character recognition program to be converted into text data or the like and extracted, thereby being used as a substitute for capturing with a conventional memo or scanner. Shooting a document for such a purpose is referred to as “document shooting”, and an image obtained by document shooting is referred to as a “document image”. The “document shooting process (1)” described below is started when the control unit 110 receives a shutter signal from the shutter button 131 in a state where “document shooting mode” is selected as the shooting mode. When the “document shooting mode” is selected, the image sensor 123 receives incident light that enters through the lens unit 121 and displays an image corresponding to the charge of the received element on the display unit 141. .

ユーザは、表示部141に表示されている画像をもとに、デジタルカメラ100の位置調整やズーム操作などにより構図や画角などを決定すると、シャッタボタン131を押下(半押し)する。これに応じて、シャッタボタン131からは、半押し信号が制御部110に送出される。制御部110は、シャッタボタン131から半押し信号を受信したことを契機に撮影準備動作を開始する(ステップS101)。   When the user determines the composition, the angle of view, or the like by adjusting the position of the digital camera 100 or performing a zoom operation based on the image displayed on the display unit 141, the user presses the shutter button 131 (half-press). In response to this, a half-press signal is sent from the shutter button 131 to the control unit 110. The control unit 110 starts a shooting preparation operation when receiving a half-press signal from the shutter button 131 (step S101).

ここでは、測距・測光部122による測距・測光動作に基づいて、レンズユニット121が駆動されて文書に対するピント合わせ(合焦)などが行われるとともに、適正なシャッタスピードと絞り値(撮影パラメータ)が特定される。また、ズーム操作によって決定された焦点距離(f値)を特定する。なお、ユーザがシャッタボタン131を半押し状態にしている間、半押し信号がシャッタボタン131から制御部110に送出され続けるものとする。   Here, based on the distance measurement / photometry operation by the distance measurement / photometry unit 122, the lens unit 121 is driven to perform focusing (focusing) on the document, and an appropriate shutter speed and aperture value (imaging parameters). ) Is identified. Also, the focal length (f value) determined by the zoom operation is specified. It is assumed that the half-press signal continues to be sent from the shutter button 131 to the control unit 110 while the user is pressing the shutter button 131 halfway.

文書に合焦されると、ユーザはシャッタボタン131を全押しにすることで、撮影を指示する。これに応じ、シャッタボタン131から全押し信号が制御部110に送出される。制御部110は、シャッタボタン131から全押し信号を受信すると、ユーザから撮影指示であると判別し(ステップS102:Yes)、ステップS101で特定した絞りとなるようレンズユニット121を駆動するとともに、特定されたシャッタスピードに応じて撮像素子123を露光させる。これにより、特定された撮影パラメータで撮像が行われ、入射光に対応する画像データ(撮像画像)が取得され、画像記録部150のバッファに格納される(ステップS103)。   When the document is in focus, the user instructs shooting by pressing the shutter button 131 fully. In response to this, a full-press signal is sent from the shutter button 131 to the control unit 110. When the control unit 110 receives a full-press signal from the shutter button 131, the control unit 110 determines that the instruction is a shooting instruction from the user (step S102: Yes), and drives the lens unit 121 so as to obtain the aperture specified in step S101. The image sensor 123 is exposed according to the shutter speed that has been set. Thereby, imaging is performed with the specified imaging parameter, and image data (captured image) corresponding to the incident light is acquired and stored in the buffer of the image recording unit 150 (step S103).

なお、例えば、撮影中断などでユーザがシャッタボタン131の半押し状態を解除すると、シャッタボタン131からのシャッタ信号が途絶え、これにより制御部110は、ユーザからの撮影指示がないと判別して(ステップS102:No)、処理を終了する。   For example, when the user releases the half-pressed state of the shutter button 131 due to interruption of shooting, the shutter signal from the shutter button 131 is interrupted, and the control unit 110 determines that there is no shooting instruction from the user ( Step S102: No), the process ends.

撮影指示があった場合、制御部110は、ステップS103での撮像動作と同時に、センサ部170からその時点の検出値を取得する(ステップS104)。より詳細には、全押し信号を受信した時点から、ステップS101で特定したシャッタスピードに対応する時間(秒)経過するまでの間のデジタルカメラ100の揺れを示す検出値を取得する。   When there is a shooting instruction, the control unit 110 acquires the detection value at that time from the sensor unit 170 simultaneously with the imaging operation in step S103 (step S104). More specifically, a detection value indicating the shaking of the digital camera 100 is acquired from the time when the full press signal is received until the time (seconds) corresponding to the shutter speed specified in step S101 elapses.

制御部110は、ステップS104で取得した検出値と、ステップS101で特定したシャッタスピードおよび焦点距離(f)に基づいて、ステップS103で取得した撮像画像上の手ブレ量を算出する(ステップS105)。上述したように、本実施形態では、画像データ上での手ブレ量として、ブレ幅を示すピクセル数で求める。ここでは、「手ブレ量(ピクセル)=検出値(mm/s)×シャッタスピード(s)×手ブレ量定数C」を制御部110が演算することにより手ブレ量を求める。   The control unit 110 calculates the camera shake amount on the captured image acquired in step S103 based on the detection value acquired in step S104 and the shutter speed and focal length (f) specified in step S101 (step S105). . As described above, in the present embodiment, the camera shake amount on the image data is obtained by the number of pixels indicating the blur width. Here, the amount of camera shake is obtained by the control unit 110 calculating “camera shake amount (pixel) = detection value (mm / s) × shutter speed (s) × camera shake amount constant C”.

すなわち、例えば、ユーザによるシャッタボタン131の押下に伴うデジタルカメラ100への荷重印加などによってデジタルカメラ100に揺れが生じると、センサ部170が揺れによるデジタルカメラ100の移動量を加速度(mm/s)として検出する。ここでは、秒間の移動量を示しているので、これに露光時間であるシャッタスピード(秒)を乗じることで、撮像素子123に露光している間のデジタルカメラ100の移動量(揺れ量)が求まる。さらに、記憶部160の「手ブレ量定数テーブル」から、撮影時の焦点距離(f)と選択されている画像サイズに対応する手ブレ量定数Cを特定して乗じることで、画像上に生じるブレのブレ幅(手ブレ量)を示すピクセル数を求めることができる。   That is, for example, when the digital camera 100 is shaken due to a load applied to the digital camera 100 when the user presses the shutter button 131, the sensor unit 170 determines the amount of movement of the digital camera 100 by the acceleration (mm / s). Detect as. Here, since the movement amount per second is shown, the movement amount (shake amount) of the digital camera 100 during exposure to the image sensor 123 is obtained by multiplying this by the shutter speed (second) that is the exposure time. I want. Furthermore, it is generated on the image by specifying and multiplying the camera shake amount constant C corresponding to the focal length (f) at the time of shooting and the selected image size from the “camera shake amount constant table” of the storage unit 160. The number of pixels indicating the blur width (shake amount) of the blur can be obtained.

手ブレ量が求まると、制御部110は、記憶部160の「判定基準情報テーブル」を参照し、「目視認識」に設定されている判定基準値と、求めた手ブレ量とを比較する(ステップS106)。ここで、「判定基準情報テーブル」の「ユーザ設定値」に判定基準値が設定されている場合にはその判定基準値と比較し、設定されていない場合には「デフォルト値」に設定されている判定基準値と比較する。   When the camera shake amount is obtained, the control unit 110 refers to the “determination reference information table” in the storage unit 160 and compares the determination reference value set to “visual recognition” with the obtained camera shake amount ( Step S106). Here, if a judgment reference value is set in “User setting value” in the “Judgment Criteria Information Table”, it is compared with that judgment reference value, and if it is not set, it is set to “Default Value”. Compare with the reference value.

求めた手ブレ量が判定基準値未満である場合(図6、ステップS107:Yes)、制御部110は「目視認識」では「判読可」であると判定する(ステップS108)。一方、手ブレ量が判定基準値以上である場合(ステップS107:No)は、制御部110は「目視認識」では「判読不可」であると判定する(ステップS109)。   When the calculated camera shake amount is less than the determination reference value (FIG. 6, Step S107: Yes), the control unit 110 determines that “visual recognition” is “readable” (Step S108). On the other hand, when the amount of camera shake is equal to or greater than the determination reference value (step S107: No), the control unit 110 determines that “visual recognition” is “unreadable” (step S109).

次に制御部110は、「判定基準情報テーブル」の「機械認識」に設定されている判定基準値と、求めた手ブレ量とを比較する(ステップS110)。「ユーザ設定値」か「デフォルト値」かの選択は上記と同様である。   Next, the control unit 110 compares the determination reference value set in “machine recognition” in the “determination reference information table” with the calculated amount of camera shake (step S110). The selection of “user set value” or “default value” is the same as described above.

求めた手ブレ量が判定基準値未満である場合(ステップS111:Yes)、制御部110は「機械認識」では「判読可」であると判定する(ステップS112)。一方、手ブレ量が判定基準値以上である場合(ステップS111:No)は、制御部110は「機械認識」では「判読不可」であると判定する(ステップS113)。   When the calculated amount of camera shake is less than the determination reference value (step S111: Yes), the control unit 110 determines that “readable” in “machine recognition” (step S112). On the other hand, when the amount of camera shake is equal to or greater than the determination reference value (step S111: No), the control unit 110 determines that “unreadable” in “machine recognition” (step S113).

制御部110は、ステップS108またはS109、および、ステップS112またはS113での判定結果に「判読不可」があるか否かを判別する(ステップS114)。   The control unit 110 determines whether or not there is “unreadable” in the determination result in step S108 or S109 and in step S112 or S113 (step S114).

ここで、いずれの判定結果にも「判読不可」がない場合(ステップS114:No)、制御部110は、ステップS103でバッファに格納した画像データを画像記録部150に記録し(ステップS117)、処理を終了する。すなわち、今回の撮影では、手ブレが生じなかったか、あるいは、手ブレが生じていても「目視認識」、「機械認識」ともに判読可能なレベルであるため、ステップS102でのユーザの撮影指示で取得された画像を「文書画像」として画像記録部150に保存する。   If there is no “unreadable” in any of the determination results (step S114: No), the control unit 110 records the image data stored in the buffer in step S103 in the image recording unit 150 (step S117). The process ends. That is, in this shooting, there is no camera shake, or even if there is a camera shake, both “visual recognition” and “machine recognition” are readable levels. The acquired image is stored in the image recording unit 150 as a “document image”.

一方、いずれかの判定結果に「判読不可」があった場合は(ステップS114:Yes)、制御部110は、判定結果に応じた通知情報を出力部140から出力する(ステップS115)。ここでは、制御部110が記憶部160の「通知情報テーブル」から、各判定結果に対応する通知情報を選択し、設定されている通知方式で出力部140から出力する。   On the other hand, if any of the determination results includes “unreadable” (step S114: Yes), the control unit 110 outputs notification information corresponding to the determination result from the output unit 140 (step S115). Here, the control unit 110 selects notification information corresponding to each determination result from the “notification information table” in the storage unit 160 and outputs the notification information from the output unit 140 in the set notification method.

ここで、通知方式として、例えば、「メッセージ表示」、「アイコン表示」、「インジケータ発光」、「音声通知」、「アラーム通知」などが用意されるものとする。これらの通知方式は、ユーザの所望に応じて任意に選択される。すなわち、操作入力部132などを操作することで、通知方式をいずれにするかが予め設定される。なお、これらの通知方式のうち、1つが選択されてもよく、あるいは、複数が組み合わされて選択されてもよい。   Here, for example, “message display”, “icon display”, “indicator emission”, “voice notification”, “alarm notification”, and the like are prepared as notification methods. These notification methods are arbitrarily selected according to the user's desire. In other words, the notification method is set in advance by operating the operation input unit 132 or the like. One of these notification methods may be selected, or a plurality may be selected in combination.

「メッセージ表示」が選択されている場合、選択された通知情報に示されるメッセージが表示部141に表示される。   When “message display” is selected, the message shown in the selected notification information is displayed on the display unit 141.

「アイコン表示」が選択されている場合、選択された通知情報に示される所定のアイコン(絵文字)が表示部141に表示される。   When “icon display” is selected, a predetermined icon (pictogram) shown in the selected notification information is displayed on the display unit 141.

「インジケータ発光」が選択されている場合、選択された通知情報に対応する所定の発光パターンで、インジケータ部143が点灯または点滅する。この場合、規定されている発光パターンが通知情報として機能する。ここで、発光パターンとして、例えば、発光色や明滅パターンなどが予め規定される。例えば、インジケータ部143が「緑」と「赤」の2色のLEDから構成されている場合、いずれの色をどのように明滅させるか(明滅速度など)が規定されており、デジタルカメラ100における種々の検出事象(例えば、合焦、バッテリ切れ、など)とが予め対応付けられる。   When “indicator light emission” is selected, the indicator unit 143 lights up or blinks with a predetermined light emission pattern corresponding to the selected notification information. In this case, the prescribed light emission pattern functions as notification information. Here, as the light emission pattern, for example, a light emission color or a blinking pattern is defined in advance. For example, in the case where the indicator unit 143 is composed of LEDs of two colors of “green” and “red”, which color is to be blinked and how (flashing speed, etc.) is defined. Various detection events (for example, focusing, battery exhaustion, etc.) are associated in advance.

「音声通知」が選択されている場合、選択された通知情報に示されるメッセージが報音部142から出力される。この場合、出力された音声が通知情報として機能する。ここでは、「メッセージ表示」の場合に取得されるテキストデータが取得され、所定の音声合成手法により、当該テキストデータで示されるメッセージが、あたかも人が発話しているように報音部142から出力される。あるいは、「通知情報テーブル」に、発話された各メッセージのサンプリングデータなどが音声ファイルとして格納されている場合には、該当する音声ファイルを再生することで音声出力する。   When “voice notification” is selected, a message indicated by the selected notification information is output from the sound report unit 142. In this case, the output voice functions as notification information. Here, the text data acquired in the case of “message display” is acquired, and the message indicated by the text data is output from the sound report unit 142 as if a person is speaking by a predetermined speech synthesis method. Is done. Alternatively, when the “notification information table” stores sampling data of each uttered message as an audio file, the corresponding audio file is reproduced and output as audio.

「アラーム通知」が選択している場合、選択された通知情報に対応する所定の報音パターンでアラーム音が報音部142から出力される。この場合、規定されている報音パターンが通知情報として機能する。報音パターンは、例えば、音色や音程、あるいは、音の長さなどから規定される。   When “alarm notification” is selected, an alarm sound is output from the sound report unit 142 in a predetermined sound pattern corresponding to the selected notification information. In this case, a prescribed sound report pattern functions as notification information. The report sound pattern is defined from, for example, a tone color, a pitch, or a sound length.

本実施形態では、通知方式として「メッセージ表示」が選択されているものとして、表示例を以下に説明する。   In the present embodiment, a display example will be described below assuming that “message display” is selected as the notification method.

「目視認識」、「機械認識」ともに「判読不可」と判定された場合(ステップS109、S113)は、図7(a)に示すようなメッセージが表示部141に表示される。ここでは、手ブレにより目視認識も機械認識も困難である旨を示すメッセージが表示されるとともに、回避するための対応策などを示すアドバイス情報が表示される(MSG11)。すなわち、手ブレはデジタルカメラ100が安定していなかったり、光量が少ないためにシャッタスピードが長くなると発生しやすいので、三脚を用いたり、照明を当てるなどの対応策を表示する。   When both “visual recognition” and “machine recognition” are determined to be “unreadable” (steps S109 and S113), a message as shown in FIG. 7A is displayed on the display unit 141. Here, a message indicating that visual recognition and machine recognition are difficult due to camera shake is displayed, and advice information indicating countermeasures for avoidance is displayed (MSG11). That is, camera shake is likely to occur when the digital camera 100 is not stable or the shutter speed becomes long because the amount of light is small, so a countermeasure such as using a tripod or lighting is displayed.

また、「目視認識」は「判読可」と判定され(ステップS108)、「機械認識」は「判読不可」と判定された場合(ステップS113)には、図7(b)に示すようなメッセージが表示部141に表示される。ここでは、目視認識での判読は可能であるが、手ブレにより機械認識は困難である旨のメッセージが表示されるとともに、上記と同様のアドバイス情報が表示される(MSG12)。   If “visual recognition” is determined as “readable” (step S108) and “machine recognition” is determined as “unreadable” (step S113), a message as shown in FIG. 7B is displayed. Is displayed on the display unit 141. Here, a message that visual recognition is possible but machine recognition is difficult due to camera shake is displayed, and advice information similar to the above is displayed (MSG12).

なお、図7に示す各メッセージは一例であり、また、その他の判定結果に応じたメッセージが用意されてもよい。   Each message shown in FIG. 7 is an example, and messages according to other determination results may be prepared.

また、図7に示す表示画面において、ユーザに画像の記録要否を問い合わせるメッセージと、この問い合わせに対する回答(「はい」および「いいえ」)を選択するための選択肢が表示される。すなわち、本実施形態では、いずれかの判定結果に「判定不可」がある場合に上記のようなメッセージを表示するが、上記のような問い合わせをすることで、表示したメッセージに応じてユーザが画像を記録するか否かの判断を促す。例えば、ユーザが取得する文書画像の利用目的として「目視認識」としている場合は、メッセージMSG12が表示されても、要求する画像品質が得られている。この場合、ユーザは撮影した画像の記録を所望するので、「画像記録要」であることを示す回答(「はい」)を選択する。ユーザによる回答の選択は、操作入力部132などを操作して行われる。   In addition, on the display screen shown in FIG. 7, a message for inquiring the user whether or not to record an image and options for selecting an answer (“Yes” and “No”) to the inquiry are displayed. That is, in the present embodiment, the message as described above is displayed when there is “determination impossible” in any of the determination results, but the user makes an image according to the displayed message by making an inquiry as described above. Prompts the user to decide whether or not to record. For example, when “visual recognition” is used as the purpose of use of the document image acquired by the user, the requested image quality is obtained even when the message MSG12 is displayed. In this case, since the user desires to record the photographed image, the user selects an answer (“Yes”) indicating “image recording is necessary”. The user selects an answer by operating the operation input unit 132 or the like.

操作入力部132の操作に応じて、問い合わせに対するユーザの回答が指示されると、回答内容を示す信号が制御部110に送出される。制御部110は、受信した信号に基づいて、ユーザによる記録指示の有無を判別する(ステップS116)。   When a user's answer to the inquiry is instructed according to the operation of the operation input unit 132, a signal indicating the content of the answer is sent to the control unit 110. Based on the received signal, control unit 110 determines the presence / absence of a recording instruction from the user (step S116).

ここで、ユーザによる記録指示がない場合(ステップS116:No)、すなわち、上記問い合わせに対する回答が「画像記録不要」である(「いいえ」)場合、制御部110は、バッファに格納されている画像データを削除して(ステップS118)、処理を終了する。   Here, when there is no recording instruction by the user (step S116: No), that is, when the answer to the inquiry is “no image recording required” (“No”), the control unit 110 displays the image stored in the buffer. Data is deleted (step S118), and the process is terminated.

一方、ユーザによる記録指示がある場合(ステップS116:Yes)は、バッファに格納されている画像データを画像記録部150に保存して(ステップS117)、処理を終了する。   On the other hand, if there is a recording instruction from the user (step S116: Yes), the image data stored in the buffer is saved in the image recording unit 150 (step S117), and the process is terminated.

すなわち、「目視認識」と「機械認識」のそれぞれについての判読可否判定に応じたメッセージが表示されることで、ユーザは目的に応じて、撮影した画像の記録または破棄をその場で選択することができる。   That is, by displaying a message according to the readability determination for each of “visual recognition” and “machine recognition”, the user can select whether to record or discard the captured image on the spot according to the purpose. Can do.

上記「文書撮影処理(1)」によれば、撮影時の手ブレによる影響による判読可否を撮影時に判定し、判定結果に応じた通知情報を出力するので、ユーザはその場で撮影画像の記録または破棄を決定することができる。ここで、撮影した瞬間の手ブレの検出を、センサ部170からの検出値に基づいておこなっているため、取得した画像に画像処理をおこなうことで手ブレを検出する場合に比べ、高速に検出・判定することができる。このため、連続撮影する場合などには次の撮影を迅速におこなうことができ、撮影効率を低下させることがない。   According to the above-mentioned “document shooting process (1)”, whether or not to interpret due to the influence of camera shake at the time of shooting is determined at the time of shooting, and notification information corresponding to the determination result is output. Or you can decide to discard. Here, since camera shake detection at the moment of shooting is performed based on the detection value from the sensor unit 170, detection is performed at a higher speed than when camera shake is detected by performing image processing on the acquired image.・ It can be judged. Therefore, in the case of continuous shooting, the next shooting can be performed quickly, and the shooting efficiency is not reduced.

また、判読可否の判定を、「目視認識」や「機械認識」などの用途に応じて独立しておこない、それぞれの判定結果に応じた通知情報を出力するので、ユーザは、用途に応じて、画像の記録または破棄を適切に選択することができる。また、判読可否判定の基準をユーザが任意に設定することができるので、ユーザの好みや利用する文字認識処理の精度などに応じて、適切に判読可否を判定することができる。   In addition, the determination of legibility is performed independently according to applications such as "visual recognition" and "machine recognition", and notification information according to each determination result is output. It is possible to appropriately select recording or discarding of images. Further, since the user can arbitrarily set the reference for determining the legibility, it is possible to appropriately determine the legibility according to the user's preference and the accuracy of the character recognition process to be used.

(実施形態2)
上記実施形態1では、文書画像の判読可否を手ブレにより判定したが、判読性の良否には手ブレ以外の要因もあり、手ブレのみでは判読可否を正確に判定することができない。このため、通常、撮影された文書画像に示される文字の大きさ(文字サイズ)に基づいて判読性を判別するが、デジタルカメラなどのレンズは、その性能によって収差などがあるため、本来の文字サイズが同じであっても、撮影された文書画像の全面において文字サイズが均一とならない場合がある。このような画像から文字サイズを特定しても不正確となるため、文字サイズに基づいた判読可否判断も不正確となる。
(Embodiment 2)
In the first embodiment, whether or not a document image can be read is determined by camera shake. However, there are other factors other than camera shake in the quality of readability. For this reason, the legibility is usually determined based on the character size (character size) shown in the photographed document image. However, a lens such as a digital camera has aberration due to its performance. Even if the sizes are the same, the character size may not be uniform over the entire surface of the photographed document image. Even if the character size is specified from such an image, it becomes inaccurate, so that the legibility determination based on the character size is also inaccurate.

本実施形態では、デジタルカメラ100を用いて、文字サイズに基づく判読可否判断をより正確におこなう場合を説明する。なお、デジタルカメラ100の構成、および、用語の定義などは実施形態1で示したものと同一であるが、実施形態1で示した動作プログラム(P1〜P4)に加え、本実施形態では以下のプログラムが記憶部160に格納される。
(P5)「文字サイズ特定プログラム」:文書画像に示されている文字のサイズを特定するためのプログラム
In the present embodiment, a case will be described in which the digital camera 100 is used to more accurately determine the legibility based on the character size. The configuration of the digital camera 100 and the definition of terms are the same as those shown in the first embodiment, but in addition to the operation programs (P1 to P4) shown in the first embodiment, The program is stored in the storage unit 160.
(P5) “Character size specifying program”: a program for specifying the size of characters shown in the document image

また、制御部110が上記「文字サイズ特定プログラム」を実行することにより、実施形態1で示した各機能(F1〜F5)に加え、本実施形態では以下の機能が実現される。
(F6)「文字検出機能」:文書画像に示される文字部分を検出して文字サイズを特定するする機能
In addition to the functions (F1 to F5) shown in the first embodiment, the following functions are realized in the present embodiment by the control unit 110 executing the “character size specifying program”.
(F6) “Character detection function”: a function for detecting the character portion shown in the document image and specifying the character size

なお、本実施形態では、記憶部160に格納されている「判読可否判定プログラム(P2)」は、「特定された文字サイズなどに基づいて、文書画像の画像品質を判定し、文書画像に示されている文字が判読可能か否かを判定するためのプログラム」となり、このプログラムの実行により実現される「判読可否判定機能(F3)」は、「文字サイズなどに基づいて、文書画像の画像品質を判定し、文書画像に示される文字が判読可能か否かを判定する機能」となる。   In this embodiment, the “readable / unreadable program (P2)” stored in the storage unit 160 determines the image quality of the document image based on the specified character size and the like, and displays the image on the document image. "A program for determining whether or not a read character is legible", and the "readability judgment function (F3)" realized by executing this program is an image of a document image based on a character size or the like. “A function for judging quality and judging whether or not the characters shown in the document image are legible”.

また、本実施形態では、手ブレ量ではなく文字サイズに基づいて判読可否を判定するため、記憶部160に用意される「判定基準情報テーブル」(図3(a))および「通知情報テーブル」(図3(c))の内容が実施形態1の場合と異なる。また、文字サイズによる判定をおこなうための他の処理データも記憶部160に用意される。本実施形態で記憶部160に用意される処理データの例を図面を参照して説明する。   Further, in the present embodiment, the “determination reference information table” (FIG. 3A) and the “notification information table” prepared in the storage unit 160 are used to determine whether or not the image can be read based on the character size rather than the camera shake amount. The content of (FIG. 3C) is different from that of the first embodiment. In addition, other processing data for performing determination based on the character size is also prepared in the storage unit 160. An example of processing data prepared in the storage unit 160 in the present embodiment will be described with reference to the drawings.

本実施形態では、図8(a)に示すような「判定基準情報テーブル」が記憶部160に用意される。本実施形態では、文書画像に示される文字サイズに基づいて、文書の判読可否が判定されるが、この判読可否を判定する際の基準となる文字サイズが予め規定されて「判定基準情報テーブル」に設定される。ここでは、文書などにおいて通常用いられる文字サイズ単位(例えば、「ポイント」や「ミリメートル」など。以下、「既定サイズ」とする)で指定する。   In the present embodiment, a “determination criterion information table” as shown in FIG. In the present embodiment, whether or not a document can be read is determined based on the character size indicated in the document image. A character size serving as a reference for determining whether or not the document can be read is defined in advance, and a “determination reference information table”. Set to Here, it is designated in character size units (for example, “point”, “millimeter”, etc., hereinafter referred to as “default size”) normally used in documents and the like.

実施形態1と同様、判定基準値は、文書画像の判読可否を判定する閾値として機能する。すなわち、取得された文書画像に示される文字のサイズが判定基準値未満である場合、当該文字を判読することができないと判定され、判定基準値以上である場合は、判読可能であると判定される。すなわち、判定基準値に基づいて、取得された文書画像の画像品質が判定されることとなる。   As in the first embodiment, the determination reference value functions as a threshold for determining whether or not a document image can be read. That is, when the size of the character shown in the acquired document image is less than the determination reference value, it is determined that the character cannot be read, and when it is greater than the determination reference value, it is determined that the character can be read. The That is, the image quality of the acquired document image is determined based on the determination reference value.

また、実施形態1と同様、「判定基準情報テーブル」の設定はデジタルカメラ100の製造者によって予めおこなわれる他、ユーザによって任意に設定可能であるものとする。ユーザによる設定は、操作入力部132および表示部141を用いて行われる。すなわち、図8(b)に示すような設定画面を表示部141に表示し、操作入力部132を操作することにより、ユーザが所望する判定基準値が入力される。入力された情報は、「判定基準情報テーブル」の「ユーザ設定値」に記録される。なお、ユーザによる設定の要否は任意であるため、「ユーザ設定値」に設定がない場合は「デフォルト値」に設定されている値が判定に採用され、「ユーザ設定値」に設定がある場合は「ユーザ設定値」に設定されている値が判定に採用されるものとする。   As in the first embodiment, the “determination criterion information table” is set in advance by the manufacturer of the digital camera 100 and can be arbitrarily set by the user. Setting by the user is performed using the operation input unit 132 and the display unit 141. That is, by displaying a setting screen as shown in FIG. 8B on the display unit 141 and operating the operation input unit 132, a determination reference value desired by the user is input. The input information is recorded in “user set value” of the “determination reference information table”. Since the necessity of setting by the user is arbitrary, when there is no setting in the “user setting value”, the value set in the “default value” is adopted for the determination, and the “user setting value” is set. In this case, the value set in the “user set value” is adopted for the determination.

本実施形態では、実施形態1と同様、撮影した文書画像の利用用途(「目視認識」と「機械認識」)に応じて複数の判定基準値が設定される他、デジタルカメラ100のレンズ性能に応じて複数の判定基準値が設定される。   In the present embodiment, in the same manner as in the first embodiment, a plurality of determination reference values are set according to the usage (“visual recognition” and “machine recognition”) of the captured document image, and the lens performance of the digital camera 100 is also improved. Accordingly, a plurality of determination reference values are set.

ここで「レンズ性能」として、レンズの収差を想定する。レンズには潜在的に収差が存在し、この収差の度合はレンズ性能に依存する。そして、レンズ収差の影響により、取得した画像の縁部で歪みや滲みが発生することがある。これにより、例えば、同じ文字サイズの文字で構成される文書を撮影した場合、取得された画像上では、中央部と縁部とで文字の大きさに差が生じることがある。すなわち、歪みが生じた部分の文字はいずれかの方向に引き伸ばされたようになり、この結果、歪みが生じていない部分の文字よりも、画像上での文字サイズが大きくなる。したがって、画像上の文字サイズに基づいて判読性の判定をおこなう場合、基準となる文字サイズを一律に規定しても正確な判定をすることができない。   Here, lens aberration is assumed as “lens performance”. Lenses potentially have aberrations, the degree of which depends on lens performance. Then, distortion and blur may occur at the edge of the acquired image due to the influence of lens aberration. Thereby, for example, when a document composed of characters of the same character size is photographed, there may be a difference in character size between the central portion and the edge portion on the acquired image. That is, the part of the character where the distortion occurs is stretched in either direction, and as a result, the character size on the image becomes larger than the part of the character where the distortion does not occur. Therefore, when determining the legibility based on the character size on the image, accurate determination cannot be made even if the reference character size is uniformly defined.

そこで、本実施形態では、図9(a)に示すように、取得される画像上で「中央部」と「縁部」の領域(以下、「判定領域」とする)を設定し、文字サイズの判定基準値をそれぞれの判定領域毎に独立して設定する。以下、画像中央部の判定領域を「判定領域C」とし、画像縁部の判定領域を「判定領域E」とする。   Therefore, in the present embodiment, as shown in FIG. 9A, areas of “central part” and “edge part” (hereinafter referred to as “determination area”) are set on the acquired image, and the character size is set. The determination reference value is set independently for each determination region. Hereinafter, the determination region at the center of the image is referred to as “determination region C”, and the determination region at the image edge is referred to as “determination region E”.

したがって、図8(a)に示すように、本実施形態にかかる「判定基準値テーブル」には、利用用途である「目視認識」と「機械認識」のそれぞれに、判定領域を示す項目(画像の中央部の判定領域を示す「中央」と、画像の縁部の判定領域を示す「縁部」)が用意され、それぞれに判定基準値が設定される。ここで、デジタルカメラ100の製造者が設定する「デフォルト値」には、例えば、デジタルカメラ100のレンズ性能についての実証結果などに基づいて判定基準値が設定される。   Therefore, as shown in FIG. 8A, the “determination reference value table” according to the present embodiment includes items (images) indicating determination areas for “visual recognition” and “machine recognition” which are usage applications. "Center" indicating the determination area at the center of the image and "edge" indicating the determination area at the edge of the image) are prepared, and a determination reference value is set for each. Here, for the “default value” set by the manufacturer of the digital camera 100, for example, a determination reference value is set based on a verification result on the lens performance of the digital camera 100.

また、「ユーザ設定値」には、当該ユーザが使用する文字認識処理のためのプログラムや装置の認識率や性能などに応じて、任意に判定基準値が設定できる。また、デジタルカメラ100のレンズが交換式である場合やコンバージョンレンズを装着可能である場合は、交換レンズやコンバージョンレンズの性能に応じて、任意に設定することができる。このような場合、例えば、デジタルカメラ100の製造者により、複数のレンズ製品についての適正な判定基準値が予めデフォルト値として用意されていてもよい。   In addition, as the “user setting value”, a determination reference value can be arbitrarily set according to a character recognition processing program used by the user, the recognition rate or performance of the apparatus, and the like. In addition, when the lens of the digital camera 100 is an interchangeable type or when a conversion lens can be attached, it can be set arbitrarily according to the performance of the interchangeable lens or the conversion lens. In such a case, for example, an appropriate determination reference value for a plurality of lens products may be prepared in advance as a default value by the manufacturer of the digital camera 100.

なお、文字サイズの判定基準値の設定にあたり、複数種類の単位に対応していることが望ましい。したがって、図8(b)に示すように、例えば、プルダウンメニューなどの選択手段によって、ユーザが所望する単位を選択できるようにする。いずれの単位が選択されたかを示す情報は、「判定基準値テーブル」に記録される(図8(a))。   In setting the character size determination reference value, it is desirable to support a plurality of types of units. Therefore, as shown in FIG. 8B, the user can select a desired unit by selecting means such as a pull-down menu. Information indicating which unit is selected is recorded in the “judgment reference value table” (FIG. 8A).

なお、このような判定基準値の設定は一例であり、判定基準値として設定する値や単位、および、設定方法などは任意である。また、本実施形態では、レンズ性能による影響を考慮し、画像の中央部と縁部とに判定領域を分け、それぞれの領域について判定基準値をするが、判定領域の分け方や面積などはレンズやデジタルカメラ100の性能に応じて規定される。   Such setting of the determination reference value is an example, and the value and unit set as the determination reference value, the setting method, and the like are arbitrary. In this embodiment, in consideration of the influence of lens performance, the determination area is divided into the center and the edge of the image, and the determination reference value is set for each area. Or the performance of the digital camera 100.

したがって、図9(a)に示すような「中央部」と「縁部」に分ける方法に限られず、例えば、図9(b)に示すように、画像を複数の矩形領域に分けてもよい。この場合も各判定領域毎に判定基準値が設定される。このような領域分けの場合、例えば、看板やホワイトボードなどに記されている文書を斜め方向から撮影した場合、画像の横方向について遠近差が生じ、撮影した文書画像上では、遠方側の文字が小さく、近接側の文字が大きくなる。すなわち、元の文書上では同じ文字サイズであっても、撮影した画像上では位置によって文字サイズが異なってしまう。このような場合に、図9(b)に示す多分割領域のそれぞれに、遠近差に応じた判定基準値を設定することで、画像全体について、文字の判読可否を正確に判定することができる。   Therefore, the method is not limited to the method of dividing the “center portion” and the “edge portion” as shown in FIG. 9A. For example, as shown in FIG. 9B, the image may be divided into a plurality of rectangular regions. . Also in this case, a determination reference value is set for each determination region. In the case of such area division, for example, when a document written on a signboard or whiteboard is photographed from an oblique direction, a perspective difference occurs in the horizontal direction of the image, and on the photographed document image, a character on the far side Is small and the characters on the near side are large. That is, even if the character size is the same on the original document, the character size varies depending on the position on the captured image. In such a case, by setting a determination reference value corresponding to the perspective difference in each of the multi-divided areas shown in FIG. 9B, it is possible to accurately determine whether or not characters can be read for the entire image. .

このような領域分けについては、例えば、測距・測光部122による測光パターン(例えば、スポット測光や多分割測光など)を応用してもよい。なお、本実施形態では、図9(a)に示す判定領域を採用するものとして以下説明する。   For such area division, for example, a photometric pattern (for example, spot photometry or multi-division photometry) by the distance measurement / photometry unit 122 may be applied. In the present embodiment, the following description will be made assuming that the determination region shown in FIG.

次に、本実施形態で記憶部160に用意される「通知情報テーブル」を図10(a)を参照して説明する。本実施形態においても、実施形態1と同様に、判読可否の判定結果に応じた所定の通知情報が出力部140から出力される。したがって、本実施形態にかかる「通知情報テーブル」にも、実施形態1の場合と同様に、各判定結果に応じて設定された通知情報が記録される。なお、上述したように、本実施形態では、文書画像の利用用途に加え、レンズ性能を考慮した判定領域毎に判読可否の判定がなされるので、図10(a)に示すように、「目視認識」と「機械認識」のそれぞれについて、項目「中央」と項目「縁部」が用意され、各項目毎に判読可否の判定結果(「判読可」を示す「OK」もしくは「判読不可」を示す「NG」)に応じた通知情報が設定される。   Next, the “notification information table” prepared in the storage unit 160 in the present embodiment will be described with reference to FIG. Also in the present embodiment, as in the first embodiment, predetermined notification information corresponding to the determination result of legibility is output from the output unit 140. Therefore, the notification information set according to each determination result is recorded in the “notification information table” according to the present embodiment as in the case of the first embodiment. As described above, in this embodiment, in addition to the usage of the document image, the determination of whether or not the image can be read is made for each determination area in consideration of the lens performance. Therefore, as shown in FIG. For each of “recognition” and “machine recognition”, an item “center” and an item “edge” are prepared, and a judgment result (“OK” or “unreadable” indicating “readable”) is determined for each item. Notification information corresponding to “NG”) is set.

なお、デジタルカメラ100で取得される画像はドット(ピクセル)から構成されるラスタ画像であるので、撮像された画像に示される文字のサイズはドット数によって規定される。ここで、判定基準値として設定した文字サイズの単位はポイントなどの既定の単位であるため、画像上で特定された文字サイズ(ドット)と判定基準値として設定されている文字サイズとを直接比較して判読可否を判定することはできない。   Since the image acquired by the digital camera 100 is a raster image composed of dots (pixels), the size of characters shown in the captured image is defined by the number of dots. Here, since the unit of the character size set as the criterion value is a default unit such as points, the character size (dot) specified on the image is directly compared with the character size set as the criterion value Therefore, it cannot be determined whether or not it is legible.

したがって、図10(b)に示すような、画像上のドット数と既定単位で示される文字サイズとを対応付けた「文字サイズ対応テーブル」が記憶部160に用意される。ここで、撮像素子123の有効画素数を制御することで複数種類の画像サイズで撮影できる場合、画像サイズ毎に解像度が異なることとなる。したがって、異なるサイズの画像上で示される文字の大きさが実質的に同じであっても、それを表すドット数(ピクセル数)は画像サイズによって異なる。したがって、図10(b)に示すように、「文字サイズ対応テーブル」では、デジタルカメラ100で選択可能な画像サイズ毎にドット数と既定文字サイズとが対応付けられている。これにより、画像サイズが異なる場合であっても、画一的に画像上の文字サイズを特定することができる。   Therefore, as shown in FIG. 10B, a “character size correspondence table” in which the number of dots on the image is associated with the character size indicated in the default unit is prepared in the storage unit 160. Here, when a plurality of types of image sizes can be captured by controlling the number of effective pixels of the image sensor 123, the resolution differs for each image size. Therefore, even if the size of characters shown on images of different sizes is substantially the same, the number of dots (number of pixels) representing them varies depending on the image size. Accordingly, as shown in FIG. 10B, in the “character size correspondence table”, the number of dots and the default character size are associated with each image size that can be selected by the digital camera 100. Thereby, even when the image sizes are different, the character size on the image can be specified uniformly.

このような構成のデジタルカメラ100により文書撮影する場合の処理(「文書撮影処理(2)」)を図11〜図13に示すフローチャートを参照して説明する。   Processing when the digital camera 100 configured as described above captures a document (“document capturing process (2)”) will be described with reference to flowcharts shown in FIGS.

「文書撮影処理(2)」は、撮影モードとして「文書撮影モード」が選択された状態で、制御部110がシャッタボタン131からシャッタ信号を受信することを契機に開始される。なお、「文書撮影モード」が選択されている状態では、撮像素子123がレンズユニット121を介して入光する入射光を受光し、受光した素子の電荷に応じた画像を表示部141に表示する。   The “document shooting process (2)” is started when the control unit 110 receives a shutter signal from the shutter button 131 in a state where the “document shooting mode” is selected as the shooting mode. When the “document shooting mode” is selected, the image sensor 123 receives incident light that enters through the lens unit 121 and displays an image corresponding to the charge of the received element on the display unit 141. .

ユーザは、表示部141に表示されている画像をもとに、デジタルカメラ100の位置調整やズーム操作などにより構図や画角などを決定すると、シャッタボタン131を押下(半押し)する。これに応じて、シャッタボタン131からは、半押し信号が制御部110に送出される。制御部110は、シャッタボタン131から半押し信号を受信したことを契機に撮影準備動作を開始する(ステップS201)。   When the user determines the composition, the angle of view, or the like by adjusting the position of the digital camera 100 or performing a zoom operation based on the image displayed on the display unit 141, the user presses the shutter button 131 (half-press). In response to this, a half-press signal is sent from the shutter button 131 to the control unit 110. The control unit 110 starts a shooting preparation operation when receiving a half-press signal from the shutter button 131 (step S201).

ここでは、測距・測光部122による測距・測光動作に基づいて、レンズユニット121が駆動されて文書に対するピント合わせ(合焦)などが行われるとともに、適正なシャッタスピードと絞り値(撮影パラメータ)が特定される。また、ズーム操作によって決定された焦点距離(f値)を特定する。なお、ユーザがシャッタボタン131を半押し状態にしている間、半押し信号がシャッタボタン131から制御部110に送出され続けるものとする。   Here, based on the distance measurement / photometry operation by the distance measurement / photometry unit 122, the lens unit 121 is driven to perform focusing (focusing) on the document, and an appropriate shutter speed and aperture value (imaging parameters). ) Is identified. Also, the focal length (f value) determined by the zoom operation is specified. It is assumed that the half-press signal continues to be sent from the shutter button 131 to the control unit 110 while the user is pressing the shutter button 131 halfway.

制御部110は、特定された絞りとシャッタスピードで撮像素子123に露光し、その間に撮像素子123に蓄積された電荷量に基づくデジタルデータを取得して、判読可否を判定するための画像処理をおこなう画像(以下、「判定用画像」とする)として、画像記録部150のバッファに記録する(ステップS202)。   The control unit 110 exposes the image sensor 123 with the specified aperture and shutter speed, acquires digital data based on the amount of charge accumulated in the image sensor 123 during that time, and performs image processing for determining whether or not the image can be read. The image to be performed (hereinafter referred to as “determination image”) is recorded in the buffer of the image recording unit 150 (step S202).

制御部110は、ステップS202で記録された判定用画像に図9(a)に示す判定領域(「判定領域C」および「判定領域E」)を設定し、各判定領域毎に文字部分を特定し、文字の切り出しをおこなう(ステップS203)。ここでの文字部分の特定および切り出しは、任意の周知・慣用技術を用いることができる。例えば、制御部110が判定用画像の背景色の階調を特定し、この階調とは異なる階調のピクセルが一様に密集して存在している部分を文字部分として特定する。そして、設定された判定領域のそれぞれから、1文字ずつ文字を切り出す。なお、切り出す文字の数は任意である。   The control unit 110 sets the determination regions (“determination region C” and “determination region E”) shown in FIG. 9A in the determination image recorded in step S202, and specifies the character portion for each determination region. Then, the character is cut out (step S203). Any known / conventional technique can be used to specify and cut out the character portion here. For example, the control unit 110 specifies the gradation of the background color of the determination image, and specifies a portion where pixels having gradations different from the gradation are uniformly dense as a character portion. Then, one character is cut out from each of the set determination areas. The number of characters to be cut out is arbitrary.

制御部110は、各判定領域毎に切り出した文字のサイズをピクセル数(ドット数)により特定して、ワークエリアに保持する(ステップS204)。ここでは、切り出した文字の横方向のドット数を測定して文字サイズを示すドット数とする。なお、文字サイズを特定するためのドット数の測定方法は任意であり、例えば、文字の縦方向のドット数により文字サイズを特定してもよい他、横方向ドット数と縦方向ドット数の和や積などによって文字サイズを特定してもよい。   The control unit 110 specifies the size of the character cut out for each determination area by the number of pixels (number of dots), and holds it in the work area (step S204). Here, the number of dots in the horizontal direction of the cut-out character is measured and used as the number of dots indicating the character size. The method for measuring the number of dots for specifying the character size is arbitrary. For example, the character size may be specified by the number of dots in the vertical direction of the character, or the sum of the number of horizontal dots and the number of vertical dots. The character size may be specified by a product or product.

制御部110は、各判定領域毎に特定した文字サイズ(ドット数)と、現在選択されている画像サイズ(解像度)とに基づいて、記憶部160に格納されている「文字サイズ対応テーブル」(図10(c))から、当該文字サイズ(ドット数)を既定単位(「ポイント」など)の文字サイズに変換し、変換された文字サイズ(以下、「判定用文字サイズ」とする)を示す情報をワークエリアに保持する(ステップS205)。ここでは、「判定基準情報テーブル」(図8(a))に設定されている文字サイズ単位に対応する文字サイズに変換する。   Based on the character size (number of dots) specified for each determination area and the currently selected image size (resolution), the control unit 110 stores a “character size correspondence table” ( FIG. 10C shows the converted character size (hereinafter referred to as “determination character size”) by converting the character size (number of dots) into a character size of a default unit (such as “point”). Information is held in the work area (step S205). Here, the character size is converted into a character size corresponding to the character size unit set in the “judgment criterion information table” (FIG. 8A).

制御部110は、記憶部160の「判定基準情報テーブル」(図8(a))に設定されている判定基準値と、各判定領域毎に取得した判定用文字サイズとを比較する(ステップS206)。ここでは、「ユーザ設定値」に判定基準値が設定されている場合には、当該判定基準値と比較し、設定されていない場合には、「デフォルト値」に設定された判定基準値と比較する。また、画像の利用用途である「目視認識」と「機械認識」のそれぞれについて、「中央」に設定されている判定基準値と判定領域Cについての判定用文字サイズとを比較し、「縁部」に設定されている判定基準値と判定領域Eについての判定用文字サイズとを比較する。   The control unit 110 compares the determination reference value set in the “determination reference information table” (FIG. 8A) in the storage unit 160 with the determination character size acquired for each determination region (step S206). ). Here, when the criterion value is set in “User setting value”, it is compared with the criterion value, and when it is not set, it is compared with the criterion value set in “Default value”. To do. In addition, for each of “visual recognition” and “machine recognition”, which are use applications of the image, the determination reference value set to “center” is compared with the determination character size for the determination region C, and “edge” Is compared with the determination character size for the determination region E.

比較の結果、判定領域Cで特定された判定用文字サイズが、「目視認識」の「中央」に設定されている判定基準値未満である場合(図12、ステップS207:Yes)、制御部110は、画像中央部の文字を目視認識で「判読可」と判定する(ステップS208)。一方、判定基準値以上である場合(ステップS207:No)、制御部110は、画像中央部の文字を目視認識で「判読不可」と判定する(ステップS209)。   As a result of the comparison, when the determination character size specified in the determination region C is less than the determination reference value set to “center” of “visual recognition” (FIG. 12, Step S207: Yes), the control unit 110 Determines that the character at the center of the image is “readable” by visual recognition (step S208). On the other hand, when it is equal to or larger than the determination reference value (step S207: No), the control unit 110 determines that the character at the center of the image is “unreadable” by visual recognition (step S209).

また、判定領域Eで特定された判定用文字サイズが、「目視認識」の「縁部」に設定されている判定基準値未満である場合(ステップS210:Yes)、制御部110は、画像縁部の文字を目視認識で「判読可」と判定する(ステップS211)。一方、判定基準値以上である場合(ステップS210:No)、制御部110は、画像縁部の文字を目視認識で「判読不可」と判定する(ステップS212)。   When the determination character size specified in the determination region E is less than the determination reference value set in the “edge” of “visual recognition” (step S210: Yes), the control unit 110 displays the image edge. The character of the part is determined as “readable” by visual recognition (step S211). On the other hand, when the value is equal to or greater than the determination reference value (step S210: No), the control unit 110 determines that the characters at the image edge are “unreadable” by visual recognition (step S212).

また、判定領域Cで特定された判定用文字サイズが、「機械認識」の「中央」に設定されている判定基準値未満である場合(ステップS213:Yes)、制御部110は、画像中央部の文字を機械認識で「判読可」と判定する(ステップS214)。一方、判定基準値以上である場合(ステップS213:No)、制御部110は、画像中央部の文字を機械認識で「判読不可」と判定する(ステップS215)。   When the character size for determination specified in the determination region C is less than the determination reference value set to “center” of “machine recognition” (step S213: Yes), the control unit 110 displays the image center portion. Is determined to be “readable” by machine recognition (step S214). On the other hand, if it is equal to or greater than the determination reference value (step S213: No), the control unit 110 determines that the character at the center of the image is “unreadable” by machine recognition (step S215).

また、判定領域Eで特定された判定用文字サイズが、「機械認識」の「縁部」に設定されている判定基準値未満である場合(ステップS216:Yes)、制御部110は、画像縁部の文字を機械認識で「判読可」と判定する(ステップS217)。一方、判定基準値以上である場合(ステップS216:No)、制御部110は、画像縁部の文字を機械認識で「判読不可」と判定する(ステップS218)。   When the determination character size specified in the determination region E is less than the determination reference value set in the “edge” of “machine recognition” (step S216: Yes), the control unit 110 displays the image edge. Is determined to be “readable” by machine recognition (step S217). On the other hand, when the value is equal to or greater than the determination reference value (step S216: No), the control unit 110 determines that the characters at the image edge are “unreadable” by machine recognition (step S218).

制御部110は、各判定結果に応じた通知情報を出力部140から出力する(図13、ステップS219)。ここでは、制御部110が記憶部160の「通知情報テーブル」から、各判定結果に対応する通知情報を選択し、設定されている通知方式で出力部140から出力する。   The control unit 110 outputs notification information corresponding to each determination result from the output unit 140 (FIG. 13, step S219). Here, the control unit 110 selects notification information corresponding to each determination result from the “notification information table” in the storage unit 160 and outputs the notification information from the output unit 140 in the set notification method.

「通知方式」については、実施形態1と同様である。ここでは、通知方式として「メッセージ表示」が選択されているものとして、表示例を以下に説明する。   The “notification method” is the same as in the first embodiment. Here, a display example will be described below assuming that “message display” is selected as the notification method.

すべての判定結果が「判読不可」と判定された場合(ステップS209、S212、S215、S218)は、図14(a)に示すようなメッセージが表示部141に表示される。ここでは、文字が小さいため、画像の全域で目視認識も機械認識も困難である旨を示すメッセージが表示される(MSG21)。   When all the determination results are determined as “unreadable” (steps S209, S212, S215, and S218), a message as shown in FIG. 14A is displayed on the display unit 141. Here, since the characters are small, a message indicating that visual recognition and machine recognition are difficult throughout the image is displayed (MSG21).

また、「目視認識」について、画像中央部では「判読可」だが、画像縁部では「判読不可」と判定された場合(ステップS208、S212)、図14(b)に示すようなメッセージが表示部141に表示される。ここでは、画像中央部の文字は目視認識で判読可能であるが、文字が小さいため、画像縁部の目視認識および画像全域での機械認識は困難である旨のメッセージが表示される(MSG22)。   As for “visual recognition”, when it is determined that “readable” in the center of the image but “unreadable” in the image edge (steps S208 and S212), a message as shown in FIG. 14B is displayed. Displayed on the part 141. Here, although the character at the center of the image can be read by visual recognition, since the character is small, a message indicating that visual recognition of the image edge and machine recognition over the entire image is difficult is displayed (MSG22). .

また、「目視認識」では画像全域で「判読可」と判定され(ステップS208、S211)、「機械認識」では画像全域で「判読不可」と判定された場合(ステップS215、S218)、図14(c)に示すようなメッセージが表示部141に表示される。ここでは、画像全域の文字を目視認識で判読可能であるが、文字が小さいため、機械認識は困難である旨のメッセージが表示される(MSG23)。   In “visual recognition”, it is determined that “reading is possible” in the entire image (steps S208 and S211), and in “machine recognition”, it is determined that “reading is impossible” in the entire image (steps S215 and S218), FIG. A message as shown in (c) is displayed on the display unit 141. Here, although the characters in the entire image can be read by visual recognition, a message indicating that machine recognition is difficult because the characters are small is displayed (MSG23).

また、「目視認識」では画像全域で「判読可」と判定され(ステップS208、S211)、「機械認識」では画像縁部で「判読不可」と判定された場合(ステップS218)、図14(d)に示すようなメッセージが表示部141に表示される。ここでは、画像全域の文字を目視認識で判読可能であるが、文字が小さいため、画像縁部の機械認識は困難である旨のメッセージが表示される(MSG24)。   Further, in “visual recognition”, “readable” is determined for the entire image (steps S208 and S211), and in “machine recognition”, “readable” is determined at the image edge (step S218). A message as shown in d) is displayed on the display unit 141. Here, although the characters in the entire image can be read by visual recognition, since the characters are small, a message indicating that machine recognition of the image edge is difficult is displayed (MSG24).

このような通知情報の出力は、撮像準備動作中(シャッタボタン131の半押し状態)におこなわれるので、ユーザは、出力された通知情報に応じて、撮影するか否かを判断する。そして、撮影を実行すると判断した場合、シャッタボタン131を全押しにする。すなわち、シャッタボタン131から全押し信号が制御部110に送出される。一方、ユーザが撮影条件の変更などのため、現在の撮影条件での撮影を行わない場合、シャッタボタン131の半押し状態を解除する。すなわち、シャッタボタン131から制御部110に送出されていた半押し信号が途絶える。   Since the output of such notification information is performed during the imaging preparation operation (half-pressed state of the shutter button 131), the user determines whether to shoot according to the output notification information. When it is determined that shooting is to be performed, the shutter button 131 is fully pressed. That is, a full press signal is sent from the shutter button 131 to the control unit 110. On the other hand, when the user does not perform shooting under the current shooting conditions due to a change in shooting conditions or the like, the half-pressed state of the shutter button 131 is released. That is, the half-press signal sent from the shutter button 131 to the control unit 110 is interrupted.

制御部110は、シャッタボタン131からのシャッタ信号の状態に基づいて、ユーザからの撮影指示の有無を判別する(ステップS220)。すなわち、シャッタボタン131から全押し信号を受信すると、ユーザからの撮影指示が入力されたと判別する。また、シャッタボタン131からのシャッタ信号(半押し信号)が途絶えると、ユーザからの撮影指示がないと判別する。   Based on the state of the shutter signal from the shutter button 131, the control unit 110 determines whether there is a shooting instruction from the user (step S220). That is, when a full-press signal is received from the shutter button 131, it is determined that a shooting instruction from the user has been input. If the shutter signal (half-press signal) from the shutter button 131 is interrupted, it is determined that there is no shooting instruction from the user.

制御部110は、ユーザからの撮影指示がない場合(ステップS220:No)、バッファに格納した判定用画像を削除して(ステップS221)、処理を終了する。この場合、制御部110は、例えば、次の撮影準備動作の開始指示を待機する。   When there is no shooting instruction from the user (step S220: No), the control unit 110 deletes the determination image stored in the buffer (step S221) and ends the process. In this case, for example, the control unit 110 waits for an instruction to start the next shooting preparation operation.

一方、ユーザの撮影指示がある場合(ステップS220:Yes)、制御部110は、バッファに格納した判定用画像を、撮影した文書画像として画像記録部150に記録して(ステップS222)、処理を終了する。   On the other hand, when there is a user's photographing instruction (step S220: Yes), the control unit 110 records the determination image stored in the buffer as a photographed document image in the image recording unit 150 (step S222), and performs processing. finish.

すなわち、「目視認識」と「機械認識」のそれぞれについて、判読可能か否かを、出力された通知情報により知ることができるので、ユーザは目的に応じて、撮影の続行または中止をその場で選択することができる。また、レンズ性能の影響を考慮して判読可否の判定をおこなっているので、「目視認識」と「機械認識」のそれぞれについて画像の全域で判読可能である否かを知ることができるので、所望する画像品質を有さない画像を記録してしまうことを回避することができる。   That is, for each of “visual recognition” and “machine recognition”, it is possible to know from the output notification information whether or not it is legible, so that the user can continue or stop shooting on the spot according to the purpose. You can choose. In addition, since it is determined whether or not the image can be read in consideration of the influence of the lens performance, it is possible to know whether or not each of the “visual recognition” and “machine recognition” can be read in the entire area of the image. It is possible to avoid recording an image having no image quality.

上記「文書撮影処理(2)」によれば、対象としている文書を撮影した場合の判読可否を撮影時に判定し、判定結果に応じた通知情報を出力するので、ユーザはその場で撮影の是非を決定することができる。ここで、判読可否の判定を、「目視認識」や「機械認識」などの用途に応じて独立しておこない、それぞれの判定結果に応じた通知情報を出力するので、ユーザは、用途に応じて、撮影の是非を適切に選択することができる。さらに、デジタルカメラ100のレンズ性能に基づいて、撮影した場合の文書画像の全域で判読可能か否かを判定するので、正確に判読可否を判定することができる。また、判読可否判定の基準をユーザが任意に設定することができるので、ユーザの好みや利用する文字認識処理の精度などに応じて、適切に判読可否を判定することができる。   According to the above “document shooting process (2)”, whether or not to interpret when the target document is shot is determined at the time of shooting, and notification information corresponding to the determination result is output. Can be determined. Here, the judgment of legibility is performed independently according to the use such as “visual recognition” and “machine recognition”, and the notification information according to each judgment result is output. , You can choose the right or wrong of shooting. Furthermore, since it is determined based on the lens performance of the digital camera 100 whether or not it is legible in the entire area of the document image when photographed, whether or not legibility can be accurately judged. Further, since the user can arbitrarily set the reference for determining the legibility, it is possible to appropriately determine the legibility according to the user's preference and the accuracy of the character recognition process to be used.

上記各実施形態によれば、文書撮影時における文書画像の画像品質を撮影時に判定してユーザに通知するので、画像品質の低い画像を無駄に撮影・記録することがない。この結果、無駄な撮影動作や記憶領域の消費などを防止することができ、撮影時あるいは後処理における省力化や撮影効率の向上を図ることができる。   According to each of the above embodiments, the image quality of the document image at the time of document shooting is determined at the time of shooting and notified to the user, so that an image with low image quality is not taken and recorded unnecessarily. As a result, it is possible to prevent useless shooting operations and consumption of storage areas, and to save labor and improve shooting efficiency during shooting or post-processing.

すなわち、撮影時に何度も撮り直す必要がない他、何枚も撮影した画像から判読可能なものを選択する作業などをする必要がなくなり、ユーザの労力を軽減させることができる。また、デジタルカメラに備えられている表示装置で画像品質を判別することは困難であるが、上記処理では、センサ部170による検出値、および、撮像素子123で取得された画像データを用いて制御部110が判読可能か否かを判定して通知するので、迅速かつ正確に画像品質を判定することができる。   That is, it is not necessary to re-shoot many times at the time of shooting, and it is not necessary to select a legible one from the images that have been shot, and the user's labor can be reduced. In addition, although it is difficult to determine the image quality with a display device provided in the digital camera, in the above processing, control is performed using the detection value by the sensor unit 170 and the image data acquired by the image sensor 123. Since the unit 110 determines whether or not it can be read and notifies it, the image quality can be determined quickly and accurately.

上記実施形態で取得される文書画像は、文字認識処理(機械認識)にてテキストデータなどに変換することが好適であるが、このような文字認識処理の実行形態は任意である。例えば、パーソナルコンピュータなどのコンピュータ装置で文字認識処理を実行することができる。この場合、画像記録部150に記録された文書画像データをコンピュータ装置に転送するが、転送方法は任意であり、例えば、デジタルカメラ100に備えられている所定のインタフェース(例えば、USB(Universal Serial Bus))などを介してコンピュータ装置と接続することで文書画像データを転送することができる。また、画像記録部150が脱着可能なメモリカードから構成されている場合には、コンピュータ装置がメモリカードから文書画像データを読み取ることで転送させることができる。   The document image acquired in the above embodiment is preferably converted into text data or the like by character recognition processing (machine recognition), but the execution form of such character recognition processing is arbitrary. For example, the character recognition process can be executed by a computer device such as a personal computer. In this case, the document image data recorded in the image recording unit 150 is transferred to the computer apparatus, but the transfer method is arbitrary. For example, a predetermined interface (for example, USB (Universal Serial Bus) provided in the digital camera 100 is used. The document image data can be transferred by connecting to a computer device via a) or the like. Further, when the image recording unit 150 is constituted by a removable memory card, the computer device can transfer the document image data by reading it from the memory card.

このような文字認識処理をデジタルカメラ100で実行してもよい。この場合、デジタルカメラ100の記憶部160に文字認識処理をおこなうためのプログラム(文字認識プログラム)を格納し、制御部110がこの文字認識プログラムを実行することで、文字認識処理をおこなう。デジタルカメラ100で文字認識処理を実行した場合、撮影したその場でテキストデータへの変換などを行うことができる。デジタルカメラ100で変換されたテキストデータなどは、画像記録部150に記録したり、コンピュータ装置などに転送することができる。   Such a character recognition process may be executed by the digital camera 100. In this case, a program (character recognition program) for performing character recognition processing is stored in the storage unit 160 of the digital camera 100, and the control unit 110 executes this character recognition program to perform character recognition processing. When character recognition processing is executed by the digital camera 100, conversion to text data can be performed on the spot where the image is taken. Text data converted by the digital camera 100 can be recorded in the image recording unit 150 or transferred to a computer device or the like.

上記実施形態では、判読可否の判定結果に応じて通知情報を出力するようにしたが、判定結果に応じてデジタルカメラ100の撮影動作を自動的に制御して、ユーザをアシストするようにしてもよい。例えば、「判読不可」と判定された場合に、制御部110がレンズユニット121を駆動し、ズーム機能によって文字サイズが大きくなるよう制御したり、光量不足により手ブレが生じる場合に自動的にフラッシュが発光するように制御してもよい。   In the above embodiment, the notification information is output according to the determination result of legibility. However, the photographing operation of the digital camera 100 is automatically controlled according to the determination result to assist the user. Good. For example, when it is determined that “unreadable”, the control unit 110 drives the lens unit 121 to control the character size to be increased by the zoom function, or automatically flashes when camera shake occurs due to insufficient light amount. May be controlled to emit light.

また、動作プログラムの更新により機能の拡張を図ることができるデジタルカメラに上述した各処理を実現するプログラムを適用することで、既存のデジタルカメラを上記実施形態にかかるデジタルカメラ100として機能させることができる。この場合、上記実施形態にかかる動作プログラムを当該デジタルカメラにインストールし、当該デジタルカメラの制御部が実行する。これにより、上述の各処理が実行され、文書撮影時の画像品質を正確に判定して判読可否の判定および通知をおこなうことができる。このような動作プログラムを配布する方法は任意であり、例えば、CD−ROMやメモリカードなどの記録媒体に格納して配布可能であることはもとより、インターネットなどの通信媒体を介して配布することもできる。   In addition, by applying a program for realizing each process described above to a digital camera whose functions can be expanded by updating the operation program, the existing digital camera can function as the digital camera 100 according to the embodiment. it can. In this case, the operation program according to the above embodiment is installed in the digital camera, and is executed by the control unit of the digital camera. As a result, the above-described processes are executed, and it is possible to accurately determine the image quality at the time of document shooting and to determine and notify whether or not the document can be read. A method for distributing such an operation program is arbitrary. For example, the operation program can be distributed by being stored in a recording medium such as a CD-ROM or a memory card, and can also be distributed via a communication medium such as the Internet. it can.

さらに、上記実施形態1に示したセンサ部170を後付けの装置(モジュール)として提供してもよい。この場合、デジタルカメラの所定のインタフェースを介してセンサ部170を装着し、センサ部170を駆動制御するプログラムを適用することで、既存のデジタルカメラを上記実施形態1に記載のデジタルカメラ100として機能させることができる。   Furthermore, you may provide the sensor part 170 shown in the said Embodiment 1 as a retrofit apparatus (module). In this case, the existing digital camera functions as the digital camera 100 described in the first embodiment by mounting the sensor unit 170 via a predetermined interface of the digital camera and applying a program for driving and controlling the sensor unit 170. Can be made.

なお、上記実施形態1では、手ブレによる判読可否を判定し、実施形態2では文字サイズに基づく判読可否を判定したが、双方の判定処理を一連の処理として実行してもよい。この場合、例えば、まず実施形態1にかかる手ブレに基づいた判読可否判定をおこない、手ブレによる影響がない場合に実施形態2にかかる文字サイズに基づいた判読可否判定をおこなうようにしてもよい。   In the first embodiment, whether or not the image can be read by camera shake is determined, and in the second embodiment, whether or not the image can be read based on the character size is determined. However, both determination processes may be executed as a series of processes. In this case, for example, it is possible to first determine the readability based on the hand shake according to the first embodiment, and to perform the readability determination based on the character size according to the second embodiment when there is no influence due to the camera shake. .

以上説明したように、本発明を上記実施形態の如く適用することで、撮影時の手ブレによる文字の判読可否を迅速に判定して通知することができる。また、レンズ性能などに応じて文字の判読可否を正確に判定して通知することができる。さらに、撮影画像の利用用途に応じて文字の判読可否を適切に判定して通知することができる。この結果、撮影時の省力化や撮影効率の向上を図ることができるとともに、メモリ領域の浪費などを防止することができる。   As described above, by applying the present invention as in the above-described embodiment, it is possible to quickly determine and notify whether or not characters can be read by camera shake during shooting. Further, it is possible to accurately determine and notify whether or not the character can be read according to the lens performance or the like. Furthermore, it is possible to appropriately determine and notify whether or not the characters can be read according to the usage of the captured image. As a result, it is possible to save labor at the time of shooting and improve shooting efficiency, and to prevent the memory area from being wasted.

本発明の実施形態に係るデジタルカメラのシステム構成を示す図である。1 is a diagram illustrating a system configuration of a digital camera according to an embodiment of the present invention. 本発明の実施形態にかかるデジタルカメラの外観を示す図であり、(a)は正面図、(b)は背面図である。It is a figure which shows the external appearance of the digital camera concerning embodiment of this invention, (a) is a front view, (b) is a rear view. 図1に示す記憶部に記録される情報の例を示す図であり、(a)は実施形態1にかかる「判定基準値テーブル」の例を示し、(b)は実施形態1にかかる「手ブレ量定数テーブル」の例を示し、(c)は実施形態1にかかる「通知情報テーブル」の例を示す。FIG. 2 is a diagram illustrating an example of information recorded in a storage unit illustrated in FIG. 1, in which (a) illustrates an example of a “determination reference value table” according to the first embodiment, and (b) illustrates “hand” according to the first embodiment. An example of the “blur amount constant table” is shown, and (c) shows an example of the “notification information table” according to the first embodiment. 図3(a)に示す「判定基準値テーブル」への設定時の表示画面の例を示す図である。It is a figure which shows the example of the display screen at the time of the setting to the "judgment reference value table" shown to Fig.3 (a). 本発明の実施形態1にかかる「文書撮影処理(1)」を説明するためのフローチャート(前段)である。It is a flowchart (front stage) for demonstrating "document photographing processing (1)" concerning Embodiment 1 of this invention. 本発明の実施形態1にかかる「文書撮影処理(1)」を説明するためのフローチャート(後段)である。It is a flowchart (after stage) for demonstrating "document photographing processing (1)" concerning Embodiment 1 of this invention. 図6に示す「文書撮影処理(1)」で出力される「通知情報」の例を説明するための図であり、(a)、(b)のそれぞれは、判定結果に応じたメッセージの表示例を示す。FIG. 7 is a diagram for explaining an example of “notification information” output in “document photographing process (1)” shown in FIG. 6, and each of (a) and (b) is a table of messages corresponding to determination results. An example is shown. 本発明の実施形態2における判定基準を説明するための図であり、(a)は実施形態2にかかる「判定基準情報テーブル」の例を示し、(b)は「判定基準値テーブル」への設定時の表示画面の例を示す。It is a figure for demonstrating the determination criterion in Embodiment 2 of this invention, (a) shows the example of the "determination reference information table" concerning Embodiment 2, (b) shows to the "determination reference value table". The example of the display screen at the time of a setting is shown. 本発明の実施形態2にかかる「判定領域」を説明するための図であり、(a)は画像上の中央部と縁部とに設定される判定領域の例を示し、(b)は判定領域の応用例を示す。It is a figure for demonstrating the "determination area | region" concerning Embodiment 2 of this invention, (a) shows the example of the determination area | region set to the center part and edge part on an image, (b) is determination. An application example of the area is shown. 図1に示す記憶部に記録される情報の例を示す図であり、(a)は実施形態2にかかる「通知情報テーブル」の例を示し、(b)は実施形態2にかかる「文字サイズ対応テーブル」の例を示す。FIG. 3 is a diagram illustrating an example of information recorded in a storage unit illustrated in FIG. 1, in which (a) illustrates an example of a “notification information table” according to the second embodiment, and (b) illustrates a “character size” according to the second embodiment. An example of “correspondence table” is shown. 本発明の実施形態2にかかる「文書撮影処理(2)」を説明するためのフローチャート(前段)である。It is a flowchart (previous stage) for demonstrating "document photographing processing (2)" concerning Embodiment 2 of this invention. 本発明の実施形態2にかかる「文書撮影処理(2)」を説明するためのフローチャート(中段)である。It is a flowchart (middle stage) for demonstrating "document imaging | photography process (2)" concerning Embodiment 2 of this invention. 本発明の実施形態2にかかる「文書撮影処理(2)」を説明するためのフローチャート(後段)である。It is a flowchart (after stage) for demonstrating the "document imaging | photography process (2)" concerning Embodiment 2 of this invention. 図13に示す「文書撮影処理(2)」で出力される「通知情報」の例を説明するための図であり、(a)〜(d)のそれぞれは、判定結果に応じたメッセージの表示例を示す。It is a figure for demonstrating the example of the "notification information" output by "document imaging | photography process (2)" shown in FIG. 13, Each of (a)-(d) is the table | surface of the message according to the determination result. An example is shown.

符号の説明Explanation of symbols

100…デジタルカメラ、110…制御部、120…撮像部、121…レンズユニット、122…測距・測光部、123…撮像素子、130…入力部、131…シャッタボタン、132…操作入力部、140…出力部、141…表示部、142…報音部、143…インジケータ部、150…画像記録部、160…記憶部、170…センサ部 DESCRIPTION OF SYMBOLS 100 ... Digital camera, 110 ... Control part, 120 ... Imaging part, 121 ... Lens unit, 122 ... Ranging and photometry part, 123 ... Imaging device, 130 ... Input part, 131 ... Shutter button, 132 ... Operation input part, 140 ... Output unit 141 ... Display unit 142 ... Reporting unit 143 ... Indicator unit 150 ... Image recording unit 160 ... Storage unit 170 ... Sensor unit

Claims (15)

入射光をデジタルデータに変換して画像データを取得するデジタルカメラにおいて、
撮影時の前記デジタルカメラの動きを検出する検出手段と、
少なくとも前記検出手段の検出結果に基づいて、取得する画像に示される文字の判読可否を判定する判定手段と、
前記判定手段の判定結果に基づいて、所定の動作を実行する実行手段と、を備え、
前記判定手段は、
少なくとも前記検出手段の検出結果に基づいて、取得される画像上の手ブレ量を算出する手ブレ量算出手段と、
判定の基準を示す判定基準情報を記憶する判定基準記憶手段と、をさらに備え、
前記手ブレ量算出手段が算出した手ブレ量と前記判定基準記憶手段に記憶されている判定基準情報とに基づいて文字の判読可否を判定し、
前記実行手段は、前記判定手段の判定結果に基づいて、所定の通知情報を出力する出力手段をさらに備える、
ことを特徴とするデジタルカメラ。
In a digital camera that acquires image data by converting incident light into digital data,
Detecting means for detecting movement of the digital camera at the time of shooting;
Determination means for determining whether or not the character shown in the image to be acquired can be read based on at least the detection result of the detection means;
Execution means for executing a predetermined operation based on the determination result of the determination means,
The determination means includes
A camera shake amount calculating means for calculating a camera shake amount on the acquired image based on at least the detection result of the detecting means;
A determination criterion storage means for storing determination criterion information indicating a criterion for determination;
Determining whether or not the character can be read based on the camera shake amount calculated by the camera shake amount calculating unit and the criterion information stored in the criterion storage unit;
The execution unit further includes an output unit that outputs predetermined notification information based on a determination result of the determination unit.
A digital camera characterized by that.
前記判定基準記憶手段は、取得する画像の用途に応じた複数の判定基準情報を記憶し、
前記判定手段は、前記手ブレ量算出手段が算出した手ブレ量と前記判定基準記憶手段に記憶されている判定基準情報とに基づき、前記画像の用途に応じて、文字の判読可否を判定する、
ことを特徴とする請求項1に記載のデジタルカメラ。
The determination criterion storage means stores a plurality of determination criterion information according to the use of the image to be acquired,
The determination means determines whether or not the character can be read based on the use of the image based on the camera shake amount calculated by the camera shake amount calculation means and the determination reference information stored in the determination reference storage means. ,
The digital camera according to claim 1.
前記手ブレ量算出手段は、少なくとも前記検出手段の検出結果と当該撮影時に設定されたシャッタスピードとに基づいて手ブレ量を算出する、
ことを特徴とする請求項1または2に記載のデジタルカメラ。
The camera shake amount calculating means calculates a camera shake amount based on at least the detection result of the detecting means and the shutter speed set at the time of shooting.
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記手ブレ量算出手段は、取得する画像のサイズに応じて手ブレ量を算出する、
ことを特徴とする請求項1乃至3のいずれか1項に記載のデジタルカメラ。
The camera shake amount calculating means calculates a camera shake amount according to the size of the image to be acquired.
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記検出手段は、前記デジタルカメラの揺れを検出する、
ことを特徴とする請求項1乃至4のいずれか1項に記載のデジタルカメラ。
The detecting means detects shaking of the digital camera;
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記判定手段は、
取得される画像上に所定の領域を設定する領域設定手段と、
取得される画像に示される文字を、前記領域設定手段が設定した領域毎に特定する文字特定手段と、
前記文字特定手段が特定した文字の前記画像上でのサイズを特定する文字サイズ特定手段と、をさらに備え、
前記文字サイズ特定手段が特定した文字サイズと前記判定基準記憶手段に記憶されている判定基準情報とに基づいて、前記画像に示される文字の判読可否を判定する、
ことを特徴とする請求項1乃至5のいずれか1項に記載のデジタルカメラ。
The determination means includes
Area setting means for setting a predetermined area on the acquired image;
Character specifying means for specifying the character shown in the acquired image for each area set by the area setting means;
Character size specifying means for specifying the size of the character specified by the character specifying means on the image, and
Based on the character size specified by the character size specifying means and the determination reference information stored in the determination reference storage means, determine whether or not the characters shown in the image can be read;
The digital camera according to any one of claims 1 to 5, wherein:
前記領域設定手段は、前記デジタルカメラのレンズ性能に基づいて、前記領域を設定する、
ことを特徴とする請求項6に記載のデジタルカメラ。
The area setting means sets the area based on lens performance of the digital camera.
The digital camera according to claim 6.
前記判定基準記憶手段は、取得される画像の用途、および、当該画像上の位置に応じた複数の判定基準情報を記憶し、
前記判定手段は、前記文字サイズ特定手段が特定した文字サイズと前記判定基準記憶手段に記憶されている判定基準情報とに基づいて、前記画像に示される文字の判読可否を前記用途に応じて判定する、
ことを特徴とする請求項6または7に記載のデジタルカメラ。
The determination criterion storage means stores a plurality of determination criterion information according to the use of the acquired image and the position on the image,
The determination means determines whether or not the character shown in the image is legible based on the character size specified by the character size specification means and the determination reference information stored in the determination reference storage means according to the application. To
The digital camera according to claim 6 or 7, wherein
前記文字サイズ特定手段は、前記取得する画像のサイズに応じて、当該画像上の文字サイズを特定する、
ことを特徴とする請求項6乃至8のいずれか1項に記載のデジタルカメラ。
The character size specifying means specifies the character size on the image according to the size of the image to be acquired.
The digital camera according to claim 6, wherein the digital camera is a digital camera.
ユーザからの指示を入力する入力手段をさらに備え、
前記判定基準記憶手段は、前記入力手段に入力されたユーザの指示に応じて、判定基準情報を更新する、
ことを特徴とする請求項1乃至9のいずれか1項に記載のデジタルカメラ。
It further comprises an input means for inputting an instruction from the user,
The determination criterion storage unit updates the determination criterion information in accordance with a user instruction input to the input unit.
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記出力手段は、前記判定手段の判定結果に応じて、取得する画像における文字の判読可否を示す情報を撮影時に出力する、
ことを特徴とする請求項1乃至10のいずれか1項に記載のデジタルカメラ。
The output means outputs information indicating whether or not the characters in the acquired image are readable according to the determination result of the determination means,
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記出力手段は、前記判定手段の判定結果に応じて、前記取得される画像に示される文字を、目視で判読可能か否か、コンピュータによる文字認識で判読可能か否か、及び/又は、当該画像の全域で判読可能か否か、を示す情報を前記通知情報として出力する、
ことを特徴とする請求項1乃至10のいずれか1項に記載のデジタルカメラ。
The output means, according to the determination result of the determination means, whether or not the characters shown in the acquired image can be visually read, whether or not the characters can be read by computer recognition, and / or Information indicating whether or not the entire image can be read is output as the notification information.
The digital camera according to claim 1, wherein the digital camera is a digital camera.
前記判定基準記憶手段は、前記取得される画像に示される文字を、目視で判読可能か否かを判定するための判定基準と、コンピュータによる文字認識が可能か否かを判定するための判定基準と、を示す判定基準情報を記憶する、
ことを特徴とする請求項1乃至12のいずれか1項に記載のデジタルカメラ。
The determination criterion storage means includes a determination criterion for determining whether or not the characters shown in the acquired image can be visually read and a determination criterion for determining whether or not character recognition by a computer is possible And storing criterion information indicating
The digital camera according to claim 1, wherein the digital camera is a digital camera.
入射光をデジタルデータに変換して画像データを取得するデジタルカメラを制御するコンピュータに、
取得する画像に示される文字の判読可否を判定するための基準を示す判定基準情報を、当該画像の用途に応じて設定して記憶するステップと、
手ブレの要因となる前記デジタルカメラの動きを示す情報を取得するステップと、
前記デジタルカメラの動きに基づいて、取得される画像上の手ブレ量を、当該画像のサイズに応じて算出するステップと、
算出した手ブレ量と前記判定基準情報とに基づいて、前記取得する画像に示される文字の判読可否を、前記用途に応じて判定するステップと、
判定結果に応じた所定の通知情報を出力するステップと、
を実行させることを特徴とするプログラム。
To a computer that controls a digital camera that converts incident light into digital data and acquires image data,
A step of setting and storing determination criterion information indicating a criterion for determining whether or not the character shown in the image to be acquired can be read, according to the use of the image;
Obtaining information indicating movement of the digital camera that causes camera shake;
Calculating the amount of camera shake on the acquired image based on the movement of the digital camera according to the size of the image;
Based on the calculated amount of camera shake and the determination criterion information, determining whether or not the character shown in the acquired image is readable according to the application;
Outputting predetermined notification information according to the determination result;
A program characterized by having executed.
入射光をデジタルデータに変換して画像データを取得するデジタルカメラを制御するコンピュータに、
取得する画像に示される文字の判読可否を判定するための基準を示す判定基準情報を、当該画像の用途および画像上の位置に応じて設定して記憶するステップと、
取得する画像上に、前記デジタルカメラのレンズ性能に基づく所定の領域を設定するステップと、
前記取得する画像に示される文字を前記設定された領域毎に特定して、当該画像上での文字サイズを特定するステップと、
特定された文字サイズと前記判定基準情報とに基づいて、前記取得する画像上に示される文字の判読可否を前記用途に応じて判定するステップと、
判定結果に応じた所定の通知情報を出力するステップと、
を実行させることを特徴とするプログラム。
To a computer that controls a digital camera that converts incident light into digital data and acquires image data,
Setting and storing determination criterion information indicating a criterion for determining whether or not the character shown in the acquired image is readable according to the use of the image and the position on the image;
Setting a predetermined area based on the lens performance of the digital camera on the image to be acquired; and
Specifying the characters shown in the image to be acquired for each of the set areas, and specifying the character size on the image;
Based on the specified character size and the determination criterion information, determining whether or not the character shown on the acquired image is readable according to the application;
Outputting predetermined notification information according to the determination result;
A program characterized by having executed.
JP2004070607A 2004-03-12 2004-03-12 Digital camera and program Expired - Fee Related JP4366484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004070607A JP4366484B2 (en) 2004-03-12 2004-03-12 Digital camera and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004070607A JP4366484B2 (en) 2004-03-12 2004-03-12 Digital camera and program

Publications (3)

Publication Number Publication Date
JP2005260663A true JP2005260663A (en) 2005-09-22
JP2005260663A5 JP2005260663A5 (en) 2007-03-08
JP4366484B2 JP4366484B2 (en) 2009-11-18

Family

ID=35085953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004070607A Expired - Fee Related JP4366484B2 (en) 2004-03-12 2004-03-12 Digital camera and program

Country Status (1)

Country Link
JP (1) JP4366484B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007180988A (en) * 2005-12-28 2007-07-12 Casio Comput Co Ltd Imaging apparatus, display method, shake image confirming method, program, and storage medium
US7509038B2 (en) 2005-09-29 2009-03-24 Seiko Epson Corporation Determining maximum exposure time to limit motion blur during image capture
JP2009200712A (en) * 2008-02-20 2009-09-03 Fujifilm Corp Imaging apparatus, and imaging control method
JP2011070601A (en) * 2009-09-28 2011-04-07 Fujitsu Ltd Device, and method for managing image, and computer program
JP2014039241A (en) * 2012-08-15 2014-02-27 Fuji Xerox Co Ltd Device, method, and program for analyzing preliminary image
KR20160005320A (en) * 2015-12-23 2016-01-14 삼성전자주식회사 Recording medium, portable terminal and method for recognizing characters based on determining presence of user's hand tremor or intentional motion
JP2016177364A (en) * 2015-03-18 2016-10-06 京セラドキュメントソリューションズ株式会社 Information processing device, and data structure of data to be obtained by imaging with respect to paper medium
WO2020012961A1 (en) * 2018-07-09 2020-01-16 株式会社ニコン Imaging device
WO2020012960A1 (en) * 2018-07-09 2020-01-16 株式会社ニコン Imaging device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509038B2 (en) 2005-09-29 2009-03-24 Seiko Epson Corporation Determining maximum exposure time to limit motion blur during image capture
JP2007180988A (en) * 2005-12-28 2007-07-12 Casio Comput Co Ltd Imaging apparatus, display method, shake image confirming method, program, and storage medium
JP2009200712A (en) * 2008-02-20 2009-09-03 Fujifilm Corp Imaging apparatus, and imaging control method
JP2011070601A (en) * 2009-09-28 2011-04-07 Fujitsu Ltd Device, and method for managing image, and computer program
JP2014039241A (en) * 2012-08-15 2014-02-27 Fuji Xerox Co Ltd Device, method, and program for analyzing preliminary image
JP2016177364A (en) * 2015-03-18 2016-10-06 京セラドキュメントソリューションズ株式会社 Information processing device, and data structure of data to be obtained by imaging with respect to paper medium
KR20160005320A (en) * 2015-12-23 2016-01-14 삼성전자주식회사 Recording medium, portable terminal and method for recognizing characters based on determining presence of user's hand tremor or intentional motion
KR101667500B1 (en) 2015-12-23 2016-10-18 삼성전자주식회사 Recording medium, portable terminal and method for recognizing characters based on determining presence of user's hand tremor or intentional motion
WO2020012961A1 (en) * 2018-07-09 2020-01-16 株式会社ニコン Imaging device
WO2020012960A1 (en) * 2018-07-09 2020-01-16 株式会社ニコン Imaging device

Also Published As

Publication number Publication date
JP4366484B2 (en) 2009-11-18

Similar Documents

Publication Publication Date Title
US6359650B1 (en) Electronic camera having a tilt detection function
US20050134719A1 (en) Display device with automatic area of importance display
EP2012528A1 (en) Electronic camera
JP2006116943A (en) Method and system for printing
JP4907740B2 (en) Imaging device
JP2005159856A (en) Digital camera
US20090086050A1 (en) Image capture device and image capture method
JP5087936B2 (en) camera
JP2009094946A (en) Image pickup device and portrait right protection method in the same device
WO2005022901A1 (en) Imaging system diagnosis device, imaging system diagnosis program, imaging system diagnosis program product, and imaging device
JP4366484B2 (en) Digital camera and program
USRE44997E1 (en) Photographing apparatus
US11140331B2 (en) Image capturing apparatus, control method for image capturing apparatus, and control program for image capturing apparatus
JP5078446B2 (en) Image processing apparatus, control method therefor, and program
JP2006019874A (en) Blur, out of focus informing method and imaging apparatus
JP2008079193A (en) Digital camera
JP4315024B2 (en) Digital camera and program
JP2007049675A (en) Digital camera printing system and digital camera used therefor
JP2006287517A (en) Camera apparatus, photographing method, and photographing program
JP5034148B2 (en) Electronic camera and camera system
JP2014204249A (en) Imaging apparatus
JP3457993B2 (en) Red eye correction device
JP4727526B2 (en) Imaging device
JP4934983B2 (en) Camera device, photographing method and photographing program
JP2008017127A (en) Imaging device with object detecting function, and its control method, printing method, program, and recording medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070123

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070123

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090428

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090622

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090714

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090727

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees