CN104794106A - Annotating method and device - Google Patents

Annotating method and device Download PDF

Info

Publication number
CN104794106A
CN104794106A CN201410022943.4A CN201410022943A CN104794106A CN 104794106 A CN104794106 A CN 104794106A CN 201410022943 A CN201410022943 A CN 201410022943A CN 104794106 A CN104794106 A CN 104794106A
Authority
CN
China
Prior art keywords
annotation
original image
information
xml file
historical
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
CN201410022943.4A
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.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN201410022943.4A priority Critical patent/CN104794106A/en
Publication of CN104794106A publication Critical patent/CN104794106A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses an annotating method and device to achieve collaborative annotating of different terminals on the same original drawing. The method comprises the steps that the terminals display the original drawing to be annotated at interfaces of annotating tools; the terminals record present-time annotating information, annotated by users through the annotating tools, of the original drawing, and the present-time annotating information is saved as an XML file and then associated with the original drawing to be stored in a network server.

Description

Annotating method and device
Technical Field
The invention relates to the technical field of annotation processing of graphic documents, in particular to an annotation method and device.
Background
At present, there is a comment tool that can comment on a document in a bitmap form, and the concept of design of such application programs is as follows: "draw on the figure". The term "pictorial drawing" means that the remarked content is a bitmap called an original drawing, and the remarking of the original drawing, including marks drawn by a user, input characters, or an inserted image, is stored as a separate bitmap.
In the prior art, when the annotation tool is used for annotating, after an original image is annotated on a terminal, annotation information can only be displayed and annotated continuously on the terminal, and the cooperative annotation of the same original image by different terminals cannot be realized.
Disclosure of Invention
The embodiment of the invention provides an annotation method and an annotation device, which are used for solving the problem that the collaborative annotation of the same original image by different terminals cannot be realized in the prior art.
The embodiment of the invention provides a commenting method, which comprises the following steps:
the terminal displays an original image to be annotated on an interface of an annotation tool;
the terminal records the annotation information of the current time when the user annotates the original image through the annotation tool, stores the annotation information of the current time as an XML file, and then stores the annotation information in the network server in association with the original image so as to be conveniently acquired by other terminals.
The XML file is a universal file format and can be correctly parsed in different terminals. Therefore, the method stores the annotation information as an XML file and stores the XML file and the original image in the network server in a correlated manner, so that different terminals can download the XML file and the original image through the network server to correctly display the historical annotation information, and the different terminals can cooperatively annotate the same original image.
Preferably, before the terminal displays the artwork to be annotated on the interface of the annotation tool, the method further includes:
the method comprises the steps that a terminal obtains an original image and an extensible markup language (XML) file corresponding to the original image from a network server, wherein the XML file is historical annotation information for annotating the original image;
the terminal analyzes the XML file to obtain historical annotation information;
when the terminal displays the original image to be annotated on the interface of the annotation tool, the method further comprises the following steps:
and the terminal displays the historical annotation information on an interface of the annotation tool.
Preferably, the storing the annotation information as an XML file and then storing the annotation information in the web server in association with the original image may include, but is not limited to, the following three implementation manners:
the first implementation mode comprises the following steps: after the comment information is stored as an XML file, the XML file and the original image are compressed and uploaded to the network server, and the path of the compressed file is the same as the path of the original image;
the second implementation mode comprises the following steps: after the current annotation information is stored as an XML file, the original image and the XML file of the historical annotation information are compressed and uploaded to the network server;
the third implementation mode comprises the following steps: and after the current annotation information is saved as an XML file, uploading the XML file to the network server, wherein the association relationship exists between the path for saving the XML file and the path for saving the original image.
Based on any implementation manner of the method embodiment, preferably, the XML file includes an annotation header and annotation content, and the annotation header stores attribute information of the original image; the comment content is stored with: annotation ID, annotation type, data field of annotation, information field of annotation. The attribute information of the original image includes some attributes related to the original image, such as an author of the original image and creation time.
Preferably, the data field of the annotation stores dot matrix coordinates of the handwritten information and a punctuation region, the dot matrix coordinates of the handwritten information are composed of position coordinates of pixel points of the handwritten information in the original image, the punctuation region is composed of position coordinates of the historical annotation information in the original image for the XML file of the historical annotation information, and the punctuation region is composed of position coordinates of the current annotation information in the original image for the XML file of the current annotation information. The drawing information may be: some symbol information drawn when the user performs annotation, such as: marked lines, circles, etc.
Preferably, the information of the annotation includes information of creation time, error type, annotation person, annotation color, annotation font, annotation typeface, line width, and the like of the annotation.
Based on any of the above method embodiments, preferably, the annotation types are: annotating with the hand painting, or annotating with the hand painting with characters, or annotating with the hand painting with pictures;
for the annotation of the picture with hand painting, the BASE64 code of the inserted picture and a picture area array are also stored in the data field of the annotation of the picture with hand painting, and the picture area array is formed by the position coordinates of the outer border of the picture in the original picture;
for the comment with the characters along with the hand-drawing, the UTF-8 code of the inserted characters is also stored in the information field of the comment with the characters along with the hand-drawing, and a text area array is also stored in the data field of the comment with the characters along with the hand-drawing, wherein the text area array is formed by position coordinates of the inserted characters in an original image;
based on any of the above method embodiments, preferably, the terminal displays the original image and the historical annotation information on an interface of an annotation tool, and the specific implementation manner is as follows:
the terminal displays the original image on an interface of an annotation tool according to the mapping relation between the resolution of the terminal and the pixels of the original image;
and the terminal displays the historical annotation information on an interface of the annotation tool according to the position coordinates of the historical annotation information in the original image, wherein the position coordinates of the historical annotation information are stored in the XML file of the historical annotation information.
If the historical annotation information is the freehand annotation, the position coordinate is a dot matrix coordinate; if the historical annotation information is the comment with characters along with the handprint, the position coordinates are the dot matrix coordinates of the information along with the handprint and the picture area matrix of the inserted picture, and if the comment with characters along with the handprint is the comment with characters along with the handprint, the position coordinates are the dot matrix coordinates of the information along with the handprint and the text area matrix of the inserted characters.
Based on the same inventive concept as the method, the invention also provides a batch injection device, which comprises:
the display module is used for displaying the original image to be annotated on the interface of the annotation tool;
and the uploading module is used for recording the annotation information of the time when the user annotates the original image through the annotation tool, storing the annotation information of the time as an XML file, and then storing the XML file in the network server in association with the original image.
According to the device, the original image to be annotated is displayed on the interface of the annotation tool through the display module, the uploading module records the annotation information of the time when the user annotates the original image through the annotation tool, the annotation information of the time is stored as an XML file and then is stored in the network server in a correlated manner with the original image, and the purpose that different terminals can cooperatively annotate the same original image can be achieved.
Preferably, the apparatus further comprises an obtaining module and an analyzing module:
the acquisition module is used for acquiring the original image and an extensible markup language (XML) file corresponding to the original image from a network server, wherein the XML file is historical annotation information annotated by the original image;
the analysis module is used for analyzing the XML file to obtain historical annotation information;
the display module is further used for displaying historical annotation information on an interface of the annotation tool.
Drawings
FIG. 1 is a flow chart of an annotation method according to an embodiment of the invention;
fig. 2 is a schematic view of an annotating device according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides an annotation method and an annotation device, which are used for solving the problem that the collaborative annotation of the same original image by different terminals cannot be realized in the prior art.
The embodiments of the present invention will be further explained with reference to the drawings.
An embodiment of the present invention provides a comment making method, as shown in fig. 1, the method includes:
s101: the terminal displays an original image to be annotated on an interface of an annotation tool;
s102: the terminal records the current annotation information of the annotation of the original image by the user through the annotation tool, stores the current annotation information as an XML file, and then stores the XML file in the network server in association with the original image so as to be conveniently acquired by other terminals.
The XML file is a universal file format and can be correctly parsed in different terminals. Therefore, the method stores the annotation information as an XML file and stores the XML file and the original image in the network server in a correlated manner, so that different terminals can download the XML file and the original image through the network server to correctly display the historical annotation information, and the different terminals can cooperatively annotate the same original image.
Preferably, before the terminal displays the artwork to be annotated on the interface of the annotation tool, the method further includes:
the method comprises the steps that a terminal obtains an original image and an extensible markup language (XML) file corresponding to the original image from a network server, wherein the XML file is historical annotation information for annotating the original image;
the terminal analyzes the XML file to obtain historical annotation information;
when the terminal displays the original image to be annotated on the interface of the annotation tool, the method further comprises the following steps:
and the terminal displays the historical annotation information on the interface of the annotation tool.
The storing of the annotation information as an XML file and then storing the annotation information in the web server in association with the original image may include, but is not limited to, the following three implementation manners:
the first implementation mode comprises the following steps: after the comment information is stored as an XML file, the XML file and the original image are compressed and uploaded to the network server, and the path of the compressed file is the same as the path of the original image; for example: the XML file and the above-mentioned artwork may be compressed in a file with the suffix name prf (proof consonant abbreviation), in the zip manner. The compressed file is saved in the same folder as the original image, or the compressed file is saved in a subfolder that saves the original image folder, and so on.
The second implementation mode comprises the following steps: after the current annotation information is stored as an XML file, the original image and the XML file of the historical annotation information are compressed and uploaded to the network server;
for example: the XML file of the current annotation information, the original image, and the XML file of the historical annotation information are compressed, and can be compressed in a file with a suffix name prf (proof consonant abbreviation), wherein the compression mode is zip. And the name of the file can be the same as the name of the file for storing the historical annotation information and the original image, so that the file for storing the historical annotation information and the original image can be replaced when the file is uploaded to a network server.
The third implementation mode comprises the following steps: and after the current annotation information is saved as an XML file, uploading the XML file to the network server, wherein the association relationship exists between the path of the XML file and the path of the original image. The XML file may be saved in the same folder as the original image, or in a subfolder that saves the original image folder, or may be linked to the folder that saves the XML file, etc. by the file that saves the original image.
Based on any of the above method embodiments, preferably, the XML file includes an annotation header and annotation content, and the annotation header stores attribute information of the original image; the comment content is stored with: annotation ID, annotation type, data field of annotation, information field of annotation. The attribute information of the original image includes some attributes related to the original image, such as an author of the original image and creation time. The annotated information field comprises information such as annotation time, error types, annotation persons, annotation colors, annotation fonts, annotation character patterns, line widths and the like.
Preferably, the annotation type can be, but is not limited to, the following types: the postscript with the hand painting, the postscript with the characters and the postscript with the picture are annotated. The annotation content of any type of annotation comprises the drawing information, and the drawing information is as follows: some symbol information drawn when the user performs annotation, such as: marked lines, circles, etc. The random drawing information stores the annotated data field in the form of dot matrix coordinates, and the dot matrix coordinates are formed by position coordinates of pixel points of the random drawing information in the original drawing. For example: one line is composed of a plurality of pixel points, and the position coordinates of each pixel point in the original image form the dot matrix coordinates of the graph. And a punctuation area is also stored in the data field of the annotation, and for the XML file of the historical annotation information, the punctuation area is formed by the position coordinates of the historical annotation information in the original image, and for the XML file of the current annotation information, the punctuation area is formed by the position coordinates of the current annotation information in the original image.
The hand-drawn annotation means that the annotation only contains the hand-drawn information.
The hand-drawing remark with characters refers to that some characters marked by a user are included on the basis of the hand-drawing information, the inserted characters are stored in an information field of the hand-drawing remark with characters through UTF-8 coding, position coordinates of the inserted characters in an original image form a text area and are stored in a data field of the hand-drawing remark with characters, and the data field of the hand-drawing remark with characters is a position distributed for the hand-drawing remark with characters in the remark data field.
The hand-drawing annotation with the picture is characterized by further comprising a picture inserted by a user on the basis of hand-drawing information, wherein the inserted picture is stored in a data field of the hand-drawing annotation with BASE64 codes, a picture area array is also stored in the data field of the hand-drawing annotation with the picture, the picture area array is formed by position coordinates of an outer frame of the picture in an original picture, the coordinates are stored in the data field of the hand-drawing annotation with the picture in a dot matrix coordinate mode, and the data field of the hand-drawing annotation with the picture is a position allocated to the hand-drawing annotation with the picture in the data field of the annotation.
Based on any of the above method embodiments, preferably, the terminal displays the original image and the historical annotation information on an interface of an annotation tool, and the specific implementation manner is as follows:
the terminal displays the original image on an interface of an annotation tool according to the mapping relation between the resolution of the terminal and the pixels of the original image;
and the terminal displays the historical annotation information on the interface of the annotation tool according to the position coordinates of the historical annotation information stored in the XML file of the historical annotation information in the original image.
If the historical annotation information is the freehand annotation, the position coordinate is a dot matrix coordinate; if the historical annotation information is the comment with characters along with the handprint, the position coordinates are the dot matrix coordinates of the information along with the handprint and the picture area matrix of the inserted picture, and if the comment with characters along with the handprint is the comment with characters along with the handprint, the position coordinates are the dot matrix coordinates of the information along with the handprint and the text area matrix of the inserted characters.
Based on the same concept as the annotating method embodiment, the invention also provides an annotating device, as shown in fig. 2, the device comprises:
the display module 201 is configured to display an original image to be annotated on an interface of an annotation tool;
the uploading module 202 is configured to record the annotation information of the user annotating the original image through the annotation tool, store the annotation information as an XML file, and store the XML file in the network server in association with the original image.
According to the device, the original image and the historical annotation information are displayed on the interface of the annotation tool through the display module 201, the uploading module 202 records the current annotation information of the user for annotating the original image through the annotation tool, the current annotation information is stored as an XML file and then is stored in the network server in a manner of being associated with the original image, and the same original image can be collaboratively annotated by different terminals.
Preferably, the apparatus further comprises:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an original image and an extensible markup language (XML) file corresponding to the original image from a network server, and the XML file is historical annotation information for annotating the original image;
the analysis module is used for analyzing the XML file to obtain the historical annotation information graph as an original graph to be annotated;
the display module 201 is further configured to display the historical annotation information on the interface of the annotation tool.
Preferably, the analysis module is configured to display the original image on an interface of an annotation tool according to a mapping relationship between a resolution of the terminal and pixels of the original image;
and the terminal displays the historical annotation information on an interface of the annotation tool according to the position coordinates of the historical annotation information in the original image, wherein the position coordinates of the historical annotation information are stored in the XML file of the historical annotation information.
The uploading module 202 stores the historical annotation information as an XML file and then stores the XML file in the web server in association with the original image, which may include but is not limited to the following three implementation manners:
the first implementation mode comprises the following steps: after the comment information is stored as an XML file, the XML file and the original image are compressed and uploaded to the network server, and the path of the compressed file is the same as the path of the original image; for example: the compressed file is saved in the same folder as the original image, or the compressed file is saved in a subfolder that saves the original image folder, and so on.
The second implementation mode comprises the following steps: after the current annotation information is stored as an XML file, compressing the XML file, the original image and the XML file of the historical annotation information and uploading the compressed XML file to the network server;
for example: the XML file of the current annotation information, the original image, and the XML file of the historical annotation information are compressed, and can be compressed in a file with a suffix name prf (proof consonant abbreviation), wherein the compression mode is zip. And the name of the file can be the same as the name of the file for storing the historical annotation information and the original image, so that the file for storing the historical annotation information and the original image can be replaced when the file is uploaded to a network server.
The third implementation mode comprises the following steps: after the current annotation information is stored as an XML file, the XML file is uploaded to the network server, and the path for storing the XML file and the path for storing the original image have an association relation. The XML file may be saved in the same folder as the original image, or in a subfolder that saves the original image folder, or may be linked to the folder that saves the XML file through the file that saves the original image, and so on.
Based on any of the above device embodiments, preferably, the XML file includes an annotation header and annotation content, and the annotation header stores attribute information of the original image; the comment content is stored with: annotation ID, annotation type, data field of annotation, information field of annotation. The attribute information of the original image includes some attributes related to the original image, such as an author of the original image and creation time. The annotated information field comprises information such as annotation time, error types, annotation persons, annotation colors, annotation fonts, annotation character patterns, line widths and the like.
Preferably, the annotation type can be, but is not limited to, the following types: the remarks are written along with the hand painting, or the remarks are written along with the hand painting with the picture. The annotation content of any annotation type comprises the hand-drawing information, and the hand-drawing information is as follows: some symbol information drawn when the user performs annotation, such as: marked lines, circles, etc. The random drawing information stores the annotated data field in the form of dot matrix coordinates, and the dot matrix coordinates are formed by position coordinates of pixel points of the random drawing information in the original drawing. For example: one line is composed of a plurality of pixel points, and the position coordinates of each pixel point in the original image form the dot matrix coordinates of the graph.
The hand-drawn annotation means that the annotation only contains the hand-drawn information.
The hand-drawing remark with characters refers to that some characters marked by a user are further included on the basis of the hand-drawing information, the inserted characters are stored in an information field of the hand-drawing remark with characters through UTF-8 coding, position coordinates of the inserted characters in an original image are stored in a data field of the hand-drawing remark with characters, and the data field of the hand-drawing remark with characters is a position distributed for the hand-drawing remark with characters in the data field of the remark.
The hand-drawing annotation with the picture is characterized in that the hand-drawing annotation with the picture inserted by a user is included on the basis of hand-drawing information, the inserted picture is stored in a data field of the hand-drawing annotation with BASE64 codes, a picture area array is also stored in the data field of the hand-drawing annotation with the picture area array, the picture area array is formed by position coordinates of an outer frame of the picture in an original figure, the coordinates are stored in the data field of the hand-drawing annotation with the picture in a dot matrix coordinate mode, and the data field of the hand-drawing annotation with the picture is a position allocated for the hand-drawing annotation with the picture in the data field of the annotation.
In the technical scheme provided by the embodiment of the invention, the terminal can be a Personal Computer (PC) or a mobile terminal. The PC may be a PC of a windows operating system, a PC of a vista operating system, or the like. For the mobile terminal, the terminal may be a terminal of an android system, a terminal of an IOS operating system, a terminal of a saiban system, and the like.
Embodiments of the present invention are further described below with reference to specific application scenarios.
Take a PC of a windows operating system (hereinafter abbreviated as windows PC) and a mobile terminal of an android system (hereinafter abbreviated as android terminal) as examples.
The web server (here, taking FTP server as an example) first determines whether the manuscript to be annotated is in a picture format, and if the manuscript is not in the picture format, the manuscript is converted into a picture in page units (which may not be in page units and is set according to the user's requirements), and the picture is used as the original picture of the annotation tool. Of course, the above-mentioned judgment of whether the annotated manuscript is a picture or not, and if not, the action of converting the manuscript into a picture can be executed by the terminal.
The Windows PC user clicks the button of the annotation tool on the page (taking Windows annotation tool as an example, a core module in the annotation tool externally discloses a MarkWnd class, which is an external interface of the core module.
The user can annotate on the artwork, and the windows PC identifies the selected annotation symbol by the user clicking on the button of the annotation symbol on the annotation tool. When a user clicks or lifts a mouse on an original image, an object ONLButton-Down or ONLButtonUp in the MarkWndImple-like is triggered, the two objects are directly connected with each annotation controller, the annotation controller creates annotation symbols, the size, the shape, the outline, the behavior and the like of the annotation symbols are given, and finally the annotation symbols are drawn. For example, windows PC provides a set of methods for drawing pictures: CGraphSys (graphics system class). Drawing of some basic elements (e.g., straight lines, rectangles, ellipses, etc.) can be performed by this drawing method. The CGraphSys has two sets of coordinate systems, a display coordinate system and a world coordinate system. As with their names, the display coordinate system represents the location of a particular point on the screen, using pixel counts, the display coordinate system can accurately locate the location of a pixel point on the display device; the world coordinate system may represent the actual size, regardless of the display device, in millimeters (e.g., line width of a line, length of a line, etc.). Meanwhile, the CGraphSys provides a method for mutual conversion of two sets of coordinate systems.
And the Windows PC stores the annotated information as an XML file, and stores the XML file in the FTP server in a way of being associated with the original image by calling an interface of the FTP server. The screenshot of the endorsement information after the Windows PC endorsement can also be stored in the FTP server.
An android terminal user clicks a button of the annotation tool on a page, the android terminal identifies the action of the user clicking the button of the annotation tool, the annotation tool is opened, and the XML file and the original image of the windows PC with the annotation information are obtained by calling an FTP server interface.
And the android terminal analyzes the obtained XML file and the original image, and draws the XML file and the original image so as to be correctly displayed on an interface of the annotation tool. The core of the android terminal mobile annotation drawing is a drawing thread and a gesture recognizer (the gesture recognizer can recognize the touch action of a user on a touch screen of the android terminal), the drawing thread draws a packaged annotation note object on an original image in a traversing manner, and the annotation note object is an object corresponding to information (freehand information, text information or picture information) stored in an XML file. The attribute information in the android terminal comprises dot matrix coordinates of the hand-drawn information, creation time, annotation time, error types, revisers, revision time, line width, annotation categories, ID, punctuation areas (the punctuation areas are formed by position coordinates of the current annotation information in an original drawing, the coordinates are stored in the data domain of the annotations and are distributed to the punctuation areas, and the coordinates can be used for judging whether the next annotation is revised for the current annotation) and the like; for the annotation with characters along with the hand painting, the attribute information also comprises a UTF-8 code for inserting the characters, a text area array (the text area is formed by position coordinates of the inserted characters in the original image), and the like; for the hand-drawn annotation of the band diagram, the attribute information further includes a picture BASE64 code, a picture area matrix (which is made up of position coordinates of the outer border of the inserted picture in the original drawing), and the like.
And the android terminal user utilizes the annotation tool to modify the annotations made by the windows PC user or add new annotations, and the like, stores the annotation information as an XML file, and then stores the XML file in the FTP server in association with the original image.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of annotating, comprising:
the terminal displays an original image to be annotated on an interface of an annotation tool;
and the terminal records the annotation information of the time when the user annotates the original image through the annotation tool, stores the annotation information of the time as an extensible markup language (XML) file, and then stores the annotation information in a network server in association with the original image so as to be conveniently acquired by other terminals.
2. The annotation method of claim 1, wherein before the terminal displays the artwork to be annotated on the interface of the annotation tool, the method further comprises:
the terminal acquires the original image and an XML file corresponding to the original image from the network server, wherein the XML file is historical annotation information for annotating the original image;
the terminal analyzes the XML file to obtain the historical annotation information;
when the terminal displays the original image to be annotated on the interface of the annotation tool, the method further comprises the following steps:
and the terminal displays the historical annotation information on an interface of the annotation tool.
3. The annotation method according to claim 2, wherein the storing the current annotation information as an XML file and then storing the current annotation information in the web server in association with the original image includes:
after the current annotation information is stored as an XML file, the XML file and the original image are compressed and uploaded to the network server, and the path of the compressed file is the same as the path of the original image; or,
after the current annotation information is stored as an XML file, the original image and the XML file of the historical annotation information are compressed and uploaded to the network server; or,
and after the current annotation information is stored as an XML file, uploading the XML file to the network server, wherein the association relationship exists between the path for storing the XML file and the path for storing the original image.
4. The annotation method according to claim 2, wherein the XML file includes an annotation header and annotation content, and the annotation header stores therein attribute information of the original image; and storing the annotation content: annotation ID, annotation type, data field of annotation, information field of annotation.
5. The annotation method according to claim 4, wherein the data field of the annotation stores dot matrix coordinates and punctuation areas of the information drawn with hands; the dot matrix coordinates of the drawing information consist of position coordinates of pixel points of the drawing information in the original drawing; for the XML file of the current annotation information, the punctuation area is formed by the position coordinates of the current annotation information in the original image; for the XML file of the historical annotation information, the punctuation area is formed by the position coordinates of the historical annotation information in the original image.
6. The annotation method of claim 4, wherein the information field of the annotation comprises creation time of the annotation, error type, annotation person, annotation color, annotation font, annotation typeface, line width.
7. The annotation method of claim 5, wherein the displaying, by the terminal, the artwork and the historical annotation information on an interface of an annotation tool specifically comprises:
the terminal displays the original image on an interface of an annotation tool according to the mapping relation between the resolution of the terminal and the pixels of the original image;
and the terminal displays the historical annotation information on an interface of the annotation tool according to the position coordinates of the historical annotation information in the original image, which are stored in the XML file of the historical annotation information.
8. The annotation process of any one of claims 1 to 7, wherein the types of annotations are: annotating with the hand painting, or annotating with the hand painting with characters, or annotating with the hand painting with pictures;
for the annotation with the picture drawing along with the hand, the BASE64 code of the inserted picture and a picture area array are also stored in the data field of the annotation with the picture drawing along with the hand, and the picture area array is formed by the position coordinates of the picture outer border in the original picture;
for the comment with the characters along with the hand-drawing, the UTF-8 code of the inserted characters is also stored in the information field of the comment with the characters along with the hand-drawing, and a text area array is also stored in the data field of the comment with the characters along with the hand-drawing, wherein the text area array is formed by position coordinates of the inserted characters in the original image.
9. An annotating device, comprising:
the display module is used for displaying the original image with the annotation on the interface of the annotation tool;
and the uploading module is used for recording historical annotation information of the original image annotated by the user through the annotation tool, storing the historical annotation information as an XML file, and then storing the XML file in the network server in association with the original image.
10. The apparatus of claim 9, further comprising an acquisition module and a parsing module:
the acquisition module is used for acquiring the original image and an extensible markup language (XML) file corresponding to the original image from the network server, wherein the XML file is historical annotation information for annotating the original image;
the analysis module is used for analyzing the XML file to obtain the historical annotation information;
the display module is further used for displaying the historical annotation information on an interface of the annotation tool.
CN201410022943.4A 2014-01-17 2014-01-17 Annotating method and device Pending CN104794106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410022943.4A CN104794106A (en) 2014-01-17 2014-01-17 Annotating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410022943.4A CN104794106A (en) 2014-01-17 2014-01-17 Annotating method and device

Publications (1)

Publication Number Publication Date
CN104794106A true CN104794106A (en) 2015-07-22

Family

ID=53558905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410022943.4A Pending CN104794106A (en) 2014-01-17 2014-01-17 Annotating method and device

Country Status (1)

Country Link
CN (1) CN104794106A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326201A (en) * 2016-08-22 2017-01-11 北京网智天元科技股份有限公司 Note marking and displaying method based on cloud storage
CN106776514A (en) * 2016-12-15 2017-05-31 广州视源电子科技股份有限公司 Annotating method and device
CN110290218A (en) * 2019-07-05 2019-09-27 永中软件股份有限公司 File annotation method and system, computer-readable medium
CN111428452A (en) * 2019-11-27 2020-07-17 杭州海康威视数字技术股份有限公司 Comment data storage method and device
CN113138817A (en) * 2020-01-19 2021-07-20 浙江爱多特大健康科技有限公司 Mobile terminal interface annotation method and device, electronic equipment and computer storage medium
CN113255305A (en) * 2021-05-21 2021-08-13 武汉悦学帮网络技术有限公司 Online approval method and device, electronic equipment and storage medium
US11301200B2 (en) 2018-01-19 2022-04-12 Guangzhou Shiyuan Electronics Co., Ltd. Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004019230A2 (en) * 2002-08-20 2004-03-04 Matsushita Electric Industrial Co., Ltd. Method, system, and apparatus for generating structured document files
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101441644A (en) * 2007-11-19 2009-05-27 英福达科技股份有限公司 Web page annotation system and method
CN102542043A (en) * 2011-12-27 2012-07-04 方正国际软件有限公司 Image annotation method and device
CN102609401A (en) * 2011-12-26 2012-07-25 北京大学 Webpage annotation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004019230A2 (en) * 2002-08-20 2004-03-04 Matsushita Electric Industrial Co., Ltd. Method, system, and apparatus for generating structured document files
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101441644A (en) * 2007-11-19 2009-05-27 英福达科技股份有限公司 Web page annotation system and method
CN102609401A (en) * 2011-12-26 2012-07-25 北京大学 Webpage annotation method
CN102542043A (en) * 2011-12-27 2012-07-04 方正国际软件有限公司 Image annotation method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326201A (en) * 2016-08-22 2017-01-11 北京网智天元科技股份有限公司 Note marking and displaying method based on cloud storage
CN106776514A (en) * 2016-12-15 2017-05-31 广州视源电子科技股份有限公司 Annotating method and device
WO2018107608A1 (en) * 2016-12-15 2018-06-21 广州视源电子科技股份有限公司 Annotation method and apparatus
CN106776514B (en) * 2016-12-15 2020-08-07 广州视源电子科技股份有限公司 Annotating method and device
US11301200B2 (en) 2018-01-19 2022-04-12 Guangzhou Shiyuan Electronics Co., Ltd. Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
CN110290218A (en) * 2019-07-05 2019-09-27 永中软件股份有限公司 File annotation method and system, computer-readable medium
CN111428452A (en) * 2019-11-27 2020-07-17 杭州海康威视数字技术股份有限公司 Comment data storage method and device
CN111428452B (en) * 2019-11-27 2023-09-05 杭州海康威视数字技术股份有限公司 Annotation data storage method and device
CN113138817A (en) * 2020-01-19 2021-07-20 浙江爱多特大健康科技有限公司 Mobile terminal interface annotation method and device, electronic equipment and computer storage medium
CN113255305A (en) * 2021-05-21 2021-08-13 武汉悦学帮网络技术有限公司 Online approval method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104794106A (en) Annotating method and device
US8958644B2 (en) Creating tables with handwriting images, symbolic representations and media images from forms
EP2972990B1 (en) Detection and reconstruction of east asian layout features in a fixed format document
US11422693B2 (en) Digital ink generating apparatus, method and program, and digital ink reproducing apparatus, method and program
CN104267947B (en) A kind of editor's method of pop-up picture and pop-up picture editor's device
US7697001B2 (en) Personalized ink font
JP5439454B2 (en) Electronic comic editing apparatus, method and program
US7970812B2 (en) Redistribution of space between text segments
JP5439456B2 (en) Electronic comic editing apparatus, method and program
US9280524B2 (en) Combining a handwritten marking with a rendered symbol to modify the rendered symbol
CN109656652B (en) Webpage chart drawing method, device, computer equipment and storage medium
CN109783782B (en) Method, equipment, storage medium and device for generating electronic contract template
JP2015158900A (en) Information processing device, information processing method and information processing program
CN108389244B (en) Implementation method for rendering flash rich text according to specified character rules
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN116402020A (en) Signature imaging processing method, system and storage medium based on OFD document
CN113436298A (en) Method, device and related components for automatically generating Chinese character stroke order animation
CN111428452A (en) Comment data storage method and device
CN116311300A (en) Table generation method, apparatus, electronic device and storage medium
US20130104014A1 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium
Glassic et al. Creating figures in R that meet the AFS style guide: standardization and supporting script
CN113012264B (en) Picture processing method, device and equipment
JP6459470B2 (en) Document management program, method, and document management apparatus
JP6225724B2 (en) Information sharing system, information sharing method, information processing apparatus, and information processing method
KR20110040796A (en) Practice handwriting system and method using bitmap comparison on touch screen terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150722

RJ01 Rejection of invention patent application after publication