CN111914514A - Generation method of composite coding file, paper file and device - Google Patents

Generation method of composite coding file, paper file and device Download PDF

Info

Publication number
CN111914514A
CN111914514A CN202010629439.6A CN202010629439A CN111914514A CN 111914514 A CN111914514 A CN 111914514A CN 202010629439 A CN202010629439 A CN 202010629439A CN 111914514 A CN111914514 A CN 111914514A
Authority
CN
China
Prior art keywords
coding
file
original file
resource
information
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
CN202010629439.6A
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 Eaglesoul Education Service Co Ltd
Original Assignee
Shenzhen Eaglesoul Education Service 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 Eaglesoul Education Service Co Ltd filed Critical Shenzhen Eaglesoul Education Service Co Ltd
Priority to CN202010629439.6A priority Critical patent/CN111914514A/en
Publication of CN111914514A publication Critical patent/CN111914514A/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/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • 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/13File access structures, e.g. distributed indices
    • 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/106Display of layout of documents; Previewing
    • 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

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)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method for generating a composite coding file, a paper file and a device, wherein the method comprises the following steps: acquiring a pre-coded original file and additional information of the original file; determining a first coding resource for coding an identification area of the original file according to the original file, wherein the first coding resource carries coordinate information; determining a second coding resource for coding an additional information area of the original file according to the additional information of the original file, wherein the second coding resource carries code information corresponding to the additional information; and loading the first coding resource to an identification area of the original file, and loading the second coding resource to an additional information area of the original file to generate a composite coding file. The method of the invention can accurately obtain the motion track of the dot matrix identification device on the file, and realize the real-time digital storage and reproduction of the written notes on the file.

Description

