[go: up one dir, main page]

CN111914821A - A dictation detection method and electronic device - Google Patents

A dictation detection method and electronic device Download PDF

Info

Publication number
CN111914821A
CN111914821A CN201910387341.1A CN201910387341A CN111914821A CN 111914821 A CN111914821 A CN 111914821A CN 201910387341 A CN201910387341 A CN 201910387341A CN 111914821 A CN111914821 A CN 111914821A
Authority
CN
China
Prior art keywords
electronic device
dictation
target
angle
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910387341.1A
Other languages
Chinese (zh)
Other versions
CN111914821B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910387341.1A priority Critical patent/CN111914821B/en
Publication of CN111914821A publication Critical patent/CN111914821A/en
Application granted granted Critical
Publication of CN111914821B publication Critical patent/CN111914821B/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
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • 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/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例涉及教育技术领域,公开了一种听写检测方法及电子设备,该方法包括:通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度;判断目标角度是否大于预设角度;如果是,输出第一语音提示信息,该第一语音提示信息用于提示用户调整手写本的摆放位置,以使目标角度被调整至小于或等于预设角度;其中,当目标角度被调整至小于或等于预设角度时,手写本上的书写内容被摄像设备完整拍摄到。实施本发明实施例,有利于拍摄到完整的书写内容,能够提升听写检测的效果。

Figure 201910387341

The embodiment of the present invention relates to the field of education technology, and discloses a dictation detection method and an electronic device. The method includes: acquiring, through a camera device on the electronic device, a target formed between the top edge of the handwritten book and the bottom edge of the electronic device touching the desktop angle; determine whether the target angle is greater than the preset angle; if so, output the first voice prompt information, the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so that the target angle is adjusted to be less than or equal to the preset angle Set the angle; wherein, when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwritten notebook is completely captured by the camera device. Implementing the embodiments of the present invention is conducive to photographing complete written content, and can improve the effect of dictation detection.

Figure 201910387341

Description

一种听写检测方法及电子设备A dictation detection method and electronic device

技术领域technical field

本发明涉及教育技术领域,尤其涉及一种听写检测方法及电子设备。The invention relates to the field of education technology, and in particular, to a dictation detection method and an electronic device.

背景技术Background technique

目前,用户使用电子设备(如家教机)进行听写时,电子设备可以利用电子设备的摄像头拍摄用户听写时在手写本的书写内容,然后对书写内容进行检测获得听写结果。在实践中发现,如果手写本规范放置在电子设备的摄像头的拍摄范围内,摄像头可以拍摄到书写内容,但是,如果手写本的摆放不规范,容易使得摄像头无法拍摄到完整的书写内容,影响检测结果。At present, when a user uses an electronic device (such as a tutor) for dictation, the electronic device can use the camera of the electronic device to photograph the written content in the handwritten book of the user during dictation, and then detect the written content to obtain a dictation result. In practice, it is found that if the handwritten book is placed within the shooting range of the camera of the electronic device, the camera can capture the writing content. However, if the handwritten book is not placed in a standard way, it is easy for the camera to fail to capture the complete writing content, which will affect the Test results.

发明内容SUMMARY OF THE INVENTION

本发明实施例公开了一种听写检测方法及电子设备,有利于拍摄到完整的书写内容,提升听写检测的效果。The embodiment of the invention discloses a dictation detection method and an electronic device, which are conducive to photographing complete written content and improve the effect of dictation detection.

本发明实施例第一方面公开一种听写检测方法,电子设备立于桌面上,手写本水平放置于所述桌面上,所述方法包括:A first aspect of the embodiments of the present invention discloses a dictation detection method. An electronic device is placed on a desktop, and a handwriting book is placed horizontally on the desktop. The method includes:

通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度;Acquire the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop through the camera device on the electronic device;

判断所述目标角度是否大于预设角度;judging whether the target angle is greater than a preset angle;

如果是,输出第一语音提示信息,所述第一语音提示信息用于提示用户调整所述手写本的摆放位置,以使所述目标角度被调整至小于或等于所述预设角度;其中,当所述目标角度被调整至小于或等于所述预设角度时,所述手写本上的书写内容被所述摄像设备完整拍摄到。If yes, output first voice prompt information, the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook, so that the target angle is adjusted to be less than or equal to the preset angle; wherein , when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwriting notebook is completely captured by the camera device.

作为一种可选的实施方式,在本发明实施例第一方面中,在判断出所述目标角度小于或等于预设角度之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after judging that the target angle is less than or equal to a preset angle, the method further includes:

通过所述摄像设备获取所述手写本的顶部边缘的中心与所述电子设备接触所述桌面的底部边缘的中心之间的目标距离;Acquiring, by the camera device, a target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop;

判断所述目标距离是否大于指定距离;其中,所述指定距离由所述目标角度、所述预设角度以及预设距离计算得到;Determine whether the target distance is greater than a specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance;

如果是,输出第二语音提示信息,所述第二语音提示信息用于提示所述用户调整所述手写本的摆放位置,以使所述目标距离被调整至小于或等于所述指定距离;其中,当所述目标距离被调整至小于或等于所述指定距离时,所述手写本上的书写内容被所述摄像设备完整拍摄到。If yes, output second voice prompt information, the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook, so that the target distance is adjusted to be less than or equal to the specified distance; Wherein, when the target distance is adjusted to be less than or equal to the specified distance, the writing content on the handwritten notebook is completely captured by the camera device.

作为一种可选的实施方式,在本发明实施例第一方面中,所述通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度之后,以及所述判断所述目标角度是否大于预设角度之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the top edge of the handwritten book acquired by the camera device on the electronic device and the bottom edge of the desktop that the electronic device contacts After the target angle formed between the two, and before the judging whether the target angle is greater than the preset angle, the method further includes:

在所述电子设备的显示屏显示所述目标角度的度数;Display the degree of the target angle on the display screen of the electronic device;

以及,当判断出所述目标角度大于预设角度时,将在所述显示屏显示的所述目标角度的度数的颜色调整为指定色,并执行所述的输出第一语音提示信息的步骤。And, when it is determined that the target angle is greater than the preset angle, the color of the degree of the target angle displayed on the display screen is adjusted to a specified color, and the step of outputting the first voice prompt information is performed.

作为一种可选的实施方式,在本发明实施例第一方面中,所述手写本为音乐曲谱;所述输出第一语音提示信息之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the handwritten book is a music score; after the outputting the first voice prompt information, the method further includes:

通过所述摄像设备拍摄所述用户在所述音乐曲谱上的书写图像;Photograph the image of the user's writing on the music score by using the camera device;

从所述书写图像识别出所述用户在所述音乐曲谱上的书写内容;Identifying the user's writing on the music score from the writing image;

根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果;其中,所述听写内容为若干个音符;Detect the written content according to the dictation content played by the electronic device, and obtain a dictation detection result; wherein the dictation content is a number of musical notes;

输出所述听写检测结果。The dictation detection result is output.

作为一种可选的实施方式,在本发明实施例第一方面中,所述根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the detection of the written content according to the dictation content played by the electronic device to obtain a dictation detection result includes:

获取所述摄像设备记录的所述用户在所述音乐曲谱上的书写信息;所述书写信息包括书写顺序和书写音符间隔;Acquiring the writing information of the user on the music score recorded by the camera device; the writing information includes writing order and writing note interval;

根据所述书写信息以及所述听写内容所包括的音符数对所述书写内容进行分割,获得若干个音符;Divide the written content according to the written information and the number of notes included in the dictation content to obtain several notes;

根据所述听写内容中的音符对所述若干个音符进行检测,获得听写检测结果。The several notes are detected according to the notes in the dictation content to obtain a dictation detection result.

作为一种可选的实施方式,在本发明实施例第一方面中,所述输出所述听写检测结果之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the outputting the dictation detection result, the method further includes:

在所述电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;所述第三语音提示信息用于提示所述用户在所述模拟音乐键盘弹奏所述听写内容;Output and display the simulated musical keyboard on the display screen of the electronic device, and output third voice prompt information; the third voice prompt information is used to prompt the user to play the dictation content on the simulated musical keyboard;

检测所述用户在所述模拟音乐键盘上点击的目标音符,并输出所述目标音符对应的音效。A target note clicked by the user on the simulated musical keyboard is detected, and a sound effect corresponding to the target note is output.

本发明实施例第二方面公开一种电子设备,所述电子设备立于桌面上,手写本水平放置于所述桌面上,所述电子设备包括:A second aspect of the embodiments of the present invention discloses an electronic device, the electronic device is standing on a desktop, and a handwriting book is placed horizontally on the desktop, and the electronic device includes:

角度获取单元,用于通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度;an angle obtaining unit, configured to obtain the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop through the camera device on the electronic device;

第一判断单元,用于判断所述目标角度是否大于预设角度;a first judging unit for judging whether the target angle is greater than a preset angle;

第一输出单元,用于在所述第一判断单元的判断结果为是时,输出第一语音提示信息,所述第一语音提示信息用于提示用户调整所述手写本的摆放位置,以使所述目标角度被调整至小于或等于所述预设角度;其中,当所述目标角度被调整至小于或等于所述预设角度时,所述手写本上的书写内容被所述摄像设备完整拍摄到。The first output unit is configured to output first voice prompt information when the judgment result of the first judgment unit is yes, and the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so as to Adjusting the target angle to be less than or equal to the preset angle; wherein, when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwritten book is captured by the camera device Completely photographed.

作为一种可选的实施方式,在本发明实施例第二方面中,所述电子设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the electronic device further includes:

距离获取单元,用于在所述第一判断单元的判断结果为否时,通过所述摄像设备获取所述手写本的顶部边缘的中心与所述电子设备接触所述桌面的底部边缘的中心之间的目标距离;The distance acquisition unit is configured to acquire, through the camera device, the center of the top edge of the handwritten notebook and the center of the bottom edge of the desktop contacting the electronic device when the determination result of the first determination unit is no. target distance between

第二判断单元,用于判断所述目标距离是否大于指定距离;其中,所述指定距离由所述目标角度、所述预设角度以及预设距离计算得到;a second judging unit, configured to judge whether the target distance is greater than a specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance;

第二输出单元,用于在所述第二判断单元的判断结果为是时,输出第二语音提示信息,所述第二语音提示信息用于提示所述用户调整所述手写本的摆放位置,以使所述目标距离被调整至小于或等于所述指定距离;其中,当所述目标距离被调整至小于或等于所述指定距离时,所述手写本上的书写内容被所述摄像设备完整拍摄到。a second output unit, configured to output second voice prompt information when the judgment result of the second judgment unit is yes, where the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook , so that the target distance is adjusted to be less than or equal to the specified distance; wherein, when the target distance is adjusted to be less than or equal to the specified distance, the writing content on the handwritten book is captured by the camera device Completely photographed.

作为一种可选的实施方式,在本发明实施例第二方面中,所述电子设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the electronic device further includes:

度数显示单元,用于在所述角度获取单元通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度之后,以及所述第一判断单元判断所述目标角度是否大于预设角度之前,在所述电子设备的显示屏显示所述目标角度的度数;A degree display unit for, after the angle acquisition unit acquires the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop through the camera device on the electronic device, and Before the first judging unit judges whether the target angle is greater than a preset angle, the display screen of the electronic device displays the degree of the target angle;

第一输出单元,还用于在所述第一判断单元的判断结果为是时,将在所述显示屏显示的所述目标角度的度数的颜色调整为指定色,并输出第一语音提示信息。The first output unit is further configured to adjust the color of the degree of the target angle displayed on the display screen to a specified color when the judgment result of the first judgment unit is yes, and output the first voice prompt information .

作为一种可选的实施方式,在本发明实施例第二方面中,所述手写本为音乐曲谱;所述电子设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the handwritten book is a music score; the electronic device further includes:

图像拍摄单元,用于在所述第一输出单元输出第一语音提示信息之后,通过所述摄像设备拍摄所述用户在所述音乐曲谱上的书写图像;an image capturing unit, configured to capture an image of the user's writing on the music score by using the camera device after the first output unit outputs the first voice prompt information;

内容识别单元,用于从所述书写图像识别出所述用户在所述音乐曲谱上的书写内容;a content recognition unit for recognizing the user's writing content on the music score from the writing image;

听写检测单元,用于根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果;其中,所述听写内容为若干个音符;a dictation detection unit, configured to detect the written content according to the dictation content played by the electronic device, and obtain a dictation detection result; wherein the dictation content is a number of musical notes;

结果输出单元,用于输出所述听写检测结果。A result output unit, configured to output the dictation detection result.

作为一种可选的实施方式,在本发明实施例第二方面中,所述听写检测单元包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the dictation detection unit includes:

获取子单元,用于获取所述摄像设备记录的所述用户在所述音乐曲谱上的书写信息;所述书写信息包括书写顺序和书写音符间隔;an acquisition subunit, used for acquiring the writing information of the user on the music score recorded by the camera device; the writing information includes writing order and writing note interval;

分割子单元,用于根据所述书写信息以及所述听写内容所包括的音符数对所述书写内容进行分割,获得若干个音符;A dividing subunit, for dividing the writing content according to the writing information and the number of notes included in the dictation content to obtain several notes;

检测子单元,用于根据所述听写内容中的音符对所述若干个音符进行检测,获得听写检测结果。A detection subunit, configured to detect the several notes according to the notes in the dictation content to obtain a dictation detection result.

作为一种可选的实施方式,在本发明实施例第二方面中,所述电子设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the electronic device further includes:

输出显示单元,用于在所述结果输出单元输出所述听写检测结果之后,在所述电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;所述第三语音提示信息用于提示所述用户在所述模拟音乐键盘弹奏所述听写内容;The output display unit is used for outputting and displaying the simulated music keyboard on the display screen of the electronic device after the result output unit outputs the dictation detection result, and outputting third voice prompt information; the third voice prompt information uses for prompting the user to play the dictation content on the simulated musical keyboard;

检测输出单元,用于检测所述用户在所述模拟音乐键盘上点击的目标音符,并输出所述目标音符对应的音效。A detection and output unit, configured to detect the target note clicked by the user on the simulated musical keyboard, and output the sound effect corresponding to the target note.

本发明实施例第三方面公开一种电子设备,包括:A third aspect of the embodiments of the present invention discloses an electronic device, including:

存储有可执行程序代码的存储器;a memory in which executable program code is stored;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的一种听写检测方法。The processor invokes the executable program code stored in the memory to execute the dictation detection method disclosed in the first aspect of the embodiment of the present invention.

本发明实施例第四方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例第一方面公开的一种听写检测方法。A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the dictation detection method disclosed in the first aspect of the embodiments of the present invention.

本发明实施例第五方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A fifth aspect of the embodiments of the present invention discloses a computer program product, which, when the computer program product runs on a computer, causes the computer to execute part or all of the steps of any one of the methods of the first aspect.

本发明实施例第六方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A sixth aspect of the embodiments of the present invention discloses an application publishing platform, where the application publishing platform is used for publishing a computer program product, wherein when the computer program product runs on a computer, the computer is made to execute any of the first aspect. Some or all of the steps of a method.

与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

本发明实施例中,通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度,如果该目标角度小于或等于预设角度,此时不会因手写本的位置影响拍摄效果;如果该目标角度大于预设角度,此时由于手写本的位置偏差较大会影响拍摄效果,所以输出语音提示信息,用来提示用户调整手写本的摆放位置,使得目标角度被调整至小于或等于预设角度,让手写本摆放在摄像设备的拍摄范围内,有利于拍摄到完整的书写内容,提升听写检测的效果。In this embodiment of the present invention, the target angle formed between the top edge of the handwritten book and the bottom edge of the electronic device touching the desktop is obtained through the camera device on the electronic device. If the target angle is less than or equal to the preset angle, no The position of the handwritten book affects the shooting effect; if the target angle is greater than the preset angle, the shooting effect will be affected due to the large position deviation of the handwritten book, so a voice prompt message is output to prompt the user to adjust the placement of the handwritten book, so that the The target angle is adjusted to be less than or equal to the preset angle, so that the handwritten notebook is placed within the shooting range of the camera equipment, which is conducive to shooting the complete writing content and improves the effect of dictation detection.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是本发明实施例公开的一种听写检测方法的流程示意图;1 is a schematic flowchart of a dictation detection method disclosed in an embodiment of the present invention;

图2是电子设备与手写本放置在桌面上的示意图;Fig. 2 is the schematic diagram that electronic equipment and handwriting are placed on the desktop;

图3是本发明实施例公开的另一种听写检测方法的流程示意图;3 is a schematic flowchart of another dictation detection method disclosed in an embodiment of the present invention;

图4是本发明实施例公开的另一种听写检测方法的流程示意图;4 is a schematic flowchart of another dictation detection method disclosed in an embodiment of the present invention;

图5是本发明实施例公开的一种电子设备的结构示意图;5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention;

图6是本发明实施例公开的另一种电子设备的结构示意图;6 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present invention;

图7是本发明实施例公开的另一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”、“第三”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", "third" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order. The terms "comprising" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to the explicit Instead, those steps or elements listed may include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

本发明实施例公开了一种听写检测方法及电子设备,有利于拍摄到完整的书写内容,提升听写检测的效果。以下结合附图,从电子设备角度出发进行详细描述。The embodiment of the invention discloses a dictation detection method and an electronic device, which are conducive to photographing complete written content and improve the effect of dictation detection. The following describes in detail from the perspective of electronic devices with reference to the accompanying drawings.

实施例一Example 1

请参阅图1,图1是本发明实施例公开的一种听写检测方法的流程示意图。如图1所示,该听写检测方法可以包括以下步骤。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a dictation detection method disclosed in an embodiment of the present invention. As shown in FIG. 1 , the dictation detection method may include the following steps.

101、电子设备通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。101. The electronic device acquires, through a camera device on the electronic device, a target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop.

本发明实施例中,电子设备可以是家教机、学习机、学习平板等,本发明实施例不作限定。电子设备上的摄像设备可以与反光镜组合,使摄像设备可以拍摄到不同方向的视野,进而可以拍摄到手写本的顶部边缘与电子设备接触桌面的底部边缘之间。电子设备在接收到用户通过语音方式或触屏方式触发的听写检测指令后,进入听写检测模式,开启摄像设备,通过摄像设备实时监测手写本的顶部边缘与电子设备接触桌面的底部边缘之间,获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。In the embodiment of the present invention, the electronic device may be a tutoring machine, a learning machine, a learning tablet, etc., which is not limited in the embodiment of the present invention. The camera device on the electronic device can be combined with a reflector, so that the camera device can capture the field of view in different directions, and thus can capture between the top edge of the handwriting notebook and the bottom edge of the electronic device touching the desktop. After receiving the dictation detection instruction triggered by the user through voice or touch screen, the electronic device enters the dictation detection mode, turns on the camera device, and monitors the space between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop through the camera device in real time. Obtains the target angle formed between the top edge of the handwriting and the bottom edge of the electronic device touching the desktop.

作为一种可选的实施方式,电子设备可以获取电子设备立于桌面时的倾斜度以及电子设备上的摄像设备的拍摄角度,通过摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的初始角度,根据电子设备的倾斜度以及摄像设备的拍摄角度对该初始角度进行校准,获得手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。实施该实施方式,能够使得获取到的目标角度更加贴合手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的真实角度,提高目标角度的准确性。As an optional implementation manner, the electronic device can obtain the inclination of the electronic device when it stands on the desktop and the shooting angle of the camera device on the electronic device, and obtain the top edge of the handwriting and the bottom edge of the electronic device contacting the desktop through the camera device. The initial angle formed between the two is calibrated according to the inclination of the electronic device and the shooting angle of the camera device to obtain the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop. Implementing this embodiment can make the acquired target angle more closely fit the real angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop, thereby improving the accuracy of the target angle.

102、电子设备判断目标角度是否大于预设角度;如果是,执行步骤103;如果否,结束本流程。102. The electronic device determines whether the target angle is greater than the preset angle; if so, execute step 103; if not, end the process.

具体地,假设预设角度为20°,电子设备判断手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度是否大于20°;如果目标角度大于20°时,执行步骤103;如果目标角度小于或等于20°时,结束本流程。如图2所示,电子设备立于桌面上,手写本水平放置于所述桌面上,图2中201所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度小于预设角度,此时手写本在摄像设备的拍摄范围内,手写本上的书写内容可以被拍摄设备完整拍摄到;图2中202所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度大于预设角度,此时手写本的部分区域不在摄像设备的拍摄范围内,手写本上的书写内容不能被拍摄设备完整拍摄到,因此需要调整手写本的摆放位置。Specifically, assuming that the preset angle is 20°, the electronic device determines whether the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop is greater than 20°; if the target angle is greater than 20°, execute step 103; If the target angle is less than or equal to 20°, the process ends. As shown in Figure 2, the electronic device is standing on the desktop, and the handwriting book is placed horizontally on the desktop. As shown in 201 in Figure 2, the angle between the top edge of the handwriting book and the bottom edge of the electronic device touching the desktop is smaller than the preset At this time, the handwritten notebook is within the shooting range of the camera device, and the writing content on the handwritten notebook can be completely captured by the shooting device; as shown by 202 in Figure 2, between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop The angle is greater than the preset angle. At this time, part of the handwritten notebook is not within the shooting range of the camera equipment, and the writing content on the handwritten notebook cannot be completely captured by the shooting device. Therefore, it is necessary to adjust the placement of the handwritten notebook.

作为一种可选的实施方式,电子设备可以通过拍摄设备获取手写本的尺寸,根据手写本的尺寸确定预设角度,在通过拍摄设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度之后,判断目标角度是否大于预设角度。实施该实施方式,能够根据手写本的不同尺寸调整预设角度,从而使得手写本的位置调整更加准确。As an optional implementation manner, the electronic device may obtain the size of the handwritten book through the photographing device, determine a preset angle according to the size of the handwriting book, and determine the angle between the top edge of the handwritten book obtained through the photographing device and the bottom edge of the electronic device touching the desktop. After the target angle formed between the two, it is determined whether the target angle is greater than the preset angle. By implementing this embodiment, the preset angle can be adjusted according to different sizes of the handwritten book, thereby making the position adjustment of the handwritten book more accurate.

103、电子设备输出第一语音提示信息,该第一语音提示信息用于提示用户调整手写本的摆放位置,以使目标角度被调整至小于或等于预设角度;其中,当目标角度被调整至小于或等于预设角度时,手写本上的书写内容被摄像设备完整拍摄到。103. The electronic device outputs first voice prompt information, and the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so that the target angle is adjusted to be less than or equal to the preset angle; wherein, when the target angle is adjusted When the angle is less than or equal to the preset angle, the writing content on the handwritten notebook is completely captured by the camera device.

可见,实施图1所描述的听写检测方法,通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度,如果该目标角度小于或等于预设角度,此时不会因手写本的位置影响拍摄效果;如果该目标角度大于预设角度,此时由于手写本的位置偏差较大会影响拍摄效果,所以输出语音提示信息,用来提示用户调整手写本的摆放位置,使得目标角度被调整至小于或等于预设角度,让手写本摆放在摄像设备的拍摄范围内,有利于拍摄到完整的书写内容,提升听写检测的效果。It can be seen that the dictation detection method described in Fig. 1 is implemented, and the target angle formed between the top edge of the handwritten book and the bottom edge of the electronic device contacting the desktop is obtained by the camera device on the electronic device, if the target angle is less than or equal to the preset angle. , at this time, the shooting effect will not be affected by the position of the handwriting; if the target angle is greater than the preset angle, the shooting effect will be affected due to the large position deviation of the handwriting, so a voice prompt message is output to prompt the user to adjust the handwriting. The placement position of the device allows the target angle to be adjusted to be less than or equal to the preset angle, so that the handwritten notebook is placed within the shooting range of the camera equipment, which is conducive to shooting the complete writing content and improves the effect of dictation detection.

实施例二Embodiment 2

请参阅图3,图3是本发明实施例公开的另一种听写检测方法的流程示意图。如图3所示,该听写检测方法可以包括以下步骤。Please refer to FIG. 3 , which is a schematic flowchart of another dictation detection method disclosed in an embodiment of the present invention. As shown in FIG. 3 , the dictation detection method may include the following steps.

301、电子设备通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。301. The electronic device acquires, through a camera device on the electronic device, a target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop.

其中,电子设备立于桌面上,手写本水平放置于所述桌面上。Wherein, the electronic device stands on the desktop, and the handwriting is placed horizontally on the desktop.

302、电子设备在电子设备的显示屏显示目标角度的度数。302. The electronic device displays the degree of the target angle on the display screen of the electronic device.

303、电子设备判断目标角度是否大于预设角度;如果是,执行步骤304;如果否,执行步骤305-步骤307。303. The electronic device determines whether the target angle is greater than the preset angle; if so, go to step 304; if not, go to step 305-step 307.

304、电子设备将在显示屏显示的目标角度的度数的颜色调整为指定色,并输出第一语音提示信息,该第一语音提示信息用于提示用户调整手写本的摆放位置,以使目标角度被调整至小于或等于预设角度;其中,当目标角度被调整至小于或等于预设角度时,手写本上的书写内容被摄像设备完整拍摄到。304. The electronic device adjusts the color of the degree of the target angle displayed on the display screen to a specified color, and outputs first voice prompt information, where the first voice prompt information is used to prompt the user to adjust the placement position of the handwriting so that the target The angle is adjusted to be less than or equal to the preset angle; wherein, when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwritten book is completely captured by the camera device.

具体地,指定色可以是红色,电子设备将在显示屏显示的目标角度的度数的颜色调整为红色,用于警示用户手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的角度过大,使用户及时进行调整。Specifically, the specified color may be red, and the electronic device adjusts the color of the degree of the target angle displayed on the display screen to red, which is used to warn the user that the angle formed between the top edge of the handwriting and the bottom edge of the electronic device touching the desktop is too high. large, allowing users to adjust in time.

305、电子设备通过摄像设备获取手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离。305. The electronic device acquires, by using the camera device, the target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop.

306、电子设备判断目标距离是否大于指定距离;其中,指定距离由目标角度、预设角度以及预设距离计算得到;如果是,执行步骤307;如果否,结束本流程。306. The electronic device determines whether the target distance is greater than the specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance; if so, go to step 307; if not, end the process.

本发明实施例中,预设距离A为当手写本的顶部边缘与电子设备接触桌面的底部边缘贴合时,手写本的底部边缘与摄像设备的拍摄范围边缘之间的距离,假设目标角度为B,预设角度为C,那么指定距离D=A/cos(C-B)。In the embodiment of the present invention, the preset distance A is the distance between the bottom edge of the handwritten notebook and the edge of the shooting range of the camera device when the top edge of the handwritten notebook is attached to the bottom edge of the electronic device in contact with the desktop. It is assumed that the target angle is B, the preset angle is C, then the specified distance D=A/cos(C-B).

具体地,假设指定距离为3厘米,电子设备判断手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离是否大于3厘米,如果目标距离大于3厘米,执行步骤307;如果目标距离小于或等于3厘米,结束本流程。如图2中203所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度小于预设角度,但是手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的距离较远,且大于指定距离,此时手写本的部分区域不在摄像设备的拍摄范围内,手写本上的书写内容不能被拍摄设备完整拍摄到,因此需要调整手写本的摆放位置。Specifically, assuming that the specified distance is 3 cm, the electronic device determines whether the target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop is greater than 3 cm, and if the target distance is greater than 3 cm, execute step 307 ; If the target distance is less than or equal to 3 cm, end this process. As shown at 203 in FIG. 2, the angle between the top edge of the handwriting notebook and the bottom edge of the electronic device touching the desktop is smaller than the preset angle, but the angle between the center of the top edge of the handwriting notebook and the center of the bottom edge of the electronic device touching the desktop The distance of the handwritten book is far and larger than the specified distance. At this time, part of the handwritten notebook is not within the shooting range of the camera equipment, and the writing content on the handwritten notebook cannot be completely captured by the shooting device. Therefore, it is necessary to adjust the placement of the handwritten notebook.

作为一种可选的实施方式,电子设备可以通过拍摄设备获取手写本的尺寸,根据手写本的尺寸确定预设距离,根据预设距离、目标角度以及预设角度计算出指定距离;在通过摄像设备获取手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离之后,判断目标距离是否大于指定距离。实施该实施方式,能够根据手写本的不同尺寸调整预设距离,从而使得手写本的位置调整更加准确。As an optional implementation manner, the electronic device can obtain the size of the handwritten book through the photographing device, determine the preset distance according to the size of the handwritten book, and calculate the specified distance according to the preset distance, the target angle and the preset angle; After the device obtains the target distance between the center of the top edge of the handwriting and the center of the bottom edge of the electronic device touching the desktop, it determines whether the target distance is greater than the specified distance. By implementing this embodiment, the preset distance can be adjusted according to different sizes of the handwritten book, thereby making the position adjustment of the handwritten book more accurate.

