技术领域Technical field
本发明涉及图像处理领域,具体涉及书法测评方法、装置、计算机设备及介质。The invention relates to the field of image processing, and specifically to calligraphy evaluation methods, devices, computer equipment and media.
背景技术Background technique
在规范汉字书写教学的整个过程中,小学低年级的汉字教学是基础所在,但低年级的小朋友们书写出的汉字风格多变,需要老师或者家长对每个学生写过的所有汉字都给出纠正信息并辅助改正很难实现。通常,课堂上要么是老师在黑板上,利用粉笔写出一个汉字,然后让学生记住书写时的笔画顺序,或者是让学生照着专门的笔画顺序练字本进行书写。In the entire process of standardizing the teaching of Chinese character writing, the teaching of Chinese characters in the lower grades of primary schools is the foundation. However, the styles of Chinese characters written by children in the lower grades are variable, and teachers or parents need to provide information on all the Chinese characters written by each student. Correcting information and assisting in correction is difficult to achieve. Usually, in class, either the teacher uses chalk to write a Chinese character on the blackboard, and then asks the students to remember the order of strokes when writing, or the students are asked to practice writing according to the special stroke order in a calligraphy book.
相关技术中,在传统汉字书写教学过程中,老师无法一一查看学生书写过程,很难保证学生能够完全正确书写。同时大部分家长和教师没有受过严格的、系统的规范汉字书写教育,即使最终能实现一对一的辅导,教师和家长也无法对学生书写的汉字给出具体化和规范化的评价信息。In related technologies, during the traditional Chinese character writing teaching process, the teacher cannot check the students' writing process one by one, and it is difficult to ensure that the students can write completely correctly. At the same time, most parents and teachers have not received strict and systematic education in standardized Chinese character writing. Even if one-on-one tutoring is eventually achieved, teachers and parents will not be able to provide specific and standardized evaluation information for students' written Chinese characters.
发明内容Contents of the invention
因此,本发明要解决的技术问题在于克服现有技术中书写教育无法对学生书写的汉字给出具体化和规范化的评价信息的缺陷,从而提供书法测评方法、装置、计算机设备及介质。Therefore, the technical problem to be solved by the present invention is to overcome the shortcomings in the prior art that handwriting education cannot provide concrete and standardized evaluation information for students' written Chinese characters, thereby providing calligraphy evaluation methods, devices, computer equipment and media.
结合第一方面,本发明提供一种书法测评方法,所述方法包括:In conjunction with the first aspect, the present invention provides a calligraphy evaluation method, which method includes:
获取待测书写轨迹;Get the writing trace to be tested;
基于所述待测书写轨迹,绘制得到待测轨迹字图;Based on the writing trajectory to be tested, draw a character map of the trajectory to be tested;
对待测轨迹字图进行文字识别,确定所述待测书写文字及待测书写文字对应的标准书写文字;Perform text recognition on the track character image to be tested, and determine the written text to be tested and the standard written text corresponding to the written text to be tested;
对所述待测书写文字与标准书写文字进行笔画分割,得到所述待测笔画信息及标准笔画信息;Perform stroke segmentation on the written text to be tested and the standard written text to obtain the stroke information to be tested and the standard stroke information;
基于所述标准笔画信息,对所述待测笔画信息进行评估,得到所述待测书写轨迹的评估结果。Based on the standard stroke information, the stroke information to be tested is evaluated to obtain an evaluation result of the writing trajectory to be tested.
在该方式中,通过收集学生的书写轨迹,将学生的书写轨迹在系统里绘制,采用标准字作为比较对象,对学生的书写进行全方位地评估,并给出具体化和规范化的评价信息,可以更为直观地反映学生的书写错误及错误所在,进一步方便了家长及老师的规范汉字书写教学。In this method, students' writing trajectories are collected and drawn in the system. Standard words are used as comparison objects to comprehensively evaluate students' writing and provide specific and standardized evaluation information. It can more intuitively reflect students' writing errors and where they lie, further facilitating parents and teachers to standardize Chinese character writing teaching.
结合第一方面,在第一方面的第一实施例中,所述基于所述待测书写轨迹,绘制得到待测轨迹字图,包括:With reference to the first aspect, in a first embodiment of the first aspect, drawing a character map of the trajectory to be measured based on the writing trajectory to be measured includes:
基于所述待测书写轨迹,确定当前时刻的笔尖位置信息及书写力度;Based on the writing trajectory to be measured, determine the pen tip position information and writing strength at the current moment;
基于所述笔尖位置信息,还原得到轨迹位置;Based on the pen tip position information, restore the trajectory position;
基于所述轨迹位置,计算得到书写速度;Based on the trajectory position, the writing speed is calculated;
基于所述书写力度及所述书写速度,绘制得到待测轨迹字图。Based on the writing intensity and the writing speed, a character map of the trajectory to be measured is drawn.
结合第一方面,在第一方面的第二实施例中,所述对待测轨迹字图进行文字识别,确定所述待测书写文字及待测书写文字对应的标准书写文字,包括:In conjunction with the first aspect, in a second embodiment of the first aspect, performing character recognition on the track character image to be tested and determining the written characters to be tested and the standard written characters corresponding to the written characters to be tested include:
对所述待测轨迹字图进行二值化,得到待测二值化图;Binarize the trajectory character image to be measured to obtain a binarized image to be measured;
基于所述待测二值化图,识别得到所述待测书写文字;Based on the binary image to be tested, identify and obtain the written text to be tested;
基于所述待测书写文字,确定所述待测书写文字对应的标准书写文字。Based on the written character to be tested, a standard written character corresponding to the written character to be tested is determined.
结合第一方面,在第一方面的第三实施例中,所述对所述待测书写文字与标准书写文字进行笔画分割,得到所述待测笔画信息及标准笔画信息,包括:In conjunction with the first aspect, in a third embodiment of the first aspect, the stroke segmentation of the written characters to be tested and the standard written characters to obtain the stroke information to be tested and the standard stroke information includes:
对所述标准书写文字进行笔画分割,得到标准字及标准笔画信息,将所述标准字及标准笔画信息作为先验信息;Perform stroke segmentation on the standard written text to obtain standard characters and standard stroke information, and use the standard characters and standard stroke information as a priori information;
将所述先验信息与所述待测书写文字结合,对所述待测书写文字进行笔画分割,得到所述待测笔画信息。The prior information is combined with the written character to be tested, and the written character to be tested is segmented into strokes to obtain the stroke information to be tested.
结合第一方面的第三实施例,在第一方面的第四实施例中,所述基于所述标准笔画信息,对所述待测笔画信息进行评估,得到所述待测书写轨迹的评估结果,包括:With reference to the third embodiment of the first aspect, in the fourth embodiment of the first aspect, the stroke information to be tested is evaluated based on the standard stroke information to obtain an evaluation result of the writing trajectory to be tested. ,include:
基于所述待测笔画信息,将属于同一笔画的所述待测书写文字的轨迹组合得到所述待测书写文字的笔画;Based on the stroke information to be tested, combine the trajectories of the written characters to be tested belonging to the same stroke to obtain the strokes of the written characters to be tested;
基于所述标准笔画的数量,对所述待测书写文字的笔画数量是否存在笔画缺失或笔画多余进行判断,得到所述待测书写轨迹的笔画数量评估结果。Based on the number of standard strokes, it is judged whether there are missing strokes or excess strokes in the number of strokes of the written text to be tested, and an evaluation result of the number of strokes of the writing trajectory to be tested is obtained.
结合第一方面的第四实施例,在第一方面的第五实施例中,所述基于所述标准笔画信息,对所述待测笔画信息进行评估,得到所述待测书写轨迹的评估结果,还包括:With reference to the fourth embodiment of the first aspect, in the fifth embodiment of the first aspect, the stroke information to be tested is evaluated based on the standard stroke information to obtain an evaluation result of the writing trajectory to be tested. ,Also includes:
获取所述待测书写文字轨迹的时间戳;Obtain the timestamp of the written text trajectory to be tested;
基于所述待测书写文字轨迹的时间戳,对所述待测书写的笔画顺序进行评估,得到所述待测书写轨迹的笔画顺序评估结果。Based on the timestamp of the writing trajectory to be tested, the stroke sequence of the writing to be tested is evaluated, and the stroke sequence evaluation result of the writing trajectory to be tested is obtained.
结合第一方面的第四实施例,在第一方面的第六实施例中,所述基于所述标准笔画信息,对所述待测笔画信息进行评估,得到所述待测书写轨迹的评估结果,还包括:With reference to the fourth embodiment of the first aspect, in the sixth embodiment of the first aspect, the stroke information to be tested is evaluated based on the standard stroke information to obtain an evaluation result of the writing trajectory to be tested. ,Also includes:
基于所述标准字笔画信息,确定标准笔画的正确走向;Based on the standard character stroke information, determine the correct direction of the standard strokes;
基于所述待测书写文字笔画信息,获取所述待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值;Based on the stroke information of the written text to be tested, obtain the position value of the minimum timestamp trajectory and the position value of the maximum timestamp trajectory within the same stroke of the written text to be measured;
基于所述待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值,确定所述待测书写文字的笔画走向;Determine the stroke direction of the written text to be measured based on the position value of the minimum timestamp trajectory and the position value of the maximum timestamp trajectory within the same stroke of the written text to be measured;
基于所述正确走向,对所述待测书写的笔画走向进行评估,得到所述待测书写轨迹的笔画走向评估结果。Based on the correct direction, the stroke direction of the writing to be tested is evaluated, and the stroke direction evaluation result of the writing trajectory to be tested is obtained.
在本发明的第二方面,本发明还提供一种书法测评装置,所述装置包括:In a second aspect of the present invention, the present invention also provides a calligraphy evaluation device, which includes:
获取单元,用于获取待测书写轨迹;The acquisition unit is used to acquire the writing trace to be tested;
绘制单元,用于基于所述待测书写轨迹,绘制得到待测轨迹字图;A drawing unit, configured to draw a word map of the trajectory to be tested based on the writing trajectory to be tested;
识别单元,用于对待测轨迹字图进行文字识别,确定所述待测书写文字及待测书写文字对应的标准书写文字;A recognition unit is used to perform character recognition on the track character image to be tested, and determine the written characters to be tested and the standard written characters corresponding to the written characters to be tested;
分割单元,用于对所述待测书写文字与标准书写文字进行笔画分割,得到所述待测笔画信息及标准笔画信息;A segmentation unit, used to perform stroke segmentation on the written characters to be tested and the standard written characters, to obtain the stroke information to be tested and the standard stroke information;
评估单元,用于基于所述标准笔画信息,对所述待测笔画信息进行评估,得到所述待测书写轨迹的评估结果。An evaluation unit is configured to evaluate the stroke information to be tested based on the standard stroke information to obtain an evaluation result of the writing trajectory to be tested.
结合第二方面,在第二方面的第一实施例中,所述绘制单元,包括:With reference to the second aspect, in the first embodiment of the second aspect, the rendering unit includes:
第一确定单元,用于基于所述待测书写轨迹,确定当前时刻的笔尖位置信息及书写力度;The first determination unit is used to determine the pen tip position information and writing strength at the current moment based on the writing trajectory to be measured;
还原单元,用于基于所述笔尖位置信息,还原得到轨迹位置;A restoration unit, used to restore the trajectory position based on the pen tip position information;
计算单元,用于基于所述轨迹位置,计算得到书写速度;A calculation unit, used to calculate the writing speed based on the trajectory position;
绘制子单元,用于基于所述书写力度及所述书写速度,绘制得到待测轨迹字图。The drawing subunit is used to draw a character map of the trajectory to be measured based on the writing strength and the writing speed.
结合第二方面,在第二方面的第二实施例中,所述识别单元,包括:With reference to the second aspect, in a second embodiment of the second aspect, the identification unit includes:
二值化单元,用于对所述待测轨迹字图进行二值化,得到待测二值化图;A binarization unit is used to binarize the trajectory character image to be measured to obtain a binarized image to be measured;
识别子单元,用于基于所述待测二值化图,识别得到所述待测书写文字;An identification subunit, used to identify the written text to be tested based on the binary image to be tested;
第二确定单元,用于基于所述待测书写文字,确定所述待测书写文字对应的标准书写文字。The second determination unit is used to determine the standard written character corresponding to the written character to be tested based on the written character to be tested.
结合第二方面,在第二方面的第三实施例中,所述分割单元,包括:In conjunction with the second aspect, in a third embodiment of the second aspect, the dividing unit includes:
第一分割单元,用于对所述标准书写文字进行笔画分割,得到标准字及标准笔画信息,将所述标准字及标准笔画信息作为先验信息;The first segmentation unit is used to segment the standard written characters by strokes, obtain standard characters and standard stroke information, and use the standard characters and standard stroke information as a priori information;
第二分割单元,用于将所述先验信息与所述待测书写文字结合,对所述待测书写文字进行笔画分割,得到所述待测笔画信息。The second segmentation unit is used to combine the prior information with the written characters to be tested, perform stroke segmentation on the written characters to be tested, and obtain the stroke information to be tested.
结合第二方面的第三实施例,在第二方面的第四实施例中,所述评估单元,包括:With reference to the third embodiment of the second aspect, in a fourth embodiment of the second aspect, the evaluation unit includes:
组合单元,用于基于所述待测笔画信息,将属于同一笔画的所述待测书写文字的轨迹组合得到所述待测书写文字的笔画;A combining unit, configured to combine the trajectories of the written characters to be tested belonging to the same stroke based on the stroke information to be tested to obtain the strokes of the written characters to be tested;
笔画数量评估单元,用于基于所述标准笔画的数量,对所述待测书写文字的笔画数量是否存在笔画缺失或笔画多余进行判断,得到所述待测书写轨迹的笔画数量评估结果。The number of strokes evaluation unit is used to judge whether the number of strokes of the written text to be tested is missing or redundant based on the number of standard strokes, and obtain an evaluation result of the number of strokes of the writing trajectory to be tested.
结合第二方面的第四实施例,在第二方面的第五实施例中,所述评估单元,还包括:With reference to the fourth embodiment of the second aspect, in the fifth embodiment of the second aspect, the evaluation unit further includes:
第一获取单元,用于获取所述待测书写文字轨迹的时间戳;The first acquisition unit is used to acquire the timestamp of the written text trajectory to be measured;
笔画顺序评估单元,用于基于所述待测书写文字轨迹的时间戳,对所述待测书写的笔画顺序进行评估,得到所述待测书写轨迹的笔画顺序评估结果。A stroke sequence evaluation unit is configured to evaluate the stroke sequence of the writing to be tested based on the timestamp of the writing trajectory to be tested, and obtain the stroke sequence evaluation result of the writing trajectory to be tested.
结合第二方面的第四实施例,在第二方面的第六实施例中,所述评估单元,还包括:With reference to the fourth embodiment of the second aspect, in a sixth embodiment of the second aspect, the evaluation unit further includes:
第三确定单元,用于基于所述标准字笔画信息,确定标准笔画的正确走向;The third determination unit is used to determine the correct direction of the standard strokes based on the standard character stroke information;
第二获取单元,用于基于所述待测书写文字笔画信息,获取所述待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值;The second acquisition unit is configured to obtain the position value of the minimum timestamp trajectory and the position value of the maximum timestamp trajectory within the same stroke of the written text to be measured based on the stroke information of the written text to be measured;
第四确定单元,用于基于所述待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值,确定所述待测书写文字的笔画走向;The fourth determination unit is used to determine the stroke direction of the written text to be measured based on the position value of the minimum timestamp trajectory and the position value of the maximum timestamp trajectory within the same stroke of the written text to be measured;
笔画走向评估单元,用于基于所述正确走向,对所述待测书写的笔画走向进行评估,得到所述待测书写轨迹的笔画走向评估结果。A stroke direction evaluation unit is configured to evaluate the stroke direction of the writing to be tested based on the correct direction, and obtain an evaluation result of the stroke direction of the writing trajectory to be tested.
根据第三方面,本发明实施方式还提供一种计算机设备,包括存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行第一方面及其可选实施方式中任一项的书法测评方法。According to a third aspect, an embodiment of the present invention further provides a computer device, including a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor passes The computer instructions are executed to execute the calligraphy evaluation method of any one of the first aspect and its optional implementations.
根据第四方面,本发明实施方式还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行第一方面及其可选实施方式中任一项的书法测评方法。According to a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium that stores computer instructions, and the computer instructions are used to cause the computer to execute the first aspect and optional implementations thereof Calligraphy assessment methods in any of the methods.
附图说明Description of the drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description The drawings illustrate some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.
图1是根据一示例性实施例提出的一种书法测评方法的流程图。Figure 1 is a flow chart of a calligraphy evaluation method proposed according to an exemplary embodiment.
图2a是根据一示例性实施例提出的一种对手写书写轨迹的还原的示例图。Figure 2a is an example diagram of a restoration of a handwriting trace proposed according to an exemplary embodiment.
图2b是根据一示例性实施例提出的一种手写书写轨迹对应的标准字的示例图。Figure 2b is an example diagram of standard characters corresponding to a handwriting trajectory proposed according to an exemplary embodiment.
图3是根据一示例性实施例提出的一种待测书写文字进行笔画拆分的示意图。FIG. 3 is a schematic diagram of stroke splitting of a written text to be tested according to an exemplary embodiment.
图4是根据一示例性实施例提出的另一种书法测评方法的流程图。Figure 4 is a flow chart of another calligraphy evaluation method proposed according to an exemplary embodiment.
图5是根据一示例性实施例提出的一种书法测评装置的结构框图。Figure 5 is a structural block diagram of a calligraphy evaluation device proposed according to an exemplary embodiment.
图6是根据一示例性实施例提出的一种计算机设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of a computer device according to an exemplary embodiment.
具体实施方式Detailed ways
下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
相关技术中,在传统汉字书写教学过程中,老师无法一一查看学生书写过程,很难保证学生能够完全正确书写。同时大部分家长和教师没有受过严格的、系统的规范汉字书写教育,即使最终能实现一对一的辅导,教师和家长也无法对学生书写的汉字给出具体化和规范化的评价信息。In related technologies, during the traditional Chinese character writing teaching process, the teacher cannot check the students' writing process one by one, and it is difficult to ensure that the students can write completely correctly. At the same time, most parents and teachers have not received strict and systematic education in standardized Chinese character writing. Even if one-on-one tutoring is eventually achieved, teachers and parents will not be able to provide specific and standardized evaluation information for students' written Chinese characters.
为解决上述问题,本发明实施例中提供一种书法测评方法,用于计算机设备中,需要说明的是,其执行主体可以是书法测评装置,该装置可以通过软件、硬件或者软硬件结合的方式实现成为计算机设备的部分或者全部,其中,该计算机设备可以是终端或客户端或服务器,服务器可以是一台服务器,也可以为由多台服务器组成的服务器集群,本申请实施例中的终端可以是智能手机、个人电脑、平板电脑、可穿戴设备以及智能机器人等其他智能硬件设备。下述方法实施例中,均以执行主体是计算机设备为例来进行说明。In order to solve the above problems, embodiments of the present invention provide a calligraphy evaluation method for use in computer equipment. It should be noted that its execution subject can be a calligraphy evaluation device, and the device can be implemented through software, hardware, or a combination of software and hardware. Implemented as part or all of a computer device, where the computer device may be a terminal or a client or a server. The server may be a server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application may They are smartphones, personal computers, tablets, wearable devices, and other smart hardware devices such as smart robots. In the following method embodiments, the execution subject is a computer device as an example for description.
本实施例中的计算机设备,适用于规范汉字书写教学的使用场景。通过本发明提供的书法测评方法,通过收集学生的书写轨迹,将学生的书写轨迹在系统里绘制,采用标准字作为比较对象,对学生的书写进行全方位地评估,并给出具体化和规范化的评价信息,可以更为直观地反映学生的书写错误及错误所在,进一步方便了家长及老师的规范汉字书写教学。The computer equipment in this embodiment is suitable for use scenarios that standardize Chinese character writing teaching. Through the calligraphy evaluation method provided by the present invention, students' writing trajectories are collected, the students' writing trajectories are drawn in the system, and standard words are used as comparison objects to comprehensively evaluate the students' writing and provide concrete and standardized The evaluation information can more intuitively reflect students' writing errors and where they lie, further making it easier for parents and teachers to standardize Chinese character writing teaching.
图1是根据一示例性实施例提出的一种书法测评方法的流程图。如图1所示,书法测评方法包括如下步骤S101至步骤S105。Figure 1 is a flow chart of a calligraphy evaluation method proposed according to an exemplary embodiment. As shown in Figure 1, the calligraphy evaluation method includes the following steps S101 to S105.
在步骤S101中,获取待测书写轨迹。In step S101, the writing trajectory to be measured is obtained.
在本发明实施例中,待测书写轨迹由学生书写,通过将待测书写轨迹上传至计算机,对学生的书写轨迹进行下一步的评估,省去了家长和老师的实时关注。In the embodiment of the present invention, the writing trajectory to be tested is written by the student. By uploading the writing trajectory to be tested to the computer, the student's writing trajectory is evaluated in the next step, eliminating the real-time attention of parents and teachers.
在一示例中,由于现有汉字书写教学系统都是通过类似于书写平板之类设备搭配电容笔来进行汉字数据采集,这些书写板大多较为坚硬且表面光滑,影响书写体验,且在电子屏上书写时很难得到真正纸笔的书写体验。为提供更好的书写体验,学生的书写过程可以通过装有图像采集摄像头的书写数码笔,在已经铺好码点的打印字帖上进行文字书写。通过数码笔前端的高速摄像头实时捕捉笔尖的书写轨迹,同时压力传感器将压力数据传回数据处理器,最终将信息通过蓝牙AP或者USB线对外传输,将待测书写轨迹传回位于计算机设备的书写测评系统。通过点阵纸笔方案可实时采集书写轨迹、笔画、笔顺、书写空间姿态等多维数据,为系统提供支撑;使用点阵笔书写,可以收集书写中的问题,形成基于单字的问题库,使学生在开始练字前,就知道自己问题所在,进而针对解决。In one example, existing Chinese character writing teaching systems collect Chinese character data by using devices such as writing tablets with capacitive pens. Most of these writing tablets are relatively hard and have smooth surfaces, which affects the writing experience and is difficult to detect on electronic screens. It’s hard to get the writing experience of a real pen and paper when writing. In order to provide a better writing experience, students can use a writing digital pen equipped with an image capture camera to write on printed copybooks that have been laid out with code points. The high-speed camera on the front of the digital pen captures the writing trajectory of the pen tip in real time. At the same time, the pressure sensor transmits the pressure data back to the data processor. Finally, the information is transmitted externally through a Bluetooth AP or USB cable, and the writing trajectory to be measured is transmitted back to the writing device located on the computer device. Assessment system. Through the dot matrix pen and paper solution, multi-dimensional data such as writing trajectories, strokes, stroke order, and writing space gestures can be collected in real time to provide support for the system; using dot matrix pen writing, problems in writing can be collected to form a question bank based on single characters, so that students can Before you start practicing calligraphy, you should know where your problems lie and then solve them accordingly.
在步骤S102中,基于待测书写轨迹,绘制得到待测轨迹字图。In step S102, based on the writing trajectory to be measured, a character map of the trajectory to be measured is drawn.
在本发明实施例中,在接收到待测书写轨迹后,为便于对待测书写轨迹进行评估,则将待测书写轨迹输入书法测评系统,以便明确待测书写轨迹的具体评估结果。其中,绘制得到待测轨迹字图的过程可以包括:基于待测书写轨迹,确定当前时刻的笔尖位置信息及书写力度;基于笔尖位置信息,还原得到轨迹位置;基于轨迹位置,计算得到书写速度;基于书写力度及书写速度,绘制得到待测轨迹字图。In the embodiment of the present invention, after receiving the writing trajectory to be measured, in order to facilitate the evaluation of the writing trajectory to be measured, the writing trajectory to be measured is input into the calligraphy evaluation system, so as to clarify the specific evaluation results of the writing trajectory to be measured. Among them, the process of drawing the character map of the trajectory to be tested may include: based on the writing trajectory to be measured, determining the pen tip position information and writing strength at the current moment; based on the pen tip position information, restoring the trajectory position; based on the trajectory position, calculating the writing speed; Based on the writing strength and writing speed, a graph of the trajectory characters to be tested is drawn.
在一示例中,可以在接收到传输回来的待测书写轨迹后,根据文字轨迹时间开始和结束戳进行轨迹绘图还原文字。其中,轨迹绘图包括轨迹位置还原及轨迹粗细还原,包括:In one example, after receiving the transmitted writing trace to be tested, the text can be restored by drawing the trace according to the text trace time start and end stamps. Among them, trajectory drawing includes trajectory position restoration and trajectory thickness restoration, including:
(1)轨迹位置还原:获取点阵笔某一时刻t的笔尖的位置信息Pt,由点阵笔位置传感器提供此刻笔尖位置对应的坐标点。(1) Trajectory position restoration: Obtain the position information Pt of the pen tip of the dot matrix pen at a certain time t, and the dot matrix pen position sensor provides the coordinate point corresponding to the pen tip position at this moment.
(2)轨迹粗细还原:书写轨迹粗细与书写的压力Ft以及书写速度Vt相关,点阵笔某一时刻t的压力大小Ft,由点阵笔压力传感器提供;点阵笔的书写速度Vt可以如下公式计算:(2) Trace thickness restoration: The thickness of the writing trace is related to the writing pressure Ft and the writing speed Vt . The pressure Ft of the dot matrix pen at a certain time t is provided by the dot matrix pen pressure sensor; the writing speed of the dot matrix pen Vt can be calculated as follows:
其中,Pt为t时刻笔尖的位置,Pt-1为t-1时刻笔尖的位置,Vt为书写速度。Among them, Pt is the position of the pen tip at time t, Pt-1 is the position of the pen tip at time t-1, and Vt is the writing speed.
由于书写的力度越大,书写的速度越慢,对应的书写轨迹就越粗,因此书写轨迹粗细可表示为:Since the greater the intensity of writing and the slower the writing speed, the corresponding writing track will be thicker. Therefore, the thickness of the writing track can be expressed as:
其中,Ft为t时刻的压力,It为t时刻的书写轨迹粗细,经实验α=0.358742时还原书写轨迹的效果最好。根据轨迹位置还原和轨迹粗细还原方法,即可还原较为真实的书写文字。Among them, Ft is the pressure at time t, and It is the thickness of the writing track at time t. According to experiments, the effect of restoring the writing track is best when α = 0.358742. According to the trajectory position restoration and trajectory thickness restoration methods, more realistic written text can be restored.
在步骤S103中,对待测轨迹字图进行文字识别,确定待测书写文字及待测书写文字对应的标准书写文字。In step S103, character recognition is performed on the trace character image to be tested, and the written characters to be tested and the standard written characters corresponding to the written characters to be tested are determined.
在本发明实施例中,为便于明确学生书写的待测轨迹字图是否正确,则需要确定待测轨迹字图对应的标准字,用标准字进行对比,以便明确待测书写是否标准,以及是否存在不标准之处。确定标准字的过程具体包括:对待测轨迹字图进行二值化,得到待测二值化图;基于待测二值化图,识别得到待测书写文字;基于待测书写文字,确定待测书写文字对应的标准书写文字。In the embodiment of the present invention, in order to make it clear whether the student's written trace character diagram to be tested is correct, it is necessary to determine the standard characters corresponding to the trace character diagram to be tested, and compare it with the standard characters, so as to clarify whether the writing to be tested is standard, and whether There are non-standards. The process of determining the standard characters specifically includes: binarizing the track character image to be tested to obtain the binarized image to be tested; identifying the written text to be tested based on the binarized image to be tested; and determining the written text to be tested based on the written text to be tested. The standard written text corresponding to the written text.
在一示例中,可以通过文字识别模型对轨迹字图进行识别,进而确定待测书写文字对应的标准字。其中,文字识别模型的具体实现过程包括:(1)根据上述实施例提供的方法,还原得到书写轨迹图;(2)将书写轨迹图进行二值化;(3)将二值化图缩放到128×128;(4)将缩放的图像输入到轻量化的多层卷积分类器;(5)输出对应文字识别结果和置信度;(6)确定汉字识别结果。In one example, a character recognition model can be used to recognize the trajectory character map, and then determine the standard character corresponding to the written character to be tested. Among them, the specific implementation process of the text recognition model includes: (1) restoring the writing trajectory map according to the method provided in the above embodiment; (2) binarizing the writing trajectory map; (3) scaling the binarized map to 128×128; (4) Input the scaled image to a lightweight multi-layer convolution classifier; (5) Output the corresponding text recognition results and confidence; (6) Determine the Chinese character recognition results.
图2a是根据一示例性实施例提出的一种对手写书写轨迹的还原的示例图。图2b是根据一示例性实施例提出的一种手写书写轨迹对应的标准字的示例图。如图2a及图2b所示,将书写轨迹图输入文字识别模型,根据分类器分类lable为【义】,抽取出左侧的对应义标准字图。有了书写轨迹和汉字识别的结果,即可将该手写字和对应的标准字进行书写汉字笔画评分以及结构评分等Figure 2a is an example diagram of a restoration of a handwriting trace proposed according to an exemplary embodiment. Figure 2b is an example diagram of standard characters corresponding to a handwriting trajectory proposed according to an exemplary embodiment. As shown in Figure 2a and Figure 2b, the writing trajectory map is input into the character recognition model, the label is classified as [meaning] according to the classifier, and the corresponding standard word map on the left side is extracted. With the results of writing traces and Chinese character recognition, the handwritten characters and the corresponding standard characters can be scored for strokes and structure of the written characters.
在步骤S104中,对待测书写文字与标准书写文字进行笔画分割,得到待测笔画信息及标准笔画信息。In step S104, strokes are segmented from the written characters to be tested and the standard written characters to obtain the stroke information to be tested and the standard stroke information.
在本发明实施例中,对待测书写文字与标准书写文字进行笔画分割,得到待测书写文字的各个笔画信息及标准字的各个笔画信息,以便通过将待测书写文字的各个笔画信息及标准字的各个笔画信息一笔一画地拆分出来进行对比,得到待测书写文字与标准字之间的差别,便于对待测书写文字进行评估。笔画分割的过程具体包括:对标准书写文字进行笔画分割,得到标准字及标准笔画信息,将标准字及标准笔画信息作为先验信息;将先验信息与待测书写文字结合,对待测书写文字进行笔画分割,得到待测笔画信息。In the embodiment of the present invention, the strokes of the written characters to be tested and the standard written characters are divided into strokes to obtain the stroke information of the written characters to be tested and the stroke information of the standard characters, so that the stroke information of the written characters to be tested and the standard characters are obtained. The stroke information of each stroke is separated out and compared one by one to obtain the difference between the written characters to be tested and the standard characters, which facilitates the evaluation of the written characters to be tested. The process of stroke segmentation specifically includes: performing stroke segmentation on standard written characters to obtain standard characters and standard stroke information, using the standard characters and standard stroke information as prior information; combining the prior information with the written characters to be tested, and obtaining the written characters to be tested. Perform stroke segmentation to obtain the stroke information to be tested.
图3是根据一示例性实施例提出的一种待测书写文字进行笔画拆分的示意图。如图3所示,在一示例中,当识别出具体的文字后,在进行笔画测评前需要将文字笔画一笔一画拆分出来进行对比。笔画分割具体实现如下:(1)根据文字识别结果,直接将标准字,标准字的单笔画作为先验知识输入;(2)将标准字的先验信息和待测手写字信息融合;(3)通过笔画分割模型进行并行分割。FIG. 3 is a schematic diagram of stroke splitting of a written text to be tested according to an exemplary embodiment. As shown in Figure 3, in an example, after a specific text is recognized, the strokes of the text need to be separated one by one for comparison before the stroke evaluation is performed. The specific implementation of stroke segmentation is as follows: (1) Based on the text recognition results, directly input the standard characters and single strokes of the standard characters as prior knowledge; (2) Fusion of the prior information of the standard characters and the handwritten character information to be tested; (3) ) Parallel segmentation through stroke segmentation model.
在步骤S105中,基于标准笔画信息,对待测笔画信息进行评估,得到待测书写轨迹的评估结果。In step S105, based on the standard stroke information, the stroke information to be tested is evaluated to obtain an evaluation result of the writing trajectory to be tested.
在本发明实施例中,通过采用标准字与待测书写进行对比,并给出具体化和规范化的评价信息,可以更为直观地反映学生的书写错误及错误所在,全面直观的展示错误的书写字体,方便家长、老师无需一一在场查看,即可直接做指导。In the embodiment of the present invention, by comparing standard characters with the writing to be tested, and providing specific and standardized evaluation information, students' writing errors and their locations can be more intuitively reflected, and erroneous writing can be displayed comprehensively and intuitively. The font is convenient for parents and teachers to give direct guidance without having to check them one by one.
通过上述实施例,通过收集学生的书写轨迹,将学生的书写轨迹在系统里绘制,采用标准字作为比较对象,对学生的书写进行全方位地评估,并给出具体化和规范化的评价信息,可以更为直观地反映学生的书写错误及错误所在,进一步方便了家长及老师的规范汉字书写教学。Through the above embodiment, by collecting students' writing trajectories, drawing the students' writing trajectories in the system, using standard words as comparison objects, comprehensively evaluate students' writing, and provide specific and standardized evaluation information. It can more intuitively reflect students' writing errors and where they lie, further facilitating parents and teachers to standardize Chinese character writing teaching.
图4是根据一示例性实施例提出的一种多模态书写评测的流程图。如图4所示,在一实时场景中,多模态书写评测的流程可以包括:获取待测书写输入;对已传输回来的书写轨迹,根据书写轨迹时间开始和结束戳进行轨迹绘图还原文字,得到轨迹字图;将已绘制好的轨迹字图输入文字识别模型,通过文字识别模型识别出待测文字对应的文字分类结果及标准字;当识别出待测文字对应的具体文字后,将待测文字进行笔画分割,笔画一笔一画拆分出来与标准字进行对比。根据笔画分割的结果,1.判断是否存在笔画多余或者缺失笔画的情况;2.判断书写的笔画顺序,最终输出笔画顺序结果,是否正确,在第几笔书写顺序错误;3.判断待测书写的每一个笔画的书写走向是否正确,并将上述笔画维度信息结合其对应权重,输出书写质量评估结果。FIG. 4 is a flow chart of a multi-modal writing evaluation according to an exemplary embodiment. As shown in Figure 4, in a real-time scenario, the process of multi-modal writing evaluation can include: obtaining the writing input to be tested; performing trajectory drawing to restore the text according to the writing trajectory time start and end stamps that have been transmitted back, Obtain the trajectory word map; input the drawn trajectory word map into the text recognition model, and identify the text classification results and standard words corresponding to the text to be tested through the text recognition model; when the specific text corresponding to the text to be tested is identified, the text to be tested will be The test text is divided into strokes, and the strokes are separated one by one for comparison with standard characters. According to the results of stroke segmentation, 1. Determine whether there are redundant or missing strokes; 2. Determine the order of writing strokes, and finally output the stroke order result, whether it is correct, and at which stroke the order of writing is wrong; 3. Determine the writing to be tested Whether the writing direction of each stroke is correct, and combine the above stroke dimension information with its corresponding weight to output the writing quality evaluation results.
在一实施例中,为更为全面直观的查找出书写字体存在的错误,则通过对待测书写的笔画数量、笔画走向、笔画顺序进行评估,得到更为全面待测书写轨迹的评估结果。In one embodiment, in order to find errors in writing fonts more comprehensively and intuitively, the number of strokes, stroke direction, and stroke sequence of the writing to be tested are evaluated to obtain a more comprehensive evaluation result of the writing trajectory to be tested.
在本发明实施例中,对笔画数量的评估过程包括:基于待测笔画信息,将属于同一笔画的待测书写文字的轨迹组合得到待测书写文字的笔画;基于标准笔画的数量,对待测书写文字的笔画数量是否存在笔画缺失或笔画多余进行判断,得到待测书写轨迹的笔画数量评估结果。In the embodiment of the present invention, the evaluation process of the number of strokes includes: based on the stroke information to be tested, combining the trajectories of the written text to be tested belonging to the same stroke to obtain the strokes of the written text to be tested; based on the number of standard strokes, writing to be tested The number of strokes of the text is judged whether there are missing strokes or excess strokes, and the evaluation result of the number of strokes of the writing trajectory to be tested is obtained.
在一示例中,对笔画数量的评估过程可以包括:根据标准文字的笔画数量信息和实际书写轨迹组成的笔画数量进行一一对比,来判断笔画多余或者缺失笔画,输出该字笔画数量,是否正确,缺失和多余的笔画数量。In one example, the evaluation process of the number of strokes may include: comparing the stroke number information of the standard text with the number of strokes composed of the actual writing trajectory to determine whether there are redundant or missing strokes, and outputting the number of strokes of the word to see whether it is correct. , the number of missing and redundant strokes.
在本发明实施例中,对笔画顺序的评估过程包括:获取待测书写文字轨迹的时间戳;基于待测书写文字轨迹的时间戳,对待测书写的笔画顺序进行评估,得到待测书写轨迹的笔画顺序评估结果。In the embodiment of the present invention, the evaluation process of the stroke sequence includes: obtaining the timestamp of the written character trajectory to be tested; based on the timestamp of the written character trajectory to be tested, evaluating the stroke sequence of the written character to be tested, and obtaining the time stamp of the written character trajectory to be tested. Stroke order evaluation results.
在一示例中,对笔画顺序的评估过程可以包括:通过轨迹中所有点的时间戳顺序判断书写的笔画顺序,最终输出笔画顺序结果,是否正确,在第几笔书写顺序错误。In one example, the evaluation process of stroke order may include: judging the order of written strokes based on the timestamp order of all points in the trajectory, and finally outputting the stroke order result, whether it is correct, and at which stroke the writing order is wrong.
在本发明实施例中,对笔画走向的评估过程包括:基于标准字笔画信息,确定标准笔画的正确走向;基于待测书写文字笔画信息,获取待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值;基于待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值,确定待测书写文字的笔画走向;基于正确走向,对待测书写的笔画走向进行评估,得到待测书写轨迹的笔画走向评估结果。In the embodiment of the present invention, the evaluation process of the stroke direction includes: determining the correct direction of the standard stroke based on the standard character stroke information; based on the stroke information of the written text to be tested, obtaining the minimum timestamp trajectory within the same stroke of the written text to be tested The position value and the position value of the maximum timestamp trajectory; based on the position value of the minimum timestamp trajectory and the position value of the maximum timestamp trajectory within the same stroke of the written text to be tested, determine the stroke direction of the written text to be tested; based on the correct direction, treat The stroke direction of the written writing is evaluated, and the stroke direction evaluation result of the writing trajectory to be measured is obtained.
在一示例中,对笔画走向的评估过程可以包括:定义37个基础笔画的正确走向,其中,走向包括左右走向和上下走向;获取待测字一个笔画内的最小时间戳轨迹的位置数值;获取待测字同一个笔画内的最大时间戳的轨迹的位置数值;这样就可以通过最小轨迹的位置和最大轨迹的位置之间的关系来确定走向是从上到下,还是从左到右;将同一笔画的标准笔画走向和待测笔画走向比对是否一致,得到待测字的每一个笔画的书写走向是否正确的评估结果。In one example, the evaluation process of the stroke direction may include: defining the correct direction of 37 basic strokes, where the direction includes left and right directions and up and down directions; obtaining the position value of the minimum timestamp trajectory within a stroke of the word to be tested; obtaining The position value of the trajectory of the maximum timestamp within the same stroke of the word to be tested; in this way, the relationship between the position of the minimum trajectory and the position of the maximum trajectory can be used to determine whether the direction is from top to bottom or from left to right; Compare whether the standard stroke direction of the same stroke is consistent with the direction of the stroke to be tested, and obtain an evaluation result of whether the writing direction of each stroke of the word to be tested is correct.
根据上述实施例输出的笔画维度信息(笔画数量、笔画走向、笔画顺序),加以人工预先设定的3个维度对应权重,可以得到待测书写的质量等级。According to the stroke dimension information (number of strokes, stroke direction, stroke sequence) output by the above embodiment, and the corresponding weights of the three dimensions preset manually, the quality level of the writing to be tested can be obtained.
通过上述实施例,通过对书写的字进行智能测评,帮助学生进行学习总结与提升,对每个学生作业的每个字进行笔画数量、笔画走向、笔画顺序检测,全面直观的展示错误的书写字体,方便家长,老师无需一一在场查看,即可直接做指导。同时可以方便外部软件对全班书写问题进行实时统计,教师快速查看所有学生的练习得分、练习次数以及学生评测报告,辅助教师进行重点的突破讲解,高效提升老师课堂指导效率。Through the above embodiment, intelligent assessment of written words is carried out to help students summarize and improve their learning. The number of strokes, stroke directions, and stroke order are detected for each word of each student's homework, and the wrong writing fonts are comprehensively and intuitively displayed. , it is convenient for parents, and teachers can give direct guidance without having to check them one by one. At the same time, it is convenient for external software to conduct real-time statistics on the writing problems of the whole class. Teachers can quickly view all students’ practice scores, practice times, and student evaluation reports, assisting teachers in explaining key breakthroughs, and effectively improving the efficiency of teacher classroom guidance.
基于相同发明构思,本发明还提供一种书法测评装置。Based on the same inventive concept, the present invention also provides a calligraphy evaluation device.
图5是根据一示例性实施例提出的一种书法测评装置的结构框图。如图5所示,书法测评装置包括获取单元501、绘制单元502、识别单元503、分割单元504和评估单元505。Figure 5 is a structural block diagram of a calligraphy evaluation device proposed according to an exemplary embodiment. As shown in Figure 5, the calligraphy evaluation device includes an acquisition unit 501, a drawing unit 502, a recognition unit 503, a segmentation unit 504 and an evaluation unit 505.
获取单元501,用于获取待测书写轨迹;The acquisition unit 501 is used to acquire the writing trajectory to be tested;
绘制单元502,用于基于待测书写轨迹,绘制得到待测轨迹字图;The drawing unit 502 is used to draw a word map of the track to be tested based on the writing track to be tested;
识别单元503,用于对待测轨迹字图进行文字识别,确定待测书写文字及待测书写文字对应的标准书写文字;The recognition unit 503 is used to perform character recognition on the track character image to be tested, and determine the written characters to be tested and the standard written characters corresponding to the written characters to be tested;
分割单元504,用于对待测书写文字与标准书写文字进行笔画分割,得到待测笔画信息及标准笔画信息;The segmentation unit 504 is used to segment the written characters to be tested and the standard written characters into strokes to obtain the stroke information to be tested and the standard stroke information;
评估单元505,用于基于标准笔画信息,对待测笔画信息进行评估,得到待测书写轨迹的评估结果。The evaluation unit 505 is used to evaluate the stroke information to be tested based on the standard stroke information and obtain an evaluation result of the writing trajectory to be tested.
在一实施例中,绘制单元502,包括:第一确定单元,用于基于待测书写轨迹,确定当前时刻的笔尖位置信息及书写力度;还原单元,用于基于笔尖位置信息,还原得到轨迹位置;计算单元,用于基于轨迹位置,计算得到书写速度;绘制子单元,用于基于书写力度及书写速度,绘制得到待测轨迹字图。In one embodiment, the drawing unit 502 includes: a first determination unit, used to determine the pen tip position information and writing strength at the current moment based on the writing trajectory to be measured; a restoration unit, used to restore the trajectory position based on the pen tip position information ; The calculation unit is used to calculate the writing speed based on the trajectory position; the drawing subunit is used to draw the trajectory word map to be measured based on the writing strength and writing speed.
在另一实施例中,识别单元503,包括:二值化单元,用于对待测轨迹字图进行二值化,得到待测二值化图;识别子单元,用于基于待测二值化图,识别得到待测书写文字;第二确定单元,用于基于待测书写文字,确定待测书写文字对应的标准书写文字。In another embodiment, the identification unit 503 includes: a binarization unit, used to binarize the trajectory character image to be measured to obtain a binarized image to be measured; and an identification subunit, used to binarize the trajectory word image to be measured and Figure, the written text to be tested is recognized and the second determination unit is used to determine the standard written text corresponding to the written text to be tested based on the written text to be tested.
在又一实施例中,分割单元504,包括:第一分割单元,用于对标准书写文字进行笔画分割,得到标准字及标准笔画信息,将标准字及标准笔画信息作为先验信息;第二分割单元,用于将先验信息与待测书写文字结合,对待测书写文字进行笔画分割,得到待测笔画信息。In another embodiment, the segmentation unit 504 includes: a first segmentation unit, used to segment standard written characters by strokes, obtain standard characters and standard stroke information, and use the standard characters and standard stroke information as a priori information; a second segmentation unit; The segmentation unit is used to combine the prior information with the written text to be tested, segment the strokes of the written text to be tested, and obtain the stroke information to be tested.
在又一实施例中,评估单元505,包括:组合单元,用于基于待测笔画信息,将属于同一笔画的待测书写文字的轨迹组合得到待测书写文字的笔画;笔画数量评估单元,用于基于标准笔画的数量,对待测书写文字的笔画数量是否存在笔画缺失或笔画多余进行判断,得到待测书写轨迹的笔画数量评估结果。In yet another embodiment, the evaluation unit 505 includes: a combination unit for combining the trajectories of the written characters to be tested belonging to the same stroke based on the stroke information to be tested to obtain the strokes of the written characters to be tested; a stroke number evaluation unit for Based on the number of standard strokes, it is judged whether there are missing strokes or excess strokes in the number of strokes of the written text to be tested, and the evaluation result of the number of strokes of the writing trajectory to be tested is obtained.
在又一实施例中,评估单元505,还包括:第一获取单元,用于获取待测书写文字轨迹的时间戳;笔画顺序评估单元,用于基于待测书写文字轨迹的时间戳,对待测书写的笔画顺序进行评估,得到待测书写轨迹的笔画顺序评估结果。In another embodiment, the evaluation unit 505 also includes: a first acquisition unit, used to obtain the timestamp of the written character trajectory to be tested; a stroke sequence evaluation unit, used to obtain the timestamp of the written character trajectory to be tested, based on the timestamp of the written character trajectory to be tested, The stroke order of writing is evaluated to obtain the stroke order evaluation result of the writing trajectory to be tested.
在又一实施例中,评估单元505,还包括:第三确定单元,用于基于标准字笔画信息,确定标准笔画的正确走向;第二获取单元,用于基于待测书写文字笔画信息,获取待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值;第四确定单元,用于基于待测书写文字同一笔画内的最小时间戳轨迹的位置数值及最大时间戳轨迹的位置数值,确定待测书写文字的笔画走向;笔画走向评估单元,用于基于正确走向,对待测书写的笔画走向进行评估,得到待测书写轨迹的笔画走向评估结果。In yet another embodiment, the evaluation unit 505 also includes: a third determination unit, used to determine the correct direction of the standard strokes based on the standard character stroke information; and a second acquisition unit, used to obtain the correct direction of the standard strokes based on the written word stroke information to be tested. The position value of the minimum timestamp trajectory within the same stroke of the written text to be tested and the position value of the maximum timestamp trajectory; the fourth determination unit is used to determine the position value and the maximum time of the minimum timestamp trajectory within the same stroke of the written text to be tested The position value of the poke track determines the stroke direction of the written text to be tested; the stroke direction evaluation unit is used to evaluate the stroke direction of the writing to be tested based on the correct direction, and obtain the stroke direction evaluation results of the writing track to be tested.
上述书法测评装置的具体限定以及有益效果可以参见上文中对于书法测评方法的限定,在此不再赘述。上述各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。The specific limitations and beneficial effects of the above-mentioned calligraphy evaluation device can be found in the limitations on the calligraphy evaluation method mentioned above, and will not be described again here. Each of the above modules can be implemented in whole or in part through software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
图6是根据一示例性实施例提出的一种计算机设备的硬件结构示意图。如图6所示,该设备包括一个或多个处理器610以及存储器620,存储器620包括持久内存、易失内存和硬盘,图6中以一个处理器610为例。该设备还可以包括:输入装置630和输出装置640。FIG. 6 is a schematic diagram of the hardware structure of a computer device according to an exemplary embodiment. As shown in Figure 6, the device includes one or more processors 610 and memory 620. The memory 620 includes persistent memory, volatile memory and a hard disk. In Figure 6, one processor 610 is taken as an example. The device may further include an input device 630 and an output device 640.
处理器610、存储器620、输入装置630和输出装置640可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 610, the memory 620, the input device 630 and the output device 640 may be connected through a bus or other means. In FIG. 6, connection through a bus is taken as an example.
处理器610可以为中央处理器(Central Processing Unit,CPU)。处理器610还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 610 may be a central processing unit (Central Processing Unit, CPU). The processor 610 may also be another general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA), or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or combinations of the above types of chips. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
存储器620作为一种非暂态计算机可读存储介质,包括持久内存、易失内存和硬盘,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的书法测评方法对应的程序指令/模块。处理器610通过运行存储在存储器620中的非暂态软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述任意一种书法测评方法。As a non-transitory computer-readable storage medium, the memory 620 includes persistent memory, volatile memory and hard disk, and can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as in the embodiment of the present application. Program instructions/modules corresponding to calligraphy assessment methods. The processor 610 executes various functional applications and data processing of the server by running non-transient software programs, instructions and modules stored in the memory 620, that is, implementing any of the above calligraphy evaluation methods.
存储器620可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据、需要使用的数据等。此外,存储器620可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器620可选包括相对于处理器610远程设置的存储器,这些远程存储器可以通过网络连接至数据处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 620 may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function; the storage data area may store data used according to needs, etc. In addition, memory 620 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 620 optionally includes memory located remotely relative to the processor 610, and these remote memories may be connected to the data processing device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
输入装置630可接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键信号输入。输出装置640可包括显示屏等显示设备。The input device 630 may receive input numeric or character information and generate key signal input related to user settings and function control. The output device 640 may include a display device such as a display screen.
一个或者多个模块存储在存储器620中,当被一个或者多个处理器610执行时,执行如图1-图4所示的方法。One or more modules are stored in the memory 620, and when executed by one or more processors 610, the methods shown in Figures 1-4 are performed.
上述产品可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,具体可参见如图1-图4所示的实施例中的相关描述。The above-mentioned products can execute the methods provided by the embodiments of the present invention, and have corresponding functional modules and beneficial effects for executing the methods. For technical details that are not described in detail in this embodiment, please refer to the relevant descriptions in the embodiments shown in FIGS. 1 to 4 .
本发明实施例还提供了一种非暂态计算机存储介质,计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的认证方法。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(RandomAccess Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;存储介质还可以包括上述种类的存储器的组合。Embodiments of the present invention also provide a non-transitory computer storage medium. The computer storage medium stores computer-executable instructions. The computer-executable instructions can execute the authentication method in any of the above method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), or a hard disk (Hard Disk Drive). Abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium can also include a combination of the above types of memories.
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear explanation and are not intended to limit the implementation. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. An exhaustive list of all implementations is neither necessary nor possible. The obvious changes or modifications derived therefrom are still within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310575662.0ACN116758786A (en) | 2023-05-19 | 2023-05-19 | Handwriting evaluation method and device, computer equipment and medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310575662.0ACN116758786A (en) | 2023-05-19 | 2023-05-19 | Handwriting evaluation method and device, computer equipment and medium |
| Publication Number | Publication Date |
|---|---|
| CN116758786Atrue CN116758786A (en) | 2023-09-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310575662.0APendingCN116758786A (en) | 2023-05-19 | 2023-05-19 | Handwriting evaluation method and device, computer equipment and medium |
| Country | Link |
|---|---|
| CN (1) | CN116758786A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117237954A (en)* | 2023-11-14 | 2023-12-15 | 暗物智能科技(广州)有限公司 | Text intelligent scoring method and system based on ordering learning |
| CN117727050A (en)* | 2023-09-27 | 2024-03-19 | 书行科技(北京)有限公司 | Handwritten text evaluation method, handwritten text evaluation device, computer equipment and storage medium |
| CN118247786A (en)* | 2024-05-27 | 2024-06-25 | 暗物智能科技(广州)有限公司 | Handwritten character scoring method based on deep learning and computer equipment |
| CN119296397A (en)* | 2024-08-12 | 2025-01-10 | 杭州两点文化科技有限公司 | An interactive teaching method based on situational environment |
| CN119625759A (en)* | 2024-11-19 | 2025-03-14 | 北京一起教育科技发展有限公司 | Method and system for detecting cause of missing strokes of dot-matrix pen based on lightweight convolutional network |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104050453A (en)* | 2014-06-24 | 2014-09-17 | 南京师范大学 | Evaluation method for handwritten Chinese character handwriting |
| CN110490157A (en)* | 2019-08-23 | 2019-11-22 | 安徽淘云科技有限公司 | Text appraisal procedure, character learning method, device, equipment and storage medium |
| CN111523455A (en)* | 2020-04-22 | 2020-08-11 | 北京易文汉学科技有限公司 | Evaluation method for Chinese character writing |
| CN113011412A (en)* | 2021-04-15 | 2021-06-22 | 深圳市鹰硕云科技有限公司 | Character recognition method, device, equipment and storage medium based on stroke order and OCR (optical character recognition) |
| CN114419627A (en)* | 2021-12-03 | 2022-04-29 | 陈颖 | Handwritten Chinese character evaluation method and device, computer equipment and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104050453A (en)* | 2014-06-24 | 2014-09-17 | 南京师范大学 | Evaluation method for handwritten Chinese character handwriting |
| CN110490157A (en)* | 2019-08-23 | 2019-11-22 | 安徽淘云科技有限公司 | Text appraisal procedure, character learning method, device, equipment and storage medium |
| CN111523455A (en)* | 2020-04-22 | 2020-08-11 | 北京易文汉学科技有限公司 | Evaluation method for Chinese character writing |
| CN113011412A (en)* | 2021-04-15 | 2021-06-22 | 深圳市鹰硕云科技有限公司 | Character recognition method, device, equipment and storage medium based on stroke order and OCR (optical character recognition) |
| CN114419627A (en)* | 2021-12-03 | 2022-04-29 | 陈颖 | Handwritten Chinese character evaluation method and device, computer equipment and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117727050A (en)* | 2023-09-27 | 2024-03-19 | 书行科技(北京)有限公司 | Handwritten text evaluation method, handwritten text evaluation device, computer equipment and storage medium |
| CN117237954A (en)* | 2023-11-14 | 2023-12-15 | 暗物智能科技(广州)有限公司 | Text intelligent scoring method and system based on ordering learning |
| CN117237954B (en)* | 2023-11-14 | 2024-03-19 | 暗物智能科技(广州)有限公司 | Text intelligent scoring method and system based on ordering learning |
| CN118247786A (en)* | 2024-05-27 | 2024-06-25 | 暗物智能科技(广州)有限公司 | Handwritten character scoring method based on deep learning and computer equipment |
| CN118247786B (en)* | 2024-05-27 | 2024-09-20 | 暗物智能科技(广州)有限公司 | Handwritten character scoring method based on deep learning and computer equipment |
| CN119296397A (en)* | 2024-08-12 | 2025-01-10 | 杭州两点文化科技有限公司 | An interactive teaching method based on situational environment |
| CN119625759A (en)* | 2024-11-19 | 2025-03-14 | 北京一起教育科技发展有限公司 | Method and system for detecting cause of missing strokes of dot-matrix pen based on lightweight convolutional network |
| CN119625759B (en)* | 2024-11-19 | 2025-07-22 | 北京一起教育科技发展有限公司 | Dot matrix pen stroke loss reason detection method and system based on lightweight convolution network |
| Publication | Publication Date | Title |
|---|---|---|
| CN116758786A (en) | Handwriting evaluation method and device, computer equipment and medium | |
| CN109670504B (en) | Handwritten answer recognition and correction method and device | |
| CN102542264B (en) | Method and device for automatically evaluating right and wrong of Chinese character writing on basis of digital handwriting equipment | |
| CN111144191B (en) | Font identification method, font identification device, electronic equipment and storage medium | |
| CN111507330B (en) | Problem recognition method and device, electronic equipment and storage medium | |
| CN106897749A (en) | Automatic marking method and system | |
| CN109712043B (en) | Answer correcting method and device | |
| WO2018006294A1 (en) | Exam paper reading system, device and method based on pattern recognition technology | |
| CN101101706A (en) | Chinese writing learning machine and Chinese writing learning method | |
| CN111027537B (en) | A question searching method and electronic device | |
| CN110222671A (en) | The method and system that point reading based on dot matrix is write | |
| CN113537801B (en) | Blackboard writing processing method, blackboard writing processing device, terminal and storage medium | |
| CN109214471A (en) | Evaluate the method and system of the written word in copybook of practising handwriting | |
| CN112528799B (en) | Teaching live broadcast method and device, computer equipment and storage medium | |
| CN103632169A (en) | Method and equipment for automatic character writing error correction | |
| CN105787522A (en) | Writing attitude evaluation method and writing attitude evaluation system based on handwriting | |
| CN115294573A (en) | Job correction method, device, equipment and medium | |
| CN109086336A (en) | Paper date storage method, device and electronic equipment | |
| CN115359500A (en) | Intelligent pen writing method and device with Chinese character error correction function and storage medium | |
| CN112396032A (en) | Writing detection method and device, storage medium and electronic equipment | |
| CN114549993A (en) | Method, system and device for scoring line segment image in experiment and readable storage medium | |
| CN108960149A (en) | Paper reads and appraises method, apparatus and electronic equipment automatically | |
| CN113205084B (en) | English dictation correction method and device and electronic equipment | |
| CN115760500A (en) | Method, device, equipment and storage medium for optimizing teacher reading and amending operation | |
| CN112906499A (en) | Text information identification method and device |
| 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 |