CN108573245A - A kind of track restoring method based on dot matrix image - Google Patents

A kind of track restoring method based on dot matrix image Download PDF

Info

Publication number
CN108573245A
CN108573245A CN201810403886.2A CN201810403886A CN108573245A CN 108573245 A CN108573245 A CN 108573245A CN 201810403886 A CN201810403886 A CN 201810403886A CN 108573245 A CN108573245 A CN 108573245A
Authority
CN
China
Prior art keywords
dot matrix
image
image data
pressure
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.)
Withdrawn
Application number
CN201810403886.2A
Other languages
Chinese (zh)
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.)
Beijing Chi Lu Management Consulting Co Ltd
Original Assignee
Beijing Chi Lu Management Consulting 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 Beijing Chi Lu Management Consulting Co Ltd filed Critical Beijing Chi Lu Management Consulting Co Ltd
Priority to CN201810403886.2A priority Critical patent/CN108573245A/en
Publication of CN108573245A publication Critical patent/CN108573245A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/142Image acquisition using hand-held instruments; Constructional details of the instruments
    • G06V30/1423Image acquisition using hand-held instruments; Constructional details of the instruments the instrument generating sequences of position coordinates corresponding to handwriting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The present embodiments relate to a kind of track restoring method based on dot matrix image, including:Identification device receives writing pressure input by user;When writing pressure arrival preset pressure threshold value, according to writing pressing creation image capture instruction;Identification device acquires the image data in passed through dot matrix region, and the acquisition time of recording image data and writing pressure;The incidence relation established image data, write pressure and acquisition time;Binary conversion treatment is carried out to image data, obtains the first dot matrix image;The second dot matrix image is intercepted in the first dot matrix image;Dot matrix code identification is carried out to the second dot matrix image, obtains the corresponding coordinate information of image data;Data packet is generated according to the associated writing pressure of the coordinate information of image data and image data, acquisition time, is sent to host computer;Host computer generates the movement locus of identification device according to coordinate information and corresponding writing pressure, acquisition time.

Description

A kind of track restoring method based on dot matrix image
Technical field
The present invention relates to data processing field more particularly to a kind of track restoring method based on dot matrix image.
Background technology
With the rapid development of information technology, people are increasingly commonly produced, are handled, exchanged and propagated using computer Various forms of information.Information technology gradually changes people’s lives custom.It is traditional to be write using paper and pen Mode can not carry out information process-, therefore cannot be satisfied the needs of people.
Generally realize that the digitlization of person's handwriting stores by digital pen in the prior art.However digital pen in the prior art is known Other precision is low, and the person's handwriting line width reproduced is consistent, then in information recording process, it can not be by easy means in emphasis Appearance is labeled, further, the writing process that existing digital pen can only be reproduced to writing result, and cannot be identified the handwriting It is reproduced, then in teaching process, teacher can not just learn the order of writing strokes of student, can not instruct student.
Invention content
The purpose of the present invention is in view of the drawbacks of the prior art, providing a kind of track restoring method based on dot matrix image, Handwriting trace is obtained by acquisition to dot matrix image data and identification, accuracy of identification is high, and can be raw according to writing pressure At the different handwriting trace of thickness, the mark of key content is can be realized as by simply changing pressure, further, moreover it is possible to The constant speed reduction of enough binding time information realization writing processes reproduces, and can show the information such as the order of strokes observed in calligraphy that it is write, data processing Speed is fast, and data transmission security is strong, substantially increases user experience.
In view of this, an embodiment of the present invention provides a kind of track restoring method based on dot matrix image, including:
Identification device receives writing pressure input by user;
Judge whether the writing pressure reaches preset pressure threshold value;
When the writing pressure reaches the preset pressure threshold value, referred to according to the writing pressing creation Image Acquisition It enables;
The identification device acquires the image data in passed through dot matrix region, and when recording the acquisition of described image data Between and the writing pressure;
Establish described image data, the incidence relation for writing pressure and the acquisition time;
Binary conversion treatment is carried out to described image data, obtains the first dot matrix image;
According to preset rules, the second dot matrix image is intercepted in first dot matrix image;
Dot matrix code identification is carried out to second dot matrix image, obtains the corresponding coordinate information of described image data;
According to the coordinate information of described image data and the associated writing pressure of described image data, acquisition time Data packet is generated, host computer is sent to;
The host computer parses the data packet, obtains coordinate information and the corresponding writing pressure, adopts Collect the time;
Corresponding line width values are obtained according to the writing pressure;
The movement rail of the identification device is generated according to the coordinate information and the corresponding line width values, acquisition time Mark.
Preferably, described that binary conversion treatment is carried out to described image data, it obtains the first dot matrix image and specifically includes:
The pixel value of each pixel in described image data is compared with the presetted pixel value;
Assignment is carried out to each pixel in described image data according to the comparing result;
First dot matrix image is obtained according to the assignment of each pixel.
Preferably, described that each pixel progress assignment in described image data is specifically wrapped according to the comparing result It includes:
It is 255 by the pixel assignment when the pixel value of pixel in described image data is more than presetted pixel value;
It is 0 by the pixel assignment when the pixel value of pixel in described image data is less than presetted pixel value.
Preferably, described that dot matrix code identification is carried out to second dot matrix image, it is corresponding to obtain described image data Coordinate information specifically includes:
Dot matrix identifying processing is carried out to second dot matrix image, obtains multiple lattice points;
The distance between adjacent lattice point is calculated, and the distance between the adjacent lattice point being calculated is located Reason, obtains distance;
Lattice point of the distance between the described adjacent lattice point in preset threshold range is chosen as feature dot matrix group;
Lattice point in the feature dot matrix group is subjected to line, and determines the line direction;
The central point for choosing second dot matrix image generates net according to the direction of the distance and the line Lattice;
The direction that the grid element center point is deviated according to the lattice point obtains the coding letter in second dot matrix image Breath;
The coding information is matched with the code value in code book list and calculates matching degree;
When the matching degree reaches preset matching threshold value, the coordinate letter that code value generates target point is obtained according to matching Breath.
It is further preferred that it is described according to matching obtain code value generate target point coordinate information after, the side Method further includes:
Obtain the code value of multiple neighbor points of the target point;
The code book list is updated according to the code value of the multiple neighbor point.
Preferably, before the host computer parses the data packet, the method further includes:
The incidence relation write between pressure and line width values is established, and pressure-line width song is generated according to the incidence relation Line.
It is further preferred that described be specially according to the corresponding line width values of writing pressure acquisition:
According to the writing pressure and described obtain the corresponding line width values of the writing pressure at pressure-line width curve.
Preferably, it is described judge whether the writing pressure reaches preset pressure threshold value after, the method further includes:
When not reaching, the identification device generates prompt message.
Preferably, the dot matrix region is specially writing paper or electronic whiteboard with dot-matrix array.
A kind of track restoring method based on dot matrix image provided in an embodiment of the present invention, by dot matrix image data Acquisition and identification obtain handwriting trace, and accuracy of identification is high, and can generate the different writing rail of thickness according to pressure is write Mark can be realized as the mark of key content by simply changing pressure, further, additionally it is possible to binding time information realization The constant speed reduction of writing process reproduces, and can show the information such as the order of strokes observed in calligraphy that it is write, data processing speed is fast, data transmission security Property is strong, substantially increases user experience.
Description of the drawings
Fig. 1 is a kind of track restoring method flow chart based on dot matrix image provided in an embodiment of the present invention;
Fig. 2 is a kind of dot matrix area schematic provided in an embodiment of the present invention;
Fig. 3 is dot matrix code identification method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of grid schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of coding unit schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Track restoring method provided in an embodiment of the present invention based on dot matrix image, is realized based on identification device, is led to The difference that user writes pressure when writing is crossed, the different person's handwriting of thickness is generated, user is made to can be completed in writing process pair The mark of key content, instead of it is existing after the completion of writing by overstriking or other complicated approach to key content into rower The method of note saves a large amount of time, easy to use, and can also binding time information realization writing process constant speed also Original reproduces, and can show the information such as the order of strokes observed in calligraphy that it is write.
Fig. 1 is a kind of track restoring method flow chart based on dot matrix image provided in an embodiment of the present invention, such as Fig. 1 institutes Show, including:
Step 101, identification device receives writing pressure input by user;
Identification device is the equipment for having Image Acquisition, identification and processing function, and user is using identification device in dot matrix area Domain is write, and identification device is acquired the writing pressure of user by built-in pressure sensitive module.
Wherein, dot matrix region can be writing paper or electronic whiteboard with dot-matrix array.Fig. 2 carries for the embodiment of the present invention The schematic diagram in a kind of dot matrix region supplied, as shown in Fig. 2, dot-matrix array is advised by some very tiny points according to particular algorithm Then rearrange.Dot matrix represents special coordinate information by special coding mode, and the effect of dot matrix is available to identification One coordinate parameters information of device ensures that identification device when being moved on dot matrix paper, can accurately record movement locus.Ability Field technique personnel can carry out the size and lattice distance at dot-matrix array midpoint according to precision, the processing capacity of identification device Design.
Identification device of the present invention can write the difference of pressure according to user when writing, and it is different to generate thickness Person's handwriting, therefore before user writes, the method further includes that identification device receives pressure calibration input by user instruction, than As user can be instructed by the key-press input pressure calibration of identification device;Identification device instructs according to pressure calibration and obtains correction Pressure, and pressure acquisition prompt message is generated according to calibrating (base measuring) pressure, may include multiple correction pressures in pressure acquisition prompt message Power, such as the receptible Pressure maximum value of identification device institute or minimum value etc., pressure acquisition prompt message can pass through identification The display screen of device is shown, can also be reported by voice module;User is according to pressure acquisition prompt message to knowing Other device applies pressure, and identification device acquires actual pressure input by user;If actual pressure reaches calibrating (base measuring) pressure, generate Correct successfully prompt message.If in default acquisition time, when actual pressure does not reach calibrating (base measuring) pressure, generation re-calibrates Prompt message.By pressure correction, user can experience the pressure sensitive range of identification device, should when writing to understand Use great pressure.
Step 102, judge to write whether pressure reaches preset pressure threshold value;
Wherein, preset pressure threshold value is designed according to the normal writing physical strength of people, is advance before identification device manufacture Storage.
When writing, only reach preset pressure threshold value when writing pressure, could start camera built in identification device, Memory and processor work, therefore identification device will judge whether collected writing pressure reaches preset pressure threshold Value cannot start camera, memory and the processing built in identification device when writing pressure does not reach preset pressure threshold value Device works, specific to execute step 103;When writing pressure arrival preset pressure threshold value, will start built in identification device Camera, memory and processor, it is specific to execute step 104.
Step 103, identification device generates prompt message;
When writing pressure does not reach preset pressure threshold value, identification device can generate prompt message, prompt user current Writing physical strength is inadequate, please increase writing physical strength, which can be shown by the display screen of identification device, can also It is reported by voice module.
Step 104, according to writing pressing creation image capture instruction;
When writing pressure arrival preset pressure threshold value, pressure value when identification device can be write according to user generates image Acquisition instructions start camera, memory and processor built in identification device and work.
Step 105, identification device acquires the image data in passed through dot matrix region, and when the acquisition of recording image data Between and write pressure;
Specifically, the image data in the dot matrix region passed through using the camera capturing and recognition device of identification device.At this In example, the size of the camera image data per second for acquiring 70 frames, image data is, image relevant according to camera size Data are preferably dimensioned to be 200 × 200 pixels.In writing process, identification device forms movement locus in dot matrix region, simultaneously The camera of identification device carries out continuous acquisition to the corresponding image data of movement locus, to obtain multiple image number According to when user encounters key content or needs the content of special attention when writing, pressure can be increased, so that it may in follow-up pen Mark obtains the person's handwriting of overstriking when restoring.
Step 106, the incidence relation established image data, write pressure and acquisition time;
After often collecting a frame image data, the image data will be established and write between pressure, acquisition time Incidence relation, to be restored again according to the thickness for writing pressure reduction person's handwriting, and to the constant speed of writing process in subsequent process It is existing.
Step 107, binary conversion treatment is carried out to image data, obtains the first dot matrix image;
Specifically, selecting a pixel value appropriate as presetted pixel value in pixel value range 0-255, traversal is entire The all pixels of image compare the pixel value of each pixel in image data with presetted pixel value, according to comparing result Assignment is carried out to each pixel in image data:When more than presetted pixel value, 255 are assigned a value of, when being less than presetted pixel value, is assigned Value is 0;It is black by the pixel placement for being assigned a value of 0, is white by the pixel placement for being assigned a value of 255, to according to pixel assignment Corresponding color generates the first dot matrix image, and the region without dot matrix so just becomes white, has the region of dot matrix just to become black, Dot matrix is made of multiple black pixel points, clear-cut between dot matrix, and other in addition to the black picture element of dot matrix is all white pixel, And then remove background interference, take foreground image.
Step 108, according to preset rules, the second dot matrix image is intercepted in the first dot matrix image;
In a specific example, the original image of identification device acquisition is larger, and the image for coding does not need this Big, if original image is 200 × 200 pixels, and actually required image size is 160 × 160 pixels, with 10 pixels For step-length, then there is the second dot matrix image of 5 × 5 160 × 160 pixels available.
Wherein, those skilled in the art can be according to the processing capacity and precision of identification device to default step-length and second point The size of system of battle formations picture is set.
Step 109, dot matrix code identification is carried out to the second dot matrix image, obtains the corresponding coordinate information of image data;
Fig. 3 is dot matrix code identification method flow chart provided in an embodiment of the present invention, the dot matrix code identification method tool Body includes the following steps:
Step 201, dot matrix identifying processing is carried out to the second dot matrix image, obtains multiple lattice points;
Pixel in image has the neighborhood of the first preset quantity, such as 4 neighborhoods or 8 neighborhoods.To each second dot chart As carrying out dot matrix identifying processing, specifically, each pixel in the second dot matrix image of identification, as the neighbour of the first preset quantity of pixel When domain is black, pixel is labeled as lattice point, to obtain the lattice point in the second dot matrix image.Wherein, the first present count Amount could be provided as 8, that is to say, that each pixel has 8 fields, and it is all black to recognize black picture element and its 8 field, then This pixel can be used as lattice point.
After this, the method further includes:Lattice point quantity in each second dot matrix image is summed up, is obtained Lattice point quantity in each second dot matrix image.The identification of dot matrix image has the quantity of lattice point in certain requirement, dot matrix Quantity will be in preset quantity threshold range, for example at least needs 120 dot matrix, must not be more than 140 dot matrix, then remove interception The dot matrix quantity arrived is less than 120 and the second dot matrix image more than 140, chooses dot matrix quantity in preset threshold range Second dot matrix image.Wherein, preset quantity threshold range is preset, when the point recognized in a certain second dot matrix image The lower limit that lattice point quantity is less than preset quantity threshold value illustrates that the second dot matrix image image quality being truncated to is bad, cannot carry out follow-up The identification of coding;When the upper limit explanation that the lattice point quantity recognized in a certain second dot matrix image is more than predetermined threshold value is truncated to The second dot matrix image image quality there may be many noises, to increase the quantity of dot matrix in image, therefore dot matrix is counted Amount can not carry out the identification of next code more than the second dot matrix image of preset quantity threshold value, therefore lattice point quantity is default The second dot matrix image within the scope of amount threshold illustrates that the acquisition recognition effect of this second dot matrix image is good, can be alternately Code identification image, then second dot matrix image at reselection closest to the first dot matrix image center, which is used as, can recognize that matrix, into The identification of row next code information.
During Image Acquisition, due to the influence of light filling effect or other extraneous factors, adopting for image may be influenced Collect effect, to be impacted to dot matrix identification, causes the dot matrix quantity recognized to be less than the lower limit of preset threshold range, therefore Before choosing second dot matrix image of the quantity of lattice point in preset threshold range, method further includes to the second dot matrix image In the quantity of lattice point be ranked up, if the quantity maximum value of lattice point is less than the lower limit of preset threshold range, also It is to say that the second dot matrix image of the lattice point recognized at most not in preset threshold range, illustrates in image data acquiring Or there may be the overall effects that uncertain factor affects image data when image data carries out binary conversion treatment, at this The pixel that the neighborhood of the second preset quantity is black is labeled as lattice point by identification device automatically in the case of kind, to increase identification The lattice point quantity arrived, carries out the identification of next code, that is to say, that in dot matrix identification process, if dot matrix quantity is most The second dot matrix image in dot matrix quantity be less than preset threshold range lower limit, then re-recognize lattice point, second preset The neighborhood of quantity is that the pixel of black is labeled as lattice point, for example supplements 7 neighborhoods or 6 neighborhoods be all the pixel of black are dot matrix Then point chooses the second dot matrix image closest to picture centre as recognizable matrix again.
It should be noted that those skilled in the art can set and adjust to the second preset quantity as needed, Until the dot matrix quantity in the second dot matrix image is in preset threshold range.
Step 202, calculate the distance between the distance between adjacent lattice point, and adjacent lattice point to being calculated into Row processing, obtains distance;
Specifically, traversing each lattice point in selected the second dot matrix image as recognizable matrix, take adjacent The distance of lattice point removes the maximum value and minimum value of preset quantity in obtained distance, and to remove, there may be identifications The distance between error lattice point, remaining distance calculates average value, using the average value as distance, as subsequent meshes Grid spacing in generating process.
Wherein, the preset quantity for removing maximum value and minimum value in obtained distance can be adjacent according to what is be calculated Between lattice point depending on the distribution situation of distance.In a specific example, can by the adjacent lattice point being calculated it Between distance divided according to apart from its difference, being less than certain value apart from its difference is divided into one group, to divide above-mentioned distance To be multigroup, then the distance in each group is not assigned to, the several maximum values and minimum value as isolated.
Step 203, lattice point of the distance between the adjacent lattice point in preset threshold range is chosen as feature dot matrix Group;
Wherein, predetermined threshold value is set according to distance obtained above and preset rules.
Specifically, the distance for being less than distance to the distance between adjacent lattice point is grouped division, apart from its difference Be divided into one group less than certain value, to obtain multigroup distance, the difference between every group of distance in a certain range, multigroup Selected distance is minimum between distance one group, using corresponding lattice point between group distance as feature dot matrix group, every group of feature Dot matrix group includes two feature lattice points.
Step 204, the lattice point in feature dot matrix group is subjected to line, and determines line direction;
Specifically, the lattice point in obtained multigroup feature dot matrix group is carried out line, the point in every group of feature dot matrix group The line of lattice point determines a direction, and the line of the lattice point in multigroup feature dot matrix group can determine that multiple directions, due to dot matrix Point is according to specific aligned transfer, therefore these directions are either parallel or vertical.
Step 205, the central point for choosing the second dot matrix image generates grid according to the direction of distance and line;
Specifically, obtain the central point as the second dot matrix image that can recognize that matrix, and as center, with spacing away from From for spacing, a plurality of grid lines, grid are generated along the line direction of multigroup feature dot matrix class mid point lattice point and vertical join line direction Line intersection generates virtual grid, specific as shown in Figure 4.
Step 206, the coding information in the second dot matrix image is obtained according to the direction of lattice point offset grids central point;
Regard each grid as a coding unit, in a specific example, as shown in figure 5, providing one kind One coding unit is divided into 4 quadrants by coding mode, and two are assigned according to the different polarization direction of lattice point offset grids central point Hex value, such as 00,01,10,11 indicate four directions, to obtain the corresponding encoded radio of lattice point, and then obtains entire the The coding information of two dot matrix images.It should be noted that those skilled in the art can be as needed to an offset grids central point Direction and distance, coding mode is set.
For speed up processing, the coding in the second dot matrix image is obtained according to the direction of lattice point offset grids central point Information specifically includes:The lattice point that default matrix is randomly selected in the second dot matrix image, it is inclined according to lattice point in default matrix The direction for moving grid element center point obtains corresponding coding information.In a specific example, as shown in figure 4, obtain Two dot matrix images include 8 × 8 lattice points, and 6 × 6 lattice points are randomly selected in 8 × 8 lattice points, then further according to this 6 The direction of × 6 lattice point offset grids central points is encoded, and then obtains coding information.
To ensure to finally obtain the accuracy of position coordinates, after choosing the lattice point for presetting matrix, selection is calculated The offset distance at matrix center and the second dot chart inconocenter, specifically, the lattice point color of the second dot matrix image is deeper, it is other Local color is all very shallow, and the coordinate of each lattice point can be worth to according to pixel, by the coordinate of 6 × 6 lattice points and 8 × 8 Dot matrix point coordinates is matched, and completely the same coordinate is exactly successful match, the matrix center and second to be randomly selected The offset distance at dot matrix image center, according to the offset distance at the matrix center and the second dot chart inconocenter that randomly select to most The position coordinates obtained eventually are corrected.
Step 207, coding information is matched with the code value in code book list and calculates matching degree;
Wherein, code value is stored in code book list, code value is made of multiple codings.
The coding information of the second dot matrix image recognized is matched with the code value in code book list, and calculating With degree.
Step 208, when matching degree reaches preset matching threshold value, the coordinate that code value generates target point is obtained according to matching Information;
Specifically, when matching degree reaches preset matching threshold value, such as 95%, it is considered as successful match, it just will be matched Code value in code book list is converted to physical coordinates, physical coordinates is converted to the application coordinate of target point, wherein physics is sat Mark is made of one 64 x values and one 64 y values, has uniqueness in entire dot matrix sequence.Refer to using coordinate It converts to obtain by ad hoc rules and algorithm according to physical coordinates, by the address value of 64 character types, 16 x values, 16 The y values composition of position can navigate to the certain point in certain specific one page by address and x, y.
The position coordinates of pen tip in order to obtain, method further include being corrected to coordinate information, i.e. the base in application coordinate Offset coordinates are added on plinth, obtain the coordinate information of pen tip, wherein offset coordinates obtain before use, specifically, The offset of image center position and pen tip position is obtained, then offset parameter is stored in the flash of pen, is made in user Used time reads offset, to obtain pen tip by image procossing and after picture centre point coordinates is calculated from flash Coordinate information.
After match cognization success, method further includes:Obtain the code value of multiple neighbor points of target point;According to multiple The code value of neighbor point updates code book list, that is to say, that after identifying successfully every time, code book list can all update, to carry out down Primary matching.
Step 110, according to the associated writing pressure of the coordinate information of image data and image data, acquisition time Data packet is generated, host computer is sent to;
Specifically, a corresponding target point will be obtained after often collecting frame image data processing in writing process Coordinate information writes pressure and acquisition time, according to coordinate information, writes pressure and acquisition time generates data packet, in real time on It is transmitted to host computer.
To ensure data transmission security, data packet is encrypted in data transmission, after being encrypted by data-interface Data packet be sent to host computer.
Wherein, host computer refers to the equipment with processing, display function, is specifically as follows smart mobile phone, pad or computer Deng.Data-interface is wired data interface or wireless data interface;Wired data interface is specially USB interface, and MiniUSB connects Mouth, MicroUSB interfaces, parallel port, serial ports;Wireless data interface is specially blue tooth interface, infrared interface, Wifi interfaces, 2.4- 5.0GHz wave bands interface or wireless communication interface.
In data transmission, need to judge whether identification device is on line state;When identification device is on line state, Host computer is delivered a packet to by data-interface;It is when identification device is in off-line state, data packet is locally stored, when When identification device is online again, locally-stored data are uploaded to host computer.
Step 111, host computer parses data packet, when obtaining coordinate information and corresponding writing pressure, acquisition Between;
Identification device of the present invention can write the difference of pressure according to user when writing, and it is different to generate thickness Person's handwriting, therefore host computer parse data packet before, the method further includes:Establish the pass write between pressure and line width values Connection relationship, and pressure-line width curve is generated according to incidence relation, it is stored in host computer, in a preferred embodiment, Ke Yigen Different pressure-line width curve is set according to the difference of age of user, such as children or pupil, when writing pressure compared with Small, for adult, pressure is larger when writing, and user can select corresponding writing pressure in purchase according to the age Identification device generate the person's handwriting of corresponding line width thickness so as to the pressure write according to user.
Step 112, corresponding line width values are obtained according to writing pressure;According to coordinate information and corresponding line width values, Acquisition time generates the movement locus of identification device.
In writing process, identification device sends the corresponding data packet of each frame image in real time, and host computer is to data packet solution Analysis obtains the corresponding coordinate information of each frame image and corresponding acquisition time, line width values, according to coordinate information and relatively The movement locus of the line width values, acquisition time generation identification device answered, constant speed is carried out in real time again to the movement locus of identification device It is existing.For user in writing process firmly write with show emphasis part can automatic overstriking show, make user in writing process In mark to key content can be completed, pass through overstriking or other complicated approach counterweights after the completion of writing instead of existing The method that point content is labeled, saves a large amount of time, easy to use;And identification device can be shown by movement locus Entire writing process sequencing, rather than just to write result reproduction.
Certainly, the upload of data packet can be triggered in real time with the writing of user, can also be according to preset time Triggering, for example uploaded 10 points of every night, it can also be what user triggered manually, after user writes and finishes, touch Send out the upload of data packet.Specifically, according to the writing pressure of target point and pressure-line width curve, corresponding line width values are obtained. Host computer calculates the time interval of the acquisition time between two neighboring target point, and according to the time interval of acquisition time, root The movement locus that identification device is generated according to time interval and coordinate information, line width values, the movement locus of identification device is carried out etc. Speed reproduces, in addition, can also impart to the image acquisition time and last point of first point of track in the movement locus of generation Image acquisition time, temporal information when to show writing in track reproducing are convenient for the lookup of track.
In a specific example, student by coordinate information and adopts after carrying out writing answer using identification device The collection time is sent to the terminal of teacher, the order of writing strokes of student can be shown in the terminal of teacher, and respectively inscribe Reaction time, Statistics convenient for teacher to the guidance of student and to problem complexity.In addition, student record teacher explanation content when, Key content can be identified by increasing writing physical strength, convenient for being checked to key content.
A kind of track restoring method based on dot matrix image provided in an embodiment of the present invention, by dot matrix image data Acquisition and identification obtain handwriting trace, and accuracy of identification is high, and can generate the different writing rail of thickness according to pressure is write Mark can be realized as the mark of key content by simply changing pressure, further, additionally it is possible to binding time information realization The constant speed reduction of writing process reproduces, and can show the information such as the order of strokes observed in calligraphy that it is write, data processing speed is fast, data transmission security Property is strong, substantially increases user experience.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can use hardware, processor to execute The combination of software module or the two is implemented.Software module can be placed in random access memory (tracks of the RA based on dot matrix image Restoring method), memory, read-only memory (track restoring method of the RO based on dot matrix image), electrically programmable RO be based on dot chart It is track restoring method of the track restoring method, electrically erasable RO of picture based on dot matrix image, register, hard disk, removable Any other form of storage well known in movable magnetic disc, CD-RO track restoring method or technical field based on dot matrix image In medium.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (9)

