CN108595031A - A kind of processing method of dot matrix image data - Google Patents

A kind of processing method of dot matrix image data Download PDF

Info

Publication number
CN108595031A
CN108595031A CN201810403904.7A CN201810403904A CN108595031A CN 108595031 A CN108595031 A CN 108595031A CN 201810403904 A CN201810403904 A CN 201810403904A CN 108595031 A CN108595031 A CN 108595031A
Authority
CN
China
Prior art keywords
dot matrix
pressure
image data
writing
matrix image
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
CN201810403904.7A
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 CN201810403904.7A priority Critical patent/CN108595031A/en
Publication of CN108595031A publication Critical patent/CN108595031A/en
Withdrawn legal-status Critical Current

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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The present embodiments relate to a kind of processing methods of dot matrix image data, 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;Carry out binary conversion treatment;Intercept the second dot matrix image;The distance between adjacent lattice point is calculated, and the distance between the adjacent lattice point being calculated is handled, obtains distance;Lattice point of the distance between the adjacent lattice point in preset threshold range is chosen as feature dot matrix group, and determines line direction;Generate grid;Obtain the coding information in the second dot matrix image;Generate the coordinate information of target point;Coordinate information and the corresponding movement locus of writing pressing creation identification device of the host computer according to target point.

Description

A kind of processing method of dot matrix image data
Technical field
The present invention relates to data processing field more particularly to a kind of processing methods of dot matrix image data.
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, and greatly reduces user experience.
Invention content
The purpose of the present invention is in view of the drawbacks of the prior art, providing a kind of processing method of dot matrix image data, do not change Become traditional writing style, handwriting trace is obtained by acquisition to dot matrix image data and identification, accuracy of identification is high, and energy Enough according to pressure is write, the different handwriting trace of thickness is generated, can be realized as key content by simply changing pressure Mark, 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 processing methods of dot matrix image data, 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, and records the writing pressure;
The identification device acquires the image data in passed through dot matrix region;
Binary conversion treatment is carried out to described image data, obtains the first dot matrix image;
The second dot matrix image is intercepted in first dot matrix image;
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;
According to the coordinate information of target point and the corresponding writing pressing creation data packet, it is sent to host computer;
The host computer parses the data packet, obtains the coordinate information of target point and the corresponding writing Pressure;
Corresponding line width values are obtained according to the writing pressure, according to the coordinate information of the target point and corresponding Line width values generate the movement locus of the identification device.
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, after the image data that the identification device acquires passed through dot matrix region, the method is also wrapped It includes:
It establishes described image data and writes the incidence relation between pressure.
Preferably, before the host computer parses the data packet, the method further includes:
The host computer establishes the incidence relation write between pressure and line width values, and is generated and pressed according to the incidence relation Power-line width curve.
Preferably, before identification device receives writing pressure input by user, the method further includes:
The identification device receives pressure calibration instruction input by user;
It is instructed according to the pressure calibration and obtains calibrating (base measuring) pressure, and pressure acquisition prompt letter is generated according to the calibrating (base measuring) pressure Breath;
The actual pressure that acquisition user inputs according to the pressure acquisition prompt message;
When the actual pressure reaches the calibrating (base measuring) pressure, generation corrects successfully prompt message.
It is further preferred that the actual pressure inputted according to the pressure acquisition prompt message in the acquisition user it Afterwards, the method further includes:
In default acquisition time, when the actual pressure does not reach the calibrating (base measuring) pressure, generation, which re-calibrates, to be carried Show information.
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.
It is further preferred that described carry out assignment tool according to the comparing result to each pixel in described image data Body 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, it is described according to matching obtain code value generate target point coordinate information after, the method is also wrapped It 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, the dot matrix region is specially writing paper or electronic whiteboard with dot-matrix array.
A kind of processing method of dot matrix image data provided in an embodiment of the present invention, does not change traditional writing style, leads to It crosses the acquisition to dot matrix image data and identification obtains handwriting trace, accuracy of identification is high, and can be generated according to pressure is write The different handwriting trace of thickness, the mark of key content is can be realized as by simply changing pressure, and data processing speed is fast, Data transmission security is strong, substantially increases user experience.
Description of the drawings
Fig. 1 is a kind of process flow figure of dot matrix image data 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 a kind of grid schematic diagram provided in an embodiment of the present invention;
Fig. 4 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.
The processing method of dot matrix image data provided in an embodiment of the present invention is realized based on identification device, specific In, identification device can be realized by digital pen, write the difference of pressure when writing by user, and it is different to generate thickness Person's handwriting, make user that the mark to key content can be completed in writing process, instead of it is existing after the completion of writing it is logical It crosses overstriking or method that other complicated approach are labeled key content, saves a large amount of time, it is easy to use.
Fig. 1 is a kind of process flow figure of dot matrix image data provided in an embodiment of the present invention, as shown in Figure 1, packet It includes:
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 user write before, the method further includes:Identification device receives pressure calibration instruction input by user, For example user can be instructed by the key-press input pressure calibration of identification device;Identification device instructs according to pressure calibration and obtains school Normal pressure, and pressure acquisition prompt message is generated according to calibrating (base measuring) pressure, may include multiple corrections in pressure acquisition prompt message Pressure, such as the receptible Pressure maximum value of identification device institute or minimum value etc., pressure acquisition prompt message can pass through knowledge The display screen of other device is shown, can also be reported by voice module;User is according to pressure acquisition prompt message pair Identification device applies pressure, and identification device acquires actual pressure input by user;It is raw if actual pressure reaches calibrating (base measuring) pressure At correcting successfully prompt message.If in default acquisition time, when actual pressure does not reach calibrating (base measuring) pressure, school again is generated Positive prompt message.By pressure correction, user can experience the pressure sensitive range of identification device, be answered to understand when writing This uses 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, and writing pressure is recorded;
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, and record writing pressure.
Step 105, identification device acquires the image data in passed through dot matrix region;
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, therefore after often collecting a frame image data, will establish the image data and writing Incidence relation between pressure, to restore the thickness of person's handwriting in subsequent process according to writing pressure.
Step 106, 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 107, 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 108, dot matrix identifying processing is carried out to the second dot matrix image, obtains multiple lattice points;
Specifically, the pixel in image has the neighborhood of the first preset quantity, such as 4 neighborhoods or 8 neighborhoods.To each second Dot matrix image carries out dot matrix identifying processing, specifically, each pixel in the second dot matrix image of identification, when the first present count of pixel When the neighborhood of amount is black, pixel is labeled as lattice point, to obtain the lattice point in the second dot matrix image.Wherein, first Preset quantity could be provided as 8, that is to say, that each pixel has 8 fields, and recognizing black picture element and its 8 field is all Black, 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 109, 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 110, 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 111, 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 112, 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 3.
Step 113, 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 4, 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 114, 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 115, 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 116, it according to the coordinate information of target point and corresponding writing pressing creation data packet, is sent to upper Machine;
Specifically, a corresponding target point will be obtained after often collecting frame image data processing in writing process Coordinate information and writing pressure according to coordinate information and write pressing creation data packet, are uploaded to host computer in real time.
The upload of data packet can be triggered in real time with the writing of user, can also be to be triggered according to preset time , for example uploaded 10 points of every night, it can also be what user triggered manually, after user writes and finishes, trigger number According to the upload of packet.
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 117, host computer parses data packet, obtains the coordinate information and corresponding writing pressure of target point Power;
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 118, corresponding line width values are obtained according to writing pressure, according to the coordinate information of target point and corresponding Line width values generate the movement locus of identification device.
Specifically, image data is associated with the coordinate information of target point, and with write pressure be also it is associated, Therefore it is identified after obtaining the coordinate information of target point by coding information, according to the writing pressure and pressure-line width of target point Curve obtains corresponding line width values.
Host computer reproduces the movement locus of identification device according to coordinate information and corresponding line width values, for Family in writing process firmly write with show emphasis part can automatic overstriking show, so that user is can be completed in writing process To the mark of key content, key content is carried out by overstriking or other complicated approach after the completion of writing instead of existing The method of mark saves a large amount of time, easy to use.
A kind of processing method of dot matrix image data provided in an embodiment of the present invention, does not change traditional writing style, leads to It crosses the acquisition to dot matrix image data and identification obtains handwriting trace, accuracy of identification is high, and can be generated according to pressure is write The different handwriting trace of thickness, the mark of key content is can be realized as by simply changing pressure, and data processing speed is fast, Data transmission security 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 the random access memory (processing of RA dot matrix image data Method), the processing of memory, read-only memory (processing methods of RO dot matrix image data), electrically programmable RO dot matrix image data Method, the processing method of electrically erasable RO dot matrix image data, register, hard disk, moveable magnetic disc, CD-RO dot matrix In any other form of storage medium well known in the processing method or technical field of image data.
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 (10)

