JP7620540B2 - Screen comparison device, screen comparison method, and program - Google Patents
Screen comparison device, screen comparison method, and program Download PDFInfo
- Publication number
- JP7620540B2 JP7620540B2 JP2021205363A JP2021205363A JP7620540B2 JP 7620540 B2 JP7620540 B2 JP 7620540B2 JP 2021205363 A JP2021205363 A JP 2021205363A JP 2021205363 A JP2021205363 A JP 2021205363A JP 7620540 B2 JP7620540 B2 JP 7620540B2
- Authority
- JP
- Japan
- Prior art keywords
- screen
- character recognition
- new
- ocr
- screens
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、画面比較装置、画面比較方法、及びプログラムに関する。 The present invention relates to a screen comparison device, a screen comparison method, and a program.
アプリケーションの更改を行う場合、アプリケーションの修正前後において、意図しない文言やボタン配置の変更がないことを目視で修正前後の画面を見比べて、テストしている。例えば、Webアプリケーションのテストを行うプログラムの技術が開示されている(特許文献1参照)。 When updating an application, the screen is visually compared before and after the revision to ensure that there are no unintended changes to text or button placement. For example, a technology for a program that tests web applications has been disclosed (see Patent Document 1).
しかしながら、従来技術においては、目視で修正前後の画面を比較しているため、長い文字列の誤字や脱字の検出に誤る場合がある。また、画面サイズを変更する際に、目視で修正前後の画面を比較しづらいため、確認に誤りが出る場合がある。また、画面を一枚ずつ目視で確認する必要があるため、確認作業に時間がかかっていた。 However, in conventional technology, because the screen before and after correction is compared visually, there is a possibility of misdetection of typos or omissions in long strings of characters. In addition, when changing the screen size, it is difficult to visually compare the screen before and after correction, which can lead to errors in the confirmation. In addition, because it is necessary to visually check each screen, the confirmation process takes time.
本願発明は、上記課題に鑑み、アプリケーション画面の更改を行う際に、修正前後で意図しない文言や配置の変更の確認を効率よく正確に行うことができる画面比較装置を提供することを目的とする。 In view of the above problems, the present invention aims to provide a screen comparison device that can efficiently and accurately check for unintended changes in wording and layout before and after modification when updating an application screen.
上記目的を達成するために、本発明は、修正対象のアプリケーションにより表示される画面を比較する画面比較装置において、修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出する抽出部と、前記抽出部により抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出する検出部と、を備えることを特徴とする。 To achieve the above object, the present invention provides a screen comparison device for comparing screens displayed by an application to be corrected, the device comprising: an extraction unit that extracts at least one or more characters included in a current screen displayed by the application before correction as a character recognition result for the current screen, and extracts at least one or more characters included in a new screen displayed by the application after correction as a character recognition result for the new screen; and a detection unit that detects errors in characters in the new screen according to pairs of at least one or more character recognition results for the current screen and at least one or more character recognition results for the new screen extracted by the extraction unit.
また、本発明は、修正対象のアプリケーションにより表示される画面を比較する画面比較装置が実行する画面比較方法であって、修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出し、前記抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出することを特徴とする。 The present invention also provides a screen comparison method executed by a screen comparison device that compares screens displayed by an application to be modified, which extracts at least one or more characters included in a current screen displayed by the application before modification as a character recognition result for the current screen, and extracts at least one or more characters included in a new screen displayed by the application after modification as a character recognition result for the new screen, and detects errors in characters in the new screen according to pairs of the extracted at least one or more character recognition results for the current screen and at least one or more character recognition results for the new screen.
また、本発明は、修正対象のアプリケーションにより表示される画面を比較する画面比較装置が実行するプログラムであって、修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出し、前記抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出する処理を実行することを特徴とする。 The present invention is also characterized in that it is a program executed by a screen comparison device that compares screens displayed by an application to be corrected, and extracts at least one or more characters included in a current screen displayed by the application before correction as a character recognition result for the current screen, and extracts at least one or more characters included in a new screen displayed by the application after correction as a character recognition result for the new screen, and executes a process to detect errors in characters on the new screen according to pairs of the extracted at least one or more character recognition results for the current screen and at least one or more character recognition results for the new screen.
本発明によれば、アプリケーション画面の更改を行う際に、修正前後で意図しない文言や配置の変更の確認を効率よく正確に行うことができる。 According to the present invention, when updating an application screen, it is possible to efficiently and accurately check for unintended changes in wording and layout before and after modification.
図1は、本実施の形態の画面比較装置100により比較される画面の一例を示す図である。画面比較装置100は、例えば、修正対象のアプリケーションにより表示される画面を比較する装置として使用される。以下、修正前のアプリケーションにより表示される画面を現行画面10といい、修正後のアプリケーションにより表示される画面を新規画面20という。アプリケーションとしては、現金自動預払機などのATM(automatic teller machine)のアプリケーションに適用することができる。画面比較装置100を適用するアプリケーションはATMに限られることなく、画面を表示することが必須の種々のアプリケーションに適用することができる。 Figure 1 is a diagram showing an example of screens to be compared by the screen comparison device 100 of this embodiment. The screen comparison device 100 is used, for example, as a device for comparing screens displayed by an application to be modified. Hereinafter, the screen displayed by the application before modification is referred to as the current screen 10, and the screen displayed by the application after modification is referred to as the new screen 20. As an application, it can be applied to an ATM (automatic teller machine) application such as an automated teller machine. Applications to which the screen comparison device 100 is applied are not limited to ATMs, and it can be applied to various applications in which it is essential to display a screen.
図1に示すように、修正後のアプリケーションにより表示される新規画面20には、修正前のアプリケーションにより表示される現行画面10には表示されていなかった文言300aが表示され誤字が発生している。また、修正前のアプリケーションにより表示される現行画面10においては、文言300bは、画面下中央に表示されていたが、修正後のアプリケーションにより表示される新規画面20においては、文言300bは、画面下左側に表示され誤字が発生している。また、修正前のアプリケーションにより表示される現行画面10において表示されている文言300cのスペル「English Guide」は、修正後のアプリケーションにより表示される新規画面20において表示されている文言300cのスペル「English Guid」と異なる表示がされ脱字が発生している。 As shown in FIG. 1, the new screen 20 displayed by the modified application displays wording 300a that was not displayed on the current screen 10 displayed by the application before modification, resulting in a typographical error. Furthermore, on the current screen 10 displayed by the application before modification, wording 300b was displayed in the bottom center of the screen, but on the new screen 20 displayed by the modified application, wording 300b is displayed on the bottom left side of the screen, resulting in a typographical error. Furthermore, the spelling of wording 300c displayed on the current screen 10 displayed by the application before modification, "English Guide," is displayed differently from the spelling of wording 300c displayed on the new screen 20 displayed by the modified application, "English Guid," resulting in a typographical error.
現行画面10と新規画面20とで同じ文言が表示されるべきところ、図1に示すように誤字や脱字が発生する場合がある。この誤字や脱字を目視で比較する場合、新規画面20を作成するたびに確認するのは煩雑である。また、人間の目視のみに頼るのは、修正前後の画面は比較しづらいため、確認に誤りが出る場合がある。また、画面を一枚ずつ目視で確認する必要があるため、確認作業に時間がかかっていた。 Although the same wording should be displayed on the current screen 10 and the new screen 20, typos and omissions may occur, as shown in Figure 1. When comparing these typos and omissions visually, it is cumbersome to check every time a new screen 20 is created. Furthermore, relying solely on human visual inspection can lead to errors in the confirmation, as it is difficult to compare the screens before and after correction. Furthermore, the confirmation process takes time, as each screen needs to be visually checked one by one.
そこで、本実施の形態においては、アプリケーション画面の更改を行う際に、修正前後で意図しない文言や配置の変更の確認を効率よく正確に行うことができる画面比較装置100について説明する。 Therefore, in this embodiment, we will describe a screen comparison device 100 that can efficiently and accurately check for unintended wording or changes in layout before and after modification when updating an application screen.
画面比較装置100は、例えば、ワークステーション、サーバ、パーソナルコンピュータ等のコンピュータの機能を備えており、画面比較方法に基づく後述する画面比較処理を実行する。画面比較装置100は、図示しないネットワークを通じてサーバ等の他の装置と通信可能に接続されていてもよい。 The screen comparison device 100 has the functions of a computer, such as a workstation, a server, or a personal computer, and executes the screen comparison process described below based on a screen comparison method. The screen comparison device 100 may be connected to other devices, such as a server, so as to be able to communicate with them via a network (not shown).
図2は、本実施の形態における画面比較装置100のハードウェア構成図である。図2に示すように、画面比較装置100は、制御部101、入力装置102、出力装置103、記憶部104、インターフェース(I/F)105がバス106に接続されて構成されている。また、画面比較装置100は、図2に示していない他のハードウェア構成を備えていてもよい。 Fig. 2 is a hardware configuration diagram of the screen comparison device 100 in this embodiment. As shown in Fig. 2, the screen comparison device 100 is configured by connecting a control unit 101, an input device 102, an output device 103, a storage unit 104, and an interface (I/F) 105 to a bus 106. In addition, the screen comparison device 100 may have other hardware configurations not shown in Fig. 2.
制御部101は、画面比較装置100全体を統括的に制御するもので、プログラムを読み込んで画面比較処理を実行するCPU(Central Processing Unit)を有する。 The control unit 101 provides overall control over the entire screen comparison device 100 and has a CPU (Central Processing Unit) that loads programs and executes the screen comparison process.
入力装置102は、例えば、キーボード、ジョイスティック、ライトペン、マウス、タッチパッド、タッチパネル、トラックボール等、各種のデータや信号等を入力する。 The input device 102 is, for example, a keyboard, joystick, light pen, mouse, touchpad, touch panel, trackball, etc., which inputs various data and signals.
出力装置103は、例えば、LCD(Liquid Crystal Display)等の各種ディスプレイ、プリンタ等、画像やその他の情報を出力する。 The output device 103 outputs images and other information, for example, various displays such as LCDs (Liquid Crystal Displays), printers, etc.
記憶部104は、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)等を有する。記憶部104は、画面比較装置100が画面比較処理を実行するプログラムの他、画面比較装置100の各機能を制御し実行するための制御プログラム、現行画面、新規画面などの画面データを記憶する。記憶部104は、画面比較装置100がプログラムを実行する際の作業領域を提供する。また、記憶部104は、現行画面の文字認識結果と新規画面の文字認識結果とを比較した結果を格納する後述の現行画面OCR結果配列、新規画面OCR結果配列を記憶してもよい。 The storage unit 104 has a RAM (Random Access Memory), a ROM (Read Only Memory), a HDD (Hard Disk Drive), etc. The storage unit 104 stores a program for the screen comparison device 100 to execute the screen comparison process, as well as a control program for controlling and executing each function of the screen comparison device 100, and screen data such as a current screen and a new screen. The storage unit 104 provides a working area for the screen comparison device 100 to execute a program. The storage unit 104 may also store a current screen OCR result array and a new screen OCR result array (described below) that store the results of comparing the character recognition results of the current screen and the character recognition results of the new screen.
インターフェース105は、USB(Universal Serial Bus)等のシリアルインターフェースやイーサネット(登録商標)等のパラレルインターフェース等、図示しない外部機器と接続するためのユニットである。画面比較装置100により比較される現行画面10と新規画面20は、インターフェース105を通じて、記憶部104に記憶される。 The interface 105 is a unit for connecting to an external device (not shown), such as a serial interface such as USB (Universal Serial Bus) or a parallel interface such as Ethernet (registered trademark). The current screen 10 and new screen 20 compared by the screen comparison device 100 are stored in the memory unit 104 via the interface 105.
本実施の形態における画面比較処理は、前述した画面比較装置100によって実行される。 The screen comparison process in this embodiment is performed by the screen comparison device 100 described above.
図3は、本実施の形態の画面比較処理に係る画面比較装置100の機能ブロックの一例を示す図である。図3に示すように、画面比較装置100の制御部101は、抽出部111、検出部112、及び通知部113を備える。制御部101は、図3に示していない他の構成要素を含んでいてもよい。記憶部104は、後述の現行画面OCR結果配列121、及び新規画面OCR結果配列122を記憶する。記憶部104は、図3に示していない情報を記憶してもよい。 Figure 3 is a diagram showing an example of functional blocks of the screen comparison device 100 relating to the screen comparison process of this embodiment. As shown in Figure 3, the control unit 101 of the screen comparison device 100 includes an extraction unit 111, a detection unit 112, and a notification unit 113. The control unit 101 may include other components not shown in Figure 3. The memory unit 104 stores a current screen OCR result array 121 and a new screen OCR result array 122, which will be described later. The memory unit 104 may store information not shown in Figure 3.
抽出部111は、修正前のアプリケーションにより表示される現行画面10に含まれる少なくとも1つ以上の文言を現行画面10の文字認識結果として抽出する。抽出部111は、既存の光学文字認識(OCR:Optical Character Recognition)技術を用いて、現行画面10に含まれる文言から少なくとも1つ以上の文言を現行画面10の文字認識結果(以下、「OCR結果」と呼ぶ)として抽出する。 The extraction unit 111 extracts at least one or more words contained in the current screen 10 displayed by the application before modification as a character recognition result for the current screen 10. The extraction unit 111 uses existing optical character recognition (OCR) technology to extract at least one or more words from the words contained in the current screen 10 as a character recognition result for the current screen 10 (hereinafter referred to as the "OCR result").
また、抽出部111は、修正後のアプリケーションにより表示される新規画面20に含まれる少なくとも1つ以上の文言を新規画面20の文字認識結果として抽出する。抽出部111は、既存の光学文字認識技術を用いて、新規画面20に含まれる文言から少なくとも1つ以上の文言を新規画面20の文字認識結果(以下、「OCR結果」と呼ぶ)として抽出する。 The extraction unit 111 also extracts at least one or more words contained in the new screen 20 displayed by the modified application as a character recognition result for the new screen 20. The extraction unit 111 uses existing optical character recognition technology to extract at least one or more words from the words contained in the new screen 20 as a character recognition result for the new screen 20 (hereinafter referred to as an "OCR result").
検出部112は、抽出部111により抽出された少なくとも1つ以上の現行画面10のOCR結果と、少なくとも1つ以上の新規画面20のOCR結果と、のペアに応じて、新規画面20の文字の誤りを検出する。 The detection unit 112 detects character errors in the new screen 20 according to pairs of at least one or more OCR results of the current screen 10 extracted by the extraction unit 111 and at least one or more OCR results of the new screen 20.
通知部113は、検出部112が検出した新規画面20の文字の誤りを出力装置103のディスプレイを通じて通知する。通知部113は、図示しないスピーカを通じて音により通知してもよい。 The notification unit 113 notifies the user of the character error on the new screen 20 detected by the detection unit 112 through the display of the output device 103. The notification unit 113 may also notify the user by sound through a speaker (not shown).
次に、画面比較装置100が実行する画面比較処理を具体的に説明する。図4は、画面比較装置100が実行する画面比較処理による画面比較方法の手順の一例を示すフローチャートである。画面比較方法により実行される画面抽出処理は、画面比較装置100の制御部101によって実行される。 Next, the screen comparison process executed by the screen comparison device 100 will be described in detail. FIG. 4 is a flowchart showing an example of the procedure of a screen comparison method using the screen comparison process executed by the screen comparison device 100. The screen extraction process executed by the screen comparison method is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、抽出処理を行う(ステップS101)。抽出処理では、現行画面10に含まれるOCR結果を抽出するとともに、新規画面20に含まれるOCR結果を抽出する処理が行われる。図5を参照して画面比較装置100が実行する抽出処理を具体的に説明する。 First, the control unit 101 performs an extraction process (step S101). In the extraction process, the OCR results included in the current screen 10 are extracted, and the OCR results included in the new screen 20 are also extracted. The extraction process executed by the screen comparison device 100 will be specifically described with reference to FIG. 5.
図5は、画面比較装置100が図4のステップS101において実行する抽出処理の手順の一例を示すフローチャートである。画面比較装置100により実行される抽出処理は、画面比較装置100の制御部101によって実行される。 Figure 5 is a flowchart showing an example of the procedure of the extraction process executed by the screen comparison device 100 in step S101 of Figure 4. The extraction process executed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面10に対しOCRを行い、OCR結果を抽出する(ステップS201)。この処理では、制御部101は、修正前のアプリケーションにより表示される現行画面10に含まれる少なくとも1つ以上の修正前の文字を現行画面10のOCR結果として抽出する。 First, the control unit 101 performs OCR on the current screen 10 and extracts the OCR result (step S201). In this process, the control unit 101 extracts at least one pre-correction character included in the current screen 10 displayed by the pre-correction application as the OCR result of the current screen 10.
制御部101は、ステップS201で抽出した現行画面のOCR結果を現行画面OCR結果配列121に格納する(ステップS202)。ステップS201及びステップS202の処理を行った結果、制御部101は、現行画面の全てのOCR結果を抽出されたか否かを判定する(ステップS203)。現行画面の全てのOCR結果が抽出されていない場合(ステップS203:NO)には、現行画面の全てのOCR結果が抽出されるまでの間ステップS201~ステップS203の処理が繰り返し実行される。 The control unit 101 stores the OCR results of the current screen extracted in step S201 in the current screen OCR result array 121 (step S202). As a result of performing the processes of steps S201 and S202, the control unit 101 determines whether or not all OCR results of the current screen have been extracted (step S203). If all OCR results of the current screen have not been extracted (step S203: NO), the processes of steps S201 to S203 are repeatedly executed until all OCR results of the current screen have been extracted.
現行画面の全てのOCR結果が抽出された場合(ステップS203:YES)には、制御部101は、新規画面に対しOCRを行い、OCR結果を抽出する(ステップS204)。この処理では、制御部101は、修正後のアプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の修正後文言を新規画面のOCR結果として抽出する。OCR結果には、新規画面20で表示される文字が含まれる。 If all OCR results for the current screen have been extracted (step S203: YES), the control unit 101 performs OCR on the new screen and extracts the OCR results (step S204). In this process, the control unit 101 extracts at least one corrected phrase contained in the new screen displayed by the corrected application as the OCR result for the new screen. The OCR result includes the characters displayed on the new screen 20.
制御部101は、ステップS204で抽出した新規画面のOCR結果を新規画面のOCR結果配列に格納する(ステップS205)。ステップS204及びステップS205の処理を行った結果、制御部101は、新規画面の全てのOCR結果を抽出されたか否かを判定する(ステップS206)。新規画面の全てのOCR結果が抽出されていない場合(ステップS206:NO)には、新規画面の全てのOCR結果が抽出されるまでの間ステップS204~ステップS206の処理が繰り返し実行される。新規画面の全てのOCR結果が抽出された場合(ステップS206:YES)には、画面比較装置100が実行する抽出処理は終了となる。この処理が終了すると、処理は図4のステップS102へ進む。 The control unit 101 stores the OCR results of the new screen extracted in step S204 in the OCR result array of the new screen (step S205). As a result of performing the processes of steps S204 and S205, the control unit 101 determines whether or not all the OCR results of the new screen have been extracted (step S206). If all the OCR results of the new screen have not been extracted (step S206: NO), the processes of steps S204 to S206 are repeatedly executed until all the OCR results of the new screen have been extracted. If all the OCR results of the new screen have been extracted (step S206: YES), the extraction process executed by the screen comparison device 100 is terminated. When this process is terminated, the process proceeds to step S102 in FIG. 4.
図6は、記憶部104に記憶される現行画面OCR結果配列121、及び新規画面OCR結果配列122の一例を示す図である。 Figure 6 shows an example of a current screen OCR result array 121 and a new screen OCR result array 122 stored in the memory unit 104.
現行画面OCR結果配列121には、ID毎に、現行画面のOCR結果、OCR結果の座標、現行画面のOCR結果のカウンタ、及び紐づく新規画面のIDの情報が格納される。現行画面のOCR結果には、現行画面10をOCRした結果の文言が格納される。OCR結果の座標には、現行画面のOCR結果が配置されている位置情報が格納される。 In the current screen OCR result array 121, for each ID, the OCR result of the current screen, the coordinates of the OCR result, a counter of the OCR result of the current screen, and information on the ID of the linked new screen are stored. The OCR result of the current screen stores the text that is the result of OCR of the current screen 10. The coordinates of the OCR result store the position information where the OCR result of the current screen is located.
現行画面のOCR結果のカウンタには、現行画面10に表示されているOCR結果の回数の情報が格納される。紐づく新規画面のIDには、現行画面10のOCR結果と対応する新規画面20のOCR結果のIDが格納される。 The counter for the OCR result of the current screen stores information on the number of times the OCR result is displayed on the current screen 10. The ID of the linked new screen stores the ID of the OCR result of the new screen 20 that corresponds to the OCR result of the current screen 10.
新規画面OCR結果配列122には、ID毎に、新規画面のOCR結果、OCR結果の座標、新規画面のOCR結果のカウンタ、紐づく現行画面のID、チェック結果、及び位置ずれの情報が格納される。新規画面のOCR結果には、新規画面20をOCRした結果の文言が格納される。OCR結果の座標には、新規画面のOCR結果が配置されている位置情報が格納される。 The new screen OCR result array 122 stores, for each ID, the OCR result of the new screen, the coordinates of the OCR result, a counter of the OCR result of the new screen, the ID of the associated current screen, the check result, and positional deviation information. The OCR result of the new screen stores the text that is the result of OCR on the new screen 20. The coordinates of the OCR result store the positional information where the OCR result of the new screen is located.
新規画面のOCR結果のカウンタには、新規画面20に表示されているOCR結果の回数の情報が格納される。紐づく新規画面のIDには、現行画面10のOCR結果と対応する新規画面20のOCR結果のIDが格納される。 The new screen OCR result counter stores information on the number of times the OCR result is displayed on the new screen 20. The linked new screen ID stores the ID of the OCR result of the new screen 20 that corresponds to the OCR result of the current screen 10.
図4のステップS102において、制御部101は、単数ペア抽出処理を行う。図7を参照してステップS102において実行される単数ペア抽出処理の詳細について説明する。図7は、図4のステップS102において実行される単数ペア抽出処理の手順の一例を示すフローチャートである。画面比較装置100により実行される単数ペア抽出処理は、画面比較装置100の制御部101によって実行される。 In step S102 of FIG. 4, the control unit 101 performs a single pair extraction process. The details of the single pair extraction process executed in step S102 will be described with reference to FIG. 7. FIG. 7 is a flowchart showing an example of the procedure of the single pair extraction process executed in step S102 of FIG. 4. The single pair extraction process executed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面OCR結果配列121に格納された1つの現行画面のOCR結果を選択する(ステップS301)。 First, the control unit 101 selects one OCR result for the current screen stored in the current screen OCR result array 121 (step S301).
制御部101は、ステップS301で選択された現行画面のOCR結果の少なくとも一部と一致する新規画面のOCR結果を新規画面のOCR結果配列から検索する(ステップS302)。 The control unit 101 searches the OCR result array for the new screen for OCR results that match at least a portion of the OCR results for the current screen selected in step S301 (step S302).
ステップS302で検索した結果、ステップS301で選択された現行画面のOCR結果が新規画面のOCR結果の少なくも一部と一致するか否かを判定する(ステップS303)。選択された現行画面のOCR結果が新規画面のOCR結果と一致しない場合(ステップS303:NO)には、処理はステップS306へ進む。 As a result of the search in step S302, it is determined whether the OCR results of the current screen selected in step S301 match at least a part of the OCR results of the new screen (step S303). If the OCR results of the selected current screen do not match the OCR results of the new screen (step S303: NO), the process proceeds to step S306.
選択された現行画面のOCR結果が新規画面のOCR結果の少なくも一部と一致する場合(ステップS303:YES)には、制御部101は、一致したOCR結果が格納された現行画面OCR結果配列121のカウンタを加算する(ステップS304)。例えば、現行画面10に1回のみ表示されているOCR結果のカウンタは「1」となり、現行画面10に2回表示されているOCR結果のカウンタは「2」となる。制御部101は、現行画面OCR結果配列121に、一致したOCR結果に対応する新規画面のOCR結果のIDを紐づける(ステップS305)。例えば、現行画面OCR結果配列のID「1」に対応するOCR結果「お預入れ」は、新規画面OCR結果配列のID「2」のOCR結果「お預入れ」とID「7」の「お預入れ」に対応する。このため、現行画面OCR結果配列のID「1」に対応するOCR結果の紐づく新規画面のIDには「2」及び「7」が格納される。 If the selected OCR result of the current screen matches at least a part of the OCR result of the new screen (step S303: YES), the control unit 101 increments the counter of the current screen OCR result array 121 in which the matching OCR result is stored (step S304). For example, the counter of an OCR result displayed only once on the current screen 10 becomes "1", and the counter of an OCR result displayed twice on the current screen 10 becomes "2". The control unit 101 links the ID of the OCR result of the new screen corresponding to the matching OCR result to the current screen OCR result array 121 (step S305). For example, the OCR result "Deposit" corresponding to ID "1" of the current screen OCR result array corresponds to the OCR result "Deposit" of ID "2" and "Deposit" of ID "7" of the new screen OCR result array. Therefore, "2" and "7" are stored as the IDs of the new screens linked to the OCR results corresponding to ID "1" in the current screen OCR result array.
制御部101は、現行画面OCR結果配列121に格納された全てのOCR結果が選択されたか否かを判定する(ステップS306)。現行画面OCR結果配列121に格納された全てのOCR結果が選択されていない場合(ステップS306:NO)には、処理はステップS301に戻り、現行画面OCR結果配列121に格納された全てのOCR結果が選択されるまでの間、ステップS301~ステップS306の処理が繰り返し実行される。現行画面OCR結果配列121に格納された全てのOCR結果が選択された場合(ステップS306:YES)には、処理はステップS307へ進む。 The control unit 101 determines whether or not all OCR results stored in the current screen OCR result array 121 have been selected (step S306). If all OCR results stored in the current screen OCR result array 121 have not been selected (step S306: NO), the process returns to step S301, and steps S301 to S306 are repeatedly executed until all OCR results stored in the current screen OCR result array 121 have been selected. If all OCR results stored in the current screen OCR result array 121 have been selected (step S306: YES), the process proceeds to step S307.
制御部101は、新規画面のOCR結果配列に格納された1つの新規画面のOCR結果を選択する(ステップS307)。 The control unit 101 selects one of the OCR results for a new screen stored in the OCR result array for the new screen (step S307).
制御部101は、ステップS307で選択された新規画面のOCR結果の少なくとも一部と一致する現行画面のOCR結果を現行画面OCR結果配列121から検索する(ステップS308)。ステップS308で検索した結果、ステップS307で選択された新規画面のOCR結果が現行画面のOCR結果の少なくも一部と一致するか否かを判定する(ステップS309)。 The control unit 101 searches the current screen OCR result array 121 for OCR results of the current screen that match at least a portion of the OCR results of the new screen selected in step S307 (step S308). As a result of the search in step S308, it is determined whether the OCR results of the new screen selected in step S307 match at least a portion of the OCR results of the current screen (step S309).
選択された新規画面のOCR結果が現行画面のOCR結果と一致しない場合(ステップS309:NO)には、処理はステップS312へ進む。選択された新規画面のOCR結果が現行画面のOCR結果の少なくも一部と一致する場合(ステップS309:YES)には、制御部101は、一致したOCR結果が格納された新規画面のOCR結果配列のカウンタを加算する(ステップS310)。例えば、新規画面20に1回のみ表示されているOCR結果のカウンタは「1」となり、新規画面20に2回表示されているOCR結果のカウンタは「2」となる。 If the OCR results of the selected new screen do not match the OCR results of the current screen (step S309: NO), the process proceeds to step S312. If the OCR results of the selected new screen match at least a portion of the OCR results of the current screen (step S309: YES), the control unit 101 increments the counter of the OCR result array of the new screen in which the matching OCR results are stored (step S310). For example, the counter of an OCR result that is displayed only once on the new screen 20 is "1", and the counter of an OCR result that is displayed twice on the new screen 20 is "2".
制御部101は、新規画面のOCR結果配列に、一致したOCR結果に対応する現行画面のOCR結果のIDを紐づける(ステップS311)。例えば、新規画面OCR結果配列のID「2」に対応するOCR結果「お預入れ」は、現行画面OCR結果配列のID「1」のOCR結果「お預入れ」とID「6」の「お預入れ」に対応する。このため、新規画面OCR結果配列のID「2」に対応するOCR結果の紐づく現行画面のIDには「1」及び「6」が格納される。 The control unit 101 links the ID of the OCR result of the current screen that corresponds to the matching OCR result to the OCR result array of the new screen (step S311). For example, the OCR result "deposit" corresponding to ID "2" in the new screen OCR result array corresponds to the OCR result "deposit" of ID "1" and "deposit" of ID "6" in the current screen OCR result array. Therefore, "1" and "6" are stored as the ID of the current screen linked to the OCR result corresponding to ID "2" in the new screen OCR result array.
制御部101は、新規画面のOCR結果配列に格納された全てのOCR結果が選択されたか否かを判定する(ステップS312)。新規画面のOCR結果配列に格納された全てのOCR結果が選択されていない場合(ステップS312:NO)には、処理はステップS307に戻り、新規画面のOCR結果配列に格納された全てのOCR結果が選択されるまでの間、ステップS307~ステップS312の処理が繰り返し実行される。そして、新規画面のOCR結果配列に格納された全てのOCR結果が選択された場合(ステップS312:YES)には、画面比較装置100が実行する単数ペア抽出処理は終了となる。この処理が終了すると、処理は図4のステップS103へ進む。 The control unit 101 determines whether all the OCR results stored in the OCR result array of the new screen have been selected (step S312). If all the OCR results stored in the OCR result array of the new screen have not been selected (step S312: NO), the process returns to step S307, and steps S307 to S312 are repeatedly executed until all the OCR results stored in the OCR result array of the new screen have been selected. Then, if all the OCR results stored in the OCR result array of the new screen have been selected (step S312: YES), the single pair extraction process executed by the screen comparison device 100 is terminated. When this process is terminated, the process proceeds to step S103 in FIG. 4.
図4のステップS103において、制御部101は、複数ペア抽出処理を行う。図8を参照してステップS103において実行される複数ペア抽出処理の詳細について説明する。図8は、図4のステップS103において実行される複数ペア抽出処理の手順の一例を示すフローチャートである。画面比較装置100により実行される複数ペア抽出処理は、画面比較装置100の制御部101によって実行される。 In step S103 of FIG. 4, the control unit 101 performs a multiple pair extraction process. The multiple pair extraction process executed in step S103 will be described in detail with reference to FIG. 8. FIG. 8 is a flowchart showing an example of the procedure of the multiple pair extraction process executed in step S103 of FIG. 4. The multiple pair extraction process executed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面OCR結果配列121に格納された1つの現行画面のOCR結果を選択する(ステップS401)。 First, the control unit 101 selects one OCR result of the current screen stored in the current screen OCR result array 121 (step S401).
制御部101は、現行画面OCR結果配列121に格納された現行画面のOCR結果のうち選択したOCR結果のカウンタが2以上か否かを判定する(ステップS402)。この処理では、現行画面OCR結果配列に格納された現行画面のOCR結果に対して1項目ずつ処理を行う。そして、カウンタが2以上、すなわち、OCR結果のペアの候補が2以上あるものに対して処理を行う。例えば、図6の現行画面OCR結果配列121によると、ID「1」のOCR結果「お預入れ」とID「6」のOCR結果「お預入れ」が処理対象となる。現行画面OCR結果配列121に格納された現行画面のOCR結果のカウンタが1である場合(ステップS402:NO)には、処理はステップS414へ進む。 The control unit 101 determines whether the counter of the selected OCR result from the OCR results of the current screen stored in the current screen OCR result array 121 is 2 or more (step S402). In this process, the OCR results of the current screen stored in the current screen OCR result array are processed one item at a time. Then, processing is performed for those with a counter of 2 or more, that is, those with two or more candidates for a pair of OCR results. For example, according to the current screen OCR result array 121 in FIG. 6, the OCR result "Deposit" of ID "1" and the OCR result "Deposit" of ID "6" are to be processed. If the counter of the OCR result of the current screen stored in the current screen OCR result array 121 is 1 (step S402: NO), processing proceeds to step S414.
現行画面OCR結果配列121に格納された現行画面のOCR結果のカウンタが2以上である場合(ステップS402:YES)には、制御部101は、現行画面OCR結果配列121に格納された1つのOCR結果を選択する(ステップS403)。制御部101は、ステップS403で選択された現行画面のOCR結果のIDをパラメータとして指定する(ステップS404)。 If the counter of the OCR results of the current screen stored in the current screen OCR result array 121 is 2 or more (step S402: YES), the control unit 101 selects one OCR result stored in the current screen OCR result array 121 (step S403). The control unit 101 specifies the ID of the OCR result of the current screen selected in step S403 as a parameter (step S404).
制御部101は、後述の図9を参照して説明する周囲OCR結果取得処理を行う(ステップS405)。この処理では、現行画面OCR結果配列121に格納された現行画面のOCR結果に対して周囲にあるOCR結果を取得する処理が行われる。 The control unit 101 performs surrounding OCR result acquisition processing, which will be described later with reference to FIG. 9 (step S405). In this processing, processing is performed to acquire surrounding OCR results for the OCR results of the current screen stored in the current screen OCR result array 121.
図9は、ステップS405の周囲OCR結果取得処理により取得される現行画面のOCR結果の取得方法の概要の一例を示す図である。図9に示すように、現行画面OCR結果配列121に格納された現行画面のOCR結果のうち「お預入れ」が選択されている場合、制御部101は、「お預入れ」の右方向にあるOCR結果「お引出し」と、下方向にあるOCR結果「通帳記入」を周囲にあるOCR結果として取得する。この場合、現行画面OCR結果配列121に格納される出力データとして、上方向のOCR結果「なし」、下方向のOCR結果「通帳記入」(ID「2」)、左方向のOCR結果「なし」、右方向のOCR結果「お引出し」(ID「3」)が取得される。 Figure 9 is a diagram showing an example of an outline of a method for acquiring the OCR results of the current screen acquired by the surrounding OCR result acquisition process in step S405. As shown in Figure 9, when "Deposit" is selected from the OCR results of the current screen stored in the current screen OCR result array 121, the control unit 101 acquires the OCR result "Withdrawal" to the right of "Deposit" and the OCR result "Enter in bankbook" below as surrounding OCR results. In this case, the output data acquired to be stored in the current screen OCR result array 121 are the OCR result "None" above, the OCR result "Enter in bankbook" below (ID "2"), the OCR result "None" to the left, and the OCR result "Withdrawal" (ID "3") to the right.
制御部101は、新規画面のOCR結果配列に格納された1つの新規画面のOCR結果を選択する(ステップS406)。制御部101は、ステップS406で選択された新規画面のOCR結果のIDをパラメータとして指定する(ステップS407)。 The control unit 101 selects one of the OCR results for a new screen stored in the OCR result array for the new screen (step S406). The control unit 101 specifies the ID of the OCR result for the new screen selected in step S406 as a parameter (step S407).
制御部101は、後述の図9を参照して説明する周囲OCR結果取得処理を行う(ステップS408)。ステップS408で実行される周囲OCR結果取得処理は、ステップS405で実行される周囲OCR結果取得処理とほぼ同様の処理が実行されるが、ステップS408で実行される処理では、新規画面OCR結果配列122に格納された新規画面のOCR結果に対して周囲にあるOCR結果を取得する処理が行われる。 The control unit 101 performs surrounding OCR result acquisition processing, which will be described later with reference to FIG. 9 (step S408). The surrounding OCR result acquisition processing executed in step S408 is substantially the same as the surrounding OCR result acquisition processing executed in step S405, but in the processing executed in step S408, processing is performed to acquire OCR results around the OCR results of the new screen stored in the new screen OCR result array 122.
図10は、ステップS408の周囲OCR結果取得処理により取得される新規画面のOCR結果の取得方法の概要の一例を示す図である。図10に示すように、新規画面OCR結果配列122に格納された新規画面のOCR結果のうち「お預入れ」が選択されている場合、制御部101は、「お預入れ」の右方向にあるOCR結果「お引出し」と、下方向にあるOCR結果「通帳記入」を周囲にあるOCR結果として取得する。この場合、現行画面OCR結果配列121に格納される出力データとして、上方向のOCR結果「新画面」(ID「1」)、下方向のOCR結果「通帳記入」(ID「2」)、左方向のOCR結果「なし」、右方向のOCR結果「お引出し」(ID「4」)が取得される。 Figure 10 is a diagram showing an example of an outline of a method for acquiring the OCR results of a new screen acquired by the surrounding OCR result acquisition process in step S408. As shown in Figure 10, when "Deposit" is selected from the OCR results of a new screen stored in the new screen OCR result array 122, the control unit 101 acquires the OCR result "Withdrawal" to the right of "Deposit" and the OCR result "Enter in bankbook" below as surrounding OCR results. In this case, the output data acquired to be stored in the current screen OCR result array 121 are the OCR result "New screen" (ID "1") above, the OCR result "Enter in bankbook" (ID "2") below, the OCR result "None" to the left, and the OCR result "Withdrawal" (ID "4") to the right.
制御部101は、周囲のOCR結果が一致したか否かを判定する(ステップS409)。周囲のOCR結果が一致した場合(ステップS409:YES)には、制御部101は現行画面OCR結果配列121のOCR結果に対応するカウンタに1を指定する(ステップS410)。すなわち、この場合、OCR結果と一致する一対一のOCR結果のペアが成立したと判定される。制御部101は、紐づく画面IDを更新する(ステップS411)。この処理が終了すると処理はステップS414へ進む。 The control unit 101 determines whether the surrounding OCR results match (step S409). If the surrounding OCR results match (step S409: YES), the control unit 101 sets the counter corresponding to the OCR result in the current screen OCR result array 121 to 1 (step S410). That is, in this case, it is determined that a one-to-one OCR result pair that matches the OCR result has been established. The control unit 101 updates the associated screen ID (step S411). When this process is completed, the process proceeds to step S414.
ステップS409の処理において、周囲のOCR結果が不一致の場合(ステップS409:NO)には、制御部101はカウンタの数だけ実行されたか否かを判定する(ステップS412)。例えば、カウンタが「2」のOCR結果の場合、2回分ステップS406~ステップS412の処理が繰り返し実行されたか否かが判定される。例えば、現行画面OCR結果配列のID「1」のOCR結果「お預入れ」の場合、カウンタは「2」であるため、新規画面OCR結果配列122のID[2]のOCR結果「お預入れ」、及びID「7」のOCR結果「お預入れ」の2回分実行される。カウンタの数だけ繰り返し実行されていない場合には、ステップS406の処理に戻り、全てのカウンタの数だけ実行されるまでの間、ステップS406~ステップS412の処理が繰り返し実行される。 In the process of step S409, if the surrounding OCR results do not match (step S409: NO), the control unit 101 judges whether the process has been executed the number of times equal to the number of counters (step S412). For example, in the case of an OCR result with a counter of "2", it is judged whether the process of steps S406 to S412 has been executed twice. For example, in the case of the OCR result "Deposit" with ID "1" in the current screen OCR result array, the counter is "2", so the process is executed twice for the OCR result "Deposit" with ID [2] in the new screen OCR result array 122 and the OCR result "Deposit" with ID "7". If the process has not been executed the number of times equal to the number of counters, the process returns to step S406, and the process of steps S406 to S412 is executed repeatedly until all the counters have been executed.
全てのカウンタの数だけ繰り返し実行されたた場合(ステップS412)には、現行画面OCR結果配列121のうち選択されたOCR結果のカウンタに0を指定する(ステップS413)。すなわち、この場合、OCR結果と一致するOCR結果の項目はないと判定される。 When the process has been repeated for all counters (step S412), the counter for the selected OCR result in the current screen OCR result array 121 is set to 0 (step S413). In other words, in this case, it is determined that there is no OCR result item that matches the OCR result.
ステップS414において、制御部101は、現行画面OCR結果配列121に格納された全てのOCR結果が選択されたか否かを判定する(ステップS414)。現行画面OCR結果配列121に格納された全てのOCR結果が選択されていない場合(ステップS414:NO)には、処理はステップS402へ戻り、現行画面OCR結果配列121に格納された全てのOCR結果が選択されるまでの間、ステップS402~ステップS414の処理が繰り返し実行される。そして、現行画面OCR結果配列121に格納された全てのOCR結果が選択された場合(ステップS414:YES)には、画面比較装置100が実行する複数ペア抽出処理は終了となる。 In step S414, the control unit 101 determines whether or not all OCR results stored in the current screen OCR result array 121 have been selected (step S414). If all OCR results stored in the current screen OCR result array 121 have not been selected (step S414: NO), the process returns to step S402, and steps S402 to S414 are repeatedly executed until all OCR results stored in the current screen OCR result array 121 have been selected. Then, if all OCR results stored in the current screen OCR result array 121 have been selected (step S414: YES), the multiple pair extraction process executed by the screen comparison device 100 is terminated.
図11を参照して図8のステップS405又はステップS408において実行される周囲OCR結果取得処理の詳細について説明する。図11は、図8のステップS405又はステップS408において実行される周囲OCR結果取得処理の手順の一例を示すフローチャートである。画面比較装置100により実行される周囲OCR結果取得処理は、画面比較装置100の制御部101によって実行される。 The surrounding OCR result acquisition process executed in step S405 or step S408 of FIG. 8 will be described in detail with reference to FIG. 11. FIG. 11 is a flowchart showing an example of the procedure of the surrounding OCR result acquisition process executed in step S405 or step S408 of FIG. 8. The surrounding OCR result acquisition process executed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面OCR結果配列121に格納された1つのOCR結果を選択する(ステップS501)。制御部101は、選択したOCR結果のカウンタは1であるか否かを判定する(ステップS502)。この処理では、制御部101は、カウンタが「0」であるOCR結果は、一対一のペアが存在しないOCR結果であり、また、カウンタが「2」以上であるOCR結果は、一対一のペア候補が絞り込めないOCR結果であるため、比較対象外とする。選択したOCR結果のカウンタが1でない場合(ステップS502:NO)、すなわち、選択したOCR結果のカウンタが0又は2以上である場合には、処理はステップS507へ進む。 First, the control unit 101 selects one OCR result stored in the current screen OCR result array 121 (step S501). The control unit 101 determines whether the counter of the selected OCR result is 1 (step S502). In this process, the control unit 101 excludes an OCR result with a counter of "0" from comparison because it is an OCR result for which no one-to-one pair exists, and an OCR result with a counter of "2" or more is an OCR result for which one-to-one pair candidates cannot be narrowed down. If the counter of the selected OCR result is not 1 (step S502: NO), that is, if the counter of the selected OCR result is 0 or 2 or more, the process proceeds to step S507.
選択したOCR結果のカウンタが1である場合(ステップS502:YES)には、制御部101は、上下左右のうち一つの方向を選択する(ステップS503)。例えば、制御部101は、上下左右のうち上方向を選択する。制御部101は、選択した方向に他のOCR結果が存在するか否かを判定する(ステップS504)。この処理では、制御部101は、現行画面OCR結果配列121及び新規画面OCR結果配列122に格納された座標情報を用いて、上下左右のどの方向に他のOCR結果が存在するかを判定する。制御部101は、現行画面OCR結果配列121に格納された座標(Xs,Ys,Xe,Ye)、及び新規画面OCR結果配列122に格納された座標(Xs,Ys,Xe,Ye)に基づいて上下左右の判断を行う。 If the counter for the selected OCR result is 1 (step S502: YES), the control unit 101 selects one of the directions, up, down, left, and right (step S503). For example, the control unit 101 selects the up direction from the up, down, left, and right directions. The control unit 101 determines whether other OCR results exist in the selected direction (step S504). In this process, the control unit 101 uses the coordinate information stored in the current screen OCR result array 121 and the new screen OCR result array 122 to determine in which direction, up, down, left, and right, other OCR results exist. The control unit 101 makes the determination of up, down, left, and right based on the coordinates (Xs, Ys, Xe, Ye) stored in the current screen OCR result array 121 and the coordinates (Xs, Ys, Xe, Ye) stored in the new screen OCR result array 122.
選択した方向に他のOCR結果が存在する場合(ステップS504:YES)には、制御部101は、後述の図12を参照して説明するOCR結果更新処理を行う(ステップS505)。この処理が終了すると処理はステップS507へ進む。 If other OCR results exist in the selected direction (step S504: YES), the control unit 101 performs an OCR result update process (step S505), which will be described later with reference to FIG. 12. When this process ends, the process proceeds to step S507.
選択した方向に他のOCR結果が存在しない場合(ステップS504:NO)には、制御部101は、全ての方向について選択したか否かを判定する(ステップS506)。この処理では、制御部101は、上方向、下方向、右方向、左方向の全ての方向に対してステップS503~ステップS506の処理が行われたか判定する。全ての方向について選択していない場合(ステップS506:NO)には、処理はステップS503へ戻り、上下左右の全ての方向について選択するまでの間、処理はステップS503~ステップS506の処理を繰り返し実行する。 If there are no other OCR results in the selected direction (step S504: NO), the control unit 101 determines whether all directions have been selected (step S506). In this process, the control unit 101 determines whether the processes in steps S503 to S506 have been performed for all directions, including up, down, right, and left. If not all directions have been selected (step S506: NO), the process returns to step S503, and the process repeats the processes in steps S503 to S506 until all directions, including up, down, left, and right, have been selected.
上下左右の全ての方向について選択した場合(ステップS506:YES)には、制御部101は、現行画面OCR結果配列121に格納された全てのOCR結果が選択されたか否かを判定する(ステップS507)。現行画面OCR結果配列121に格納された全てのOCR結果が選択されていない場合(ステップS507:NO)には、処理はステップS501へ戻り、現行画面OCR結果配列121に格納された全てのOCR結果が選択されるまでの間、ステップS501~ステップS507の処理が繰り返し実行される。現行画面OCR結果配列121に格納された全てのOCR結果が選択された場合(ステップS507:YES)には、画面比較装置100が実行する周囲文言取得処理は終了となる。図8のステップS405の周囲OCR結果取得処理の場合には、処理は図8のステップS406へ進む。図8のステップS408の周囲OCR結果取得処理の場合には、処理は図8のステップS409へ進む。 If all the directions, up, down, left and right, have been selected (step S506: YES), the control unit 101 determines whether all the OCR results stored in the current screen OCR result array 121 have been selected (step S507). If all the OCR results stored in the current screen OCR result array 121 have not been selected (step S507: NO), the process returns to step S501, and steps S501 to S507 are repeatedly executed until all the OCR results stored in the current screen OCR result array 121 have been selected. If all the OCR results stored in the current screen OCR result array 121 have been selected (step S507: YES), the surrounding text acquisition process executed by the screen comparison device 100 is terminated. In the case of the surrounding OCR result acquisition process of step S405 in FIG. 8, the process proceeds to step S406 in FIG. 8. In the case of the surrounding OCR result acquisition process in step S408 in FIG. 8, processing proceeds to step S409 in FIG. 8.
図12を参照して図11のステップS505において実行されるOCR結果更新処理の詳細について説明する。図12は、図11のステップS505において実行されるOCR結果更新処理の手順の一例を示すフローチャートである。画面比較装置100により実行されるOCR結果更新処理は、画面比較装置100の制御部101によって実行される。 The OCR result update process executed in step S505 of FIG. 11 will be described in detail with reference to FIG. 12. FIG. 12 is a flowchart showing an example of the procedure of the OCR result update process executed in step S505 of FIG. 11. The OCR result update process executed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、図11のステップS501の処理で選択された現行画面のOCR結果と、図11のステップS504の処理において存在すると判定された方向のOCR結果と、の距離を算出する(ステップS601)。この処理では、制御部101は、現行画面OCR結果配列121及び新規画面OCR結果配列122に格納された座標情報を用いて、OCR結果同士の距離を算出する。 First, the control unit 101 calculates the distance between the OCR result of the current screen selected in the process of step S501 in FIG. 11 and the OCR result of the direction determined to exist in the process of step S504 in FIG. 11 (step S601). In this process, the control unit 101 calculates the distance between the OCR results using the coordinate information stored in the current screen OCR result array 121 and the new screen OCR result array 122.
ステップS601で算出した結果、選択された現行画面のOCR結果と、存在すると判定された方向のOCR結果と、の距離が所定の距離より近くにあるか否かを判定する(ステップS602)。所定の距離は、任意に設定可能である。例えば、アプリケーションにより表示される現行画面や新規画面などの画面の特徴によって、所定の距離を決定する閾値を任意に設定することができる。なお、同じ方向に複数のOCR結果が存在する場合には、最も近いOCR結果を採用する。 As a result of calculation in step S601, it is determined whether the distance between the OCR result of the selected current screen and the OCR result in the direction determined to exist is closer than a predetermined distance (step S602). The predetermined distance can be set arbitrarily. For example, a threshold value that determines the predetermined distance can be set arbitrarily depending on the characteristics of the screen, such as the current screen or new screen, displayed by the application. Note that if multiple OCR results exist in the same direction, the closest OCR result is used.
選択された現行画面のOCR結果と、存在すると判定された方向のOCR結果と、の距離が所定の距離より遠くにある場合(ステップS602:NO)には、画面比較装置100が実行するOCR結果更新処理は終了となり、処理は図11のステップS507へ進む。 If the distance between the OCR result of the selected current screen and the OCR result of the direction determined to exist is greater than a predetermined distance (step S602: NO), the OCR result update process performed by the screen comparison device 100 ends, and the process proceeds to step S507 in FIG. 11.
選択された現行画面のOCR結果と、存在すると判定された方向のOCR結果と、の距離が所定の距離より近くにある場合(ステップS602:YES)には、制御部101は、存在すると判定された方向のOCR結果が設定済みであるか否かを判定する(ステップS603)。 If the distance between the OCR result of the selected current screen and the OCR result of the direction determined to exist is closer than a predetermined distance (step S602: YES), the control unit 101 determines whether the OCR result of the direction determined to exist has already been set (step S603).
存在すると判定された方向のOCR結果が未設定である場合(ステップS603:NO)には、制御部101は、判定された方向の現行画面のOCR結果を設定する(ステップS604)。この処理が終了すると、画面比較装置100が実行するOCR結果更新処理は終了となり、処理は図11のステップS507へ進む。 If the OCR result for the direction determined to exist has not been set (step S603: NO), the control unit 101 sets the OCR result for the current screen for the determined direction (step S604). When this process ends, the OCR result update process executed by the screen comparison device 100 ends, and the process proceeds to step S507 in FIG. 11.
存在すると判定された方向のOCR結果が設定済みである場合(ステップS603:YES)には、制御部101は、設定済みの方向のOCR結果より距離が近いか否かを判定する(ステップS605)。設定済みの方向のOCR結果より距離が遠い場合(ステップS605:NO)には、画面比較装置100が実行するOCR結果更新処理は終了となり、処理は図11のステップS507へ進む。 If the OCR result for the direction determined to exist has already been set (step S603: YES), the control unit 101 determines whether the distance is closer than the OCR result for the set direction (step S605). If the distance is farther than the OCR result for the set direction (step S605: NO), the OCR result update process executed by the screen comparison device 100 ends, and the process proceeds to step S507 in FIG. 11.
設定済みの方向のOCR結果より距離が近い場合(ステップS605:YES)には、制御部101は、判定された方向の現行画面のOCR結果を更新する(ステップS606)。この処理が終了すると、画面比較装置100が実行するOCR結果更新処理は終了となり、処理は図11のステップS507へ進む。 If the distance is closer than the OCR result for the set direction (step S605: YES), the control unit 101 updates the OCR result for the current screen in the determined direction (step S606). When this process ends, the OCR result update process executed by the screen comparison device 100 ends, and the process proceeds to step S507 in FIG. 11.
図4のステップS104において、制御部101は、誤字脱字チェック処理を行う。図13を参照してステップS104において実行される誤字脱字チェック処理の詳細について説明する。図13は、図4のステップS104において実行される誤字脱字チェック処理の手順の一例を示すフローチャートである。画面比較装置100により実行される誤字脱字チェック処理は、画面比較装置100の制御部101によって実行される。 In step S104 of FIG. 4, the control unit 101 performs a typographical error and omission check process. The typographical error and omission check process performed in step S104 will be described in detail with reference to FIG. 13. FIG. 13 is a flowchart showing an example of the procedure for the typographical error and omission check process performed in step S104 of FIG. 4. The typographical error and omission check process performed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面OCR結果配列121に格納された1つのOCR結果を選択する(ステップS701)。制御部101は、IDにより紐づけられている現行画面OCR結果配列121に格納されたOCR結果と、新規画面OCR結果配列122に格納されたOCR結果と、を比較する(ステップS702)。この処理では、現行画面OCR結果配列121に格納されたOCR結果と、新規画面OCR結果配列122に格納されたOCR結果との少なくとも一部が一致するか否かが判定される。 First, the control unit 101 selects one OCR result stored in the current screen OCR result array 121 (step S701). The control unit 101 compares the OCR result stored in the current screen OCR result array 121, which is linked by an ID, with the OCR result stored in the new screen OCR result array 122 (step S702). In this process, it is determined whether or not at least a portion of the OCR result stored in the current screen OCR result array 121 matches the OCR result stored in the new screen OCR result array 122.
制御部101は、ステップS702で比較した比較結果を新規画面OCR結果配列122のチェック結果に追加する(ステップS703)。 The control unit 101 adds the comparison result obtained in step S702 to the check results of the new screen OCR result array 122 (step S703).
例えば、現行画面OCR結果配列121に格納されたID「1」のOCR結果「お預入れ」と新規画面OCR結果配列122に格納されたID「2」のOCR結果「お預入れ」とを比較すると、文言は完全に一致する。この場合、制御部101は、新規画面OCR結果配列122のチェック結果に「完全一致」を示す情報を追加する。 For example, when comparing the OCR result "Deposit" for ID "1" stored in the current screen OCR result array 121 with the OCR result "Deposit" for ID "2" stored in the new screen OCR result array 122, the wording is a perfect match. In this case, the control unit 101 adds information indicating a "perfect match" to the check result of the new screen OCR result array 122.
一方で、現行画面OCR結果配列121に格納されたID「7」のOCR結果「English Guide」と新規画面OCR結果配列122に格納されたID「8」のOCR結果「English Guid」とを比較すると、文言は前方のみ一致する。この場合、制御部101は、新規画面OCR結果配列122のチェック結果に「前方一致」を示す情報を追加する。 On the other hand, when comparing the OCR result "English Guide" for ID "7" stored in the current screen OCR result array 121 with the OCR result "English Guid" for ID "8" stored in the new screen OCR result array 122, the wording only matches at the beginning. In this case, the control unit 101 adds information indicating "forward match" to the check result of the new screen OCR result array 122.
制御部101は、現行画面OCR結果配列121に格納された全てのOCR結果が選択されたか否かを判定する(ステップS704)。現行画面OCR結果配列121に格納された全てのOCR結果が選択されていない場合(ステップS704:NO)には、処理はステップS701に戻り、現行画面OCR結果配列121に格納された全てのOCR結果が選択されるまでの間ステップS701~ステップS704の処理が繰り返し実行される。現行画面OCR結果配列121に格納された全てのOCR結果が選択された場合(ステップS704:YES)には、画面比較装置100が実行する誤字脱字チェック処理は終了となり、処理は図4のステップS105へ進む。 The control unit 101 determines whether or not all the OCR results stored in the current screen OCR result array 121 have been selected (step S704). If all the OCR results stored in the current screen OCR result array 121 have not been selected (step S704: NO), the process returns to step S701, and steps S701 to S704 are repeatedly executed until all the OCR results stored in the current screen OCR result array 121 have been selected. If all the OCR results stored in the current screen OCR result array 121 have been selected (step S704: YES), the typo check process executed by the screen comparison device 100 is completed, and the process proceeds to step S105 in FIG. 4.
図4のステップS105において、制御部101は、位置ずれチェック処理を行う。図14を参照してステップS105において実行される位置ずれチェック処理の詳細について説明する。図14は、図4のステップS105において実行される位置ずれチェック処理の手順の一例を示すフローチャートである。画面比較装置100により実行される位置ずれチェック処理は、画面比較装置100の制御部101によって実行される。 In step S105 of FIG. 4, the control unit 101 performs a misalignment check process. The details of the misalignment check process performed in step S105 will be described with reference to FIG. 14. FIG. 14 is a flowchart showing an example of the procedure of the misalignment check process performed in step S105 of FIG. 4. The misalignment check process performed by the screen comparison device 100 is executed by the control unit 101 of the screen comparison device 100.
はじめに、制御部101は、現行画面OCR結果配列121に格納された1つの現行画面のOCR結果を選択する(ステップS801)。制御部101は、ステップS801で選択された現行画面のOCR結果のIDをパラメータとして指定する(ステップS802)。制御部101は、図11を参照して説明した周囲OCR結果取得処理を行う(ステップS803)。 First, the control unit 101 selects one OCR result of the current screen stored in the current screen OCR result array 121 (step S801). The control unit 101 specifies the ID of the OCR result of the current screen selected in step S801 as a parameter (step S802). The control unit 101 performs the surrounding OCR result acquisition process described with reference to FIG. 11 (step S803).
制御部101は、現行画面OCR結果配列121に格納された全てのOCR結果が選択されたか否かを判定する(ステップS804)。現行画面OCR結果配列121に格納された全てのOCR結果が選択されていない場合(ステップS804:NO)には、処理はステップS801に戻り、現行画面OCR結果配列121に格納された全てのOCR結果が選択されるまでの間、ステップS801~ステップS804の処理が繰り返し実行される。 The control unit 101 determines whether or not all the OCR results stored in the current screen OCR result array 121 have been selected (step S804). If all the OCR results stored in the current screen OCR result array 121 have not been selected (step S804: NO), the process returns to step S801, and steps S801 to S804 are repeatedly executed until all the OCR results stored in the current screen OCR result array 121 have been selected.
現行画面OCR結果配列121に格納された全てのOCR結果が選択された場合(ステップS804:YES)には、制御部101は、新規画面OCR結果配列122に格納された1つの新規画面のOCR結果を選択する(ステップS805)。制御部101は、ステップS805で選択された新規画面のOCR結果のIDをパラメータとして指定する(ステップS806)。制御部101は、図11を参照して説明した周囲OCR結果取得処理を行う(ステップS807)。 If all OCR results stored in the current screen OCR result array 121 have been selected (step S804: YES), the control unit 101 selects the OCR result of one new screen stored in the new screen OCR result array 122 (step S805). The control unit 101 specifies the ID of the OCR result of the new screen selected in step S805 as a parameter (step S806). The control unit 101 performs the surrounding OCR result acquisition process described with reference to FIG. 11 (step S807).
制御部101は、新規画面OCR結果配列122に格納された全てのOCR結果が選択されたか否かを判定する(ステップS808)。新規画面OCR結果配列122に格納された全てのOCR結果が選択されていない場合(ステップS808:NO)には、処理はステップS805に戻り、新規画面OCR結果配列122に格納された全てのOCR結果が選択されるまでの間、ステップS805~ステップS8084の処理が繰り返し実行される。 The control unit 101 determines whether or not all of the OCR results stored in the new screen OCR result array 122 have been selected (step S808). If all of the OCR results stored in the new screen OCR result array 122 have not been selected (step S808: NO), the process returns to step S805, and steps S805 to S8084 are repeatedly executed until all of the OCR results stored in the new screen OCR result array 122 have been selected.
新規画面OCR結果配列122に格納された全てのOCR結果が選択された場合(ステップS808:YES)には、制御部101は、現行画面OCR結果配列121に格納されたOCR結果と、新規画面OCR結果配列122に格納されたOCR結果と、の周囲のOCR結果同士を比較し、比較結果を新規画面OCR結果配列122に格納する(ステップS809)。 If all OCR results stored in the new screen OCR result array 122 have been selected (step S808: YES), the control unit 101 compares the surrounding OCR results between the OCR results stored in the current screen OCR result array 121 and the OCR results stored in the new screen OCR result array 122, and stores the comparison results in the new screen OCR result array 122 (step S809).
例えば、現行画面OCR結果配列121に格納されたID「1」のOCR結果「お預入れ」と新規画面OCR結果配列122に格納されたID「2」のOCR結果「お預入れ」とを比較した場合について説明する。この場合、現行画面OCR結果配列121に格納されたID「1」のOCR結果「お預入れ」の上方向のOCR結果は「なし」、下方向のOCR結果は「通帳記入」、左方向のOCR結果は「なし」、右方向のOCR結果は「お引出し」である。一方、新規画面OCR結果配列122に格納されたID「2」のOCR結果「お預入れ」の上方向のOCR結果は「新画面」、下方向のOCR結果は「通帳記入」、左方向のOCR結果は「なし」、右方向のOCR結果は「お引出し」である。このため、周囲のOCR結果同士を比較すると、上方向のOCR結果の比較結果が異なるため、制御部101は、比較結果に「位置ずれあり」の情報を格納する。 For example, we will explain the case where the OCR result "Deposit" of ID "1" stored in the current screen OCR result array 121 is compared with the OCR result "Deposit" of ID "2" stored in the new screen OCR result array 122. In this case, the OCR result for the OCR result "Deposit" of ID "1" stored in the current screen OCR result array 121 is "None" to the top, the OCR result for the bottom is "Entry into bankbook", the OCR result for the left is "None", and the OCR result for the right is "Withdrawal". On the other hand, the OCR result for the OCR result "Deposit" of ID "2" stored in the new screen OCR result array 122 is "New screen" to the top, the OCR result for the bottom is "Entry into bankbook", the OCR result for the left is "None", and the OCR result for the right is "Withdrawal". Therefore, when comparing the surrounding OCR results, the comparison results for the OCR results in the upward direction differ, so the control unit 101 stores the information "position misalignment exists" in the comparison result.
また、現行画面OCR結果配列121に格納されたID「7」のOCR結果「English Guide」と新規画面OCR結果配列122に格納されたID「8」のOCR結果「English Guid」とを比較した場合について説明する。この場合、現行画面OCR結果配列121に格納されたID「7」のOCR結果「English Guide」の上方向のOCR結果は「公共料金払込」、下方向のOCR結果は「なし」、左方向のOCR結果は「クレジットカード簡易保険・生命保険」、右方向のOCR結果は「なし」である。一方、新規画面OCR結果配列122に格納されたID「8」のOCR結果「English Guid」の上方向のOCR結果は「公共料金払込」、下方向のOCR結果は「なし」、左方向のOCR結果は「クレジットカード簡易保険・生命保険」、右方向のOCR結果は「なし」である。このため、両方のOCR結果同士を比較すると、上下左右方向の全てのOCR結果の比較結果が一致するため、制御部101は、比較結果に「位置ずれなし」の情報を格納する。処理が終了すると、画面比較装置100が実行する位置ずれチェック処理は終了となり、処理は図4のステップS106へ進む。 We will now explain a comparison between the OCR result "English Guide" for ID "7" stored in the current screen OCR result array 121 and the OCR result "English Guid" for ID "8" stored in the new screen OCR result array 122. In this case, the OCR result for the OCR result "English Guide" for ID "7" stored in the current screen OCR result array 121 is "Utility Bill Payment" in the upward direction, the OCR result for the downward direction is "None", the OCR result for the left direction is "Credit card simple insurance/life insurance", and the OCR result for the right direction is "None". On the other hand, the OCR result for the OCR result "English Guid" for ID "8" stored in the new screen OCR result array 122 is "Utility Bill Payment" in the upward direction, the OCR result for the downward direction is "None", the OCR result for the left direction is "Credit card simple insurance/life insurance", and the OCR result for the right direction is "None". Therefore, when both OCR results are compared, the comparison results of all the OCR results in the top, bottom, left, and right directions match, so the control unit 101 stores the information "no misalignment" in the comparison result. When the process ends, the misalignment check process performed by the screen comparison device 100 ends, and the process proceeds to step S106 in FIG. 4.
図4のステップS106において、制御部101は、結果通知処理を行う。結果通知処理では、新規画面OCR結果配列122に格納されたチェック結果と、比較結果と、に応じて誤字脱字及び位置ずれをユーザに通知する処理が行われる。図15は、誤字脱字及び位置ずれを通知する一例を示す図である。 In step S106 of FIG. 4, the control unit 101 performs a result notification process. In the result notification process, a process is performed to notify the user of typos and misalignment based on the check results stored in the new screen OCR result array 122 and the comparison results. FIG. 15 is a diagram showing an example of notifying the user of typos and misalignment.
例えば、チェック結果が「前方一致」のOCR結果については、現行画面OCR結果配列121に格納された座標情報と、新規画面OCR結果配列122に格納された座標情報と、を参照してそれぞれ誤字脱字のOCR結果を通知する強調表示401が行われる。強調表示401では、例えば赤色の枠線により強調表示が行われる。これにより、アプリケーション画面の更改を行った際に、修正前後で意図しない誤字脱字の文言があることを容易に確認することができる。従って、誤字脱字の文言の確認を効率よく正確に行うことができる。 For example, for an OCR result where the check result is "forward match," highlighting 401 is performed to notify the OCR result of typos and omissions by referencing the coordinate information stored in the current screen OCR result array 121 and the coordinate information stored in the new screen OCR result array 122. Highlighting 401 uses, for example, a red frame to highlight. This makes it easy to check whether there are unintended typos and omissions in the text before and after correction when updating the application screen. Therefore, checking for typos and omissions in the text can be performed efficiently and accurately.
また、比較結果が「位置ずれあり」のOCR結果については、現行画面OCR結果配列121に格納された座標情報と、新規画面OCR結果配列122に格納された座標情報と、を参照してそれぞれ位置ずれを通知する強調表示402、403が行われる。強調表示402、403では、例えば黄色の枠線により強調表示が行われる。これにより、アプリケーション画面の更改を行った際に、修正前後で意図しない配置の変更があることを容易に確認することができる。従って、配置の変更の確認を効率よく正確に行うことができる。 In addition, for OCR results where the comparison result is "positional deviation exists," highlighting 402, 403 is performed to notify the user of the positional deviation by referencing the coordinate information stored in the current screen OCR result array 121 and the coordinate information stored in the new screen OCR result array 122. Highlighting 402, 403 is performed by, for example, highlighting with a yellow frame. This makes it easy to check whether there is an unintended change in position before and after the correction when updating the application screen. Therefore, it is possible to check for changes in position efficiently and accurately.
図示していないが、誤字脱字も位置ずれもないOCR結果についても例えば青色の枠線により強調表示してもよい。また、強調表示は、赤色、黄色、青色の枠線により行われているがこの限りではなく、点滅、網掛け、蛍光色などにより行ってもよい。 Although not shown, OCR results that are free of typos and misalignment may also be highlighted, for example, with a blue border. Also, highlighting is typically done with red, yellow, and blue borders, but is not limited to this and may be done with blinking, shading, fluorescent colors, etc.
なお、本発明は上述した実施形態そのままに限定されるものではなく、実施段階でのその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。例えば、実施形態に示される全構成要素を適宜組み合わせても良い。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。このような、発明の趣旨を逸脱しない範囲内において種々の変形や応用ができることはもちろんである。 The present invention is not limited to the above-described embodiment as it is, and the components can be modified and embodied without departing from the gist of the invention at the implementation stage. In addition, various inventions can be formed by appropriately combining the multiple components disclosed in the above embodiments. For example, all the components shown in the embodiments may be appropriately combined. Furthermore, components from different embodiments may be appropriately combined. Of course, various modifications and applications are possible without departing from the spirit of the invention.
10 :現行画面
20 :新規画面
100 :画面比較装置
101 :制御部
102 :入力装置
103 :出力装置
104 :記憶部
105 :インターフェース
106 :バス
111 :抽出部
112 :検出部
113 :通知部
121 :現行画面OCR結果配列
122 :新規画面OCR結果配列
300a :文言
300b :文言
300c :文言
401 :強調表示
402 :強調表示
403 :強調表示
10: Current screen 20: New screen 100: Screen comparison device 101: Control unit 102: Input device 103: Output device 104: Memory unit 105: Interface 106: Bus 111: Extraction unit 112: Detection unit 113: Notification unit 121: Current screen OCR result array 122: New screen OCR result array 300a: Text 300b: Text 300c: Text 401: Highlight 402: Highlight 403: Highlight
Claims (5)
修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出する抽出部と、
前記抽出部により抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出する検出部と、
前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とを比較することで、前記少なくとも1つ以上の前記新規画面の文字認識結果の位置ずれの有無をチェックする手段と、
を備え、
位置ずれなしは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とが一致する比較結果を表し、
位置ずれありは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち所定方向の文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち前記所定方向の文字認識結果とが一致しない比較結果を表すことを特徴とする画面比較装置。 In a screen comparison device for comparing screens displayed by an application to be modified,
an extraction unit that extracts at least one character included in a current screen displayed by the application before the modification as a character recognition result for the current screen, and extracts at least one character included in a new screen displayed by the application after the modification as a character recognition result for the new screen;
a detection unit that detects an error in a character of the new screen according to a pair of at least one or more character recognition results of the current screen and at least one or more character recognition results of the new screen extracted by the extraction unit;
a means for checking the presence or absence of positional deviation of the character recognition results of the at least one or more new screens by comparing the character recognition results of the at least one or more current screens in the upward, downward, rightward, and leftward directions with the character recognition results of the at least one or more new screens in the upward, downward, rightward, and leftward directions, respectively;
Equipped with
No positional deviation indicates a comparison result in which the character recognition results of the at least one or more current screens in the upward, downward, right, and left directions match the character recognition results of the at least one or more new screens in the upward, downward, right, and left directions, respectively;
A screen comparison device characterized in that a position shift indicates a comparison result in which the character recognition result of the at least one or more current screens in a specified direction among the upward, downward, right, and left directions does not match the character recognition result of the at least one or more new screens in the specified direction among the upward, downward, right, and left directions .
前記検出部が検出した前記新規画面の文字の誤りを通知する通知部を更に備えることを特徴とする画面比較装置。 2. The screen comparison device according to claim 1,
The screen comparison device further comprises a notification unit that notifies a user of an error in characters on the new screen detected by the detection unit.
前記検出部は、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、に応じて前記新規画面の文字の誤りを検出することを特徴とする画面比較装置。 3. The screen comparison device according to claim 1,
The detection unit detects character errors in the new screen based on character recognition results for the upward, downward, right, and left directions of the at least one or more current screens and character recognition results for the upward, downward, right, and left directions of the at least one or more new screens.
修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出し、
前記抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出し、
前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とを比較することで、前記少なくとも1つ以上の前記新規画面の文字認識結果の位置ずれの有無をチェックし、
位置ずれなしは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とが一致する比較結果を表し、
位置ずれありは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち所定方向の文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち前記所定方向の文字認識結果とが一致しない比較結果を表すことを特徴とする画面比較方法。 A screen comparison method executed by a screen comparison device for comparing screens displayed by an application to be modified, comprising:
extracting at least one or more characters included in a current screen displayed by the application before the modification as a character recognition result for the current screen, and extracting at least one or more characters included in a new screen displayed by the application after the modification as a character recognition result for the new screen;
Detecting an error in a character of the new screen according to the extracted pairs of at least one character recognition result of the current screen and at least one character recognition result of the new screen;
checking whether or not there is a positional deviation of the character recognition results of the at least one or more new screens by comparing the character recognition results of the at least one or more current screens in the upward, downward, rightward, and leftward directions with the character recognition results of the at least one or more new screens in the upward , downward, rightward , and leftward directions, respectively;
No positional deviation indicates a comparison result in which the character recognition results of the at least one or more current screens in the upward, downward, right, and left directions match the character recognition results of the at least one or more new screens in the upward, downward, right, and left directions, respectively;
The screen comparison method is characterized in that a position shift indicates a comparison result in which the character recognition result of the at least one or more current screens in a predetermined direction among the upward, downward, right, and left directions does not match the character recognition result of the at least one or more new screens in the predetermined direction among the upward, downward, right, and left directions .
修正前の前記アプリケーションにより表示される現行画面に含まれる少なくとも1つ以上の文字を現行画面の文字認識結果として抽出すると共に、修正後の前記アプリケーションにより表示される新規画面に含まれる少なくとも1つ以上の文字を新規画面の文字認識結果として抽出し、
前記抽出された少なくとも1つ以上の前記現行画面の文字認識結果と、少なくとも1つ以上の前記新規画面の文字認識結果と、のペアに応じて、前記新規画面の文字の誤りを検出し、
前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とを比較することで、前記少なくとも1つ以上の前記新規画面の文字認識結果の位置ずれの有無をチェックする、
処理を実行し、
位置ずれなしは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向それぞれの文字認識結果とが一致する比較結果を表し、
位置ずれありは、前記少なくとも1つ以上の前記現行画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち所定方向の文字認識結果と、前記少なくとも1つ以上の前記新規画面の文字認識結果の上方向、下方向、右方向、及び左方向のうち前記所定方向の文字認識結果とが一致しない比較結果を表すことを特徴とするプログラム。 A program executed by a screen comparison device for comparing screens displayed by an application to be corrected,
extracting at least one or more characters included in a current screen displayed by the application before the modification as a character recognition result for the current screen, and extracting at least one or more characters included in a new screen displayed by the application after the modification as a character recognition result for the new screen;
Detecting an error in a character of the new screen according to the extracted pairs of at least one character recognition result of the current screen and at least one character recognition result of the new screen;
checking whether or not there is a positional deviation in the character recognition results of the at least one or more new screens by comparing the character recognition results of the at least one or more current screens in the upward, downward, rightward, and leftward directions with the character recognition results of the at least one or more new screens in the upward, downward, rightward, and leftward directions, respectively;
Execute the process ,
No positional deviation indicates a comparison result in which the character recognition results of the at least one or more current screens in the upward, downward, right, and left directions match the character recognition results of the at least one or more new screens in the upward, downward, right, and left directions, respectively;
A program characterized in that a position shift indicates a comparison result in which the character recognition result of the at least one or more current screens in a specified direction among the upward, downward, right, and left directions does not match the character recognition result of the at least one or more new screens in the specified direction among the upward, downward, right, and left directions .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021205363A JP7620540B2 (en) | 2021-12-17 | 2021-12-17 | Screen comparison device, screen comparison method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021205363A JP7620540B2 (en) | 2021-12-17 | 2021-12-17 | Screen comparison device, screen comparison method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023090415A JP2023090415A (en) | 2023-06-29 |
| JP7620540B2 true JP7620540B2 (en) | 2025-01-23 |
Family
ID=86936909
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021205363A Active JP7620540B2 (en) | 2021-12-17 | 2021-12-17 | Screen comparison device, screen comparison method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7620540B2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009122970A (en) | 2007-11-15 | 2009-06-04 | Nomura Research Institute Ltd | Program verification system |
| JP2015181049A (en) | 2015-06-15 | 2015-10-15 | 株式会社エヌ・ティ・ティ・データ | Image verification method, image verification device, and program |
| JP2016033716A (en) | 2014-07-31 | 2016-03-10 | 日本電気株式会社 | Information processing apparatus, information processing method, and program |
| JP2017207995A (en) | 2016-05-20 | 2017-11-24 | 日本電信電話株式会社 | Service monitoring device and service monitoring method |
| JP2018128801A (en) | 2017-02-07 | 2018-08-16 | 雅人 溝垣 | Analysis apparatus, analysis method, and analysis program |
| JP2020009279A (en) | 2018-07-11 | 2020-01-16 | 富士ゼロックス株式会社 | Information processing program, information processing device and information processing method |
-
2021
- 2021-12-17 JP JP2021205363A patent/JP7620540B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009122970A (en) | 2007-11-15 | 2009-06-04 | Nomura Research Institute Ltd | Program verification system |
| JP2016033716A (en) | 2014-07-31 | 2016-03-10 | 日本電気株式会社 | Information processing apparatus, information processing method, and program |
| JP2015181049A (en) | 2015-06-15 | 2015-10-15 | 株式会社エヌ・ティ・ティ・データ | Image verification method, image verification device, and program |
| JP2017207995A (en) | 2016-05-20 | 2017-11-24 | 日本電信電話株式会社 | Service monitoring device and service monitoring method |
| JP2018128801A (en) | 2017-02-07 | 2018-08-16 | 雅人 溝垣 | Analysis apparatus, analysis method, and analysis program |
| JP2020009279A (en) | 2018-07-11 | 2020-01-16 | 富士ゼロックス株式会社 | Information processing program, information processing device and information processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023090415A (en) | 2023-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11556245B2 (en) | Information processing device, information processing method and computer-readable recording medium | |
| US10642933B2 (en) | Method and apparatus for word prediction selection | |
| JP6419421B2 (en) | Image display device, image display method, and program | |
| CN104391666B (en) | Portable data assistance, display control method and program | |
| CN102981749A (en) | Information viewing apparatus, control program and controlling method | |
| JP2021524948A (en) | Certification document recognition methods and devices, electronic devices and computer-readable storage media | |
| KR20130116211A (en) | Touchscreen text input | |
| US20140297276A1 (en) | Editing apparatus, editing method, and computer program product | |
| JP2016095753A (en) | Character recognition system and character recognition method | |
| CN102033693A (en) | Apparatus and method for displaying input character indicator | |
| JPWO2012102159A1 (en) | Character input device and character input method | |
| US20220198113A1 (en) | Design support device and storage medium | |
| JP2015520458A (en) | Method, controller and apparatus for composing words | |
| EP2775384A2 (en) | Electronic apparatus having software keyboard function and method of controlling electronic apparatus having software keyboard function | |
| EP3125087B1 (en) | Terminal device, display control method, and program | |
| RU2605078C2 (en) | Image segmentation for data verification | |
| JP7620540B2 (en) | Screen comparison device, screen comparison method, and program | |
| US20170038935A1 (en) | Information processing device, information display method, and recording medium | |
| JP5661214B1 (en) | Character data correction method, character data correction device and program | |
| EP3125089A1 (en) | Terminal device, display control method, and program | |
| JP5632110B1 (en) | Character data correction method, character data correction device and program | |
| JP5542624B2 (en) | Plant monitoring device | |
| JP2017102587A (en) | Information processing apparatus, image reading device, image forming apparatus, and program | |
| KR101069843B1 (en) | Method and apparatus for calculating formula | |
| CN117312593A (en) | Picture screening method, picture screening device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20231102 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20231206 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240830 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240903 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241025 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241126 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241213 |
|
| 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: 20250107 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250110 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7620540 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |