JP6586847B2 - Music score image analyzer - Google Patents

Music score image analyzer Download PDF

Info

Publication number
JP6586847B2
JP6586847B2 JP2015194932A JP2015194932A JP6586847B2 JP 6586847 B2 JP6586847 B2 JP 6586847B2 JP 2015194932 A JP2015194932 A JP 2015194932A JP 2015194932 A JP2015194932 A JP 2015194932A JP 6586847 B2 JP6586847 B2 JP 6586847B2
Authority
JP
Japan
Prior art keywords
index
score
symbol
shooting
unit
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.)
Active
Application number
JP2015194932A
Other languages
Japanese (ja)
Other versions
JP2017069843A (en
Inventor
山本 和彦
山本  和彦
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2015194932A priority Critical patent/JP6586847B2/en
Priority to PCT/JP2016/079057 priority patent/WO2017057694A1/en
Publication of JP2017069843A publication Critical patent/JP2017069843A/en
Priority to US15/938,544 priority patent/US10452940B2/en
Application granted granted Critical
Publication of JP6586847B2 publication Critical patent/JP6586847B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、楽譜を撮影する技術に関する。   The present invention relates to a technique for photographing a musical score.

書籍を撮影する技術が従来から提案されている。例えば、特許文献1には、利用者がデジタルカメラ等の撮像装置を利用して撮影した書籍の画像の湾曲歪を補正する技術が公開されている。   Techniques for photographing books have been proposed. For example, Patent Document 1 discloses a technique for correcting the distortion of a book image taken by a user using an imaging device such as a digital camera.

特開2013−93704号公報JP 2013-93704 A

特許文献1の技術を利用すれば、撮影画像の湾曲歪の補正が可能であるが、本来的には、撮影画像の歪みが低減される適切な撮影方向から撮影されることが重要である。しかし、利用者が、デジタルカメラ等のモニタで表示される書籍の歪みを目視により確認しながら撮影装置の撮影方向を調整し、撮影装置を適切な撮影方向に維持した状態で撮影の指示を付与することは、実際には容易ではない。以上の事情を考慮して、本発明は、利用者が撮影の指示をすることなく、適切な撮影方向から楽譜を撮影した画像を取得することを目的とする。   If the technique disclosed in Patent Document 1 is used, it is possible to correct the distortion of the captured image. However, it is essential that the captured image is originally captured from an appropriate imaging direction in which the distortion of the captured image is reduced. However, the user adjusts the shooting direction of the shooting device while visually checking the distortion of the book displayed on a monitor such as a digital camera, and gives a shooting instruction while maintaining the shooting device in an appropriate shooting direction. It's not really easy to do. In view of the above circumstances, an object of the present invention is to obtain an image in which a score is photographed from an appropriate photographing direction without a user instructing photographing.

以上の課題を解決するために、本発明に係る楽譜画像解析装置は、相互に並列された複数の譜表と各譜表に対して所定の位置に配置された楽譜記号とを含む楽譜を撮影装置による動画撮影で時系列に生成された各楽譜画像から楽譜記号を検出する記号検出部と、記号検出部が検出した複数の楽譜記号の配列である記号列を特定する記号列特定部と、楽譜に対する撮影方向の適否の指標である姿勢指標を記号列に応じて算出する指標算出部と、姿勢指標が所定の条件を満たす場合に撮影装置に楽譜画像の静止画撮影を指示する撮影制御部とを具備する。以上の構成では、楽譜に対する撮影方向の適否の指標である姿勢指標が所定の条件を満たす場合に撮影制御部が撮影装置に静止画撮影を指示する。したがって、利用者が撮影の指示をすることなく、適切な撮影方向で撮影した楽譜画像を取得することが可能である。   In order to solve the above-described problems, a score image analysis apparatus according to the present invention uses a photographing device to generate a score including a plurality of staves arranged in parallel to each other and score symbols arranged at predetermined positions with respect to each staff. A symbol detection unit that detects a musical score symbol from each score image generated in time series in moving image shooting, a symbol string identification unit that identifies a symbol string that is an array of a plurality of musical score symbols detected by the symbol detection unit, and a score An index calculation unit that calculates a posture index, which is an index of suitability of the shooting direction, according to a symbol string, and a shooting control unit that instructs the shooting device to shoot a still image of a score image when the posture index satisfies a predetermined condition It has. With the above configuration, the shooting control unit instructs the shooting device to take a still image when the posture index, which is an index of the appropriateness of the shooting direction with respect to the score, satisfies a predetermined condition. Therefore, it is possible to acquire a score image photographed in an appropriate photographing direction without the user instructing photographing.

本発明の好適な態様において、指標算出部は、楽譜記号の位置で記号列に交差する単位領域を設定する単位領域設定部と、楽譜記号が配置された譜表のうち単位領域に含まれる割合に応じた第1指標を算出する第1指標算出部とを含み、第1指標に応じた姿勢指標を設定する。以上の構成では、複数の楽譜記号の配列である記号列に交差する単位領域を設定し、単位領域に含まれる譜表の割合に応じた第1指標が算出されて姿勢指標に反映される。したがって、楽譜に対する撮影方向の適否を定量的に評価した姿勢指標を、静止画撮影の指示に適用できる。   In a preferred aspect of the present invention, the index calculation unit includes a unit region setting unit that sets a unit region that intersects the symbol string at the position of the musical score symbol, and a ratio included in the unit region in the staff in which the musical score symbol is arranged. And a first index calculation unit that calculates a corresponding first index, and sets an attitude index corresponding to the first index. In the above configuration, a unit region that intersects a symbol string that is an array of a plurality of musical score symbols is set, and a first index corresponding to the proportion of the staff included in the unit region is calculated and reflected in the posture index. Therefore, a posture index that quantitatively evaluates the suitability of the shooting direction with respect to the score can be applied to a still image shooting instruction.

本発明の好適な態様において、指標算出部は、記号列の角度に応じた第2指標を算出する第2指標算出部を含み、第2指標に応じた姿勢指標を設定する。以上の構成では、記号列の角度に応じた第2指標が算出されて姿勢指標に反映される。したがって、楽譜に対する撮影方向の適否を定量的に評価した姿勢指標を、静止画撮影の指示に適用できる。   In a preferred aspect of the present invention, the index calculation unit includes a second index calculation unit that calculates a second index corresponding to the angle of the symbol string, and sets a posture index corresponding to the second index. In the above configuration, the second index corresponding to the angle of the symbol string is calculated and reflected in the posture index. Therefore, a posture index that quantitatively evaluates the suitability of the shooting direction with respect to the score can be applied to a still image shooting instruction.

本発明の好適な態様において、姿勢指標は、撮影範囲の横方向が楽譜の横方向に平行となる状態に近いほど大きい数値となる指標であり、所定の条件は、姿勢指標が所定の閾値を上回ることである。以上の構成では、撮影範囲の横方向が楽譜の横方向に平行となる状態に近いほど姿勢指標は大きい数値となる構成のもとで、姿勢指標が所定の閾値を上回る場合に撮影制御部が撮影装置に楽譜画像の静止画撮影を指示する。したがって、撮影範囲の横方向が楽譜の横方向に平行となる状態に近い適切な撮影方向で撮影した楽譜画像を取得することが可能である。   In a preferred aspect of the present invention, the posture index is an index that becomes a larger value as the horizontal direction of the shooting range is closer to the horizontal direction of the score, and the predetermined condition is that the posture index has a predetermined threshold value. It is to exceed. In the above configuration, the posture control index becomes a larger value as the horizontal direction of the shooting range is closer to the horizontal direction of the score, and when the posture index exceeds a predetermined threshold, the shooting control unit Instructs the photographing apparatus to capture a still image of a score image. Therefore, it is possible to acquire a score image shot in an appropriate shooting direction close to a state in which the horizontal direction of the shooting range is parallel to the horizontal direction of the score.

第1実施形態の楽譜画像解析装置の構成図である。It is a lineblock diagram of the musical score image analysis device of a 1st embodiment. 撮影方向が楽譜の法線方向に対して平行な場合の楽譜画像の表示例である。It is a display example of a score image when the shooting direction is parallel to the normal direction of the score. 撮影方向が楽譜の法線方向に対して傾斜した場合の楽譜画像の表示例である。It is a display example of a score image when the shooting direction is inclined with respect to the normal direction of the score. 記号検出部の処理の説明図である。It is explanatory drawing of the process of a symbol detection part. 記号列特定部の処理の説明図である。It is explanatory drawing of the process of a symbol string specific | specification part. 単位領域設定部の処理の説明図である。It is explanatory drawing of the process of a unit area | region setting part. 第1指標算出部が第1指標を算出する処理のフローチャートである。It is a flowchart of the process in which a 1st parameter | index calculation part calculates a 1st parameter | index. 第1指標算出部の処理の説明図である。It is explanatory drawing of a process of a 1st parameter | index calculation part. 第2指標算出部が第2指標を算出する処理のフローチャートである。It is a flowchart of the process in which a 2nd parameter | index calculation part calculates a 2nd parameter | index. ベクトルを説明するための記号列図形の拡大図である。It is an enlarged view of a symbol string figure for explaining a vector. 楽譜画像の表示装置への表示例である。It is the example of a display on the display apparatus of a score image. 第1実施形態の制御装置が楽譜画像を解析する処理のフローチャートである。It is a flowchart of the process which the control apparatus of 1st Embodiment analyzes a score image. 第2実施形態の楽譜画像解析装置の構成図である。It is a block diagram of the musical score image analysis apparatus of 2nd Embodiment. 第2実施形態の制御装置が楽譜画像を解析する処理のフローチャートである。It is a flowchart of the process which the control apparatus of 2nd Embodiment analyzes a score image.

<第1実施形態>
図1は、第1実施形態に係る楽譜画像解析装置100の構成図である。楽譜画像解析装置100は、利用者が撮影した楽譜の画像を解析する装置であり、例えばスマートフォンやタブレット等の可搬型の装置で実現される。図1に例示される通り、第1実施形態の楽譜画像解析装置100は、撮影装置10と入力装置20と記憶装置30と表示装置40と制御装置50とを具備する。
<First Embodiment>
FIG. 1 is a configuration diagram of a score image analyzing apparatus 100 according to the first embodiment. The score image analysis apparatus 100 is an apparatus that analyzes an image of a score photographed by a user, and is realized by a portable device such as a smartphone or a tablet. As illustrated in FIG. 1, the score image analysis device 100 according to the first embodiment includes a photographing device 10, an input device 20, a storage device 30, a display device 40, and a control device 50.

撮影装置10は、画像を撮影するための装置であり、被写体からの到来光を電気信号に変換する撮像素子を含んで構成される。利用者は、印刷物等に記載された楽譜に対して所望の位置および方向に撮影装置10を保持した状態で楽譜を撮影する。撮影装置10は、所定の範囲(以下「撮影範囲」という)内の楽譜の画像(以下「楽譜画像」という)70を生成および出力する。第1実施形態の撮影装置10は動画撮影および静止画撮影が可能である。具体的には、撮影装置10は、動画撮影時には複数の楽譜画像70を所定の周期で時系列に生成し、静止画撮影時には1個の楽譜画像70を生成する。図2に例示される通り、以下の説明では、楽譜画像70の横方向(撮影範囲の横方向)をx軸方向と表記し、縦方向(撮影範囲の縦方向)をy軸方向と表記する。なお、第1実施形態では、撮影装置10が楽譜画像解析装置100に一体に搭載された構成を例示する。   The photographing apparatus 10 is an apparatus for photographing an image, and includes an image sensor that converts incoming light from a subject into an electrical signal. A user photographs a musical score while holding the photographing device 10 in a desired position and direction with respect to the musical score described on a printed matter or the like. The photographing apparatus 10 generates and outputs a score image (hereinafter referred to as a “score image”) 70 within a predetermined range (hereinafter referred to as a “shooting range”). The photographing apparatus 10 according to the first embodiment can perform moving image photographing and still image photographing. Specifically, the photographing apparatus 10 generates a plurality of musical score images 70 in a time series at a predetermined cycle when shooting a moving image, and generates a single musical score image 70 when shooting a still image. As illustrated in FIG. 2, in the following description, the horizontal direction (horizontal direction of the shooting range) of the score image 70 is expressed as the x-axis direction, and the vertical direction (vertical direction of the shooting range) is expressed as the y-axis direction. . In the first embodiment, a configuration in which the photographing apparatus 10 is integrally mounted on the score image analysis apparatus 100 is illustrated.

楽譜には、図2に例示される通り、相互に平行な複数の直線の集合(以下「譜表」という)62(1)〜62(N)と、各譜表62(n)(n=1〜N)に対して所定の位置に配置された楽譜記号72(n)との複数組(N組)が縦方向に並列される。第1実施形態の譜表62(n)は、相異なる音高を表象する5本の直線で構成される五線譜である。楽曲を表現する音符や休符,変化記号等の符号は譜表62(n)に対して任意の位置に配置される。第1実施形態では、楽譜の譜表62(n)に対して左端付近に位置するト音記号およびへ音記号を楽譜記号72(n)として例示する。   As illustrated in FIG. 2, the score includes a set of a plurality of straight lines (hereinafter referred to as “staff”) 62 (1) to 62 (N) and each staff 62 (n) (n = 1 to 1). A plurality (N sets) of musical score symbols 72 (n) arranged at predetermined positions with respect to N) are juxtaposed in the vertical direction. The staff 62 (n) of the first embodiment is a staff score composed of five straight lines representing different pitches. Codes such as notes, rests, and change symbols representing the music are arranged at arbitrary positions with respect to the staff 62 (n). In the first embodiment, a treble clef and a syllabary symbol located near the left end with respect to the musical score staff 62 (n) are exemplified as a musical score symbol 72 (n).