1. a kind of processing method of dot matrix image data, 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, and Record the writing pressure;
The identification device acquires the image data in passed through dot matrix region;
Binary conversion treatment is carried out to described image data, obtains the first dot matrix image;
The second dot matrix image is intercepted in first dot matrix image;
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;
According to the coordinate information of target point and the corresponding writing pressing creation data packet, it is sent to host computer;
The host computer parses the data packet, obtains the coordinate information of target point and the corresponding writing pressure Power;
Corresponding line width values are obtained according to the writing pressure, according to the coordinate information of the target point and corresponding line width Value generates the movement locus of the identification device.
2. the processing method of dot matrix image data according to claim 1, which is characterized in that judge the writing described After whether pressure reaches preset pressure threshold value, the method further includes:
When not reaching, the identification device generates prompt message.
3. the processing method of dot matrix image data according to claim 1, which is characterized in that acquired in the identification device After the image data in the dot matrix region passed through, the method further includes:
It establishes described image data and writes the incidence relation between pressure.
4. the processing method of dot matrix image data according to claim 1, which is characterized in that in the host computer to described Before data packet is parsed, the method further includes:
The host computer establishes the incidence relation write between pressure and line width values, and generates pressure-according to the incidence relation Line width curve.
5. the processing method of dot matrix image data according to claim 1, which is characterized in that received in the identification device Before writing pressure input by user, the method further includes:
The identification device receives pressure calibration instruction input by user;
It is instructed according to the pressure calibration and obtains calibrating (base measuring) pressure, and pressure acquisition prompt message is generated according to the calibrating (base measuring) pressure;
The actual pressure that acquisition user inputs according to the pressure acquisition prompt message;
When the actual pressure reaches the calibrating (base measuring) pressure, generation corrects successfully prompt message.
6. the processing method of dot matrix image data according to claim 5, which is characterized in that the acquisition user according to After the actual pressure of the pressure acquisition prompt message input, the method further includes:
In default acquisition time, when the actual pressure does not reach the calibrating (base measuring) pressure, generation re-calibrates prompt letter Breath.
7. the processing method of dot matrix image data according to claim 1, which is characterized in that described to described image data Binary conversion treatment is carried out, the first dot matrix image is obtained 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.
8. the processing method of dot matrix image data according to claim 7, which is characterized in that described to be tied according to the comparison Fruit carries out assignment to each pixel in described image data and specifically 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.
9. the processing method of dot matrix image data according to claim 1, which is characterized in that obtained according to matching described After code value generates the coordinate information of 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.
10. the processing method of dot matrix image data according to claim 1, which is characterized in that the dot matrix region is specific For writing paper or electronic whiteboard with dot-matrix array.
CN201810403904.7A 2018-04-28 2018-04-28 A kind of processing method of dot matrix image data Withdrawn CN108595031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403904.7A CN108595031A (en) 2018-04-28 2018-04-28 A kind of processing method of dot matrix image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403904.7A CN108595031A (en) 2018-04-28 2018-04-28 A kind of processing method of dot matrix image data

