Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5248265B2 - Music score recognition apparatus and computer program - Google Patents
[go: Go Back, main page]

JP5248265B2 - Music score recognition apparatus and computer program - Google Patents

Music score recognition apparatus and computer program Download PDF

Info

Publication number
JP5248265B2
JP5248265B2 JP2008276089A JP2008276089A JP5248265B2 JP 5248265 B2 JP5248265 B2 JP 5248265B2 JP 2008276089 A JP2008276089 A JP 2008276089A JP 2008276089 A JP2008276089 A JP 2008276089A JP 5248265 B2 JP5248265 B2 JP 5248265B2
Authority
JP
Japan
Prior art keywords
label
gap
pixel
distance
rectangular label
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
JP2008276089A
Other languages
Japanese (ja)
Other versions
JP2010102667A (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.)
Kawai Musical Instruments Manufacturing Co Ltd
Original Assignee
Kawai Musical Instruments Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instruments Manufacturing Co Ltd filed Critical Kawai Musical Instruments Manufacturing Co Ltd
Priority to JP2008276089A priority Critical patent/JP5248265B2/en
Publication of JP2010102667A publication Critical patent/JP2010102667A/en
Application granted granted Critical
Publication of JP5248265B2 publication Critical patent/JP5248265B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/30Character recognition based on the type of data
    • G06V30/304Music notations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Electrophonic Musical Instruments (AREA)
  • Character Discrimination (AREA)
  • Auxiliary Devices For Music (AREA)

Description

本発明は、楽譜認識装置、及びコンピュータプログラムに関し、特に、紙面の楽譜を認識するために用いて好適なものである。   The present invention relates to a score recognition apparatus and a computer program, and is particularly suitable for use in recognizing a score on paper.

従来から、スキャナ等を用いて、紙面上の楽譜を読み取り、読み取った楽譜のデータについて、五線、音符、及びその他の各種記号を認識して、MIDIファイルデータ等の演奏データや、表示用/印刷用のデータを生成することが行われている。
具体的に各種の音楽記号を認識する場合には、五線及び段落を認識した上で、五線消去を行った後、任意の矩形形状をした読み取り用のラベルを記号毎に設定して、当該ラベルのデータと、予め辞書に登録されているデータとをパターンマッチングするようにしている(特許文献1を参照)。ここで、ラベルとは、モノクロ画像(白黒の2値画像)の場合、例えば、4連結又は8連結している黒画素の一塊をいう。
Conventionally, a score on a sheet is read using a scanner or the like, and staff data, musical notes, and other various symbols are recognized from the read score data, and performance data such as MIDI file data, display / Generation of data for printing is performed.
Specifically, when recognizing various musical symbols, the staff and paragraphs are recognized, and then the staff is erased, and then a reading label having an arbitrary rectangular shape is set for each symbol. The label data and the data registered in the dictionary in advance are subjected to pattern matching (see Patent Document 1). Here, in the case of a monochrome image (monochrome binary image), a label refers to a lump of black pixels that are four-connected or eight-connected, for example.

特開平11−161738号公報Japanese Patent Laid-Open No. 11-161738

ところで、楽譜には、所謂五線譜の他にタブ譜がある。タブ譜では一般に、弦に対応する横線(以下の説明ではこの線も必要に応じて五線と称する)上に数字が表記される。そこで、このようなタブ譜についても正確に認識できるようにする必要がある。
しかしながら、前述したように楽譜を認識する際には五線消去を行う。したがって、タブ譜の五線上に表記されている数字が、五線消去によって本来の形と異なる形になることがある。そうすると、例えば、認識対象の複数のラベル内の数字が異なるものであっても、それらの差異が小さくなり、それらを同じ数字であると誤認識してしまう虞がある。
以上のように従来の技術では、五線消去を行うと、タブ譜に表記されている数字を正確に認識することができなくなる虞があった。
By the way, in addition to the so-called staff notation, there are tablatures. In tablature, numbers are generally written on a horizontal line corresponding to a string (in the following description, this line is also called a staff if necessary). Therefore, it is necessary to be able to accurately recognize such tablature.
However, the staff is erased when recognizing the musical score as described above. Therefore, the number written on the staff of the tablature may be different from the original form by erasing the staff. Then, for example, even if the numbers in the plurality of labels to be recognized are different, the difference between them becomes small, and there is a possibility that they are erroneously recognized as the same number.
As described above, according to the conventional technique, if the staff is erased, there is a possibility that the numbers written on the tablature cannot be accurately recognized.

本発明は、このような問題点に鑑みてなされたものであり、五線消去を行っても、タブ譜に表記されている数字を従来よりも正確に認識することができるようにすることを目的とする。   The present invention has been made in view of such a problem, and is capable of recognizing the numbers written on the tablature more accurately than before even when the staff is erased. Objective.

本発明の楽譜認識装置は、紙面の楽譜の情報を含む画像を、画像読み取り手段から取得する取得手段と、前記取得手段により取得された画像から、タブ譜における、弦に対応する横線を消去する消去手段と、前記消去手段により横線が消去された後に、前記取得手段により取得された画像のうち、タブ譜の画像に含まれる図形に対してラベルを設定する設定手段と、前記設定手段により設定されたラベルに含まれる図形と、予め設定されている辞書とをマッチングして当該図形が、どの数字に属するのかを認識する認識手段と、前記ラベル内の画素の少なくとも一部の画素値を読み取る読み取り手段と、前記読み取り手段により読み取られた画素値が、前記認識手段により認識される数字に応じて予め設定された条件の何れに該当するのかを判別することによって、前記ラベルに含まれる図形がどの数字に属するのかを判別する判別手段とを有することを特徴とする。   The score recognition apparatus of the present invention erases a horizontal line corresponding to a chord in a tablature from an acquisition unit that acquires an image including sheet music score information from an image reading unit and an image acquired by the acquisition unit. An erasing unit, a setting unit that sets a label for a graphic included in a tablature image among images acquired by the acquiring unit after the horizontal line is deleted by the erasing unit, and a setting by the setting unit A recognition unit for recognizing to which number the figure belongs by matching a figure included in the labeled label with a preset dictionary, and reading at least some pixel values of the pixels in the label Which of the reading means and the condition that the pixel value read by the reading means is set in advance according to the number recognized by the recognition means By another, characterized by having a discriminating means for discriminating whether belongs to which numbers figures included in the label.

本発明のコンピュータプログラムは、紙面の楽譜の情報を含む画像を、画像読み取り手段から取得する取得ステップと、前記取得ステップにより取得された画像から、タブ譜における、弦に対応する横線を消去する消去ステップと、前記消去ステップにより横線が消去された後に、前記取得ステップにより取得された画像のうち、タブ譜の画像に含まれる図形に対してラベルを設定する設定ステップと、前記設定ステップにより設定されたラベルに含まれる図形と、予め設定されている辞書とをマッチングして当該図形が、どの数字に属するのかを認識する認識ステップと、前記ラベル内の画素の少なくとも一部の画素値を読み取る読み取りステップと、前記読み取りステップにより読み取られた画素値が、前記認識ステップにより認識される数字に応じて予め設定された条件の何れに該当するのかを判別することによって、前記ラベルに含まれる図形がどの数字に属するのかを判別する判別ステップとをコンピュータに実行させることを特徴とする。   The computer program according to the present invention includes an acquisition step of acquiring an image including information on a sheet music score from an image reading unit, and an erasure that deletes a horizontal line corresponding to a string in a tablature from the image acquired by the acquisition step. A setting step for setting a label for a graphic included in a tablature image among the images acquired by the acquisition step after the horizontal line is deleted by the deletion step, and the setting step. A step of recognizing which figure the figure belongs to by matching a figure contained in the label with a preset dictionary and reading at least some pixel values of the pixels in the label And the pixel value read by the reading step is recognized by the recognition step. By determining whether to correspond to any of the preset condition depending on the number, characterized in that to execute a determining step of determining whether belong to which numerical figures included in the label to the computer.

本発明によれば、ラベル内の画素の画素値が、マッチングにより認識される数字に応じて予め設定された条件の何れに該当するのかを判別することによって、ラベルに含まれる図形がどの数字に属するのかを判別するようにした。したがって、タブ譜における数字の誤認識を従来よりも低減することができ、弦に対応する横線(所謂五線)の消去を行っても、タブ譜を従来よりも正確に認識することができる。   According to the present invention, the figure included in the label is assigned to which number by determining which of the preset conditions the pixel value of the pixel in the label corresponds to the number recognized by matching. It was made to determine whether it belongs. Therefore, erroneous recognition of numbers in the tablature can be reduced more than before, and the tablature can be recognized more accurately than before even if the horizontal lines corresponding to the strings (so-called staves) are deleted.

(第1の実施形態)
以下、図面を参照しながら、本発明の第1の実施形態について説明する。
図1は、楽譜認識装置の構成の一例を示すブロック図である。
図1において、楽譜認識装置100は、CPU1、ROM2、RAM3、HDD4、FDD5、MIDIインタフェース回路6、スキャナインタフェース回路7、プリンタインタフェース回路8、キーボードインタフェース回路9、CRTインタフェース回路10、及びバス15を有している。そして、スキャナ11、プリンタ12、キーボード13、及びCRT14が楽譜認識装置100に接続されている。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating an example of a configuration of a score recognition apparatus.
In FIG. 1, the score recognition apparatus 100 includes a CPU 1, ROM 2, RAM 3, HDD 4, FDD 5, MIDI interface circuit 6, scanner interface circuit 7, printer interface circuit 8, keyboard interface circuit 9, CRT interface circuit 10, and bus 15. doing. The scanner 11, printer 12, keyboard 13, and CRT 14 are connected to the score recognition apparatus 100.

図1に示すように、本実施形態の楽譜認識装置100は、パソコン等の一般的な計算機システムに、MIDIインタフェース回路6を付加したものである。
CPU1は、ROM2に格納されたプログラムをRAM3に展開して実行すること等により、楽譜認識装置100の全体の制御を行う中央処理装置である。また、楽譜認識装置100は、予め設定された所定の周期でCPU1に割り込みをかけるタイマ回路を内蔵している。RAM3は、プログラムエリアの他、画像データバッファ、ワークエリア等として使用される。HDD(ハードディスクドライブ)4及びFDD(フレキシブルディスクドライブ)5は、プログラム、画像データ、及び演奏データ等を格納する。
As shown in FIG. 1, a score recognition apparatus 100 of this embodiment is obtained by adding a MIDI interface circuit 6 to a general computer system such as a personal computer.
The CPU 1 is a central processing unit that performs overall control of the score recognition apparatus 100 by developing a program stored in the ROM 2 on the RAM 3 and executing the program. The musical score recognition apparatus 100 has a built-in timer circuit that interrupts the CPU 1 at a predetermined cycle set in advance. The RAM 3 is used as an image data buffer, a work area, etc. in addition to a program area. An HDD (hard disk drive) 4 and an FDD (flexible disk drive) 5 store programs, image data, performance data, and the like.

CRT14は、CPU1の制御に基づき、CRTインタフェース回路10から出力される映像情報を表示する。キーボード13から入力された情報は、キーボードインタフェース回路9を経てCPU1に取り込まれる。プリンタ12は、CPU1の制御に基づき、プリンタインタフェース回路8から出力される印字情報を印字する。   The CRT 14 displays video information output from the CRT interface circuit 10 based on the control of the CPU 1. Information input from the keyboard 13 is taken into the CPU 1 through the keyboard interface circuit 9. The printer 12 prints print information output from the printer interface circuit 8 based on the control of the CPU 1.

スキャナ11は、紙面に印刷された楽譜を光学的に走査して、2値、グレイスケール、あるいはカラーの画像データに変換するものである。スキャナ11としては、フラットベッド型、ハンディ型、フィーダー型等任意のタイプのものを使用できる。スキャナ11によって読み取られた画像情報は、スキャナインタフェース回路7を介して、RAM3又はHDD4に取り込まれる。MIDIインタフェース回路6は、音源モジュール等の外部のMIDI機器との間でMIDIデータの送受信を行う回路である。バス15は、楽譜認識装置100内の各回路を接続している。尚、この他に、マウス等のポインティングデバイスや、RS232C等のシリアルインターフェース回路等を楽譜認識装置100が備えていてもよい。   The scanner 11 optically scans a score printed on paper and converts it into binary, gray scale, or color image data. As the scanner 11, an arbitrary type such as a flat bed type, a handy type, or a feeder type can be used. Image information read by the scanner 11 is taken into the RAM 3 or the HDD 4 via the scanner interface circuit 7. The MIDI interface circuit 6 is a circuit that transmits / receives MIDI data to / from an external MIDI device such as a sound module. The bus 15 connects each circuit in the score recognition apparatus 100. In addition, the score recognition apparatus 100 may include a pointing device such as a mouse, a serial interface circuit such as RS232C, and the like.

図2は、CPU1の処理の一例を説明するメインフローチャートである。尚、ここでは、本発明の実施形態を説明する上で必要な事項を中心に説明し、その他の事項の詳細な説明を省略する。
まず、ステップS1において、CPU1は、画像取り込み処理を行う。この画像取り込み処理では、スキャナ12によって読み取られた楽譜の画像データをRAM3に取り込む等の処理が行われる。
次に、ステップS2において、CPU1は、五線認識処理を行う。この五線認識処理では、五線走査開始位置検出処理及び五線シフト量検出処理等が行われる。五線走査開始位置検出処理の概略を述べると、横(x)軸方向のある位置で、黒画素の幅と白画素の幅とを順に求め、求めた幅に基づいて、五線状に並んでいる位置を、ある程度の誤差を考慮して検出する。そして、加線(五線からはみ出した音符を記載するために付加した横線)の影響を除くために、五線状の並びの両側に、五線の間隔より大きな白画素幅があるという条件を加える。この条件に合う白黒画素の並びがある横(x)方向の各黒ランの中点を五線走査開始位置とする。ここで、ランとは、モノクロ画像(白黒の2値画像)の場合、例えば、縦又は横に黒画素又は白画素が連結している長さをいう。
FIG. 2 is a main flowchart for explaining an example of processing of the CPU 1. It should be noted that here, description will be made mainly on matters necessary for describing the embodiment of the present invention, and detailed explanation of other matters will be omitted.
First, in step S1, the CPU 1 performs an image capturing process. In this image capturing process, a process of capturing image data of a score read by the scanner 12 into the RAM 3 is performed.
Next, in step S2, the CPU 1 performs a staff recognition process. In the staff recognition processing, staff scanning start position detection processing, staff shift amount detection processing, and the like are performed. The outline of the staff scanning start position detection process is as follows. At a certain position in the horizontal (x) axis direction, the width of the black pixel and the width of the white pixel are obtained in order, and arranged in a staff based on the obtained width Detecting the position where it is coming in consideration of some error. Then, in order to remove the influence of the additional line (the horizontal line added to describe the note protruding from the staff), the condition that there is a white pixel width larger than the distance between the staffs on both sides of the staff array. Add. The midpoint of each black run in the horizontal (x) direction where black-and-white pixels are arranged that meet this condition is set as the staff scanning start position. Here, in the case of a monochrome image (monochrome binary image), the run means, for example, a length in which black pixels or white pixels are connected vertically or horizontally.

次に、五線シフト量検出処理の概略を述べる。まず、五線走査開始位置(5点の黒画素位置)から、1ドットずつ位置を左右に変えていき、5点の内、黒画素がある個数(例えば3あるいは4個)以下になった場合に、5点を上下にずらして黒画素数をチェックし、縦(y)方向のうち、黒画素の割合が高くなる方向へy座標をシフトする。この五線走査開始位置からのシフト量を五線のシフト量とする。そして、五線走査開始位置の左右方向(横方向)に、黒画素の個数が0になる位置まで走査することにより五線の検出を行う。   Next, an outline of the staff shift amount detection process will be described. First, from the staff scanning start position (5 black pixel positions), the position is changed to the left and right one dot at a time, and when the number of black pixels becomes less than a certain number (for example, 3 or 4) out of 5 points In addition, the number of black pixels is checked by shifting the five points up and down, and the y coordinate is shifted in a direction in which the ratio of black pixels increases in the vertical (y) direction. The shift amount from the staff scanning start position is defined as the staff shift amount. Then, the staff is detected by scanning to the position where the number of black pixels becomes zero in the left-right direction (horizontal direction) of the staff scanning start position.

次に、ステップS3において、CPU1は、段落認識処理を行う。段落認識処理では、段落認識処理及び大かっこ認識処理等が行われる。段落認識処理においては、画像全体で五線を検出し、五線同士で左端がほぼ同じ場所にある五線の組を探し、五線の端同士が、黒画素で結ばれているかどうかを検査し、段落を認識する。五線同士が大かっこで結ばれていた場合には、五線同士にまたがる音符等が存在する場合があるので、大かっこで結ばれた五線は1つの単位で処理を行った方が良い。大かっこについては、段落線の左の所定の範囲で認識を行う。ここで、段落線とは、同時に進行している複数のパートの五線同士の左端を繋いでいる線をいい、段落とは、段落線で繋がれた複数の五線の一塊をいう。尚、パートが1つの場合には、複数のパートの段落に相当する一塊を段落という。また、大かっことは、特にピアノの楽譜に用いられることが多い音楽記号であり、2つ又は3つの五線を纏めるための「[」で表記される括弧である。   Next, in step S3, the CPU 1 performs a paragraph recognition process. In the paragraph recognition process, a paragraph recognition process and a bracket recognition process are performed. In the paragraph recognition process, the staff is detected in the entire image, a set of staffs in which the left ends of the staffs are almost in the same place is searched, and it is inspected whether the ends of the staff are connected with black pixels. And recognize paragraphs. When staffs are connected with brackets, there may be notes that cross between staffs, so it is better to process staffs connected with brackets in one unit. . The brackets are recognized within a predetermined range to the left of the paragraph line. Here, the paragraph line refers to a line that connects the left ends of the staffs of a plurality of parts that are proceeding simultaneously, and the paragraph refers to a lump of a plurality of staffs that are connected by paragraph lines. When there is one part, a block corresponding to a plurality of part paragraphs is called a paragraph. Also, the brackets are music symbols that are often used for piano scores, in particular, parentheses indicated by “[” for collecting two or three staffs.

次に、ステップS4において、CPU1は、パート認識処理を行う。パート認識処理では、五線認識処理及び段落認識処理で認識された結果に基づいて各パートを認識し、各パートが、タブ譜であるか否かを判定する。この判定の結果、タブ譜である場合には、処理矩形決定処理、五線消去処理、音楽記号認識処理、及び認識結果検証処理等を行う。一方、タブ譜以外である場合には、公知の方法で各パート内の音楽記号を認識する。
処理矩形決定処理では、求められた五線を含む、ある程度広い矩形を採り、これを認識処理矩形とする。矩形の大きさは、その五線に関係する音楽記号が存在する最大領域以上で、且つ五線傾き補正により、必要な音楽記号が消えない様な大きさにする。これ以降の認識はこの矩形内で行う。
Next, in step S4, the CPU 1 performs part recognition processing. In the part recognition process, each part is recognized based on the results recognized in the staff recognition process and the paragraph recognition process, and it is determined whether each part is a tablature. If the result of this determination is a tablature, processing rectangle determination processing, staff erasing processing, music symbol recognition processing, recognition result verification processing, and the like are performed. On the other hand, in the case of other than tablature, music symbols in each part are recognized by a known method.
In the process rectangle determination process, a rectangle that is fairly wide including the found staff is taken and is used as a recognition process rectangle. The size of the rectangle is not less than the maximum area where the music symbols related to the staff are present, and is adjusted so that the necessary music symbols are not erased by correcting the staff inclination. Subsequent recognition is performed within this rectangle.

五線消去処理では、求められた五線のうち、線幅が閾値以下の部分(音楽記号と重なっていない部分)を消去する。
音楽記号認識処理では、五線が消去された楽譜の画像データに対し、連続する黒画素の外縁に接するように矩形ラベルを設定し、当該矩形ラベル内の黒画素のデータと、予め辞書に登録されているデータとのパターンマッチングを行う等して各種の音楽記号を認識する。この音楽記号認識処理により、タブ譜に表記されている数字が認識される。パターンマッチングに際しては、テンプレートマッチングの他に、矩形ラベルのサイズと加重方向指数とを用いたり、ペリフェラル特徴を用いたりすることができる。
認識結果検証処理では、音楽記号認識処理で認識された数字が正しく認識されているか否かを検証する。この認識結果検証処理の詳細については後述する。
In the staff erasing process, a portion of the obtained staff whose line width is equal to or smaller than a threshold (a portion not overlapping with a music symbol) is erased.
In the music symbol recognition process, a rectangular label is set so as to touch the outer edge of continuous black pixels for the musical score image data from which the staff has been deleted, and the black pixel data in the rectangular label is registered in the dictionary in advance. Various music symbols are recognized by performing pattern matching with the recorded data. By this music symbol recognition processing, the numbers written on the tablature are recognized. In pattern matching, in addition to template matching, the size of a rectangular label and a weight direction index can be used, or a peripheral feature can be used.
In the recognition result verification process, it is verified whether or not the number recognized in the music symbol recognition process is correctly recognized. Details of this recognition result verification processing will be described later.

次に、ステップS5において、CPU1は、結合処理を行う。結合処理では、五線認識処理で認識された五線、段落認識処理で認識された段落、パート認識処理で認識されたパートの内容等を結合して、楽譜のデータを生成する等の処理を行う。
次に、ステップS6において、CPU1は、その他の処理を行う。その他の処理では、MIDIファイルデータ等の演奏データを生成する等の処理を行う。
尚、前述したように、実際には、以上の処理の他に様々な処理が実行されるが、ステップS4における認識結果検証処理以外の処理は、公知の技術によって実現できるので、ここでは、その詳細な説明を省略する。
Next, in step S5, the CPU 1 performs a combination process. In the merging process, the score recognized by the staff recognition process, the paragraph recognized by the paragraph recognition process, the contents of the part recognized by the part recognition process, etc. are combined to generate music score data. Do.
Next, in step S6, the CPU 1 performs other processing. In other processing, processing such as generating performance data such as MIDI file data is performed.
As described above, actually, various processes are executed in addition to the above process, but processes other than the recognition result verification process in step S4 can be realized by a known technique. Detailed description is omitted.

次に、図3のフローチャートを参照しながら、認識結果検証処理の一例を説明する。
まず、ステップS11において、CPU1は、音楽記号認識処理により、タブ譜の五線上に表記されていると認識された数字が何であるかを判別する。尚、本実施形態では、「2」、「3」、「5」、「7」については、音楽記号認識処理(パターンマッチング)による認識の信頼性が高いものとし、認識された数字が「2」、「3」、「5」又は「7」である場合には、図3のフローチャートによる処理を行わないようにしている。
この判別の結果、認識された数字が「1」又は「4」である場合には、後述するステップS21に進む。
一方、認識された数字が「0」、「6」、「8」又は「9」である場合には、ステップS12に進む。ステップS12に進むと、CPU1は、画像走査処理を行う。画像走査処理では、音楽記号認識処理で設定された矩形ラベル内の画素の画素値を順次読み取り、読み取った画素値に基づいて、矩形ラベル内の図形にすき間があるか否かを検出すると共に、当該すき間がなければ当該数字の横方向における内縁間距離を検出する。この画像走査処理の詳細については後述する。
Next, an example of the recognition result verification process will be described with reference to the flowchart of FIG.
First, in step S11, CPU1 discriminate | determines what the number recognized as having been described on the staff of a tablature by a music symbol recognition process. In this embodiment, “2”, “3”, “5”, and “7” are assumed to have high recognition reliability by the music symbol recognition process (pattern matching), and the recognized number is “2”. "," 3 "," 5 "or" 7 ", the processing according to the flowchart of FIG. 3 is not performed.
As a result of the determination, if the recognized number is “1” or “4”, the process proceeds to step S21 described later.
On the other hand, if the recognized number is “0”, “6”, “8” or “9”, the process proceeds to step S12. In step S12, the CPU 1 performs image scanning processing. In the image scanning process, the pixel values of the pixels in the rectangular label set in the music symbol recognition process are sequentially read, and based on the read pixel values, whether or not there is a gap in the graphic in the rectangular label, If there is no gap, the distance between the inner edges of the numeral in the horizontal direction is detected. Details of the image scanning process will be described later.

図4は、矩形ラベル401内の図形の第1の例を示す図である。具体的に図4(a)は「8」を示し、図4(b)は、「0」を示し、図4(c)は「6」を示す図である。
前述したように、本実施形態では、五線消去処理が行われた後に音楽記号認識処理が行われているので、図4(a)、図4(c)に示すように、「8」、「6」のうち、五線と重なっていた部分は、白画素となる場合がある。したがって、例えば、図4(a)〜図4(c)に示すように、「0」、「6」、「8」の差異が小さくなり、前述したパターンマッチングでは、これらを正確に区別して認識することが困難になる場合がある。そこで、本実施形態では、矩形ラベル401内の図形のすき間や、当該図形の内縁間の距離を用いて、数字の認識率を従来よりも向上させるようにしている。
FIG. 4 is a diagram illustrating a first example of a graphic in the rectangular label 401. Specifically, FIG. 4A shows “8”, FIG. 4B shows “0”, and FIG. 4C shows “6”.
As described above, in this embodiment, since the music symbol recognition process is performed after the staff erasure process is performed, as shown in FIGS. 4A and 4C, “8”, Of “6”, the portion that overlaps the staff may be a white pixel. Therefore, for example, as shown in FIGS. 4A to 4C, the difference between “0”, “6”, and “8” becomes small. In the above-described pattern matching, these are accurately distinguished and recognized. May be difficult to do. Therefore, in this embodiment, the number recognition rate is improved by using the gap between the figures in the rectangular label 401 and the distance between the inner edges of the figure.

図3の説明に戻り、ステップS13において、CPU1は、ステップS12の画像走査処理の結果に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。図4に示す例では、図4(a)、図4(b)ではすき間はなく、図4(c)ではすき間があると判定される。
この判定の結果、すき間がない場合には、後述するステップS17に進む。一方、すき間がある場合には、ステップS14に進む。ステップS14に進むと、CPU1は、すき間の長さが閾値以上であるか否かを判定する。この判定の結果、すき間の長さが閾値以上でない場合には、当該すき間は、かすれ等の要因で生じたものであり、数字が本来有しているすき間ではないと判定し、後述するステップS17に進む。
Returning to the description of FIG. 3, in step S <b> 13, the CPU 1 determines whether there is a gap in the graphic in the rectangular label 401 based on the result of the image scanning process in step S <b> 12. In the example shown in FIG. 4, it is determined that there is no gap in FIGS. 4A and 4B, and there is a gap in FIG. 4C.
As a result of the determination, if there is no gap, the process proceeds to step S17 described later. On the other hand, if there is a gap, the process proceeds to step S14. In step S14, the CPU 1 determines whether or not the gap length is equal to or greater than a threshold value. As a result of this determination, if the gap length is not equal to or greater than the threshold, it is determined that the gap is caused by a factor such as blurring, and that the number is not originally a gap, and will be described later in step S17. Proceed to

一方、すき間の長さが閾値以上である場合には、ステップS15に進む。ステップS15に進むと、CPU1は、画像走査処理によりRAM3に記憶された"矩形ラベル401内におけるすき間の位置"を読み出す。また、HDD4には、すき間の位置と数字とが相互に対応付けられたテーブルが記憶されており、CPU1は、読み出したすき間の位置とテーブルとを照合し、数字を判別する。例えば、すき間の位置が、右上側の所定の領域のみにある場合には「6」と判別される。また、すき間の位置が、左下側の所定の領域のみにある場合には「9」と判別される。   On the other hand, if the gap length is greater than or equal to the threshold, the process proceeds to step S15. In step S15, the CPU 1 reads “the position of the gap in the rectangular label 401” stored in the RAM 3 by the image scanning process. Further, the HDD 4 stores a table in which the gap positions and numbers are associated with each other, and the CPU 1 collates the read gap positions with the table to determine the numbers. For example, when the gap is located only in a predetermined area on the upper right side, it is determined as “6”. Further, when the position of the gap is only in a predetermined area on the lower left side, it is determined as “9”.

そして、ステップS16に進み、CPU1は、その他の処理を行って、図3のフローチャートによる処理を終了する。
前述したように、ステップS13において、すき間がないと判定された場合と、ステップS14において、すき間の長さが閾値以上でないと判定された場合には、ステップS17に進む。ステップS17に進むと、CPU1は、ステップS12の画像走査処理の結果に基づいて、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値が、当該数字の縦方向における中央からある閾値以内の距離にあるか否かを判定する。この判定の結果、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値が、当該数字の縦方向における中央からある閾値以内の距離にある場合には、ステップS18に進む。ステップS18に進むと、CPU1は、矩形ラベル401内の図形が「0」であると判別する。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。
And it progresses to step S16 and CPU1 performs another process and complete | finishes the process by the flowchart of FIG.
As described above, if it is determined in step S13 that there is no gap, and if it is determined in step S14 that the gap length is not greater than or equal to the threshold, the process proceeds to step S17. In step S17, based on the result of the image scanning process in step S12, the CPU 1 has the maximum value of “the distance between the inner edges in the horizontal direction” of the figure in the rectangular label 401 from the center in the vertical direction of the number. It is determined whether the distance is within the threshold. As a result of this determination, if the maximum value of the “distance between the inner edges in the horizontal direction” of the graphic in the rectangular label 401 is within a certain threshold from the center in the vertical direction of the number, the process proceeds to step S18. In step S18, the CPU 1 determines that the figure in the rectangular label 401 is “0”. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

一方、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値が、当該数字の縦方向における中央からある閾値以内の距離にない場合には、ステップS19に進む。ステップS19に進むと、CPU1は、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値として同値となるものの数が閾値以上であるか否かを判定する。この判定の結果、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値として同値となるものの数が閾値以上である場合には、前述したステップS18に進み、CPU1は、矩形ラベル401内の図形が「0」であると判別する。図4(b)に示した例では、ステップS17、S19、S18の処理を経て、矩形ラベル401内の図形が「0」であると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。   On the other hand, when the maximum value of the “distance between the inner edges in the horizontal direction” of the graphic in the rectangular label 401 is not within a certain threshold from the center in the vertical direction of the number, the process proceeds to step S19. In step S <b> 19, the CPU 1 determines whether or not the number of figures in the rectangular label 401 that have the same value as the “internal edge distance in the horizontal direction” is equal to or greater than a threshold value. As a result of this determination, if the number of figures having the same value as the “inner edge distance in the horizontal direction” of the graphic in the rectangular label 401 is equal to or larger than the threshold value, the process proceeds to step S18 described above, and the CPU 1 proceeds to step S18. It is determined that the figure in 401 is “0”. In the example shown in FIG. 4B, it is determined that the figure in the rectangular label 401 is “0” through the processes of steps S17, S19, and S18. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

一方、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値として同値となるものの数が閾値以上でない場合には、ステップS20に進む。ステップS20に進むと、CPU1は、矩形ラベル401内の図形が「8」であると判別する。図4(a)に示した例では、ステップS17、S19、S20の処理を経て、矩形ラベル401内の図形が「8」であると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。
尚、画像にノイズが含まれることを考慮して、ステップS19の処理を行わないようにしてもよい。すなわち、ステップS17において、矩形ラベル401内の図形の"横方向における内縁間距離"の最大値が、当該数字の縦方向における中央からある閾値以内の距離にないと判定された場合には、ステップS19の処理を行わずにステップS20に進み、矩形ラベル401内の図形が「8」であると判別するようにしてもよい。
On the other hand, if the number of figures in the rectangular label 401 that have the same value as the “maximum distance between the inner edges in the horizontal direction” is not equal to or greater than the threshold value, the process proceeds to step S20. In step S20, the CPU 1 determines that the figure in the rectangular label 401 is “8”. In the example shown in FIG. 4A, it is determined that the figure in the rectangular label 401 is “8” through the processes of steps S17, S19, and S20. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.
Note that the processing in step S19 may not be performed in consideration of noise included in the image. That is, when it is determined in step S17 that the maximum value of the “inner edge distance in the horizontal direction” of the graphic in the rectangular label 401 is not within a certain threshold from the vertical center of the number, The process may advance to step S20 without performing the process of S19, and it may be determined that the figure in the rectangular label 401 is “8”.

前述したように、ステップS11において、音楽記号認識処理により認識された数字が「1」又は「4」であると判定された場合には、ステップS21に進む。ステップS21に進むと、CPU1は、横幅判定処理を行う。横幅判定処理では、音楽記号認識処理で設定された矩形ラベル内の画素の画素値を順次読み取り、読み取った画素値に基づいて、矩形ラベル内の数字の横幅(横方向における外縁間距離)を検出する。この横幅判定処理の詳細については後述する。   As described above, if it is determined in step S11 that the number recognized by the music symbol recognition process is “1” or “4”, the process proceeds to step S21. In step S21, the CPU 1 performs a width determination process. In the width determination process, the pixel values of the pixels in the rectangular label set in the music symbol recognition process are sequentially read, and the width of the number in the rectangular label (the distance between the outer edges in the horizontal direction) is detected based on the read pixel value. To do. Details of the width determination process will be described later.

図5は、矩形ラベル401内の図形の第2の例を示す図である。具体的に図5(a)は「1」を示し、図5(b)は、「4」を示す図である。
前述したように、本実施形態では、五線消去処理が行われた後に音楽記号認識処理が行われるが、「4」の白抜きの部分に五線が位置する場合、図5(b)に示すように、その部分の五線が消去されない場合がある。このため、図5(a)、図5(b)に示すように、「1」、「4」の差異が小さくなり、前述したパターンマッチングでは、これらを正確に区別して認識することが困難になる場合がある。そこで、本実施形態では、矩形ラベル401内の図形の横幅を用いて、数字の認識率を従来よりも向上させるようにしている。
FIG. 5 is a diagram illustrating a second example of a graphic in the rectangular label 401. Specifically, FIG. 5A shows “1”, and FIG. 5B shows “4”.
As described above, in the present embodiment, the music symbol recognition process is performed after the staff erasing process is performed. When the staff is positioned in the white portion of “4”, FIG. As shown, the staff of that part may not be erased. For this reason, as shown in FIGS. 5A and 5B, the difference between “1” and “4” becomes small, and it is difficult to accurately distinguish and recognize these in the above-described pattern matching. There is a case. Therefore, in the present embodiment, the recognition rate of numbers is improved as compared with the prior art by using the horizontal width of the figure in the rectangular label 401.

図3の説明に戻り、ステップS22において、CPU1は、ステップS21の横幅判定処理の結果に基づいて、矩形ラベル401内の図形の横幅の最大値が閾値以上であるか否かを判定する。この判定の結果、矩形ラベル401内の図形の横幅の最大値が閾値以上である場合には、ステップS23に進む。ステップS23に進むと、CPU1は、矩形ラベル401内の図形が「4」であると判別する。図5(b)に示した例では、ステップS22、S23の処理を経て、矩形ラベル401内の図形が「4」であると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。   Returning to the description of FIG. 3, in step S <b> 22, the CPU 1 determines whether or not the maximum value of the horizontal width of the graphic in the rectangular label 401 is equal to or greater than the threshold based on the result of the horizontal width determination processing in step S <b> 21. As a result of the determination, if the maximum value of the horizontal width of the graphic in the rectangular label 401 is equal to or greater than the threshold value, the process proceeds to step S23. In step S23, the CPU 1 determines that the figure in the rectangular label 401 is “4”. In the example illustrated in FIG. 5B, it is determined that the figure in the rectangular label 401 is “4” through the processes of steps S <b> 22 and S <b> 23. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

一方、矩形ラベル401内の図形の横幅の最大値が閾値以上でない場合には、ステップS24に進む。ステップS24に進むと、CPU1は、突起判定処理を行う。ステップS24に進んだ場合には、矩形ラベル401内の図形が「1」である可能性が高い。しかしながら、前述した音楽記号認識処理での認識に誤りがあり、「1」であると認識されていたものが、縦線である可能性もある。そこで、本実施形態では、突起判定処理により、矩形ラベル401内の図形の突起に関する情報を求めるようにする。この突起判定処理の詳細については後述する。   On the other hand, if the maximum value of the horizontal width of the graphic in the rectangular label 401 is not equal to or greater than the threshold value, the process proceeds to step S24. In step S24, the CPU 1 performs a protrusion determination process. When the process proceeds to step S24, there is a high possibility that the figure in the rectangular label 401 is “1”. However, there is a possibility that there is an error in the above-described music symbol recognition process, and that what was recognized as “1” is a vertical line. Therefore, in the present embodiment, information on the projection of the figure in the rectangular label 401 is obtained by the projection determination process. Details of this protrusion determination processing will be described later.

次に、ステップS25において、CPU1は、ステップS24の突起判定処理の結果に基づいて、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にあるか否かを判定する。この判定の結果、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にある場合には、ステップS26に進む。ステップS26に進むと、CPU1は、矩形ラベル401内の図形が「1」であると判別する。図5(a)に示した例では、ステップS22、S24、S25、S26の処理を経て、矩形ラベル401内の図形が「1」であると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。   Next, in step S25, the CPU 1 determines whether or not the projection of the figure in the rectangular label 401 is at a reasonable position based on the result of the projection determination process in step S24. As a result of the determination, if the projection of the figure in the rectangular label 401 is at a reasonable position as “1”, the process proceeds to step S26. In step S26, the CPU 1 determines that the figure in the rectangular label 401 is “1”. In the example shown in FIG. 5A, it is determined that the figure in the rectangular label 401 is “1” through the processes of steps S22, S24, S25, and S26. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

一方、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にない場合には、ステップS27に進む。ステップS27に進んだ場合には、矩形ラベル401内の図形が「1」ではなく、矩形ラベル401の上又は下にある符尾候補線と連結されるものである可能性がある。
図6は、符尾の近辺に数字の1が表示されているタブ譜(図6(a))と、かすれ等により2つに分離された符尾が表示されているタブ譜(図6(b))とを示す図である。
図6(a)に示すように、符尾の横にある縦線は、「1」と認識されるべきものであるが、図6(b)に示すように、符尾の上又は下にある縦線は、符尾に連結されるものと認識されるべきものである。
On the other hand, if the projection of the figure in the rectangular label 401 is not at a valid position as “1”, the process proceeds to step S27. When the process proceeds to step S <b> 27, there is a possibility that the figure in the rectangular label 401 is not “1” but connected to the tail candidate line above or below the rectangular label 401.
FIG. 6 shows a tablature (FIG. 6 (a)) in which the numeral 1 is displayed in the vicinity of the note tail, and a tablature (in FIG. b)).
As shown in FIG. 6 (a), the vertical line next to the stem should be recognized as “1”, but as shown in FIG. 6 (b) above or below the tail. A vertical line should be recognized as connected to the tail.

図3の説明に戻り、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置になく、ステップS27に進むと、CPU1は、矩形ラベル401内の図形と、矩形ラベル401から閾値以内の距離にある縦線との位置関係を検出する。そして、ステップS28において、CPU1は、矩形ラベル401内の図形と、矩形ラベル401から閾値以内の距離にある縦線との横方向の位置のずれが閾値以上であるか否かを判定する。   Returning to the description of FIG. 3, the projection of the figure in the rectangular label 401 is not at a valid position as “1”, and when the process proceeds to step S <b> 27, the CPU 1 determines the threshold value from the figure in the rectangular label 401 and the rectangular label 401. The positional relationship with the vertical line within the distance is detected. In step S <b> 28, the CPU 1 determines whether or not the deviation of the horizontal position between the figure in the rectangular label 401 and the vertical line at a distance within the threshold from the rectangular label 401 is equal to or greater than the threshold.

この判定の結果、矩形ラベル401内の図形と、矩形ラベル401から閾値以内の距離にある縦線との横方向の位置のずれが閾値以上である場合には、前述したようにステップS29に進み、CPU1は、矩形ラベル401内の図形が「1」であると判別する。図6(a)に示す例では、ステップS28、S29の処理を経て、矩形ラベル401内の図形が「1」であると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。   If the result of this determination is that the displacement in the horizontal direction between the figure in the rectangular label 401 and the vertical line at a distance within the threshold from the rectangular label 401 is greater than or equal to the threshold, the process proceeds to step S29 as described above. The CPU 1 determines that the figure in the rectangular label 401 is “1”. In the example shown in FIG. 6A, it is determined that the figure in the rectangular label 401 is “1” through the processes of steps S28 and S29. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

一方、矩形ラベル401内の図形と、矩形ラベル401から閾値以内の距離にある縦線との横方向の位置のずれが閾値以上でない場合には、矩形ラベル401内の図形が「1」ではなく、矩形ラベル401の上又は下にある符尾候補線と連結されるものであると判定される。そこで、ステップS30に進み、CPU1は、矩形ラベル401内の図形(縦線)と矩形ラベル401の上又は下にある符尾候補線と連結し、連結した縦線を新たな符尾候補線として設定し直す。図6(b)に示す例では、ステップS28、S30の処理を経て、矩形ラベル401内の図形が符尾に連結されるものであると判別される。そして、ステップS16に進んで、その他の処理が行われた後、図3のフローチャートによる処理を終了する。   On the other hand, when the horizontal position shift between the figure in the rectangular label 401 and the vertical line at a distance within the threshold from the rectangular label 401 is not greater than or equal to the threshold, the figure in the rectangular label 401 is not “1”. , It is determined to be connected to the tail candidate line above or below the rectangular label 401. In step S30, the CPU 1 connects the figure (vertical line) in the rectangular label 401 to the tail candidate line above or below the rectangular label 401, and uses the connected vertical line as a new tail candidate line. Set again. In the example shown in FIG. 6B, it is determined through the processes of steps S28 and S30 that the figure in the rectangular label 401 is connected to the tail. Then, the process proceeds to step S16, and after other processes are performed, the process according to the flowchart of FIG. 3 is terminated.

次に、図7のフローチャートを参照しながら、図3のステップS12における画像走査処理の一例について説明する。
まず、ステップS101において、CPU1は、画素の走査を行う始点を初期位置に設定する。本実施形態では、矩形ラベル401の横方向の中心であって、矩形ラベル401内に五線が存在していた位置に始点を設定する。ただし、始点の初期位置はこのようなものに限定されない。
Next, an example of the image scanning process in step S12 in FIG. 3 will be described with reference to the flowchart in FIG.
First, in step S101, the CPU 1 sets a starting point for scanning a pixel as an initial position. In the present embodiment, the starting point is set at the center of the rectangular label 401 in the horizontal direction where the staff was present in the rectangular label 401. However, the initial position of the starting point is not limited to this.

次に、ステップS102において、CPU1は、設定した始点が黒画素(始点の画素値が1)であるか否かを判定する。この判定の結果、ステップS101で設定した始点が黒画素である場合には、ステップS103に進む。ステップS103に進むと、ステップS101で設定した始点の上下方向の位置をずらし、始点の位置を再設定する。具体的に説明すると、例えば、ステップS101で設定した始点に最も近い位置であって、未だ設定されていない位置に、ステップS101で設定した始点の上下方向の位置をずらす。そして、ステップS102に戻り、設定した始点が白画素(始点の画素値が0)になるまで、ステップS102、S103を繰り返し行う。   Next, in step S102, the CPU 1 determines whether or not the set start point is a black pixel (the pixel value of the start point is 1). If the result of this determination is that the starting point set in step S101 is a black pixel, processing proceeds to step S103. In step S103, the vertical position of the start point set in step S101 is shifted, and the start point position is reset. Specifically, for example, the vertical position of the start point set in step S101 is shifted to a position that is closest to the start point set in step S101 and has not yet been set. Then, the process returns to step S102, and steps S102 and S103 are repeated until the set start point is a white pixel (the pixel value of the start point is 0).

以上のようにして始点が白画素になると、ステップS104に進む。ステップS104に進むと、CPU1は、設定した始点を基点として横方向(右方向及び左方向)に画素を走査して、各画素の画素値を読み取る。
次に、ステップS105において、CPU1は、矩形ラベル401の全てのラインを走査したか否かを判定する。この判定の結果、矩形ラベル401のラインを全て走査していない場合には、ステップS106に進む。ステップS106に進むと、CPU1は、始点の上下方向の位置をずらし、始点の位置を再設定する。
When the starting point is a white pixel as described above, the process proceeds to step S104. In step S104, the CPU 1 scans pixels in the horizontal direction (right direction and left direction) using the set start point as a base point, and reads the pixel value of each pixel.
Next, in step S <b> 105, the CPU 1 determines whether all lines of the rectangular label 401 have been scanned. As a result of the determination, if all the lines of the rectangular label 401 have not been scanned, the process proceeds to step S106. In step S106, the CPU 1 shifts the position of the start point in the vertical direction and resets the position of the start point.

具体的に説明すると、例えば、現在設定されている始点に最も近い位置であって、未だ設定されていない位置に、現在設定されている始点の上下方向の位置をずらす。ただし、始点をずらす先が黒画素である場合には、その黒画素が存在する位置以外に始点をずらすようにする。
そして、ステップS104に戻り、再設定した始点を基点として横方向(右方向及び左方向)に画素を走査して、各画素の画素値を読み取る。そして、矩形ラベル401のラインを全て走査するまで、ステップS104〜S106を繰り返し行う。
More specifically, for example, the vertical position of the currently set start point is shifted to the position that is closest to the currently set start point and has not yet been set. However, when the start point is shifted to a black pixel, the start point is shifted to a position other than the position where the black pixel exists.
Then, the process returns to step S104, the pixels are scanned in the horizontal direction (right direction and left direction) using the reset start point as a base point, and the pixel value of each pixel is read. Steps S104 to S106 are repeated until all the lines of the rectangular label 401 are scanned.

そして、ステップS105において、矩形ラベル401のラインを全て走査したと判定されると、ステップS107に進む。ステップS107に進むと、CPU1は、矩形ラベル401内の各白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。例えば、始点を基点として、右方向又は左方向に黒画素(画素値が1の画素)が1つもない場合に、矩形ラベル401内の図形のすき間があると判定される。この判定の結果、矩形ラベル401内の図形にすき間がない場合には、ステップS108に進む。ステップS108に進むと、CPU1は、矩形ラベル401内の各白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形の水平方向における内縁間距離と、その位置とを求め、それらを相互に関連付けてRAM3に記憶する。図4(a)、図4(b)に示した例では、例えば、矢印で示している部分が、矩形ラベル401内の図形の水平方向における内縁間距離になる。そして、図7のフローチャートによる処理を終了する。   If it is determined in step S105 that all the lines of the rectangular label 401 have been scanned, the process proceeds to step S107. In step S107, the CPU 1 determines whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of each white pixel in the rectangular label 401 (that is, the pixel value). For example, when there is no black pixel (a pixel having a pixel value of 1) in the right direction or the left direction with the start point as a base point, it is determined that there is a gap between figures in the rectangular label 401. As a result of the determination, if there is no gap in the graphic in the rectangular label 401, the process proceeds to step S108. In step S108, the CPU 1 obtains the distance between the inner edges in the horizontal direction of the figure in the rectangular label 401 and the position thereof based on the arrangement (that is, the pixel value) of each white pixel in the rectangular label 401, and determines them. Are stored in the RAM 3 in association with each other. In the example shown in FIGS. 4A and 4B, for example, the portion indicated by the arrow is the distance between the inner edges in the horizontal direction of the graphic in the rectangular label 401. And the process by the flowchart of FIG. 7 is complete | finished.

一方、矩形ラベル401内の図形にすき間がある場合には、ステップS109に進む。ステップS109に進むと、CPU1は、矩形ラベル401内の図形のすき間の位置と長さを求め、それらを相互に関連付けてRAM3に記憶する。例えば、始点を基点として、右方向又は左方向に黒画素(画素値が1の画素)が1つもない状態が上下方向に連続している場合、当該上下方向に連続している画素の数がすき間の長さになる。また、当該長さの白画素が上下方向に存在している部分がすき間の位置になる。図4(c)に示した例では、矢印で示している部分が隙間となる。そして、前述したステップS108に進む。   On the other hand, if there is a gap in the graphic in the rectangular label 401, the process proceeds to step S109. In step S109, the CPU 1 obtains the position and length of the gap between the figures in the rectangular label 401, and stores them in the RAM 3 in association with each other. For example, when a state where there is no black pixel (a pixel having a pixel value of 1) in the right direction or the left direction from the start point is continuous in the vertical direction, the number of pixels continuous in the vertical direction is It becomes the length of the gap. Further, a portion where the white pixel of the length exists in the vertical direction is a gap position. In the example shown in FIG. 4C, a portion indicated by an arrow is a gap. Then, the process proceeds to step S108 described above.

次に、図8のフローチャートを参照しながら、図3のステップS21における横幅判定処理の一例について説明する。
まず、ステップS201において、CPU1は、画素の走査を行う始点を初期位置に設定する。本実施形態では、矩形ラベル401の中心の位置に始点を設定する。ただし、始点の初期位置はこのようなものに限定されない。
次に、ステップS202において、CPU1は、設定した始点を基点として横方向(右方向及び左方向)に画素を走査して、各画素の画素値を読み取る。
Next, an example of the width determination process in step S21 of FIG. 3 will be described with reference to the flowchart of FIG.
First, in step S201, the CPU 1 sets a starting point for scanning a pixel as an initial position. In the present embodiment, the starting point is set at the center position of the rectangular label 401. However, the initial position of the starting point is not limited to this.
Next, in step S202, the CPU 1 scans the pixels in the horizontal direction (right direction and left direction) using the set start point as a base point, and reads the pixel value of each pixel.

次に、ステップS203において、CPU1は、ステップS202で横方向に走査した画素に黒画素があったか否かを判定する。この判定の結果、黒画素があった場合には、ステップS204に進む。ステップS204に進むと、CPU1は、矩形ラベル401内の図形の"ステップS202で走査した箇所における横幅(外縁間距離)"とその外縁間距離が存在する位置とを求め、それらを相互に関連付けてRAM3に記憶する。尚、これらは、ステップS202で走査した横方向で連続する黒画素の数とそれら黒画素の位置とに基づいて求めることができる。この他、走査した横方向で連続する白画素の数とそれら白画素の位置とに基づいて求めることもできる。図5に示した例では、例えば、白抜きの矢印の部分が、矩形ラベル401内の図形の横幅になる。   Next, in step S203, the CPU 1 determines whether or not there is a black pixel in the pixels scanned in the horizontal direction in step S202. If it is determined that there is a black pixel, the process proceeds to step S204. In step S204, the CPU 1 obtains the “lateral width (distance between outer edges) at the location scanned in step S202” of the graphic in the rectangular label 401 and the position where the distance between the outer edges exists, and correlates them with each other. Store in the RAM 3. Note that these can be obtained based on the number of horizontal black pixels scanned in step S202 and the positions of these black pixels. In addition, it can be obtained based on the number of scanned white pixels in the horizontal direction and the positions of the white pixels. In the example shown in FIG. 5, for example, the white arrow portion is the horizontal width of the figure in the rectangular label 401.

次に、ステップS205において、CPU1は、矩形ラベル401のラインを全て走査したか否かを判定する。この判定の結果、矩形ラベル401のラインを全て走査していない場合には、ステップS206に進む。ステップS206に進むと、CPU1は、始点の上下方向の位置をずらし、始点の位置を再設定する。具体的に説明すると、例えば、現在設定されている始点に最も近い位置であって、未だ設定されていない位置に、現在設定されている始点の上下方向の位置をずらす。そして、ステップS202に戻り、再設定した始点を基点として横方向(右方向及び左方向)に画素を走査して、各画素の画素値を読み取る。そして、矩形ラベル401のラインを全て走査するまで、ステップS202〜S206を繰り返し行う。こうして、矩形ラベル401内の画素を全て走査すると、図8のフローチャートによる処理を終了する。   Next, in step S205, the CPU 1 determines whether all the lines of the rectangular label 401 have been scanned. As a result of the determination, if all the lines of the rectangular label 401 have not been scanned, the process proceeds to step S206. In step S206, the CPU 1 shifts the position of the start point in the vertical direction and resets the position of the start point. More specifically, for example, the vertical position of the currently set start point is shifted to the position that is closest to the currently set start point and has not yet been set. Then, the process returns to step S202, and the pixels are scanned in the horizontal direction (right direction and left direction) using the reset start point as a base point, and the pixel value of each pixel is read. Steps S202 to S206 are repeated until all the lines of the rectangular label 401 are scanned. Thus, when all the pixels in the rectangular label 401 are scanned, the processing according to the flowchart of FIG.

次に、図9のフローチャートを参照しながら、図3のステップS24における突起判定処理の一例について説明する。
まず、ステップS301において、CPU1は、矩形ラベル401を、上下方向で3つの領域に分離する。図10は、矩形ラベル401を分離する様子の一例を示す図である。図10に示す例では、矩形ラベル401は、上下方向で3つの領域401a〜401cに分離される。
Next, an example of the protrusion determination process in step S24 of FIG. 3 will be described with reference to the flowchart of FIG.
First, in step S301, the CPU 1 separates the rectangular label 401 into three regions in the vertical direction. FIG. 10 is a diagram illustrating an example of how the rectangular labels 401 are separated. In the example shown in FIG. 10, the rectangular label 401 is divided into three regions 401a to 401c in the vertical direction.

次に、ステップS302において、CPU1は、ステップS301で分離した3つの領域401a〜401c毎に、矩形ラベル401内の図形の横幅(外縁間距離)の平均値を算出する。この算出は、図8のステップS204の結果に基づいて行うことができる。そして、図9のフローチャートによる処理を終了する。
前述したように、図3のステップS25では、ステップS24の突起判定処理の結果に基づいて、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にあるか否かを判定する。
Next, in step S302, the CPU 1 calculates an average value of the horizontal width (distance between outer edges) of the figure in the rectangular label 401 for each of the three regions 401a to 401c separated in step S301. This calculation can be performed based on the result of step S204 in FIG. And the process by the flowchart of FIG. 9 is complete | finished.
As described above, in step S25 of FIG. 3, it is determined whether or not the projection of the figure in the rectangular label 401 is at a reasonable position based on the result of the projection determination process in step S24. .

このステップS25の処理を具体的に説明すると、例えば、相対的に上側の領域401aにおける横幅の平均値と、相対的に中央の領域401bにおける横幅の平均値との差が閾値以上であるか否かを判定し、閾値以上である場合に、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にあると判定することができる。また、相対的に上側の領域401aにおける横幅の平均値と、相対的に中央の領域401bにおける横幅の平均値との差が閾値以上であり、且つ、相対的に下側の領域401cにおける横幅の平均値と、相対的に中央の領域401bにおける横幅の平均値との差が閾値以上である場合に、矩形ラベル401内の図形の突起が「1」のものとして妥当な位置にあると判定することもできる。   The processing in step S25 will be specifically described. For example, whether or not the difference between the average value of the lateral width in the relatively upper region 401a and the average value of the lateral width in the relatively central region 401b is greater than or equal to a threshold value. If it is equal to or greater than the threshold value, it can be determined that the projection of the figure in the rectangular label 401 is at an appropriate position as “1”. Further, the difference between the average value of the lateral width in the relatively upper region 401a and the average value of the lateral width in the relatively central region 401b is equal to or greater than the threshold value, and the width of the relatively lower region 401c When the difference between the average value and the average width value in the relatively central area 401b is equal to or greater than the threshold value, it is determined that the projection of the figure in the rectangular label 401 is at a reasonable position as “1”. You can also.

以上のように本実施形態では、矩形ラベル401内の画素値を読み取り、読み取った画素値が、辞書マッチングにより認識されるタブ譜上の数字に応じて予め設定された条件のどれに合うかを判定することにより、当該矩形ラベル401内の図形がどの数字に該当するかを判別するようにした。したがって、五線消去を行っても、タブ譜(の数字)を従来よりも正確に認識することが、辞書マッチングの手法を変えることなく実現できる。   As described above, in the present embodiment, the pixel value in the rectangular label 401 is read, and which of the conditions set in advance according to the number on the tablature recognized by the dictionary matching is determined. By determining, it is determined which number the figure in the rectangular label 401 corresponds to. Therefore, even if the staff is erased, it is possible to recognize the tablature (number) more accurately than before without changing the dictionary matching method.

尚、本実施形態では、図3のステップS17、S19において、矩形ラベル401内の図形の内縁間距離に基づいて、矩形ラベル401内の図形が「0」であるか「8」であるかを判別するようにした。しかしながら、矩形ラベル401内の図形の横方向における内縁間距離に代えて(又は加えて)矩形ラベル401内の図形の横方向における外縁間距離(又は矩形ラベル401の端部から矩形ラベル401内の図形の外縁までの横方向における最短距離)に基づいて、矩形ラベル401内の図形が「0」であるか「8」であるかを判別するようにしてもよい。   In the present embodiment, in steps S17 and S19 of FIG. 3, whether the graphic in the rectangular label 401 is “0” or “8” is determined based on the distance between the inner edges of the graphic in the rectangular label 401. I decided to distinguish. However, instead of (or in addition to) the distance between the inner edges in the horizontal direction of the graphic in the rectangular label 401, the distance between the outer edges in the horizontal direction of the graphic in the rectangular label 401 (or from the end of the rectangular label 401 to the Whether the figure in the rectangular label 401 is “0” or “8” may be determined based on the shortest distance in the horizontal direction to the outer edge of the figure.

また、本実施形態では、図3のステップS12の画像走査処理において、矩形ラベル401のラインの全てを走査してから、矩形ラベル401内の図形のすき間と、水平方向における内縁間距離とを一度に求めるようにした(図7のステップS104〜S109を参照)。しかしながら、必ずしもこのようにする必要はない。例えば、画像走査処理では、矩形ラベル401内の図形のすき間の長さと位置だけを求め、ステップS13、S14と、ステップS17との間で、矩形ラベル401内の図形の水平方向における内縁間距離と、その内縁間距離が存在する位置とを求めるようにしてもよい。このようにした場合、画像走査処理では、黒画素(画素値が1の画素)が存在した時点で横方向(右方向及び左方向)への走査を終了し、始点を上下方向に移動することができる。また、矩形ラベル401内の図形の水平方向における内縁間距離を求める際にも、左右両側に黒画素(画素値が1の画素)が存在した時点で横方向(右方向及び左方向)への走査を終了し、始点を上下方向に移動することができる。   In the present embodiment, in the image scanning process in step S12 of FIG. 3, after all the lines of the rectangular label 401 are scanned, the gap between the figures in the rectangular label 401 and the distance between the inner edges in the horizontal direction are once set. (See steps S104 to S109 in FIG. 7). However, this is not always necessary. For example, in the image scanning process, only the gap length and position of the graphic in the rectangular label 401 are obtained, and the distance between the inner edges in the horizontal direction of the graphic in the rectangular label 401 is determined between steps S13, S14 and S17. The position where the distance between the inner edges exists may be obtained. In this case, in the image scanning process, scanning in the horizontal direction (right direction and left direction) is terminated when a black pixel (a pixel having a pixel value of 1) exists, and the starting point is moved in the vertical direction. Can do. Also, when obtaining the distance between the inner edges in the horizontal direction of the figure in the rectangular label 401, when there are black pixels (pixels having a pixel value of 1) on both the left and right sides, the horizontal direction (right direction and left direction) is determined. The scanning can be finished and the starting point can be moved up and down.

また、本実施形態のように、矩形ラベル401内の図形のすき間の長さが閾値以上でない場合には、その図形にすき間がないものとして処理を行えば(図3のステップS14、S17〜S20を参照)、より正確に数字を判別することができ好ましいが、必ずしもステップS14の処理を行う必要はない。   Further, as in the present embodiment, when the gap length of the graphic in the rectangular label 401 is not greater than or equal to the threshold value, the process is performed assuming that there is no gap in the graphic (steps S14 and S17 to S20 in FIG. 3). However, it is not always necessary to perform the process of step S14.

また、本実施形態では、図3のステップS28において、矩形ラベル401内の図形と、矩形ラベル401から閾値以内の距離にある縦線との横方向の位置のずれが閾値以上である場合には、ステップS29において、矩形ラベル401内の図形が「1」であると判別したが、必ずしもこのようにする必要はない。例えば、辞書マッチングにより認識されたタブ譜上の数字の認識結果を破棄するようにしてもよい。   Further, in the present embodiment, in step S28 of FIG. 3, when the positional deviation in the horizontal direction between the figure in the rectangular label 401 and the vertical line at a distance within the threshold from the rectangular label 401 is equal to or greater than the threshold. In step S29, it is determined that the figure in the rectangular label 401 is “1”, but this is not necessarily required. For example, you may make it discard the recognition result of the number on the tablature recognized by dictionary matching.

また、図3のステップS17、S19と、ステップS18との間で、図7のステップS102でYESと判定されたか否かを判定し、図7のステップS102でYESと判定された場合には、ステップS20に進み、図7のステップS102でNOと判定された場合にはステップS18に進むようにしてもよい。   Further, between steps S17 and S19 in FIG. 3 and step S18, it is determined whether or not YES is determined in step S102 in FIG. 7, and if YES is determined in step S102 in FIG. It progresses to step S20, and when it determines with NO by step S102 of FIG. 7, you may make it progress to step S18.

また、本実施形態では、図9のステップS302において、ステップS301で分離した3つの領域401a〜401c毎に、矩形ラベル401内の図形の横幅(外縁間距離)の平均値を算出するようにした。しかしながら、必ずしもこのようにする必要はなく、ステップS301で分離した3つの領域401a〜401c毎に、矩形ラベル401内の図形の横幅(外縁間距離)の最大値を算出するようにしてもよい。   In the present embodiment, in step S302 of FIG. 9, the average value of the horizontal width (distance between outer edges) of the figure in the rectangular label 401 is calculated for each of the three regions 401a to 401c separated in step S301. . However, this is not always necessary, and the maximum value of the horizontal width (distance between outer edges) of the figure in the rectangular label 401 may be calculated for each of the three regions 401a to 401c separated in step S301.

また、本実施形態では、「2」、「3」、「5」、「7」については、音楽記号認識処理(パターンマッチング)による認識の信頼性が高いものとし、認識された数字が「2」、「3」、「5」又は「7」である場合には、図3のフローチャートによる処理を行わないようにした。しかしながら、必ずしもこのようにする必要はない。例えば、「2」、「3」、「5」、「7」についても、ステップS15で判別するようにしてもよい。   In this embodiment, “2”, “3”, “5”, and “7” are assumed to have high recognition reliability by the music symbol recognition process (pattern matching), and the recognized number is “2”. "," 3 "," 5 "or" 7 ", the processing according to the flowchart of FIG. 3 is not performed. However, this is not always necessary. For example, “2”, “3”, “5”, and “7” may also be determined in step S15.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。前述した第1の実施形態では、矩形ラベル401内の図形にすき間があるか否かを、横方向の走査のみを行って判定する場合を例に挙げて説明した。しかしながら、このようにすると、矩形ラベル401内の図形が斜め方向のすき間を有している場合に、当該すき間を検出することができなくなる。図11は、矩形ラベル401内で、斜め方向にすき間がある図形の一例を示す図である。図11に示す例では、紙面に向かって左斜め上の方向に図形のすき間がある。そこで、本実施形態では、このような斜め方向にすき間がある図形についても当該すき間の有無を判定できるようにする。このように本実施形態と前述した第1の実施形態とは、すき間の有無を判定する際の処理(図3のステップS12の画像走査処理)の一部が主として異なる。したがって、本実施形態の説明において、前述した第1の実施形態と同一の部分については、図1〜図10に付した符号と同一の符号を付す等して詳細な説明を省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the first embodiment described above, an example has been described in which whether or not there is a gap in the graphic in the rectangular label 401 is determined by performing only horizontal scanning. However, in this case, when the figure in the rectangular label 401 has a gap in the oblique direction, the gap cannot be detected. FIG. 11 is a diagram showing an example of a figure having a gap in an oblique direction in the rectangular label 401. In the example shown in FIG. 11, there is a gap between figures in the upper left direction toward the page. Therefore, in the present embodiment, it is possible to determine the presence / absence of a gap even in such a figure having a gap in an oblique direction. As described above, the present embodiment is different from the first embodiment described above mainly in part of the process (image scanning process in step S12 in FIG. 3) when determining the presence or absence of a gap. Therefore, in the description of the present embodiment, the same parts as those in the first embodiment described above are denoted by the same reference numerals as those in FIGS.

図12は、図3のステップS12における画像走査処理の一例について説明するフローチャートである。
まず、図12−1のステップS401において、CPU1は、画素の走査を行う始点を初期位置に設定する。本実施形態でも、矩形ラベル401の横方向の中心であって、矩形ラベル401内に五線が存在していた位置に始点を設定する。ただし、始点の初期位置はこのようなものに限定されない。
FIG. 12 is a flowchart illustrating an example of the image scanning process in step S12 of FIG.
First, in step S401 in FIG. 12A, the CPU 1 sets a starting point for scanning a pixel as an initial position. Also in the present embodiment, the starting point is set at the center of the rectangular label 401 in the horizontal direction where the staff was present in the rectangular label 401. However, the initial position of the starting point is not limited to this.

次に、ステップS402において、CPU1は、設定した始点が黒画素(始点の画素値が1)であるか否かを判定する。この判定の結果、ステップS401で設定した始点が黒画素である場合には、ステップS403に進む。ステップS403に進むと、ステップS401で設定した始点の上下方向の位置を図7のステップS102で説明したのと同様にしてずらし、始点の位置を再設定する。そして、ステップS402に戻り、設定した始点が白画素(始点の画素値が0)になるまで、ステップS402、S403を繰り返し行う。   Next, in step S402, the CPU 1 determines whether or not the set start point is a black pixel (the pixel value of the start point is 1). As a result of this determination, if the starting point set in step S401 is a black pixel, the process proceeds to step S403. In step S403, the vertical position of the starting point set in step S401 is shifted in the same manner as described in step S102 in FIG. 7, and the starting point position is reset. Then, the process returns to step S402, and steps S402 and S403 are repeated until the set start point is a white pixel (the pixel value of the start point is 0).

以上のようにして始点が白画素になると、ステップS404に進む。ステップS404に進むと、CPU1は、設定した始点を基点として左方向(ここでは、図11の紙面に向かって左方向とする)に画素を走査して、各画素の画素値を読み取る。このとき、CPU1は、RAM3やレジスタに記憶される左方向フラグをオンする。
次に、ステップS405において、CPU1は、画素を走査することにより得られた各白画素の配置(画素の画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを図7のステップS107で説明したのと同様にして判定する。この判定の結果、矩形ラベル401内の図形にすき間がない場合には、後述するステップS415に進む。
When the starting point is a white pixel as described above, the process proceeds to step S404. In step S404, the CPU 1 scans the pixels leftward (here, leftward toward the paper surface of FIG. 11) with the set start point as a base point, and reads the pixel value of each pixel. At this time, the CPU 1 turns on the left direction flag stored in the RAM 3 or the register.
Next, in step S405, the CPU 1 determines whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of each white pixel (pixel value of the pixel) obtained by scanning the pixel. The determination is performed in the same manner as described in step S107. As a result of the determination, if there is no gap in the graphic in the rectangular label 401, the process proceeds to step S415 to be described later.

一方、この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS406に進む。ステップS406に進むと、CPU1は、ステップS404でオンした左方向フラグをオフする。
次に、ステップS407において、CPU1は、設定した始点を基点として右方向に画素を走査して、各画素の画素値を読み取る。このとき、CPU1は、RAM3やレジスタに記憶される右方向フラグをオンする。
次に、ステップS408において、CPU1は、画素を走査することにより得られた各白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを図7のステップS107で説明したのと同様にして判定する。この判定の結果、矩形ラベル401内の図形にすき間がない場合には、後述する図12−2のステップS428に進む。
On the other hand, if the result of this determination is that there is a gap in the figure in the rectangular label 401, the process proceeds to step S406. In step S406, the CPU 1 turns off the left direction flag turned on in step S404.
Next, in step S407, the CPU 1 scans the pixel in the right direction with the set start point as a base point, and reads the pixel value of each pixel. At this time, the CPU 1 turns on the right direction flag stored in the RAM 3 or the register.
Next, in step S408, the CPU 1 determines whether or not there is a gap in the graphic in the rectangular label 401 based on the arrangement of each white pixel (that is, the pixel value) obtained by scanning the pixel. The determination is performed in the same manner as described in step S107. As a result of the determination, if there is no gap in the graphic in the rectangular label 401, the process proceeds to step S428 in FIG.

一方、この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS409に進む。ステップS409に進むと、CPU1は、ステップS407でオンした右方向フラグをオフする。
次に、ステップS410において、CPU1は、矩形ラベル401のラインを全て走査したか否かを判定する。この判定の結果、矩形ラベル401のラインを全て走査していない場合には、後述するステップS414に進む。
On the other hand, if the result of this determination is that there is a gap in the graphic in the rectangular label 401, the process proceeds to step S409. In step S409, the CPU 1 turns off the right direction flag turned on in step S407.
Next, in step S410, the CPU 1 determines whether all the lines of the rectangular label 401 have been scanned. As a result of the determination, if all the lines of the rectangular label 401 have not been scanned, the process proceeds to step S414 described later.

一方、矩形ラベル401のラインを全て走査した場合には、ステップS411に進む。ステップS411に進むと、CPU1は、矩形ラベル401内の各白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを、図7のステップS107で説明したようにして判定する。この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS412に進む。ステップS412に進むと、CPU1は、矩形ラベル401内の図形のすき間の位置と長さを求め、それらを相互に関連付けてRAM3に記憶する。そして、ステップS413に進む。
また、ステップS411において、矩形ラベル401内の図形にすき間がない場合には、ステップS412を省略してステップS413に進む。ステップS413に進むと、CPU1は、矩形ラベル401内の各画素の画素値に基づいて、矩形ラベル401内の図形の水平方向における内縁間距離と、その内縁間距離が存在する位置とを求め、それらを相互に関連付けてRAM3に記憶する。そして、図12のフローチャートによる処理を終了する。
On the other hand, if all the lines of the rectangular label 401 have been scanned, the process proceeds to step S411. In step S411, the CPU 1 explains in step S107 in FIG. 7 whether or not there is a gap in the graphic in the rectangular label 401 based on the arrangement (that is, the pixel value) of each white pixel in the rectangular label 401. Judgment is made as described above. If the result of this determination is that there is a gap in the graphic within the rectangular label 401, the flow proceeds to step S412. In step S412, the CPU 1 obtains the position and length of the graphic gap in the rectangular label 401 and stores them in the RAM 3 in association with each other. Then, the process proceeds to step S413.
If there is no gap in the graphic in the rectangular label 401 in step S411, step S412 is omitted and the process proceeds to step S413. In step S413, the CPU 1 obtains the distance between the inner edges of the graphic in the rectangular label 401 in the horizontal direction and the position where the distance between the inner edges exists based on the pixel value of each pixel in the rectangular label 401. They are stored in the RAM 3 in association with each other. And the process by the flowchart of FIG. 12 is complete | finished.

前述したように、ステップS410において、矩形ラベル401のラインを全て走査していないと判定された場合には、ステップS414に進む。ステップS414に進むと、CPU1は、始点の上下方向の位置をステップS106で説明したのと同様にしてずらし、始点の位置を再設定する。
そして、CPU1は、始点の位置を上方向にずらす場合には、RAM3やレジスタに記憶される上方向フラグをオンし、始点の位置を下方向にずらす場合には、RAM3やレジスタに記憶される下方向フラグをオンする。そして、前述したステップS404に戻り、再設定した始点の位置からステップS404以降の処理を行う。
As described above, if it is determined in step S410 that all the lines of the rectangular label 401 have not been scanned, the process proceeds to step S414. In step S414, the CPU 1 shifts the vertical position of the start point in the same manner as described in step S106, and resets the start point position.
Then, the CPU 1 turns on the upward flag stored in the RAM 3 or the register when shifting the starting point position upward, and stores it in the RAM 3 or the register when shifting the starting point position downward. Turn on the down flag. Then, the process returns to the above-described step S404, and the processes after step S404 are performed from the reset position of the starting point.

前述したように、ステップS405において、矩形ラベル401内の図形にすき間がないと判定された場合には、ステップS415に進む。ステップS415に進むと、CPU1は、下方向フラグがオンされているか否かを判定する。この判定の結果、下方向フラグがオンされていない場合には、後述するステップS422に進む。
一方、下方向フラグがオンされている場合には、ステップS416に進む。ステップS416に進むと、CPU1は、すき間が存在しないと判定した時点における画素の1つ上の画素に走査点を移動する。
As described above, if it is determined in step S405 that there is no gap in the graphic in the rectangular label 401, the process proceeds to step S415. In step S415, the CPU 1 determines whether or not the downward flag is turned on. If the result of this determination is that the downward flag is not turned on, processing proceeds to step S422 described later.
On the other hand, if the downward flag is turned on, the process proceeds to step S416. In step S416, the CPU 1 moves the scanning point to a pixel one pixel above the pixel at the time point when it is determined that there is no gap.

次に、ステップS417において、CPU1は、ステップS416における走査点の移動が可能であるか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の1つ上の画素が白画素である場合には、走査点の移動が可能であると判定する。一方、すき間が存在しないと判定した時点における画素の1つ上の画素が黒画素である場合には、走査点の移動が不可能であると判定する。尚、ステップS416、S417の処理の順番を入れ替えてもよい。
この判定の結果、走査点の移動が不可能である場合には、ステップS421に進み、CPU1は、オンされているフラグ(上下左右方向フラグ)を全てオフする。そして、前述したステップS407に進み、右方向への走査を行う。
Next, in step S417, the CPU 1 determines whether or not the scanning point in step S416 can be moved. For example, when the pixel immediately above the pixel at which it is determined that there is no gap is a white pixel, it is determined that the scanning point can be moved. On the other hand, when the pixel immediately above the pixel at the time when it is determined that there is no gap is a black pixel, it is determined that the scanning point cannot be moved. Note that the processing order of steps S416 and S417 may be changed.
As a result of this determination, if the scanning point cannot be moved, the process proceeds to step S421, and the CPU 1 turns off all the flags that are turned on (up / down / left / right direction flags). Then, the process proceeds to step S407 described above, and scanning in the right direction is performed.

一方、走査点の移動が可能である場合には、ステップS418に進み、CPU1は、移動した走査点を基点として左方向に画素を走査して、各画素の画素値を読み取る。
次に、ステップS419において、画素を走査することにより得られた各白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。例えば、移動した走査点を基点として左方向に黒画素が1つもない場合に、矩形ラベル401内の図形のすき間があると判定される。この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS420を省略して前述したステップS421に進む。一方、矩形ラベル401内の図形にすき間がない場合には、ステップS420に進む。
On the other hand, if the scanning point can be moved, the process proceeds to step S418, and the CPU 1 scans the pixel leftward with the moved scanning point as a base point, and reads the pixel value of each pixel.
Next, in step S419, it is determined whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of each white pixel (that is, the pixel value) obtained by scanning the pixel. For example, when there is no black pixel in the left direction with the moved scanning point as a base point, it is determined that there is a gap between figures in the rectangular label 401. If the result of this determination is that there is a gap in the graphic within the rectangular label 401, step S420 is omitted and processing proceeds to step S421 described above. On the other hand, if there is no gap in the figure in the rectangular label 401, the process proceeds to step S420.

ステップS420に進むと、CPU1は、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置であるか否かを判定する。この判定の結果、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置でない場合には、前述したステップS416に戻り、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置になるまで、ステップS416〜S420を繰り返し行う。
そして、ステップS421に進むと、CPU1は、オンされているフラグを全てオフする。そして、前述したステップS407に進み、右方向への走査を行う。
In step S420, the CPU 1 determines whether or not the vertical position of the scanning point is a position where the staff was present in the rectangular label 401. As a result of this determination, if the vertical position of the scanning point is not the position where the staff was present in the rectangular label 401, the process returns to step S416 described above, and the vertical position of the scanning point is the rectangular label. Steps S416 to S420 are repeatedly performed until the staff is located in 401.
In step S421, the CPU 1 turns off all the flags that are turned on. Then, the process proceeds to step S407 described above, and scanning in the right direction is performed.

前述したように、ステップS415において、下方向フラグがオンされていないと判定された場合には、ステップS422に進む。ステップS422に進むと、CPU1は、上方向フラグがオンされているか否かを判定する。この判定の結果、上方向フラグがオンされている場合には、後述するステップS423に進む。
一方、上方向フラグがオンされていない場合には、ステップS441に進む。ステップS441に進むと、CPU1は、走査点を下に1画素ずらすか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の上下の画素のうち、下のみに白画素がある場合に、走査点を下に1画素ずらすと判定する。
As described above, when it is determined in step S415 that the downward flag is not turned on, the process proceeds to step S422. In step S422, the CPU 1 determines whether or not the upward flag is turned on. If the upward flag is turned on as a result of this determination, the process proceeds to step S423 described later.
On the other hand, if the upward flag is not turned on, the process proceeds to step S441. In step S441, the CPU 1 determines whether or not to shift the scanning point downward by one pixel. For example, when there is a white pixel only below the upper and lower pixels at the time when it is determined that there is no gap, it is determined that the scanning point is shifted downward by one pixel.

この判定の結果、走査点を下に1画素ずらす場合には、ステップS442に進み、CPU1は、すき間が存在しないと判定した時点における画素の1つ下の画素に走査点を移動する。そして、前述したステップS418に進む。
一方、走査点を下に1画素ずらさない場合には、ステップS443に進み、CPU1は、走査点を上に1画素ずらすか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の上下の画素のうち、上のみに白画素がある場合に、走査点を上に1画素ずらすと判定する。
この判定の結果、走査点を上に1画素ずらす場合には、ステップS444に進み、CPU1は、すき間が存在しないと判定した時点における画素の1つ上の画素に走査点を移動する。そして、後述するステップS425に進む。一方、走査点を上に1画素ずらさない場合には、前述したステップS407に進み、始点から右方向への走査を行う。
As a result of this determination, when the scanning point is shifted downward by one pixel, the process proceeds to step S442, and the CPU 1 moves the scanning point to the pixel immediately below the pixel at the time when it is determined that there is no gap. Then, the process proceeds to step S418 described above.
On the other hand, when the scanning point is not shifted by one pixel, the process proceeds to step S443, and the CPU 1 determines whether or not the scanning point is shifted by one pixel. For example, when there is a white pixel only above the upper and lower pixels at the time when it is determined that there is no gap, it is determined that the scanning point is shifted upward by one pixel.
If the result of this determination is that the scanning point is shifted upward by one pixel, processing proceeds to step S444, and the CPU 1 moves the scanning point to a pixel one pixel above that at the time when it is determined that there is no gap. And it progresses to step S425 mentioned later. On the other hand, when the scanning point is not shifted upward by one pixel, the process proceeds to step S407 described above, and scanning from the start point to the right is performed.

前述したようにステップS422の判定の結果、上方向フラグがオンされていると判定された場合には、ステップS423に進む。ステップS423に進むと、CPU1は、すき間が存在しないと判定した時点における画素の1つ下の画素に走査点を移動する。   As described above, if it is determined that the upward flag is turned on as a result of the determination in step S422, the process proceeds to step S423. In step S423, the CPU 1 moves the scanning point to the pixel immediately below the pixel at the time when it is determined that there is no gap.

次に、ステップS424において、CPU1は、ステップS423における走査点の移動が可能であるか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の1つ下の画素が白画素である場合には、走査点の移動が可能であると判定する。一方、すき間が存在しないと判定した時点における画素の1つ下の画素が黒画素である場合には、走査点の移動が不可能であると判定する。尚、ステップS423、S424の処理の順番を入れ替えてもよい。
この判定の結果、走査点の移動が不可能である場合には、前述したステップS421に進み、CPU1は、オンされているフラグ(上下左右方向フラグ)を全てオフする。そして、前述したステップS407に進み、右方向への走査を行う。
Next, in step S424, the CPU 1 determines whether or not the scanning point in step S423 can be moved. For example, when the pixel immediately below the pixel when it is determined that there is no gap is a white pixel, it is determined that the scanning point can be moved. On the other hand, when the pixel immediately below the pixel when it is determined that there is no gap is a black pixel, it is determined that the scanning point cannot be moved. Note that the order of the processes in steps S423 and S424 may be changed.
If the result of this determination is that the scanning point cannot be moved, the process proceeds to step S421 described above, and the CPU 1 turns off all the flags that have been turned on (up / down / left / right direction flags). Then, the process proceeds to step S407 described above, and scanning in the right direction is performed.

一方、走査点の移動が可能である場合には、ステップS425に進み、CPU1は、移動した走査点を基点として左方向に画素を走査して、各画素の画素値を読み取る。
次に、ステップS426において、画素を走査することにより得られた白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。例えば、移動した走査点を基点として左方向に黒画素が1つもない場合に、矩形ラベル401内の図形のすき間があると判定される。この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS427を省略して前述したステップS421に進む。一方、矩形ラベル401内の図形にすき間がない場合には、ステップS427に進む。
On the other hand, if the scanning point can be moved, the process proceeds to step S425, and the CPU 1 scans the pixel leftward with the moved scanning point as a base point, and reads the pixel value of each pixel.
Next, in step S426, it is determined whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of white pixels (that is, the pixel value) obtained by scanning the pixel. For example, when there is no black pixel in the left direction with the moved scanning point as a base point, it is determined that there is a gap between figures in the rectangular label 401. If the result of this determination is that there is a gap in the graphic within the rectangular label 401, step S427 is omitted and the process proceeds to step S421 described above. On the other hand, if there is no gap in the graphic in the rectangular label 401, the process proceeds to step S427.

ステップS427に進むと、CPU1は、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置であるか否かを判定する。この判定の結果、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置でない場合には、前述したステップS423に戻り、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置になるまで、ステップS423〜S427を繰り返し行う。そして、前述したステップS421に進む。   In step S427, the CPU 1 determines whether the vertical position of the scanning point is a position where the staff was present in the rectangular label 401. As a result of the determination, if the vertical position of the scanning point is not the position where the staff was present in the rectangular label 401, the process returns to step S423 described above, and the vertical position of the scanning point is the rectangular label. Steps S423 to S427 are repeatedly performed until the staff in 401 is located. Then, the process proceeds to step S421 described above.

前述したように、ステップS408において、矩形ラベル401内の図形にすき間がないと判定された場合には、図12−2のステップS428に進む。ステップS428に進むと、CPU1は、下方向フラグがオンされているか否かを判定する。この判定の結果、下方向フラグがオンされていない場合には、後述するステップS435に進む。
一方、下方向フラグがオンされている場合には、ステップS429に進む。ステップS429に進むと、CPU1は、すき間が存在しないと判定した時点における画素の1つ上の画素に走査点を移動する。
As described above, if it is determined in step S408 that there is no gap in the graphic in the rectangular label 401, the process proceeds to step S428 in FIG. In step S428, the CPU 1 determines whether or not the downward flag is turned on. If the result of this determination is that the downward flag is not turned on, processing proceeds to step S435 described later.
On the other hand, if the downward flag is turned on, the process proceeds to step S429. In step S429, the CPU 1 moves the scanning point to a pixel one pixel above the pixel at the time point when it is determined that there is no gap.

次に、ステップS430において、CPU1は、ステップS429における走査点の移動が可能であるか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の1つ上の画素が白画素である場合には、走査点の移動が可能であると判定する。一方、すき間が存在しないと判定した時点における画素の1つ上の画素が黒画素である場合には、走査点の移動が不可能であると判定する。尚、ステップS429、S430の処理の順番を入れ替えてもよい。
この判定の結果、走査点の移動が不可能である場合には、ステップS434に進み、CPU1は、オンされているフラグ(上下左右方向フラグ)を全てオフする。そして、前述したステップS410に進み、矩形ラベル401内の全てのラインを走査したか否かを判定する。
Next, in step S430, the CPU 1 determines whether or not the scanning point in step S429 can be moved. For example, when the pixel immediately above the pixel at which it is determined that there is no gap is a white pixel, it is determined that the scanning point can be moved. On the other hand, when the pixel immediately above the pixel at the time when it is determined that there is no gap is a black pixel, it is determined that the scanning point cannot be moved. Note that the order of the processes in steps S429 and S430 may be changed.
As a result of this determination, if the scanning point cannot be moved, the process proceeds to step S434, and the CPU 1 turns off all the flags that are turned on (up / down / left / right direction flags). Then, the process proceeds to step S410 described above, and it is determined whether or not all the lines in the rectangular label 401 have been scanned.

一方、走査点の移動が可能である場合には、ステップS431に進み、CPU1は、移動した走査点を基点として右方向に画素を走査して、各画素の画素値を読み取る。
次に、ステップS432において、CPU1は、画素を走査することにより得られた白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。例えば、移動した走査点を基点として右方向に黒画素が1つもない場合に、矩形ラベル401内の図形のすき間があると判定される。この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS433を省略して前述したステップS434に進む。一方、矩形ラベル401内の図形にすき間がない場合には、ステップS433に進む。
On the other hand, if the scanning point can be moved, the process proceeds to step S431, and the CPU 1 scans the pixel in the right direction with the moved scanning point as a base point, and reads the pixel value of each pixel.
Next, in step S432, the CPU 1 determines whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of white pixels (that is, the pixel value) obtained by scanning the pixel. For example, when there is no black pixel in the right direction with the moved scanning point as a base point, it is determined that there is a gap between figures in the rectangular label 401. If the result of this determination is that there is a gap in the graphic within the rectangular label 401, step S433 is omitted and the process proceeds to step S434 described above. On the other hand, if there is no gap in the figure in the rectangular label 401, the process proceeds to step S433.

ステップS433に進むと、CPU1は、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置であるか否かを判定する。この判定の結果、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置でない場合には、前述したステップS429に戻り、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置になるまで、ステップS429〜S433を繰り返し行う。
そして、ステップS434に進むと、CPU1は、オンされているフラグを全てオフする。そして、前述したステップS410に進み、矩形ラベル401内の全てのラインを走査したか否かを判定する。
In step S433, the CPU 1 determines whether the vertical position of the scanning point is a position where the staff was present in the rectangular label 401. As a result of this determination, if the vertical position of the scanning point is not the position where the staff was present in the rectangular label 401, the process returns to step S429 described above, and the vertical position of the scanning point is the rectangular label. Steps S429 to S433 are repeatedly performed until the staff in 401 is located.
Then, in step S434, the CPU 1 turns off all the flags that are turned on. Then, the process proceeds to step S410 described above, and it is determined whether or not all the lines in the rectangular label 401 have been scanned.

前述したように、ステップS428において、下方向フラグがオンされていないと判定された場合には、ステップS435に進む。ステップS435に進むと、CPU1は、上方向フラグがオンされているか否かを判定する。この判定の結果、上方向フラグがオンされている場合には、後述するステップS435に進む。
一方、上方向フラグがオンされていない場合には、ステップS445に進む。ステップS445に進むと、CPU1は、走査点を下に1画素ずらすか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の上下の画素のうち、下のみに白画素がある場合に、走査点を下に1画素ずらすと判定する。
As described above, when it is determined in step S428 that the downward flag is not turned on, the process proceeds to step S435. In step S435, the CPU 1 determines whether or not the upward flag is turned on. If the upward flag is turned on as a result of this determination, the process proceeds to step S435 described later.
On the other hand, if the upward flag is not turned on, the process proceeds to step S445. In step S445, the CPU 1 determines whether or not to shift the scanning point downward by one pixel. For example, when there is a white pixel only below the upper and lower pixels at the time when it is determined that there is no gap, it is determined that the scanning point is shifted downward by one pixel.

この判定の結果、走査点を下に1画素ずらす場合には、ステップS446に進み、CPU1は、すき間が存在しないと判定した時点における画素の1つ下の画素に走査点を移動する。そして、前述したステップS429に進む。
一方、走査点を下に1画素ずらさない場合には、ステップS447に進み、CPU1は、走査点を上に1画素ずらすか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の上下の画素のうち、上のみに白画素がある場合に、走査点を上に1画素ずらすと判定する。
As a result of this determination, when the scanning point is shifted downward by one pixel, the process proceeds to step S446, and the CPU 1 moves the scanning point to the pixel immediately below the pixel at the time when it is determined that there is no gap. Then, the process proceeds to step S429 described above.
On the other hand, when the scanning point is not shifted by one pixel, the process proceeds to step S447, and the CPU 1 determines whether or not the scanning point is shifted by one pixel. For example, when there is a white pixel only above the upper and lower pixels at the time when it is determined that there is no gap, it is determined that the scanning point is shifted upward by one pixel.

尚、すき間が存在しないと判定した時点における画素の上下の画素の両方が白画素である場合には、例えば、当該時点における画素の位置が、五線が存在していた位置よりも下である場合には下方向に、上である場合には上方向に走査点を1画素ずらすようにしてもよい。
この判定の結果、走査点を上に1画素ずらす場合には、ステップS448に進み、CPU1は、すき間が存在しないと判定した時点における画素の1つ上の画素に走査点を移動する。そして、後述するステップS438に進む。一方、走査点を上に1画素ずらさない場合には、前述したステップS410に進み、矩形ラベル410内の全てのラインを走査したか否かを判定する。
In addition, when both the upper and lower pixels of the pixel at the time when it is determined that there is no gap are white pixels, for example, the position of the pixel at the time is lower than the position where the staff was present. In such a case, the scanning point may be shifted by one pixel downward, and if it is upward, the scanning point may be shifted by one pixel.
As a result of this determination, when the scanning point is shifted up by one pixel, the process proceeds to step S448, and the CPU 1 moves the scanning point to a pixel one pixel above the pixel at which it is determined that there is no gap. And it progresses to step S438 mentioned later. On the other hand, when the scanning point is not shifted upward by one pixel, the process proceeds to step S410 described above, and it is determined whether or not all the lines in the rectangular label 410 have been scanned.

前述したようにステップS435の判定の結果、上方向フラグがオンされていると判定された場合には、ステップS436に進む。ステップS436に進むと、CPU1は、すき間が存在しないと判定した時点における画素の1つ下の画素に走査点を移動する。   As described above, when it is determined that the upward flag is turned on as a result of the determination in step S435, the process proceeds to step S436. In step S436, the CPU 1 moves the scanning point to a pixel immediately below the pixel at the time point when it is determined that there is no gap.

次に、ステップS437において、CPU1は、ステップS436における走査点の移動が可能であるか否かを判定する。例えば、すき間が存在しないと判定した時点における画素の1つ下の画素が白画素である場合には、走査点の移動が可能であると判定する。一方、すき間が存在しないと判定した時点における画素の1つ下の画素が黒画素である場合には、走査点の移動が不可能であると判定する。尚、ステップS436、S437の処理の順番を入れ替えてもよい。
この判定の結果、走査点の移動が不可能である場合には、前述したステップS434に進み、CPU1は、オンされているフラグ(上下左右方向フラグ)を全てオフする。そして、前述したステップS410に進み、矩形ラベル401内の全てのラインを走査したか否かを判定する。
Next, in step S437, the CPU 1 determines whether or not the scanning point in step S436 can be moved. For example, when the pixel immediately below the pixel when it is determined that there is no gap is a white pixel, it is determined that the scanning point can be moved. On the other hand, when the pixel immediately below the pixel when it is determined that there is no gap is a black pixel, it is determined that the scanning point cannot be moved. Note that the processing order of steps S436 and S437 may be changed.
If the result of this determination is that the scanning point cannot be moved, the process proceeds to step S434 described above, and the CPU 1 turns off all the flags that have been turned on (up / down / left / right direction flags). Then, the process proceeds to step S410 described above, and it is determined whether or not all the lines in the rectangular label 401 have been scanned.

一方、走査点の移動が可能である場合には、ステップS438に進み、CPU1は、移動した走査点を基点として右方向に画素を走査して、各画素の画素値を読み取る。
次に、ステップS439において、CPU1は、画素を走査することにより得られた白画素の配置(すなわち画素値)に基づいて、矩形ラベル401内の図形にすき間があるか否かを判定する。例えば、移動した走査点を基点として左方向に黒画素が1つもない場合に、矩形ラベル401内の図形のすき間があると判定される。この判定の結果、矩形ラベル401内の図形にすき間がある場合には、ステップS440を省略して前述したステップS434に進む。一方、矩形ラベル401内の図形にすき間がない場合には、ステップS440に進む。
On the other hand, if the scanning point can be moved, the process proceeds to step S438, and the CPU 1 scans the pixel in the right direction with the moved scanning point as a base point, and reads the pixel value of each pixel.
Next, in step S439, the CPU 1 determines whether there is a gap in the graphic in the rectangular label 401 based on the arrangement of white pixels (that is, the pixel value) obtained by scanning the pixel. For example, when there is no black pixel in the left direction with the moved scanning point as a base point, it is determined that there is a gap between figures in the rectangular label 401. If the result of this determination is that there is a gap in the graphic within the rectangular label 401, step S440 is omitted and the process proceeds to step S434 described above. On the other hand, if there is no gap in the figure in the rectangular label 401, the process proceeds to step S440.

ステップS440に進むと、CPU1は、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置であるか否かを判定する。この判定の結果、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置でない場合には、前述したステップS436に戻り、走査点の上下方向の位置が、矩形ラベル401内に五線が存在していた位置になるまで、ステップS436〜S440を繰り返し行う。そして、前述したステップS434に進む。   In step S440, the CPU 1 determines whether the vertical position of the scanning point is a position where the staff was present in the rectangular label 401. As a result of this determination, if the vertical position of the scanning point is not the position where the staff was present in the rectangular label 401, the process returns to step S436 described above, and the vertical position of the scanning point is the rectangular label. Steps S436 to S440 are repeated until the staff line 401 is located. Then, the process proceeds to step S434 described above.

ここで、図11に示した例を用いて、図12のフローチャートの流れを説明する。まず、図面中央付近において、紙面に向かって左方向に画素を走査している。したがって、ステップS404において、左方向フラグがオンされる。そして、画素1110に達すると、ステップS405において、すき間がないと判定される。ここでは、上方向フラグも下方向フラグもオンされていないとする。そうすると、ステップS415、S422を経てステップS441に進む。ここでは画素1110の下のみに白画素があるので、ステップS441、S442において、走査点が画素1110から画素1111に移動する。そして、ステップS418において、移動した走査点を基点として左方向に走査され、画素1112に達すると、ステップS419において、すき間がないと判定される。ここで、画素1112の位置は、五線が存在していた位置ではないとする。そうすると、ステップS420を経てステップS416に戻り、走査点が画素1112から画素1113に移動する。以降、ステップS417以降の処理を行うことにより、図11の矢印に示すように、矩形ラベル401内の図形の内縁に沿って画素を走査して(すなわち画素値を読み出して)すき間の有無が判定される。   Here, the flow of the flowchart of FIG. 12 will be described using the example shown in FIG. First, in the vicinity of the center of the drawing, the pixel is scanned in the left direction toward the paper surface. Accordingly, the left direction flag is turned on in step S404. When the pixel 1110 is reached, it is determined in step S405 that there is no gap. Here, it is assumed that neither the upward flag nor the downward flag is turned on. If it does so, it will progress to step S441 through step S415 and S422. Here, since the white pixel exists only under the pixel 1110, the scanning point moves from the pixel 1110 to the pixel 1111 in steps S441 and S442. Then, in step S418, scanning is performed in the left direction with the moved scanning point as a base point, and when the pixel 1112 is reached, it is determined in step S419 that there is no gap. Here, it is assumed that the position of the pixel 1112 is not the position where the staff was present. Then, the process returns to step S416 via step S420, and the scanning point moves from the pixel 1112 to the pixel 1113. Thereafter, by performing the processing from step S417 onward, as shown by the arrow in FIG. 11, the presence or absence of a gap is determined by scanning the pixel along the inner edge of the graphic in the rectangular label 401 (that is, reading the pixel value). Is done.

ただし、画素1110に達した場合には、横方向(右方向及び左方向)への走査を終了し、始点を上下方向に移動するようにしてもよい。例えば、下方向フラグがオンされているとして、このようにする場合の動作の概要の一例を説明する。まず、ステップS404において、左方向フラグがオンされ、図11の中央付近から左方向に画素が走査される。そして、走査点が画素1110に達すると、ステップS405において、すき間がないと判定される。ここでは下方向フラグがオンされているので、ステップS416に進み、ステップS416、S417において、上方向に走査点を移動させることができないと判定され、ステップS421でフラグがオフされる。このようにして、画素1110に達した場合には、横方向(右方向及び左方向)への走査が終了する。その後、ステップS407以降の処理を経てステップS404に戻り、画素1110の1つ下の画素が左方向に走査され、画素1112に到達する。画素1112に到達した後の処理は、前述した通りである。   However, when the pixel 1110 is reached, scanning in the horizontal direction (right direction and left direction) may be terminated and the starting point may be moved in the vertical direction. For example, assuming that the downward flag is turned on, an example of an outline of the operation in this case will be described. First, in step S404, the left direction flag is turned on, and the pixel is scanned leftward from the vicinity of the center in FIG. When the scanning point reaches the pixel 1110, it is determined in step S405 that there is no gap. Here, since the downward flag is turned on, the process proceeds to step S416. In steps S416 and S417, it is determined that the scanning point cannot be moved upward, and the flag is turned off in step S421. In this way, when the pixel 1110 is reached, scanning in the horizontal direction (right direction and left direction) ends. Then, the process returns to step S404 through the processing from step S407 onward, and the pixel immediately below the pixel 1110 is scanned leftward to reach the pixel 1112. The processing after reaching the pixel 1112 is as described above.

以上のように本実施形態では、矩形ラベル401内の図形の内縁に沿って画素を走査してすき間の有無を判定するようにしたので、前述した第1の実施形態で説明した効果に加え、図形のすき間が斜め方向に存在していた場合でも、当該すき間の有無を検出することができるようになる。
尚、本実施形態では、図形の全ての方向についてすき間の有無を判定する場合を例に挙げて説明したが、必ずしもこのようにする必要はない。例えば、「0」、「6」、「8」、「9」の特徴に鑑み、図形の右斜め下方向にすき間が存在することがないとする場合には、ステップS428〜S433、S445、S446の処理を省略し、ステップS408からステップS435に進むようにすることができる。
As described above, in the present embodiment, since the pixels are scanned along the inner edge of the graphic in the rectangular label 401 to determine the presence or absence of a gap, in addition to the effects described in the first embodiment, Even if there is a gap in the figure in an oblique direction, the presence or absence of the gap can be detected.
In the present embodiment, the case where the presence / absence of a gap is determined in all directions of a figure has been described as an example, but it is not always necessary to do so. For example, in view of the characteristics of “0”, “6”, “8”, and “9”, if there is no gap in the diagonally lower right direction of the graphic, steps S428 to S433, S445, and S446 are performed. The process of step S408 can be omitted, and the process can proceed from step S408 to step S435.

また、本実施形態では、画素を走査すると、当該画素の画素値を必ず読み出すようにした場合を例に挙げて説明したが、必ずしもこのようにする必要はない。例えば、既に画素値を読み出した画素に対してフラグをオン、フラグがオンされている画素については、画素値を改めて読み出さないようにすることができる。
この他、本実施形態においても、前述した第1の実施形態で説明した種々の変形例を採用することができる。
In this embodiment, the case where the pixel value of the pixel is always read when the pixel is scanned has been described as an example. However, this is not necessarily required. For example, it is possible to turn off the flag for a pixel whose pixel value has already been read, and to prevent the pixel value from being read again for a pixel for which the flag is turned on.
In addition, also in this embodiment, various modifications described in the first embodiment can be employed.

以上説明した本発明の各実施形態は、コンピュータがプログラムを実行することによって実現することができる。また、プログラムをコンピュータに供給するための手段、例えばかかるプログラムを記録したCD−ROM等のコンピュータ読み取り可能な記録媒体、又はかかるプログラムを伝送する伝送媒体も本発明の実施の形態として適用することができる。また、上記プログラムを記録したコンピュータ読み取り可能な記録媒体などのプログラムプロダクトも本発明の実施の形態として適用することができる。上記のプログラム、コンピュータ読み取り可能な記録媒体、伝送媒体及びプログラムプロダクトは、本発明の範疇に含まれる。
また、前述した各実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。
Each embodiment of the present invention described above can be realized by a computer executing a program. Further, a means for supplying the program to the computer, for example, a computer-readable recording medium such as a CD-ROM recording such a program, or a transmission medium for transmitting such a program may be applied as an embodiment of the present invention. it can. A program product such as a computer-readable recording medium in which the program is recorded can also be applied as an embodiment of the present invention. The above programs, computer-readable recording media, transmission media, and program products are included in the scope of the present invention.
In addition, each of the above-described embodiments is merely a specific example for carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. . That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

本発明の第1の実施形態を示し、楽譜認識装置の構成の一例を示すブロック図である。It is a block diagram which shows the 1st Embodiment of this invention and shows an example of a structure of a score recognition apparatus. 本発明の第1の実施形態を示し、CPUの処理の一例を説明するメインフローチャートである。It is a main flowchart which shows the 1st Embodiment of this invention and demonstrates an example of a process of CPU. 本発明の第1の実施形態を示し、認識結果検証処理の一例を説明するフローチャートである。5 is a flowchart illustrating an example of recognition result verification processing according to the first embodiment of this invention. 本発明の第1の実施形態を示し、矩形ラベル内の図形の第1の例を示す図である。It is a figure which shows the 1st Embodiment of this invention and shows the 1st example of the figure in a rectangular label. 本発明の第1の実施形態を示し、矩形ラベル内の図形の第2の例を示す図である。It is a figure which shows the 1st Embodiment of this invention and shows the 2nd example of the figure in a rectangular label. 本発明の第1の実施形態を示し、符尾の近辺に数字の1が表示されているタブ譜と、かすれ等により2つに分離された符尾が表示されているタブ譜とを示す図である。The figure which shows the 1st Embodiment of this invention and shows the tablature by which the number 1 is displayed in the vicinity of a stem, and the tablature by which the stem separated into two by the blurring etc. is displayed It is. 本発明の第1の実施形態を示し、図3のステップS12における画像走査処理の一例について説明するフローチャートである。4 is a flowchart illustrating an example of image scanning processing in step S12 of FIG. 3 according to the first embodiment of this invention. 本発明の第1の実施形態を示し、図3のステップS21における横幅判定処理の一例について説明するフローチャートである。It is a flowchart which shows the 1st Embodiment of this invention and demonstrates an example of the width determination process in FIG.3 S21. 本発明の第1の実施形態を示し、図3のステップS24における突起判定処理の一例について説明するフローチャートである。It is a flowchart which shows the 1st Embodiment of this invention and demonstrates an example of the protrusion determination process in FIG.3 S24. 本発明の第1の実施形態を示し、矩形ラベルを分離する様子の一例を示す図である。It is a figure which shows the 1st Embodiment of this invention and shows an example of a mode that a rectangular label is isolate | separated. 本発明の第2の実施形態を示し、矩形ラベル内で、斜め方向にすき間がある図形の一例を示す図である。It is a figure which shows the 2nd Embodiment of this invention and shows an example of the figure which has a gap in the diagonal direction within a rectangular label. 本発明の第2の実施形態を示し、図3のステップS12における画像走査処理の一例について説明するフローチャートである。It is a flowchart which shows the 2nd Embodiment of this invention and demonstrates an example of the image scanning process in FIG.3 S12. 本発明の第2の実施形態を示し、図12−1に続くフローチャートである。It is a flowchart which shows the 2nd Embodiment of this invention and continues to FIGS.

符号の説明Explanation of symbols

1 CPU
2 ROM
3 RAM
4 HDD
5 FDD
6 MIDI
7 スキャナインタフェース回路
8 プリンタインタフェース回路
9 キーボードインタフェース回路
10 CRTインタフェース回路
11 スキャナ
12 プリンタ
13 キーボード
14 CRT
100 楽譜認識装置
1 CPU
2 ROM
3 RAM
4 HDD
5 FDD
6 MIDI
7 Scanner Interface Circuit 8 Printer Interface Circuit 9 Keyboard Interface Circuit 10 CRT Interface Circuit 11 Scanner 12 Printer 13 Keyboard 14 CRT
100 Score recognition device

Claims (11)

紙面の楽譜の情報を含む画像を、画像読み取り手段から取得する取得手段と、
前記取得手段により取得された画像から、タブ譜における、弦に対応する横線を消去する消去手段と、
前記消去手段により横線が消去された後に、前記取得手段により取得された画像のうち、タブ譜の画像に含まれる図形に対してラベルを設定する設定手段と、
前記設定手段により設定されたラベルに含まれる図形と、予め設定されている辞書とをマッチングして当該図形が、どの数字に属するのかを認識する認識手段と、
前記ラベル内の画素の少なくとも一部の画素値を読み取る読み取り手段と、
前記読み取り手段により読み取られた画素値が、前記認識手段により認識される数字に応じて予め設定された条件の何れに該当するのかを判別することによって、前記ラベルに含まれる図形がどの数字に属するのかを判別する判別手段とを有することを特徴とする楽譜認識装置。
An acquisition means for acquiring an image including information of a score on a paper surface from an image reading means;
An erasing unit for erasing a horizontal line corresponding to a string in the tablature from the image acquired by the acquiring unit;
A setting unit that sets a label for a graphic included in the image of the tablature among the images acquired by the acquiring unit after the horizontal line is deleted by the deleting unit;
Recognizing means for matching a figure included in the label set by the setting means and a preset dictionary and recognizing which number the figure belongs to;
Reading means for reading pixel values of at least some of the pixels in the label;
By determining which of the preset conditions the pixel value read by the reading unit corresponds to the number recognized by the recognition unit, the figure included in the label belongs to which number A score recognition apparatus comprising: a discriminating means for discriminating whether or not.
前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形にすき間があるか否かを判定する判定手段と、
前記判定手段により前記ラベルに含まれる図形にすき間があると判定されると、前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形のすき間の位置を導出するすき間位置導出手段とを有し、
前記判別手段は、前記すき間位置導出手段により導出されたすき間の位置に基づいて、前記ラベルに含まれる図形がどの数字に属するのかを判別することを特徴とする請求項1に記載の楽譜認識装置。
Determination means for determining whether or not there is a gap in the graphic included in the label based on the pixel value read by the reading means;
A gap position deriving unit for deriving the position of the gap of the graphic included in the label based on the pixel value read by the reading unit when the determination unit determines that there is a gap in the graphic included in the label And
2. The score recognition apparatus according to claim 1, wherein the determining means determines which number a figure included in the label belongs to based on the gap position derived by the gap position deriving means. .
前記判定手段は、前記認識手段により認識された数字が、0、6、8、又は9である場合に、前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形にすき間があるか否かを判定し、
前記判別手段は、前記すき間位置導出手段により導出されたすき間の位置に基づいて、前記ラベルに含まれる図形が、6及び9の何れであるかを判別することを特徴とする請求項2に記載の楽譜認識装置。
When the number recognized by the recognizing means is 0, 6, 8, or 9, the determining means has a gap in the graphic included in the label based on the pixel value read by the reading means. Determine if there is,
The said discrimination | determination means discriminate | determines whether the figure contained in the said label is 6 and 9, based on the position of the gap derived | led-out by the said gap position deriving means. Sheet music recognition device.
前記判定手段により前記ラベルに含まれる図形にすき間があると判定されると、前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形のすき間の長さを導出するすき間長さ導出手段と、
前記すき間長さ導出手段により導出されたすき間の長さが閾値以上であるか否かを判定するすき間長さ判定手段とを有し、
前記判別手段は、前記すき間長さ判定手段により、すき間の長さが閾値以上であると判定されると、前記すき間位置導出手段により導出されたすき間の位置に基づいて、前記ラベルに含まれる図形がどの数字に属するのかを判別することを特徴とする請求項2又は3に記載の楽譜認識装置。
When it is determined by the determination means that there is a gap in the graphic included in the label, the gap length for deriving the length of the gap in the graphic included in the label based on the pixel value read by the reading means Deriving means;
Gap length determining means for determining whether or not the gap length derived by the gap length deriving means is equal to or greater than a threshold,
When the gap length determination means determines that the gap length is greater than or equal to a threshold, the determination means determines whether the graphic included in the label is based on the gap position derived by the gap position derivation means. 4. The musical score recognition apparatus according to claim 2, wherein the number belongs to which number.
前記判定手段は、前記ラベルに含まれる図形の内縁に沿って前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形にすき間があるか否かを判定することを特徴とする請求項2〜4の何れか1項に記載の楽譜認識装置。   The determination means determines whether or not there is a gap in the graphic included in the label based on the pixel value read by the reading means along the inner edge of the graphic included in the label. The musical score recognition apparatus according to any one of claims 2 to 4. 前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形の横方向における内縁間の距離と当該内縁間の距離が存在する位置とを導出する内縁部導出手段を有し、
前記判別手段は、前記内縁部導出手段により導出された内縁間の距離と当該内縁間の距離が存在する位置とに基づいて、前記ラベルに含まれる図形がどの数字に属するのかを判別することを特徴とする請求項1〜5の何れか1項に記載の楽譜認識装置。
Based on the pixel value read by the reading means, the inner edge portion derivation means for deriving the distance between the inner edges in the horizontal direction of the figure included in the label and the position where the distance between the inner edges exists,
The discriminating means discriminates to which number the figure included in the label belongs based on the distance between the inner edges derived by the inner edge deriving means and the position where the distance between the inner edges exists. The musical score recognition apparatus according to claim 1, wherein the musical score recognition apparatus is a musical score recognition apparatus.
前記内縁部導出手段は、前記認識手段により認識された数字が、0、6、8、又は9である場合に、前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形の横方向における内縁間の距離と当該内縁間の距離が存在する位置とを導出し、
前記判別手段は、前記内縁部導出手段により導出された内縁間の距離と当該内縁間の距離が存在する位置とに基づいて、前記ラベルに含まれる図形が、0及び8の何れであるかを判別することを特徴とする請求項6に記載の楽譜認識装置。
The inner edge deriving means, when the number recognized by the recognizing means is 0, 6, 8, or 9, based on the pixel value read by the reading means, Deriving the distance between the inner edges in the lateral direction and the position where the distance between the inner edges exists,
The discriminating means determines whether the figure included in the label is 0 or 8 based on the distance between the inner edges derived by the inner edge deriving means and the position where the distance between the inner edges exists. The score recognition device according to claim 6, wherein the score recognition device is discriminated.
前記判別手段は、前記判定手段により前記ラベルに含まれる図形にすき間がないと判定されると、前記内縁部導出手段により導出された内縁間の距離が最大となる位置に基づいて、前記ラベルに含まれる図形がどの数字に属するのかを判別することを特徴とする請求項6又は7に記載の楽譜認識装置。   When the determining means determines that there is no gap in the graphic included in the label, the determining means determines the label based on the position where the distance between the inner edges derived by the inner edge deriving means is maximized. The musical score recognition apparatus according to claim 6 or 7, wherein a number to which an included figure belongs is determined. 前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形の横方向における外縁間の距離と、当該外縁間の距離が存在する位置とを導出する外縁部導出手段を有し、
前記判別手段は、前記外縁部導出手段により導出された、前記ラベルに含まれる図形の横方向における外縁間の距離と当該外縁間の距離が存在する位置とに基づいて、前記ラベルに含まれる図形がどの数字に属するのかを判別することを特徴とする請求項1〜8の何れか1項に記載の楽譜認識装置。
Based on the pixel value read by the reading means, the outer edge portion deriving means for deriving the distance between the outer edges in the horizontal direction of the graphic included in the label and the position where the distance between the outer edges exists,
The discriminating means is a graphic included in the label based on the distance between the outer edges in the horizontal direction of the graphic included in the label and the position where the distance between the outer edges exists, derived by the outer edge deriving means. The musical score recognition apparatus according to claim 1, wherein the number belongs to which number.
前記外縁部導出手段は、前記認識手段により認識された数字が、1又は4である場合に、前記読み取り手段により読み取られた画素値に基づいて、前記ラベルに含まれる図形の横方向における外縁間の距離と、当該外縁間の距離が存在する位置とを導出し、
前記判別手段は、前記外縁部導出手段により導出された、前記ラベルに含まれる図形の横方向における外縁間の距離と当該外縁間の距離が存在する位置とに基づいて、前記ラベルに含まれる図形が、1及び4の何れであるかを判別することを特徴とする請求項9に記載の楽譜認識装置。
The outer edge derivation means, when the number recognized by the recognition means is 1 or 4, based on the pixel value read by the reading means, between the outer edges in the horizontal direction of the graphic included in the label And the position where the distance between the outer edges exists,
The discriminating means is a graphic included in the label based on the distance between the outer edges in the horizontal direction of the graphic included in the label and the position where the distance between the outer edges exists, derived by the outer edge deriving means. 10. The musical score recognition apparatus according to claim 9, wherein it is determined whether the value is 1 or 4.
紙面の楽譜の情報を含む画像を、画像読み取り手段から取得する取得ステップと、
前記取得ステップにより取得された画像から、タブ譜における、弦に対応する横線を消去する消去ステップと、
前記消去ステップにより横線が消去された後に、前記取得ステップにより取得された画像のうち、タブ譜の画像に含まれる図形に対してラベルを設定する設定ステップと、
前記設定ステップにより設定されたラベルに含まれる図形と、予め設定されている辞書とをマッチングして当該図形が、どの数字に属するのかを認識する認識ステップと、
前記ラベル内の画素の少なくとも一部の画素値を読み取る読み取りステップと、
前記読み取りステップにより読み取られた画素値が、前記認識ステップにより認識される数字に応じて予め設定された条件の何れに該当するのかを判別することによって、前記ラベルに含まれる図形がどの数字に属するのかを判別する判別ステップとをコンピュータに実行させることを特徴とするコンピュータプログラム。
An acquisition step of acquiring an image including information on a sheet music score from an image reading unit;
An erasing step of erasing the horizontal line corresponding to the string in the tablature from the image obtained by the obtaining step;
A setting step for setting a label for a graphic included in the image of the tablature among the images acquired by the acquisition step after the horizontal line is deleted by the deletion step;
A recognition step for recognizing which figure the figure belongs to by matching a figure included in the label set in the setting step with a preset dictionary;
Reading the pixel values of at least some of the pixels in the label;
By determining which of the preset conditions the pixel value read in the reading step corresponds to the number recognized in the recognition step, the figure included in the label belongs to which number A computer program for causing a computer to execute a determination step of determining whether or not.
JP2008276089A 2008-10-27 2008-10-27 Music score recognition apparatus and computer program Active JP5248265B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008276089A JP5248265B2 (en) 2008-10-27 2008-10-27 Music score recognition apparatus and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008276089A JP5248265B2 (en) 2008-10-27 2008-10-27 Music score recognition apparatus and computer program

Publications (2)

Publication Number Publication Date
JP2010102667A JP2010102667A (en) 2010-05-06
JP5248265B2 true JP5248265B2 (en) 2013-07-31

Family

ID=42293236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008276089A Active JP5248265B2 (en) 2008-10-27 2008-10-27 Music score recognition apparatus and computer program

Country Status (1)

Country Link
JP (1) JP5248265B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03150689A (en) * 1989-11-08 1991-06-27 Mitsubishi Electric Corp Numeral recognizing method
JPH04233092A (en) * 1990-12-28 1992-08-21 Toppan Printing Co Ltd Number inspecting device
JPH08241080A (en) * 1995-03-03 1996-09-17 Kawai Musical Instr Mfg Co Ltd Sequencer
JP3466894B2 (en) * 1997-11-25 2003-11-17 株式会社河合楽器製作所 Music score recognition method and apparatus, and computer readable recording medium recording music score recognition program

Also Published As

Publication number Publication date
JP2010102667A (en) 2010-05-06

Similar Documents

Publication Publication Date Title
JP5357612B2 (en) Underline removal device
JP5154886B2 (en) Music score recognition apparatus and computer program
JPH04313958A (en) Picture processor
JP6066108B2 (en) Electronic document generation system and program
JP4945372B2 (en) Multi-function input / output device and control method thereof, multi-function input / output device control program, and recording medium
JP4533327B2 (en) Image processing apparatus and method, computer program, and storage medium
JP2012138009A (en) Musical score recognition device, and computer program
US8339623B2 (en) Paper document processing apparatus, paper document processing method, and computer readable medium
JP7241506B2 (en) Correction support device and correction support program for optical character recognition results
JP5248265B2 (en) Music score recognition apparatus and computer program
JP5770445B2 (en) Music score recognition apparatus and computer program
JP3608674B2 (en) Score recognition device
JP5189952B2 (en) Music score recognition apparatus and computer program
JP2001052110A (en) Document processing method, recording medium recording document processing program, and document processing apparatus
JP6394579B2 (en) Image reading apparatus and image forming apparatus
JP5248074B2 (en) Music score recognition apparatus, music score recognition method, and computer program
JP7517462B2 (en) Image processing device and image forming device
JP3709991B2 (en) Score recognition device
JP3613356B2 (en) Score recognition device
US11765301B2 (en) Image processing apparatus generating image of review question, control method therefor, and storage medium storing control program therefor
JP7287097B2 (en) Image processing device, image processing program and image processing method
JP3597354B2 (en) Music score recognition method and computer readable recording medium recording music score recognition program
JP3812835B2 (en) Score recognition device
JP6435636B2 (en) Information processing apparatus and information processing program
JPWO2022097408A5 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110922

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130312

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130410

R150 Certificate of patent or registration of utility model

Ref document number: 5248265

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160419

Year of fee payment: 3