利用者は、楽譜(1頁分)の全体が撮影範囲に包含されるように撮影装置10(楽譜画像解析装置100)を保持して撮影する。具体的には、利用者は、撮影方向が楽譜の法線方向に対して平行となり、かつ、楽譜画像70のx軸方向が楽譜の横方向に平行となる状態(以下「基準状態」という)となるように撮影方向を調整する。基準状態では、図2に例示される通り、複数の楽譜記号72(1)〜72(N)が破線15で示すようにy軸方向に平行に配列し、かつ、複数の譜表62(n)の各々がx軸方向に平行となる。しかし、実際には、利用者が撮影装置10を基準状態に継続的に保持することは容易ではなく、撮影方向が楽譜の法線方向に対して傾斜した状態、または、撮影範囲が楽譜の法線方向を軸として基準状態から回転した状態(楽譜画像70のx軸方向が楽譜の横方向に平行とならない状態)となり得る。以上のように撮影方向が傾斜した状態(以下「傾斜状態」という)や撮影範囲が回転した状態(以下「回転状態」という)では、図3に破線15で例示される通り、楽譜画像70において複数の楽譜記号72(1)〜72(N)の配列がy軸方向に平行にならない場合があり得る。   A user holds and shoots the photographing apparatus 10 (the musical score image analyzing apparatus 100) so that the entire musical score (for one page) is included in the photographing range. Specifically, the user has a state in which the shooting direction is parallel to the normal direction of the score and the x-axis direction of the score image 70 is parallel to the horizontal direction of the score (hereinafter referred to as “reference state”). Adjust the shooting direction so that In the reference state, as illustrated in FIG. 2, a plurality of score symbols 72 (1) to 72 (N) are arranged in parallel in the y-axis direction as indicated by a broken line 15, and a plurality of staffs 62 (n). Are parallel to the x-axis direction. However, in practice, it is not easy for the user to continuously hold the photographing apparatus 10 in the reference state, and the photographing direction is inclined with respect to the normal direction of the musical score, or the photographing range is a musical score method. It can be a state rotated from the reference state with the line direction as an axis (a state in which the x-axis direction of the score image 70 is not parallel to the horizontal direction of the score). As described above, in the state where the shooting direction is inclined (hereinafter referred to as “tilt state”) and the state where the shooting range is rotated (hereinafter referred to as “rotation state”), as illustrated by the broken line 15 in FIG. There may be a case where the arrangement of the plurality of score symbols 72 (1) to 72 (N) is not parallel to the y-axis direction.

図1の表示装置40は、例えば液晶表示パネルであり、制御装置50から指示された画像を表示する。例えば撮影装置10による動画撮影で生成された複数の楽譜画像70が表示装置40に順次に表示(ライブビュー表示)される。入力装置20は、楽譜画像解析装置100に対する各種の指示のために利用者が操作する操作機器であり、例えば利用者が操作する複数の操作子を含んで構成される。具体的には、利用者は、入力装置20を適宜に操作することで動画撮影や静止画撮影を楽譜画像解析装置100に指示することが可能である。表示装置40と一体に構成されたタッチパネルを入力装置20として採用することも可能である。   The display device 40 of FIG. 1 is a liquid crystal display panel, for example, and displays an image instructed from the control device 50. For example, a plurality of score images 70 generated by moving image shooting by the shooting device 10 are sequentially displayed (live view display) on the display device 40. The input device 20 is an operation device operated by a user for various instructions to the score image analysis device 100, and includes, for example, a plurality of operators operated by the user. Specifically, the user can instruct the score image analysis apparatus 100 to shoot moving images or still images by appropriately operating the input device 20. A touch panel configured integrally with the display device 40 may be employed as the input device 20.

記憶装置30は、磁気記録媒体や半導体記録媒体等の公知の記録媒体であり、制御装置50が実行するプログラムや制御装置50が使用する各種のデータを記憶する。例えば、撮影装置10が静止画撮影で生成した静止画像の楽譜画像70Aが記憶装置30に記憶される。   The storage device 30 is a known recording medium such as a magnetic recording medium or a semiconductor recording medium, and stores a program executed by the control device 50 and various data used by the control device 50. For example, a score image 70A of a still image generated by still image shooting by the shooting device 10 is stored in the storage device 30.

制御装置50は、例えばCPU(Central Processing Unit)等の処理装置で構成され、記憶装置30に記憶されたプログラムを実行することで、図1に例示される通り、撮影装置10が撮影した楽譜画像70を解析する複数の要素(記号検出部510、記号列特定部520、単位領域設定部532、第1指標算出部534、第2指標算出部544、姿勢指標算出部550、表示制御部560、撮影制御部570)として機能する。なお、制御装置50の一部の機能を専用の電子回路で実現した構成や、制御装置50の機能を複数の装置に分散した構成も採用され得る。   The control device 50 is configured by a processing device such as a CPU (Central Processing Unit), for example, and executes a program stored in the storage device 30 to execute a musical score image photographed by the photographing device 10 as illustrated in FIG. 70, a plurality of elements (symbol detection unit 510, symbol string identification unit 520, unit region setting unit 532, first index calculation unit 534, second index calculation unit 544, posture index calculation unit 550, display control unit 560, It functions as a photographing control unit 570). A configuration in which a part of the function of the control device 50 is realized by a dedicated electronic circuit, or a configuration in which the function of the control device 50 is distributed to a plurality of devices may be employed.

制御装置50が実現する各要素について詳述する。以下に説明する各要素による処理は、実際には撮影装置10による動画撮影に並行して楽譜画像70毎に順次に実行されるが(詳細は後述)、以下の説明では便宜的に1個の楽譜画像70に着目する。   Each element realized by the control device 50 will be described in detail. The processing by each element described below is actually executed sequentially for each score image 70 in parallel with the moving image shooting by the shooting apparatus 10 (details will be described later). Focus on the score image 70.

記号検出部510は、撮影装置10が動画撮影で時系列に生成した各楽譜画像70から複数(N個)の楽譜記号72(1)〜72(N)を検出する。記号検出部510による楽譜記号72(n)の検出には、公知の画像認識(例えばパターン認識)技術が任意に採用され得る。図4は、第1実施形態の楽譜画像70に対する記号検出部510の処理の説明図である。図4に例示される通り、記号検出部510は、楽譜画像70から検出した各楽譜記号72(n)を含むように記号領域76(n)を設定する。記号領域76(n)は、x軸に平行な直線とy軸に平行な直線とで構成される矩形状の領域である。   The symbol detection unit 510 detects a plurality (N) of musical score symbols 72 (1) to 72 (N) from each musical score image 70 generated by the photographing apparatus 10 in time series during moving image shooting. For the detection of the musical score symbol 72 (n) by the symbol detection unit 510, a known image recognition (for example, pattern recognition) technique can be arbitrarily employed. FIG. 4 is an explanatory diagram of processing of the symbol detection unit 510 for the musical score image 70 of the first embodiment. As illustrated in FIG. 4, the symbol detection unit 510 sets the symbol region 76 (n) so as to include each score symbol 72 (n) detected from the score image 70. The symbol area 76 (n) is a rectangular area composed of a straight line parallel to the x-axis and a straight line parallel to the y-axis.

楽譜記号72(1)〜72(N)が譜表62(n)に対して左端付近にあること、および、楽譜(1頁分)の全体が撮影範囲に包含されるように利用者が撮影することを考慮すると、N個の楽譜記号72(1)〜72(N)は、楽譜画像70内で左側に位置する縦方向の領域内に位置する可能性が高い。そこで、第1実施形態の記号検出部510は、図4に例示される通り、楽譜画像70のうち楽譜記号72(1)〜72(N)が位置すると予想される所定の範囲74内を対象として楽譜記号72(1)〜72(N)を検出する。すなわち、範囲74の外側の領域は楽譜記号72(n)の探索範囲から除外される。範囲74は、楽譜画像70の左端にx軸に平行な直線とy軸に平行な直線とで構成され、y軸方向に長尺な短形状の領域である。なお、範囲74に楽譜記号72(1)〜72(N)が含まれるように撮影装置10による撮影範囲(楽譜と撮影装置10との距離)を利用者が調整する、ということも可能である。以上の通り、第1実施形態では、楽譜画像70の所定の範囲74内を楽譜記号72(n)の探索対象とする一方で、所定の範囲74外は楽譜記号72(n)の探索を行わない。したがって、楽譜画像70の全範囲を楽譜記号72(n)の探索対象とする構成と比較して、記号検出部510にかかる処理負荷(ひいては楽譜画像解析装置100全体の処理負荷)を軽減することが可能である。   The user shoots such that the musical score symbols 72 (1) to 72 (N) are near the left end with respect to the staff 62 (n) and that the entire musical score (one page) is included in the shooting range. Considering this, it is highly possible that the N score symbols 72 (1) to 72 (N) are located in a vertical region located on the left side in the score image 70. Therefore, as illustrated in FIG. 4, the symbol detection unit 510 according to the first embodiment targets within a predetermined range 74 in which the score symbols 72 (1) to 72 (N) are expected to be located in the score image 70. The musical score symbols 72 (1) to 72 (N) are detected as follows. That is, the area outside the range 74 is excluded from the search range of the musical score symbol 72 (n). The range 74 is a short-shaped area that is formed by a straight line parallel to the x-axis and a straight line parallel to the y-axis at the left end of the score image 70 and is long in the y-axis direction. It is also possible for the user to adjust the shooting range (distance between the score and the shooting device 10) by the shooting device 10 so that the score 74 includes score symbols 72 (1) to 72 (N). . As described above, in the first embodiment, the musical score symbol 72 (n) is searched for within the predetermined range 74 of the musical score image 70 while the musical score symbol 72 (n) is searched outside the predetermined range 74. Absent. Therefore, the processing load applied to the symbol detection unit 510 (and thus the processing load of the entire score image analysis apparatus 100) is reduced compared with the configuration in which the entire range of the score image 70 is the search target of the score symbol 72 (n). Is possible.

図1の記号列特定部520は、記号検出部510が検出したN個の楽譜記号72(1)〜72(N)の配列(以下「記号列」という)を特定する。図5は、第1実施形態に係る楽譜画像70に対する記号列特定部520の処理の説明図である。図5に例示される通り、第1実施形態の記号列特定部520は、記号列を表す記号列図形78を設定する。具体的には、記号列特定部520は、N個の記号領域76(1)〜76(N)の各々の頂点を内包し、かつ、面積が最小となる矩形状の記号列図形78を設定する。前述の通り、傾斜状態や回転状態では、記号列がx軸方向およびy軸方向に対して傾斜する。したがって、図5から理解される通り、記号列特定部520が特定する記号列図形78は、楽譜の法線方向に対する撮影方向の傾斜や楽譜に対する撮影範囲の回転の度合に応じて、x軸方向およびy軸方向に対して傾斜し得る。   The symbol string specifying unit 520 in FIG. 1 specifies an array of N score symbols 72 (1) to 72 (N) detected by the symbol detecting unit 510 (hereinafter referred to as “symbol string”). FIG. 5 is an explanatory diagram of processing of the symbol string specifying unit 520 for the musical score image 70 according to the first embodiment. As illustrated in FIG. 5, the symbol string specifying unit 520 of the first embodiment sets a symbol string graphic 78 representing a symbol string. Specifically, the symbol string specifying unit 520 sets a rectangular symbol string figure 78 that includes each vertex of the N symbol areas 76 (1) to 76 (N) and has the smallest area. To do. As described above, the symbol string is inclined with respect to the x-axis direction and the y-axis direction in the inclined state and the rotated state. Therefore, as understood from FIG. 5, the symbol string figure 78 specified by the symbol string specifying unit 520 is in the x-axis direction in accordance with the inclination of the shooting direction with respect to the normal direction of the score and the degree of rotation of the shooting range with respect to the score. And can be inclined with respect to the y-axis direction.

図1の単位領域設定部532は、図6に例示される通り、記号検出部510が検出した各楽譜記号72(n)に対応するN個の単位領域A(1)〜A(N)を設定する。任意の1個の楽譜記号72(n)に対応する単位領域A(n)は、記号列特定部520が特定した記号列図形78に当該楽譜記号72(n)の位置で交差する矩形状の領域である。具体的には、単位領域A(n)は、楽譜記号72(n)を端点として、記号列図形78の長辺に直交する方向に延在する矩形状の領域である。単位領域A(n)の横幅(記号列図形78に直交する方向のサイズ)は、楽譜画像70の横幅に対して所定の比率(例えば95%)に設定され、単位領域A(n)の縦幅(記号列図形78に平行な方向のサイズ)は、記号領域76(n)の縦幅に対して所定の比率(例えば120〜130%)に設定される。図6から理解される通り、記号列図形78が傾斜している場合は、単位領域A(n)も同様にx軸方向およびy軸方向に対して傾斜する。   The unit area setting unit 532 in FIG. 1 selects N unit areas A (1) to A (N) corresponding to each score symbol 72 (n) detected by the symbol detection unit 510, as illustrated in FIG. Set. A unit area A (n) corresponding to an arbitrary musical score symbol 72 (n) has a rectangular shape that intersects the symbol string figure 78 identified by the symbol string identifying unit 520 at the position of the musical score symbol 72 (n). It is an area. Specifically, the unit area A (n) is a rectangular area extending in a direction orthogonal to the long side of the symbol string figure 78 with the musical score symbol 72 (n) as an end point. The width of the unit area A (n) (size in the direction orthogonal to the symbol string figure 78) is set to a predetermined ratio (for example, 95%) with respect to the width of the score image 70, and the vertical length of the unit area A (n). The width (size in the direction parallel to the symbol string figure 78) is set to a predetermined ratio (for example, 120 to 130%) with respect to the vertical width of the symbol area 76 (n). As understood from FIG. 6, when the symbol string figure 78 is inclined, the unit area A (n) is similarly inclined with respect to the x-axis direction and the y-axis direction.

図1の第1指標算出部534は、第1指標X1を算出する。第1指標X1は、撮影方向が楽譜の法線方向に対して傾斜する度合の指標である。具体的には、第1指標算出部534は、単位領域設定部532が設定した単位領域A(n)について、単位領域A(n)に対応する楽譜記号72(n)が配置された譜表62(n)のうち単位領域A(n)に含まれる割合R(n)を算出し、N個の単位領域A(1)〜A(N)における割合R(1)〜R(N)に応じた第1指標X1を算出する。   The first index calculation unit 534 in FIG. 1 calculates the first index X1. The first index X1 is an index of the degree to which the shooting direction is inclined with respect to the normal direction of the score. Specifically, the first index calculation unit 534 has a staff 62 in which score symbols 72 (n) corresponding to the unit region A (n) are arranged for the unit region A (n) set by the unit region setting unit 532. The ratio R (n) included in the unit area A (n) in (n) is calculated, and according to the ratios R (1) to R (N) in the N unit areas A (1) to A (N). The first index X1 is calculated.

図7は、第1実施形態の第1指標算出部534が第1指標X1を算出する処理(以下「第1指標算出処理」という)S5のフローチャートであり、図8は、第1指標算出処理S5の説明図である。単位領域設定部532の単位領域A(n)の設定を契機として第1指標算出処理S5が開始される。   FIG. 7 is a flowchart of a process S5 (hereinafter referred to as “first index calculation process”) S5 in which the first index calculation unit 534 of the first embodiment calculates the first index X1, and FIG. 8 illustrates the first index calculation process. It is explanatory drawing of S5. The first index calculation process S5 is started when the unit area setting unit 532 sets the unit area A (n).

第1指標算出処理S5を開始すると、第1指標算出部534は、楽譜画像70に注目領域Bを設定する(S5-1)。注目領域Bは、図8に例示される通り、x軸に平行な直線とy軸に平行な直線とで構成される矩形状の領域である。具体的には、注目領域Bの横幅は、楽譜画像70の横幅に対して所定の比率(例えば95%)に設定され、注目領域Bの縦幅は、記号列図形78の全ての頂点を含むサイズに設定される。   When the first index calculation process S5 is started, the first index calculation unit 534 sets the attention area B in the score image 70 (S5-1). The attention area B is a rectangular area composed of a straight line parallel to the x-axis and a straight line parallel to the y-axis, as illustrated in FIG. Specifically, the horizontal width of the attention area B is set to a predetermined ratio (for example, 95%) with respect to the horizontal width of the score image 70, and the vertical width of the attention area B includes all vertices of the symbol string graphic 78. Set to size.

第1指標算出部534は、楽譜画像70のうち図7のステップS5-1で設定した注目領域Bの内側を対象として直線63の検出(以下「直線検出」という)を行う(S5-2)。具体的には、図8に例示される通り、楽譜画像70の注目領域B内に対して直線検出を行い、楽譜画像70内の譜表62(1)〜62(N)を含む図形から複数の直線63を検出する。直線検出には、公知の特徴検出(例えばハフ変換)処理が任意に採用され得る。なお、注目領域Bの外側は楽譜ではない可能性が高いから、第1指標算出部534による直線検出の対象から除外される。   The first index calculation unit 534 detects the straight line 63 (hereinafter referred to as “straight line detection”) for the inside of the attention area B set in step S5-1 in FIG. 7 in the score image 70 (S5-2). . Specifically, as illustrated in FIG. 8, straight line detection is performed in the attention area B of the score image 70, and a plurality of figures including the staffs 62 (1) to 62 (N) in the score image 70 are detected. A straight line 63 is detected. For the straight line detection, a known feature detection (for example, Hough transform) process may be arbitrarily employed. Note that the outside of the attention area B is not likely to be a score, and is therefore excluded from the line detection target by the first index calculation unit 534.

第1指標算出部534は、図7のステップS5-2で検出した複数の直線63を譜表62(n)毎(楽譜記号72(n)毎)に複数の集合64(n)に分類する(S5-3)。直線63の分類には、公知のクラスタリング技術(例えばk-means法)が任意に採用され得る。具体的には、第1指標算出部534は、楽譜画像70から検出した複数の直線63を、記号検出部510が検出した楽譜記号72(n)と同数の集合64(n)に分類する。例えば、楽譜記号72(n)の個数Nを分類数として指定したクラスタリングにより、複数の直線63をN個の集合64(n)に分類することが可能である。また、前述の通り、譜表62(n)は、相互に平行な複数の直線の集合であるので、任意の1個の譜表62(n)から検出された複数の直線63は、相互に近接した位置に分布する。したがって、図8に例示される通り、楽譜記号72(n)が配置された譜表62(n)から検出された複数の直線63は、同一の集合64(n)に分類され得る。したがって、例えば1個の単位領域A(n)が複数の譜表62(n)に跨るようにx軸方向に対して傾斜した状態でも、単位領域A(n)に含まれる譜表62(n)の割合R(n)を譜表62(n)毎に高精度に特定することが可能である。また、複数の譜表62(n)から検出される複数の直線63が楽譜記号72(n)と同数の集合64(n)に分類されるので、複数の直線63の分類数が未知である構成と比較して、複数の直線63を適切に分類できるという利点がある。   The first index calculation unit 534 classifies the plurality of straight lines 63 detected in step S5-2 of FIG. 7 into a plurality of sets 64 (n) for each staff 62 (n) (for each score symbol 72 (n)) ( S5-3). A known clustering technique (for example, k-means method) can be arbitrarily adopted for the classification of the straight line 63. Specifically, the first index calculation unit 534 classifies the plurality of straight lines 63 detected from the score image 70 into the same number of sets 64 (n) as the score symbols 72 (n) detected by the symbol detection unit 510. For example, a plurality of straight lines 63 can be classified into N sets 64 (n) by clustering in which the number N of musical score symbols 72 (n) is designated as the classification number. Further, as described above, the staff 62 (n) is a set of a plurality of straight lines parallel to each other. Therefore, the plurality of straight lines 63 detected from any one staff 62 (n) are close to each other. Distributed in position. Therefore, as illustrated in FIG. 8, the plurality of straight lines 63 detected from the staff 62 (n) in which the musical score symbol 72 (n) is arranged can be classified into the same set 64 (n). Therefore, for example, even when one unit area A (n) is inclined with respect to the x-axis direction so as to straddle a plurality of staves 62 (n), the staff 62 (n) included in the unit area A (n) The ratio R (n) can be specified with high accuracy for each staff 62 (n). Further, since the plurality of straight lines 63 detected from the plurality of staffs 62 (n) are classified into the same number of sets 64 (n) as the score symbols 72 (n), the number of classifications of the plurality of straight lines 63 is unknown. There is an advantage that a plurality of straight lines 63 can be appropriately classified.

第1指標算出部534は、N個の単位領域A(1)〜A(N)の各々について、図7のステップS5-3で集合64(n)に分類された複数の直線63が当該単位領域A(n)に含まれる割合R(n)を算出する(S5-4)。具体的には、集合64(n)に分類された複数の直線63の各々の線上の点(例えば端点や中点)のうち単位領域A(n)内に含まれる点の個数の割合R(n)を算出する。以上のように各直線63上の点を計数する構成によれば、例えば各直線63のうち単位領域A(n)内に位置する長さの比率を算定する構成と比較して、割合R(n)の算出が容易であるという利点がある。   For each of the N unit areas A (1) to A (N), the first index calculation unit 534 includes a plurality of straight lines 63 classified into the set 64 (n) in step S5-3 in FIG. The ratio R (n) included in the region A (n) is calculated (S5-4). Specifically, the ratio R () of the number of points included in the unit area A (n) among the points (for example, end points and midpoints) on each line of the plurality of straight lines 63 classified into the set 64 (n). n) is calculated. As described above, according to the configuration in which the points on each straight line 63 are counted, for example, the ratio R (compared with the configuration in which the ratio of the length of each straight line 63 located in the unit area A (n) is calculated. There is an advantage that the calculation of n) is easy.

撮影方向が楽譜の法線方向に平行な基準状態では、各譜表62(n)はx軸方向に延在する一方、記号列図形78がy軸方向に略平行になることで各単位領域A(n)はx軸方向に略平行な方向(すなわち譜表62(n)に略平行な方向)に延在する。したがって、集合64(n)に分類された直線63の殆どが単位領域A(n)に内包されるので、割合R(n)は、大きい値となる。他方、撮影方向が楽譜の法線方向に対して傾斜した傾斜状態では、例えば、図6に例示される通り、各譜表62(n)はx軸方向に延在する一方、記号列図形78がx軸およびy軸方向に傾斜することで各単位領域A(n)もx軸およびy軸方向に対して傾斜した方向に延在する。したがって、図8に例示される通り、集合64(n)に分類された直線63のうち、単位領域A(n)に内包されない直線63が多くなり、割合R(n)は、小さい値となる。つまり、撮影方向が楽譜の法線方向に対して傾斜する度合の指標として割合R(n)を利用可能である。   In a reference state in which the shooting direction is parallel to the normal direction of the score, each staff 62 (n) extends in the x-axis direction, while the symbol string figure 78 is substantially parallel to the y-axis direction, so that each unit area A (n) extends in a direction substantially parallel to the x-axis direction (that is, a direction substantially parallel to the staff 62 (n)). Accordingly, since most of the straight lines 63 classified into the set 64 (n) are included in the unit area A (n), the ratio R (n) is a large value. On the other hand, in the inclined state in which the shooting direction is inclined with respect to the normal direction of the score, for example, as shown in FIG. 6, each staff 62 (n) extends in the x-axis direction, while the symbol string figure 78 is displayed. By inclining in the x-axis and y-axis directions, each unit region A (n) also extends in a direction inclined with respect to the x-axis and y-axis directions. Therefore, as illustrated in FIG. 8, among the straight lines 63 classified into the set 64 (n), the straight lines 63 that are not included in the unit area A (n) increase, and the ratio R (n) is a small value. . That is, the ratio R (n) can be used as an index of the degree to which the shooting direction is inclined with respect to the normal direction of the score.

第1指標算出部534は、図7のステップS5-4で算出したN個の単位領域A(1)〜A(N)における各々の割合R(n)に応じた第1指標X1を算出する(S5-5)。具体的には、N個の割合R(1)〜R(N)の合計や加重和が第1指標X1として算出される。以上の通り、第1実施形態では、N個の単位領域A(1)〜A(N)にわたる割合R(n)に応じて第1指標X1を算出するので、撮影方向の楽譜の法線方向に対する傾斜の度合を楽譜画像70の広範囲にわたり総合的に評価することができる。以上が第1指標算出処理S5の具体例である。   The first index calculation unit 534 calculates a first index X1 corresponding to each ratio R (n) in the N unit areas A (1) to A (N) calculated in step S5-4 in FIG. (S5-5). Specifically, the total or weighted sum of N ratios R (1) to R (N) is calculated as the first index X1. As described above, in the first embodiment, since the first index X1 is calculated according to the ratio R (n) over the N unit areas A (1) to A (N), the normal direction of the score in the shooting direction It is possible to comprehensively evaluate the degree of inclination with respect to a wide range of the score image 70. The above is a specific example of the first index calculation process S5.

図1の第2指標算出部544は、第2指標X2を算出する。第2指標X2は、楽譜の法線方向に対する撮影方向の傾斜や楽譜に対する撮影範囲の回転の度合の指標である。具体的には、第2指標算出部544は、記号列特定部520が特定した記号列(N個の楽譜記号72(1)〜72(N)の配列)の角度に応じて第2指標X2を算出する。図9は、第1実施形態の第2指標算出部544が第2指標X2を算出する処理(以下「第2指標算出処理」という)S6のフローチャートである。例えば記号列特定部520による記号列の特定を契機として第2指標算出処理S6が開始される。   The second index calculation unit 544 in FIG. 1 calculates the second index X2. The second index X2 is an index of the inclination of the shooting direction with respect to the normal direction of the score and the degree of rotation of the shooting range with respect to the score. Specifically, the second index calculation unit 544 sets the second index X2 according to the angle of the symbol string (array of N score symbols 72 (1) to 72 (N)) specified by the symbol string specifying unit 520. Is calculated. FIG. 9 is a flowchart of a process S6 in which the second index calculation unit 544 of the first embodiment calculates the second index X2 (hereinafter referred to as “second index calculation process”). For example, the second index calculation process S6 is started when the symbol string specifying unit 520 specifies the symbol string.

第2指標算出処理S6を開始すると、第2指標算出部544は、記号列特定部520が特定した記号列に平行なベクトルCを求める(S6-1)。具体的には、記号列特定部520は、記号列図形78を構成する直線に平行なベクトルCを求める。図10は、ベクトルCを説明するための記号列図形78の拡大図である。例えば、記号列図形78の頂点のうちx軸に最も近い位置にある頂点を始点Pとして、記号列図形78の長辺に平行でx軸に対して角度θをなすベクトルCを求める。ベクトルCは、大きさ(絶対値)が1に正規化された単位ベクトルである。ベクトルCの角度θは、x軸に対する記号列の角度とも換言され得る。   When the second index calculation process S6 is started, the second index calculation unit 544 obtains a vector C parallel to the symbol string specified by the symbol string specifying unit 520 (S6-1). Specifically, the symbol string specifying unit 520 obtains a vector C parallel to the straight line constituting the symbol string graphic 78. FIG. 10 is an enlarged view of the symbol string figure 78 for explaining the vector C. For example, a vertex C closest to the x axis among the vertices of the symbol string figure 78 is set as a starting point P, and a vector C that is parallel to the long side of the symbol string figure 78 and forms an angle θ with respect to the x axis is obtained. The vector C is a unit vector whose size (absolute value) is normalized to 1. The angle θ of the vector C can also be restated as the angle of the symbol string with respect to the x axis.

第2指標算出部544は、ベクトルCにおけるy軸方向の成分Cyの絶対値|Cy|(0≦|Cy|≦1)を第2指標X2として算出する(S6-2)。基準状態では、記号列図形78がy軸方向に略平行になるため、ベクトルCも同様にy軸に略平行となる。したがって、ベクトルCの成分Cyの絶対値|Cy|、つまり第2指標X2は、最大値である1に近い値となる。他方、傾斜状態や回転状態では、記号列図形78はx軸およびy軸方向に対して傾斜する。したがって、第2指標X2は1より小さくなる。以上の説明から理解される通り、傾斜状態において撮影方向が楽譜の法線方向に対して傾斜する度合、および、回転状態において撮影範囲が基準状態から回転する度合の指標として第2指標X2を利用可能である。   The second index calculation unit 544 calculates the absolute value | Cy | (0 ≦ | Cy | ≦ 1) of the component Cy in the y-axis direction in the vector C as the second index X2 (S6-2). In the reference state, since the symbol string figure 78 is substantially parallel to the y-axis direction, the vector C is also substantially parallel to the y-axis. Therefore, the absolute value | Cy | of the component Cy of the vector C, that is, the second index X2 is a value close to 1 which is the maximum value. On the other hand, in the inclined state or the rotated state, the symbol string figure 78 is inclined with respect to the x-axis and y-axis directions. Therefore, the second index X2 is smaller than 1. As understood from the above description, the second index X2 is used as an index of the degree to which the shooting direction is inclined with respect to the normal direction of the score in the tilted state and the degree to which the shooting range is rotated from the reference state in the rotated state. Is possible.

図1の姿勢指標算出部550は、姿勢指標Zを算出する。姿勢指標Zは、撮影装置10を保持する利用者の姿勢(撮影装置10の撮影方向)が基準状態に近いか否かを表す指標である。具体的には、姿勢指標算出部550は、第1指標算出部534が算出した第1指標X1と第2指標算出部544が算出した第2指標X2とに応じて姿勢指標Zを算出する。例えば、第1指標X1と第2指標X2との積が姿勢指標Zとして算出される。前述の通り、第1指標X1も第2指標X2も基準状態に近い(すなわち、撮影範囲のx軸方向が楽譜の横方向に平行となる状態に近い)ほど大きい値をとるので、第1指標X1と第2指標X2の積である姿勢指標Zは、撮影方向が基準状態に近いほど大きくなる。つまり、撮影装置10の撮影方向が基準状態に近いか否かの指標として姿勢指標Zを利用可能である。   The posture index calculation unit 550 in FIG. 1 calculates the posture index Z. The posture index Z is an index indicating whether or not the posture of the user holding the photographing apparatus 10 (the photographing direction of the photographing apparatus 10) is close to the reference state. Specifically, posture index calculation unit 550 calculates posture index Z according to first index X1 calculated by first index calculation unit 534 and second index X2 calculated by second index calculation unit 544. For example, the product of the first index X1 and the second index X2 is calculated as the posture index Z. As described above, since both the first index X1 and the second index X2 are closer to the reference state (that is, closer to the state in which the x-axis direction of the shooting range is parallel to the horizontal direction of the score), the first index X1 takes a larger value. The posture index Z, which is the product of X1 and the second index X2, increases as the shooting direction approaches the reference state. That is, the posture index Z can be used as an index as to whether or not the shooting direction of the shooting apparatus 10 is close to the reference state.

以上の説明から理解される通り、図1の単位領域設定部532と第1指標算出部534と第2指標算出部544と姿勢指標算出部550とは、楽譜に対する撮影方向の適否の指標である姿勢指標Zを算出する指標算出部530として機能する。   As understood from the above description, the unit area setting unit 532, the first index calculation unit 534, the second index calculation unit 544, and the posture index calculation unit 550 of FIG. 1 are indicators of the suitability of the shooting direction with respect to the score. It functions as an index calculation unit 530 that calculates the attitude index Z.

図1の表示制御部560は、楽譜画像70の解析結果を表示装置40に表示させる。具体的には、第1実施形態の表示制御部560は、図11に例示される通り、記号列特定部520が設定した記号列図形78と、記号列図形78の基準となる基準図形80と、姿勢指標算出部550が算出した姿勢指標Zとを表示装置40に表示させる。第1実施形態では、基準図形80は、楽譜記号72(n)の探索対象となる範囲74の概形である。具体的には、表示制御部560は、図11に例示される通り、記号列図形78と基準図形80とを楽譜画像70に重ねて表示装置40に表示させる。また、姿勢指標Zを表示装置40に表示させる。記号列図形78と基準図形80と姿勢指標Zとは、撮影装置10による楽譜の動画撮影に並行して表示装置40に表示される。なお、表示制御部560が表示装置40に表示させる項目は任意であるので、例えば、図11に例示される通り、姿勢指標Zの値(スコア)を利用者が調整する目安とするために、「スコアを高くしてください。」等の文字列を表示させることも可能である。   The display control unit 560 of FIG. 1 displays the analysis result of the score image 70 on the display device 40. Specifically, as illustrated in FIG. 11, the display control unit 560 of the first embodiment includes a symbol string graphic 78 set by the symbol string specifying unit 520 and a reference graphic 80 serving as a reference for the symbol string graphic 78. The posture index Z calculated by the posture index calculation unit 550 is displayed on the display device 40. In the first embodiment, the reference graphic 80 is a rough shape of the range 74 to be searched for the musical score symbol 72 (n). Specifically, as illustrated in FIG. 11, the display control unit 560 causes the symbol string graphic 78 and the reference graphic 80 to be superimposed on the score image 70 and displayed on the display device 40. In addition, the posture index Z is displayed on the display device 40. The symbol string graphic 78, the reference graphic 80, and the posture index Z are displayed on the display device 40 in parallel with the moving image shooting of the score by the shooting device 10. Since the items displayed on the display device 40 by the display control unit 560 are arbitrary, for example, as illustrated in FIG. 11, in order to use the value (score) of the posture index Z as a guideline for the user to adjust, It is also possible to display a character string such as “Please increase the score”.

図1の撮影制御部570は、撮影装置10の撮影動作を制御する。具体的には、第1実施形態の撮影制御部570は、動画撮影の指示を利用者が入力装置20に付与した場合には撮影装置10に動画撮影を指示し、静止画撮影の指示を利用者が入力装置20に付与した場合には撮影装置10に静止画撮影を指示する。利用者は、動画撮影中の任意の時点で静止画撮影の指示を入力装置20に付与することが可能である。静止画撮影で生成された静止画像の楽譜画像70Aは撮影制御部570により記憶装置30に格納される。   The imaging control unit 570 in FIG. 1 controls the imaging operation of the imaging device 10. Specifically, the shooting control unit 570 of the first embodiment instructs the shooting device 10 to shoot a moving image when the user gives a moving image shooting instruction to the input device 20, and uses the still image shooting instruction. When the user gives the input device 20, the photographing device 10 is instructed to take a still image. The user can give a still image shooting instruction to the input device 20 at any time during moving image shooting. A still image score image 70 </ b> A generated by still image shooting is stored in the storage device 30 by the shooting control unit 570.

図12は、第1実施形態の制御装置50が楽譜画像70を解析する処理(以下「楽譜画像解析処理」という)のフローチャートである。利用者からの動画撮影の指示を契機として楽譜画像解析処理が開始される。楽譜画像解析処理を開始すると、制御装置50は、撮影装置10が動画撮影で生成する複数の楽譜画像70の各々を順次に取得する(S1)。   FIG. 12 is a flowchart of processing (hereinafter referred to as “score image analysis processing”) in which the control device 50 according to the first embodiment analyzes the score image 70. The musical score image analysis process is started in response to an instruction for moving image shooting from the user. When the musical score image analysis process is started, the control device 50 sequentially acquires each of the plurality of musical score images 70 generated by the photographing device 10 through moving image photographing (S1).

記号検出部510は、撮影装置10が生成した楽譜画像70から楽譜記号72(n)を検出する(S2)。記号列特定部520は、記号検出部510が検出した複数の楽譜記号72(1)〜72(N)の配列である記号列(記号列図形78)を特定する(S3)。単位領域設定部532は、記号列特定部520が特定した記号列に楽譜記号72(n)の位置で交差する単位領域A(n)を設定する(S4)。第1指標算出部534は、楽譜記号72(n)が配置された譜表62(n)のうち単位領域A(n)に含まれる割合R(n)を算出し、N個の単位領域A(1)〜A(N)における割合R(1)〜R(N)に応じた第1指標X1を算出する(S5)。第1指標算出処理S5の具体例は、前掲の図7を参照して前述した通りである。第2指標算出部544は、前掲の図9を参照して前述した通り、記号列特定部520が特定した記号列の角度θに応じた第2指標X2を算出する(S6)。   The symbol detector 510 detects a score symbol 72 (n) from the score image 70 generated by the photographing apparatus 10 (S2). The symbol string identification unit 520 identifies a symbol string (symbol string graphic 78) that is an array of a plurality of musical score symbols 72 (1) to 72 (N) detected by the symbol detection unit 510 (S3). The unit region setting unit 532 sets a unit region A (n) that intersects the symbol string specified by the symbol string specifying unit 520 at the position of the musical score symbol 72 (n) (S4). The first index calculation unit 534 calculates a ratio R (n) included in the unit area A (n) of the staff 62 (n) in which the musical score symbol 72 (n) is arranged, and N unit areas A (( A first index X1 corresponding to the ratios R (1) to R (N) in 1) to A (N) is calculated (S5). A specific example of the first index calculation process S5 is as described above with reference to FIG. As described above with reference to FIG. 9, the second index calculation unit 544 calculates the second index X2 corresponding to the angle θ of the symbol string specified by the symbol string specifying unit 520 (S6).

姿勢指標算出部550は、第1指標算出部534が算出した第1指標X1と第2指標算出部544が算出した第2指標X2とに応じた姿勢指標Zを算出する(S7)。表示制御部560は、記号列特定部520が設定した記号列図形78と、記号列図形78の基準となる基準図形80と、姿勢指標算出部550が算出した姿勢指標Zとを楽譜の動画撮影に並行して楽譜画像70に重ねて表示装置40に表示させる(S8)。   The posture index calculation unit 550 calculates a posture index Z according to the first index X1 calculated by the first index calculation unit 534 and the second index X2 calculated by the second index calculation unit 544 (S7). The display control unit 560 shoots a musical score of the symbol string graphic 78 set by the symbol string specifying unit 520, the reference graphic 80 serving as a reference for the symbol string graphic 78, and the posture index Z calculated by the posture index calculation unit 550. At the same time, it is superimposed on the score image 70 and displayed on the display device 40 (S8).

利用者は、表示装置40に表示された記号列図形78や姿勢指標Zを確認しながら撮影装置10の方向を適宜に調整し、記号列図形78が基準図形80に沿う状態または姿勢指標Zが大きい数値になった状態で、入力装置20を操作して静止画撮影を指示する。撮影制御部570は、静止画撮影の指示が利用者から入力装置20に付与されたか否かを判定する(S9)。静止画撮影が利用者から指示された場合(S9;YES)、撮影制御部570は、撮影装置10に静止画撮影を指示し(S10)、指示に応じて撮影装置10が撮影した静止画像の楽譜画像70Aを記憶装置30に格納する(S11)。他方、利用者から静止画撮影が指示されない場合(S9;NO)、図12に例示される通り、ステップS10とステップS11の処理は実行されずに、ステップS12の処理が実行される。   The user appropriately adjusts the direction of the photographing apparatus 10 while confirming the symbol string graphic 78 and the posture index Z displayed on the display device 40, and the state or posture index Z of the symbol string graphic 78 along the reference graphic 80 is determined. In a state where the numerical value is large, the input device 20 is operated to instruct still image shooting. The shooting control unit 570 determines whether an instruction for shooting a still image is given to the input device 20 by the user (S9). When still image shooting is instructed by the user (S9; YES), the shooting control unit 570 instructs the shooting device 10 to take a still image (S10), and the still image shot by the shooting device 10 according to the instruction. The score image 70A is stored in the storage device 30 (S11). On the other hand, when still image shooting is not instructed by the user (S9; NO), the processing of step S12 is executed without executing the processing of steps S10 and S11 as illustrated in FIG.

楽譜の動画撮影を終了する場合(S12;YES)、例えば、利用者が楽譜の動画撮影の終了を入力装置20に付与した場合、図12の楽譜画像解析処理は終了する。他方、撮影を終了しない場合(S12;NO)、撮影装置10から取得される新たな楽譜画像70についてステップS1からステップS12の処理が実行される。なお、ステップS6の処理は、ステップS4の処理の前に行ってもよい。つまり、第1指標X1を算出する処理(S4〜S5)と第2指標X2を算出する処理(S6)との先後関係は任意である。   When ending the moving image recording of the score (S12; YES), for example, when the user gives the input device 20 the end of moving image recording of the musical score, the musical score image analysis process of FIG. 12 ends. On the other hand, when the photographing is not finished (S12; NO), the process from step S1 to step S12 is executed for the new musical score image 70 acquired from the photographing apparatus 10. Note that the process of step S6 may be performed before the process of step S4. That is, the prior relationship between the process for calculating the first index X1 (S4 to S5) and the process for calculating the second index X2 (S6) is arbitrary.

以上の説明から理解される通り、動画撮影の終了が指示されるまで(S12;YES)ステップS1からステップS11の処理は繰り返し実行される。つまり、記号検出部510による楽譜記号72(n)の検出(S2)と、記号列特定部520による記号列の特定(S3)と、指標算出部530による姿勢指標Zの算出(S4〜S7)とは、撮影装置10による動画撮影に並行して順次に実行される。   As understood from the above description, the processing from step S1 to step S11 is repeatedly executed until the end of moving image shooting is instructed (S12; YES). That is, the detection of the musical score symbol 72 (n) by the symbol detection unit 510 (S2), the specification of the symbol sequence by the symbol sequence specification unit 520 (S3), and the calculation of the posture index Z by the index calculation unit 530 (S4 to S7). Is executed sequentially in parallel with moving image shooting by the shooting device 10.

また、表示制御部560が記号列図形78と基準図形80と姿勢指標Zとを表示装置40に表示させる動作も動画撮影に並行して順次に実行される。利用者は、記号列図形78を基準図形80に合わせるように撮影装置10の撮影方向を適宜に調整するので、楽譜画像70(例えば楽譜記号72(n)の位置や大きさ)も刻々と変化する。したがって、記号列図形78や姿勢指標Zは経時的に変化する。つまり、表示制御部560は、記号列特定部520による記号列の特定結果に応じて記号列図形78と姿勢指標Zとを経時的に(S1〜S7の処理が実行される度に)変更する。したがって、記号列図形78と基準図形80と楽譜画像70との関係を目視により確認しながら、利用者が撮影方向を適切な方向に調整することが可能である。   In addition, an operation in which the display control unit 560 displays the symbol string graphic 78, the reference graphic 80, and the posture index Z on the display device 40 is sequentially performed in parallel with the moving image shooting. Since the user appropriately adjusts the photographing direction of the photographing apparatus 10 so that the symbol string figure 78 matches the reference figure 80, the score image 70 (for example, the position and size of the score symbol 72 (n)) also changes every moment. To do. Therefore, the symbol string figure 78 and the posture index Z change with time. That is, the display control unit 560 changes the symbol string graphic 78 and the posture index Z with time according to the symbol string specifying result by the symbol string specifying unit 520 (every time the processing of S1 to S7 is executed). . Therefore, the user can adjust the shooting direction to an appropriate direction while visually confirming the relationship among the symbol string graphic 78, the reference graphic 80, and the score image 70.

以上に説明した通り、第1実施形態では、楽譜画像70から検出された複数の楽譜記号72(n)の配列である記号列に交差する単位領域A(n)を設定し、単位領域A(n)に含まれる譜表62(n)の割合に応じた第1指標X1が算出される。撮影方向が楽譜の法線方向に対して傾斜するほど単位領域A(n)内の譜表62(n)の割合が低下するので、第1指標X1も低下する。また、記号列の角度θに応じた第2指標X2が算出される。楽譜の法線方向に対する撮影方向の傾斜角度または楽譜に対する撮影範囲の回転角度(楽譜に平行な面内での撮影装置10の回転角度)に応じて記号列の角度θは変化するので、角度θに伴い第2指標X2も変化する。したがって、楽譜に対する撮影方向の適否を定量的に評価することが可能である。   As described above, in the first embodiment, a unit region A (n) that intersects a symbol string that is an array of a plurality of score symbols 72 (n) detected from the score image 70 is set, and the unit region A ( The first index X1 corresponding to the ratio of the staff 62 (n) included in n) is calculated. Since the ratio of the staff 62 (n) in the unit area A (n) decreases as the shooting direction is inclined with respect to the normal direction of the score, the first index X1 also decreases. Also, a second index X2 corresponding to the symbol string angle θ is calculated. Since the angle θ of the symbol string changes in accordance with the inclination angle of the shooting direction with respect to the normal direction of the score or the rotation angle of the shooting range with respect to the score (the rotation angle of the shooting device 10 in the plane parallel to the score), the angle θ Accordingly, the second index X2 also changes. Therefore, it is possible to quantitatively evaluate the suitability of the shooting direction for the score.

なお、撮影方向が楽譜の法線方向に平行に維持されたまま、撮影範囲が基準状態と比較して回転した回転状態では、記号列はx軸方向またはy軸方向に対して傾斜する一方で、各譜表62(n)は記号列に対して直交する。したがって、第2指標X2は小さい数値となる一方、第1指標X1は大きい数値となる。他方、撮影方向が楽譜の法線方向に対して傾斜した傾斜状態では、第1指標X1および第2指標X2の双方が小さい数値となる。以上の説明から理解される通り、第2指標X2には、傾斜状態および回転状態の双方の状態における記号列の傾斜が反映されるのに対し、第1指標X1には、傾斜状態における撮影方向の傾斜は反映されるが、撮影範囲の回転に起因した記号列の傾斜は反映されない。以上の傾向を考慮すると、撮影方向が楽譜の法線方向に対して傾斜する度合(傾斜状態)の指標としては、第1指標X1が特に好適である。   In the rotated state in which the shooting range is rotated as compared with the reference state while the shooting direction is maintained parallel to the normal direction of the score, the symbol string is inclined with respect to the x-axis direction or the y-axis direction. Each staff 62 (n) is orthogonal to the symbol string. Therefore, the second index X2 is a small numerical value, while the first index X1 is a large numerical value. On the other hand, when the shooting direction is inclined with respect to the normal direction of the score, both the first index X1 and the second index X2 are small numerical values. As understood from the above description, the second index X2 reflects the inclination of the symbol string in both the tilted state and the rotated state, whereas the first index X1 includes the shooting direction in the tilted state. However, the inclination of the symbol string due to the rotation of the shooting range is not reflected. Considering the above tendency, the first index X1 is particularly suitable as an index of the degree to which the shooting direction is inclined with respect to the normal direction of the score (inclined state).

<第2実施形態>
本発明の第2実施形態を説明する。以下に例示する各態様において作用や機能が第1実施形態と同様である要素については、第1実施形態の説明で使用した符号を流用して各々の詳細な説明を適宜に省略する。
<Second Embodiment>
A second embodiment of the present invention will be described. Regarding the elements whose functions and functions are the same as those of the first embodiment in each aspect exemplified below, the detailed description of each is appropriately omitted by using the reference numerals used in the description of the first embodiment.

図13は、第2実施形態の楽譜画像解析装置100の構成図である。第1実施形態では、入力装置20に対する利用者からの操作を契機として撮影制御部570が撮影装置10に静止画撮影を指示した(S10)。図13に例示される通り、第2実施形態の撮影制御部570は、指標算出部530が算出した姿勢指標Zが所定の条件を満たす場合に、撮影装置10に楽譜画像70Aの静止画撮影を指示する。   FIG. 13 is a configuration diagram of the score image analyzing apparatus 100 of the second embodiment. In the first embodiment, the shooting control unit 570 instructs the shooting device 10 to take a still image in response to an operation from the user on the input device 20 (S10). As illustrated in FIG. 13, the shooting control unit 570 of the second embodiment performs still image shooting of the score image 70A on the shooting device 10 when the posture index Z calculated by the index calculation unit 530 satisfies a predetermined condition. Instruct.

具体的には、指標算出部530が算出した姿勢指標Zと所定の閾値ZTとの比較結果に応じて、撮影制御部570は撮影装置10に静止画撮影を指示する。例えば、姿勢指標Zが閾値ZTを上回る場合に、撮影装置10に静止画撮影が指示される。姿勢指標Zと対比される閾値ZTは、実験的または統計的に選定される。また、入力装置20に対する利用者からの指示に応じて閾値ZTを可変に設定することも可能である。   Specifically, the shooting control unit 570 instructs the shooting apparatus 10 to take a still image according to the comparison result between the posture index Z calculated by the index calculation unit 530 and a predetermined threshold value ZT. For example, when the posture index Z exceeds the threshold value ZT, the photographing apparatus 10 is instructed to take a still image. The threshold value ZT to be compared with the posture index Z is selected experimentally or statistically. In addition, the threshold value ZT can be variably set in accordance with an instruction from the user to the input device 20.

図14は、第2実施形態の制御装置50が楽譜画像70を解析する処理のフローチャートである。楽譜画像70の取得(S1)から解析結果の表示(S8)は、第1実施形態と同様である。撮影制御部570は、指標算出部530が算出した姿勢指標Zが閾値ZTを上回るか否かを判定する(S9)。撮影装置10の撮影方向が基準状態に近いほど姿勢指標Zは大きい数値となる。姿勢指標Zが閾値ZTを上回る場合(S9;YES)、すなわち、撮影装置10の撮影方向が適切である場合、撮影制御部570は、撮影装置10に静止画撮影を指示し(S10)、指示に応じて撮影装置10が撮影した静止画像の楽譜画像70Aを記憶装置30に格納する(S11)。他方、姿勢指標Zが閾値ZTを下回る場合(S9;NO)、図14に例示される通り、ステップS10とステップS11の処理は実行されずに、ステップS12の処理が実行される。動画撮影の終了が利用者から指示されるまでステップS1からステップS11の処理が反復される点は第1実施形態と同様である。   FIG. 14 is a flowchart of a process in which the control device 50 according to the second embodiment analyzes the score image 70. From the acquisition (S1) of the score image 70 to the display of the analysis result (S8) is the same as in the first embodiment. The imaging control unit 570 determines whether or not the posture index Z calculated by the index calculation unit 530 exceeds the threshold value ZT (S9). The posture index Z becomes a larger numerical value as the shooting direction of the shooting device 10 is closer to the reference state. When the posture index Z exceeds the threshold value ZT (S9; YES), that is, when the photographing direction of the photographing apparatus 10 is appropriate, the photographing control unit 570 instructs the photographing apparatus 10 to shoot a still image (S10). In response to this, the score image 70A of the still image photographed by the photographing device 10 is stored in the storage device 30 (S11). On the other hand, when the posture index Z is less than the threshold value ZT (S9; NO), as illustrated in FIG. 14, the processing of step S12 is executed without executing the processing of steps S10 and S11. Similar to the first embodiment, the processing from step S1 to step S11 is repeated until the end of moving image shooting is instructed by the user.

第2実施形態においても第1実施形態と同様の効果が実現される。また、第2実施形態では、姿勢指標Zが所定の条件を満たす場合に撮影装置10に楽譜画像70Aの静止画撮影が指示される。したがって、利用者が撮影の指示をすることなく、楽譜の撮影に適している撮影方向で撮影した楽譜の静止画像(楽譜画像70A)を取得することが可能である。   In the second embodiment, the same effect as in the first embodiment is realized. In the second embodiment, when the posture index Z satisfies a predetermined condition, the photographing apparatus 10 is instructed to shoot a still image of the score image 70A. Therefore, it is possible to acquire a still image (score image 70A) of a score shot in a shooting direction suitable for shooting a score without the user giving a shooting instruction.

<変形例>
以上に例示した各態様は多様に変形され得る。具体的な変形の態様を以下に例示する。以下の例示から任意に選択された2個以上の態様は、相互に矛盾しない範囲で適宜に併合され得る。
<Modification>
Each aspect illustrated above can be variously modified. Specific modifications are exemplified below. Two or more modes arbitrarily selected from the following examples can be appropriately combined within a range that does not contradict each other.

(1)前述の各形態では、N個の単位領域A(1)〜A(N)における割合R(1)〜R(N)の合計や加重和を第1指標X1として算出したが、第1指標X1の算出方法は以上の例示に限定されない。例えば、N個の単位領域A(1)〜A(N)がx軸方向に対して傾斜する角度は概ね共通することを考慮すると、N個の割合R(1)〜R(N)は相互に近い数値になると予想される。したがって、N個の単位領域A(1)〜A(N)のうち特定の1個の単位領域A(n)における割合R(n)を第1指標X1とすることも可能である。 (1) In each of the above-described embodiments, the total or weighted sum of the ratios R (1) to R (N) in the N unit areas A (1) to A (N) is calculated as the first index X1, The calculation method of 1 index X1 is not limited to the above illustration. For example, considering that N unit regions A (1) to A (N) are inclined at a common angle with respect to the x-axis direction, the N ratios R (1) to R (N) are mutually Expected to be close to. Accordingly, the ratio R (n) in one specific unit region A (n) among the N unit regions A (1) to A (N) can be used as the first index X1.

(2)前述の各形態では、記号列図形78の長辺に平行でx軸に対して角度θをなすベクトルCのy軸方向の成分Cyの絶対値|Cy|を第2指標X2として算出したが、第2指標X2の算出方法は以上の例示に限定されない。例えば、記号列に垂直なベクトルCのx軸方向(またはy軸方向)の絶対値を第2指標X2として算出する構成や、x軸方向に対する記号列の角度θに対する所定の演算で第2指標X2を算出する構成(したがって、ベクトルCの特定は不要である)も採用され得る。以上の説明から理解される通り、第2指標X2は、記号列の角度θに応じた指標として包括的に表現され、具体的な算出方法の如何は不問である。 (2) In the above-described embodiments, the absolute value | Cy | of the component Cy in the y-axis direction of the vector C that is parallel to the long side of the symbol string figure 78 and forms the angle θ with respect to the x-axis is calculated as the second index X2. However, the method of calculating the second index X2 is not limited to the above example. For example, the absolute value of the vector C perpendicular to the symbol string in the x-axis direction (or y-axis direction) is calculated as the second index X2, or the second index is determined by a predetermined calculation for the angle θ of the symbol string with respect to the x-axis direction. A configuration for calculating X2 (thus, it is not necessary to specify the vector C) may be employed. As understood from the above description, the second index X2 is comprehensively expressed as an index corresponding to the angle θ of the symbol string, and any specific calculation method is not required.

(3)前述の各形態では、第1指標X1と第2指標X2との積を姿勢指標Zとして算出したが、姿勢指標Zの算出方法は以上の例示に限定されない。例えば、第1指標X1と第2指標X2との合計や加重和を姿勢指標Zとすることも可能である。また、第1指標X1を姿勢指標Zとして設定する構成(第2指標X2の算出は省略される)や、第2指標X2を姿勢指標Zとして設定する構成(第1指標X1の算出は省略される)も採用され得る。 (3) In each of the above-described embodiments, the product of the first index X1 and the second index X2 is calculated as the attitude index Z. However, the calculation method of the attitude index Z is not limited to the above examples. For example, the total or weighted sum of the first index X1 and the second index X2 can be used as the posture index Z. Further, a configuration in which the first index X1 is set as the posture index Z (calculation of the second index X2 is omitted), and a configuration in which the second index X2 is set as the posture index Z (calculation of the first index X1 is omitted). May also be employed.

(4)前述の各形態では、撮影装置10の撮影方向が基準状態に近いほど第1指標X1および第2指標X2が増加する場合を例示したが、撮影方向の適否と第1指標X1および第2指標X2の大小との関係は反転され得る。例えば、N個の割合R(1)〜R(N)の合計や加重和の逆数を第1指標X1として算定する構成では、撮影装置10の撮影方向が基準状態に近いほど第1指標X1は小さい数値となる。第2指標X2についても同様に、例えばベクトルCのx軸方向の成分Cxの絶対値|Cx|を第2指標X2として算出する構成では、撮影装置10の撮影方向が基準状態に近いほど第2指標X2は小さい数値となる。 (4) In the above-described embodiments, the case where the first index X1 and the second index X2 increase as the shooting direction of the shooting apparatus 10 is closer to the reference state is exemplified. The relationship between the two indices X2 can be reversed. For example, in a configuration in which the sum of N ratios R (1) to R (N) and the reciprocal of the weighted sum are calculated as the first index X1, the first index X1 increases as the shooting direction of the shooting apparatus 10 is closer to the reference state. Small number. Similarly, for the second index X2, for example, in the configuration in which the absolute value | Cx | of the component Cx in the x-axis direction of the vector C is calculated as the second index X2, the second is greater as the shooting direction of the shooting apparatus 10 is closer to the reference state. The index X2 is a small numerical value.

(5)前述の各形態では、楽譜記号72(n)の探索対象となる範囲74の概形を基準図形80としたが、基準図形80の形状や位置は以上の例示に限定されない。例えば、y軸に平行な直線を基準図形80とすることも可能である。以上の例示から理解される通り、基準図形80は、記号列図形78(記号列)の基準となる図形として包括的に表現される。 (5) In each of the above-described forms, the rough shape of the range 74 to be searched for the musical score symbol 72 (n) is the reference graphic 80. However, the shape and position of the reference graphic 80 are not limited to the above examples. For example, a straight line parallel to the y-axis can be used as the reference graphic 80. As understood from the above examples, the reference graphic 80 is comprehensively expressed as a graphic serving as a reference for the symbol string graphic 78 (symbol string).

(6)前述の各形態では、N個の記号領域76(1)〜76(N)の各々の頂点を内包し、かつ、面積が最小となる矩形状の記号列図形78を設定したが、記号列図形78の形状や設定方法は以上の例示に限定されない。例えば、記号領域76(1)と76(N)との各々の重心を通る直線や当該直線に沿う矩形を記号列図形78とすることも可能である。 (6) In each of the above-described embodiments, the rectangular symbol string figure 78 that includes each vertex of the N symbol regions 76 (1) to 76 (N) and has the smallest area is set. The shape and setting method of the symbol string graphic 78 are not limited to the above examples. For example, a straight line passing through the center of gravity of each of the symbol areas 76 (1) and 76 (N) or a rectangle along the straight line can be used as the symbol string graphic 78.

(7)前述の各形態では、ト音記号およびへ音記号を楽譜記号72(n)として検出したが、楽譜記号72(n)の種類は以上の例示に限定されない。例えば、ト音記号やへ音記号のどちらか一方やハ音記号を楽譜記号72(n)として検出することも可能である。また、前述の各形態では、相異なる音高を表象する5本の直線の組を譜表62(n)とした五線譜を楽譜として例示したが、楽譜の種類(表記法)は以上の例示に限定されない。例えば、弦楽器の各弦に対応する6本の直線で構成される譜表62(n)に奏法(具体的には運指)を表記したタブ譜を楽譜として本発明を適用することも可能である。タブ譜を撮影対象とした場合、各譜表62(n)の左端に縦書きされた「TAB」の文字列を楽譜記号72(n)として検出することが可能である。 (7) In each of the above-described embodiments, the treble clef and the syllable symbol are detected as the musical score symbol 72 (n), but the type of the musical score symbol 72 (n) is not limited to the above examples. For example, it is also possible to detect either a treble clef, a diacritic, or a clef as a musical score symbol 72 (n). Further, in each of the above-described embodiments, a staff score having a staff 62 (n) as a set of five straight lines representing different pitches is exemplified as the score, but the type (notation) of the score is limited to the above examples. Not. For example, the present invention can also be applied to a musical score 62 (n) composed of six straight lines corresponding to each string of a stringed musical instrument, with a tablature in which a performance method (specifically fingering) is written as a musical score. . When a tablature is taken as an object to be photographed, it is possible to detect a character string “TAB” vertically written at the left end of each staff 62 (n) as a musical score symbol 72 (n).

(8)前述の各形態では、動画撮影により時系列に生成された複数の楽譜画像70の各々を処理対象としたが、例えば静止画撮影で生成された1個の楽譜画像70を対象として第1指標X1や第2指標X2を算出することも可能である。以上の説明から理解される通り、本発明では、楽譜の動画撮影は必須ではない。 (8) In each of the above-described embodiments, each of the plurality of score images 70 generated in time series by moving image shooting is a processing target. For example, the first score image 70 generated by still image shooting is the target. It is also possible to calculate the first index X1 and the second index X2. As can be understood from the above description, in the present invention, moving image shooting of a score is not essential.

(9)移動体通信網やインターネット等の通信網を介して端末装置(例えば携帯電話機やスマートフォン)と通信するサーバ装置と端末装置との協働で楽譜画像解析装置100を実現することも可能である。例えば、指標算出部530をサーバ装置に設置するとともに、それ以外の要素(記号検出部510、記号列特定部520、表示制御部560、撮影制御部570)を端末装置に設置することも可能である。以上の説明から理解される通り、楽譜画像解析装置100は、相互に別体で構成される複数の装置の集合(システム)でも実現され、各装置で実行する処理の切り分けは任意である。 (9) It is also possible to realize the score image analysis device 100 in cooperation with a server device and a terminal device that communicate with a terminal device (for example, a mobile phone or a smartphone) via a communication network such as a mobile communication network or the Internet. is there. For example, the index calculation unit 530 can be installed in the server device, and other elements (symbol detection unit 510, symbol string identification unit 520, display control unit 560, imaging control unit 570) can be installed in the terminal device. is there. As can be understood from the above description, the score image analyzing apparatus 100 is also realized by a set (system) of a plurality of apparatuses configured separately from each other, and the process performed by each apparatus is arbitrarily determined.

(10)第2実施形態では、姿勢指標Zが閾値ZTを上回る場合に撮影装置10に静止画撮影を指示したが、静止画撮影を指示すべき姿勢指標Zの条件は以上の例示に限定されない。具体的には、閾値ZTを上回る範囲で姿勢指標Zが所定の時間にわたり安定に推移することを条件として撮影装置10に静止画撮影を指示することも可能である。例えば、時系列に算定される複数の姿勢指標Zの散布度(例えば分散)が所定値を下回る場合に姿勢指標Zが安定した状態と判定できる。また、姿勢指標Zの時間的な変動を監視し、姿勢指標Zが極大となったことを検出した場合に撮影装置10に静止画撮影を指示する構成も採用される。以上の説明から理解される通り、撮影制御部570は、姿勢指標Zが所定の条件を満たす場合に撮影装置10に楽譜画像70Aの静止画撮影を指示する要素として包括的に表現され、当該指示の発生条件の具体的な内容は不問である。 (10) In the second embodiment, when the posture index Z exceeds the threshold value ZT, the photographing apparatus 10 is instructed to capture a still image. However, the condition of the posture index Z to be instructed to capture a still image is not limited to the above examples. . Specifically, it is also possible to instruct the photographing apparatus 10 to shoot a still image on condition that the posture index Z stably changes over a predetermined time in a range exceeding the threshold value ZT. For example, when the distribution degree (for example, variance) of a plurality of posture indices Z calculated in time series is lower than a predetermined value, it can be determined that the posture index Z is stable. A configuration is also employed in which the temporal variation of the posture index Z is monitored, and when the posture index Z is maximized, the photographing apparatus 10 is instructed to take a still image. As understood from the above description, the imaging control unit 570 is comprehensively expressed as an element that instructs the imaging device 10 to capture a still image of the score image 70A when the posture index Z satisfies a predetermined condition. The specific content of the occurrence condition is not questioned.

(11)前述の各形態で例示した楽譜画像解析装置100は、前述の各形態の例示の通り、制御装置50とプログラムとの協働で実現される。本発明の好適な態様に係るプログラムは、相互に並列されたN個の譜表62(1)〜62(N)と各譜表62(n)に対して所定の位置に配置された楽譜記号72(n)とを含む楽譜を撮影した楽譜画像70から楽譜記号72(1)〜72(N)を検出する記号検出部510、記号検出部510が検出したN個の楽譜記号72(1)〜72(N)の配列である記号列を特定する記号列特定部520、楽譜記号72(n)の位置で記号列に交差する単位領域A(n)を設定する単位領域設定部532、および、楽譜記号72(n)が配置された譜表62(n)のうち単位領域A(n)に含まれる割合R(n)に応じた第1指標X1を算出する第1指標算出部534としてコンピュータを機能させる。以上に例示したプログラムは、コンピュータが読取可能な記録媒体に格納された形態で提供されてコンピュータにインストールされ得る。記録媒体は、例えば非一過性(non-transitory)の記録媒体であり、CD-ROM等の光学式記録媒体(光ディスク)が好例であるが、半導体記録媒体や磁気記録媒体等の公知の任意の形式の記録媒体を包含し得る。また、通信網を介した配信の形態でプログラムをコンピュータに配信することも可能である。 (11) The musical score image analyzing apparatus 100 exemplified in each of the above-described embodiments is realized by the cooperation of the control device 50 and a program as illustrated in the above-described embodiments. A program according to a preferred embodiment of the present invention includes N staffs 62 (1) to 62 (N) arranged in parallel to each other and a musical score symbol 72 (positioned at a predetermined position with respect to each staff 62 (n). n), a symbol detection unit 510 that detects score symbols 72 (1) to 72 (N) from a score image 70 obtained by photographing a score including N), and N score symbols 72 (1) to 72 detected by the symbol detection unit 510. A symbol string identifying unit 520 that identifies a symbol string that is an array of (N), a unit region setting unit 532 that sets a unit region A (n) that intersects the symbol string at the position of the score symbol 72 (n), and a score The computer functions as the first index calculation unit 534 that calculates the first index X1 according to the ratio R (n) included in the unit area A (n) in the staff 62 (n) in which the symbol 72 (n) is arranged. Let The programs exemplified above can be provided in a form stored in a computer-readable recording medium and installed in the computer. The recording medium is, for example, a non-transitory recording medium, and an optical recording medium (optical disk) such as a CD-ROM is a good example, but a known arbitrary one such as a semiconductor recording medium or a magnetic recording medium This type of recording medium can be included. It is also possible to distribute the program to a computer in the form of distribution via a communication network.

(12)本発明は、前述の各形態に係る楽譜画像解析装置100の動作方法(楽譜画像解析方法)としても特定される。例えば、本発明の一態様に係る楽譜画像解析方法は、相互に並列されたN個の譜表62(1)〜62(N)と各譜表62(n)に対して所定の位置に配置された楽譜記号72(n)とを含む楽譜を撮影した楽譜画像70から楽譜記号72(1)〜72(N)を検出し(S2)、検出したN個の楽譜記号72(1)〜72(N)の配列である記号列を特定し(S3)、楽譜記号72(n)の位置で記号列に交差する単位領域A(n)を設定し(S4)、楽譜記号72(n)が配置された譜表62(n)のうち単位領域A(n)に含まれる割合R(n)に応じた第1指標X1を算出する(S5)。 (12) The present invention is also specified as an operation method (score image analysis method) of the score image analysis apparatus 100 according to each of the above-described embodiments. For example, in the score image analysis method according to one aspect of the present invention, N staffs 62 (1) to 62 (N) and each staff 62 (n) arranged in parallel are arranged at predetermined positions. The score symbols 72 (1) to 72 (N) are detected from the score image 70 obtained by photographing the score including the score symbols 72 (n) (S2), and the detected N score symbols 72 (1) to 72 (N). ) Is specified (S3), a unit area A (n) intersecting the symbol string is set at the position of the score symbol 72 (n) (S4), and the score symbol 72 (n) is arranged. The first index X1 corresponding to the ratio R (n) included in the unit area A (n) of the staff 62 (n) is calculated (S5).

100……楽譜画像解析装置、10……撮影装置、20……入力装置、30……記憶装置、40……表示装置、50……制御装置、62……譜表、63……直線、64……集合、70,70A……楽譜画像、72……楽譜記号、74……範囲、76……記号領域、78……記号列図形、80……基準図形、510……記号検出部、520……記号列特定部、530……指標算出部、532……単位領域設定部、534……第1指標算出部、544……第2指標算出部、550……姿勢指標算出部、560……表示制御部、570……撮影制御部
DESCRIPTION OF SYMBOLS 100 ... Musical score image analysis apparatus, 10 ... Shooting device, 20 ... Input device, 30 ... Storage device, 40 ... Display device, 50 ... Control device, 62 ... Staff, 63 ... Straight line, 64 ... ... set, 70, 70A ... score image, 72 ... score symbol, 74 ... range, 76 ... symbol area, 78 ... symbol string figure, 80 ... reference figure, 510 ... symbol detector, 520 ... ... symbol string specifying unit, 530 ... index calculating unit, 532 ... unit area setting unit, 534 ... first index calculating unit, 544 ... second index calculating unit, 550 ... posture index calculating unit, 560 ... Display control unit, 570 ... Shooting control unit

Claims (4)

相互に並列された複数の譜表と前記各譜表に対して所定の位置に配置された楽譜記号とを含む楽譜を撮影装置による動画撮影で時系列に生成された各楽譜画像から前記楽譜記号を検出する記号検出部と、
前記記号検出部が検出した複数の楽譜記号の配列である記号列を特定する記号列特定部と、
前記楽譜に対する撮影方向の適否の指標である姿勢指標を前記記号列に応じて算出する指標算出部と、
前記姿勢指標が所定の条件を満たす場合に前記撮影装置に前記楽譜画像の静止画撮影を指示する撮影制御部と
を具備する楽譜画像解析装置。
Detecting a score symbol from each score image generated in time series by shooting a moving image with a photographing device including a score including a plurality of staffs arranged in parallel and a score symbol arranged at a predetermined position with respect to each staff A symbol detector to
A symbol string identification unit that identifies a symbol string that is an array of a plurality of musical score symbols detected by the symbol detection unit;
An index calculation unit that calculates an attitude index that is an index of suitability of a shooting direction with respect to the score according to the symbol string;
A score image analysis apparatus comprising: a shooting control unit that instructs the shooting apparatus to shoot a still image of the score image when the posture index satisfies a predetermined condition.
前記指標算出部は、
前記楽譜記号の位置で前記記号列に交差する単位領域を設定する単位領域設定部と、
前記楽譜記号が配置された前記譜表のうち前記単位領域に含まれる割合に応じた第1指標を算出する第1指標算出部とを含み、
前記第1指標に応じた前記姿勢指標を設定する
請求項1の楽譜画像解析装置。
The index calculation unit
A unit region setting unit that sets a unit region that intersects the symbol string at the position of the musical score symbol;
A first index calculation unit that calculates a first index according to a ratio included in the unit area of the staff on which the musical score symbol is arranged,
The musical score image analysis apparatus according to claim 1, wherein the posture index corresponding to the first index is set.
前記指標算出部は、
前記記号列の角度に応じた第2指標を算出する第2指標算出部を含み、
前記第2指標に応じた前記姿勢指標を設定する
請求項1または請求項2の楽譜画像解析装置。
The index calculation unit
A second index calculation unit that calculates a second index according to the angle of the symbol string;
The musical score image analysis apparatus according to claim 1 or 2, wherein the posture index corresponding to the second index is set.
前記姿勢指標は、撮影範囲の横方向が前記楽譜の横方向に平行となる状態に近いほど大きい数値となる指標であり、
前記所定の条件は、前記姿勢指標が所定の閾値を上回ることである
請求項1から請求項3の何れかの楽譜画像解析装置。
The posture index is an index that becomes a larger numerical value as the horizontal direction of the shooting range is closer to a state parallel to the horizontal direction of the score,
The musical score image analysis apparatus according to claim 1, wherein the predetermined condition is that the posture index exceeds a predetermined threshold value.
JP2015194932A 2015-09-30 2015-09-30 Music score image analyzer Active JP6586847B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2015194932A JP6586847B2 (en) 2015-09-30 2015-09-30 Music score image analyzer
PCT/JP2016/079057 WO2017057694A1 (en) 2015-09-30 2016-09-30 Musical score image analysis device
US15/938,544 US10452940B2 (en) 2015-09-30 2018-03-28 Musical score image analyzer and musical score image analyzing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015194932A JP6586847B2 (en) 2015-09-30 2015-09-30 Music score image analyzer

Publications (2)

Publication Number Publication Date
JP2017069843A JP2017069843A (en) 2017-04-06
JP6586847B2 true JP6586847B2 (en) 2019-10-09

Family

ID=58495374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015194932A Active JP6586847B2 (en) 2015-09-30 2015-09-30 Music score image analyzer

Country Status (1)

Country Link
JP (1) JP6586847B2 (en)

Also Published As

Publication number Publication date
JP2017069843A (en) 2017-04-06

Similar Documents

Publication Publication Date Title
KR101808015B1 (en) Mobile document capture assist for optimized text recognition
US10452953B2 (en) Image processing device, image processing method, program, and information recording medium
WO2017201144A1 (en) Fixtureless lensmeter and methods of operating same
JP7059054B2 (en) Image processing equipment, image processing methods and programs
US10007680B2 (en) Content collection search with robust content matching
CN107918767B (en) Object detection method, device, electronic equipment and computer-readable medium
US11508174B2 (en) Image processing method and image processing device
JP2016045877A (en) Information processing device, information processing system, information processing method and program
US8873839B2 (en) Apparatus of learning recognition dictionary, and method of learning recognition dictionary
US10296802B2 (en) Image processing device, image processing method, and computer program product
US20160353021A1 (en) Control apparatus, display control method and non-transitory computer readable medium
WO2017057694A1 (en) Musical score image analysis device
JP6586847B2 (en) Music score image analyzer
JP6229554B2 (en) Detection apparatus and detection method
JP6586846B2 (en) Music score image analyzer
KR102518075B1 (en) Terminal for providing AR electron microscope
EP2375375A1 (en) Computer program product related to digital image analyzing operations
CN111311550A (en) Counterfeit certificate identification method and device and electronic equipment
JP2017069840A (en) Image processing device
US11557108B2 (en) Polygon detection device, polygon detection method, and polygon detection program
JP2022014793A (en) Information processing device, information processing method, and program
US20140215320A1 (en) Marker placement support apparatus, marker placement support method, and non-transitory computer readable medium
US20150234517A1 (en) Display apparatus and method and computer program product
JP6540436B2 (en) Image correction device
JPWO2019167267A1 (en) Information information system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180725

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190826

R151 Written notification of patent or utility model registration

Ref document number: 6586847

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151