1. a kind of track restoring method based on dot matrix image, which is characterized in that the method includes:
Identification device receives writing pressure input by user;
Judge whether the writing pressure reaches preset pressure threshold value;
When the writing pressure reaches the preset pressure threshold value, according to the writing pressing creation image capture instruction;
The identification device acquires the image data in passed through dot matrix region, and record described image data acquisition time and The writing pressure;
Establish described image data, the incidence relation for writing pressure and the acquisition time;
Binary conversion treatment is carried out to described image data, obtains the first dot matrix image;
According to preset rules, the second dot matrix image is intercepted in first dot matrix image;
Dot matrix code identification is carried out to second dot matrix image, obtains the corresponding coordinate information of described image data;
It is generated according to the coordinate information of described image data and the associated writing pressure of described image data, acquisition time Data packet is sent to host computer;
The host computer parses the data packet, when obtaining coordinate information and the corresponding writing pressure, acquisition Between;
Corresponding line width values are obtained according to the writing pressure;
The movement locus of the identification device is generated according to the coordinate information and the corresponding line width values, acquisition time.
2. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that described to described image Data carry out binary conversion treatment, obtain the first dot matrix image and specifically include:
The pixel value of each pixel in described image data is compared with the presetted pixel value;
Assignment is carried out to each pixel in described image data according to the comparing result;
First dot matrix image is obtained according to the assignment of each pixel.
3. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that described according to described right Assignment is carried out than result to each pixel in described image data to specifically include:
It is 255 by the pixel assignment when the pixel value of pixel in described image data is more than presetted pixel value;
It is 0 by the pixel assignment when the pixel value of pixel in described image data is less than presetted pixel value.
4. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that described to described second Dot matrix image carries out dot matrix code identification, obtains the corresponding coordinate information of described image data and specifically includes:
Dot matrix identifying processing is carried out to second dot matrix image, obtains multiple lattice points;
The distance between adjacent lattice point is calculated, and the distance between the adjacent lattice point being calculated is handled, Obtain distance;
Lattice point of the distance between the described adjacent lattice point in preset threshold range is chosen as feature dot matrix group;
Lattice point in the feature dot matrix group is subjected to line, and determines the line direction;
The central point for choosing second dot matrix image generates grid according to the direction of the distance and the line;
The coding information in second dot matrix image is obtained according to the direction of the lattice point offset grids central point;
The coding information is matched with the code value in code book list and calculates matching degree;
When the matching degree reaches preset matching threshold value, the coordinate information that code value generates target point is obtained according to matching.
5. the track restoring method according to claim 4 based on dot matrix image, which is characterized in that described according to matching After obtaining the coordinate information that code value generates target point, the method further includes:
Obtain the code value of multiple neighbor points of the target point;
The code book list is updated according to the code value of the multiple neighbor point.
6. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that in the host computer pair Before the data packet is parsed, the method further includes:
The incidence relation write between pressure and line width values is established, and pressure-line width curve is generated according to the incidence relation.
7. the track restoring method according to claim 6 based on dot matrix image, which is characterized in that described according to the book Writing the corresponding line width values of pressure acquisition is specially:
According to the writing pressure and described obtain the corresponding line width values of the writing pressure at pressure-line width curve.
8. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that described in the judgement After whether writing pressure reaches preset pressure threshold value, the method further includes:
When not reaching, the identification device generates prompt message.
9. the track restoring method according to claim 1 based on dot matrix image, which is characterized in that the dot matrix region tool Body is writing paper or electronic whiteboard with dot-matrix array.
CN201810403886.2A 2018-04-28 2018-04-28 A kind of track restoring method based on dot matrix image Withdrawn CN108573245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403886.2A CN108573245A (en) 2018-04-28 2018-04-28 A kind of track restoring method based on dot matrix image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403886.2A CN108573245A (en) 2018-04-28 2018-04-28 A kind of track restoring method based on dot matrix image

Publications (1)

Publication Number Publication Date
CN108573245A true CN108573245A (en) 2018-09-25

Family

ID=63575598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403886.2A Withdrawn CN108573245A (en) 2018-04-28 2018-04-28 A kind of track restoring method based on dot matrix image

Country Status (1)

Country Link
CN (1) CN108573245A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110349458A (en) * 2019-07-23 2019-10-18 湖南纸云互动智能科技有限公司 A kind of paper cloud interaction interactive system
CN110348426A (en) * 2019-07-23 2019-10-18 湖南纸云互动智能科技有限公司 A kind of Image Acquisition for electronic writing and recognition methods and equipment
CN110992000A (en) * 2019-12-04 2020-04-10 广州云蝶科技有限公司 Method for managing backlog based on dot matrix paper pen technology
CN111858858A (en) * 2020-04-29 2020-10-30 上海奇初教育科技有限公司 Intelligent wrong exercise book manufacturing method and automatic correction system
CN112131926A (en) * 2020-07-24 2020-12-25 深圳市鹰硕教育服务有限公司 Recording method and device of dot matrix writing content and electronic equipment
CN112540688A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Information generating method
CN112541378A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Method for generating image pickup motion trail
CN112540687A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method
CN112541376A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method based on pressure information
CN112541377A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Handwriting restoration method
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)
CN113391719A (en) * 2021-05-11 2021-09-14 马鞍山状元郎电子科技有限公司 Interactive touch electronic whiteboard operating system and operating method
WO2022099872A1 (en) * 2020-11-12 2022-05-19 深圳市鹰硕教育服务有限公司 Smart pen character recognition method, apparatus, and electronic device
CN115984855A (en) * 2023-02-24 2023-04-18 北京赢课信息科技有限公司 Intelligent pen writing behavior characteristic analysis method and device
CN116107441A (en) * 2023-04-13 2023-05-12 南京听说科技有限公司 Intelligent pen for teaching and examination and control system thereof

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348426A (en) * 2019-07-23 2019-10-18 湖南纸云互动智能科技有限公司 A kind of Image Acquisition for electronic writing and recognition methods and equipment
CN110349458A (en) * 2019-07-23 2019-10-18 湖南纸云互动智能科技有限公司 A kind of paper cloud interaction interactive system
CN112540688A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Information generating method
CN112541378A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Method for generating image pickup motion trail
CN112540687A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method
CN112541376A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method based on pressure information
CN112541377A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Handwriting restoration method
CN110992000B (en) * 2019-12-04 2023-04-14 广州云蝶科技有限公司 Method for managing backlogs based on dot matrix paper and pen technology
CN110992000A (en) * 2019-12-04 2020-04-10 广州云蝶科技有限公司 Method for managing backlog based on dot matrix paper pen technology
CN111858858A (en) * 2020-04-29 2020-10-30 上海奇初教育科技有限公司 Intelligent wrong exercise book manufacturing method and automatic correction system
CN112131926A (en) * 2020-07-24 2020-12-25 深圳市鹰硕教育服务有限公司 Recording method and device of dot matrix writing content and electronic equipment
WO2022099872A1 (en) * 2020-11-12 2022-05-19 深圳市鹰硕教育服务有限公司 Smart pen character recognition method, apparatus, and electronic device
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)
CN113391719A (en) * 2021-05-11 2021-09-14 马鞍山状元郎电子科技有限公司 Interactive touch electronic whiteboard operating system and operating method
CN115984855A (en) * 2023-02-24 2023-04-18 北京赢课信息科技有限公司 Intelligent pen writing behavior characteristic analysis method and device
CN115984855B (en) * 2023-02-24 2023-10-27 北京赢课信息科技有限公司 Intelligent pen writing behavior feature analysis method and device
CN116107441A (en) * 2023-04-13 2023-05-12 南京听说科技有限公司 Intelligent pen for teaching and examination and control system thereof

