CN112256146B - Method, device and equipment for testing writing of whiteboard and storage medium - Google Patents

Method, device and equipment for testing writing of whiteboard and storage medium Download PDF

Info

Publication number
CN112256146B
CN112256146B CN202010943081.4A CN202010943081A CN112256146B CN 112256146 B CN112256146 B CN 112256146B CN 202010943081 A CN202010943081 A CN 202010943081A CN 112256146 B CN112256146 B CN 112256146B
Authority
CN
China
Prior art keywords
handwriting
tested
path
whiteboard
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.)
Active
Application number
CN202010943081.4A
Other languages
Chinese (zh)
Other versions
CN112256146A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010943081.4A priority Critical patent/CN112256146B/en
Publication of CN112256146A publication Critical patent/CN112256146A/en
Application granted granted Critical
Publication of CN112256146B publication Critical patent/CN112256146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing whiteboard writing, terminal equipment and a storage medium. Receiving a drawing sample meeting preset input standards on a whiteboard interface to generate drawing sample parameters according to the drawing sample; responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path; after the drawing of the handwriting to be tested in one section of the sub-path is completed, capturing a screenshot of the handwriting to be tested comprising the sub-path to obtain a corresponding sub-test sample; and determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface. According to the drawing sample, the handwriting to be tested is automatically drawn, the abnormal state of the handwriting to be tested is determined based on the comparison of the color values, and the test efficiency of writing test and the accuracy of test structure in whiteboard application are improved.

Description