Generation method of composite coding file, paper file and device
Technical Field
The invention relates to the technical field of dot matrixes, in particular to a method for generating a composite coding file, a paper file and a device.
Background
With the development of information technology, the degree of social digitization is higher and higher.
In the daily office process, electronic documents (word, pdf and the like) are often required to be printed and then annotated, signed and the like. Especially, in the teaching process, teachers need to explain questions, amend test papers and the like to students, so that written notes need to be stored and displayed in a digital mode.
In the prior art, the writing note digitization can be realized only by photographing or scanning, information cannot be processed in real time, and only one page can be photographed or scanned and then uploaded to a computer for processing, so that when too many files exist, time is wasted, and efficiency is low.
Disclosure of Invention
The invention aims to provide a method for generating a composite coding file, a paper file and a device, which aim to solve the problems in the background technology.
According to an aspect of the present invention, there is provided a method of generating a composite encoded file, the method comprising:
acquiring a pre-coded original file and additional information of the original file;
determining a first coding resource for coding an identification area of the original file according to the original file, wherein the first coding resource carries coordinate information;
determining a second coding resource for coding an additional information area of the original file according to the additional information of the original file, wherein the second coding resource carries code information corresponding to the additional information;
and loading the first coding resource to an identification area of the original file, and loading the second coding resource to an additional information area of the original file to generate a composite coding file.
Preferably, the determining, according to the original file, a first coding resource for coding the identification area of the original file specifically includes:
acquiring page layout information and page number information of an original file;
and calculating the area/page number of the first coding resource required for coding all the identification areas of the original file according to the page layout information and the page number information.
Preferably, the obtaining of the page layout information and the page number information of the original file further includes:
acquiring user attribute information and/or file attribute information of the original file;
and determining a code segment of a first coding resource for coding the identification area of the original file according to the user attribute information and/or the file attribute information.
Preferably, the determining, according to the additional information of the original file, a second encoding resource for encoding the additional information region of the original file specifically includes:
determining code information required to be carried by the second coding resource according to the additional information of the original file;
generating a basic coding unit by using the code information required to be carried by the second coding resource according to a preset coding rule of the second coding resource;
and calculating second coding resources required by repeatedly laying the basic coding units in the additional information area of the original file according to the size of the additional information area of the original file.
Preferably, the additional information area of the original document is located in the original document cover or in the area around the page that does not affect the display of the document content.
Preferably, the additional information of the original file includes at least index information of the original file.
According to one aspect of the invention, a composite coding paper file is provided, wherein an identification area of the composite coding paper file is coded by adopting a first coding resource, and the first coding resource carries coordinate information; and the additional information area of the composite coding paper file is coded by adopting a second coding resource, and the second coding resource carries index information of the electronic file corresponding to the composite coding paper file.
Preferably, the additional information area of the composite encoded paper document is located in the envelope or in an area around the page that does not affect the display of the document contents.
According to an aspect of the present invention, there is provided a generating apparatus of a compound encoded file, including:
the acquisition module acquires a pre-coded original file and additional information of the original file;
the first determining module is used for determining a first coding resource for coding the identification area of the original file according to the original file, wherein the first coding resource carries coordinate information;
the second determining module is used for determining a second coding resource for coding the additional information area of the original file according to the additional information of the original file, wherein the second coding resource carries code information corresponding to the additional information;
and the code generation module is used for loading the first code resource to the identification area of the original file and loading the second code resource to the additional information area of the original file to generate a composite code file.
Preferably, the apparatus is configured to execute the method for generating a composite encoded file according to any one of the above.
According to an aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of generating a compound encoded file as described in any of the above.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the identification area of the original file is coded by adopting the coding resource carrying the coordinate information, and the additional information area of the original file is coded by adopting the coding resource carrying the code information, so that the composite coding file is generated. After the composite encoded file is projected or printed, the corresponding original file information can be obtained by clicking the additional information area of the file through the dot matrix identification device, the dot matrix identification device is further used for writing on the composite encoded file, the motion track of the dot matrix identification device on the file can be accurately obtained, and the writing notes on the file are digitally stored and reproduced in real time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a flowchart of a method for generating a composite encoded file according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a lattice unit corresponding to a first coding resource according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a lattice unit corresponding to a second coding resource according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a basic coding unit corresponding to a second coding resource according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a page of a compound encoded file according to an embodiment of the present invention;
fig. 6 is a structural diagram of a device for generating a composite encoded file according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a flowchart of a method for generating a composite encoded file according to an embodiment of the present invention includes the following steps:
step S101, acquiring a pre-coded original file and additional information of the original file.
Specifically, the original file is a courseware, a test paper, an electronic book, or the like containing content. Preferably, the original file is a standardized format file, for example, with a page size of a4, A3, B5, etc., and the file format is a printable or printed file of pdf, word, jpg, etc. For non-standardized format files, format conversion is performed first, and then coding is performed after the non-standardized format files are converted into standard format files.
The additional information of the original file includes at least index information of the original file, which can be used to uniquely determine the original file, such as a file ID of the original file. According to actual requirements, the user ID of the original file, factory information of the original file and the like can be included.
Step S102, determining a first coding resource for coding the identification area of the original file according to the original file.
The first coding resource carries coordinate information and is a dot matrix graphic resource adopting special coding. The identified area of the original file is the area that covers the content of the original file and/or needs to be written, and the size and position of the area can be specified by the user. The lattice resource is composed of a plurality of very fine points which are regularly arranged according to a special algorithm. The dot matrix has the function of providing the dot matrix identification device with coordinate parameter information, and the dot matrix identification device can accurately record the motion track when moving in dot matrix resources. Specifically, the dot matrix identification device is an intelligent pen. The lattice resource is composed of a plurality of lattice units, each of which is composed of a plurality of dots, and fig. 2 is a schematic diagram of a lattice unit corresponding to the first coding resource according to the embodiment of the present invention. The lattice unit comprises 4 x 4 virtual squares, and each virtual square consists of four lattice points and 1 information point surrounded by four lattice points. Each dot matrix unit comprises 16 information points, each information point has eight different deviation positions of upper, lower, left, right, upper left, lower left and upper right, and the 16 points have 8 16 power arrangement modes, namely 281 trillion arrangement modes. Assuming that the distance between the virtual squares of each lattice unit is 0.5mm, the size of each lattice unit is 2mm × 2 mm. I.e. the entire lattice resource can cover 2.81 x 4 hundred million square meters. The lattice coding modes are various, and the corresponding arrangement types of different lattice coding modes are different. For example, the dot-matrix coding scheme adopted by Anoto corporation includes 36 information dots per dot-matrix unit, each information dot includes 4 offset positions, and the total number of the information dots is 47 trillion arrangement forms.
Preferably, the determining, according to the original file, a first coding resource for coding the identification area of the original file specifically includes:
acquiring page layout information and page number information of an original file;
and calculating the area/page number of the first coding resource required for coding all the identification areas of the original file according to the page layout information and the page number information.
Specifically, an original file may contain several pages, the apparatus of the present invention may encode all or part of the specified pages, and further, the apparatus of the present invention obtains page layout information of the original file, that is, the size of each page encoding region. Typically, the apparatus of the present invention encodes the entire page area by default. The area/page number of the required dot matrix resource can be calculated by acquiring the page layout information and the page number information of the original file, namely, the area/page number of the first coding resource required for coding all the identification areas of the original file is determined.
Preferably, before acquiring the page layout information and the page number information of the original file, the method further includes:
acquiring user attribute information and/or file attribute information of the original file;
and determining a code segment of a first coding resource for coding the identification area of the original file according to the user attribute information and/or the file attribute information.
As mentioned above, a lattice resource can be regarded as a huge piece of paper, and preferably, the lattice resource is allocated according to user attributes and/or file attributes, and specifically, a first encoding resource of a certain code segment range is allocated to a user of a certain user attribute and/or a file of a certain file attribute. The user attributes comprise schools, organizations, individuals and the like, and the file attributes comprise file types, page sizes and the like. Specifically, different lattice resources are allocated to different schools or the same lattice resource is allocated to different schools. Because the files generated among different schools cannot be used in a cross mode, the multiplexing of a plurality of schools can be realized by using the same dot matrix resource, and therefore the use of the dot matrix resource is greatly saved. Further, the user attributes also include a grade, a class, a subject, and the like. Alternatively, different grades, classes and subjects may share the same dot matrix resource and be distinguished by using ID on the dot matrix identification device. Therefore, lattice resources can be saved, because the classes do not carry out cross lecture and cross use files, and because the lattice identification device is distinguished, the multiplexing of the lattice resources can be realized between the classes. Preferably, the apparatus of the present invention is further configured to allocate the first encoding resource according to the file attribute information, for example, allocate different code segments according to different file types or page sizes, wherein the file types include test paper, courseware, electronic book, etc., and the page sizes include a4, B5, A3, etc. Preferably, all the lattice resources are stored in a database, and the user accesses and acquires the required lattice resources by using the user ID.
Step S103, determining a second coding resource for coding the additional information area of the original file according to the additional information of the original file.
The second coding resource carries code information corresponding to the additional information, and is also a dot matrix graphic resource adopting special coding. Specifically, the code information may be carried by one lattice unit or several lattice units together.
Determining, according to the additional information of the original file, a second encoding resource for encoding the additional information region of the original file specifically includes:
determining code information required to be carried by the second coding resource according to the additional information of the original file;
generating a basic coding unit by using the code information required to be carried by the second coding resource according to a preset coding rule of the second coding resource;
and calculating second coding resources required by repeatedly laying the basic coding units in the additional information area of the original file according to the size of the additional information area of the original file.
Fig. 3 is a schematic diagram of a lattice unit corresponding to a second coding resource according to an embodiment of the present invention. The dot matrix unit 10 includes a code information portion 12 and a table header portion 14. The code information portion 12 includes 9 dots 16 and 9 status areas 18 where the 9 dots 16 are located, and the headtable portion 14 includes 7 dots 16 and 7 status areas where the 7 dots 16 are located, and the whole forms a4 × 4 dot matrix unit. The 9 information dots 16 may have 4 offset positions of upper left, lower left, upper right, and lower right so that they can carry 18-bit data, and the 7 header dots 16 may be designed with 4 offset positions of upper, lower, left, and right bits. The header 14 surrounds the upper left of the code information portion 12 and forms an L-shaped structure, and dots 16' are used to identify the direction of the dot matrix unit. The header 14 is used to distinguish two adjacent dot matrix units, and the dot matrix units 10 having the same code information portion 12 also have the same header 14. Thus, the same lattice unit can be found by looking up the table header 14.
How to encode the additional information using the lattice unit shown in fig. 3 is described in detail below. For example, the additional information is a file ID (9ae43001) of an 8-bit 16-ary number, and for simplicity, the corresponding code information is 32 bits in total, which is a binary number directly converted from the 16-ary number, that is, 10011010111001000011000000000001. Assuming that the lattice unit of fig. 3 is used to encode it, since each lattice unit in fig. 3 can carry only 18 bits of information, 2 lattice units are required to carry 32 bits of information. Therefore, it is necessary to design 2 types of headers, and one basic coding unit is integrally represented by 2 dot matrix units. Fig. 4 is a schematic diagram of a basic coding unit corresponding to a second coding resource provided in an embodiment of the present invention. Different from the first coding resource, the second coding resource is formed by repeatedly laying the basic coding units in the additional information area of the original file, so that the dot matrix identification device can accurately acquire the code information carried by the second coding resource when the dot matrix identification device fetches the additional information area. Further, according to the size of the additional information area of the original file and the size of the basic coding unit, the number (including the horizontal number and the vertical number) required for repeatedly laying the basic coding unit in the additional information area of the original file is calculated, and the number of the basic coding unit is the required second coding resource.
It should be noted that, the encoding manner of the second encoding resource is not limited in the present invention, and fig. 3 and fig. 4 are only used to illustrate how to generate the code information to the encoding graph, and further determine the encoding resource required for encoding the additional information area by the encoding graph. Other encoding schemes can be designed to encode the code information according to common knowledge of the skilled person.
And step S104, loading the first coding resource to the identification area of the original file, and loading the second coding resource to the additional information area of the original file to generate a composite coding file.
Loading the first coding resource in the identification area of the original file, actually assigning the dot matrix code information in the identification area of the original file, and establishing the corresponding relation between the dot matrix resource and the original file in position. And loading the second coding resource to the additional information area of the original file so as to establish the corresponding relation between the paper coding file and the original file. After the generated composite coded file is printed or projected and displayed, when the dot matrix recognition device clicks in an additional information area of the paper coded file, the corresponding original file can be obtained, when the dot matrix recognition device moves in the recognition area of the composite coded file, the motion track data of the dot matrix recognition device can be obtained, the motion track data is sent to a computer or a mobile terminal in real time, and the computer or the mobile terminal displays the recognition track on the corresponding position of the composite coded file according to the corresponding relation of the dot matrix resources and the original file on the position, so that the writing handwriting can be directly stored in the computer in real time, and the digital storage and display of the writing handwriting are realized.
Preferably, the additional information area of the original document is located in the original document cover or in the area around the page that does not affect the display of the document content. FIG. 5 is a schematic diagram of a page of a compound encoded file according to an embodiment of the present invention, wherein an additional information area is located below the page.
In the embodiment of the invention, the identification area of the original file is coded by adopting the coding resource carrying the coordinate information, and the additional information area of the original file is coded by adopting the coding resource carrying the code information, so that the composite coding file is generated. After the composite encoded file is projected or printed, the corresponding original file information can be obtained by clicking the additional information area of the file through the dot matrix identification device, the dot matrix identification device is further used for writing on the composite encoded file, the motion track of the dot matrix identification device on the file can be accurately obtained, and the writing notes on the file are digitally stored and reproduced in real time.
In an embodiment of the present invention, a composite encoded paper document is further provided, where an identification area of the composite encoded paper document is encoded by using a first encoding resource, and the first encoding resource is a dot matrix resource carrying coordinate information; and the additional information area of the composite coding paper file is coded by adopting a second coding resource, and the second coding resource carries index information of the electronic file corresponding to the composite coding paper file.
Specifically, the composite encoded paper document is printed or stamped according to the composite encoded document generated by the method for generating a composite encoded document according to the embodiment of fig. 1. The additional information area of the composite coding paper document is positioned in the envelope or the area around the page which does not influence the display of the document content.
As shown in fig. 6, a structure diagram of a device for generating a composite encoded file according to an embodiment of the present invention includes:
an obtaining module 61, configured to obtain a pre-encoded original file and additional information of the original file;
a first determining module 62, configured to determine, according to the original file, a first coding resource for coding an identification area of the original file, where the first coding resource carries coordinate information;
a second determining module 63, configured to determine, according to the additional information of the original file, a second coding resource for coding an additional information region of the original file, where the second coding resource carries code information corresponding to the additional information;
and the code generation module 64 is configured to load the first coding resource into the identification area of the original file, and load the second coding resource into the additional information area of the original file, so as to generate a composite coding file.
Specifically, the original file is a courseware, a test paper, an electronic book, or the like containing content. Preferably, the original file is a standardized format file, for example, with a page size of a4, A3, B5, etc., and the file format is a printable or printed file of pdf, word, jpg, etc. For non-standardized format files, format conversion is performed first, and then coding is performed after the non-standardized format files are converted into standard format files.
The additional information of the original file includes at least index information of the original file, which can be used to uniquely determine the original file, such as a file ID of the original file. According to actual requirements, the user ID of the original file, factory information of the original file and the like can be included.
The first coding resource is a dot matrix graphic resource adopting special coding. The identified area of the original file is the area that covers the content of the original file and/or needs to be written, and the size and position of the area can be specified by the user. The lattice resource is composed of a plurality of very fine points which are regularly arranged according to a special algorithm. The dot matrix has the function of providing the dot matrix identification device with coordinate parameter information, and the dot matrix identification device can accurately record the motion track when moving in dot matrix resources. Specifically, the dot matrix identification device is an intelligent pen. The lattice resource is composed of a plurality of lattice units, each of which is composed of a plurality of dots, and fig. 2 is a schematic diagram of a lattice unit corresponding to the first coding resource according to the embodiment of the present invention. The lattice unit comprises 4 x 4 virtual squares, and each virtual square consists of four lattice points and 1 information point surrounded by four lattice points. Each dot matrix unit comprises 16 information points, each information point has eight different deviation positions of upper, lower, left, right, upper left, lower left and upper right, and the 16 points have 8 16 power arrangement modes, namely 281 trillion arrangement modes. Assuming that the distance between the virtual squares of each lattice unit is 0.5mm, the size of each lattice unit is 2mm × 2 mm. I.e. the entire lattice resource can cover 2.81 x 4 hundred million square meters. The lattice coding modes are various, and the corresponding arrangement types of different lattice coding modes are different. For example, the dot-matrix coding scheme adopted by Anoto corporation includes 36 information dots per dot-matrix unit, each information dot includes 4 offset positions, and the total number of the information dots is 47 trillion arrangement forms.
Preferably, the first determining module 62 is further configured to obtain page layout information and page number information of the original document; and calculating the area/page number of the first coding resource required for coding all the identification areas of the original file according to the page layout information and the page number information.
Specifically, an original file may contain several pages, the apparatus of the present invention may encode all or part of the specified pages, and further, the apparatus of the present invention obtains page layout information of the original file, that is, the size of each page encoding region. Typically, the apparatus of the present invention encodes the entire page area by default. The area/page number of the required dot matrix resource can be calculated by acquiring the page layout information and the page number information of the original file, namely, the area/page number of the first coding resource required for coding all the identification areas of the original file is determined.
Preferably, the first determining module 62 is further configured to obtain user attribute information and/or file attribute information of the original file before obtaining the page layout information and the page number information of the original file; and determining a code segment of a first coding resource for coding the identification area of the original file according to the user attribute information and/or the file attribute information.
As mentioned above, a lattice resource can be regarded as a huge piece of paper, and preferably, the lattice resource is allocated according to user attributes and/or file attributes, and specifically, a first encoding resource of a certain code segment range is allocated to a user of a certain user attribute and/or a file of a certain file attribute. The user attributes comprise schools, organizations, individuals and the like, and the file attributes comprise file types, page sizes and the like. Specifically, different lattice resources are allocated to different schools or the same lattice resource is allocated to different schools. Because the files generated among different schools cannot be used in a cross mode, the multiplexing of a plurality of schools can be realized by using the same dot matrix resource, and therefore the use of the dot matrix resource is greatly saved. Further, the user attributes also include a grade, a class, a subject, and the like. Alternatively, different grades, classes and subjects may share the same dot matrix resource and be distinguished by using ID on the dot matrix identification device. Therefore, lattice resources can be saved, because the classes do not carry out cross lecture and cross use files, and because the lattice identification device is distinguished, the multiplexing of the lattice resources can be realized between the classes. Preferably, the apparatus of the present invention is further configured to allocate the first encoding resource according to the file attribute information, for example, allocate different code segments according to different file types or page sizes, wherein the file types include test paper, courseware, electronic book, etc., and the page sizes include a4, B5, A3, etc. Preferably, all the lattice resources are stored in a database, and the user accesses and acquires the required lattice resources by using the user ID.
The second coding resource is also a dot matrix graphic resource adopting special coding. Specifically, the code information may be carried by one lattice unit or several lattice units together.
Preferably, the second determining module 63 is further configured to determine, according to the additional information of the original file, code information that needs to be carried by the second encoding resource; generating a basic coding unit by using the code information required to be carried by the second coding resource according to a preset coding rule of the second coding resource; and calculating second coding resources required by repeatedly laying the basic coding units in the additional information area of the original file according to the size of the additional information area of the original file.
Fig. 3 is a schematic diagram of a lattice unit corresponding to a second coding resource according to an embodiment of the present invention. The dot matrix unit 10 includes a code information portion 12 and a table header portion 14. The code information portion 12 includes 9 dots 16 and 9 status areas 18 where the 9 dots 16 are located, and the headtable portion 14 includes 7 dots 16 and 7 status areas where the 7 dots 16 are located, and the whole forms a4 × 4 dot matrix unit. The 9 information dots 16 may have 4 offset positions of upper left, lower left, upper right, and lower right so that they can carry 18-bit data, and the 7 header dots 16 may be designed with 4 offset positions of upper, lower, left, and right bits. The header 14 surrounds the upper left of the code information portion 12 and forms an L-shaped structure, and dots 16' are used to identify the direction of the dot matrix unit. The header 14 is used to distinguish two adjacent dot matrix units, and the dot matrix units 10 having the same code information portion 12 also have the same header 14. Thus, the same lattice unit can be found by looking up the table header 14.
How to encode the additional information using the lattice unit shown in fig. 3 is described in detail below. For example, the additional information is a file ID (9ae43001) of an 8-bit 16-ary number, and for simplicity, the corresponding code information is 32 bits in total, which is a binary number directly converted from the 16-ary number, that is, 10011010111001000011000000000001. Assuming that the lattice unit of fig. 3 is used to encode it, since each lattice unit in fig. 3 can carry only 18 bits of information, 2 lattice units are required to carry 32 bits of information. Therefore, it is necessary to design 2 types of headers, and one basic coding unit is integrally represented by 2 dot matrix units. Fig. 4 is a schematic diagram of a basic coding unit corresponding to a second coding resource provided in an embodiment of the present invention. Different from the first coding resource, the second coding resource is formed by repeatedly laying the basic coding units in the additional information area of the original file, so that the dot matrix identification device can accurately acquire the code information carried by the second coding resource when the dot matrix identification device fetches the additional information area. Further, according to the size of the additional information area of the original file and the size of the basic coding unit, the number (including the horizontal number and the vertical number) required for repeatedly laying the basic coding unit in the additional information area of the original file is calculated, and the number of the basic coding unit is the required second coding resource.
It should be noted that, the encoding manner of the second encoding resource is not limited in the present invention, and fig. 3 and fig. 4 are only used to illustrate how to generate the code information to the encoding graph, and further determine the encoding resource required for encoding the additional information area by the encoding graph. Other encoding schemes can be designed to encode the code information according to common knowledge of the skilled person.
Loading the first coding resource in the identification area of the original file, actually assigning the dot matrix code information in the identification area of the original file, and establishing the corresponding relation between the dot matrix resource and the original file in position. And loading the second coding resource to the additional information area of the original file so as to establish the corresponding relation between the paper coding file and the original file. After the generated composite coded file is printed or projected and displayed, when the dot matrix recognition device clicks in an additional information area of the paper coded file, the corresponding original file can be obtained, when the dot matrix recognition device moves in the recognition area of the composite coded file, the motion track data of the dot matrix recognition device can be obtained, the motion track data is sent to a computer or a mobile terminal in real time, and the computer or the mobile terminal displays the recognition track on the corresponding position of the composite coded file according to the corresponding relation of the dot matrix resources and the original file on the position, so that the writing handwriting can be directly stored in the computer in real time, and the digital storage and display of the writing handwriting are realized.
Preferably, the additional information area of the original document is located in the original document cover or in the area around the page that does not affect the display of the document content. FIG. 5 is a schematic diagram of a page of a compound encoded file according to an embodiment of the present invention, wherein an additional information area is located below the page.
In an embodiment of the present invention, the generating apparatus of the compound code file is configured to execute a generating method for implementing the compound code file as described in the embodiments of fig. 1 to 5.
In the embodiment of the invention, the identification area of the original file is coded by adopting the coding resource carrying the coordinate information, and the additional information area of the original file is coded by adopting the coding resource carrying the code information, so that the composite coding file is generated. After the composite encoded file is projected or printed, the corresponding original file information can be obtained by clicking the additional information area of the file through the dot matrix identification device, the dot matrix identification device is further used for writing on the composite encoded file, the motion track of the dot matrix identification device on the file can be accurately obtained, and the writing notes on the file are digitally stored and reproduced in real time.
According to another aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a memory, implements a method of generating a composite encoded file as described above with respect to the embodiments of fig. 1-5. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable signal medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. The computer-readable storage medium includes: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD _ ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The means for generating the composite encoded file described above may be implemented as a general purpose processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (11)

1. A method of generating a composite encoded file, the method comprising:
acquiring a pre-coded original file and additional information of the original file;
determining a first coding resource for coding an identification area of the original file according to the original file, wherein the first coding resource carries coordinate information;
determining a second coding resource for coding an additional information area of the original file according to the additional information of the original file, wherein the second coding resource carries code information corresponding to the additional information;
and loading the first coding resource to an identification area of the original file, and loading the second coding resource to an additional information area of the original file to generate a composite coding file.
2. The method according to claim 1, wherein the determining, from the original file, a first encoding resource for encoding the identification area of the original file is specifically:
acquiring page layout information and page number information of an original file;
and calculating the area/page number of the first coding resource required for coding all the identification areas of the original file according to the page layout information and the page number information.
3. The method of claim 2, wherein obtaining the page layout information and the page count information of the original document further comprises:
acquiring user attribute information and/or file attribute information of the original file;
and determining a code segment of a first coding resource for coding the identification area of the original file according to the user attribute information and/or the file attribute information.
4. The method according to any one of claims 1 to 3, wherein the determining, according to the additional information of the original file, a second encoding resource for encoding the additional information region of the original file is specifically:
determining code information required to be carried by the second coding resource according to the additional information of the original file;
generating a basic coding unit by using the code information required to be carried by the second coding resource according to a preset coding rule of the second coding resource;
and calculating second coding resources required by repeatedly laying the basic coding units in the additional information area of the original file according to the size of the additional information area of the original file.
5. The method of claim 4, wherein the additional information area of the original document is located in the original document cover or in a surrounding area of the page that does not affect the display of the document contents.
6. The method of claim 4, wherein the additional information of the original file includes at least index information of the original file.
7. A composite coding paper document is characterized in that an identification area of the composite coding paper document is coded by adopting a first coding resource, and the first coding resource carries coordinate information; and the additional information area of the composite coding paper file is coded by adopting a second coding resource, and the second coding resource carries index information of the electronic file corresponding to the composite coding paper file.
8. The method of claim 7, wherein the additional information area of the composite encoded paper document is located in the envelope or in an area around the page that does not affect the display of the document's content.
9. An apparatus for generating a composite encoded file, comprising:
the acquisition module acquires a pre-coded original file and additional information of the original file;
the first determining module is used for determining a first coding resource for coding the identification area of the original file according to the original file, wherein the first coding resource carries coordinate information;
the second determining module is used for determining a second coding resource for coding the additional information area of the original file according to the additional information of the original file, wherein the second coding resource carries code information corresponding to the additional information;
and the code generation module is used for loading the first code resource to the identification area of the original file and loading the second code resource to the additional information area of the original file to generate a composite code file.
10. The apparatus of claim 9, wherein the apparatus is configured to perform a method of generating a composite encoded file that implements any of claims 1 to 6.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of generating a composite encoded file according to any one of claims 1 to 6.
CN202010629439.6A 2020-07-03 2020-07-03 Generation method of composite coding file, paper file and device Pending CN111914514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010629439.6A CN111914514A (en) 2020-07-03 2020-07-03 Generation method of composite coding file, paper file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010629439.6A CN111914514A (en) 2020-07-03 2020-07-03 Generation method of composite coding file, paper file and device

Publications (1)

Publication Number Publication Date
CN111914514A true CN111914514A (en) 2020-11-10

Family

ID=73227307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010629439.6A Pending CN111914514A (en) 2020-07-03 2020-07-03 Generation method of composite coding file, paper file and device

Country Status (1)

Country Link
CN (1) CN111914514A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114707623A (en) * 2022-06-06 2022-07-05 青岛罗博科技有限公司 Lattice code coding method and coding device
CN117692576A (en) * 2023-11-10 2024-03-12 珠海凯芯微电子科技有限公司 Dot matrix code, encoding method and decoding method thereof, controller and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114707623A (en) * 2022-06-06 2022-07-05 青岛罗博科技有限公司 Lattice code coding method and coding device
CN117692576A (en) * 2023-11-10 2024-03-12 珠海凯芯微电子科技有限公司 Dot matrix code, encoding method and decoding method thereof, controller and electronic equipment

Similar Documents

Publication Publication Date Title
Choi et al. Visualizing for the non‐visual: Enabling the visually impaired to use visualization
US20220004751A1 (en) Ink file searching method, apparatus, and program
CN109766879A (en) Generation, character detection method, device, equipment and the medium of character machining model
CN113723347B (en) Information extraction method and device, electronic equipment and storage medium
CN111914514A (en) Generation method of composite coding file, paper file and device
CN112507806B (en) Intelligent classroom information interaction method and device and electronic equipment
CN101408874A (en) Apparatus and method for translating image and character
CN101578597A (en) Converting text
CN110399048B (en) Job correcting method, device, equipment and medium
CN105677777A (en) Lattice coding file generation method
CN113779656A (en) Stamping method, electronic file platform and computer readable storage medium
CN112486337A (en) Handwriting graph analysis method and device and electronic equipment
CN110852042A (en) Character type conversion method and device
CN110941947A (en) Document editing method and device, computer storage medium and terminal
JP2016532190A (en) Document format conversion apparatus and method
CN115271015A (en) Two-dimensional code generation method, scanning method, device, system, equipment and medium
CN113033162A (en) Electronic document conversion method capable of controlling editing rule
CN116721185A (en) Image processing method, apparatus, device, storage medium, and computer program product
CN114037828A (en) Component identification method and device, electronic equipment and storage medium
CN112037111A (en) Method, device, equipment and storage medium for generating and analyzing dark watermark image
CN112487774A (en) Writing form electronization method and device and electronic equipment
CN111902853A (en) Teaching method, device, terminal and system based on dot matrix pen
KR101133567B1 (en) Method and server for publishing on demand
KR101398445B1 (en) Method for displaying contents of comics based on focus lines in electronic devices, and computer-readable recording medium for the same
CN116110056B (en) Information extraction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 202b, 2nd floor, building 1, Jianda Industrial Park, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen YINGSHUO Education Service Co., Ltd

Address before: 202b, 2nd floor, building 1, Jianda Industrial Park, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Yingshuo Education Service Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518100 Room 301, building D, Hongwei Industrial Zone, No. 6, liuxiansan Road, Xingdong community, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen YINGSHUO Education Service Co., Ltd

Address before: 202b, 2nd floor, building 1, Jianda Industrial Park, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen YINGSHUO Education Service Co., Ltd

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination