CN111858513A - Data storage format of digital ink handwriting - Google Patents

Data storage format of digital ink handwriting Download PDF

Info

Publication number
CN111858513A
CN111858513A CN202010712157.2A CN202010712157A CN111858513A CN 111858513 A CN111858513 A CN 111858513A CN 202010712157 A CN202010712157 A CN 202010712157A CN 111858513 A CN111858513 A CN 111858513A
Authority
CN
China
Prior art keywords
data
format
digital ink
handwriting
storage format
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
CN202010712157.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.)
Shenzhen Sunia Technology Co ltd
Original Assignee
Shenzhen Sunia 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 Shenzhen Sunia Technology Co ltd filed Critical Shenzhen Sunia Technology Co ltd
Priority to CN202010712157.2A priority Critical patent/CN111858513A/en
Publication of CN111858513A publication Critical patent/CN111858513A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data storage format of digital ink handwriting, which comprises a plurality of data blocks, wherein each data block has a definite data type, all data obey TLV principle, and data groups are used as basic units during storage or loading to be respectively stored or loaded from the data blocks of required types. The method supports the storage and reading of handwriting data, character data, picture data and voice data, and the data length stored in each file is different, so that the disclosure can be effectively avoided; the data adopts TLV principle, the expandability is strong, the part which does not need to be read is skipped through the data group loading as required so as to save the performance, and the backward version compatibility is supported.

Description