Publications (1)

Publication Number Publication Date
CN108595031A true CN108595031A (en) 2018-09-28

Family

ID=63619335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403904.7A Withdrawn CN108595031A (en) 2018-04-28 2018-04-28 A kind of processing method of dot matrix image data

Country Status (1)

Country Link
CN (1) CN108595031A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669579A (en) * 2018-10-15 2019-04-23 友达光电股份有限公司 Identification system and its discrimination method
CN110992000A (en) * 2019-12-04 2020-04-10 广州云蝶科技有限公司 Method for managing backlog based on dot matrix paper pen technology
CN111090360A (en) * 2019-12-04 2020-05-01 广州云蝶科技有限公司 Method for collaborating music creation based on dot matrix coding technology
CN112540688A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Information generating method
CN112541376A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method based on pressure information
CN113096655A (en) * 2021-03-29 2021-07-09 读书郎教育科技有限公司 System and method for drawing key points by scanning pen according to voice
CN113159017A (en) * 2021-04-01 2021-07-23 读书郎教育科技有限公司 System and method for intelligently marking key points by scanning pen
CN113759806A (en) * 2021-09-28 2021-12-07 广西科技师范学院 Writing robot control system
CN116629289A (en) * 2023-05-23 2023-08-22 深圳市牛加技术有限公司 Optical lattice two-dimensional coordinate recognition method and device based on convolutional neural network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669579A (en) * 2018-10-15 2019-04-23 友达光电股份有限公司 Identification system and its discrimination method
CN109669579B (en) * 2018-10-15 2022-08-23 友达光电股份有限公司 Identification system and identification method thereof
CN112541376A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Motion trail generation method based on pressure information
CN112540688A (en) * 2019-09-20 2021-03-23 北京万维智能技术有限公司 Information generating method
CN110992000B (en) * 2019-12-04 2023-04-14 广州云蝶科技有限公司 Method for managing backlogs based on dot matrix paper and pen technology
CN111090360A (en) * 2019-12-04 2020-05-01 广州云蝶科技有限公司 Method for collaborating music creation based on dot matrix coding technology
CN110992000A (en) * 2019-12-04 2020-04-10 广州云蝶科技有限公司 Method for managing backlog based on dot matrix paper pen technology
CN113096655A (en) * 2021-03-29 2021-07-09 读书郎教育科技有限公司 System and method for drawing key points by scanning pen according to voice
CN113096655B (en) * 2021-03-29 2024-01-26 读书郎教育科技有限公司 System and method for marking key points by scanning pen according to voice
CN113159017A (en) * 2021-04-01 2021-07-23 读书郎教育科技有限公司 System and method for intelligently marking key points by scanning pen
CN113159017B (en) * 2021-04-01 2024-02-09 读书郎教育科技有限公司 System and method for intelligently marking key points by scanning pen
CN113759806A (en) * 2021-09-28 2021-12-07 广西科技师范学院 Writing robot control system
CN116629289A (en) * 2023-05-23 2023-08-22 深圳市牛加技术有限公司 Optical lattice two-dimensional coordinate recognition method and device based on convolutional neural network

Similar Documents

Publication Publication Date Title
CN108595031A (en) A kind of processing method of dot matrix image data
CN108573245A (en) A kind of track restoring method based on dot matrix image
CN108549879A (en) A kind of processing method of dot matrix image
CN108596133A (en) A kind of recognition methods based on dot matrix
EP3413240B1 (en) Method of encoding and identifying 2d bitmap barcode
EP2849115B1 (en) Method for decoding matrix-type two-dimensional code
CA2427053C (en) System and method for camera calibration
US20130016246A1 (en) Image processing device and electronic apparatus
WO2004084125A1 (en) Information input/output method using dot pattern
JP4498203B2 (en) Meter recognition system, meter recognition method, and meter recognition program
CN108647610A (en) A kind of pressure compensating method based on dot matrix image acquisition
CN115660933B (en) Watermark information identification method, device and equipment
CN112541377A (en) Handwriting restoration method
US8498453B1 (en) Evaluating digital images using head points
CN108629308A (en) A kind of orbit generation method based on dot matrix image
JP5356702B2 (en) Two-dimensional code restoration program and restoration server
CN108710877A (en) A kind of image-pickup method
CN111353965A (en) Image restoration method, device, terminal and storage medium
JP2009223499A5 (en)
CN108647609A (en) A kind of recognition processing method and system
CN108596131A (en) A kind of recognition methods based on dot matrix
CN108596125A (en) A kind of data uploading method
CN108596130A (en) A kind of precision compensation method based on dot matrix image
CN108664869A (en) Dot matrix identifying system
CN108647611A (en) A kind of processing method of dot matrix image

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: 20180928