307、电子设备输出第二语音提示信息,该第二语音提示信息用于提示用户调整手写本的摆放位置,以使目标距离被调整至小于或等于指定距离;其中,当目标距离被调整至小于或等于指定距离时,手写本上的书写内容被摄像设备完整拍摄到。307. The electronic device outputs second voice prompt information, and the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so that the target distance is adjusted to be less than or equal to the specified distance; wherein, when the target distance is adjusted to When the distance is less than or equal to the specified distance, the writing content on the handwritten notebook is completely captured by the camera device.

可见,实施图3所描述的听写检测方法,通过手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度、手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离来判断手写本是否在摄像设备的拍摄范围内,如果不在,提示用户调整手写本的摆放位置,让手写本摆放在摄像设备的拍摄范围内,有利于拍摄到完整的书写内容,提升听写检测的效果。Visible, implement the dictation detection method described in Fig. 3, through the target angle formed between the top edge of the handwritten book and the bottom edge of the electronic device contacting the desktop, the center of the top edge of the handwritten book and the center of the bottom edge of the electronic device contacting the desktop The distance between the targets to determine whether the handwritten book is within the shooting range of the camera equipment, if not, prompt the user to adjust the position of the handwritten book, so that the handwritten book is placed within the shooting range of the camera equipment, which is conducive to shooting a complete picture. Write content to improve the effect of dictation detection.

实施例三Embodiment 3

请参阅图4,图4是本发明实施例公开的另一种听写检测方法的流程示意图。如图4所示,该听写检测方法可以包括以下步骤。Please refer to FIG. 4 , which is a schematic flowchart of another dictation detection method disclosed in an embodiment of the present invention. As shown in FIG. 4 , the dictation detection method may include the following steps.

401、电子设备通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。401. The electronic device acquires, through a camera device on the electronic device, a target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop.

其中,电子设备立于桌面上,手写本水平放置于所述桌面上,手写本为音乐曲谱。Wherein, the electronic device stands on the desktop, the handwriting book is placed horizontally on the table top, and the handwriting book is a music score.

402、电子设备判断目标角度是否大于预设角度;如果是,执行步骤403-步骤411;如果否,结束本流程。402. The electronic device determines whether the target angle is greater than the preset angle; if so, perform steps 403 to 411; if not, end the process.

403、电子设备输出第一语音提示信息,该第一语音提示信息用于提示用户调整手写本的摆放位置,以使目标角度被调整至小于或等于预设角度;其中,当目标角度被调整至小于或等于预设角度时,手写本上的书写内容被摄像设备完整拍摄到。403. The electronic device outputs first voice prompt information, and the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so that the target angle is adjusted to be less than or equal to the preset angle; wherein, when the target angle is adjusted When the angle is less than or equal to the preset angle, the writing content on the handwritten notebook is completely captured by the camera device.

404、电子设备通过摄像设备拍摄用户在音乐曲谱上的书写图像。404. The electronic device captures an image of the user's writing on the music score by using a camera device.

本发明实施例中,音乐曲谱可以是数字简谱,用音符1、2、3、4、5、6、7代表音阶中的7个基本音级,读音为do、re、mi、fa、sol、la、si,休止以0表示。电子设备通过摄像设备拍摄到的用户在音乐曲谱上的书写图像,可以是包括音符1、2、3、4、5、6、7中的一个或多个,且可重复。当电子设备播放的语音对应一个音符时,书写图像中的音符可为一个;当电子设备播放的语音对应多个音符或一首短曲时,书写图像中的音符可为多个。In the embodiment of the present invention, the musical score can be a digital notation, and the notes 1, 2, 3, 4, 5, 6, and 7 are used to represent the 7 basic sound levels in the scale, and the pronunciations are do, re, mi, fa, sol, la, si, and rest are represented by 0. The image of the user's writing on the music score captured by the electronic device through the camera device may include one or more of the notes 1, 2, 3, 4, 5, 6, and 7, and can be repeated. When the voice played by the electronic device corresponds to one note, there may be one note in the written image; when the voice played by the electronic device corresponds to multiple notes or a short piece, there may be multiple notes in the written image.

405、电子设备从书写图像识别出用户在音乐曲谱上的书写内容。405. The electronic device recognizes the user's writing content on the music score from the writing image.

本发明实施例中,电子设备从书写图像识别出用户在音乐曲谱上的书写内容,即识别出用户在音乐曲谱上书写的音符。In the embodiment of the present invention, the electronic device recognizes the content written by the user on the music score from the writing image, that is, recognizes the notes written by the user on the music score.

406、电子设备获取摄像设备记录的用户在音乐曲谱上的书写信息;该书写信息包括书写顺序和书写音符间隔。406. The electronic device acquires the writing information of the user on the music score recorded by the camera device; the writing information includes the writing sequence and the writing note interval.

407、电子设备根据书写信息以及听写内容所包括的音符数对书写内容进行分割,获得若干个音符。407. The electronic device divides the written content according to the written information and the number of notes included in the dictation content to obtain several notes.

本发明实施例中,电子设备可以根据音符的书写顺序、书写音符间隔以及听写内容所包括的音符数对书写内容包括的音符进行分割,获得若干个音符,使得听写内容中的音符与书写内容的音符一一对应,避免在检测时将不对应的音符混淆,降低检测时的出错率。In this embodiment of the present invention, the electronic device may segment the notes included in the written content according to the writing order of the notes, the interval between the written notes and the number of notes included in the dictation content, and obtain several notes, so that the notes in the dictation content and the written content are different from each other. The notes are in one-to-one correspondence to avoid confusing the uncorresponding notes during detection and reduce the error rate during detection.

408、电子设备根据听写内容中的音符对若干个音符进行检测,获得听写检测结果。408. The electronic device detects several notes according to the notes in the dictation content to obtain a dictation detection result.

本发明实施例中,电子设备根据分割后的每一音符的对应关系,利用听写内容中的每一音符检测书写内容包括的音符分割后的每一音符,获得听写检测结构,可以提高听写检测的准确度。In the embodiment of the present invention, the electronic device uses each note in the dictation content to detect each note after the division of the notes included in the written content according to the corresponding relationship of each note after division, and obtains the dictation detection structure, which can improve the accuracy of dictation detection. Accuracy.

可见,实施上述方法,能够在听写内容为乐曲时,对用户在音乐曲谱上的书写内容包括的音符进行检测,以及根据听写内容和书写内容中每一音符的对应关系进行检测,提升听写检测的准确度。It can be seen that by implementing the above method, when the dictation content is a music piece, the notes included in the user's writing content on the music score can be detected, and the corresponding relationship between the dictation content and each note in the writing content can be detected, improving the dictation detection efficiency. Accuracy.

409、电子设备输出听写检测结果。409. The electronic device outputs the dictation detection result.

410、电子设备在电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;该第三语音提示信息用于提示用户在模拟音乐键盘弹奏听写内容。410. The electronic device outputs and displays the simulated musical keyboard on the display screen of the electronic device, and outputs third voice prompt information; the third voice prompt information is used to prompt the user to play the dictation content on the simulated musical keyboard.

411、电子设备检测用户在模拟音乐键盘上点击的目标音符,并输出目标音符对应的音效。411. The electronic device detects a target note clicked by the user on the simulated musical keyboard, and outputs a sound effect corresponding to the target note.

本发明实施例中,实施上述方法,在显示屏输出显示模拟音乐键盘,让用户弹奏听写内容,并输出用户弹奏的音效,能够对听写的乐曲进行巩固训练,也便于用户检验自身的音乐水平。In the embodiment of the present invention, the above method is implemented, the simulated music keyboard is output and displayed on the display screen, the user is allowed to play the dictation content, and the sound effect played by the user is output, so that the dictation music can be consolidated and trained, and it is also convenient for the user to check his own music. Level.

作为一种可选的实施方式,电子设备在输出听写检测结果之后,当听写检测结果指示某一音符出错时,选取书写内容中包括该音符的一段乐曲对应的目标音符组,以及提取听写内容中该目标音符组对应的正确音符组;播放目标音符组和正确音符组对应的音效。实施该实施方式,能够让用户根据错误音符的音效以及正确音符的音效进行对比,进一步检验自身的音乐水平。As an optional embodiment, after outputting the dictation detection result, when the dictation detection result indicates that a certain note is wrong, the electronic device selects a target note group corresponding to a piece of music that includes the note in the written content, and extracts the target note group from the dictation content. The correct note group corresponding to the target note group; play the sound effects corresponding to the target note group and the correct note group. Implementing this embodiment allows the user to compare the sound effects of the wrong notes and the sound effects of the correct notes to further test his own music level.

可见,实施图4所描述的听写检测方法,有利于拍摄到完整的书写内容,提升听写检测的效果。此外,能够在听写内容为乐曲时,对用户在音乐曲谱上的书写内容包括的音符进行检测,以及根据听写内容和书写内容中每一音符的对应关系进行检测,提升听写检测的准确度,也能够在显示屏输出显示模拟音乐键盘,让用户弹奏听写内容,并输出用户弹奏的音效,对听写的乐曲进行巩固训练,便于用户检验自身的音乐水平。It can be seen that the implementation of the dictation detection method described in FIG. 4 is conducive to photographing the complete writing content and improves the effect of dictation detection. In addition, when the dictation content is a music piece, the notes included in the user's writing content on the music score can be detected, and the detection can be performed according to the correspondence between the dictation content and each note in the writing content, so as to improve the accuracy of the dictation detection, and also improve the accuracy of the dictation detection. It can output and display the simulated music keyboard on the display screen, let the user play the dictation content, and output the sound effect played by the user, and consolidate and train the dictation music, which is convenient for the user to test his own music level.