Data storage format of digital ink handwriting
Technical Field
The invention relates to a data format, in particular to a data storage format of digital ink handwriting.
Background
At present, the general enterprises record the experimental data through paper recording, paper archiving or office software recorded by operators on computers.
Firstly, experimental data is required to be recorded in real time and generally recorded on paper with a fixed format, and after the recording is finished, the experimental data must be filed as required so as to facilitate subsequent retrieval. In order to facilitate the consultation and reduce the ambiguity, the handwriting of the staff needs to be input. As the amount of data becomes larger, the paper retrieval work becomes increasingly burdensome.
Secondly, the electronic recording on general office software has poor safety performance and is easy to crack; due to the irreversibility of the software version, the current version basically does not support reading the storage files of the later version.
Finally, paper recording is heavy and easy to damage, and experimental data are easy to divulge a secret; common electronic office software is also easy to divulge a secret because of universality.
The invention realizes the electronic telephone management of the experimental data, and the experimental data does not need to be recorded by paper. The data reading and saving are realized by the operation of the input terminal, the data lengths of different file reading modes are the same, and the safety of experimental data is greatly ensured.
Aiming at the problems of the integrity and the safety of the recording experimental data of the current paper and the common office software, the storage system which can avoid the recording of the paper, is not easy to be cracked on an electronic device and can be stored and read at any time is expected to be provided.
The invention provides a set of experimental data management storage system, which comprises a storage part and a reading part.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a data storage format of digital ink handwriting.
In order to achieve the purpose, the invention adopts the following specific scheme:
a data storage format of digital ink handwriting comprises a plurality of data blocks, each data block has an explicit data type, all data complies with TLV principle, and data groups are used as basic units during storage or loading, and are respectively stored or loaded from the data blocks of the required types.
Preferably, the data group is parsed in blocks according to the data length during parsing, and if the old version does not support the data, the data is discarded.
Preferably, each of the data blocks may add a new attribute later, but cannot delete an existing attribute definition, and after adding the new attribute, the corresponding data length in the data block is increased.
Preferably, there are three data blocks, which are a file format area, a packet format area and a packet data area.
Preferably, the file format area includes a data header, a data format version number, and a self-increment version number of currently saved data.
Preferably, the grouping format area includes a width when handwriting data is stored, a height when handwriting data is stored, a number of element groups, and a size of element group header definition data.
Preferably, the packet data area includes stroke data, graphic data, picture data, and text data.
By adopting the technical scheme of the invention, the invention has the following beneficial effects:
the method supports the storage and reading of handwriting data, character data, picture data and voice data, and the data length stored in each file is different, so that the disclosure can be effectively avoided; the data adopts TLV principle, the expandability is strong, the part which does not need to be read is skipped through the data group loading as required so as to save the performance, and the backward version compatibility is supported.
Drawings
FIG. 1 illustrates the data format rules of the present invention;
FIG. 2 is a flow chart of data reading according to the present invention.
Detailed Description
The invention is further described below with reference to the following figures and specific examples.
The invention provides a data storage format of digital ink handwriting, which comprises a plurality of data blocks, wherein each data block has an explicit data type, all data comply with TLV principle, and data groups are used as basic units during storage or loading to be respectively stored or loaded from the data blocks of the required types.
And the data group is analyzed in blocks according to the data length during analysis, and if the old version does not support the data, the data is discarded.
Each data block can be added with new attributes later but can not delete the existing attribute definition, and after the new attributes are added, the corresponding data length in the data block is increased.
Referring to fig. 1, there are three data blocks, which are a file format area, a packet format area and a packet data area, respectively, and the data format of the data blocks is defined as:
(1) the file format area includes:
format _ HEADER: the header of the data is used for judging whether the data is in a legal format or not, and defaults are as follows: "ASAINKEDIT";
DATA _ VERSION: the data format version number is used for identifying the format version to make the version compatible upwards;
SAVE _ VERSION: the self-increment version number of the currently stored data is used for carrying out consistency check with the matched data and comparing the identification result;
(2) the packet format region includes:
WIDTH: width when saving handwriting data;
HEIGHT: height when handwriting data is stored;
GROUP _ COUNT: element grouping number;
GROUP _ head _ SIZE: defining the data size by the element grouping header, and taking bytes as a unit;
GROUP _ INDEX: the starting position of each corresponding group takes byte as a unit;
GROUP _ TYPE _ INDEX: classification (meaning pending) of each corresponding group;
PEN _ TYPE _ PRO _ SIZE: the uniform attribute size of each handwriting is in byte;
EACH _ POINT _ SIZE: the data size of each trace point is uniform, and bytes are taken as units;
GROUP _ ITEM _ COUNT: the number of elements of the group;
GROUP _ HEADER _ SIZE: the packet header defines the data size in bytes;
(3) the grouped data area comprises stroke data, graphic data, picture data and text data, and specifically comprises the following steps:
ITEM _ TYPE _ INDEX: classification of corresponding elements, wherein the first two bytes of the type store element types (such as pens, shapes, pictures, custom elements and the like), and the second two bytes are sub-pens, mark pens, circles and the like), if the program finds supported element types, the supported element types are discarded, and if the unsupported sub-types are not supported, the supported element types are unified into default types, such as unsupported sub-type pens, but the existing types cannot be changed when the program is restored;
ITEM _ COLOR _ INDEX: a color index for each handwriting/element;
ITEM _ SIZE: the data size of all attributes of the element is in bytes; each type allocates bytes within ITEM _ SIZE according to its own definition. For example, the handwriting is divided into a plurality of parts;
STROK _ WIDTH: the line width of the handwriting;
x: the Y coordinate of each point;
y: the Y coordinate of each point;
p: the default value of the pressure corresponding to each point is 1, the range is 0-1.0, and if the pressure exceeds the required fault tolerance;
a: the inclination angle of each point is 0 as a default value and ranges from 0 to 2, which represents 0 to 2 pi, and if the inclination angle exceeds the required fault tolerance;
TIME _ STAMP: the time stamp of each point is in milliseconds;
RADIUS: the radius of the circle in the shape type;
WIDTH: the display width of the picture;
HEIGHT: the display height of the picture;
PATH _ SIZE: a picture path storage length;
FILE _ PATH: saving paths of the picture files relative to the current directory;
WIDTH: a display width of the text box;
HEIGHT: a display height of the text box;
FONT _ SIZE: font size;
BOLD | italic | underscale | strickout: the format of the text, 0X01 BOLD, 0X02 italic/italic, 0X04 underlay, 0X08 strickout// strickout;
TEXT _ SIZE: text data size in bytes;
TEXT _ VALUE: text data.
Referring to fig. 2, the data reading process of the present invention includes: and reading the local file to obtain encrypted data, carrying out decryption operation within a certain rule on the encrypted data, and obtaining original experimental data by the terminal.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A data storage format of digital ink handwriting is characterized by comprising a plurality of data blocks, wherein each data block has an explicit data type, all data comply with TLV principles, and data groups are used as basic units during storage or loading, and are respectively stored or loaded from the data blocks of the required types.
2. A data storage format for digital ink handwriting according to claim 1 and wherein said data set is parsed in blocks of data length at the time of parsing, the data being discarded if the old version does not support the data.
3. A data storage format for digital ink handwriting according to claim 1 and wherein each said data block is capable of adding a new attribute at a later time but is incapable of deleting an existing attribute definition, and the corresponding data length in the data block is increased after the new attribute is added.
4. A data storage format for digital ink handwriting according to claim 1 and wherein there are three said data blocks, a file format area, a packet format area and a packet data area.
5. A data storage format for digital ink handwriting according to claim 1 and wherein said file format area comprises a data header, a data format version number, a self-incrementing version number of the currently saved data.
6. A data storage format for digital ink scripts according to claim 1, wherein the grouping format area comprises the width when handwriting data is stored, the height when handwriting data is stored, the number of element groups, and the size of element group header definition data.
7. A data storage format for digital ink handwriting according to claim 1 and wherein said grouped data areas comprise stroke data, graphics data, picture data and text data.
CN202010712157.2A 2020-07-22 2020-07-22 Data storage format of digital ink handwriting Pending CN111858513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010712157.2A CN111858513A (en) 2020-07-22 2020-07-22 Data storage format of digital ink handwriting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010712157.2A CN111858513A (en) 2020-07-22 2020-07-22 Data storage format of digital ink handwriting

Publications (1)

Publication Number Publication Date
CN111858513A true CN111858513A (en) 2020-10-30

Family

ID=72949220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010712157.2A Pending CN111858513A (en) 2020-07-22 2020-07-22 Data storage format of digital ink handwriting

Country Status (1)

Country Link
CN (1) CN111858513A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195799A (en) * 1997-04-01 1998-10-14 卡西欧计算机株式会社 Handwritten data input device having coordinate detection image input tablet
KR20030010479A (en) * 2001-06-16 2003-02-05 삼성전자 주식회사 Interactive optical storage medium having preloaded font information, apparatus and method for reproducing thereof
CN101008939A (en) * 2007-01-25 2007-08-01 深圳创维-Rgb电子有限公司 Implementation method of dot matrix word library of embedded system
CN101382876A (en) * 2008-10-07 2009-03-11 北京创毅视讯科技有限公司 Data storage method
JP2011198296A (en) * 2010-03-23 2011-10-06 Fujitsu Ltd Program, device and method for generating spreadsheet
CN102385570A (en) * 2010-08-31 2012-03-21 国际商业机器公司 Method and system for matching fonts
CN104166970A (en) * 2013-05-16 2014-11-26 北京壹人壹本信息科技有限公司 Handwriting data file generating method and apparatus thereof, handwriting data file recovery display method and apparatus thereof, and electronic device
CN104424163A (en) * 2013-08-29 2015-03-18 北大方正集团有限公司 Word processing method and system
CN104731390A (en) * 2013-12-18 2015-06-24 深圳富泰宏精密工业有限公司 System and method for saving original handwriting
CN105745608A (en) * 2013-11-19 2016-07-06 株式会社和冠 Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN106330393A (en) * 2016-08-10 2017-01-11 成都广达新网科技股份有限公司 Packet assembly method and system for TLV (Type, Length and Value) format data
CN106445736A (en) * 2016-08-31 2017-02-22 四川效率源信息安全技术股份有限公司 Method for extracting and recombining MTK62 series word stock data of mobile phone
CN106649653A (en) * 2016-12-12 2017-05-10 中国航空工业集团公司西安航空计算技术研究所 Preprocessing method for onboard vector map data
CN108763320A (en) * 2018-04-28 2018-11-06 广东蜂助手网络技术股份有限公司 A kind of writing note data storage method, device, terminal and storage medium
CN110688347A (en) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 File storage method, file storage device and terminal equipment
CN111414730A (en) * 2020-03-18 2020-07-14 中孚安全技术有限公司 Method, system, terminal and storage medium for acquiring document character format information

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195799A (en) * 1997-04-01 1998-10-14 卡西欧计算机株式会社 Handwritten data input device having coordinate detection image input tablet
KR20030010479A (en) * 2001-06-16 2003-02-05 삼성전자 주식회사 Interactive optical storage medium having preloaded font information, apparatus and method for reproducing thereof
CN101008939A (en) * 2007-01-25 2007-08-01 深圳创维-Rgb电子有限公司 Implementation method of dot matrix word library of embedded system
CN101382876A (en) * 2008-10-07 2009-03-11 北京创毅视讯科技有限公司 Data storage method
JP2011198296A (en) * 2010-03-23 2011-10-06 Fujitsu Ltd Program, device and method for generating spreadsheet
CN102385570A (en) * 2010-08-31 2012-03-21 国际商业机器公司 Method and system for matching fonts
CN104166970A (en) * 2013-05-16 2014-11-26 北京壹人壹本信息科技有限公司 Handwriting data file generating method and apparatus thereof, handwriting data file recovery display method and apparatus thereof, and electronic device
CN104424163A (en) * 2013-08-29 2015-03-18 北大方正集团有限公司 Word processing method and system
CN105745608A (en) * 2013-11-19 2016-07-06 株式会社和冠 Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN104731390A (en) * 2013-12-18 2015-06-24 深圳富泰宏精密工业有限公司 System and method for saving original handwriting
CN106330393A (en) * 2016-08-10 2017-01-11 成都广达新网科技股份有限公司 Packet assembly method and system for TLV (Type, Length and Value) format data
CN106445736A (en) * 2016-08-31 2017-02-22 四川效率源信息安全技术股份有限公司 Method for extracting and recombining MTK62 series word stock data of mobile phone
CN106649653A (en) * 2016-12-12 2017-05-10 中国航空工业集团公司西安航空计算技术研究所 Preprocessing method for onboard vector map data
CN108763320A (en) * 2018-04-28 2018-11-06 广东蜂助手网络技术股份有限公司 A kind of writing note data storage method, device, terminal and storage medium
CN110688347A (en) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 File storage method, file storage device and terminal equipment
CN111414730A (en) * 2020-03-18 2020-07-14 中孚安全技术有限公司 Method, system, terminal and storage medium for acquiring document character format information