Method, device and equipment for testing writing of whiteboard and storage medium
Technical Field
The embodiment of the invention relates to the technical field of interactive flat plates, in particular to a method and a device for testing whiteboard writing, terminal equipment and a storage medium.
Background
With the development of intelligent technology, the variety of electronic products contacted by people in daily life is increasingly rich, wherein the interactive electronic products realized based on the touch technology show a comprehensive function integration trend as good man-machine interaction experience. The interactive flat board is one of representative integrated devices, is suitable for group interaction occasions such as conferences, teaching, business exhibition and the like, and integrates various functions such as a projector, a video conference and the like.
There are various kinds of abundant application developments under different application scenes based on the interactive tablet, wherein the whiteboard application is an application with quite high use frequency on the interactive tablet. In order to ensure good display interaction effect of the whiteboard application, writing test is usually required before software and/or hardware related to the whiteboard application is released, so as to eliminate possible abnormal handwriting situations, wherein the common abnormal handwriting situations include break points, unobvious, unclear and the like.
The inventor finds that when writing test is carried out on whiteboard application, because abnormal handwriting conditions are generally even, the existing test mode needs a large amount of manual writing operation to generate writing handwriting, and the writing handwriting is observed and judged in the writing process. In the test process, a large amount of repeated input and manual judgment exist, the test efficiency is low, and the test result is not accurate enough.
Disclosure of Invention
The invention provides a method, a device, terminal equipment and a storage medium for testing writing of a whiteboard, which are used for solving the technical problems of low writing test efficiency and inaccurate test result of the existing whiteboard application.
In a first aspect, an embodiment of the present invention provides a method for testing writing on a whiteboard, including:
Receiving a drawing sample meeting a preset input standard at a whiteboard interface, so as to generate drawing sample parameters according to the drawing sample;
Responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path;
After the drawing of the handwriting to be tested in one section of the sub-path is completed, capturing a screenshot of the handwriting to be tested comprising the sub-path to obtain a corresponding sub-test sample;
and determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface.
In a second aspect, an embodiment of the present invention further provides a device for testing writing on a whiteboard, including:
The sample receiving unit is used for receiving a drawing sample meeting a preset input standard on a whiteboard interface so as to generate drawing sample parameters according to the drawing sample;
the handwriting drawing unit is used for responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path;
the subsection screenshot unit is used for obtaining a corresponding sub-test sample from the screenshot of the handwriting to be tested in the sub-path after the handwriting to be tested in one section of the sub-path is drawn;
and the color value comparison unit is used for determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface.
In a third aspect, an embodiment of the present invention further provides a terminal device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of testing whiteboard writing traces as described in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of testing whiteboard writing in accordance with the first aspect.
According to the testing method, the testing device, the terminal equipment and the storage medium for Bai Banshu writing handwriting, the drawing sample meeting the preset input standard is received at the whiteboard interface, so that drawing sample parameters are generated according to the drawing sample; responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path; after the drawing of the handwriting to be tested in one section of the sub-path is completed, capturing a screenshot of the handwriting to be tested comprising the sub-path to obtain a corresponding sub-test sample; and determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface. By automatically drawing the handwriting to be tested according to the drawing sample and determining the abnormal state of the handwriting to be tested based on the comparison of the color values, the test efficiency of writing test and the accuracy of the test structure in whiteboard application are improved.
Drawings
FIG. 1 is a flow chart of a method for testing writing handwriting on a whiteboard according to a first embodiment of the invention;
FIG. 2 is a schematic diagram of the effect of whiteboard writing anomalies;
FIG. 3 is a schematic drawing of a drawing of handwriting to be measured in a first segment of a sub-path of a circular path;
FIG. 4 is a schematic diagram of a screenshot after the first segment of the sub-path of FIG. 3 is drawn;
FIG. 5 is a schematic drawing of a drawing of handwriting to be measured in a second segment of the circular path;
FIG. 6 is a schematic diagram of a screenshot after the second segment sub-path of FIG. 5 is drawn;
FIG. 7 is a schematic diagram of a device for testing writing on a whiteboard according to a second embodiment of the present invention;
Fig. 8 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not of limitation. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be noted that the present disclosure is not limited to all the alternative embodiments, and those skilled in the art who review this disclosure will recognize that any combination of the features may be used to construct the alternative embodiments as long as the features are not mutually inconsistent.
For example, in one embodiment of the first embodiment, one technical feature is described: drawing of the handwriting to be measured is performed through a circular path, and in another implementation manner of the first embodiment, another technical feature is described: when the handwriting to be detected is determined to be abnormal, identifying the abnormal handwriting to be detected and outputting the identified picture. Since the above two features are not mutually contradictory, a person skilled in the art will recognize that an embodiment having both features is also an alternative embodiment after reading the present specification.
It should be noted that the embodiment of the present invention is not a set of all the technical features described in the first embodiment, in which some technical features are described for the optimal implementation of the embodiment, and if the combination of several technical features described in the first embodiment can achieve the design of the present invention, the embodiment may be used as an independent embodiment, and of course may also be used as a specific product form.
The following describes each embodiment in detail.
Example 1
Fig. 1 is a flowchart of a method for testing writing handwriting of a whiteboard according to an embodiment of the invention. The method for testing the whiteboard writing handwriting provided in the embodiment can be executed by various operation devices for comment generation, the operation devices can be implemented in a software and/or hardware mode, and the operation devices can be formed by two or more physical entities or one physical entity
Specifically, referring to fig. 1, the method for testing the whiteboard writing trace specifically includes:
Step S101: and receiving a drawing sample meeting preset input standards at a whiteboard interface, so as to generate drawing sample parameters according to the drawing sample.
The test of the whiteboard writing handwriting in this solution is shown in fig. 2, that is, a plurality of handwriting to be tested is input at the whiteboard interface 10 (each "positive" stroke in fig. 2 is one handwriting to be tested), as shown in fig. 2, where a display abnormality (circled breakpoint) exists in a plurality of strokes, and the abnormality is a sporadic abnormality of performing stroke display in response to touch input. Of course, the abnormal occurrence rate shown in fig. 2 does not exist in the actual drawing process, in this scheme, the time, the position and the like of the occurrence of the display abnormality are mainly detected, so that the occurrence of the drawing abnormality is reduced in the subsequent debugging, and the problem of the occurrence of the abnormality is not solved in this scheme.
In a specific test process, in order to balance test efficiency and test precision, a user is convenient to input a drawing sample, the drawing sample is usually set into a Chinese character with a simpler font or a graph with a simpler shape, whether the drawing sample is normally displayed or not is not particularly detected when the user inputs the drawing sample in the process of receiving the drawing sample, whether the preset input standard is met or not depends on whether the track parameter corresponding to the drawing sample meets the preset standard or not, when the track parameter corresponding to the drawing sample meets the preset standard, the drawing sample is confirmed to meet the preset input standard, and the corresponding track parameter is confirmed to be the drawing sample parameter.
From the drawing sample, the input standard comprises an input standard of handwriting content and an input standard of handwriting length. The input standard of handwriting content can be a more fuzzy description for the user, such as ' please input simpler Chinese characters or figures ', ' please input horizontal and vertical line combinations ', ' and the like; a more specific description, such as "please input 'back' or 'positive'", is also possible. Correspondingly, for the bottom layer judgment, the handwriting content with fuzzy input standard is mainly judged and confirmed on the basic shape of each track and the intersection point between tracks; the handwriting content with specific input standard is mainly realized based on character recognition of the handwriting content for bottom layer judgment.
The input standard of handwriting length mainly requires that the length of each stroke of a drawn sample is proper, and preferably within a preset range. If the strokes in the drawing sample are too short, the judgment of the abnormal situation of the break point can be affected, and if the strokes in the drawing sample are too long, the judgment of the continuous abnormal situation can be affected. In the current drawing sample input process, if a certain stroke is detected to be overlong or too short, a user can be reminded that the current input does not meet the input standard of handwriting length and needs to be input again.
In addition, it should be noted that, not every test object (different interactive tablet or different version of whiteboard application) needs to input the drawing sample independently, and in a specific test process, the drawing sample parameters obtained at a time may be used for multiple test objects. That is, after the drawing sample parameters are obtained in step S101, the subsequent actual test procedure may be performed a plurality of times, and the drawing sample parameters may be used for specific tests of a plurality of different test subjects. Of course, multiple repeated tests of a test object may also be implemented based on a plotted sample parameter.
Specifically, step S101 may be further implemented by steps S1011 to S1013:
step S1011: and displaying the input standard of the drawn sample on the whiteboard interface.
Step S1012: a drawn sample is received at the whiteboard interface.
The display of the input standard and the receipt of the drawn sample are complete at the same interface, except that the display of the input standard and the receipt of the drawn sample are complete in different areas.
Step S1013: and when the writing track meets the input standard of the drawing sample, storing track parameters corresponding to the writing track as the drawing sample parameters.
The drawing sample meeting the input standard is confirmed after the input of the drawing sample is completed, but in the process of inputting the drawing sample, if the condition that the input standard is not met is detected, the current input can be directly ended, and the user is prompted to input again.
For example, when a drawing sample is received, the input standard presented to the user is that only "back" or "positive" can be input, and the two character strokes are simpler, so that the coordinate position of the touch point can be acquired when the drawing sample is input by the user in a touch manner. If the drawing sample is not 'back' or 'positive' in the writing process, or the input stroke length is not in the set pixel value range, the user is reminded to re-input. And if the input content is correct and the stroke length is proper, confirming the drawing sample and obtaining corresponding drawing sample parameters.
Step S102: and responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path.
In a specific test process, in order to improve test efficiency, after a certain number of handwriting to be tested are drawn, abnormality judgment can be performed on the input handwriting to be tested, and drawing of subsequent handwriting to be tested is continued at the same time. In order to determine the time to be detected for carrying out abnormality judgment on the input handwriting to be detected, the writing path is divided into a plurality of sub-paths, and after drawing of each sub-path is completed, abnormality judgment is carried out once. Of course, the abnormality judgment can be performed after the drawing of the set number of the handwriting to be detected is completed.
If multiple sub-paths are provided, it is generally only necessary to perform abnormality determination on the handwriting to be measured in a single sub-path at a time, so that it is preferable to obtain the handwriting to be measured in a single sub-path independently, for example, by inputting line by line (column), each of which serves as a sub-path, or by continuously using multiple lines (columns) as a sub-path. For another example, the writing path is a plurality of concentric annular paths, each annular path is a segment of sub-path, each segment of sub-path is mutually disjoint, and the writing to be measured is drawn from outside to inside. Fig. 3 is a schematic diagram of a first sub-path of the circular path, fig. 5 is a schematic diagram of a first sub-path and a second sub-path of the circular path, fig. 5 is a schematic diagram of an outer loop of the first sub-path, an inner loop of the second sub-path, and the second sub-path of the inner loop draws the handwriting to be measured after the first sub-path of the outer loop draws the handwriting to be measured.
When drawing handwriting to be measured based on the first sub-path shown in fig. 3, a sliding method swipe can be directly called, and can be used as a mobile terminal webpage touch content sliding js plug-in, coordinates in drawing sample parameters can be combined for automatic writing, so that although the drawing is complicated, coordinate information of each stroke can be clearly obtained, and preparation is made for obtaining color values of response coordinate pixel points later; the handwriting to be measured starts to write automatically from any position (such as the upper left corner) of the first sub-path, writes one circle around the screen as a cycle to complete the first sub-path, and moves down the coordinates in the next cycle to start drawing the handwriting to be measured according to the second sub-path shown in fig. 5.
In the actual test process, in order to ensure the accuracy of a test result, enough handwriting to be tested is usually required to be drawn, but the size of a whiteboard interface is limited, and the input of all the handwriting to be tested cannot be completed in one blank page, so when the number of the handwriting to be tested drawn in the whiteboard interface reaches an upper limit value, a blank page is newly built on the whiteboard interface to draw the handwriting to be tested, and thus the drawing of the handwriting to be tested for a set number of times can be completed through a plurality of blank pages without being limited by the size of the whiteboard interface, and all the drawn handwriting to be tested are not mutually interfered and are clearly stored.
In the process of specifically drawing the handwriting to be measured, in order to ensure the successful proceeding of subsequent abnormal judgment, the difference value between the color value of the handwriting to be measured and the color value of the whiteboard interface is not smaller than a preset contrast difference value. The maximum contrast, for example, is set as the default that the whiteboard interface is black, that is, the color value of RGB is (0, 0), the color of the handwriting to be detected is white, that is, the color value of RGB is (255, 255, 255), and of course, the color of the whiteboard interface is white, and the color of the handwriting to be detected is black. Of course, as long as the color of the foreground color (color of the handwriting to be detected) and the color of the background color (color of the whiteboard interface) reach the preset contrast difference value, the accurate judgment of the subsequent abnormal state can be facilitated, and the maximum color difference of black and white is not necessarily reached.
Step S103: after the drawing of the handwriting to be tested in one section of the sub-path is completed, the screenshot comprises the handwriting to be tested of the sub-path to obtain a corresponding sub-test sample.
After the handwriting to be tested in one section of the sub-path is drawn, the screenshot comprises that all the handwriting to be tested in the sub-path obtain corresponding sub-test samples. In a specific screenshot strategy, according to the setting of the writing path, the screenshot may include only the handwriting to be detected in the one section of sub-path, or may include the handwriting to be detected in other sub-paths. In the former case, the handwriting to be detected obtained by the current screenshot is directly judged each time, and in the latter case, the abnormal state of the part of the handwriting to be detected corresponding to the current sub-path in the screenshot is confirmed according to the writing path. When the annular path is used as a writing path, only the content in the area where the current annular is located needs to be captured each time. For example, after the drawing of the handwriting to be measured in the first sub-path in fig. 3 is completed, only the shadow part shown in fig. 4 needs to be subjected to screenshot, and after the drawing of the handwriting to be measured in the second sub-path in fig. 5 is completed, only the shadow part shown in fig. 6 needs to be subjected to screenshot. By adopting the screenshot mode, the handwriting to be detected generated before is not intercepted, the handwriting to be detected is not arranged in the current ring, and the data processing efficiency is high.
Step S104: and determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface.
In the scheme, only two colors, namely one foreground color (the color of the handwriting to be measured) and one background color (the color of the whiteboard interface), are in a normal state in a picture of the handwriting to be measured, and whether the handwriting to be measured is in an abnormal state or not is judged one by one through the difference comparison between the actual distribution of the two colors and the theoretical distribution based on drawing parameters.
Specifically, step S104 may be further implemented by steps S1041-S1043:
Step S1041: amplifying the picture corresponding to the sub-test sample to obtain an amplified picture.
For the picture corresponding to the sub-test sample obtained by screenshot, the PIL library (Python Imaging Library, python image processing toolkit) is called to assist in amplifying the picture, and the picture is generally required to be amplified by 3 times (of course, other times can be also required), so that the breakpoint can be found to the greatest extent.
Step S1042: and extracting the color value of each pixel point in the enlarged picture.
The PIL library can acquire and store the color value of each pixel point of the picture through a load method.
Step S1043: and comparing the color value of the pixel point corresponding to the drawing parameter with the color value of the whiteboard interface, and determining the abnormal state of the handwriting to be detected.
Continuing to call the PIL library and switching to RGBA mode. In the RGB color space, the arbitrary color light F can be mixed by adding different components of RGB three colors. That is, the color value of each pixel in the image may be represented by a ternary value (R, G, B), for example, (0, 0) for black and (255 ) for white, with each component ranging in size from 0 to 255. And carrying out cyclic judgment according to the theoretical RGB value of the handwriting to be detected, the RGB value of the whiteboard interface and the coordinate range of the drawing parameters corresponding to the handwriting to be detected, wherein some descriptions which are equal to the background RGB in the coordinate range have break points, and the descriptions are not equal to the theoretical RGB value of the handwriting to be detected and the RGB value of the whiteboard interface (in the error range, the error is generally set to be 30), so that the description is possibly unclear and unobvious. Both the breakpoint and the unobvious can be determined to be an abnormal state.
Through automatic drawing and automatic comparison of color values, automatic input and automatic comparison of handwriting to be detected can be realized, and compared with manual work, character input and naked eye abnormality judgment can be carried out in units of hours or even days, and the testing efficiency and testing accuracy can be effectively improved. And because the scheme aims at the problem of occurrence, the test progress is unpredictable, the test intensity can be set at will according to the test requirement through the scheme, for example, 500 times, 1000 times or other times of test object setting drawing are performed on the handwriting to be tested to complete the test process, because the input of each handwriting to be tested is automatically completed, the influence of the adjustment of the test intensity on the test time is very small. And the setting of the foreground color and the background color based on high contrast is also beneficial to the accurate judgment of the abnormal state.
In the specific test process, based on the whole test assumption, output of the result when the abnormality is detected can be further realized through step S105.
Step S105: when the handwriting to be detected is determined to be abnormal, identifying the abnormal handwriting to be detected and outputting the identified picture.
And directly outputting the normal evaluation to the test result of the handwriting to be tested, wherein the test result is completely judged to be in a normal state. If the handwriting to be detected is determined to be in an abnormal state, identifying the handwriting to be detected in the abnormal state in the screenshot, and outputting the identified picture for subsequent processing.
In addition, in the specific implementation of the test in this embodiment, there are two triggering modes in step S106 at the end of the test procedure.
Step S106: and ending the testing process when the handwriting to be tested is determined to be abnormal or the drawing number of the handwriting to be tested reaches a set threshold value.
In a specific test process, if the handwriting to be tested is always in a normal state or only in the last sub-path, ending the test process after the drawing number of the handwriting to be tested reaches a set threshold value. If the handwriting to be tested in the middle of a certain sub-path is determined to be abnormal, stopping the testing process without drawing the number of the handwriting to be tested reaching a set threshold value. Because sporadic abnormal states usually occur only after continuously accumulating running deviations in the running process of the program, the existence of the abnormal states and the corresponding accumulation degree can be rapidly confirmed when the abnormal states occur, further subsequent program modification and debugging can be performed, and meanwhile, the next test can be rapidly performed.
Of course, if the requirement of complete test is met, the number of the handwriting to be tested reaching the set threshold value can be drawn, the abnormal state of each handwriting to be tested is judged by taking the sub-path as a unit in the drawing process, and all the marks to be tested which are judged to be in the abnormal state are identified in the test result output after the drawing is finished. Through abnormal state statistics in the complete test process, the occurrence frequency of the abnormal state of program operation and the robustness of the program can be effectively counted.
Receiving a drawing sample meeting a preset input standard on a whiteboard interface to generate drawing sample parameters according to the drawing sample; responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path; after the drawing of the handwriting to be tested in one section of the sub-path is completed, capturing a screenshot of the handwriting to be tested comprising the sub-path to obtain a corresponding sub-test sample; and determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface. By automatically drawing the handwriting to be tested according to the drawing sample and determining the abnormal state of the handwriting to be tested based on the comparison of the color values, the test efficiency of writing test and the accuracy of the test structure in whiteboard application are improved.
Example two
Fig. 7 is a schematic structural diagram of a device for testing writing handwriting of a whiteboard according to a second embodiment of the present invention. Referring to fig. 7, the test device of whiteboard writing trace includes: a sample receiving unit 210, a handwriting drawing unit 220, a segmentation screenshot unit 230, and a color value comparison unit 240.
The sample receiving unit 210 is configured to receive, at a whiteboard interface, a drawing sample that meets a preset input standard, so as to generate drawing sample parameters according to the drawing sample; a handwriting drawing unit 220, configured to draw a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path in response to a handwriting test instruction, where drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path includes at least one section of sub-path; the subsection screenshot unit 230 is configured to obtain, after drawing of the handwriting to be tested in one section of the sub-path is completed, a corresponding sub-test sample from the screenshot including the handwriting to be tested in the sub-path; and the color value comparison unit 240 is configured to determine an abnormal state of the handwriting to be detected based on the comparison between the color value of the handwriting to be detected and the color value of the whiteboard interface.
On the basis of the above embodiment, the sample receiving unit 210 includes:
The standard display module is used for displaying the input standard of the drawing sample on the whiteboard interface;
The sample detection module is used for receiving a drawing sample at the whiteboard interface;
And the parameter confirmation module is used for confirming that the writing track meets the input standard of the drawing sample, and saving the track parameter corresponding to the writing track as the drawing sample parameter.
On the basis of the above embodiment, the test device further includes:
and the test ending unit is used for ending the test process when the handwriting to be tested is determined to be abnormal or the drawing number of the handwriting to be tested reaches a set threshold value.
On the basis of the above embodiment, the test device further includes:
And the page newly-built unit is used for newly-built blank pages on the whiteboard interface to draw the handwriting to be tested when the number of the handwriting to be tested drawn in the whiteboard interface reaches an upper limit value.
On the basis of the above embodiment, the color value comparison unit 240 includes:
the picture amplifying module is used for amplifying the picture corresponding to the sub-test sample to obtain an amplified picture;
the color value extraction module is used for extracting the color value of each pixel point in the amplified picture;
and the color value comparison module is used for determining the abnormal state of the handwriting to be detected according to the color value of the pixel point corresponding to the drawing parameter and the color value of the whiteboard interface.
On the basis of the above embodiment, the test device further includes:
And the abnormality marking unit is used for identifying the abnormal handwriting to be detected and outputting the identified picture when the handwriting to be detected is determined to be abnormal.
On the basis of the embodiment, the input standards comprise input standards of handwriting content and input standards of handwriting length.
On the basis of the embodiment, the difference between the color value of the handwriting to be detected and the color value of the whiteboard interface is not smaller than a preset contrast difference.
On the basis of the embodiment, the writing path is a plurality of concentric annular paths, each annular path is a section of sub-path, each section of sub-path is mutually disjoint, and the writing to be measured is drawn from outside to inside.
The testing device of the whiteboard writing trace provided by the embodiment of the invention is contained in the testing equipment of the whiteboard writing trace, can be used for executing the testing method of any whiteboard writing trace provided in the first embodiment, and has corresponding functions and beneficial effects.
Example III
Fig. 8 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention, where the terminal device is a specific hardware presentation scheme of the foregoing Bai Banshu handwriting writing test device. As shown in fig. 8, the terminal device includes a processor 310, a memory 320, an input means 330, an output means 340, and a communication means 350; the number of processors 310 in the terminal device may be one or more, one processor 310 being taken as an example in fig. 8; the processor 310, memory 320, input means 330, output means 340 and communication means 350 in the terminal device may be connected by a bus or other means, in fig. 8 by way of example.
The memory 320 is used as a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to a method for testing whiteboard writing in an embodiment of the present invention (for example, the sample receiving unit 210, the handwriting drawing unit 220, the segmentation screenshot unit 230, and the color value comparison unit 240 in a device for testing whiteboard writing). The processor 310 executes various functional applications of the terminal device and data processing by running software programs, instructions and modules stored in the memory 320, i.e. implements the above-mentioned test method of whiteboard writing.
Memory 320 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal device, etc. In addition, memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 320 may further include memory located remotely from processor 310, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 330 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. The output device 340 may include a display device such as a display screen.
The terminal equipment comprises the testing device of the whiteboard writing, can be used for executing the testing method of any whiteboard writing, and has corresponding functions and beneficial effects.
Example IV
The embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the relevant operations in the method for testing whiteboard writing scripts provided in any of the embodiments of the present application, and have corresponding functions and beneficial effects.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method of testing whiteboard writing, comprising:
Receiving a drawing sample meeting a preset input standard at a whiteboard interface, so as to generate drawing sample parameters according to the drawing sample;
Responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path;
After the drawing of the handwriting to be tested in one section of the sub-path is completed, capturing a screenshot of the handwriting to be tested comprising the sub-path to obtain a corresponding sub-test sample;
determining an abnormal state of the handwriting to be detected based on comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface;
Ending the test process when the handwriting to be tested is determined to be abnormal or the drawing number of the handwriting to be tested reaches a set threshold value;
And when the number of the handwriting to be measured, which is drawn in the whiteboard interface, reaches an upper limit value, a blank page is newly built on the whiteboard interface, and the handwriting to be measured is drawn.
2. The method according to claim 1, wherein receiving a drawing sample satisfying a preset input standard at a whiteboard interface to generate drawing sample parameters from the drawing sample, comprises:
displaying input standards of the drawn samples on the whiteboard interface;
Receiving a drawing sample at the whiteboard interface;
and when the writing track meets the input standard of the drawing sample, storing track parameters corresponding to the writing track as the drawing sample parameters.
3. The method according to claim 1, wherein the determining the abnormal state of the handwriting to be measured based on the comparison of the color value of the handwriting to be measured and the color value of the whiteboard interface includes:
amplifying the picture corresponding to the sub-test sample to obtain an amplified picture;
Extracting a color value of each pixel point in the amplified picture;
And comparing the color value of the pixel point corresponding to the drawing parameter with the color value of the whiteboard interface, and determining the abnormal state of the handwriting to be detected.
4. The test method of claim 1, further comprising:
when the handwriting to be detected is determined to be abnormal, identifying the abnormal handwriting to be detected and outputting the identified picture.
5. A method of testing according to claim 1, wherein the input criteria include input criteria for handwriting content and input criteria for handwriting length.
6. The method according to claim 1, wherein a difference between the color value of the handwriting to be measured and the color value of the whiteboard interface is not less than a preset contrast difference.
7. The method according to claim 1, wherein the writing path is a plurality of concentric circular paths, each circular path is a segment of sub-path, each segment of sub-path is mutually exclusive, and the writing to be measured is drawn from outside to inside.
8. A whiteboard writing testing device, comprising:
The sample receiving unit is used for receiving a drawing sample meeting a preset input standard on a whiteboard interface so as to generate drawing sample parameters according to the drawing sample;
the handwriting drawing unit is used for responding to handwriting test instructions, drawing a plurality of handwriting to be tested on the whiteboard interface according to a preset writing path, wherein drawing parameters of each handwriting to be tested are generated according to the drawing sample parameters, and the writing path comprises at least one section of sub-path;
the subsection screenshot unit is used for obtaining a corresponding sub-test sample from the screenshot of the handwriting to be tested in the sub-path after the handwriting to be tested in one section of the sub-path is drawn;
the color value comparison unit is used for determining the abnormal state of the handwriting to be detected based on the comparison of the color value of the handwriting to be detected and the color value of the whiteboard interface;
The test ending unit is used for ending the test process when the handwriting to be tested is determined to be abnormal or the drawing number of the handwriting to be tested reaches a set threshold value;
And the page newly-built unit is used for newly-built blank pages on the whiteboard interface to draw the handwriting to be tested when the number of the handwriting to be tested drawn in the whiteboard interface reaches an upper limit value.
9. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
When executed by the one or more processors, causes the one or more processors to implement the method of testing whiteboard writing writings of any one of claims 1-7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of testing whiteboard writing in accordance with any one of claims 1 to 7.
CN202010943081.4A 2020-09-09 2020-09-09 Method, device and equipment for testing writing of whiteboard and storage medium Active CN112256146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010943081.4A CN112256146B (en) 2020-09-09 2020-09-09 Method, device and equipment for testing writing of whiteboard and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010943081.4A CN112256146B (en) 2020-09-09 2020-09-09 Method, device and equipment for testing writing of whiteboard and storage medium

Publications (2)

Publication Number Publication Date
CN112256146A CN112256146A (en) 2021-01-22
CN112256146B true CN112256146B (en) 2024-05-03

Family

ID=74231770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010943081.4A Active CN112256146B (en) 2020-09-09 2020-09-09 Method, device and equipment for testing writing of whiteboard and storage medium

Country Status (1)

Country Link
CN (1) CN112256146B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115457113B (en) * 2022-09-03 2023-05-23 北京津发科技股份有限公司 Man-machine interaction movement track detection method, device, equipment and readable storage medium
CN117555443B (en) * 2024-01-12 2024-04-02 江苏纳帝电子科技有限公司 Touch screen writing detection analysis method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422974A (en) * 2017-07-21 2017-12-01 广州视源电子科技股份有限公司 Handwriting writing display method and system based on dual systems, storage medium and equipment
WO2018103226A1 (en) * 2016-12-07 2018-06-14 广州视源电子科技股份有限公司 Method and device for generating handwriting format document on the basis of picture
CN110928459A (en) * 2019-10-09 2020-03-27 广州视源电子科技股份有限公司 Writing operation method, device, equipment and storage medium of intelligent interactive tablet
CN111433830A (en) * 2017-12-15 2020-07-17 深圳市柔宇科技有限公司 Handwriting processing method and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103226A1 (en) * 2016-12-07 2018-06-14 广州视源电子科技股份有限公司 Method and device for generating handwriting format document on the basis of picture
CN107422974A (en) * 2017-07-21 2017-12-01 广州视源电子科技股份有限公司 Handwriting writing display method and system based on dual systems, storage medium and equipment
CN111433830A (en) * 2017-12-15 2020-07-17 深圳市柔宇科技有限公司 Handwriting processing method and related equipment
CN110928459A (en) * 2019-10-09 2020-03-27 广州视源电子科技股份有限公司 Writing operation method, device, equipment and storage medium of intelligent interactive tablet

Also Published As

Publication number Publication date
CN112256146A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN109189682B (en) Script recording method and device
CN112256146B (en) Method, device and equipment for testing writing of whiteboard and storage medium
CN111292302B (en) Screen detection method and device
CN108874292B (en) Comment display method and device and intelligent interactive panel
CN110134600B (en) Test script recording method, device and storage medium
CN109978044B (en) Training data generation method and device, and model training method and device
CN111291661A (en) Method and equipment for identifying text content of icons in screen
CN111124888A (en) Method and device for generating recording script and electronic device
CN107870856A (en) Video playback starting duration method of testing, device and electric terminal
CN112634227A (en) Detection and identification method and device for PCB jointed board, electronic equipment and storage medium
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN113076257A (en) Test script recording method, device, medium and computer equipment
CN110248235B (en) Software teaching method, device, terminal equipment and medium
US20180336122A1 (en) Generating application flow entities
CN116527879A (en) Set top box testing method, device, medium and computer device
CN111327745B (en) Method and equipment for testing silencing key of mobile terminal
US20220398895A1 (en) Methods, Apparatuses, Systems, Media, and Computer Devices for Processing Data
CN110968513B (en) Recording method and device of test script
CN111026644B (en) Operation result labeling method and device, storage medium and electronic equipment
CN114187658A (en) Input operation identification method and equipment
CN113900932A (en) Test script generation method, device, medium and electronic equipment
CN110569184B (en) Test method and terminal equipment
CN114116474A (en) Software checking method and device, electronic equipment and storage medium
CN112188192A (en) Code stream adaptability test method, system, computer equipment and storage medium
CN116225298B (en) Note processing method, device, terminal equipment and storage medium

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