Similar Documents

Publication Publication Date Title
CN108573245A (en) A kind of track restoring method based on dot matrix image
CN108595031A (en) A kind of processing method of dot matrix image data
EP3413240B1 (en) Method of encoding and identifying 2d bitmap barcode
CN108549879A (en) A kind of processing method of dot matrix image
CN108596133A (en) A kind of recognition methods based on dot matrix
US10410104B2 (en) Two-dimensional dot matrix barcode encoding and reading methods
JP3706385B2 (en) Information input / output method using dot pattern
CN102640096B (en) Information input/output unit, information processor, information input-output system, print media and information I/O method
CN103576935B (en) Based on the human-computer interaction auxiliary system and method write
CN108830267A (en) A kind of method and system goed over examination papers based on image recognition
CN110221715A (en) A kind of multi-interface displaying method and system of motion track information
CN106816056A (en) A kind of intelligent operation answering system and method
CN108647610A (en) A kind of pressure compensating method based on dot matrix image acquisition
JP4498203B2 (en) Meter recognition system, meter recognition method, and meter recognition program
CN112541377A (en) Handwriting restoration method
CN110796065A (en) Calligraphy practicing scoring method and system based on image recognition and computer readable medium
CN108629308A (en) A kind of orbit generation method based on dot matrix image
KR100905705B1 (en) Method for Providing Electronic Note Service by Using Digital Paper and Pen, System and Computer-Readable Recording Medium with Program Therefor
CN108596175A (en) A kind of image correcting method and device
CN102137241A (en) Display device and display method thereof
JP2007026428A (en) Two-dimensional code generation method and reading method, and executable program
CN108710877A (en) A kind of image-pickup method
CN108596131A (en) A kind of recognition methods based on dot matrix
CN108596125A (en) A kind of data uploading method
CN108664869A (en) Dot matrix identifying system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180925