实施例四Embodiment 4

请参阅图5,图5是本发明实施例公开的一种电子设备的结构示意图。如图5所示,该电子设备可以包括:Please refer to FIG. 5 , which is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention. As shown in Figure 5, the electronic device may include:

角度获取单元501,用于通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。The angle obtaining unit 501 is configured to obtain the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop through the camera device on the electronic device.

其中,电子设备立于桌面上,手写本水平放置于桌面上。Wherein, the electronic device stands on the desktop, and the handwriting is placed horizontally on the desktop.

本发明实施例中,电子设备可以是家教机、学习机、学习平板等,本发明实施例不作限定。电子设备上的摄像设备可以与反光镜组合,使摄像设备可以拍摄到不同方向的视野,进而可以拍摄到手写本的顶部边缘与电子设备接触桌面的底部边缘之间。电子设备在接收到用户通过语音方式或触屏方式触发的听写检测指令后,进入听写检测模式,开启摄像设备,角度获取单元501通过摄像设备实时监测手写本的顶部边缘与电子设备接触桌面的底部边缘之间,获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。In the embodiment of the present invention, the electronic device may be a tutoring machine, a learning machine, a learning tablet, etc., which is not limited in the embodiment of the present invention. The camera device on the electronic device can be combined with a reflector, so that the camera device can capture the field of view in different directions, and thus can capture between the top edge of the handwriting notebook and the bottom edge of the electronic device touching the desktop. After receiving the dictation detection instruction triggered by the user through voice or touch screen, the electronic device enters the dictation detection mode, turns on the camera device, and the angle acquisition unit 501 monitors the bottom edge of the handwritten notebook in real time through the camera device to contact the bottom of the desktop with the electronic device. Between edges, obtains the target angle formed between the top edge of the tablet and the bottom edge of the electronic device touching the desktop.

作为一种可选的实施方式,角度获取单元501可以获取电子设备立于桌面时的倾斜度以及电子设备上的摄像设备的拍摄角度,通过摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的初始角度,根据电子设备的倾斜度以及摄像设备的拍摄角度对该初始角度进行校准,获得手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度。实施该实施方式,能够使得获取到的目标角度更加贴合手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的真实角度,提高目标角度的准确性。As an optional implementation manner, the angle obtaining unit 501 can obtain the inclination of the electronic device when it stands on the desktop and the shooting angle of the camera device on the electronic device, and obtain the angle between the top edge of the handwriting and the electronic device touching the desktop through the camera device. The initial angle formed between the bottom edges is calibrated according to the inclination of the electronic device and the shooting angle of the camera device to obtain the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop. Implementing this embodiment can make the acquired target angle more closely fit the real angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop, thereby improving the accuracy of the target angle.

第一判断单元502,用于判断目标角度是否大于预设角度。The first judging unit 502 is used for judging whether the target angle is greater than a preset angle.

具体地,假设预设角度为20°,第一判断单元502判断手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度是否大于20°;如果目标角度大于20°时,执行第一输出单元503;如果目标角度小于或等于20°时,结束本流程。如图2所示,电子设备立于桌面上,手写本水平放置于所述桌面上,图2中201所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度小于预设角度,此时手写本在摄像设备的拍摄范围内,手写本上的书写内容可以被拍摄设备完整拍摄到;图2中202所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度大于预设角度,此时手写本的部分区域不在摄像设备的拍摄范围内,手写本上的书写内容不能被拍摄设备完整拍摄到,因此需要调整手写本的摆放位置。Specifically, assuming that the preset angle is 20°, the first determination unit 502 determines whether the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop is greater than 20°; if the target angle is greater than 20°, execute The first output unit 503; if the target angle is less than or equal to 20°, end the process. As shown in Figure 2, the electronic device is standing on the desktop, and the handwriting book is placed horizontally on the desktop. As shown in 201 in Figure 2, the angle between the top edge of the handwriting book and the bottom edge of the electronic device touching the desktop is smaller than the preset At this time, the handwritten notebook is within the shooting range of the camera device, and the writing content on the handwritten notebook can be completely captured by the shooting device; as shown by 202 in Figure 2, between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop The angle is greater than the preset angle. At this time, part of the handwritten notebook is not within the shooting range of the camera equipment, and the writing content on the handwritten notebook cannot be completely captured by the shooting device. Therefore, it is necessary to adjust the placement of the handwritten notebook.

作为一种可选的实施方式,第一判断单元502可以通过拍摄设备获取手写本的尺寸,根据手写本的尺寸确定预设角度,在通过拍摄设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度之后,判断目标角度是否大于预设角度。实施该实施方式,能够根据手写本的不同尺寸调整预设角度,从而使得手写本的位置调整更加准确。As an optional implementation manner, the first judgment unit 502 can obtain the size of the handwritten book through the photographing device, determine a preset angle according to the size of the handwriting book, and obtain the top edge of the handwritten book through the photographing device and the electronic device touching the desktop. After the target angle formed between the bottom edges, it is determined whether the target angle is greater than the preset angle. By implementing this embodiment, the preset angle can be adjusted according to different sizes of the handwritten book, thereby making the position adjustment of the handwritten book more accurate.

第一输出单元503,用于在第一判断单元502的判断结果为是时,输出第一语音提示信息,该第一语音提示信息用于提示用户调整手写本的摆放位置,以使目标角度被调整至小于或等于预设角度;其中,当目标角度被调整至小于或等于预设角度时,手写本上的书写内容被摄像设备完整拍摄到。The first output unit 503 is used to output first voice prompt information when the judgment result of the first judgment unit 502 is yes, and the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book so that the target angle is adjusted to be less than or equal to the preset angle; wherein, when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwritten notebook is completely captured by the camera device.

可见,实施图5所描述的电子设备,通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度,如果该目标角度小于或等于预设角度,此时不会因手写本的位置影响拍摄效果;如果该目标角度大于预设角度,此时由于手写本的位置偏差较大会影响拍摄效果,所以输出语音提示信息,用来提示用户调整手写本的摆放位置,使得目标角度被调整至小于或等于预设角度,让手写本摆放在摄像设备的拍摄范围内,有利于拍摄到完整的书写内容,提升听写检测的效果。As can be seen, the electronic equipment described in Fig. 5 is implemented, and the target angle formed between the top edge of the handwritten book and the bottom edge of the electronic equipment contacting the desktop is obtained by the camera device on the electronic equipment, if the target angle is less than or equal to the preset angle, At this time, the shooting effect will not be affected by the position of the handwriting; if the target angle is greater than the preset angle, the shooting effect will be affected due to the large position deviation of the handwriting, so a voice prompt is output to prompt the user to adjust the handwriting. The placement position allows the target angle to be adjusted to be less than or equal to the preset angle, so that the handwritten notebook is placed within the shooting range of the camera equipment, which is conducive to shooting the complete writing content and improves the effect of dictation detection.

实施例五Embodiment 5

请参阅图6,图6是本发明实施例公开的另一种电子设备的结构示意图。如图6所示,其中,图6所示的电子设备是由图5所示的电子设备进行优化得到的。与图5所示的电子设备相比较,图6所示的电子设备还可以包括:Please refer to FIG. 6 , which is a schematic structural diagram of another electronic device disclosed in an embodiment of the present invention. As shown in FIG. 6 , the electronic device shown in FIG. 6 is obtained by optimizing the electronic device shown in FIG. 5 . Compared with the electronic device shown in FIG. 5 , the electronic device shown in FIG. 6 may further include:

距离获取单元504,用于在第一判断单元502的判断结果为否时,通过摄像设备获取手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离;The distance obtaining unit 504 is used to obtain the target distance between the center of the top edge of the handwritten book and the center of the bottom edge of the electronic device contacting the desktop by the camera device when the judgment result of the first judgment unit 502 is no;

第二判断单元505,用于判断目标距离是否大于指定距离;其中,指定距离由目标角度、预设角度以及预设距离计算得到。The second judging unit 505 is configured to judge whether the target distance is greater than the specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance.

本发明实施例中,预设距离A为当手写本的顶部边缘与电子设备接触桌面的底部边缘贴合时,手写本的底部边缘与摄像设备的拍摄范围边缘之间的距离,假设目标角度为B,预设角度为C,那么指定距离D=A/cos(C-B)。In the embodiment of the present invention, the preset distance A is the distance between the bottom edge of the handwritten notebook and the edge of the shooting range of the camera device when the top edge of the handwritten notebook is attached to the bottom edge of the electronic device in contact with the desktop. It is assumed that the target angle is B, the preset angle is C, then the specified distance D=A/cos(C-B).

具体地,假设指定距离为3厘米,第二判断单元505判断手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离是否大于3厘米,如果目标距离大于3厘米,执行第二输出单元506;如果目标距离小于或等于3厘米,结束本流程。如图2中203所示,手写本的顶部边缘与电子设备接触桌面的底部边缘之间的角度小于预设角度,但是手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的距离较远,且大于指定距离,此时手写本的部分区域不在摄像设备的拍摄范围内,手写本上的书写内容不能被拍摄设备完整拍摄到,因此需要调整手写本的摆放位置。Specifically, assuming that the specified distance is 3 centimeters, the second judgment unit 505 judges whether the target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop is greater than 3 centimeters, and if the target distance is greater than 3 centimeters, Execute the second output unit 506; if the target distance is less than or equal to 3 cm, the process ends. As shown at 203 in FIG. 2, the angle between the top edge of the handwriting notebook and the bottom edge of the electronic device touching the desktop is smaller than the preset angle, but the angle between the center of the top edge of the handwriting notebook and the center of the bottom edge of the electronic device touching the desktop The distance of the handwritten book is far and larger than the specified distance. At this time, part of the handwritten notebook is not within the shooting range of the camera equipment, and the writing content on the handwritten notebook cannot be completely captured by the shooting device. Therefore, it is necessary to adjust the placement of the handwritten notebook.

作为一种可选的实施方式,第二判断单元505可以通过拍摄设备获取手写本的尺寸,根据手写本的尺寸确定预设距离,根据预设距离、目标角度以及预设角度计算出指定距离;在通过摄像设备获取手写本的顶部边缘的中心与电子设备接触桌面的底部边缘的中心之间的目标距离之后,判断目标距离是否大于指定距离。实施该实施方式,能够根据手写本的不同尺寸调整预设距离,从而使得手写本的位置调整更加准确。As an optional implementation manner, the second judgment unit 505 can obtain the size of the handwritten book through the photographing device, determine the preset distance according to the size of the handwritten book, and calculate the specified distance according to the preset distance, the target angle and the preset angle; After acquiring the target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop through the camera device, it is determined whether the target distance is greater than the specified distance. By implementing this embodiment, the preset distance can be adjusted according to different sizes of the handwritten book, thereby making the position adjustment of the handwritten book more accurate.

第二输出单元506,用于在第二判断单元505的判断结果为是时,输出第二语音提示信息,该第二语音提示信息用于提示用户调整手写本的摆放位置,以使目标距离被调整至小于或等于指定距离;其中,当目标距离被调整至小于或等于指定距离时,手写本上的书写内容被摄像设备完整拍摄到。The second output unit 506 is configured to output second voice prompt information when the judgment result of the second judgment unit 505 is yes, and the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten book so that the target distance is adjusted to be less than or equal to the specified distance; wherein, when the target distance is adjusted to be less than or equal to the specified distance, the writing content on the handwritten book is completely captured by the camera device.

度数显示单元507,用于在角度获取单元501通过电子设备上的摄像设备获取手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的目标角度之后,以及第一判断单元502判断目标角度是否大于预设角度之前,在电子设备的显示屏显示目标角度的度数;The degree display unit 507 is used for after the angle obtaining unit 501 obtains the target angle formed between the top edge of the handwritten book and the bottom edge of the electronic device contacting the desktop through the camera device on the electronic device, and the first judgment unit 502 judges the target angle. Whether the degree of the target angle is displayed on the display screen of the electronic device before it is greater than the preset angle;

第一输出单元503,还用于在第一判断单元502的判断结果为是时,将在显示屏显示的目标角度的度数的颜色调整为指定色,并输出第一语音提示信息。The first output unit 503 is further configured to adjust the color of the degree of the target angle displayed on the display screen to a specified color when the judgment result of the first judgment unit 502 is yes, and output the first voice prompt information.

具体地,指定色可以是红色,第一输出单元503将在显示屏显示的目标角度的度数的颜色调整为红色,用于警示用户手写本的顶部边缘与电子设备接触桌面的底部边缘之间形成的角度过大,使用户及时进行调整。Specifically, the specified color can be red, and the first output unit 503 adjusts the color of the degree of the target angle displayed on the display screen to red, which is used to warn the user that the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop form a The angle is too large, so that the user can adjust it in time.

图像拍摄单元508,用于在第一输出单元503输出第一语音提示信息之后,通过摄像设备拍摄用户在音乐曲谱上的书写图像。The image capturing unit 508 is configured to capture an image of the user's writing on the music score by using a camera device after the first output unit 503 outputs the first voice prompt information.

本发明实施例中,音乐曲谱可以是数字简谱,用音符1、2、3、4、5、6、7代表音阶中的7个基本音级,读音为do、re、mi、fa、sol、la、si,休止以0表示。图像拍摄单元508通过摄像设备拍摄到的用户在音乐曲谱上的书写图像,可以是包括音符1、2、3、4、5、6、7中的一个或多个,且可重复。当电子设备播放的语音对应一个音符时,书写图像中的音符可为一个;当电子设备播放的语音对应多个音符或一首短曲时,书写图像中的音符可为多个。In the embodiment of the present invention, the musical score can be a digital notation, and the notes 1, 2, 3, 4, 5, 6, and 7 are used to represent the 7 basic sound levels in the scale, and the pronunciations are do, re, mi, fa, sol, la, si, and rest are represented by 0. The image of the user's writing on the music score captured by the image capturing unit 508 through the camera device may include one or more of notes 1, 2, 3, 4, 5, 6, and 7, and may be repeated. When the voice played by the electronic device corresponds to one note, there may be one note in the written image; when the voice played by the electronic device corresponds to multiple notes or a short piece, there may be multiple notes in the written image.

内容识别单元509,用于从书写图像识别出用户在音乐曲谱上的书写内容。The content recognition unit 509 is configured to recognize the user's writing content on the music score from the writing image.

本发明实施例中,内容识别单元509从书写图像识别出用户在音乐曲谱上的书写内容,即识别出用户在音乐曲谱上书写的音符。In this embodiment of the present invention, the content recognition unit 509 recognizes the content written by the user on the music score from the writing image, that is, recognizes the notes written by the user on the music score.

听写检测单元510,用于根据电子设备播放的听写内容检测书写内容,获得听写检测结果;其中,听写内容为若干个音符;The dictation detection unit 510 is used to detect the written content according to the dictation content played by the electronic device, and obtain the dictation detection result; wherein, the dictation content is several musical notes;

结果输出单元511,用于输出听写检测结果。The result output unit 511 is used for outputting the dictation detection result.

听写检测单元510根据电子设备播放的听写内容检测书写内容,获得听写检测结果的方式具体为:The dictation detection unit 510 detects the written content according to the dictation content played by the electronic device, and the manner of obtaining the dictation detection result is specifically:

获取摄像设备记录的用户在音乐曲谱上的书写信息;书写信息包括书写顺序和书写音符间隔;以及根据书写信息以及听写内容所包括的音符数对书写内容进行分割,获得若干个音符;以及根据听写内容中的音符对若干个音符进行检测,获得听写检测结果。Obtain the writing information of the user on the music score recorded by the camera device; the writing information includes the writing sequence and the interval of writing notes; and divide the writing content according to the writing information and the number of notes included in the dictation content to obtain several notes; and according to the dictation The notes in the content are detected for several notes to obtain dictation detection results.

本发明实施例中,听写检测单元510可以根据音符的书写顺序、书写音符间隔以及听写内容所包括的音符数对书写内容包括的音符进行分割,获得若干个音符,使得听写内容中的音符与书写内容的音符一一对应,避免在检测时将不对应的音符混淆,降低检测时的出错率。In the embodiment of the present invention, the dictation detection unit 510 may segment the notes included in the written content according to the writing order of the notes, the interval of the written notes, and the number of notes included in the dictation content, and obtain several notes, so that the notes in the dictation content and the written The notes of the content are in one-to-one correspondence, so as to avoid confusing the uncorresponding notes during detection and reduce the error rate during detection.

本发明实施例中,听写检测单元510根据分割后的每一音符的对应关系,利用听写内容中的每一音符检测书写内容包括的音符分割后的每一音符,获得听写检测结构,可以提高听写检测的准确度。In the embodiment of the present invention, the dictation detection unit 510 uses each note in the dictation content to detect each note after the division of the notes included in the written content according to the corresponding relationship of each divided note, and obtains a dictation detection structure, which can improve the dictation. detection accuracy.

可见,执行上述单元,能够在听写内容为乐曲时,对用户在音乐曲谱上的书写内容包括的音符进行检测,以及根据听写内容和书写内容中每一音符的对应关系进行检测,提升听写检测的准确度。It can be seen that by executing the above unit, when the dictation content is a music piece, the notes included in the user's writing content on the music score can be detected, and the corresponding relationship between the dictation content and each note in the writing content can be detected, improving the dictation detection. Accuracy.

输出显示单元512,用于在结果输出单元输出听写检测结果之后,在电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;该第三语音提示信息用于提示用户在模拟音乐键盘弹奏听写内容;The output display unit 512 is used to output and display the simulated music keyboard on the display screen of the electronic device after the result output unit outputs the dictation detection result, and output the third voice prompt information; the third voice prompt information is used to prompt the user to simulate the music keyboard playing dictation content;

检测输出单元513,用于检测用户在模拟音乐键盘上点击的目标音符,并输出目标音符对应的音效。The detection and output unit 513 is configured to detect the target note clicked by the user on the simulated musical keyboard, and output the sound effect corresponding to the target note.

本发明实施例中,执行上述单元,在显示屏输出显示模拟音乐键盘,让用户弹奏听写内容,并输出用户弹奏的音效,能够对听写的乐曲进行巩固训练,也便于用户检验自身的音乐水平。In the embodiment of the present invention, executing the above unit, outputting and displaying a simulated musical keyboard on the display screen, allowing the user to play the dictation content, and outputting the sound effect played by the user, can consolidate and train the dictation music, and is also convenient for the user to check his own music. Level.

作为一种可选的实施方式,检测输出单元513在输出听写检测结果之后,当听写检测结果指示某一音符出错时,选取书写内容中包括该音符的一段乐曲对应的目标音符组,以及提取听写内容中该目标音符组对应的正确音符组;播放目标音符组和正确音符组对应的音效。实施该实施方式,能够让用户根据错误音符的音效以及正确音符的音效进行对比,进一步检验自身的音乐水平。As an optional embodiment, after outputting the dictation detection result, when the dictation detection result indicates that a certain note is wrong, the detection output unit 513 selects a target note group corresponding to a piece of music including the note in the written content, and extracts the dictation The correct note group corresponding to the target note group in the content; play the sound effects corresponding to the target note group and the correct note group. Implementing this embodiment allows the user to compare the sound effects of the wrong notes and the sound effects of the correct notes to further test his own music level.

可见,实施图6所描述的电子设备,通过在手写本不在摄像设备的拍摄范围内时,提示用户调整手写本的摆放位置,让手写本摆放在摄像设备的拍摄范围内,有利于拍摄到完整的书写内容,提升听写检测的效果。此外,能够在听写内容为乐曲时,对用户在音乐曲谱上的书写内容包括的音符进行检测,以及根据听写内容和书写内容中每一音符的对应关系进行检测,提升听写检测的准确度,也能够在显示屏输出显示模拟音乐键盘,让用户弹奏听写内容,并输出用户弹奏的音效,对听写的乐曲进行巩固训练,便于用户检验自身的音乐水平。It can be seen that, by implementing the electronic device described in FIG. 6, when the handwritten book is not within the shooting range of the camera equipment, the user is prompted to adjust the placement position of the handwritten book, so that the handwritten book is placed within the shooting range of the camera equipment, which is conducive to shooting To complete written content, improve the effect of dictation detection. In addition, when the dictation content is a music piece, the notes included in the user's writing content on the music score can be detected, and the detection can be performed according to the correspondence between the dictation content and each note in the writing content, so as to improve the accuracy of the dictation detection, and also improve the accuracy of the dictation detection. It can output and display the simulated music keyboard on the display screen, let the user play the dictation content, and output the sound effect played by the user, and consolidate and train the dictation music, which is convenient for the user to test his own music level.

实施例六Embodiment 6

请参阅图7,图7是本发明实施例公开的另一种电子设备的结构示意图。如图7所示,该电子设备可以包括:Please refer to FIG. 7 , which is a schematic structural diagram of another electronic device disclosed in an embodiment of the present invention. As shown in Figure 7, the electronic device may include:

存储有可执行程序代码的存储器701;a memory 701 storing executable program code;

与存储器701耦合的处理器702;a processor 702 coupled to the memory 701;

其中,处理器702调用存储器701中存储的可执行程序代码,执行图1、图3或图4任意一种听写检测方法。The processor 702 invokes the executable program code stored in the memory 701 to execute any one of the dictation detection methods in FIG. 1 , FIG. 3 or FIG. 4 .

本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1、图3或图4任意一种听写检测方法。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program causes a computer to execute any one of the dictation detection methods in FIG. 1 , FIG. 3 or FIG. 4 .

本发明实施例还公开一种计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。The embodiment of the present invention also discloses a computer program product, wherein when the computer program product runs on the computer, the computer is caused to execute some or all of the steps of the methods in the above method embodiments.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

以上对本发明实施例公开的一种听写检测方法及电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A dictation detection method and an electronic device disclosed in the embodiments of the present invention are described above in detail. The principles and implementations of the present invention are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as Limitations of the present invention.

Claims (12)

1.一种听写检测方法,其特征在于,电子设备立于桌面上,手写本水平放置于所述桌面上,所述方法包括:1. a dictation detection method, is characterized in that, electronic equipment stands on the desktop, and handwriting is placed horizontally on the described desktop, and the method comprises: 通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度;Acquire the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop through the camera device on the electronic device; 判断所述目标角度是否大于预设角度;judging whether the target angle is greater than a preset angle; 如果是,输出第一语音提示信息,所述第一语音提示信息用于提示用户调整所述手写本的摆放位置,以使所述目标角度被调整至小于或等于所述预设角度;其中,当所述目标角度被调整至小于或等于所述预设角度时,所述手写本上的书写内容被所述摄像设备完整拍摄到。If yes, output first voice prompt information, the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook, so that the target angle is adjusted to be less than or equal to the preset angle; wherein , when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwriting notebook is completely captured by the camera device. 2.根据权利要求1所述的方法,其特征在于,在判断出所述目标角度小于或等于预设角度之后,所述方法还包括:2. The method according to claim 1, wherein after judging that the target angle is less than or equal to a preset angle, the method further comprises: 通过所述摄像设备获取所述手写本的顶部边缘的中心与所述电子设备接触所述桌面的底部边缘的中心之间的目标距离;Acquiring, by the camera device, a target distance between the center of the top edge of the handwritten notebook and the center of the bottom edge of the electronic device touching the desktop; 判断所述目标距离是否大于指定距离;其中,所述指定距离由所述目标角度、所述预设角度以及预设距离计算得到;Determine whether the target distance is greater than a specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance; 如果是,输出第二语音提示信息,所述第二语音提示信息用于提示所述用户调整所述手写本的摆放位置,以使所述目标距离被调整至小于或等于所述指定距离;其中,当所述目标距离被调整至小于或等于所述指定距离时,所述手写本上的书写内容被所述摄像设备完整拍摄到。If yes, output second voice prompt information, the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook, so that the target distance is adjusted to be less than or equal to the specified distance; Wherein, when the target distance is adjusted to be less than or equal to the specified distance, the writing content on the handwritten notebook is completely captured by the camera device. 3.根据权利要求2所述的方法,其特征在于,所述通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度之后,以及所述判断所述目标角度是否大于预设角度之前,所述方法还包括:3 . The method according to claim 2 , wherein the image obtained between the top edge of the handwritten book obtained by the camera device on the electronic device and the bottom edge of the electronic device contacting the desktop is formed. 4 . After the target angle, and before the judging whether the target angle is greater than the preset angle, the method further includes: 在所述电子设备的显示屏显示所述目标角度的度数;Display the degree of the target angle on the display screen of the electronic device; 以及,当判断出所述目标角度大于预设角度时,将在所述显示屏显示的所述目标角度的度数的颜色调整为指定色,并执行所述的输出第一语音提示信息的步骤。And, when it is determined that the target angle is greater than the preset angle, the color of the degree of the target angle displayed on the display screen is adjusted to a specified color, and the step of outputting the first voice prompt information is performed. 4.根据权利要求1所述的方法,其特征在于,所述手写本为音乐曲谱;所述输出第一语音提示信息之后,所述方法还包括:4. method according to claim 1, is characterized in that, described handwritten book is music score; After described outputting first voice prompt information, described method also comprises: 通过所述摄像设备拍摄所述用户在所述音乐曲谱上的书写图像;Photograph the image of the user's writing on the music score by using the camera device; 从所述书写图像识别出所述用户在所述音乐曲谱上的书写内容;Identifying the user's writing on the music score from the writing image; 根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果;其中,所述听写内容为若干个音符;Detect the written content according to the dictation content played by the electronic device, and obtain a dictation detection result; wherein the dictation content is a number of musical notes; 输出所述听写检测结果。The dictation detection result is output. 5.根据权利要求4所述的方法,其特征在于,所述根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果,包括:5. The method according to claim 4, wherein the detecting the written content according to the dictation content played by the electronic device, and obtaining the dictation detection result, comprises: 获取所述摄像设备记录的所述用户在所述音乐曲谱上的书写信息;所述书写信息包括书写顺序和书写音符间隔;Acquiring the writing information of the user on the music score recorded by the camera device; the writing information includes writing order and writing note interval; 根据所述书写信息以及所述听写内容所包括的音符数对所述书写内容进行分割,获得若干个音符;Divide the written content according to the written information and the number of notes included in the dictation content to obtain several notes; 根据所述听写内容中的音符对所述若干个音符进行检测,获得听写检测结果。The several notes are detected according to the notes in the dictation content to obtain a dictation detection result. 6.根据权利要求5所述的方法,其特征在于,所述输出所述听写检测结果之后,所述方法还包括:6. The method according to claim 5, wherein after the outputting the dictation detection result, the method further comprises: 在所述电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;所述第三语音提示信息用于提示所述用户在所述模拟音乐键盘弹奏所述听写内容;Output and display the simulated musical keyboard on the display screen of the electronic device, and output third voice prompt information; the third voice prompt information is used to prompt the user to play the dictation content on the simulated musical keyboard; 检测所述用户在所述模拟音乐键盘上点击的目标音符,并输出所述目标音符对应的音效。A target note clicked by the user on the simulated musical keyboard is detected, and a sound effect corresponding to the target note is output. 7.一种电子设备,其特征在于,所述电子设备立于桌面上,手写本水平放置于所述桌面上,所述电子设备包括:7. An electronic device, characterized in that the electronic device stands on a desktop, and a handwriting book is placed horizontally on the desktop, and the electronic device comprises: 角度获取单元,用于通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度;an angle obtaining unit, configured to obtain the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device contacting the desktop through the camera device on the electronic device; 第一判断单元,用于判断所述目标角度是否大于预设角度;a first judging unit for judging whether the target angle is greater than a preset angle; 第一输出单元,用于在所述第一判断单元的判断结果为是时,输出第一语音提示信息,所述第一语音提示信息用于提示用户调整所述手写本的摆放位置,以使所述目标角度被调整至小于或等于所述预设角度;其中,当所述目标角度被调整至小于或等于所述预设角度时,所述手写本上的书写内容被所述摄像设备完整拍摄到。The first output unit is configured to output first voice prompt information when the judgment result of the first judgment unit is yes, and the first voice prompt information is used to prompt the user to adjust the placement position of the handwritten book, so as to Adjusting the target angle to be less than or equal to the preset angle; wherein, when the target angle is adjusted to be less than or equal to the preset angle, the writing content on the handwritten book is captured by the camera device Completely photographed. 8.根据权利要求7所述的电子设备,其特征在于,所述电子设备还包括:8. The electronic device according to claim 7, wherein the electronic device further comprises: 距离获取单元,用于在所述第一判断单元的判断结果为否时,通过所述摄像设备获取所述手写本的顶部边缘的中心与所述电子设备接触所述桌面的底部边缘的中心之间的目标距离;The distance acquisition unit is configured to acquire, through the camera device, the center of the top edge of the handwritten notebook and the center of the bottom edge of the desktop contacting the electronic device when the determination result of the first determination unit is no. target distance between 第二判断单元,用于判断所述目标距离是否大于指定距离;其中,所述指定距离由所述目标角度、所述预设角度以及预设距离计算得到;a second judging unit, configured to judge whether the target distance is greater than a specified distance; wherein, the specified distance is calculated from the target angle, the preset angle and the preset distance; 第二输出单元,用于在所述第二判断单元的判断结果为是时,输出第二语音提示信息,所述第二语音提示信息用于提示所述用户调整所述手写本的摆放位置,以使所述目标距离被调整至小于或等于所述指定距离;其中,当所述目标距离被调整至小于或等于所述指定距离时,所述手写本上的书写内容被所述摄像设备完整拍摄到。a second output unit, configured to output second voice prompt information when the judgment result of the second judgment unit is yes, where the second voice prompt information is used to prompt the user to adjust the placement position of the handwritten notebook , so that the target distance is adjusted to be less than or equal to the specified distance; wherein, when the target distance is adjusted to be less than or equal to the specified distance, the writing content on the handwritten book is captured by the camera device Completely photographed. 9.根据权利要求8所述的电子设备,其特征在于,所述电子设备还包括:9. The electronic device according to claim 8, wherein the electronic device further comprises: 度数显示单元,用于在所述角度获取单元通过所述电子设备上的摄像设备获取所述手写本的顶部边缘与所述电子设备接触所述桌面的底部边缘之间形成的目标角度之后,以及所述第一判断单元判断所述目标角度是否大于预设角度之前,在所述电子设备的显示屏显示所述目标角度的度数;A degree display unit for, after the angle acquisition unit acquires the target angle formed between the top edge of the handwritten notebook and the bottom edge of the electronic device touching the desktop through the camera device on the electronic device, and Before the first judging unit judges whether the target angle is greater than a preset angle, the display screen of the electronic device displays the degree of the target angle; 第一输出单元,还用于在所述第一判断单元的判断结果为是时,将在所述显示屏显示的所述目标角度的度数的颜色调整为指定色,并输出第一语音提示信息。The first output unit is further configured to adjust the color of the degree of the target angle displayed on the display screen to a specified color when the judgment result of the first judgment unit is yes, and output the first voice prompt information . 10.根据权利要求7所述的电子设备,其特征在于,所述手写本为音乐曲谱;所述电子设备还包括:10. The electronic device according to claim 7, wherein the handwritten book is a music score; the electronic device further comprises: 图像拍摄单元,用于在所述第一输出单元输出第一语音提示信息之后,通过所述摄像设备拍摄所述用户在所述音乐曲谱上的书写图像;an image capturing unit, configured to capture an image of the user's writing on the music score by using the camera device after the first output unit outputs the first voice prompt information; 内容识别单元,用于从所述书写图像识别出所述用户在所述音乐曲谱上的书写内容;a content recognition unit for recognizing the user's writing content on the music score from the writing image; 听写检测单元,用于根据所述电子设备播放的听写内容检测所述书写内容,获得听写检测结果;其中,所述听写内容为若干个音符;a dictation detection unit, configured to detect the written content according to the dictation content played by the electronic device, and obtain a dictation detection result; wherein the dictation content is a number of musical notes; 结果输出单元,用于输出所述听写检测结果。A result output unit, configured to output the dictation detection result. 11.根据权利要求10所述的电子设备,其特征在于,所述听写检测单元包括:11. The electronic device according to claim 10, wherein the dictation detection unit comprises: 获取子单元,用于获取所述摄像设备记录的所述用户在所述音乐曲谱上的书写信息;所述书写信息包括书写顺序和书写音符间隔;an acquisition subunit, used for acquiring the writing information of the user on the music score recorded by the camera device; the writing information includes writing order and writing note interval; 分割子单元,用于根据所述书写信息以及所述听写内容所包括的音符数对所述书写内容进行分割,获得若干个音符;A dividing subunit, for dividing the writing content according to the writing information and the number of notes included in the dictation content to obtain several notes; 检测子单元,用于根据所述听写内容中的音符对所述若干个音符进行检测,获得听写检测结果。A detection subunit, configured to detect the several notes according to the notes in the dictation content to obtain a dictation detection result. 12.根据权利要求11所述的电子设备,其特征在于,所述电子设备还包括:12. The electronic device according to claim 11, wherein the electronic device further comprises: 输出显示单元,用于在所述结果输出单元输出所述听写检测结果之后,在所述电子设备的显示屏输出显示模拟音乐键盘,并输出第三语音提示信息;所述第三语音提示信息用于提示所述用户在所述模拟音乐键盘弹奏所述听写内容;The output display unit is used for outputting and displaying the simulated music keyboard on the display screen of the electronic device after the result output unit outputs the dictation detection result, and outputting third voice prompt information; the third voice prompt information uses for prompting the user to play the dictation content on the simulated musical keyboard; 检测输出单元,用于检测所述用户在所述模拟音乐键盘上点击的目标音符,并输出所述目标音符对应的音效。A detection and output unit, configured to detect the target note clicked by the user on the simulated musical keyboard, and output the sound effect corresponding to the target note.
CN201910387341.1A 2019-05-10 2019-05-10 Dictation detection method and electronic device Active CN111914821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910387341.1A CN111914821B (en) 2019-05-10 2019-05-10 Dictation detection method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910387341.1A CN111914821B (en) 2019-05-10 2019-05-10 Dictation detection method and electronic device

Publications (2)

Publication Number Publication Date
CN111914821A true CN111914821A (en) 2020-11-10
CN111914821B CN111914821B (en) 2024-08-27

Family

ID=73242893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910387341.1A Active CN111914821B (en) 2019-05-10 2019-05-10 Dictation detection method and electronic device

Country Status (1)

Country Link
CN (1) CN111914821B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419687A (en) * 2020-11-16 2021-02-26 珠海格力电器股份有限公司 Method capable of correcting placing angle of book on desk and reading equipment
CN116434253A (en) * 2022-01-04 2023-07-14 腾讯科技(深圳)有限公司 Image processing method, device, equipment, storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636057A (en) * 2013-11-08 2015-05-20 联想(北京)有限公司 Information prompt method, device and electronic equipment
US20150177905A1 (en) * 2013-12-20 2015-06-25 Google Technology Holdings LLC Correcting writing data generated by an electronic writing device
CN108197141A (en) * 2017-11-24 2018-06-22 广东小天才科技有限公司 Photographing question searching method and device of mobile terminal, mobile terminal and storage medium
CN109274898A (en) * 2018-08-08 2019-01-25 深圳市智像科技有限公司 File and picture intelligent acquisition methods, devices and systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636057A (en) * 2013-11-08 2015-05-20 联想(北京)有限公司 Information prompt method, device and electronic equipment
US20150177905A1 (en) * 2013-12-20 2015-06-25 Google Technology Holdings LLC Correcting writing data generated by an electronic writing device
CN108197141A (en) * 2017-11-24 2018-06-22 广东小天才科技有限公司 Photographing question searching method and device of mobile terminal, mobile terminal and storage medium
CN109274898A (en) * 2018-08-08 2019-01-25 深圳市智像科技有限公司 File and picture intelligent acquisition methods, devices and systems

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419687A (en) * 2020-11-16 2021-02-26 珠海格力电器股份有限公司 Method capable of correcting placing angle of book on desk and reading equipment
CN112419687B (en) * 2020-11-16 2022-02-22 珠海格力电器股份有限公司 Method capable of correcting placing angle of book on desk and reading equipment
CN116434253A (en) * 2022-01-04 2023-07-14 腾讯科技(深圳)有限公司 Image processing method, device, equipment, storage medium and product
CN116434253B (en) * 2022-01-04 2025-07-11 腾讯科技(深圳)有限公司 Image processing method, device, equipment, storage medium and product

Also Published As

Publication number Publication date
CN111914821B (en) 2024-08-27

Similar Documents

Publication Publication Date Title
CN108665742B (en) Method and device for reading through reading device
CN109960809B (en) A method and electronic device for generating dictation content
CN108665764B (en) Method and device for reading through reading device
CN113674565B (en) Teaching system and method for piano teaching
CN106951881B (en) Three-dimensional scene presenting method, device and system
CN109410984B (en) Reading scoring method and electronic equipment
CN109637286A (en) Spoken language training method based on image recognition and family education equipment
CN113286183A (en) Method, device and equipment for synchronously displaying performance process and music score and storage medium
CN111077996B (en) Information recommendation method and learning device based on click-to-read
CN103745214A (en) Character recognition method and recognition equipment
CN111259863A (en) Method for detecting/displaying playing hand type, medium, piano, terminal and server
CN111079483A (en) Writing standard judgment method and electronic equipment
CN111914821B (en) Dictation detection method and electronic device
CN111079501B (en) A text recognition method and electronic device
CN109086431B (en) Knowledge point consolidation learning method and electronic equipment
CN111091120B (en) A dictation correcting method and electronic device
CN111079737B (en) Text tilt correction method and electronic device
CN111078179B (en) Dictation, newspaper and read progress control method and electronic equipment
CN111078982B (en) Electronic page retrieval method, electronic device and storage medium
CN111031232B (en) Dictation real-time detection method and electronic equipment
CN111639567B (en) Interactive display method of three-dimensional model, electronic equipment and storage medium
CN101923852B (en) Method and system for real-time music score recognition
CN111081088A (en) Dictation word receiving and recording method and electronic equipment
CN111079486A (en) A method and electronic device for enabling dictation detection
CN111753604A (en) A point reading method based on learning equipment and learning equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant