[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2022054315A - Sound processor, control method, and program - Google Patents

Sound processor, control method, and program Download PDF

Info

Publication number
JP2022054315A
JP2022054315A JP2020161435A JP2020161435A JP2022054315A JP 2022054315 A JP2022054315 A JP 2022054315A JP 2020161435 A JP2020161435 A JP 2020161435A JP 2020161435 A JP2020161435 A JP 2020161435A JP 2022054315 A JP2022054315 A JP 2022054315A
Authority
JP
Japan
Prior art keywords
noise
parameter
unit
generated
voice
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
JP2020161435A
Other languages
Japanese (ja)
Other versions
JP7604154B2 (en
Inventor
吉信 飯田
Yoshinobu Iida
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2020161435A priority Critical patent/JP7604154B2/en
Priority to US17/410,592 priority patent/US11729548B2/en
Publication of JP2022054315A publication Critical patent/JP2022054315A/en
Application granted granted Critical
Publication of JP7604154B2 publication Critical patent/JP7604154B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

To effectively reduce noise.SOLUTION: A sound processor comprises: imaging means; a first microphone; a second microphone; means for performing Fourier transform on sound signals from the first microphone to generate first sound signals; means for performing Fourier transform on sound signals from the second microphone to generate second sound signals; means for generating noise data using the second sound signals and a first parameter related to noise of a noise source; subtraction means for subtracting the noise data from the first sound signals; transform means for performing inverse Fourier transform on sound signals from the subtraction means; record means for recording, on a recording medium, moving image data generated by the imaging means and sound signals from the transform means, as moving image data with sounds; and update means for updating the first parameter using a parameter generated with the first sound signals and the second sound signals in a state in which, recording of the moving image data with sounds is not executed by the record means.SELECTED DRAWING: Figure 13

Description

本発明は、音声データに含まれるノイズを低減可能な音声処理装置に関する。 The present invention relates to a voice processing device capable of reducing noise contained in voice data.

音声処理装置の一例であるデジタルカメラは、動画データを記録する場合、周囲の音声も併せて記録することができる。また、デジタルカメラは、光学レンズを駆動することで、動画データの記録中に被写体に対してフォーカスを合わせるオートフォーカス機能を持つ。また、デジタルカメラは、動画の記録中に光学レンズを駆動してズームを行う機能を持つ。 When recording moving image data, a digital camera, which is an example of an audio processing device, can also record ambient audio. In addition, the digital camera has an autofocus function that focuses on the subject during recording of moving image data by driving an optical lens. In addition, the digital camera has a function of driving an optical lens to perform zooming while recording a moving image.

このように、動画の記録中に光学レンズを駆動すると、動画とともに記録される音声に光学レンズの駆動音がノイズとして含まれることがある。そこで、従来、デジタルカメラは、光学レンズが駆動する際に発生する摺動音等をノイズとして収音した場合、そのノイズを低減して周囲の音声を記録することができる。特許文献1では、スペクトルサブトラクション法によってノイズを低減するデジタルカメラが開示されている。 As described above, when the optical lens is driven during the recording of the moving image, the driving sound of the optical lens may be included as noise in the sound recorded together with the moving image. Therefore, conventionally, when a digital camera collects a sliding sound or the like generated when an optical lens is driven as noise, the noise can be reduced and the surrounding sound can be recorded. Patent Document 1 discloses a digital camera that reduces noise by a spectral subtraction method.

特開2011-205527号公報Japanese Unexamined Patent Publication No. 2011-205527

しかし、特許文献1では、デジタルカメラは、周囲の音声を記録するマイクによって集音されたノイズからノイズパターンを作成するため、光学レンズの筐体内で発生する摺動音から正確なノイズパターンを取得できない可能性がある。この場合、デジタルカメラは、収音した音声に含まれるノイズを効果的に低減できないおそれがあった。 However, in Patent Document 1, since the digital camera creates a noise pattern from the noise collected by the microphone that records the surrounding sound, an accurate noise pattern is acquired from the sliding noise generated in the housing of the optical lens. It may not be possible. In this case, the digital camera may not be able to effectively reduce the noise contained in the collected sound.

そこで本発明は、効果的にノイズを低減することを目的とする。 Therefore, an object of the present invention is to effectively reduce noise.

音声処理装置は、装置撮像手段と、環境音を取得するための第一のマイクと、ノイズ源からの音を取得するための第二のマイクと、前記第一のマイクからの音声信号をフーリエ変換して第一の音声信号を生成する第一の変換手段と、前記第二のマイクからの音声信号をフーリエ変換して第二の音声信号を生成する第二の変換手段と、前記第二の音声信号と、前記ノイズ源のノイズに係る第一のパラメータとを用いてノイズデータを生成する生成手段と、前記第一の音声信号から前記ノイズデータを減算する減算手段と、前記減算手段からの音声信号を逆フーリエ変換する第三の変換手段と、前記撮像手段によって生成された動画データと、前記第三の変換手段からの音声信号とを音声付き動画データとして記録媒体に記録する記録手段と、前記記録手段による音声付き動画データの記録が行われていない状態において、前記第一の音声信号と前記第二の音声信号とを用いて、前記ノイズ源のノイズに係るパラメータを生成し、前記生成したパラメータを用いて前記第一のパラメータを更新する更新手段と、を有することを特徴とする。 The voice processing device Fouriers the device image pickup means, the first microphone for acquiring the environmental sound, the second microphone for acquiring the sound from the noise source, and the voice signal from the first microphone. A first conversion means for converting and generating a first audio signal, a second conversion means for Fourier-converting an audio signal from the second microphone to generate a second audio signal, and the second conversion means. From the generation means for generating noise data using the voice signal of the above and the first parameter related to the noise of the noise source, the subtraction means for subtracting the noise data from the first voice signal, and the subtraction means. A third conversion means for inverse Fourier transforming the audio signal of the above, a recording means for recording the moving image data generated by the imaging means and the audio signal from the third conversion means on a recording medium as moving image data with sound. And, in a state where the moving image data with sound is not recorded by the recording means, the parameter related to the noise of the noise source is generated by using the first sound signal and the second sound signal. It is characterized by having an update means for updating the first parameter using the generated parameter.

本発明の音声処理装置は、効果的にノイズを低減することができる。 The voice processing apparatus of the present invention can effectively reduce noise.

第一の実施例における撮像装置の斜視図である。It is a perspective view of the image pickup apparatus in 1st Example. 第一の実施例における撮像装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image pickup apparatus in 1st Example. 第一の実施例における撮像装置の音声入力部の構成を示すブロック図である。It is a block diagram which shows the structure of the audio input part of the image pickup apparatus in the 1st Example. 第一の実施例における撮像装置の音声入力部におけるマイクの配置を示す図である。It is a figure which shows the arrangement of the microphone in the audio input part of the image pickup apparatus in the 1st Example. 第一の実施例におけるノイズパラメータを示す図である。It is a figure which shows the noise parameter in 1st Example. 第一の実施例における、環境音がないと見なせる状況において駆動音が発生した場合における音声の周波数スペクトル、および、ノイズパラメータの周波数スペクトルを示す図である。It is a figure which shows the frequency spectrum of voice, and the frequency spectrum of a noise parameter in the case where the driving sound is generated in the situation which can be considered that there is no environmental sound in 1st Example. 第一の実施例における、環境音がある状況において駆動音が発生した場合における音声の周波数スペクトルを示す図である。It is a figure which shows the frequency spectrum of the voice in the case where the driving sound is generated in the situation which there is an environmental sound in the 1st Example. 第一の実施例におけるノイズパラメータ選択部の構成を示すブロック図である。It is a block diagram which shows the structure of the noise parameter selection part in 1st Example. 第一の実施例における音声ノイズ低減処理に係るタイミングチャートである。It is a timing chart which concerns on voice noise reduction processing in 1st Example. 第一の実施例における、環境音がある状況において駆動音が発生した場合における音声の周波数スペクトルを示す図である。It is a figure which shows the frequency spectrum of the voice in the case where the driving sound is generated in the situation which there is an environmental sound in the 1st Example. 第一の実施例におけるノイズパラメータ選択部の構成を示すブロック図である。It is a block diagram which shows the structure of the noise parameter selection part in 1st Example. 第一の実施例におけるノイズパラメータの更新方法に係るタイミングチャートである。It is a timing chart which concerns on the update method of a noise parameter in 1st Example. 第一の実施例におけるノイズパラメータの更新処理に係るフローチャートである。It is a flowchart which concerns on the update process of a noise parameter in 1st Example. 第一の実施例におけるノイズパラメータの更新処理に係るタイミングチャートである。It is a timing chart which concerns on the update process of a noise parameter in 1st Example. 第二の実施例におけるノイズパラメータの更新処理に係るフローチャートである。It is a flowchart which concerns on the update process of a noise parameter in 2nd Example. 第二の実施例におけるノイズパラメータの更新処理に係るタイミングチャートである。It is a timing chart which concerns on the update process of a noise parameter in the 2nd Example.

以下、図面を参照して本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[第一の実施例]
<撮像装置100の外観図>
図1(a)、(b)に本発明を適用可能な音声処理装置の一例としての撮像装置100の外観図の一例を示す。図1(a)は撮像装置100の前面斜視図の一例である。図1(b)は撮像装置100の背面斜視図の一例である。図1において、レンズマウント301には不図示の光学レンズが装着される。
[First Example]
<External view of the image pickup device 100>
1A and 1B show an example of an external view of an image pickup apparatus 100 as an example of an audio processing apparatus to which the present invention can be applied. FIG. 1A is an example of a front perspective view of the image pickup apparatus 100. FIG. 1B is an example of a rear perspective view of the image pickup apparatus 100. In FIG. 1, an optical lens (not shown) is attached to the lens mount 301.

表示部107は画像データおよび文字情報等を表示する。表示部107は撮像装置100の背面に設けられる。ファインダー外表示部43は、撮像装置100の上面に設けられた表示部である。ファインダー外表示部43は、シャッター速度、絞り値等の撮像装置100の設定値を表示する。接眼ファインダー16は覗き込み型のファインダーである。ユーザは接眼ファインダー16内のフォーカシングスクリーンを観察することで、被写体の光学像の焦点および構図を確認することができる。 The display unit 107 displays image data, character information, and the like. The display unit 107 is provided on the back surface of the image pickup apparatus 100. The display unit 43 outside the viewfinder is a display unit provided on the upper surface of the image pickup apparatus 100. The out-of-finder display unit 43 displays the set values of the image pickup apparatus 100 such as the shutter speed and the aperture value. The eyepiece finder 16 is a peep-type finder. The user can confirm the focus and composition of the optical image of the subject by observing the focusing screen in the eyepiece finder 16.

レリーズスイッチ61はユーザが撮影指示を行うための操作部材である。モード切替スイッチ60はユーザが各種モードを切り替えるための操作部材である。メイン電子ダイヤル71は回転操作部材である。ユーザはこのメイン電子ダイヤル71を回すことで、シャッター速度、絞り値等の撮像装置100の設定値を変更することができる。レリーズスイッチ61、モード切替スイッチ60、メイン電子ダイヤル71は、操作部112に含まれる。 The release switch 61 is an operating member for the user to give a shooting instruction. The mode changeover switch 60 is an operation member for the user to switch between various modes. The main electronic dial 71 is a rotation operation member. The user can change the setting values of the image pickup apparatus 100 such as the shutter speed and the aperture value by turning the main electronic dial 71. The release switch 61, the mode changeover switch 60, and the main electronic dial 71 are included in the operation unit 112.

電源スイッチ72は撮像装置100の電源のオンおよびオフを切り替える操作部材である。サブ電子ダイヤル73は回転操作部材である。ユーザは、サブ電子ダイヤル73によって表示部107に表示された選択枠の移動および再生モードにおける画像送りなどを行える。十字キー74は上、下、左、右部分をそれぞれ押し込み可能な十字キー(4方向キー)である。撮像装置100は十字キー74の押された部分(方向)に応じた処理を実行する。電源スイッチ72、サブ電子ダイヤル73、十字キー74は操作部112に含まれる。 The power switch 72 is an operating member that switches the power of the image pickup apparatus 100 on and off. The sub electronic dial 73 is a rotation operation member. The user can move the selection frame displayed on the display unit 107 by the sub-electronic dial 73, advance the image in the reproduction mode, and the like. The cross key 74 is a cross key (four-way key) capable of pushing up, down, left, and right portions, respectively. The image pickup apparatus 100 executes processing according to the pressed portion (direction) of the cross key 74. The power switch 72, the sub electronic dial 73, and the cross key 74 are included in the operation unit 112.

SETボタン75は押しボタンである。SETボタン75は、主に、ユーザが表示部107に表示された選択項目を決定するためなどに用いられる。LVボタン76はライブビュー(以下、LV)のオンおよびオフを切り替えるために使用されるボタンである。LVボタン76は、動画記録モードにおいては、動画撮影(記録)の開始および停止の指示に用いられる。拡大ボタン77は撮影モードのライブビュー表示において拡大モードのオンおよびオフ、並びに、拡大モード中の拡大率の変更を行うための押しボタンである。SETボタン75、LVボタン76、拡大ボタン77は操作部112に含まれる。 The SET button 75 is a push button. The SET button 75 is mainly used for the user to determine a selection item displayed on the display unit 107. The LV button 76 is a button used to switch the live view (hereinafter referred to as LV) on and off. The LV button 76 is used to instruct to start and stop moving image recording (recording) in the moving image recording mode. The magnifying button 77 is a push button for turning on and off the magnifying mode and changing the magnifying ratio during the magnifying mode in the live view display of the shooting mode. The SET button 75, the LV button 76, and the enlargement button 77 are included in the operation unit 112.

拡大ボタン77は、再生モードにおいては表示部107に表示された画像データの拡大率を増加させるためのボタンとして機能する。縮小ボタン78は表示部107において拡大表示された画像データの拡大率を低減させるためのボタンである。再生ボタン79は撮影モードと再生モードとを切り替える操作ボタンである。撮像装置100は撮影モード中にユーザが再生ボタン79を押すと、撮像装置100が再生モードに移行し、記録媒体110に記録された画像データを表示部107に表示する。縮小ボタン78、再生ボタン79は、操作部112に含まれる。 The enlargement button 77 functions as a button for increasing the enlargement ratio of the image data displayed on the display unit 107 in the reproduction mode. The reduction button 78 is a button for reducing the enlargement ratio of the image data enlarged and displayed on the display unit 107. The play button 79 is an operation button for switching between a shooting mode and a play mode. When the user presses the play button 79 during the shooting mode, the image pickup device 100 shifts to the play mode and displays the image data recorded on the recording medium 110 on the display unit 107. The reduction button 78 and the play button 79 are included in the operation unit 112.

クイックリターンミラー12(以下、ミラー12)は、撮像装置100に装着された光学レンズから入射した光束を接眼ファインダー16側または撮像部101側のどちらかに入射するよう切り替えるためのミラーである。ミラー12は、露光、ライブビュー撮影、および動画撮影の際に、制御部111によって不図示のアクチュエータを制御されることによりアップダウンされる。ミラー12は通常時は接眼ファインダー16へと光束を入射させるように配されている。ミラー12は、撮影が行われる場合およびライブビュー表示の場合には、撮像部101に光束が入射するように上方に跳ね上がる(ミラーアップ)。またミラー12はその中央部がハーフミラーとなっている。ミラー12の中央部を透過した光束の一部は、焦点検出を行うための焦点検出部(不図示)に入射する。 The quick return mirror 12 (hereinafter referred to as a mirror 12) is a mirror for switching the light beam incident from the optical lens mounted on the image pickup apparatus 100 so as to be incident on either the eyepiece finder 16 side or the image pickup unit 101 side. The mirror 12 is moved up and down by controlling an actuator (not shown) by the control unit 111 during exposure, live view shooting, and moving image shooting. The mirror 12 is normally arranged so that a light flux is incident on the eyepiece finder 16. In the case of shooting and live view display, the mirror 12 jumps upward so that a light flux is incident on the image pickup unit 101 (mirror lockup). Further, the central portion of the mirror 12 is a half mirror. A part of the light flux transmitted through the central portion of the mirror 12 is incident on a focal detection unit (not shown) for performing focus detection.

通信端子10は、撮像装置100に装着された光学レンズ300と撮像装置100とが通信を行う為の通信端子である。端子カバー40は外部機器との接続ケーブルと撮像装置100とを接続する接続ケーブル等のコネクタ(不図示)を保護するカバーである。蓋41は記録媒体110を格納したスロットの蓋である。レンズマウント301は不図示の光学レンズ300を取り付けることができる取り付け部である。 The communication terminal 10 is a communication terminal for communicating between the optical lens 300 mounted on the image pickup apparatus 100 and the image pickup apparatus 100. The terminal cover 40 is a cover that protects a connector (not shown) such as a connection cable for connecting a connection cable to an external device and the image pickup device 100. The lid 41 is a lid of a slot in which the recording medium 110 is stored. The lens mount 301 is a mounting portion to which an optical lens 300 (not shown) can be mounted.

Lマイク201aおよびRマイク201bはユーザの音声等の環境音を収音するためのマイクである。撮像装置100の背面から見て、左側にLマイク201aが、右側にRマイク201bが配置される。 The L microphone 201a and the R microphone 201b are microphones for collecting environmental sounds such as user's voice. When viewed from the back surface of the image pickup apparatus 100, the L microphone 201a is arranged on the left side and the R microphone 201b is arranged on the right side.

<撮像装置100の構成>
図2は本実施例における撮像装置100の構成の一例を示すブロック図である。
<Structure of image pickup device 100>
FIG. 2 is a block diagram showing an example of the configuration of the image pickup apparatus 100 in this embodiment.

光学レンズ300は、撮像装置100に着脱可能なレンズユニットである。例えば光学レンズ300はズームレンズまたはバリフォーカルレンズである。光学レンズ300は光学レンズ、光学レンズを駆動させるためのモーター、および後述する撮像装置100のレンズ制御部102と通信する通信部を有する。光学レンズ300は、通信部によって受信した制御信号に基づいて、光学レンズをモーターによって移動させることで、被写体に対するフォーカスおよびズーミング、並びに、手ブレの補正ができる。 The optical lens 300 is a lens unit that can be attached to and detached from the image pickup device 100. For example, the optical lens 300 is a zoom lens or a varifocal lens. The optical lens 300 has an optical lens, a motor for driving the optical lens, and a communication unit that communicates with the lens control unit 102 of the image pickup apparatus 100 described later. The optical lens 300 can focus and zoom on the subject and correct camera shake by moving the optical lens by a motor based on the control signal received by the communication unit.

撮像部101は、光学レンズ300を経て撮像面に結像された被写体の光学像を電気信号に変換するための撮像素子、および撮像素子で生成された電気信号から画像データまたは動画データを生成して出力する画像処理部とを有する。撮像素子は、例えばCCD(Charge Coupled Device)、およびCMOS(Complementary Metal Oxide Semiconductor)である。本実施例では、撮像部101において静止画像データや動画データを含む画像データを生成して撮像部101から出力する一連の処理を「撮影」という。撮像装置100では、画像データは、DCF(Design rule for Camera File system)規格に従って、後述する記録媒体110に記録される。 The image pickup unit 101 generates image data or moving image data from an image pickup element for converting an optical image of a subject imaged on an image pickup surface through an optical lens 300 into an electric signal, and an electric signal generated by the image pickup element. It has an image processing unit to output the image. The image pickup device is, for example, a CCD (Charge Coupled Device) and a CMOS (Complementary Metal Oxide Semiconductor). In this embodiment, a series of processes in which the image pickup unit 101 generates image data including still image data and moving image data and outputs the image data from the image pickup unit 101 is referred to as “shooting”. In the image pickup apparatus 100, the image data is recorded on the recording medium 110 described later in accordance with the DCF (Design rule for Camera File system) standard.

レンズ制御部102は撮像部101から出力されたデータ、および後述する制御部111から出力された制御信号に基づいて、通信端子10を介して光学レンズ300に制御信号を送信し、光学レンズ300を制御する。また、レンズ制御部102は、撮像装置100に装着されている光学レンズ300からレンズ情報を受信する。レンズ情報は、例えば、レンズの種類、レンズの型番、ズーム倍率、およびノイズ源の種類等である。 The lens control unit 102 transmits a control signal to the optical lens 300 via the communication terminal 10 based on the data output from the image pickup unit 101 and the control signal output from the control unit 111 described later, and causes the optical lens 300 to operate. Control. Further, the lens control unit 102 receives lens information from the optical lens 300 mounted on the image pickup apparatus 100. The lens information is, for example, the type of lens, the model number of the lens, the zoom magnification, the type of noise source, and the like.

情報取得部103は、撮像装置100の傾きおよび撮像装置100の筐体内の温度などを検出する。例えば情報取得部103は撮像装置100の傾きを加速度センサまたはジャイロセンサによって検出する。また、例えば情報取得部103は撮像装置100の筐体内の温度を温度センサによって検出する。 The information acquisition unit 103 detects the tilt of the image pickup device 100, the temperature inside the housing of the image pickup device 100, and the like. For example, the information acquisition unit 103 detects the inclination of the image pickup device 100 by an acceleration sensor or a gyro sensor. Further, for example, the information acquisition unit 103 detects the temperature inside the housing of the image pickup apparatus 100 by a temperature sensor.

音声入力部104は、マイクによって取得された音声から音声データを生成する。音声入力部104は、マイクによって撮像装置100の周辺の音声を取得し、取得された音声に対してアナログデジタル変換(A/D変換)、各種の音声処理を行い、音声データを生成する。本実施例では、音声入力部104はマイクを有する。音声入力部104の詳細な構成例については後述する。 The voice input unit 104 generates voice data from the voice acquired by the microphone. The voice input unit 104 acquires voice around the image pickup device 100 by a microphone, performs analog-digital conversion (A / D conversion) and various voice processing on the acquired voice, and generates voice data. In this embodiment, the voice input unit 104 has a microphone. A detailed configuration example of the voice input unit 104 will be described later.

揮発性メモリ105は、撮像部101において生成された画像データ、並びに音声入力部104によって生成された音声データを一時的に記録する。また、揮発性メモリ105は、表示部107に表示される画像データの一時的な記録領域、および制御部111の作業領域等としても使用される。 The volatile memory 105 temporarily records the image data generated by the imaging unit 101 and the audio data generated by the audio input unit 104. The volatile memory 105 is also used as a temporary recording area for image data displayed on the display unit 107, a work area for the control unit 111, and the like.

表示制御部106は、撮像部101から出力された画像データ、対話的な操作のための文字並びに、メニュー画面等を表示部107に表示するよう制御する。また、表示制御部106は静止画撮影および動画撮影の際、撮像部101から出力されたデジタルデータを逐次表示部107に表示するよう制御することで、表示部107を電子ビューファインダとして機能させることができる。例えば表示部107は、液晶ディスプレイまたは有機ELディスプレイである。また、表示制御部106は、撮像部101から出力された画像データおよび動画データ、対話的な操作のための文字、並びにメニュー画面等を、後述する外部出力部115を介して外部のディスプレイに表示させるよう制御することもできる。 The display control unit 106 controls to display the image data output from the image pickup unit 101, characters for interactive operation, a menu screen, and the like on the display unit 107. Further, the display control unit 106 controls the display unit 107 to sequentially display the digital data output from the image pickup unit 101 on the display unit 107 during still image shooting and moving image shooting, so that the display unit 107 functions as an electronic viewfinder. Can be done. For example, the display unit 107 is a liquid crystal display or an organic EL display. Further, the display control unit 106 displays image data and moving image data output from the image pickup unit 101, characters for interactive operation, a menu screen, and the like on an external display via an external output unit 115, which will be described later. It can also be controlled to cause.

符号化処理部108は、揮発性メモリ105に一時的に記録された画像データおよび音声データをそれぞれ符号化することができる。例えば、符号化処理部108は、画像データをJPEG規格またはRAW画像フォーマットに従って符号化およびデータ圧縮された動画データを生成することができる。例えば、符号化処理部108は、動画データをMPEG2規格またはH.264/MPEG4-AVC規格に従って符号化およびデータ圧縮された動画データを生成することができる。また例えば、符号化処理部108は、音声データをAC3AAC規格、ATRAC規格、またはADPCM方式に従って符号化およびデータ圧縮された音声データを生成することができる。また、符号化処理部108は、例えばリニアPCM方式に従って音声データをデータ圧縮しないように符号化してもよい。 The coding processing unit 108 can encode the image data and the audio data temporarily recorded in the volatile memory 105, respectively. For example, the coding processing unit 108 can generate moving image data in which image data is encoded and data-compressed according to a JPEG standard or a RAW image format. For example, the coding processing unit 108 uses the MPEG2 standard or H.M. It is possible to generate video data encoded and data-compressed according to the 264 / MPEG4-AVC standard. Further, for example, the coding processing unit 108 can generate voice data in which voice data is coded and data-compressed according to the AC3AAC standard, ATRAC standard, or ADPCM method. Further, the coding processing unit 108 may encode the voice data so as not to compress the voice data according to, for example, the linear PCM method.

記録制御部109は、データを記録媒体110に記録すること、および記録媒体110から読み出すことができる。例えば、記録制御部109は、符号化処理部108によって生成された静止画像データ、動画データ、および音声データを記録媒体110に記録すること、および記録媒体110から読み出すことができる。記録媒体110は例えばSDカード、CFカード、XQDメモリーカード、HDD(磁気ディスク)、光学式ディスク、および半導体メモリである。記録媒体110は、撮像装置100に着脱可能なように構成してもよいし、撮像装置100に内蔵されていてもよい。すなわち、記録制御部109は少なくとも記録媒体110にアクセスする手段を有していればよい。 The recording control unit 109 can record data on the recording medium 110 and read the data from the recording medium 110. For example, the recording control unit 109 can record the still image data, the moving image data, and the audio data generated by the coding processing unit 108 on the recording medium 110 and read them from the recording medium 110. The recording medium 110 is, for example, an SD card, a CF card, an XQD memory card, an HDD (magnetic disk), an optical disk, and a semiconductor memory. The recording medium 110 may be configured to be detachable from the image pickup device 100, or may be built in the image pickup device 100. That is, the recording control unit 109 may have at least a means for accessing the recording medium 110.

制御部111は、入力された信号、および後述のプログラムに従ってデータバス116を介して撮像装置100の各構成要素を制御する。制御部111は、各種制御を実行するためのCPU、ROM、およびRAMを有する。なお、制御部111が撮像装置100全体を制御する代わりに、複数のハードウェアが分担して撮像装置全体を制御してもよい。制御部111が有するROMには、各構成要素を制御するためのプログラムが格納されている。また制御部111が有するRAMは演算処理等に利用される揮発性メモリである。 The control unit 111 controls each component of the image pickup apparatus 100 via the data bus 116 according to the input signal and the program described later. The control unit 111 has a CPU, a ROM, and a RAM for executing various controls. Instead of the control unit 111 controlling the entire image pickup device 100, a plurality of hardware may share control of the entire image pickup device 100. The ROM included in the control unit 111 stores a program for controlling each component. Further, the RAM included in the control unit 111 is a volatile memory used for arithmetic processing and the like.

操作部112は、撮像装置100に対する指示をユーザから受け付けるためのユーザインタフェースである。操作部112は、例えば撮像装置100の電源をオン状態またはオフ状態にするための電源スイッチ72、撮影を指示するためのレリーズスイッチ61、画像データまたは動画データの再生を指示するための再生ボタン、およびモード切替スイッチ60等を有する。 The operation unit 112 is a user interface for receiving an instruction to the image pickup apparatus 100 from the user. The operation unit 112 includes, for example, a power switch 72 for turning on or off the power of the image pickup apparatus 100, a release switch 61 for instructing shooting, a play button for instructing playback of image data or moving image data, and the like. And has a mode changeover switch 60 and the like.

操作部112はユーザの操作に応じて、制御信号を制御部111に出力する。また、表示部107に形成されるタッチパネルも操作部112に含めることができる。なお、レリーズスイッチ61は、SW1およびSW2を有する。レリーズスイッチ61が、いわゆる半押し状態となることにより、SW1がオンとなる。これにより、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の撮像の準備動作を行うための準備指示を受け付ける。また、レリーズスイッチ61が、いわゆる全押し状態となることにより、SW2がオンとなる。このようなユーザ操作により、撮像動作を行うための撮像指示を受け付ける。また、操作部112は後述するスピーカ114から再生される音声データの音量を調整することができる操作部材(例えばボタン)を含む。 The operation unit 112 outputs a control signal to the control unit 111 according to the operation of the user. Further, the touch panel formed on the display unit 107 can also be included in the operation unit 112. The release switch 61 has SW1 and SW2. When the release switch 61 is in the so-called half-pressed state, SW1 is turned on. As a result, it receives preparation instructions for performing preparatory operations for imaging such as AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and EF (flash pre-flash) processing. Further, when the release switch 61 is in the so-called fully pressed state, SW2 is turned on. By such a user operation, an imaging instruction for performing an imaging operation is received. Further, the operation unit 112 includes an operation member (for example, a button) capable of adjusting the volume of audio data reproduced from the speaker 114, which will be described later.

音声出力部113は、音声データをスピーカ114、および外部出力部115に出力することができる。音声出力部113に入力される音声データは、記録制御部109により記録媒体110から読み出された音声データ、不揮発性メモリ117から出力される音声データ、および符号化処理部から出力される音声データである。スピーカ114は、音声データを再生することができる電気音響変換器である。 The audio output unit 113 can output audio data to the speaker 114 and the external output unit 115. The audio data input to the audio output unit 113 is audio data read from the recording medium 110 by the recording control unit 109, audio data output from the non-volatile memory 117, and audio data output from the coding processing unit. Is. The speaker 114 is an electroacoustic converter capable of reproducing audio data.

外部出力部115は、画像データ、動画データ、および音声データなどを外部機器に出力することができる。外部出力部115は、例えば映像端子、マイク端子、およびヘッドホン端子等で構成される。 The external output unit 115 can output image data, moving image data, audio data, and the like to an external device. The external output unit 115 is composed of, for example, a video terminal, a microphone terminal, a headphone terminal, and the like.

データバス116は、音声データ、動画データ、および画像データ等の各種データ、各種制御信号を撮像装置100の各ブロックへ伝達するためのデータバスである。 The data bus 116 is a data bus for transmitting various data such as audio data, moving image data, and image data, and various control signals to each block of the image pickup apparatus 100.

不揮発性メモリ117は不揮発性メモリであり、制御部111で実行される後述のプログラム等が格納される。また、不揮発性メモリ117には、音声データが記録されている。この音声データは例えば、被写体に合焦した場合に出力される合焦音、撮影を指示された場合に出力される電子シャッター音、撮像装置100を操作された場合に出力される操作音等の電子音の音声データである。 The non-volatile memory 117 is a non-volatile memory, and stores a program or the like described later executed by the control unit 111. In addition, voice data is recorded in the non-volatile memory 117. This audio data includes, for example, a focusing sound output when the subject is in focus, an electronic shutter sound output when shooting is instructed, an operation sound output when the image pickup device 100 is operated, and the like. It is voice data of electronic sound.

<撮像装置100の動作>
これから、本実施例の撮像装置100の動作について説明する。
<Operation of image pickup device 100>
From now on, the operation of the image pickup apparatus 100 of this Example will be described.

本実施例の撮像装置100は、ユーザが電源スイッチ72を操作して電源をオンされたことに応じて、不図示の電源から、撮像装置の各構成要素に電力を供給する。例えば電源はリチウムイオン電池またはアルカリマンガン乾電池等の電池である。 The image pickup apparatus 100 of this embodiment supplies electric power to each component of the image pickup apparatus from a power source (not shown) in response to the user operating the power switch 72 to turn on the power. For example, the power source is a battery such as a lithium ion battery or an alkaline manganese dry battery.

制御部111は、電力が供給されたことに応じてモード切替スイッチ60の状態に基づいて、例えば、撮影モードおよび再生モードのどのモードで動作するかを判断する。動画記録モードでは、制御部111は撮像部101から出力された動画データと音声入力部104から出力された音声データとを1つの音声付き動画データとして記録する。再生モードでは、制御部111は記録媒体110に記録された画像データまたは動画データを記録制御部109によって読み出し、表示部107に表示するよう制御する。 The control unit 111 determines, for example, which mode of the shooting mode and the reproduction mode operates based on the state of the mode changeover switch 60 according to the power supply. In the moving image recording mode, the control unit 111 records the moving image data output from the imaging unit 101 and the audio data output from the audio input unit 104 as one moving image data with audio. In the reproduction mode, the control unit 111 controls the recording control unit 109 to read out the image data or the moving image data recorded on the recording medium 110 and display the image data or the moving image data on the display unit 107.

まず、動画記録モードについて説明する。動画記録モードでは、まず制御部111は、撮像装置100を撮影待機状態に移行させるように制御信号を撮像装置100の各構成要素に送信する。例えば、制御部111は、撮像部101および音声入力部104に以下のような動作をさせるよう制御する。 First, the moving image recording mode will be described. In the moving image recording mode, first, the control unit 111 transmits a control signal to each component of the image pickup device 100 so as to shift the image pickup device 100 to the shooting standby state. For example, the control unit 111 controls the image pickup unit 101 and the voice input unit 104 to perform the following operations.

撮像部101は、光学レンズ300を経て撮像面に結像された被写体の光学像を電気信号に変換し、撮像素子で生成された電気信号から動画データを生成する。そして、撮像部101は動画データを表示制御部106に送信し、表示部107によって表示する。ユーザは表示部107に表示された動画データを見ながら撮影の準備を行うことができる。 The image pickup unit 101 converts the optical image of the subject imaged on the image pickup surface through the optical lens 300 into an electric signal, and generates moving image data from the electric signal generated by the image pickup element. Then, the image pickup unit 101 transmits the moving image data to the display control unit 106, and the display unit 107 displays the moving image data. The user can prepare for shooting while viewing the moving image data displayed on the display unit 107.

音声入力部104は、複数のマイクから入力されたアナログ音声信号をそれぞれA/D変換し、複数のデジタル音声信号を生成する。そして音声入力部104はその複数のデジタル音声信号から複数のチャンネルの音声データを生成する。音声入力部104は生成された音声データを音声出力部113に送信し、スピーカ114から音声データを再生させる。ユーザは、スピーカ114から再生された音声データを聞きながら、音声付き動画データに記録される音声データの音量を操作部112によって調整することができる。 The audio input unit 104 A / D-converts analog audio signals input from a plurality of microphones to generate a plurality of digital audio signals. Then, the voice input unit 104 generates voice data of a plurality of channels from the plurality of digital voice signals. The voice input unit 104 transmits the generated voice data to the voice output unit 113, and reproduces the voice data from the speaker 114. The user can adjust the volume of the audio data recorded in the moving image data with audio by the operation unit 112 while listening to the audio data reproduced from the speaker 114.

次に、ユーザによってLVボタン76が押下されたことに応じて、制御部111は、撮像装置100の各構成要素に撮影開始の指示信号を送信する。例えば、制御部111は、撮像部101、音声入力部104、符号化処理部108、および記録制御部109に以下のような動作をさせるよう制御する。 Next, in response to the user pressing the LV button 76, the control unit 111 transmits an instruction signal for starting shooting to each component of the image pickup apparatus 100. For example, the control unit 111 controls the image pickup unit 101, the voice input unit 104, the coding processing unit 108, and the recording control unit 109 to perform the following operations.

撮像部101は、光学レンズ300を経て撮像面に結像された被写体の光学像を電気信号に変換し、撮像素子で生成された電気信号から動画データを生成する。そして、撮像部101は動画データを表示制御部106に送信し、表示部107によって表示する。また、また撮像部101は生成された動画データを揮発性メモリ105へ送信する。 The image pickup unit 101 converts the optical image of the subject imaged on the image pickup surface through the optical lens 300 into an electric signal, and generates moving image data from the electric signal generated by the image pickup element. Then, the image pickup unit 101 transmits the moving image data to the display control unit 106, and the display unit 107 displays the moving image data. Further, the image pickup unit 101 also transmits the generated moving image data to the volatile memory 105.

音声入力部104は、複数のマイクから入力されたアナログ音声信号をそれぞれA/D変換し、複数のデジタル音声信号を生成する。そして音声入力部104はその複数のデジタル音声信号からマルチチャンネルの音声データを生成する。そして、音声入力部104は生成された音声データを揮発性メモリ105へ送信する。 The audio input unit 104 A / D-converts analog audio signals input from a plurality of microphones to generate a plurality of digital audio signals. Then, the voice input unit 104 generates multi-channel voice data from the plurality of digital voice signals. Then, the voice input unit 104 transmits the generated voice data to the volatile memory 105.

符号化処理部108は、揮発性メモリ105に一時的に記録された動画データおよび音声データを読み出してそれぞれ符号化する。制御部111は、符号化処理部108によって符号化された動画データおよび音声データからデータストリームを生成し、記録制御部109に出力する。記録制御部109は、UDFまたはFAT等のファイルシステムに従って、入力されたデータストリームを音声付き動画データとして記録媒体110に記録していく。 The coding processing unit 108 reads out the moving image data and the audio data temporarily recorded in the volatile memory 105 and encodes them respectively. The control unit 111 generates a data stream from the moving image data and the audio data encoded by the coding processing unit 108, and outputs the data stream to the recording control unit 109. The recording control unit 109 records the input data stream as moving image data with audio on the recording medium 110 according to a file system such as UDF or FAT.

撮像装置100の各構成要素は以上の動作を動画撮影中において継続する。 Each component of the image pickup apparatus 100 continues the above operation during movie shooting.

そして、ユーザからLVボタン76が押下されたことに応じて、制御部111は、撮像装置100の各構成要素に撮影終了の指示信号を送信する。例えば、制御部111は撮像部101、音声入力部104、符号化処理部108、および記録制御部109に以下のような動作をさせるよう制御する。 Then, in response to the user pressing the LV button 76, the control unit 111 transmits an instruction signal for the end of shooting to each component of the image pickup apparatus 100. For example, the control unit 111 controls the image pickup unit 101, the voice input unit 104, the coding processing unit 108, and the recording control unit 109 to perform the following operations.

撮像部101は、動画データの生成を停止する。音声入力部104は、音声データの生成を停止する。 The image pickup unit 101 stops the generation of moving image data. The voice input unit 104 stops the generation of voice data.

符号化処理部108は、揮発性メモリ105に記録されている残りの動画データおよび音声データを読み出して符号化する。制御部111は、符号化処理部108によって符号化された動画データおよび音声データからデータストリームを生成し、記録制御部109に出力する。 The coding processing unit 108 reads out and encodes the remaining moving image data and audio data recorded in the volatile memory 105. The control unit 111 generates a data stream from the moving image data and the audio data encoded by the coding processing unit 108, and outputs the data stream to the recording control unit 109.

記録制御部109は、UDFまたはFAT等のファイルシステムに従って、データストリームを音声付き動画データのファイルとして記録媒体110に記録していく。そして、記録制御部109は、データストリームの入力が停止したことに応じて、音声付き動画データを完成させる。音声付き動画データの完成をもって、撮像装置100の記録動作は停止する。 The recording control unit 109 records the data stream on the recording medium 110 as a file of moving image data with audio according to a file system such as UDF or FAT. Then, the recording control unit 109 completes the moving image data with audio in response to the stoppage of the input of the data stream. When the moving image data with sound is completed, the recording operation of the image pickup apparatus 100 is stopped.

制御部111は、記録動作が停止したことに応じて、撮影待機状態に移行させるように制御信号を撮像装置100の各構成要素に送信する。これにより、制御部111は撮像装置100を撮影待機状態に戻るよう制御する。 The control unit 111 transmits a control signal to each component of the image pickup apparatus 100 so as to shift to the shooting standby state when the recording operation is stopped. As a result, the control unit 111 controls the image pickup apparatus 100 to return to the shooting standby state.

次に、再生モードについて説明する。再生モードでは、制御部111は、再生状態に移行させるように制御信号を撮像装置100の各構成要素に送信する。例えば、制御部111は符号化処理部108、記録制御部109、表示制御部106、および音声出力部113に以下のような動作をさせるよう制御する。 Next, the reproduction mode will be described. In the reproduction mode, the control unit 111 transmits a control signal to each component of the image pickup apparatus 100 so as to shift to the reproduction state. For example, the control unit 111 controls the coding processing unit 108, the recording control unit 109, the display control unit 106, and the voice output unit 113 to perform the following operations.

記録制御部109は、記録媒体110に記録された音声付き動画データを読み出して読みだした音声付き動画データを符号化処理部108に送信する。 The recording control unit 109 reads out the moving image data with sound recorded on the recording medium 110 and transmits the read moving image data with sound to the coding processing unit 108.

符号化処理部108は、音声付き動画データから画像データ、および音声データを復号化する。符号化処理部108は、復号化された動画データを表示制御部106へ、復号化された音声データを音声出力部113へ、それぞれ送信する。 The coding processing unit 108 decodes the image data and the audio data from the moving image data with audio. The coding processing unit 108 transmits the decoded moving image data to the display control unit 106 and the decoded audio data to the audio output unit 113, respectively.

表示制御部106は、復号化された画像データを表示部107によって表示する。音声出力部113は、復号化された音声データをスピーカ114によって再生する。 The display control unit 106 displays the decoded image data by the display unit 107. The voice output unit 113 reproduces the decoded voice data by the speaker 114.

以上のように、本実施例の撮像装置100は画像データ、および音声データを記録および再生することができる。 As described above, the image pickup apparatus 100 of this embodiment can record and reproduce image data and audio data.

本実施例では、音声入力部104は、マイクから入力された音声信号のレベルの調整処理等の音声処理を実行する。本実施例では、音声入力部104は動画記録が開始されたことに応じてこの音声処理を実行する。なお、この音声処理は、撮像装置100の電源がオンにされてから実行されてもよい。また、この音声処理は、撮影モードが選択されたことに応じて実行されてもよい。また、この音声処理は、動画記録モードおよび音声メモ機能等の音声の記録に関連するモードが選択されたことに応じて実行されてもよい。また、この音声処理は、音声信号の記録が開始したことに応じて実行されてもよい。 In this embodiment, the voice input unit 104 executes voice processing such as adjustment processing of the level of the voice signal input from the microphone. In this embodiment, the voice input unit 104 executes this voice processing in response to the start of video recording. Note that this audio processing may be executed after the power of the image pickup apparatus 100 is turned on. Further, this audio processing may be executed depending on the shooting mode selected. Further, this voice processing may be executed depending on the selection of a mode related to voice recording such as a moving image recording mode and a voice memo function. Further, this voice processing may be executed in response to the start of recording of the voice signal.

<音声入力部104の構成>
図3は本実施例における音声入力部104の詳細な構成の一例を示すブロック図である。
<Structure of voice input unit 104>
FIG. 3 is a block diagram showing an example of a detailed configuration of the voice input unit 104 in this embodiment.

本実施例において、音声入力部104は、Lマイク201a、Rマイク201b、およびノイズマイク201cの3つのマイクを有する。Lマイク201aおよびRマイク201bはそれぞれ第一のマイクの一例である。本実施例では、撮像装置100は環境音をLマイク201aおよびRマイク201bによって収音し、Lマイク201aおよびRマイク201bから入力された音声信号をステレオ方式で記録する。例えば環境音は、ユーザの音声、動物の鳴き声、雨音、および楽曲等の撮像装置100の筐体外および光学レンズ300の筐体外において発生する音である。 In this embodiment, the voice input unit 104 has three microphones, an L microphone 201a, an R microphone 201b, and a noise microphone 201c. The L microphone 201a and the R microphone 201b are examples of the first microphone, respectively. In this embodiment, the image pickup apparatus 100 picks up the ambient sound by the L microphone 201a and the R microphone 201b, and records the audio signals input from the L microphone 201a and the R microphone 201b in a stereo system. For example, the environmental sound is a user's voice, an animal's bark, a rain sound, and a sound generated outside the housing of the image pickup device 100 and the housing of the optical lens 300 such as music.

また、ノイズマイク201cは第2のマイクの一例である。ノイズマイク201cは、撮像装置100の筐体内、および光学レンズ300の筐体内で発生する、所定の騒音源(ノイズ源)からの駆動音等の騒音(ノイズ)を収音するためのマイクである。ノイズ源は例えば、超音波モータ(Ultrasonic Motor、以下USM)およびステッピングモータ(Stepper Motor、以下STM)などのモータである。騒音(ノイズ)は例えば、USMおよびSTM等のモータの駆動によって発生する振動音である。例えば、モータは被写体に合焦するためのAF処理において駆動する。撮像装置100は撮像装置100の筐体内、および光学レンズ300の筐体内で発生する駆動音等の騒音(ノイズ)をノイズマイク201cによって取得し、取得したノイズの音声データを用いて、後述するノイズパラメータを生成する。なお、本実施例では、Lマイク201a、Rマイク201b、およびノイズマイク201cは無指向性のマイクである。本実施例における、Lマイク201a、Rマイク201b、およびノイズマイク201cの配置例は図4を用いて後述する。 The noise microphone 201c is an example of the second microphone. The noise microphone 201c is a microphone for collecting noise such as drive sound from a predetermined noise source (noise source) generated in the housing of the image pickup apparatus 100 and the housing of the optical lens 300. .. The noise source is, for example, a motor such as an ultrasonic motor (USM) and a stepper motor (STM). Noise (noise) is, for example, vibration noise generated by driving a motor such as USM and STM. For example, the motor is driven in an AF process for focusing on the subject. The image pickup device 100 acquires noise such as driving sound generated in the housing of the image pickup device 100 and the housing of the optical lens 300 by the noise microphone 201c, and uses the acquired noise voice data to generate noise described later. Generate parameters. In this embodiment, the L microphone 201a, the R microphone 201b, and the noise microphone 201c are omnidirectional microphones. An arrangement example of the L microphone 201a, the R microphone 201b, and the noise microphone 201c in this embodiment will be described later with reference to FIG.

Lマイク201a、Rマイク201b、およびノイズマイク201cは、それぞれ取得した音声からアナログ音声信号を生成し、A/D変換部202に入力する。ここで、Lマイク201aから入力される音声信号をLch、Rマイク201bから入力される音声信号をRch、およびノイズマイク201cから入力される音声信号をNchと記載する。 The L microphone 201a, the R microphone 201b, and the noise microphone 201c each generate an analog audio signal from the acquired voice and input it to the A / D conversion unit 202. Here, the audio signal input from the L microphone 201a is referred to as Lch, the audio signal input from the R microphone 201b is referred to as Rch, and the audio signal input from the noise microphone 201c is referred to as Nch.

A/D変換部202は、Lマイク201a、Rマイク201b、およびノイズマイク201cから入力されたアナログ音声信号をデジタル音声信号に変換する。A/D変換部202は変換されたデジタル音声信号をFFT部203に出力する。本実施例においてA/D変換部202はサンプリング周波数を48kHz、およびビット深度を16bitとして標本化処理を実行することで、アナログ音声信号をデジタル音声信号に変換する。 The A / D conversion unit 202 converts the analog audio signal input from the L microphone 201a, the R microphone 201b, and the noise microphone 201c into a digital audio signal. The A / D conversion unit 202 outputs the converted digital audio signal to the FFT unit 203. In this embodiment, the A / D conversion unit 202 converts an analog audio signal into a digital audio signal by executing sampling processing with a sampling frequency of 48 kHz and a bit depth of 16 bits.

FFT部203は、A/D変換部202から入力された時間領域のデジタル音声信号に高速フーリエ変換処理を施し、周波数領域のデジタル音声信号に変換する。本実施例において、周波数領域のデジタル音声信号は、0Hzから48kHzまでの周波数帯域において、1024ポイントの周波数スペクトルを有する。また、周波数領域のデジタル音声信号は、0Hzからナイキスト周波数である24kHzまでの周波数帯域においては、513ポイントの周波数スペクトルを有する。本実施例では、撮像装置100は、FFT部203から出力された音声データのうち、0Hzから24kHzまでの513ポイントの周波数スペクトルを利用して、ノイズ低減の処理を行う。 The FFT unit 203 performs a fast Fourier transform process on the digital audio signal in the time domain input from the A / D conversion unit 202, and converts it into a digital audio signal in the frequency domain. In this embodiment, the digital audio signal in the frequency domain has a frequency spectrum of 1024 points in the frequency band from 0 Hz to 48 kHz. Further, the digital audio signal in the frequency domain has a frequency spectrum of 513 points in the frequency band from 0 Hz to 24 kHz, which is the Nyquist frequency. In this embodiment, the image pickup apparatus 100 performs noise reduction processing by using the frequency spectrum of 513 points from 0 Hz to 24 kHz in the audio data output from the FFT unit 203.

ここで、高速フーリエ変換されたLchの周波数スペクトルを、Lch_Before[0]~Lch_Before[512]の513ポイントの配列データで表す。これらの配列データを総称する場合、Lch_Beforeと記載する。また、高速フーリエ変換されたRchの周波数スペクトルを、Rch_Before[0]~Rch_Before[512]の513ポイントの配列データで表す。これらの配列データを総称する場合、Rch_Beforeと記載する。ここで、本実施例では、Lch_Before[0]は0Hzの音声の周波数スペクトル、およびLch_Before[512]は24kHzの音声の周波数スペクトルとする。なお、Lch_Beforeおよび、Rch_Beforeはそれぞれ第1の周波数スペクトルデータの一例である。 Here, the frequency spectrum of the Lch subjected to the fast Fourier transform is represented by the array data of 513 points from Lch_Before [0] to Lch_Before [512]. When these sequence data are generically referred to, they are described as Lch_Before. Further, the frequency spectrum of the Rch subjected to the fast Fourier transform is represented by the array data of 513 points from Rch_Before [0] to Rch_Before [512]. When these sequence data are generically referred to, they are described as Rch_Before. Here, in this embodiment, Lch_Before [0] is the frequency spectrum of the voice of 0 Hz, and Lch_Before [512] is the frequency spectrum of the voice of 24 kHz. Note that Lch_Before and Rch_Before are examples of the first frequency spectrum data, respectively.

また、高速フーリエ変換されたNchの周波数スペクトルを、Nch_Before[0]~Nch_Before[512]の513ポイントの配列データで表す。これらの配列データを総称する場合、Nch_Beforeと記載する。なお、Nch_Beforeは第2の周波数スペクトルデータの一例である。 Further, the frequency spectrum of the Nch subjected to the fast Fourier transform is represented by the array data of 513 points from Nch_Before [0] to Nch_Before [512]. When these sequence data are generically referred to, they are described as Nch_Before. Note that Nch_Before is an example of the second frequency spectrum data.

ノイズデータ生成部204は、Nch_Beforeに基づいて、Lch_BeforeおよびRch_Beforeに含まれるノイズを低減するためのデータを生成する。本実施例では、ノイズデータ生成部204は、Lch_Before[0]~Lch_Before[512]に含まれるノイズをそれぞれ低減するためのNL[0]~NL[512]の配列データをノイズパラメータを用いて生成する。また、ノイズデータ生成部204は、Rch_Before[0]~Rch_Before[512]に含まれるノイズをそれぞれ低減するためのNR[0]~NR[512]の配列データを生成する。NL[0]~NL[512]の配列データにおける周波数のポイントは、Lch_Before[0]~Lch_Before[512]の配列データにおける周波数のポイントと同じである。また、NR[0]~NR[512]の配列データにおける周波数のポイントは、Rch_Before[0]~Rch_Before[512]の配列データにおける周波数のポイントと同じである。 The noise data generation unit 204 generates data for reducing noise contained in Lch_Before and Rch_Before based on Nch_Before. In this embodiment, the noise data generation unit 204 generates array data of NL [0] to NL [512] for reducing noise contained in Lch_Before [0] to Lch_Before [512] by using noise parameters. do. Further, the noise data generation unit 204 generates array data of NR [0] to NR [512] for reducing noise contained in Rch_Before [0] to Rch_Before [512], respectively. The frequency points in the sequence data of NL [0] to NL [512] are the same as the frequency points in the sequence data of Lch_Before [0] to Lch_Before [512]. Further, the frequency points in the sequence data of NR [0] to NR [512] are the same as the frequency points in the sequence data of Rch_Before [0] to Rch_Before [512].

なお、NL[0]~NL[512]の配列データを総称する場合、NLと記載する。また、NR[0]~NR[512]を総称する場合、NRと記載する。NLおよびNRはそれぞれ第3の周波数スペクトルデータの一例である。 In addition, when the sequence data of NL [0] to NL [512] is generically referred to, it is described as NL. When NR [0] to NR [512] are generically referred to, they are described as NR. NL and NR are examples of the third frequency spectrum data, respectively.

ノイズパラメータ記録部205には、ノイズデータ生成部204がNch_BeforeからをNLおよびNRを生成するためのノイズパラメータが記録されている。ノイズパラメータ記録部205はレンズごとにノイズの種類に応じた複数種類のノイズパラメータを記録している。Nch_BeforeからNLを生成するためのノイズパラメータを総称する場合、PLxと記載する。Nch_BeforeからNRを生成するためのノイズパラメータを総称する場合、PRxと記載する。 The noise parameter recording unit 205 records noise parameters for the noise data generation unit 204 to generate NL and NR from Nch_Before. The noise parameter recording unit 205 records a plurality of types of noise parameters according to the type of noise for each lens. When the noise parameters for generating NL from Nch_Before are generically referred to as PLx. When the noise parameters for generating NR from Nch_Before are generically referred to as PRx.

PLxおよびPRxはそれぞれNLおよびNRと同じ配列数を有する。例えば、PL1は、PL1[0]~PL1[512]の配列データである。また、PL1の周波数ポイントは、Lch_Beforeの周波数ポイントと同じである。また例えばPR1は、PR1[0]~PR1[512]の配列データである。PR1の周波数ポイントは、Rch_Beforeと同じ周波数ポイントである。ノイズパラメータは図5を用いて後述する。 PLx and PRx have the same number of sequences as NL and NR, respectively. For example, PL1 is array data of PL1 [0] to PL1 [512]. Further, the frequency point of PL1 is the same as the frequency point of Lch_Before. Further, for example, PR1 is sequence data of PR1 [0] to PR1 [512]. The frequency point of PR1 is the same frequency point as Rch_Before. The noise parameters will be described later with reference to FIG.

ノイズパラメータ選択部206は、ノイズパラメータ記録部205に記録されているノイズパラメータから、ノイズデータ生成部204において使用されるノイズパラメータを決定する。ノイズパラメータ選択部206は、Lch_Before、Rch_Before、Nch_Before、およびレンズ制御部102から受信したレンズ情報等のデータに基づいて、ノイズデータ生成部204において用いられるノイズパラメータを決定する。ノイズパラメータ選択部206の動作については図8を用いて詳しく後述する。 The noise parameter selection unit 206 determines the noise parameter used in the noise data generation unit 204 from the noise parameter recorded in the noise parameter recording unit 205. The noise parameter selection unit 206 determines the noise parameter used in the noise data generation unit 204 based on data such as lens information received from Lch_Before, Rch_Before, Nch_Before, and the lens control unit 102. The operation of the noise parameter selection unit 206 will be described in detail later with reference to FIG.

なお、本実施例では、ノイズパラメータ記録部205には、ノイズパラメータとして513ポイントの周波数スペクトルそれぞれに対する係数がすべて記録されている。しかし、513ポイントの全ての周波数に対する係数ではなく、少なくともノイズを低減するために必要な周波数ポイントの係数が記録されていればよい。例えば、ノイズパラメータ記録部205は、ノイズパラメータとして、典型的な可聴周波数と考えられている20Hz~20kHzの周波数スペクトルそれぞれに対する係数を記録し、他の周波数スペクトルの係数を記録しなくてもよい。また例えば、ノイズパラメータとして、係数の値がゼロである周波数スペクトルに対する係数はノイズパラメータ記録部205に記録されていなくてもよい。 In this embodiment, the noise parameter recording unit 205 records all the coefficients for each frequency spectrum of 513 points as noise parameters. However, it is sufficient that at least the coefficient of the frequency point necessary for reducing noise is recorded instead of the coefficient for all frequencies of 513 points. For example, the noise parameter recording unit 205 may record coefficients for each of the frequency spectra of 20 Hz to 20 kHz, which are considered to be typical audible frequencies, as noise parameters, and may not record coefficients of other frequency spectra. Further, for example, as a noise parameter, the coefficient for the frequency spectrum in which the value of the coefficient is zero may not be recorded in the noise parameter recording unit 205.

減算処理部207は、Lch_BeforeおよびRch_BeforeからNLおよびNRをそれぞれ減算する。例えば、減算処理部207はLch_BeforeからNLを減算するL減算器207a、およびRch_BeforeからNRを減算するR減算器207bを有する。L減算器207aはLch_BeforeからNLを減算し、Lch_After[0]~Lch_After[512]の513ポイントの配列データを出力する。R減算器207bはRch_BeforeからNRを減算し、Rch_After[0]~Rch_After[512]の513ポイントの配列データを出力する。本実施例では、減算処理部207はスペクトルサブトラクション法によって減算処理を実行する。 The subtraction processing unit 207 subtracts NL and NR from Lch_Before and Rch_Before, respectively. For example, the subtraction processing unit 207 has an L subtractor 207a that subtracts NL from Lch_Before, and an R subtractor 207b that subtracts NR from Rch_Before. The L subtractor 207a subtracts NL from Lch_Before and outputs 513 point sequence data of Lch_After [0] to Lch_After [512]. The R subtractor 207b subtracts NR from Rch_Before and outputs 513 point sequence data of Rch_After [0] to Rch_After [512]. In this embodiment, the subtraction processing unit 207 executes the subtraction processing by the spectral subtraction method.

iFFT部208は、減算処理部207から入力された周波数領域のデジタル音声信号を逆高速フーリエ変換(逆フーリエ変換)して時間領域のデジタル音声信号に変換する。 The iFFT unit 208 converts the digital audio signal in the frequency domain input from the subtraction processing unit 207 into a digital audio signal in the time domain by performing an inverse fast Fourier transform (inverse Fourier transform).

音声処理部209は、イコライザ、オートレベルコントローラ、およびステレオ感の強調処理等の時間領域のデジタル音声信号に対する音声処理を実行する。音声処理部209は、音声処理を行った音声データを揮発性メモリ105へ出力する。 The audio processing unit 209 executes audio processing for a digital audio signal in the time domain, such as an equalizer, an auto-level controller, and a stereo feeling enhancement process. The voice processing unit 209 outputs the voice-processed voice data to the volatile memory 105.

ノイズパラメータ更新部216は、ノイズパラメータ記録部205に記録されているノイズパラメータを更新する。ノイズパラメータ更新部216は、Lch_Before、Rch_Before、Nch_Before、およびレンズ制御部102から受信したレンズ情報等のデータに基づいて、ノイズパラメータを生成する。そして、ノイズパラメータ更新部216は、生成したノイズパラメータを用いて、ノイズパラメータ記録部205に記録されているノイズパラメータを更新する。ノイズパラメータ更新部216の動作については図11を用いて後述する。 The noise parameter updating unit 216 updates the noise parameter recorded in the noise parameter recording unit 205. The noise parameter updating unit 216 generates noise parameters based on data such as lens information received from Lch_Before, Rch_Before, Nch_Before, and the lens control unit 102. Then, the noise parameter updating unit 216 updates the noise parameter recorded in the noise parameter recording unit 205 by using the generated noise parameter. The operation of the noise parameter updating unit 216 will be described later with reference to FIG.

なお、本実施例では撮像装置100は第一のマイクとして2つのマイクを有するが、撮像装置100は第一のマイクを1つのマイクまたは3つ以上のマイクとしてもよい。例えば撮像装置100は、音声入力部104に第一のマイクとして1つのマイクを有する場合、1つのマイクによって取得された音声データをモノラル方式で記録する。また例えば撮像装置100は、音声入力部104に第一のマイクとして3つ以上のマイクを有する場合、3つ以上のマイクによって取得された音声データをサラウンド方式で記録する。 In this embodiment, the image pickup apparatus 100 has two microphones as the first microphone, but the image pickup apparatus 100 may use the first microphone as one microphone or three or more microphones. For example, when the image pickup apparatus 100 has one microphone as the first microphone in the voice input unit 104, the voice data acquired by one microphone is recorded in a monaural manner. Further, for example, when the image pickup apparatus 100 has three or more microphones as the first microphone in the voice input unit 104, the sound data acquired by the three or more microphones is recorded in a surround system.

なお、本実施例では、Lマイク201a、Rマイク201b、およびノイズマイク201cは無指向性のマイクとしたが、これらのマイクは指向性マイクであってもよい。 In this embodiment, the L microphone 201a, the R microphone 201b, and the noise microphone 201c are omnidirectional microphones, but these microphones may be directional microphones.

<音声入力部104のマイクの配置>
ここで、本実施例の音声入力部104のマイクの配置例を説明する。図4はLマイク201a、Rマイク201b、およびノイズマイク201cの配置例を示している。
<Arrangement of microphones in voice input unit 104>
Here, an example of arranging the microphone of the voice input unit 104 of this embodiment will be described. FIG. 4 shows an arrangement example of the L microphone 201a, the R microphone 201b, and the noise microphone 201c.

図4は、Lマイク201a、Rマイク201b、およびノイズマイク201cが取り付けられた撮像装置100の部分の断面図の一例である。この撮像装置100の部分は、外装部302、マイクブッシュ303、および固定部304により構成される。 FIG. 4 is an example of a cross-sectional view of a portion of the image pickup apparatus 100 to which the L microphone 201a, the R microphone 201b, and the noise microphone 201c are attached. The portion of the image pickup apparatus 100 is composed of an exterior portion 302, a microphone bush 303, and a fixed portion 304.

外装部302は、マイクに環境音を入力するための穴(以下、マイク穴という)を有する。本実施例では、マイク穴はLマイク201a、およびRマイク201bの上方に形成される。一方、ノイズマイク201cは、撮像装置100の筐体内および光学レンズ300の筐体内において発生する駆動音を取得するために設けられており、環境音を取得する必要はない。したがって、本実施例では、外装部302にはノイズマイク201cの上方にマイク穴は形成されない。 The exterior portion 302 has a hole (hereinafter referred to as a microphone hole) for inputting an environmental sound into the microphone. In this embodiment, the microphone hole is formed above the L microphone 201a and the R microphone 201b. On the other hand, the noise microphone 201c is provided to acquire the driving sound generated in the housing of the image pickup apparatus 100 and the housing of the optical lens 300, and it is not necessary to acquire the environmental sound. Therefore, in this embodiment, the microphone hole is not formed above the noise microphone 201c in the exterior portion 302.

撮像装置100の筐体内および光学レンズ300の筐体内において発生する駆動音は、マイク穴を介してLマイク201a、およびRマイク201bにより取得される。環境音が小さい状態で撮像装置100および光学レンズ300の筐体内において駆動音等が発生した場合、各マイクが取得する音声は、主としてこの駆動音となる。そのため、Lマイク201a、Rマイク201bからの音声レベルよりも、ノイズマイク201cからの音声レベルの方が大きい。つまり、この場合、各マイクから出力される音声信号のレベルの関係は、以下のようになる。
Lch≒Rch<Nch
The drive sound generated in the housing of the image pickup apparatus 100 and the housing of the optical lens 300 is acquired by the L microphone 201a and the R microphone 201b through the microphone holes. When a driving sound or the like is generated in the housing of the image pickup apparatus 100 and the optical lens 300 in a state where the environmental sound is small, the sound acquired by each microphone is mainly the driving sound. Therefore, the sound level from the noise microphone 201c is higher than the sound level from the L microphone 201a and the R microphone 201b. That is, in this case, the relationship between the levels of the audio signals output from each microphone is as follows.
Lch ≒ Rch <Nch

また、環境音が大きくなると、マイク201cからの、撮像装置100または光学レンズ300で発生した駆動音の音声レベルよりも、Lマイク201a、Rマイク201bからの環境音の音声レベルの方が大きくなる。そのため、この場合、各マイクから出力される音声信号のレベルの関係は、以下のようになる。
Lch≒Rch>Nch
Further, when the environmental sound becomes louder, the sound level of the environmental sound from the L microphone 201a and the R microphone 201b becomes louder than the sound level of the drive sound generated by the image pickup device 100 or the optical lens 300 from the microphone 201c. .. Therefore, in this case, the relationship between the levels of the audio signals output from each microphone is as follows.
Lch ≒ Rch> Nch

なお、本実施例では、外装部302に形成されるマイク穴の形状は楕円状であるが、円状または方形状等の他の形状でもよい。また、マイク201a上のマイク穴の形状とマイク201b上のマイク穴の形状とは、互いに異なっていてもよい。 In this embodiment, the shape of the microphone hole formed in the exterior portion 302 is elliptical, but it may be another shape such as a circular shape or a square shape. Further, the shape of the microphone hole on the microphone 201a and the shape of the microphone hole on the microphone 201b may be different from each other.

なお、本実施例では、ノイズマイク201cは、Lマイク201aとRマイク201bに近接するように配置される。また、本実施例では、ノイズマイク201cは、Lマイク201aとRマイク201bの間に配置される。これにより、撮像装置100の筐体内および光学レンズ300の筐体内において発生する駆動音等からノイズマイク201cによって生成される音声信号は、この駆動音等からLマイク201aおよびRマイク201bによって生成される音声信号と似た信号になる。 In this embodiment, the noise microphone 201c is arranged so as to be close to the L microphone 201a and the R microphone 201b. Further, in this embodiment, the noise microphone 201c is arranged between the L microphone 201a and the R microphone 201b. As a result, the audio signal generated by the noise microphone 201c from the drive sound or the like generated in the housing of the image pickup apparatus 100 and the housing of the optical lens 300 is generated by the L microphone 201a and the R microphone 201b from the drive sound or the like. It becomes a signal similar to an audio signal.

マイクブッシュ303は、Lマイク201a、Rマイク201b、およびノイズマイク201cを固定するための部材である。固定部304は、マイクブッシュ303を外装部302に固定する部材である。 The microphone bush 303 is a member for fixing the L microphone 201a, the R microphone 201b, and the noise microphone 201c. The fixing portion 304 is a member that fixes the microphone bush 303 to the exterior portion 302.

なお、本実施例では、外装部302および固定部304はPC材等のモールド部材で構成される。また、外装部302および固定部304はアルミまたはステンレス等の金属部材で構成されてもよい。また、本実施例では、マイクブッシュ303は、エチレンプロピレンジエンゴム等のゴム材で構成される。 In this embodiment, the exterior portion 302 and the fixing portion 304 are made of a mold member such as a PC material. Further, the exterior portion 302 and the fixing portion 304 may be made of a metal member such as aluminum or stainless steel. Further, in this embodiment, the Mike Busch 303 is made of a rubber material such as ethylene propylene diene rubber.

<ノイズパラメータ>
図5はノイズパラメータ記録部205に記録されているノイズパラメータの一例である。図5に示すノイズパラメータは、ある1つのレンズから発生するノイズに対するノイズパラメータである。ノイズパラメータは、撮像装置100の筐体内、および光学レンズ300の筐体内において発生した駆動音をノイズマイク201cが取得することにより生成した音声信号を補正するためのパラメータである。図5に示すように、本実施例では、ノイズパラメータ記録部205にはPLxおよびPRxが記録されている。本実施例では、駆動音の発生源は光学レンズ300の筐体内であるとして説明する。光学レンズ300の筐体内で発生した駆動音はレンズマウント301を介して撮像装置100の筐体内に伝達し、Lマイク201a、Rマイク201b、およびノイズマイク201cによって取得される。
<Noise parameter>
FIG. 5 is an example of noise parameters recorded in the noise parameter recording unit 205. The noise parameter shown in FIG. 5 is a noise parameter for noise generated from a certain lens. The noise parameter is a parameter for correcting the audio signal generated by the noise microphone 201c acquiring the driving sound generated in the housing of the image pickup apparatus 100 and the housing of the optical lens 300. As shown in FIG. 5, in this embodiment, PLx and PRx are recorded in the noise parameter recording unit 205. In this embodiment, the source of the driving sound will be described as being inside the housing of the optical lens 300. The drive sound generated in the housing of the optical lens 300 is transmitted to the housing of the image pickup apparatus 100 via the lens mount 301, and is acquired by the L microphone 201a, the R microphone 201b, and the noise microphone 201c.

駆動音の種類によって、駆動音の周波数が異なる。そのため、本実施例では、撮像装置100は、駆動音(ノイズ)の種類に対応した複数のノイズパラメータを記録する。そして、これら複数のノイズパラメータのうちの何れかを用いてノイズデータを生成する。本実施例では、撮像装置100は、恒常的なノイズとしてホワイトノイズに対するノイズパラメータを記録する。また、撮像装置100は、例えば光学レンズ300内のギアがかみ合わさることによって発生する短期的なノイズに対するノイズパラメータを記録する。また、撮像装置100は、長期的なノイズとして、例えばレンズ300の筐体内における摺動音に対するノイズパラメータを記録する。他にも、撮像装置100は光学レンズ300の種類ごと、並びに、情報取得部103によって検出される撮像装置100の筐体内の温度および撮像装置100の傾きごとにノイズパラメータを記録してもよい。 The frequency of the drive sound differs depending on the type of drive sound. Therefore, in this embodiment, the image pickup apparatus 100 records a plurality of noise parameters corresponding to the types of drive sounds (noise). Then, noise data is generated using any one of these plurality of noise parameters. In this embodiment, the image pickup apparatus 100 records a noise parameter with respect to white noise as constant noise. Further, the image pickup apparatus 100 records noise parameters for short-term noise generated by, for example, meshing of gears in the optical lens 300. Further, the image pickup apparatus 100 records noise parameters for sliding noise in the housing of the lens 300, for example, as long-term noise. In addition, the image pickup apparatus 100 may record noise parameters for each type of the optical lens 300, and for each temperature inside the housing of the image pickup apparatus 100 and the inclination of the image pickup apparatus 100 detected by the information acquisition unit 103.

<ノイズデータの生成方法>
図6および図7を用いて、ノイズデータ生成部204におけるノイズデータの生成処理を説明する。ここではLchのデータに関するノイズデータの生成処理について説明するが、Rchのデータに関するノイズデータの生成方法も同様である。
<How to generate noise data>
The noise data generation process in the noise data generation unit 204 will be described with reference to FIGS. 6 and 7. Here, the noise data generation process for the Lch data will be described, but the noise data generation method for the Rch data is also the same.

まず、環境音がないと見なせる状況において、ノイズパラメータを生成する処理について説明する。図6(a)は、環境音がないと見なせる状況において光学レンズ300の筐体内で駆動音が発生した場合におけるLch_Beforeの周波数スペクトルの一例である。図6(b)は、環境音がないと見なせる状況において光学レンズ300の筐体内で駆動音が発生した場合におけるNch_Beforeの周波数スペクトルの一例である。横軸は0ポイント目から512ポイント目までの周波数を示す軸、縦軸は周波数スペクトルの振幅を示す軸である。 First, a process of generating a noise parameter will be described in a situation where it can be considered that there is no environmental sound. FIG. 6A is an example of the frequency spectrum of Lch_Before when a driving sound is generated in the housing of the optical lens 300 in a situation where it can be considered that there is no environmental sound. FIG. 6B is an example of the frequency spectrum of Nch_Before when a driving sound is generated in the housing of the optical lens 300 in a situation where it can be considered that there is no environmental sound. The horizontal axis is the axis showing the frequency from the 0th point to the 512th point, and the vertical axis is the axis showing the amplitude of the frequency spectrum.

環境音がないと見なせる状況のため、Lch_BeforeおよびNch_Beforeでは、同じ周波数帯域の周波数スペクトルの振幅が大きくなる。また、光学レンズ300の筐体内において駆動音が発生しているため、同じ駆動音に対する各周波数スペクトルの振幅はLch_BeforeよりもNch_Beforeのほうが大きい傾向になる。 In Lch_Before and Nch_Before, the amplitude of the frequency spectrum in the same frequency band becomes large because the situation can be regarded as having no environmental sound. Further, since the driving sound is generated in the housing of the optical lens 300, the amplitude of each frequency spectrum with respect to the same driving sound tends to be larger in Nch_Before than in Lch_Before.

図6(c)は本実施例におけるPLxの一例である。本実施例では、PLxは、環境音の小さい状況において、Lch_Beforeの各周波数スペクトルの振幅をNch_Beforeの各周波数スペクトルの振幅で除算したことによって算出された各周波数スペクトルの係数である。この除算の結果を、Lch_Before/Nch_Beforeと記載する。すなわち、PLxはLch_BeforeおよびNch_Beforeの振幅の比である。ノイズパラメータ記録部205は、Lch_Before/Nch_Beforeの値をノイズパラメータPLxとして記録している。前述のように、同じ駆動音に対する周波数スペクトルの振幅はLch_BeforeよりもNch_Beforeのほうが大きい傾向にあるため、ノイズパラメータPLxの各係数の値は1よりも小さい値になる傾向になる。ただし、Nch_Before[n]の値が所定の閾値より小さい場合、ノイズパラメータ記録部205はPLx[n]=0としてノイズパラメータPLxを記録する。 FIG. 6C is an example of PLx in this embodiment. In this embodiment, PLx is a coefficient of each frequency spectrum calculated by dividing the amplitude of each frequency spectrum of Lch_Before by the amplitude of each frequency spectrum of Nch_Before in a situation where the environmental sound is small. The result of this division is described as Lch_Before / Nch_Before. That is, PLx is the ratio of the amplitudes of Lch_Before and Nch_Before. The noise parameter recording unit 205 records the value of Lch_Before / Nch_Before as the noise parameter PLx. As described above, since the amplitude of the frequency spectrum for the same drive sound tends to be larger in Nch_Before than in Lch_Before, the value of each coefficient of the noise parameter PLx tends to be smaller than 1. However, when the value of Nch_Before [n] is smaller than a predetermined threshold value, the noise parameter recording unit 205 records the noise parameter PLx with PLx [n] = 0.

次に、生成されたノイズパラメータをNch_Beforeに適用する処理について説明する。図7(a)は環境音が存在している状況において光学レンズ300の筐体内で駆動音が発生した場合におけるLch_Beforeの周波数スペクトルの一例である。図7(b)は環境音が存在している状況において光学レンズ300の筐体内で駆動音が発生した場合におけるNch_Beforeの周波数スペクトルの一例である。横軸は0ポイント目から512ポイント目までの周波数を示す軸、縦軸は周波数スペクトルの振幅を示す軸である。 Next, the process of applying the generated noise parameter to Nch_Before will be described. FIG. 7A is an example of the frequency spectrum of Lch_Before when the driving sound is generated in the housing of the optical lens 300 in the presence of the environmental sound. FIG. 7B is an example of the frequency spectrum of Nch_Before when the driving sound is generated in the housing of the optical lens 300 in the presence of the environmental sound. The horizontal axis is the axis showing the frequency from the 0th point to the 512th point, and the vertical axis is the axis showing the amplitude of the frequency spectrum.

図7(c)は環境音が存在している状況において光学レンズ300の筐体内で駆動音が発生した場合におけるNLの一例である。ノイズデータ生成部204は、Nch_Beforeの各周波数スペクトルと、PLxの各係数とを乗算し、NLを生成する。NLは、このように生成された周波数スペクトルである。 FIG. 7C is an example of NL in the case where the driving sound is generated in the housing of the optical lens 300 in the presence of the environmental sound. The noise data generation unit 204 multiplies each frequency spectrum of Nch_Before by each coefficient of PLx to generate NL. NL is the frequency spectrum thus generated.

図7(d)は環境音が存在している状況において光学レンズ300の筐体内で駆動音が発生した場合におけるLch_Afterの一例である。減算処理部207は、Lch_BeforeからNLを減算し、Lch_Afterを生成する。Lch_Afterは、このように生成された周波数スペクトルである。 FIG. 7D is an example of Lch_After when a driving sound is generated in the housing of the optical lens 300 in a situation where an environmental sound is present. The subtraction processing unit 207 subtracts NL from Lch_Before to generate Lch_After. Lch_After is a frequency spectrum thus generated.

これにより、撮像装置100は、光学レンズ300の筐体内の駆動音が原因であるノイズを低減し、ノイズの少ない環境音を記録することができる。 As a result, the image pickup apparatus 100 can reduce the noise caused by the driving sound in the housing of the optical lens 300 and record the environmental sound with less noise.

<ノイズパラメータ選択部206の説明>
図8は、ノイズパラメータ選択部206の詳細な構成の一例を示すブロック図である。
<Explanation of noise parameter selection unit 206>
FIG. 8 is a block diagram showing an example of a detailed configuration of the noise parameter selection unit 206.

ノイズパラメータ選択部206には、Lch_Before、Rch_Before、Nch_Before、レンズ情報、およびレンズ制御信号が入力される。 Lch_Before, Rch_Before, Nch_Before, lens information, and a lens control signal are input to the noise parameter selection unit 206.

Nchノイズ検出部2061は、光学レンズ300の筐体内で発生した駆動音よるノイズをNch_Beforeから検出する。なお、本実施例では、Nchノイズ検出部2061はNch_Beforeの513ポイントのデータを利用してノイズを検出する。 The Nch noise detection unit 2061 detects noise due to the drive sound generated in the housing of the optical lens 300 from Nch_Before. In this embodiment, the Nch noise detection unit 2061 detects noise by using the data of 513 points of Nch_Before.

環境音検出部2062は、環境音のレベルをLch_BeforeおよびRch_Beforeから検出する。 The environmental sound detection unit 2062 detects the level of the environmental sound from Lch_Before and Rch_Before.

ノイズ判定部2063は、レンズ情報およびレンズ制御信号、Nchノイズ検出部2061から入力されるデータ、ならびに環境音検出部から入力されるデータに基づいて、ノイズデータ生成部204が用いるノイズパラメータを決める。ノイズ判定部2063は、決定したノイズパラメータの種類を示すデータをノイズデータ生成部204およびノイズパラメータ更新部216に出力する。 The noise determination unit 2063 determines the noise parameters used by the noise data generation unit 204 based on the lens information and the lens control signal, the data input from the Nch noise detection unit 2061, and the data input from the environmental sound detection unit. The noise determination unit 2063 outputs data indicating the determined type of noise parameter to the noise data generation unit 204 and the noise parameter update unit 216.

Nch微分部2064はNch_Beforeに対して微分処理を実行する。Nch微分部2064はNch_Beforeを微分処理した結果を示すデータを短期雑音検出部2065に出力する。短期雑音検出部2065は、Nch微分部2064から入力されたデータに基づいて、短期的なノイズが発生しているか否かを検出する。短期雑音検出部2065は、短期的なノイズが発生しているか否かを示すデータをノイズ判定部2063に出力する。なお、Nch微分部2064および短期雑音検出部2065はNchノイズ検出部2061に含まれる。 The Nch differential unit 2064 executes the differential process on Nch_Before. The Nch differentiation unit 2064 outputs data indicating the result of differential processing of Nch_Before to the short-term noise detection unit 2065. The short-term noise detection unit 2065 detects whether or not short-term noise is generated based on the data input from the Nch differentiation unit 2064. The short-term noise detection unit 2065 outputs data indicating whether or not short-term noise is generated to the noise determination unit 2063. The Nch differentiation unit 2064 and the short-term noise detection unit 2065 are included in the Nch noise detection unit 2061.

Nch積分部2066は、Nch_Beforeに対して積分処理を実行する。Nch積分部2066はNch_Beforeを微分処理した結果を示すデータを長期雑音検出部2067に出力する。長期雑音検出部2067は、Nch積分部2066から入力されたデータに基づいて、長期的なノイズが発生しているか否かを検出する。長期雑音検出部2067は、長期的なノイズが発生しているか否かを示すデータをノイズ判定部2063に出力する。なお、Nch積分部2066および長期雑音検出部2067はNchノイズ検出部2061に含まれる。 The Nch integration unit 2066 executes an integration process on Nch_Before. The Nch integration unit 2066 outputs data indicating the result of differential processing of Nch_Before to the long-term noise detection unit 2067. The long-term noise detection unit 2067 detects whether or not long-term noise is generated based on the data input from the Nch integration unit 2066. The long-term noise detection unit 2067 outputs data indicating whether or not long-term noise is generated to the noise determination unit 2063. The Nch integration unit 2066 and the long-term noise detection unit 2067 are included in the Nch noise detection unit 2061.

環境音抽出部2068は、環境音を抽出する。本実施例では、環境音抽出部2068はノイズラメータに基づいて、ノイズの影響が少ない周波数のデータを抽出する。例えば、環境音抽出部2068はノイズパラメータが所定の値以下である周波数のデータを抽出する。そして、環境音抽出部2068は抽出した周波数のデータに基づいて、環境音の大きさを示すデータを出力する。なお、環境音抽出部2068は環境音検出部2062に含まれる。 The environmental sound extraction unit 2068 extracts the environmental sound. In this embodiment, the environmental sound extraction unit 2068 extracts frequency data that is less affected by noise based on the noise meter. For example, the environmental sound extraction unit 2068 extracts frequency data having a noise parameter of a predetermined value or less. Then, the environmental sound extraction unit 2068 outputs data indicating the magnitude of the environmental sound based on the extracted frequency data. The environmental sound extraction unit 2068 is included in the environmental sound detection unit 2062.

環境音判定部2069は、環境音の大きさを判定する。環境音判定部2069は、判定した環境音の大きさを示すデータをNchノイズ検出部2061およびノイズ判定部2063に入力する。Nchノイズ検出部2061は、環境音判定部2069から入力された環境音の大きさを示すデータに基づいて、後述する第一の閾値および第二の閾値を変更する。なお、環境音判定部2069は環境音検出部2062に含まれる。 The environmental sound determination unit 2069 determines the loudness of the environmental sound. The environmental sound determination unit 2069 inputs data indicating the loudness of the determined environmental sound to the Nch noise detection unit 2061 and the noise determination unit 2063. The Nch noise detection unit 2061 changes the first threshold value and the second threshold value, which will be described later, based on the data indicating the loudness of the environmental sound input from the environmental sound determination unit 2069. The environmental sound determination unit 2069 is included in the environmental sound detection unit 2062.

<ノイズ低減処理のタイミングチャート>
本実施例におけるノイズ低減処理に関して、図9を用いて説明する。
<Timing chart of noise reduction processing>
The noise reduction processing in this embodiment will be described with reference to FIG.

図9(a)~(i)はノイズデータ生成部204、ノイズパラメータ選択部206、および減算処理部207における音声処理のタイミングチャートの一例である。本実施例では説明の簡易化のため、Lchの音声処理について説明するが、Rchの音声処理も同様である。図9(a)~(i)におけるグラフの横軸はすべて時間軸である。 9 (a) to 9 (i) are examples of timing charts of voice processing in the noise data generation unit 204, the noise parameter selection unit 206, and the subtraction processing unit 207. In this embodiment, the Lch voice processing will be described for the sake of simplification of the description, but the same applies to the Rch voice processing. The horizontal axes of the graphs in FIGS. 9 (a) to 9 (i) are all time axes.

図9(a)はレンズ制御信号の一例を示す。レンズ制御信号はレンズ制御部102が光学レンズ300に駆動するよう指示する信号である。本実施例では、レンズ制御信号のレベルはHighとLowの2値で表される。レンズ制御信号のレベルがHighである場合、レンズ制御部102は光学レンズ300に駆動するよう指示している状態である。レンズ制御信号のレベルがLowである場合、レンズ制御部102は光学レンズ300に駆動を指示していない状態である。 FIG. 9A shows an example of a lens control signal. The lens control signal is a signal instructing the lens control unit 102 to drive the optical lens 300. In this embodiment, the level of the lens control signal is represented by two values, High and Low. When the level of the lens control signal is High, the lens control unit 102 is instructing the optical lens 300 to drive the lens 300. When the level of the lens control signal is Low, the lens control unit 102 is in a state in which the optical lens 300 is not instructed to drive.

図9(b)はLch_Before[n]の値の一例を示すグラフである。縦軸はLch_Before[n]の値を示す軸である。本実施例では、Lch_Before[n]はFFT部203から出力されるLch_Beforeのうち、光学レンズ300の駆動音を示す信号が特徴的に表れるn番目の周波数ポイントの信号である。なお、本実施例では、n番目の周波数ポイントの信号について説明するが、ほかの周波数に対しても同様に音声処理が実行される。また、信号Xおよび信号Yで示す信号はノイズが含まれる信号である。本実施例では信号Xは短期的なノイズが含まれる信号を示す。信号Yは長期的なノイズが含まれるノイズ信号を示す。 FIG. 9B is a graph showing an example of the value of Lch_Before [n]. The vertical axis is an axis indicating the value of Lch_Before [n]. In this embodiment, Lch_Before [n] is a signal at the nth frequency point in which the signal indicating the driving sound of the optical lens 300 is characteristically displayed among the Lch_Before output from the FFT unit 203. In this embodiment, the signal at the nth frequency point will be described, but voice processing is similarly executed for other frequencies. Further, the signals represented by the signal X and the signal Y are signals containing noise. In this embodiment, the signal X indicates a signal including short-term noise. The signal Y indicates a noise signal including long-term noise.

図9(c)は環境音抽出部2068において抽出された環境音の大きさの一例を示すグラフである。縦軸は取得された環境音から生成された音声信号のレベルを示す。閾値Th1および閾値Th2は、環境音判定部2069において用いられる2つの閾値である。 FIG. 9C is a graph showing an example of the magnitude of the environmental sound extracted by the environmental sound extraction unit 2068. The vertical axis shows the level of the audio signal generated from the acquired environmental sound. The threshold value Th1 and the threshold value Th2 are two threshold values used in the environmental sound determination unit 2069.

図9(d)はNch_Before[n]の値の一例を示すグラフである。Nch_Before[n]は、FFT部203から出力されるNch_Beforeのうち、光学レンズ300の駆動音を示す信号が特徴的に表れるn番目の周波数ポイントの信号である。縦軸は、Nch_Before[n]の値を示す軸である。Nch_Before[n]には、図9(b)における、信号Xおよび信号Yで示したノイズ信号がLch_Beforeよりも特徴的に表れる。 FIG. 9D is a graph showing an example of the value of Nch_Before [n]. Nch_Before [n] is a signal at the nth frequency point in which the signal indicating the driving sound of the optical lens 300 is characteristically displayed among the Nch_Before output from the FFT unit 203. The vertical axis is an axis indicating the value of Nch_Before [n]. In Nch_Before [n], the noise signal shown by the signal X and the signal Y in FIG. 9B appears more characteristically than in Lch_Before.

図9(e)はNdiff[n]の値の一例を示すグラフである。Ndiff[n]は、Nch微分部2064から出力されるNdiffのうち、n番目の周波数ポイントの信号の値を示したものである。縦軸は、Ndiff[n]の値を示す軸である。Nch_Before[n]の所定時間あたりの値の変化量が大きい場合、Ndiff[n]の値が大きくなる。短期雑音検出部2065は、短期的なノイズを検出するために、第一の閾値である閾値Th_Ndiff[n]を持つ。閾値Th_Ndiff[n]は、環境音判定部2069から入力された環境音の大きさを示すデータおよびレンズ制御信号に基づいて、レベル1~3の間で変化する。閾値Th_Ndiff[n]の初期値はレベル2とする。また閾値Th_Ndiff[n]のレベルは横の破線で表される。 FIG. 9 (e) is a graph showing an example of the value of Ndiff [n]. Ndiff [n] indicates the value of the signal at the nth frequency point in the Ndiff output from the Nch differential unit 2064. The vertical axis is an axis indicating the value of Ndiff [n]. When the amount of change in the value of Nch_Before [n] per predetermined time is large, the value of Ndiff [n] becomes large. The short-term noise detection unit 2065 has a threshold value Th_Ndiff [n], which is a first threshold value, in order to detect short-term noise. The threshold value Th_Ndiff [n] changes between levels 1 to 3 based on the data indicating the magnitude of the environmental sound input from the environmental sound determination unit 2069 and the lens control signal. The initial value of the threshold value Th_Ndiff [n] is level 2. The level of the threshold value Th_Ndiff [n] is represented by a horizontal broken line.

図9(f)はNint[n]の値の一例を示すグラフである。本実施例では、Nint[n]は、Nch積分部2066から出力されるNintのうち、n番目の周波数ポイントの信号の値を示したものである。縦軸は、Nint[n]の値を示す軸である。Nch_Before[n]が継続的に大きい場合、Nint[n]の値が大きくなる。長期雑音検出部2067は、長期的なノイズを検出するために、第二の閾値である閾値Th_Nint[n]を持つ。閾値Th_Nint[n]は、環境音判定部2069から入力された環境音の大きさを示すデータおよびレンズ制御信号に基づいてレベル1~3の間で変化する。閾値Th_Nint[n]の初期値はレベル2とする。また閾値Th_Nint[n]のレベルは横の破線で表される。 FIG. 9 (f) is a graph showing an example of the value of Nint [n]. In this embodiment, Nint [n] indicates the value of the signal at the nth frequency point of the Nint output from the Nch integrating unit 2066. The vertical axis is an axis indicating the value of Nint [n]. When Nch_Before [n] is continuously large, the value of Nint [n] becomes large. The long-term noise detection unit 2067 has a threshold value Th_Nint [n], which is a second threshold value, in order to detect long-term noise. The threshold value Th_Nint [n] changes between levels 1 to 3 based on the data indicating the loudness of the environmental sound input from the environmental sound determination unit 2069 and the lens control signal. The initial value of the threshold value Th_Nint [n] is level 2. The level of the threshold value Th_Nint [n] is represented by a horizontal broken line.

図9(g)はノイズパラメータ選択部206によって選択されたノイズパラメータの一例を表す。本実施例では、無地部はPL1のノイズパラメータのみが選択されていることを示す。斜線部はPL1およびPL2のノイズパラメータが選択されていることを示す。格子縞部はPL1およびPL3のノイズパラメータが選択されていることを示す。 FIG. 9 (g) shows an example of the noise parameter selected by the noise parameter selection unit 206. In this embodiment, the plain portion indicates that only the noise parameter of PL1 is selected. The shaded area indicates that the noise parameters of PL1 and PL2 are selected. The plaid portion indicates that the noise parameters of PL1 and PL3 are selected.

図9(h)はNL[n]の値の一例を示すグラフである。本実施例では、NL[n]は、ノイズデータ生成部204で生成されるNLのうち、n番目の周波数ポイントの信号の値を示したものである。縦軸は、NL[n]の値を示す軸である。 FIG. 9 (h) is a graph showing an example of the value of NL [n]. In this embodiment, NL [n] indicates the value of the signal at the nth frequency point among the NLs generated by the noise data generation unit 204. The vertical axis is an axis indicating the value of NL [n].

図9(i)はLch_After[n]の値の一例を示すグラフである。本実施例では、Lch_After[n]は、減算処理部207から出力されるLch_Afterのうち、n番目の周波数ポイントの信号の値を示したものである。縦軸は、Lch_After[n]の値を示す軸である。 FIG. 9 (i) is a graph showing an example of the value of Lch_After [n]. In this embodiment, Lch_After [n] indicates the value of the signal at the nth frequency point of the Lch_After output from the subtraction processing unit 207. The vertical axis is an axis indicating the value of Lch_After [n].

次にそれぞれの動作に関してタイミングを時刻t701~t709を用いて説明する。 Next, the timing of each operation will be described using the times t701 to t709.

時刻t701において、レンズ制御部102は光学レンズ300およびノイズパラメータ選択部206に、レンズ制御信号としてHighの信号を出力する(図9(a))。時刻t701において、光学レンズ300の筐体内で駆動音が発生する可能性が高いため、短期雑音検出部2065は閾値Th_Ndiff[n]をレベル1に下げる(図9(e))。また時刻t701において、光学レンズ300の筐体内で駆動音が発生する可能性が高いため、長期雑音検出部2067は閾値Th_Nint[n]をレベル1に下げる(図9(f))。 At time t701, the lens control unit 102 outputs a High signal as a lens control signal to the optical lens 300 and the noise parameter selection unit 206 (FIG. 9A). Since there is a high possibility that a driving sound is generated in the housing of the optical lens 300 at time t701, the short-term noise detection unit 2065 lowers the threshold value Th_Ndiff [n] to level 1 (FIG. 9 (e)). Further, at time t701, since there is a high possibility that a driving sound is generated in the housing of the optical lens 300, the long-term noise detection unit 2067 lowers the threshold value Th_Nint [n] to level 1 (FIG. 9 (f)).

時刻t702において、光学レンズ300が駆動し、ギアのかみ合う音などの短期的な駆動音が発生する。ノイズマイク201cがその短期的な駆動音を収音したことにより、Ndiff[n]の値が閾値Th_Ndiff[n]を超える(図9(e))。これに応じて、ノイズパラメータ選択部206はノイズパラメータPL1およびPL2を選択する(図9(g))。ノイズデータ生成部204はNch_Before[n]、およびノイズパラメータPL1およびPL2に基づいてNL[n]を生成する(図9(h))。減算処理部207は、Lch_Before[n]からNL[n]を減算し、Lch_After[n]を出力する(図9(i))。この場合、Lch_After[n]は恒常的なノイズおよび短期的なノイズが低減された音声信号になる。 At time t702, the optical lens 300 is driven, and a short-term driving sound such as a gear meshing sound is generated. The value of Ndiff [n] exceeds the threshold value Th_Ndiff [n] due to the noise microphone 201c picking up the short-term drive sound (FIG. 9 (e)). In response to this, the noise parameter selection unit 206 selects the noise parameters PL1 and PL2 (FIG. 9 (g)). The noise data generation unit 204 generates NL [n] based on Nch_Before [n] and the noise parameters PL1 and PL2 (FIG. 9 (h)). The subtraction processing unit 207 subtracts NL [n] from Lch_Before [n] and outputs Lch_After [n] (FIG. 9 (i)). In this case, Lch_After [n] becomes an audio signal in which constant noise and short-term noise are reduced.

時刻t703において、光学レンズ300が連続的な駆動を開始し、光学レンズ300の筐体内において摺動音などの長期的な駆動音が発生する。ノイズマイク201cがその長期的な駆動音を収音したことにより、Nint[n]の値が閾値Th_Nint[n]を超える(図9(f))。これに応じて、ノイズパラメータ選択部206はノイズパラメータPL1およびPL3を選択する(図9(g))。ノイズデータ生成部204はNch_Before[n]、および、ノイズパラメータPL1およびPL3に基づいてNL[n]を生成する(図9(h))。減算処理部207は、Lch_Before[n]からNL[n]を減算し、Lch_After[n]を出力する(図9(i))。この場合、Lch_After[n]は恒常的なノイズおよび長期的なノイズが低減された音声信号になる。 At time t703, the optical lens 300 starts continuous driving, and a long-term driving sound such as a sliding sound is generated in the housing of the optical lens 300. The value of Nint [n] exceeds the threshold value Th_Nint [n] due to the noise microphone 201c picking up the long-term driving sound (FIG. 9 (f)). In response to this, the noise parameter selection unit 206 selects the noise parameters PL1 and PL3 (FIG. 9 (g)). The noise data generation unit 204 generates NL [n] based on Nch_Before [n] and the noise parameters PL1 and PL3 (FIG. 9 (h)). The subtraction processing unit 207 subtracts NL [n] from Lch_Before [n] and outputs Lch_After [n] (FIG. 9 (i)). In this case, Lch_After [n] becomes an audio signal in which constant noise and long-term noise are reduced.

時刻t704において、光学レンズ300が連続的な駆動を停止する。ノイズマイク201cがその長期的な駆動音を収音しなくなるため、Nint[n]の値が閾値Th_Nint[n]以下になる(図9(f))。これに応じて、ノイズパラメータ選択部206はノイズパラメータPL1を選択する(図9(g))。ノイズデータ生成部204は、Nch_Before[n]、および、ノイズパラメータPL1に基づいてNL[n]を生成する(図9(h))。減算処理部207は、Lch_Before[n]からNL[n]を減算し、Lch_After[n]を出力する(図9(i))。この場合、Lch_After[n]は恒常的なノイズが低減された音声信号になる。 At time t704, the optical lens 300 stops continuous driving. Since the noise microphone 201c does not collect the long-term driving sound, the value of Nint [n] becomes equal to or less than the threshold value Th_Nint [n] (FIG. 9 (f)). In response to this, the noise parameter selection unit 206 selects the noise parameter PL1 (FIG. 9 (g)). The noise data generation unit 204 generates NL [n] based on Nch_Before [n] and the noise parameter PL1 (FIG. 9 (h)). The subtraction processing unit 207 subtracts NL [n] from Lch_Before [n] and outputs Lch_After [n] (FIG. 9 (i)). In this case, Lch_After [n] becomes an audio signal with constant noise reduced.

時刻t705においてレンズ制御部102は、光学レンズ300およびノイズパラメータ選択部206にレンズ制御信号としてLowの信号を出力する(図9(a))。この場合、光学レンズ300の筐体内において駆動音が発生する可能性が低くなるため、短期雑音検出部2065は閾値Th_Ndiff[n]をレベル2に上げる(図9(e))。また、この場合、光学レンズ300の筐体内において駆動音が発生する可能性が低くなるため、長期雑音検出部2067は閾値Th_Nint[n]をレベル2に上げる(図9(f))。 At time t705, the lens control unit 102 outputs a Low signal as a lens control signal to the optical lens 300 and the noise parameter selection unit 206 (FIG. 9A). In this case, since the possibility that a driving sound is generated in the housing of the optical lens 300 is low, the short-term noise detection unit 2065 raises the threshold value Th_Ndiff [n] to level 2 (FIG. 9 (e)). Further, in this case, since the possibility that the driving sound is generated in the housing of the optical lens 300 is low, the long-term noise detection unit 2067 raises the threshold value Th_Nint [n] to level 2 (FIG. 9 (f)).

時刻t706において、環境音抽出部2068において抽出された環境音の大きさが閾値Th1を超える。環境音が大きい場合、ユーザには音声信号に含まれるノイズが感じられにくくなるため、短期雑音検出部2065は閾値Th_Ndiff[n]をレベル3に上げる(図9(e))。また、環境音が大きい場合、ユーザには音声信号に含まれるノイズが感じられにくくなるため、長期雑音検出部2067は閾値Th_Nint[n]をレベル3に上げる(図9(f))。 At time t706, the loudness of the environmental sound extracted by the environmental sound extraction unit 2068 exceeds the threshold value Th1. When the ambient sound is loud, the noise contained in the audio signal is less likely to be perceived by the user, so the short-term noise detection unit 2065 raises the threshold value Th_Ndiff [n] to level 3 (FIG. 9 (e)). Further, when the environmental sound is loud, the noise contained in the audio signal is less likely to be perceived by the user, so that the long-term noise detection unit 2067 raises the threshold value Th_Nint [n] to level 3 (FIG. 9 (f)).

時刻t707において、レンズ制御部102は光学レンズ300およびノイズパラメータ選択部206に、レンズ制御信号としてHighの信号を出力する(図9(a))。この場合、光学レンズ300の筐体内において駆動音が発生する可能性が高いため、短期雑音検出部2065は閾値Th_Ndiff[n]をレベル2に下げる(図9(e))。また、この場合、光学レンズ300の筐体内において駆動音が発生する可能性が高いため、長期雑音検出部2067は閾値Th_Nint[n]をレベル2に下げる(図9(f))。 At time t707, the lens control unit 102 outputs a High signal as a lens control signal to the optical lens 300 and the noise parameter selection unit 206 (FIG. 9A). In this case, since there is a high possibility that a driving sound is generated in the housing of the optical lens 300, the short-term noise detection unit 2065 lowers the threshold value Th_Ndiff [n] to level 2 (FIG. 9 (e)). Further, in this case, since there is a high possibility that a driving sound is generated in the housing of the optical lens 300, the long-term noise detection unit 2067 lowers the threshold value Th_Nint [n] to level 2 (FIG. 9 (f)).

時刻t708において、環境音抽出部2068において抽出された環境音の大きさが閾値Th2を超える。環境音がさらに大きい場合、ユーザには音声信号に含まれるノイズはほとんど感じられないため、ノイズパラメータ選択部206はNchノイズ検出部2061から入力されるデータにかかわらずノイズパラメータPL1のみを選択する。 At time t708, the loudness of the environmental sound extracted by the environmental sound extraction unit 2068 exceeds the threshold value Th2. When the ambient sound is louder, the user hardly feels the noise contained in the voice signal. Therefore, the noise parameter selection unit 206 selects only the noise parameter PL1 regardless of the data input from the Nch noise detection unit 2061.

以上のように、撮像装置100は第2のマイクであるノイズマイク201cを利用してノイズ低減処理を実行することで、ノイズが低減された環境音を記録することができる。 As described above, the image pickup apparatus 100 can record the environmental sound with reduced noise by executing the noise reduction processing using the noise microphone 201c which is the second microphone.

なお、本実施例では、撮像装置100は、光学レンズ300の筐体内で発生する駆動音を低減したが、撮像装置100内で発生する駆動音を低減してもよい。撮像装置100内で発生する駆動音は例えば、基板の音鳴き、および無線電波ノイズである。なお、基板の音鳴きは、例えば基板上のコンデンサに電圧を印加した際に生じる基板のきしみによって発生する音である。 In this embodiment, the image pickup device 100 reduces the drive sound generated in the housing of the optical lens 300, but the drive sound generated in the image pickup device 100 may be reduced. The driving sound generated in the image pickup apparatus 100 is, for example, the noise of the substrate and the radio wave noise. The squeal of the substrate is, for example, a sound generated by a squeak of the substrate generated when a voltage is applied to a capacitor on the substrate.

なお、環境音判定部2069の閾値Th1および閾値Th2、短期雑音検出部2065の閾値Th_Ndiff[n]、並びに、長期雑音検出部2067の閾値Th_Nint[n]は発生する駆動音と環境音とに基づいて決定される。そのため、撮像装置100は、光学レンズ300の種類および撮像装置100の傾き等によって、これらの閾値をそれぞれ変更してもよい。 The threshold values Th1 and Th2 of the environmental sound determination unit 2069, the threshold value Th_Ndiff [n] of the short-term noise detection unit 2065, and the threshold value Th_Nint [n] of the long-term noise detection unit 2067 are based on the generated driving sound and the environmental sound. Will be decided. Therefore, the image pickup apparatus 100 may change these threshold values depending on the type of the optical lens 300, the inclination of the image pickup apparatus 100, and the like.

<レンズごとのノイズパラメータ>
まず、ユーザが光学レンズ300を交換した場合において、それぞれのレンズに対して同じノイズパラメータを適用した場合ついて図7および図10を用いて説明する。図7と図10とでは、撮像装置100には互いに異なるレンズが装着されているものとする。なお、図7および図10では同じ環境音が発生している状況とする。
<Noise parameter for each lens>
First, when the user replaces the optical lens 300, the case where the same noise parameter is applied to each lens will be described with reference to FIGS. 7 and 10. In FIGS. 7 and 10, it is assumed that the image pickup apparatus 100 is equipped with different lenses. In addition, it is assumed that the same environmental sound is generated in FIGS. 7 and 10.

図7(a)および図10(a)では、Lch_Beforeの各周波数スペクトルの振幅が示されている。図7(b)および図10(b)では、Nch_Beforeの各周波数スペクトルの振幅が示されている。ここで、それぞれの周波数スペクトルを比較すると、少なくとも一部において互いに異なることが読み取れる。これは、Lマイク201a、Rマイク201b、およびノイズマイク201cのそれぞれに取得されるノイズが、レンズの形状および構造、並びに、レンズに含まれる駆動体等のノイズ源の数および位置によって異なるためである。 7 (a) and 10 (a) show the amplitude of each frequency spectrum of Lch_Before. 7 (b) and 10 (b) show the amplitude of each frequency spectrum of Nch_Before. Here, when comparing the respective frequency spectra, it can be read that they are different from each other in at least a part. This is because the noise acquired by each of the L microphone 201a, the R microphone 201b, and the noise microphone 201c differs depending on the shape and structure of the lens and the number and position of noise sources such as the drive body included in the lens. be.

図7(c)および図10(c)では、NLの各周波数スペクトルの振幅が示されている。ここでは、撮像装置100に装着されているレンズに関わりなく、同じノイズパラメータが利用されてNLが生成される。 7 (c) and 10 (c) show the amplitude of each frequency spectrum of NL. Here, the same noise parameter is used to generate the NL regardless of the lens mounted on the image pickup apparatus 100.

図7(d)および図10(d)では、Lch_Afterの各周波数スペクトルの振幅が示されている。Lch_Afterは環境音として記録される音声信号であるから、理想的には図7(d)および図10(d)に示される周波数スペクトルは同じになる。しかし、図7(d)および図10(d)のそれぞれの周波数スペクトルを比較すると、少なくとも一部において互いに異なることが読み取れる。これは、Lch_Beforeから減算されるNLの周波数スペクトルがそれぞれのレンズで発生したノイズの周波数スペクトルと異なるからである。NLの周波数スペクトルがノイズの周波数スペクトルと異なる理由は、ノイズパラメータがレンズから発生するノイズに合わせて作られたパラメータではなく、ある種類のノイズに対する汎用的なパラメータであるためである。すなわち、種々のレンズから発生するノイズに対して同じノイズパラメータを適用した場合、記録媒体110に環境音として記録される音声データは、撮像装置100に装着されるレンズごとに異なる音声データとなってしまう。 7 (d) and 10 (d) show the amplitude of each frequency spectrum of Lch_After. Since Lch_After is an audio signal recorded as an environmental sound, ideally, the frequency spectra shown in FIGS. 7 (d) and 10 (d) are the same. However, when the frequency spectra of FIGS. 7 (d) and 10 (d) are compared, it can be read that they are different from each other in at least a part. This is because the frequency spectrum of NL subtracted from Lch_Before is different from the frequency spectrum of the noise generated in each lens. The reason why the frequency spectrum of NL is different from the frequency spectrum of noise is that the noise parameter is not a parameter created for the noise generated from the lens, but a general-purpose parameter for a certain kind of noise. That is, when the same noise parameter is applied to the noise generated from various lenses, the audio data recorded as the environmental sound on the recording medium 110 becomes different audio data for each lens mounted on the image pickup apparatus 100. It ends up.

そこで本実施例では、撮像装置100は、レンズが交換されたことに応じてノイズパラメータを更新することで、ノイズを効果的に低減し、環境音をより正確に記録する。 Therefore, in the present embodiment, the image pickup apparatus 100 effectively reduces the noise and records the environmental sound more accurately by updating the noise parameter according to the replacement of the lens.

<ノイズパラメータの更新>
ここで、ノイズパラメータ更新部216がノイズパラメータを更新する処理について説明する。本実施例では、撮像装置100がPLxのノイズパラメータを更新する処理について説明する。なお、PRxのノイズパラメータの更新処理は、PLxのノイズパラメータを更新する処理と同様である。
<Update of noise parameters>
Here, a process of updating the noise parameter by the noise parameter updating unit 216 will be described. In this embodiment, the process of updating the noise parameter of PLx by the image pickup apparatus 100 will be described. The process of updating the noise parameter of PRx is the same as the process of updating the noise parameter of PLx.

図11は、ノイズパラメータ更新部216のブロック図の一例である。 FIG. 11 is an example of a block diagram of the noise parameter update unit 216.

ノイズパラメータ演算部2161は、入力されたLch_BeforeおよびNch_BeforeからPLxを生成する。 The noise parameter calculation unit 2161 generates PLx from the input Lch_Before and Nch_Before.

比較器2162は、ノイズパラメータ演算部2161において生成されたPLxと、ノイズパラメータ記録部205に記録されているPLxと、を比較する。ここで、比較器2162は、ノイズパラメータ選択部206から入力されたノイズパラメータの種類を示すデータに基づいて、ノイズパラメータ記録部205に記録されているPLxを読み込む。例えば、ノイズパラメータの種類が長期的なノイズである場合、比較器2162は、長期的なノイズに対するノイズパラメータをノイズパラメータ記録部205から読み込む。比較器2162は、ノイズパラメータ演算部2161により生成されたPLxの各周波数スペクトル係数のうち,ノイズパラメータ記録部205に記録されているPLxの各周波数スペクトルの係数よりも値が小さい係数を上書き記録する。このように更新する理由は次の通りである。 The comparator 2162 compares the PLx generated in the noise parameter calculation unit 2161 with the PLx recorded in the noise parameter recording unit 205. Here, the comparator 2162 reads the PLx recorded in the noise parameter recording unit 205 based on the data indicating the type of the noise parameter input from the noise parameter selection unit 206. For example, when the type of the noise parameter is long-term noise, the comparator 2162 reads the noise parameter for the long-term noise from the noise parameter recording unit 205. The comparator 2162 overwrites and records a coefficient having a smaller value than the coefficient of each frequency spectrum of PLx recorded in the noise parameter recording unit 205 among the frequency spectrum coefficients of PLx generated by the noise parameter calculation unit 2161. .. The reason for updating in this way is as follows.

例えば、ある1つの周波数における、Lマイク201aに収音される環境音の周波数スペクトルの振幅をS、レンズからのノイズ音の周波数スペクトルの振幅をNflとする。また、その周波数において、ノイズマイク201cに収音される、レンズからのノイズ音の周波数スペクトルの振幅をNfnとする。なお、本実施例では、ノイズマイク201cに収音される環境音の振幅はNfnと比べて十分小さいものとする。この場合PLxは次の式で表せる。
PLx=(S+Nfl)/Nfn
For example, let S be the amplitude of the frequency spectrum of the environmental sound picked up by the L microphone 201a at a certain frequency, and let Nfl be the amplitude of the frequency spectrum of the noise sound from the lens. Further, at that frequency, the amplitude of the frequency spectrum of the noise sound from the lens collected by the noise microphone 201c is defined as Nfn. In this embodiment, the amplitude of the environmental sound picked up by the noise microphone 201c is assumed to be sufficiently smaller than that of Nfn. In this case, PLx can be expressed by the following equation.
PLx = (S + Nfl) / Nfn

ノイズを効果的に軽減するためには、ノイズパラメータはSが0に近い場合におけるPLx(≒Nfl/Nfn)が望ましい。すなわち、望ましいノイズパラメータPLxの値は小さい値になる。また、Sが0に近い場合とは、環境音が小さい場合である。そのため本実施例では、比較器2162は、ノイズパラメータ演算部2161において生成されたPLxの値のうち、ノイズパラメータ記録部205に記録されているPLxよりも値が小さい周波数スペクトルの係数を、新しいノイズパラメータとして記録する。この場合、ノイズパラメータ演算部2161においてPLxが生成されたときの環境音の振幅は、ノイズパラメータ記録部205に記録されているPLxが生成されたときの環境音の振幅よりも小さい。 In order to effectively reduce noise, it is desirable that the noise parameter is PLx (≈Nfl / Nfn) when S is close to 0. That is, the value of the desirable noise parameter PLx is small. Further, the case where S is close to 0 is the case where the environmental sound is small. Therefore, in this embodiment, the comparator 2162 sets the coefficient of the frequency spectrum, which is smaller than the PLx value recorded in the noise parameter recording unit 205, among the PLx values generated by the noise parameter calculation unit 2161, into new noise. Record as a parameter. In this case, the amplitude of the environmental sound when the PLx is generated in the noise parameter calculation unit 2161 is smaller than the amplitude of the environmental sound when the PLx recorded in the noise parameter recording unit 205 is generated.

なお、比較器2162は、ノイズパラメータに記録されている周波数スペクトルごとに、PLxを比較する。また、比較器2162は、ノイズパラメータ演算部2161において生成されたPLxの値のうち、ノイズパラメータ記録部205に記録されているPLxの値以上の周波数スペクトルの係数は、更新しない。 The comparator 2162 compares PLx for each frequency spectrum recorded in the noise parameter. Further, the comparator 2162 does not update the coefficient of the frequency spectrum having the PLx value or more recorded in the noise parameter recording unit 205 among the PLx values generated by the noise parameter calculation unit 2161.

カウンター2163は、比較器2162において、ノイズパラメータが比較された回数をカウントする。本実施例では、ノイズパラメータが比較された回数の初期値は0である。カウンター2163は、レンズが交換された場合、ノイズパラメータが比較された回数をリセットする。本実施例では、カウンター2163は、レンズ制御部102からレンズ情報を受信したことに応じて、ノイズパラメータが比較された回数をリセットする。 The counter 2163 counts the number of times the noise parameters have been compared in the comparator 2162. In this embodiment, the initial value of the number of times the noise parameters are compared is 0. The counter 2163 resets the number of times the noise parameters were compared when the lens was replaced. In this embodiment, the counter 2163 resets the number of times the noise parameters are compared in response to receiving the lens information from the lens control unit 102.

これから、図12のタイミングチャートを用いて、ノイズパラメータ更新部216によるノイズパラメータの更新処理について説明する。本タイミングチャートでは、ユーザが撮像装置100の電源をオンにしたタイミングを時刻t0とする。なお、本実施例ではある1つの周波数スペクトルに対するノイズパラメータPLxについて説明する。本実施例では、このノイズパラメータPLxの初期値を1.4とする。 From now on, the noise parameter update process by the noise parameter update unit 216 will be described with reference to the timing chart of FIG. In this timing chart, the timing at which the user turns on the power of the image pickup apparatus 100 is set to time t0. In this embodiment, the noise parameter PLx for one frequency spectrum will be described. In this embodiment, the initial value of this noise parameter PLx is 1.4.

本実施例では、時刻t0の後、撮像装置100は、ライブビュー動作を開始し、被写体に対してAF処理を行う。このAF処理に伴って、光学レンズ300のモータの駆動等によって発生したノイズが検出された場合、ノイズパラメータの更新処理が行われる。なお、ノイズパラメータの更新処理中において、ノイズパラメータ選択部206はノイズの種類の判別処理を行う。 In this embodiment, after the time t0, the image pickup apparatus 100 starts the live view operation and performs AF processing on the subject. When noise generated by driving the motor of the optical lens 300 or the like is detected along with this AF processing, the noise parameter is updated. During the noise parameter update process, the noise parameter selection unit 206 performs noise type discrimination process.

時刻t1において、ノイズパラメータ演算部2161は、レンズの駆動が開始したことに応じてノイズパラメータPLxを計算する。例えば、被写体に合焦させるための操作を撮像装置100が受け付けたことに応じて、このレンズの駆動が行われる。ここで、例えば、時刻t1から時刻t2までレンズが駆動した場合、レンズ制御信号がその間Highになる。ノイズパラメータ演算部2161は、レンズ制御信号がHighである間、ノイズパラメータ選択部206からのノイズパラメータの種類を示すデータに基づいて、PLxを計算する。また、ノイズパラメータ演算部2161は、時刻t2でレンズ制御信号がLowになったことに応じて、PLxの計算を終了する。ここでは、ノイズパラメータ演算部2161によって生成されたPLxの値は1.3とする。なお、例えば、時刻t1から時刻t2までの間に、光学レンズ300において複数の種類のノイズが発生した場合ノイズパラメータ演算部2161は、それぞれのノイズに対してPLxを生成する。ノイズパラメータ演算部2161は、ノイズパラメータの種類を示すデータ、および生成されたPLxを比較器2162に出力する。 At time t1, the noise parameter calculation unit 2161 calculates the noise parameter PLx according to the start of driving the lens. For example, the lens is driven in response to the acceptance of the operation for focusing on the subject by the image pickup apparatus 100. Here, for example, when the lens is driven from the time t1 to the time t2, the lens control signal becomes High during that time. The noise parameter calculation unit 2161 calculates PLx based on the data indicating the type of noise parameter from the noise parameter selection unit 206 while the lens control signal is High. Further, the noise parameter calculation unit 2161 ends the calculation of PLx according to the fact that the lens control signal becomes Low at time t2. Here, the value of PLx generated by the noise parameter calculation unit 2161 is 1.3. For example, when a plurality of types of noise are generated in the optical lens 300 between the time t1 and the time t2, the noise parameter calculation unit 2161 generates PLx for each noise. The noise parameter calculation unit 2161 outputs data indicating the type of noise parameter and the generated PLx to the comparator 2162.

時刻t2において、比較器2162は、ノイズパラメータ演算部2161によって生成されたPLxと、ノイズパラメータ記録部205に記録されているPLxとを比較し、より小さい値をノイズパラメータPLxの値として決定する。時刻t2では、ノイズパラメータ演算部2161によって新たに生成されたPLx(=1.3)のほうが、ノイズパラメータ記録部205に記録されているPLxよりも小さい。そのため、比較器2162はノイズパラメータPLxの値として、1.3をノイズパラメータ記録部205に記録することで、PLxを更新する。 At time t2, the comparator 2162 compares the PLx generated by the noise parameter calculation unit 2161 with the PLx recorded in the noise parameter recording unit 205, and determines a smaller value as the value of the noise parameter PLx. At time t2, the PLx (= 1.3) newly generated by the noise parameter calculation unit 2161 is smaller than the PLx recorded in the noise parameter recording unit 205. Therefore, the comparator 2162 updates the PLx by recording 1.3 as the value of the noise parameter PLx in the noise parameter recording unit 205.

なお、比較器2162は、ノイズパラメータ演算部2161から出力された、ノイズパラメータの種類を示すデータおよびPLxに基づいて、更新対象となるノイズパラメータの種類を決定する。例えば、短期的なノイズに対するPLxがノイズパラメータ演算部2161から出力された場合、比較器2162は、ノイズパラメータ演算部2161から出力されたPLxとノイズパラメータ記録部205に記録されているPL2とを比較する。 The comparator 2162 determines the type of noise parameter to be updated based on the data indicating the type of noise parameter and PLx output from the noise parameter calculation unit 2161. For example, when PLx for short-term noise is output from the noise parameter calculation unit 2161, the comparator 2162 compares the PLx output from the noise parameter calculation unit 2161 with the PL2 recorded in the noise parameter recording unit 205. do.

なお、ノイズパラメータ演算部2161から同じ種類のノイズに対して複数のPLxが出力された場合、比較器2162は、その複数のPLxのうち、周波数スペクトルごとに最も値が低い係数を組み合わせて生成されたノイズパラメータを用いる。これは、より値が低い係数のほうが、生成されたときの環境音の振幅が小さいと考えられるからである。この場合、比較器2162は、組み合わせて生成されたノイズパラメータと、ノイズパラメータ記録部205に記録されているPLxと比較する。 When a plurality of PLxs are output for the same type of noise from the noise parameter calculation unit 2161, the comparator 2162 is generated by combining the coefficients having the lowest values for each frequency spectrum among the plurality of PLxs. Use the noise parameters. This is because it is considered that the coefficient with a lower value has a smaller amplitude of the environmental sound when it is generated. In this case, the comparator 2162 compares the noise parameter generated in combination with the PLx recorded in the noise parameter recording unit 205.

同様に、時刻t3から時刻t4までレンズが駆動した場合において、時刻t4においてノイズパラメータ演算部2161によって算出されたPLxは1.1とする。時刻t4において、比較器2162は、ノイズパラメータ演算部2161によって算出されたPLxと、ノイズパラメータ記録部205に記録されているPLxとを比較し、より小さい値をノイズパラメータPLxとして決定する。時刻t4では、ノイズパラメータ演算部2161によって算出されたPLx(=1.1)のほうが小さいため、比較器2162はノイズパラメータPLxの値として、1.1をノイズパラメータ記録部205に記録することで、PLxを更新する。 Similarly, when the lens is driven from time t3 to time t4, PLx calculated by the noise parameter calculation unit 2161 at time t4 is 1.1. At time t4, the comparator 2162 compares the PLx calculated by the noise parameter calculation unit 2161 with the PLx recorded in the noise parameter recording unit 205, and determines a smaller value as the noise parameter PLx. At time t4, the PLx (= 1.1) calculated by the noise parameter calculation unit 2161 is smaller, so the comparator 2162 records 1.1 as the value of the noise parameter PLx in the noise parameter recording unit 205. , PLx is updated.

他方、時刻t5から時刻t6までレンズが駆動した場合において、時刻t6においてノイズパラメータ演算部2161によって算出されたPLxは1.6とする。時刻t6において、比較器2162は、ノイズパラメータ演算部2161によって算出されたPLxと、ノイズパラメータ記録部205に記録されているPLxとを比較し、より小さい値をノイズパラメータPLxとして決定する。時刻t6では、ノイズパラメータ記録部205に記録されているPLx(=1.1)のほうが小さいため、比較器2162はPLxを更新しない。 On the other hand, when the lens is driven from time t5 to time t6, PLx calculated by the noise parameter calculation unit 2161 at time t6 is 1.6. At time t6, the comparator 2162 compares the PLx calculated by the noise parameter calculation unit 2161 with the PLx recorded in the noise parameter recording unit 205, and determines a smaller value as the noise parameter PLx. At time t6, since the PLx (= 1.1) recorded in the noise parameter recording unit 205 is smaller, the comparator 2162 does not update the PLx.

以降、同様に光学レンズ300が駆動したことに応じて、ノイズパラメータ更新部216はノイズパラメータPLxの更新処理を実行する。 After that, the noise parameter updating unit 216 executes the noise parameter PLx updating process in response to the driving of the optical lens 300 in the same manner.

なお、他にも、ユーザが、動画撮影を開始する前に、撮像装置100に対して、ノイズを伴う動作をさせるような操作を行った場合にも、撮像装置100によるノイズパラメータの更新処理が行われる。例えば、ユーザがレリーズスイッチ61を半押ししたことに応じて、撮像装置100は光学レンズ300のモータを駆動させ、被写体に合焦させる。この時発生したノイズを利用して、撮像装置100はノイズパラメータの更新処理を行う。 In addition, even when the user performs an operation that causes the image pickup device 100 to perform an operation accompanied by noise before starting the moving image shooting, the noise parameter update process by the image pickup device 100 is performed. It will be done. For example, in response to the user pressing the release switch 61 halfway, the image pickup apparatus 100 drives the motor of the optical lens 300 to focus on the subject. Using the noise generated at this time, the image pickup apparatus 100 updates the noise parameter.

なお、ノイズパラメータ更新部216がノイズパラメータを更新した場合でも、ノイズパラメータ記録部205はノイズパラメータの初期値を保持する。これは、撮像装置100に装着される光学レンズ300が交換された場合に、ノイズパラメータ更新部216がノイズパラメータを初期値に変更するためである。上述したように、撮像装置100に装着される光学レンズ300が交換された場合、Lマイク201a、Rマイク201b、およびノイズマイク201cによって取得されるノイズが変化する。本実施例では、その変化に対応するため、ノイズパラメータ更新部216は、ノイズパラメータを汎用的な初期値から更新する。撮像装置100はレンズが交換されるたびにノイズパラメータを汎用的な初期値から更新することで、装着されるレンズに適応したノイズパラメータを使用してノイズ低減処理を行うことができる。 Even when the noise parameter updating unit 216 updates the noise parameter, the noise parameter recording unit 205 holds the initial value of the noise parameter. This is because the noise parameter updating unit 216 changes the noise parameter to the initial value when the optical lens 300 mounted on the image pickup apparatus 100 is replaced. As described above, when the optical lens 300 mounted on the image pickup apparatus 100 is replaced, the noise acquired by the L microphone 201a, the R microphone 201b, and the noise microphone 201c changes. In this embodiment, the noise parameter update unit 216 updates the noise parameter from a general-purpose initial value in order to cope with the change. By updating the noise parameter from a general-purpose initial value each time the lens is replaced, the image pickup apparatus 100 can perform noise reduction processing using the noise parameter adapted to the mounted lens.

次に、図13のフローチャートおよび図14のタイミングチャートを用いて撮像装置100のノイズパラメータ更新処理について説明する。この撮像装置100の処理は、例えば、ユーザによって電源スイッチ72が操作され、電源をオンされたことをトリガに開始される。また、例えば、この撮像装置100の処理は、ユーザによってモードダイヤルが操作され、撮像装置100のモードが撮影モードにされたことをトリガに開始される。 Next, the noise parameter update process of the image pickup apparatus 100 will be described with reference to the flowchart of FIG. 13 and the timing chart of FIG. The processing of the image pickup apparatus 100 is started, for example, when the power switch 72 is operated by the user and the power is turned on. Further, for example, the process of the image pickup apparatus 100 is started when the mode dial is operated by the user and the mode of the image pickup apparatus 100 is set to the shooting mode.

ここで、本実施例では、撮像装置100は、電源をオンされた後、撮像部101によって撮像された映像をライブビュー表示している。 Here, in this embodiment, the image pickup apparatus 100 displays the image captured by the image pickup unit 101 in a live view after the power is turned on.

ステップS1300では、レンズ制御部102は、光学レンズ300からレンズ情報を受信する。レンズ情報は、例えば、レンズの種類、レンズの型番、およびノイズ源の種類等である。レンズ制御部102は、受信したレンズ情報を制御部111およびカウンター2163に出力する。制御部111は受信したレンズ情報を不揮発性メモリ117に記録する。 In step S1300, the lens control unit 102 receives lens information from the optical lens 300. The lens information is, for example, the type of lens, the model number of the lens, the type of noise source, and the like. The lens control unit 102 outputs the received lens information to the control unit 111 and the counter 2163. The control unit 111 records the received lens information in the non-volatile memory 117.

ステップS1301では、レンズ制御部102は、レンズが交換されたか否かを判断する。例えば、レンズ制御部102は、ステップS1301の処理より前に不揮発性メモリ117に記録されていたレンズ情報と、ステップS1300において受信したレンズ情報とを比較する。2つのレンズ情報が一致すると判断した場合、レンズ制御部102はレンズが交換されていないと判断する。2つのレンズ情報が不一致であると判断した場合、レンズ制御部102はレンズが交換されたと判断する。また、例えば、ステップS1301の処理より前に不揮発性メモリ117にレンズ情報が記録されていない場合、レンズ制御部102はレンズが交換されたと判断する。レンズ制御部102がレンズが交換されたと判断した場合、ステップS1302の処理が実行される。レンズ制御部102がレンズが交換されていないと判断した場合、ステップS1305の処理が実行される。 In step S1301, the lens control unit 102 determines whether or not the lens has been replaced. For example, the lens control unit 102 compares the lens information recorded in the non-volatile memory 117 before the process of step S1301 with the lens information received in step S1300. When it is determined that the two lens information match, the lens control unit 102 determines that the lenses have not been exchanged. If it is determined that the two lens information do not match, the lens control unit 102 determines that the lenses have been exchanged. Further, for example, when the lens information is not recorded in the non-volatile memory 117 before the process of step S1301, the lens control unit 102 determines that the lens has been replaced. When the lens control unit 102 determines that the lens has been replaced, the process of step S1302 is executed. If the lens control unit 102 determines that the lens has not been replaced, the process of step S1305 is executed.

ステップS1302では、ノイズパラメータ更新部216は、ノイズパラメータ記録部205に記録されているノイズパラメータの値を初期値に変更する。 In step S1302, the noise parameter updating unit 216 changes the value of the noise parameter recorded in the noise parameter recording unit 205 to the initial value.

ステップS1303では、カウンター2163は、ノイズパラメータが比較された回数をリセットする。例えば、カウンター2163は、ノイズパラメータが比較された回数を0回にする。 In step S1303, the counter 2163 resets the number of times the noise parameters have been compared. For example, the counter 2163 sets the number of times the noise parameters are compared to 0.

ステップS1304では、制御部111は、ノイズパラメータ更新部216への録音パスをオンにする。例えば、制御部111は、音声処理を開始するよう音声入力部104を制御する。なお、本ステップにおいて、ノイズパラメータ選択部206も処理を開始する。 In step S1304, the control unit 111 turns on the recording path to the noise parameter update unit 216. For example, the control unit 111 controls the voice input unit 104 so as to start voice processing. In this step, the noise parameter selection unit 206 also starts processing.

ステップS1305では、制御部111は、ノイズパラメータが比較された回数が所定回数以下か否かを判断する。例えば、制御部111はノイズパラメータが比較された回数が4回以下か否かを判断する。ノイズパラメータが比較された回数が所定回数以下であると判断された場合、ステップS1306の処理が実行される。ノイズパラメータが比較された回数が所定回数より多いと判断された場合、ステップS1312の処理が実行される。 In step S1305, the control unit 111 determines whether or not the number of times the noise parameters are compared is equal to or less than a predetermined number of times. For example, the control unit 111 determines whether or not the number of times the noise parameters are compared is 4 times or less. If it is determined that the number of times the noise parameters are compared is less than or equal to the predetermined number of times, the process of step S1306 is executed. If it is determined that the number of times the noise parameters are compared is greater than the predetermined number of times, the process of step S1312 is executed.

ステップS1306では、制御部111は、光学レンズ300が駆動を開始したか否かを判断する。例えば、制御部111は、レンズ制御部102から出力されるレンズ制御信号のレベルがHighかLowかを判断する。レンズ制御信号のレベルがHighである場合、制御部111は、光学レンズが駆動を開始したと判断する。レンズ制御信号のレベルがLowである場合、制御部111は、光学レンズが駆動していないと判断する。光学レンズ300が駆動を開始したと判断された場合、ステップS1307の処理が実行される。光学レンズ300が駆動していないと判断された場合、ステップS1310の処理が実行される。 In step S1306, the control unit 111 determines whether or not the optical lens 300 has started driving. For example, the control unit 111 determines whether the level of the lens control signal output from the lens control unit 102 is High or Low. When the level of the lens control signal is High, the control unit 111 determines that the optical lens has started driving. When the level of the lens control signal is Low, the control unit 111 determines that the optical lens is not driven. If it is determined that the optical lens 300 has started driving, the process of step S1307 is executed. If it is determined that the optical lens 300 is not driven, the process of step S1310 is executed.

ステップS1307では、ノイズパラメータ更新部216は、ノイズパラメータPLxを生成する。なお、本ステップにおいて、ノイズパラメータ更新部216は、ノイズが発生するたびに、そのノイズに対するノイズパラメータを生成する。 In step S1307, the noise parameter update unit 216 generates the noise parameter PLx. In this step, the noise parameter update unit 216 generates a noise parameter for the noise each time the noise is generated.

ステップS1308では、制御部111は、光学レンズ300が駆動を終了したか否かを判断する。例えば、制御部111は、レンズ制御部102から出力されるレンズ制御信号のレベルがHighかLowかを判断する。レンズ制御信号のレベルがHighである場合、制御部111は、光学レンズが駆動していると判断する。レンズ制御信号のレベルがLowである場合、制御部111は、光学レンズが駆動を終了したと判断する。光学レンズ300が駆動していると判断された場合、ステップS1307の処理が実行される。光学レンズ300が駆動を終了したと判断された場合、ステップS1309の処理が実行される。 In step S1308, the control unit 111 determines whether or not the optical lens 300 has finished driving. For example, the control unit 111 determines whether the level of the lens control signal output from the lens control unit 102 is High or Low. When the level of the lens control signal is High, the control unit 111 determines that the optical lens is being driven. When the level of the lens control signal is Low, the control unit 111 determines that the optical lens has finished driving. If it is determined that the optical lens 300 is being driven, the process of step S1307 is executed. If it is determined that the optical lens 300 has finished driving, the process of step S1309 is executed.

ステップS1309では、ノイズパラメータ更新部216は、ノイズパラメータが比較された回数を1回増加させる。 In step S1309, the noise parameter update unit 216 increases the number of times the noise parameters are compared by one time.

ステップS1310では、ノイズパラメータ更新部216は、ステップS1307において生成されたノイズパラメータPLxと、ノイズパラメータ記録部205に記録されているPLxと、を比較する。ステップS1307において生成されたノイズパラメータPLxのほうが小さいと判断された場合、ステップS1311の処理が実行される。ノイズパラメータ記録部205に記録されているPLxのほうが小さいと判断された場合、ステップS1313の処理が実行される。 In step S1310, the noise parameter updating unit 216 compares the noise parameter PLx generated in step S1307 with the PLx recorded in the noise parameter recording unit 205. If it is determined that the noise parameter PLx generated in step S1307 is smaller, the process of step S1311 is executed. If it is determined that the PLx recorded in the noise parameter recording unit 205 is smaller, the process of step S1313 is executed.

ステップS1311では、ノイズパラメータ更新部216はPLxを更新する。例えば、ノイズパラメータ更新部216は、ステップS1307において生成されたノイズパラメータPLxを、ノイズパラメータ記録部205に記録されているPLxに上書き記録する。これにより、撮像装置100は望ましいノイズパラメータを後述の動画記録において利用することができる。また、撮像装置100は望ましいノイズパラメータを利用することで効果的にノイズを低減することができる。なお、ノイズパラメータ記録部205は、本ステップの処理が実行された場合でもノイズパラメータの初期値を保持している。 In step S1311, the noise parameter update unit 216 updates PLx. For example, the noise parameter updating unit 216 overwrites and records the noise parameter PLx generated in step S1307 on the PLx recorded in the noise parameter recording unit 205. As a result, the image pickup apparatus 100 can utilize the desirable noise parameters in the moving image recording described later. Further, the image pickup apparatus 100 can effectively reduce noise by using desirable noise parameters. The noise parameter recording unit 205 holds the initial value of the noise parameter even when the process of this step is executed.

ここまで、ノイズパラメータの比較回数が所定回数以下の場合について説明した。図14のタイミングチャートでは、時刻t1~t8の期間に相当する。次にステップS1305の処理において、ノイズパラメータの比較回数が所定回数より多いと判断された場合の処理について説明する。図14のタイミングチャートでは、時刻t8以降の期間に相当する。 Up to this point, the case where the number of comparisons of noise parameters is less than or equal to a predetermined number has been described. In the timing chart of FIG. 14, it corresponds to the period from time t1 to t8. Next, in the process of step S1305, the process when it is determined that the number of times of comparison of the noise parameters is more than the predetermined number of times will be described. In the timing chart of FIG. 14, it corresponds to the period after the time t8.

ステップS1312では、制御部111は、ノイズパラメータ更新部216への録音パスをオフにする。例えば、制御部111は、音声処理を停止するよう音声入力部104を制御する。なお、本ステップにおいて、ノイズパラメータ選択部206も処理を停止する。 In step S1312, the control unit 111 turns off the recording path to the noise parameter update unit 216. For example, the control unit 111 controls the voice input unit 104 so as to stop the voice processing. In this step, the noise parameter selection unit 206 also stops processing.

ステップS1313では、制御部111は、動画記録を開始するか否かを判断する。例えば、制御部111は、レリーズスイッチ61を押下されたことに応じて、動画記録を開始すると判断する。逆に、制御部111は、レリーズスイッチ61を押下されていない場合、動画記録を開始しないと判断する。制御部111が動画記録を開始すると判断した場合、ステップS1314の処理が実行される。制御部111が動画記録を開始しないと判断した場合、ステップS1300の処理が実行される。 In step S1313, the control unit 111 determines whether or not to start video recording. For example, the control unit 111 determines that the moving image recording is started in response to the pressing of the release switch 61. On the contrary, the control unit 111 determines that the moving image recording is not started when the release switch 61 is not pressed. If the control unit 111 determines to start video recording, the process of step S1314 is executed. If the control unit 111 determines that the moving image recording is not started, the process of step S1300 is executed.

ステップS1314では、制御部111は、音声入力部104への録音パスをオンにする。例えば、制御部111は、音声処理を開始するよう音声入力部104を制御する。 In step S1314, the control unit 111 turns on the recording path to the voice input unit 104. For example, the control unit 111 controls the voice input unit 104 so as to start voice processing.

ステップS1315では、制御部111は動画記録する。例えば、前述したように、制御部111は記録媒体110に音声付き動画データを記録する。この動画記録中の音声処理では、ノイズパラメータ記録部205に記録されたノイズパラメータが利用される。 In step S1315, the control unit 111 records a moving image. For example, as described above, the control unit 111 records the moving image data with audio on the recording medium 110. In the voice processing during the moving image recording, the noise parameter recorded in the noise parameter recording unit 205 is used.

ステップS1316では、制御部111は動画記録を終了するか否かを判断する。例えば、制御部111は、レリーズスイッチ61を押下されたことに応じて、動画記録を終了すると判断する。逆に、制御部111は、レリーズスイッチ61を押下されていない場合、動画記録を終了しないと判断する。制御部111が動画記録を終了すると判断した場合、ステップS1317の処理が実行される。制御部111が動画記録を終了しないと判断した場合、ステップS1315の処理が実行される。 In step S1316, the control unit 111 determines whether or not to end the moving image recording. For example, the control unit 111 determines that the moving image recording is finished in response to the pressing of the release switch 61. On the contrary, the control unit 111 determines that the moving image recording is not finished when the release switch 61 is not pressed. When the control unit 111 determines that the moving image recording is finished, the process of step S1317 is executed. If the control unit 111 determines that the moving image recording is not completed, the process of step S1315 is executed.

ステップS1317では、制御部111は、ノイズパラメータ更新部216への録音パスをオフにする。例えば、制御部111は、音声処理を停止するよう音声入力部104を制御する。 In step S1317, the control unit 111 turns off the recording path to the noise parameter update unit 216. For example, the control unit 111 controls the voice input unit 104 so as to stop the voice processing.

以上、撮像装置100のノイズパラメータの更新処理について説明した。このように動画記録処理の開始前にレンズの駆動に応じて新たにノイズパラメータを生成する。そして、既に生成済のノイズパラメータよりも、新たに生成されたノイズパラメータの方が適切にノイズを低減できる場合には、新たに生成したノイズパラメータを用いて、記録済のノイズパラメータを更新する。更新されたノイズパラメータを用いて、動画記録中の音声に含まれるノイズを低減することで、撮像装置100は音質の良い音声付き動画データを記録することができる。 The process of updating the noise parameter of the image pickup apparatus 100 has been described above. In this way, a new noise parameter is generated according to the drive of the lens before the start of the moving image recording process. Then, when the newly generated noise parameter can reduce the noise more appropriately than the already generated noise parameter, the newly generated noise parameter is used to update the recorded noise parameter. By using the updated noise parameters to reduce the noise contained in the sound during the moving image recording, the image pickup apparatus 100 can record the moving image data with sound having good sound quality.

なお、ノイズパラメータ記録部205は、撮像装置100の電源がオフされた後も、更新されたノイズパラメータを保持する。これにより、撮像装置100は、次に撮像装置100の電源がオンされたときに、レンズが交換されていない状態であれば、更新されたノイズパラメータを用いて音声付き動画データを記録することができる。 The noise parameter recording unit 205 retains the updated noise parameters even after the power of the image pickup apparatus 100 is turned off. As a result, when the power of the image pickup device 100 is turned on next time, the image pickup device 100 can record the moving image data with sound using the updated noise parameter if the lens is not replaced. can.

なお、本実施例では、ノイズパラメータ更新部216は、動画記録中はノイズパラメータを更新する処理を実行しない。撮像装置100は、動画記録中においてノイズパラメータを一定にすることで、音質を保ちながら音声を記録することができる。 In this embodiment, the noise parameter updating unit 216 does not execute the process of updating the noise parameter during the moving image recording. The image pickup apparatus 100 can record sound while maintaining sound quality by keeping the noise parameter constant during video recording.

なお、本実施例では、ノイズパラメータ更新部216はノイズパラメータが比較される前のステップにおいて、ノイズパラメータが比較された回数を増加させているが、ノイズパラメータを比較した後にノイズパラメータが比較された回数を増加させてもよい。 In this embodiment, the noise parameter update unit 216 increases the number of times the noise parameters are compared in the step before the noise parameters are compared, but the noise parameters are compared after the noise parameters are compared. The number of times may be increased.

なお、ノイズパラメータ更新部216は、情報取得部103によって取得された撮像装置100の傾きに基づいて、ノイズパラメータを更新するか否かを判断してもよい。例えば、ノイズパラメータが撮像装置100が水平である場合に適用されることを想定されている場合、撮像装置100が上向きの状態では、ノイズパラメータ更新部216は、ノイズパラメータを正しく計算できないおそれがある。そのため、この場合、ノイズパラメータ更新部216は、撮像装置100が水平であると判断した場合、ノイズパラメータを更新する更新処理を実行する。逆に、ノイズパラメータ更新部216は、撮像装置100が水平ではないと判断した場合、ノイズパラメータを更新する更新処理を実行しない。なお、例えば、撮像装置100が水平であるとみなせる傾きの範囲は、水平方向に対して撮像装置100の傾きが±30度以内の範囲である。 The noise parameter updating unit 216 may determine whether or not to update the noise parameter based on the inclination of the image pickup apparatus 100 acquired by the information acquisition unit 103. For example, when it is assumed that the noise parameter is applied when the image pickup device 100 is horizontal, the noise parameter update unit 216 may not be able to correctly calculate the noise parameter when the image pickup device 100 is facing upward. .. Therefore, in this case, the noise parameter update unit 216 executes an update process for updating the noise parameter when it is determined that the image pickup apparatus 100 is horizontal. On the contrary, when the noise parameter update unit 216 determines that the image pickup apparatus 100 is not horizontal, the noise parameter update unit 216 does not execute the update process for updating the noise parameter. For example, the range of inclination that the image pickup apparatus 100 can be regarded as horizontal is the range in which the inclination of the image pickup apparatus 100 is within ± 30 degrees with respect to the horizontal direction.

なお、ノイズパラメータ更新部216は、光学レンズ300がズームレンズである場合、レンズ制御部102によって取得された光学レンズ300のズーム倍率に基づいて、ノイズパラメータを更新するか否かを判断してもよい。例えば、ノイズパラメータが光学レンズ300がワイド端である場合に適用されることを想定されている場合、光学レンズ300がテレ端の状態では、ノイズパラメータ更新部216は、ノイズパラメータを正しく計算できないおそれがある。そのため、この場合、ノイズパラメータ更新部216は、光学レンズ300がワイド端であると判断した場合、ノイズパラメータを更新する更新処理を実行する。逆に、ノイズパラメータ更新部216は、光学レンズ300がワイド端ではないと判断した場合、ノイズパラメータを更新する更新処理を実行しない。なお、例えば、光学レンズ300がワイド端であるとみなせるズーム倍率の範囲は、光学レンズ300のズーム倍率が1~2倍の範囲である。 When the optical lens 300 is a zoom lens, the noise parameter updating unit 216 may determine whether or not to update the noise parameter based on the zoom magnification of the optical lens 300 acquired by the lens control unit 102. good. For example, if it is assumed that the noise parameter is applied when the optical lens 300 is at the wide end, the noise parameter update unit 216 may not be able to correctly calculate the noise parameter when the optical lens 300 is at the telephoto end. There is. Therefore, in this case, the noise parameter update unit 216 executes an update process for updating the noise parameter when it is determined that the optical lens 300 is at the wide end. On the contrary, when the noise parameter update unit 216 determines that the optical lens 300 is not at the wide end, the noise parameter update unit 216 does not execute the update process for updating the noise parameter. For example, the range of the zoom magnification that can be regarded as the wide end of the optical lens 300 is the range in which the zoom magnification of the optical lens 300 is 1 to 2 times.

なお、ノイズパラメータ記録部205は、レンズごとにノイズパラメータを記録してもよい。これはレンズごとに音声入力部104のマイクに収音されるノイズが異なることに対応してノイズ低減するためである。この場合、撮像装置100は、レンズごとのノイズパラメータに対してノイズパラメータを更新する更新処理を実行する。 The noise parameter recording unit 205 may record noise parameters for each lens. This is because the noise is reduced in response to the fact that the noise picked up by the microphone of the voice input unit 104 is different for each lens. In this case, the image pickup apparatus 100 executes an update process for updating the noise parameter with respect to the noise parameter for each lens.

[第二の実施例]
第二の実施例では、第一の実施例とは異なるノイズパラメータの更新処理について説明する。ここで、撮像装置100の構成は、第一の実施例と同様である。なお、本実施例においてもPLxのノイズパラメータの更新処理について説明するが、PRxのノイズパラメータの更新処理は、PLxのノイズパラメータを更新する処理と同様である。
[Second Example]
In the second embodiment, the noise parameter update process different from that of the first embodiment will be described. Here, the configuration of the image pickup apparatus 100 is the same as that of the first embodiment. Although the PLx noise parameter update process will be described in this embodiment as well, the PRx noise parameter update process is the same as the PLx noise parameter update process.

これから、図15のフローチャートおよび図16のタイミングチャートを用いて撮像装置100のノイズパラメータ更新処理について説明する。この撮像装置100の処理は、例えば、ユーザによって電源スイッチ72が操作され、電源をオンされたことをトリガに開始される。 From now on, the noise parameter update process of the image pickup apparatus 100 will be described with reference to the flowchart of FIG. 15 and the timing chart of FIG. The processing of the image pickup apparatus 100 is started, for example, when the power switch 72 is operated by the user and the power is turned on.

ステップS1500~S1510までの処理は、それぞれ図13のステップS1300~S1310の処理と同様であるため説明を省略する。 Since the processes of steps S1500 to S1510 are the same as the processes of steps S1300 to S1310 of FIG. 13, the description thereof will be omitted.

ステップS1511では、ノイズパラメータ更新部216は、ステップS1307において生成されたノイズパラメータPLxを、ノイズパラメータ記録部205に記録されているPLxに上書き記録する。ステップS1510の処理後、ステップS1511の処理が実行される。 In step S1511, the noise parameter updating unit 216 overwrites and records the noise parameter PLx generated in step S1307 on the PLx recorded in the noise parameter recording unit 205. After the process of step S1510, the process of step S1511 is executed.

ステップS1512では、制御部111は、ノイズパラメータ更新部216への録音パスをオフにする。例えば、制御部111は、音声処理を停止するよう音声入力部104を制御する。 In step S1512, the control unit 111 turns off the recording path to the noise parameter update unit 216. For example, the control unit 111 controls the voice input unit 104 so as to stop the voice processing.

ステップS1513~S1515までの処理は、それぞれ図13のステップS1313~S1315の処理と同様であるため説明を省略する。 Since the processes of steps S1513 to S1515 are the same as the processes of steps S1313 to S1315 of FIG. 13, the description thereof will be omitted.

ステップS1516では、制御部111は、光学レンズ300が駆動したか否かを判断する。例えば、制御部111は、レンズ制御部102から出力されるレンズ制御信号のレベルがHighかLowかを判断する。レンズ制御信号のレベルがHighである場合、制御部111は、光学レンズが駆動したと判断する。レンズ制御信号のレベルがLowである場合、制御部111は、光学レンズが駆動していないと判断する。光学レンズ300が駆動したと判断された場合、ステップS1517の処理が実行される。光学レンズ300が駆動していないと判断された場合、ステップS1519の処理が実行される。 In step S1516, the control unit 111 determines whether or not the optical lens 300 has been driven. For example, the control unit 111 determines whether the level of the lens control signal output from the lens control unit 102 is High or Low. When the level of the lens control signal is High, the control unit 111 determines that the optical lens has been driven. When the level of the lens control signal is Low, the control unit 111 determines that the optical lens is not driven. If it is determined that the optical lens 300 has been driven, the process of step S1517 is executed. If it is determined that the optical lens 300 is not driven, the process of step S1519 is executed.

ステップS1517では、ノイズパラメータ更新部216は、ノイズパラメータPLxを生成する。 In step S1517, the noise parameter update unit 216 generates the noise parameter PLx.

ステップS1518では、ノイズパラメータ更新部216は、ノイズパラメータが比較された回数を1回増加させる。 In step S1518, the noise parameter update unit 216 increases the number of times the noise parameters are compared by one time.

ステップS1519では、ノイズパラメータ更新部216は、ステップS1517において生成されたノイズパラメータPLxと、ノイズパラメータ記録部205に記録されているPLxと、を比較する。ステップS1517において生成されたノイズパラメータPLxのほうが小さいと判断された場合、ステップS1520の処理が実行される。ノイズパラメータ記録部205に記録されているPLxのほうが小さいと判断された場合、ステップS1521の処理が実行される。 In step S1519, the noise parameter updating unit 216 compares the noise parameter PLx generated in step S1517 with the PLx recorded in the noise parameter recording unit 205. If it is determined that the noise parameter PLx generated in step S1517 is smaller, the process of step S1520 is executed. If it is determined that the PLx recorded in the noise parameter recording unit 205 is smaller, the process of step S1521 is executed.

ステップS1520では、ノイズパラメータ更新部216はPLxを更新する。例えば、ノイズパラメータ更新部216は、ステップS1517において生成されたノイズパラメータPLxを、ノイズパラメータ記録部205に記録されているPLxに上書き記録する。なお、ノイズパラメータ記録部205は、本ステップの処理が実行された場合でもノイズパラメータの初期値を保持している。 In step S1520, the noise parameter update unit 216 updates PLx. For example, the noise parameter updating unit 216 overwrites and records the noise parameter PLx generated in step S1517 on the PLx recorded in the noise parameter recording unit 205. The noise parameter recording unit 205 holds the initial value of the noise parameter even when the process of this step is executed.

ステップS1521では、制御部111は動画記録を終了するか否かを判断する。例えば、制御部111は、レリーズスイッチ61を押下されたことに応じて、動画記録を終了すると判断する。逆に、制御部111は、レリーズスイッチ61を押下されていない場合、動画記録を終了しないと判断する。制御部111が動画記録を終了すると判断した場合、ステップS1522の処理が実行される。制御部111が動画記録を終了しないと判断した場合、ステップS1515の処理が実行される。 In step S1521, the control unit 111 determines whether or not to end the moving image recording. For example, the control unit 111 determines that the moving image recording is finished in response to the pressing of the release switch 61. On the contrary, the control unit 111 determines that the moving image recording is not finished when the release switch 61 is not pressed. When the control unit 111 determines that the moving image recording is finished, the process of step S1522 is executed. If the control unit 111 determines that the moving image recording is not completed, the process of step S1515 is executed.

ステップS1521では、制御部111は、ノイズパラメータ更新部216への録音パスをオフにする。例えば、制御部111は、音声処理を停止するよう音声入力部104を制御する。 In step S1521, the control unit 111 turns off the recording path to the noise parameter update unit 216. For example, the control unit 111 controls the voice input unit 104 so as to stop the voice processing.

このように、本実施例では、撮像装置100は動画記録前ではノイズパラメータを更新したことに応じて、録音パスをオフにする。これにより、撮像装置100は、早ければ1回のレンズ駆動によって録音パスをオフにすることができるため、音声入力部104における電力の消費を抑えることができる。また、本実施例では、撮像装置100は動画記録中もノイズパラメータを更新する。これにより、動画記録中であっても効率的にノイズ低減して音声を記録することができる。 As described above, in this embodiment, the image pickup apparatus 100 turns off the recording path in response to updating the noise parameter before recording the moving image. As a result, the image pickup apparatus 100 can turn off the recording path by driving the lens once at the earliest, so that the power consumption in the audio input unit 104 can be suppressed. Further, in this embodiment, the image pickup apparatus 100 updates the noise parameter even during video recording. As a result, it is possible to efficiently reduce noise and record voice even during video recording.

[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other embodiments]
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 It should be noted that the present invention is not limited to the above embodiment as it is, and at the implementation stage, the components can be modified and embodied within a range that does not deviate from the gist thereof. In addition, various inventions can be formed by an appropriate combination of the plurality of components disclosed in the above-described embodiment. For example, some components may be removed from all the components shown in the embodiments. In addition, components across different embodiments may be combined as appropriate.

Claims (20)

撮像手段と、
環境音を取得するための第一のマイクと、
ノイズ源からの音を取得するための第二のマイクと、
前記第一のマイクからの音声信号をフーリエ変換して第一の音声信号を生成する第一の変換手段と、
前記第二のマイクからの音声信号をフーリエ変換して第二の音声信号を生成する第二の変換手段と、
前記第二の音声信号と、前記ノイズ源のノイズに係る第一のパラメータとを用いてノイズデータを生成する生成手段と、
前記第一の音声信号から前記ノイズデータを減算する減算手段と、
前記減算手段からの音声信号を逆フーリエ変換する第三の変換手段と、
前記撮像手段によって生成された動画データと、前記第三の変換手段からの音声信号とを音声付き動画データとして記録媒体に記録する記録手段と、
前記記録手段による音声付き動画データの記録が行われていない状態において、前記第一の音声信号と前記第二の音声信号とを用いて、前記ノイズ源のノイズに係るパラメータを生成し、前記生成したパラメータを用いて前記第一のパラメータを更新する更新手段と、
を有することを特徴とする音声処理装置。
Imaging means and
With the first microphone to get the ambient sound,
With a second microphone to get the sound from the noise source,
The first conversion means for generating the first audio signal by Fourier transforming the audio signal from the first microphone,
A second conversion means that Fourier transforms the audio signal from the second microphone to generate a second audio signal,
A generation means for generating noise data using the second audio signal and the first parameter related to noise of the noise source.
A subtraction means for subtracting the noise data from the first audio signal,
A third transforming means for inverse Fourier transforming the audio signal from the subtracting means,
A recording means for recording the moving image data generated by the imaging means and the audio signal from the third conversion means on a recording medium as moving image data with audio.
In a state where the video data with audio is not recorded by the recording means, the first audio signal and the second audio signal are used to generate parameters related to noise of the noise source, and the generation is performed. An update means for updating the first parameter using the above-mentioned parameters, and
A voice processing device characterized by having.
前記更新手段は、前記記録手段による音声付き動画データの記録が行われていない状態において、前記ノイズ源のノイズに係るパラメータを生成した回数が所定の回数を超えた場合、前記ノイズ源のノイズに係るパラメータを生成する処理を終了する
ことを特徴とする請求項1に記載の音声処理装置。
When the number of times the parameter relating to the noise of the noise source is generated exceeds a predetermined number of times in a state where the moving image data with audio is not recorded by the recording means, the updating means causes the noise of the noise source. The voice processing apparatus according to claim 1, wherein the process of generating the parameter is terminated.
前記更新手段は、前記撮像手段に取り付けられた前記レンズが交換されたと判断した場合、前記ノイズ源のノイズに係るパラメータを生成した回数をリセットする
ことを特徴とする請求項1または2に記載の音声処理装置。
The update means according to claim 1 or 2, wherein when it is determined that the lens attached to the image pickup means has been replaced, the updating means resets the number of times the parameter related to the noise of the noise source is generated. Voice processing device.
前記更新手段は、前記記録手段による音声付き動画データの記録が行われていない状態において、前記第一のパラメータを更新した場合、前記ノイズ源のノイズに係るパラメータを生成する処理を終了する
ことを特徴とする請求項1から3のいずれか1項に記載の音声処理装置。
When the first parameter is updated in a state where the video data with audio is not recorded by the recording means, the updating means ends the process of generating the parameter related to the noise of the noise source. The voice processing apparatus according to any one of claims 1 to 3.
前記更新手段は、前記記録手段による音声付き動画データの記録が行われている状態においても、前記第一のパラメータを更新する処理を行う
ことを特徴とする請求項1から4のいずれか1項に記載の音声処理装置。
The update means is any one of claims 1 to 4, wherein the updating means performs a process of updating the first parameter even when the recording means is recording the moving image data with audio. The audio processing device described in.
前記更新手段は、前記撮像手段に取り付けられたレンズが交換されたと判断した場合、前記更新手段により更新された前記第一のパラメータを初期値に変更する
ことを特徴とする請求項1から5のいずれか1項に記載の音声処理装置。
Claims 1 to 5, wherein the updating means changes the first parameter updated by the updating means to an initial value when it is determined that the lens attached to the imaging means has been replaced. The voice processing device according to any one of the following items.
前記生成手段は、前記更新手段により前記第一のノイズパラメータが更新された場合、前記更新手段により更新された前記第一のノイズパラメータと、前記第二の音声信号と、を用いて前記ノイズデータを生成することを特徴とする請求項1から6のいずれか1項に記載の音声処理装置。 When the first noise parameter is updated by the updating means, the generation means uses the first noise parameter updated by the updating means and the second voice signal to obtain the noise data. The voice processing apparatus according to any one of claims 1 to 6, wherein the voice processing apparatus is generated. 前記更新手段は、前記第一の音声信号と前記第二の音声信号とを用いて生成したパラメータの値が、前記第一のパラメータの値よりも小さいと判断した場合、前記第一の音声信号と前記第二の音声信号とを用いて生成したパラメータを用いて前記第一のパラメータを更新する
ことを特徴とする請求項1から7のいずれか1項に記載の音声処理装置。
When the updating means determines that the value of the parameter generated by using the first audio signal and the second audio signal is smaller than the value of the first parameter, the first audio signal. The voice processing apparatus according to any one of claims 1 to 7, wherein the first parameter is updated by using a parameter generated by using the second voice signal and the second voice signal.
前記更新手段は、前記第一の音声信号と前記第二の音声信号とを用いて生成したパラメータが生成されたときの環境音の振幅が、前記第一のパラメータが生成されたときの環境音の振幅よりも小さい場合、前記第一の音声信号と前記第二の音声信号とから生成したパラメータを用いて、前記第一のパラメータを更新する
ことを特徴とする請求項1から8のいずれか1項に記載の音声処理装置。
In the updating means, the amplitude of the environmental sound when the parameter generated by using the first audio signal and the second audio signal is generated is the amplitude of the environmental sound when the first parameter is generated. When the amplitude is smaller than the amplitude of, any one of claims 1 to 8, wherein the first parameter is updated by using the parameter generated from the first voice signal and the second voice signal. The audio processing device according to item 1.
前記更新手段は、前記第一の音声信号と前記第二の音声信号とを用いて生成したパラメータに基づいて、前記第一のパラメータを周波数スペクトルごとに更新する
ことを特徴とする請求項1から9のいずれか1項に記載の音声処理装置。
From claim 1, the updating means updates the first parameter for each frequency spectrum based on the parameters generated by using the first voice signal and the second voice signal. 9. The audio processing device according to any one of 9.
前記レンズは、前記ノイズ源としての駆動手段を有し、
前記更新手段は、前記駆動手段が駆動している間において、前記第一の音声信号と前記第二の音声信号とを用いて、前記ノイズ源のノイズに係るパラメータを生成する
ことを特徴とする請求項1から10の何れか1項に記載の音声処理装置。
The lens has a driving means as the noise source.
The updating means is characterized in that, while the driving means is being driven, the first voice signal and the second voice signal are used to generate a parameter related to noise of the noise source. The voice processing device according to any one of claims 1 to 10.
前記更新手段は、前記駆動手段が駆動している間において複数のパラメータを生成した場合、前記複数のパラメータのうち、生成されたときの環境音の振幅が小さいパラメータを用いて、前記第一のパラメータを更新するための処理を実行する
ことを特徴とする請求項11に記載の音声処理装置。
When a plurality of parameters are generated while the driving means is being driven, the updating means uses the parameter having a smaller amplitude of the environmental sound when the plurality of parameters are generated, and the first one. The voice processing apparatus according to claim 11, wherein a process for updating a parameter is executed.
前記生成手段は、第一の種類のノイズに対応したパラメータと、第二の種類のノイズに対応したパラメータとを含む、複数の前記第一のパラメータの少なくとも何れかと前記第二の音声信号とを用いて、前記ノイズデータを生成することを特徴とする請求項1から12のいずれか1項に記載の音声処理装置。 The generation means obtains at least one of the plurality of the first parameters and the second voice signal, including a parameter corresponding to the first kind of noise and a parameter corresponding to the second kind of noise. The voice processing apparatus according to any one of claims 1 to 12, wherein the noise data is generated by using the voice processing apparatus. 前記生成手段は、前記複数の第一のパラメータのうち、前記第二の音声信号に含まれるノイズの種類に対応したパラメータと、前記第二の音声信号とを用いて前記ノイズデータを生成する
ことを特徴とする請求項13に記載の音声処理装置。
The generation means generates the noise data by using the parameter corresponding to the type of noise included in the second voice signal among the plurality of first parameters and the second voice signal. 13. The voice processing device according to claim 13.
前記第二の音声信号に含まれるノイズの種類を判定する判定手段をさらに有し、
前記更新手段は、前記判定手段によって判定されたノイズの種類に基づいて、前記複数の第一のパラメータのうち前記第二の音声信号に含まれるノイズの種類に対応したパラメータを更新する
ことを特徴とする請求項13または14に記載の音声処理装置。
Further, it has a determination means for determining the type of noise contained in the second audio signal, and has a determination means.
The updating means is characterized in that the parameter corresponding to the type of noise included in the second voice signal among the plurality of first parameters is updated based on the type of noise determined by the determination means. The voice processing device according to claim 13 or 14.
前記更新手段により更新された前記第一のパラメータを、前記音声処理装置の電源がオフにされた場合に保持する手段を有する
ことを特徴とする請求項1から15のいずれか1項に記載の音声処理装置。
The first parameter according to any one of claims 1 to 15, further comprising means for holding the first parameter updated by the updating means when the power of the voice processing device is turned off. Voice processing device.
前記ノイズは、恒常的なノイズ、短期的なノイズ、または長期的なノイズの少なくともいずれかを含む
ことを特徴とする請求項1から16のいずれか1項に記載の音声処理装置。
The voice processing apparatus according to any one of claims 1 to 16, wherein the noise includes at least one of constant noise, short-term noise, and long-term noise.
前記第一のパラメータは前記第一の音声信号および前記第二の音声信号の振幅の比であることを特徴とする請求項1から17のいずれか1項に記載の音声処理装置。 The voice processing apparatus according to any one of claims 1 to 17, wherein the first parameter is a ratio of the amplitudes of the first voice signal and the second voice signal. 撮像手段と、環境音を取得するための第一のマイクと、ノイズ源からの音を取得するための第二のマイクと、を有する音声処理装置の制御方法であって、
前記第一のマイクからの音声信号をフーリエ変換して第一の音声信号を生成するステップと、
前記第二のマイクからの音声信号をフーリエ変換して第二の音声信号を生成するステップと、
前記第二の音声信号と、前記ノイズ源のノイズに係る第一のパラメータとを用いてノイズデータを生成する生成ステップと、
前記第一の音声信号から前記ノイズデータを減算する減算ステップと、
前記減算ステップによって生成された音声信号を逆フーリエ変換するステップと、
前記撮像手段によって生成された動画データと、前記逆フーリエ変換された音声信号とを音声付き動画データとして記録媒体に記録する記録ステップと、
音声付き動画データの記録が行われていない状態において、前記第一の音声信号と前記第二の音声信号とを用いて、前記ノイズ源のノイズに係るパラメータを生成し、前記生成したパラメータを用いて前記第一のパラメータを更新する更新ステップと、を有する
ことを特徴とする制御方法。
It is a control method of a voice processing device having an image pickup means, a first microphone for acquiring environmental sound, and a second microphone for acquiring sound from a noise source.
The step of Fourier transforming the audio signal from the first microphone to generate the first audio signal,
The step of Fourier transforming the audio signal from the second microphone to generate the second audio signal,
A generation step of generating noise data using the second audio signal and the first parameter related to noise of the noise source.
A subtraction step of subtracting the noise data from the first audio signal,
A step of inverse Fourier transforming the audio signal generated by the subtraction step,
A recording step of recording the moving image data generated by the imaging means and the inverse Fourier transformed voice signal as moving image data with sound on a recording medium.
In a state where the video data with audio is not recorded, the first audio signal and the second audio signal are used to generate a parameter related to the noise of the noise source, and the generated parameter is used. A control method comprising an update step for updating the first parameter.
コンピュータを請求項1から18のいずれか1項に記載の音声処理装置の各手段として機能させるための、コンピュータが読み取り可能なプログラム。 A computer-readable program for operating a computer as each means of the voice processing device according to any one of claims 1 to 18.
JP2020161435A 2020-08-27 2020-09-25 Audio processing device, control method, and program Active JP7604154B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020161435A JP7604154B2 (en) 2020-09-25 2020-09-25 Audio processing device, control method, and program
US17/410,592 US11729548B2 (en) 2020-08-27 2021-08-24 Audio processing apparatus, control method, and storage medium, each for performing noise reduction using audio signals input from plurality of microphones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020161435A JP7604154B2 (en) 2020-09-25 2020-09-25 Audio processing device, control method, and program

Publications (2)

Publication Number Publication Date
JP2022054315A true JP2022054315A (en) 2022-04-06
JP7604154B2 JP7604154B2 (en) 2024-12-23

Family

ID=80996898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020161435A Active JP7604154B2 (en) 2020-08-27 2020-09-25 Audio processing device, control method, and program

Country Status (1)

Country Link
JP (1) JP7604154B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013110629A (en) * 2011-11-22 2013-06-06 Sony Corp Imaging apparatus and sound collection method
JP2014036395A (en) * 2012-08-10 2014-02-24 Canon Inc Image pick-up apparatus
JP2014044313A (en) * 2012-08-27 2014-03-13 Xacti Corp Noise reduction device
JP2019036867A (en) * 2017-08-17 2019-03-07 キヤノン株式会社 Speech processing apparatus and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013110629A (en) * 2011-11-22 2013-06-06 Sony Corp Imaging apparatus and sound collection method
JP2014036395A (en) * 2012-08-10 2014-02-24 Canon Inc Image pick-up apparatus
JP2014044313A (en) * 2012-08-27 2014-03-13 Xacti Corp Noise reduction device
JP2019036867A (en) * 2017-08-17 2019-03-07 キヤノン株式会社 Speech processing apparatus and control method thereof

Also Published As

Publication number Publication date
JP7604154B2 (en) 2024-12-23

Similar Documents

Publication Publication Date Title
CN101686323A (en) Imaging apparatus and mode appropriateness evaluating method
JP2006279185A (en) Imaging apparatus, audio recording method, and program
JP6637926B2 (en) Voice processing device and control method thereof
JP4639907B2 (en) Imaging apparatus, audio recording method, and program
JP5034605B2 (en) Imaging apparatus, noise removal method, and program
US11657794B2 (en) Audio processing apparatus for reducing noise using plurality of microphones, control method, and recording medium
JP2010068475A (en) Imaging apparatus and method of reproducing image in the imaging apparatus
JP4639902B2 (en) Imaging apparatus, audio recording method, and program
JP7665304B2 (en) Audio processing device, control method, and program
JP7608092B2 (en) Audio processing device, control method, and program
JP7604154B2 (en) Audio processing device, control method, and program
JP7580996B2 (en) Audio processing device, control method, and program
JP7566552B2 (en) Audio processing device, control method, and program
JP7686439B2 (en) Audio processing device, control method, and program
US11729548B2 (en) Audio processing apparatus, control method, and storage medium, each for performing noise reduction using audio signals input from plurality of microphones
US12027176B2 (en) Apparatus and method for reducing noise corresponding to a noise source using noise data
JP2022054317A (en) Sound processor, control method, and program
JP5235644B2 (en) IMAGING DEVICE, IMAGE PROCESSING METHOD, AND IMAGING DEVICE CONTROL METHOD
US12094483B2 (en) Sound processing apparatus and control method
US7456893B2 (en) Method of controlling digital image processing apparatus for efficient reproduction and digital image processing apparatus using the method
JP2011049653A (en) Image capturing apparatus
JP2023030453A (en) Sound processing device, control method, and program
KR101464532B1 (en) Digital image processing apparatus and method for controlling the same
JP2005026889A (en) Electronic camera
JP6877246B2 (en) Speech processing device and its control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230912

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20231213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240625

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241018

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241211

R150 Certificate of patent or registration of utility model

Ref document number: 7604154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150