Similar Documents

Publication Publication Date Title
US7319789B2 (en) Serial storage of ink and its properties
CA2215794A1 (en) Image data transfer
CN109885577B (en) Data processing method, device, terminal and storage medium
US7370060B2 (en) System and method for user edit merging with preservation of unrepresented data
CN100338605C (en) Recording method for extendable mark language file repairing trace
US6956970B2 (en) Information storage using tables and scope indices
CN101833545B (en) Method for indexing data in digital recourse processing process
CN112527411A (en) Real-time data visualization system based on plug-in and topic subscription mode
CN107273449B (en) Breakpoint processing method and system based on memory database
CN108009049A (en) The offline restoration methods of MYISAM storage engines deletion records, storage medium
CN107194001A (en) A kind of column storage format file rapid-combination method and its system
CN103593922B (en) Improve the method and system of network billing system client printing invoice speed
US20170068681A1 (en) Modifying lucene index file
CN111858513A (en) Data storage format of digital ink handwriting
CN114239535A (en) Automatic Word document generation method and system based on webpage
CN115712601A (en) Method for reading fixed-length files in batch based on springbatch
CN106909623A (en) A kind of data set and date storage method of supporting efficient mass data to analyze and retrieve
CN111241096A (en) Text extraction method, system, terminal and storage medium for EXCEL document
CN105700825A (en) Thumbnail storage method and device based on Android system
US20060074961A1 (en) Method and information database structure for faster data access
CN101894098B (en) Embedded font data processing method and device
CN104156666A (en) Method and device for adding color attributes into filename extensions to distinguish file types
CN114895875A (en) Zero-code visual information system metadata production application method and system
CN1967521A (en) Method for labeling computer resource and system therefor
CN112428705A (en) Drawing printing and filing 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