CN112084745A - Method for generating vector fonts in batch by handwriting and written text - Google Patents

Method for generating vector fonts in batch by handwriting and written text Download PDF

Info

Publication number
CN112084745A
CN112084745A CN202010962854.3A CN202010962854A CN112084745A CN 112084745 A CN112084745 A CN 112084745A CN 202010962854 A CN202010962854 A CN 202010962854A CN 112084745 A CN112084745 A CN 112084745A
Authority
CN
China
Prior art keywords
text
vector
electronic information
written
font
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.)
Pending
Application number
CN202010962854.3A
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 Muke Technology Co ltd
Original Assignee
Beijing Muke Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Muke Technology Co ltd filed Critical Beijing Muke Technology Co ltd
Priority to CN202010962854.3A priority Critical patent/CN112084745A/en
Publication of CN112084745A publication Critical patent/CN112084745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • 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/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for generating vector fonts in batch by handwriting and a written text, belonging to the technical field of terminals and comprising the following steps: providing a written text; converting the written text into an electronic message text; acquiring a single font bitmap through the electronic information text; and uniformly converting the single font dot matrix diagram into a vector diagram. By the technical scheme, the real writing experience of a writer can be realized, and the steps of inputting the written content into the electronic equipment, segmenting characters, vectorizing, forming vector files and the like can be efficiently and automatically completed.

Description

Method for generating vector fonts in batch by handwriting and written text
Technical Field
The invention belongs to the technical field of terminals, and particularly relates to a method for generating vector fonts in batch by handwriting and a written text.
Background
With the rapid development of mobile terminal technology, the functions of mobile terminals such as mobile phones and tablet computers are also improved, and the mobile terminals become one of the common tools in daily life and work.
At present, for the scheme of converting handwriting into vector font, there are two input modes:
1. the writer directly inputs the handwriting into the computer through the tablet personal computer or the computer writing board to generate the font, the writer inputs on the tablet personal computer or the computer writing board, the writing feeling and the habit are greatly different from the direct writing on a paper medium, so that the writer cannot exert the normal writing level, and the final font input into the computer is not ideal.
2. After a writer writes characters, the writer needs to manually scan and input the character contents written on the paper medium into a computer, and finally needs to perform operations such as cutting, vectorization, adjustment and the like on the input image in the computer to finally generate characters, so that in the process of scanning the characters written on the paper medium into the computer, a large amount of manual participation is needed, character pictures input into the computer are input, and manual steps such as correction, cutting, vectorization and the like are required, and the time is long.
Disclosure of Invention
The invention aims to provide a method for generating vector fonts in batch by handwriting and a written text, which at least solve the technical problem that a writer needs to consume a large amount of manpower and time in the process of converting written handwriting characters into the vector fonts in batch.
In order to achieve the above object, the present invention provides a method for generating vector fonts in batch by handwriting, comprising:
providing a written text;
converting the written text into an electronic message text;
acquiring a single font bitmap through the electronic information text;
and uniformly converting the single font dot matrix diagram into a vector diagram.
Further, the written text is divided into single pages, and a single-page electronic information text is generated.
Further, obtaining a single font bitmap through the electronic information text includes:
calibrating the single-page electronic information text to generate a standard electronic information text;
and segmenting the standard electronic information text to obtain a single font bitmap.
Further, the single font dot matrix diagram is uniformly converted into a vector diagram, and the method comprises the following steps:
image offset, namely uniformly offsetting the font bitmap;
performing black and white binarization, and setting the gray value of the font dot matrix map as 0 or 100;
and adjusting parameters, and uniformly converting the font dot matrix diagram into a vector diagram.
Further, calibrating the single page of electronic information text comprises:
and carrying out position calibration through a calibration mark arranged on the written text.
Further, the calibration mark includes:
and calibrating the graph and the identification marker, and segmenting the standard electronic information text through the identification marker to obtain a single font bitmap.
Furthermore, the identification mark marks the content of characters, page serial numbers and the like of the single-page electronic information text.
Furthermore, the written text is provided with text lattices, prompt marks are arranged above the text lattices, and the prompt marks correspond to the characters to be written into the text lattices one by one.
The invention also provides a written text of vector fonts generated by handwriting in batch, which is used for the method of any one of the above items, and comprises the following steps: and a calibration mark is arranged on the written text.
Further, the calibration mark includes:
a calibration pattern and an identification marker.
The invention has the beneficial effects that:
converting a written text into an electronic message text by providing the written text; and acquiring a single font dot matrix diagram through the electronic information text, and uniformly converting the single font dot matrix diagram into a vector diagram. By the technical scheme, the real writing experience of a writer can be realized, and the steps of inputting the written content into the electronic equipment, segmenting characters, vectorizing, forming vector files and the like can be efficiently and automatically completed.
Furthermore, the calibration mark is arranged in the written text, so that a good subsequent calibration effect can be achieved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
FIG. 1 is a flow chart illustrating a method for batch generation of vector fonts from handwriting;
fig. 2 shows a structural diagram of a written text of a vector font generated by handwriting in batch.
Reference numerals: 1. writing a text; 2. a square shape; 3. two-dimensional codes; 4. a prompt mark; 5. and (4) character grids.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below. While the following describes preferred embodiments of the present invention, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example 1
Referring to fig. 1, the present invention provides a method for generating vector fonts in batch by handwriting, including:
s01: providing a written text;
s02: converting the written text into an electronic message text;
s03: acquiring a single font bitmap through an electronic information text;
s04: the single character lattice diagram is converted into vector diagram.
Step S01 is performed in which a written text is provided.
The writing text can be paper printing paper, the material can be coated paper, kraft paper, white cardboard and the like, the material adopted in the technical scheme is coated paper, and it needs to be explained that the technical scheme has no requirement on the material of the writing text, and all characters can be written on the writing text.
In addition, the written text is provided with character lattices, prompt marks are arranged above the character lattices, and the prompt marks correspond to the characters to be written into the character lattices one by one.
The prompt mark is arranged on the character grid, so that a writer can write according to the prompt mark in the writing process.
Step S02 is executed: the written text is converted into an electronic message text.
Specifically, the technical solution is to divide the written text into single pages, and convert the single pages of the written text into a single page of electronic information text through an electronic device, where the electronic information text is an image and may be in a jpg format or a png format, and the electronic device may be a computer, or may be other electronic devices, as long as the device capable of converting the written text into the electronic information text is implemented, and the device is not limited herein.
Step S03 is executed: and acquiring a single font bitmap through the electronic information text.
Specifically, obtaining a single font bitmap through an electronic information text includes:
calibrating the single-page electronic information text to generate a standard electronic information text;
dividing the standard electronic information text to obtain a single font bitmap;
calibrating the single page of electronic message text comprises: the position calibration is carried out through the calibration mark arranged on the written text, the calibration mark comprises a calibration graph and an identification mark, the calibration graph and the identification mark are aligned up and down in the embodiment, the calibration accuracy can be improved, it needs to be known that the position relation of the calibration graph and the identification mark is not limited, the calibration mark mainly has the function that when the electronic information text is subjected to geometric transformation, including processes similar to rotation, scaling, four-corner transformation and the like, the shapes and the positions of the calibration graph and the identification mark accord with expected settings, and the calibration accuracy can be improved. The calibration pattern can be a square, a rectangle or other patterns, and can perform the calibration function, and is not limited herein; the identification marker is a two-dimensional code, the contents of the characters, the page numbers and the like of the single-page electronic information text can be known by identifying the two-dimensional code, and the information recorded by the two-dimensional code is the content of the current single-page electronic information text, so that the contents of the single-page electronic information texts are different, and the contents recorded by the two-dimensional code are different; the standard electronic information text is divided through the identification marker, so that a single font bitmap is obtained, and the fonts corresponding to the divided font bitmap can be identified by dividing the standard electronic information text through the identification marker.
In this embodiment, calibration marks of squares 2 and two-dimensional codes 3 are arranged on the written text 1, the number of the squares 2 is two, the two squares 2 are symmetrically arranged on two sides above the written text 1, the two-dimensional codes 3 are arranged under one of the squares 2 and on one side of the written text 1, and the calibration accuracy can be improved by arranging the calibration marks.
Step S04 is executed: the single character lattice diagram is converted into vector diagram.
The single font dot matrix diagram is uniformly converted into a vector diagram, which comprises the following steps:
image shifting, namely uniformly shifting the font bitmap;
performing black and white binarization, and setting the gray value of a font dot matrix image as 0 or 100;
black and white binarization, namely setting the gray value of a pixel point on an image to be 0 or 100, namely displaying an obvious visual effect only including black and white on the whole image;
adjusting parameters, and uniformly converting the font dot matrix diagram into a vector diagram;
the method has the advantages that the operation of converting the dot matrix map into the vector map can be carried out in batches by adjusting the parameters, the font dot matrix map can be uniformly adjusted by adjusting the parameters, for example, the font dot matrix map can be uniformly subjected to font expansion, sharpness and other operations to be changed into the required vector map, and then the vector map is stored into a vector file.
The image is corrected according to the relative position of the calibration mark and the two-dimensional code, and the segmentation action of the corrected electronic information text is fixed, so that the whole calibration, segmentation and binarization processes are automatic.
For a specific example, assuming that there are 100 electronic information texts that are not calibrated in "origin" in a folder, the following command operations are performed by software: after the command is input, the electronic information text of the origin folder is automatically calibrated, segmented and binarized, and the segmented and binarized result is stored in the "segmented" folder.
By the technical scheme, the real writing experience of a writer can be realized, and the steps of inputting the written content into the electronic equipment, segmenting characters, vectorizing, forming vector files and the like can be efficiently and automatically completed.
Example 2
Referring to fig. 2, a handwriting apparatus generates written text of a vector font in batch for the method as in embodiment 1, including:
the writing text 1 is provided with a plurality of character lattices 5, and a writer writes written characters into the character lattices 5.
The calibration mark is used for the calibration operation of the subsequent font; the calibration mark comprises two squares 2 and two-dimensional codes 3, the two squares 2 are positioned at two sides above the written text 1 and are symmetrically arranged, the two-dimensional codes 3 are positioned at one side of the written text 1 and are positioned under one of the squares 2, the contents of characters, page serial numbers and the like of a single page of electronic information text can be known by identifying the two-dimensional codes, the information recorded by the two-dimensional codes is the content of the current page of single page of electronic information text, therefore, the contents of the electronic information texts in the single pages are different, the contents recorded by the two-dimensional codes are different, it is required to be known that the position relation of the square 2 and the two-dimensional codes 3 is not limited, the function of the calibration mark is mainly that when the electronic information texts are geometrically transformed, including in the process of rotating, zooming, four-corner transformation and the like, the shapes and the positions of the squares and the two-dimensional codes conform to expected settings, and the accuracy of calibration can be improved.
And the prompt marks 4 are arranged above the character lattices 5 and correspond to the characters to be written into the character lattices 5 one by one, the prompt marks 4 are the characters to be written into the corresponding character lattices 5, and a writer writes according to the prompt marks.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

Claims (10)

1. A method for generating vector fonts in batch by handwriting is characterized by comprising the following steps:
providing a written text;
converting the written text into an electronic message text;
acquiring a single font bitmap through the electronic information text;
and uniformly converting the single font dot matrix diagram into a vector diagram.
2. The method for batch generation of vector fonts for handwriting according to claim 1, wherein said written text is divided into single pages to generate single pages of electronic information text.
3. The method for batch generation of vector fonts from handwriting according to claim 2, wherein obtaining a single font bitmap from the electronic information text comprises:
calibrating the single-page electronic information text to generate a standard electronic information text;
and segmenting the standard electronic information text to obtain a single font bitmap.
4. The method for batch generation of vector fonts from handwriting according to claim 1, wherein the step of uniformly converting the single font dot matrix diagram into the vector diagram comprises the following steps:
image offset, namely uniformly offsetting the font bitmap;
performing black and white binarization, and setting the gray value of the font dot matrix map as 0 or 100;
and adjusting parameters, and uniformly converting the font dot matrix diagram into a vector diagram.
5. The method for batch generation of vector fonts for handwriting according to claim 3, wherein calibrating said single page of electronic information text comprises:
and carrying out position calibration through a calibration mark arranged on the written text.
6. The method for batch generation of vector fonts from handwriting according to claim 5, wherein the calibration marks comprise:
and calibrating the graph and the identification marker, and segmenting the standard electronic information text through the identification marker to obtain a single font bitmap.
7. The method for batch generation of vector fonts for handwriting according to claim 6, wherein said identification mark carries literal characters, page numbers and the like of said single page of electronic information text.
8. The method for batch generation of vector fonts from handwriting according to any one of claims 1 to 7, wherein text lattices are arranged on the written text, prompt marks are arranged above the text lattices, and the prompt marks correspond to the characters to be written into the text lattices in a one-to-one manner.
9. A handwriting batch generating written text in vector font for use in the method of any one of claims 1-7, comprising: and a calibration mark is arranged on the written text.
10. Written text in a batch vector font generated by handwriting according to claim 9, wherein said calibration marks comprise:
a calibration pattern and an identification marker.
CN202010962854.3A 2020-09-14 2020-09-14 Method for generating vector fonts in batch by handwriting and written text Pending CN112084745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010962854.3A CN112084745A (en) 2020-09-14 2020-09-14 Method for generating vector fonts in batch by handwriting and written text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010962854.3A CN112084745A (en) 2020-09-14 2020-09-14 Method for generating vector fonts in batch by handwriting and written text

Publications (1)

Publication Number Publication Date
CN112084745A true CN112084745A (en) 2020-12-15

Family

ID=73737877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010962854.3A Pending CN112084745A (en) 2020-09-14 2020-09-14 Method for generating vector fonts in batch by handwriting and written text

Country Status (1)

Country Link
CN (1) CN112084745A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330546A (en) * 1999-05-25 2000-11-30 Hitachi Ltd Font forming device and storage medium for forming font image
CN103488711A (en) * 2013-09-09 2014-01-01 北京大学 Method and system for fast making vector font library
CN105808188A (en) * 2016-03-07 2016-07-27 浙江工业大学 Method for transmitting online sketch between screens
CN109670069A (en) * 2018-11-13 2019-04-23 厦门分类信息技术有限公司 A kind of composition method and composing system of calligraphic character image
CN110050277A (en) * 2016-11-01 2019-07-23 Bja控股有限公司 For handwritten text to be converted into the method and system of digital ink

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330546A (en) * 1999-05-25 2000-11-30 Hitachi Ltd Font forming device and storage medium for forming font image
CN103488711A (en) * 2013-09-09 2014-01-01 北京大学 Method and system for fast making vector font library
CN105808188A (en) * 2016-03-07 2016-07-27 浙江工业大学 Method for transmitting online sketch between screens
CN110050277A (en) * 2016-11-01 2019-07-23 Bja控股有限公司 For handwritten text to be converted into the method and system of digital ink
CN109670069A (en) * 2018-11-13 2019-04-23 厦门分类信息技术有限公司 A kind of composition method and composing system of calligraphic character image

Similar Documents

Publication Publication Date Title
US20190304066A1 (en) Synthesis method of chinese printed character images and device thereof
CN100511225C (en) Translated document image production device and translated document image production method
CN109062521A (en) A kind of print data processing method and device, computer installation, storage medium
KR970071229A (en) Modification and Rasterization of Fonts and Font Fonts Using Medial Axis Transform
US10192285B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2020170309A (en) Image processing system, image processing device, image processing method, and program
US7983485B2 (en) System and method for identifying symbols for processing images
CN112084745A (en) Method for generating vector fonts in batch by handwriting and written text
RU2198430C2 (en) Matching computer-readable codes with printer pixels
JP6229774B2 (en) Image processing system, image processing method, and image processing apparatus
CN114328383A (en) Computer automated paper archive digital method, equipment and terminal
JP2003046746A (en) Method and apparatus for processing image
JP2783601B2 (en) Information processing device
JP5991406B2 (en) Image processing system, image processing method, and image processing apparatus
JP4741363B2 (en) Image processing apparatus, image processing method, and image processing program
JP2018019426A (en) Image processing system, image processing method, and image processing device
CN110706317A (en) Method and device for generating mathematical formula data mixed by printing and handwriting
JP7490996B2 (en) Information processing device, information processing system, program and method
CN116301546A (en) Data association method, printing device, server and storage medium
CN115205872A (en) Irregular arc-shaped distortion method for text image for OCR character recognition
Suenaga Some techniques for document and image preparation
CN113805822A (en) Ticket printing generation method, device, equipment and medium on embedded terminal
JP3656832B2 (en) How to input handwritten characters and how to use handwritten fonts
Karow Digital punch cutting
Nazarkevych et al. Development and processing of the cyrillic handwritten font

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