WO2021104322A1 - 一种批注数据保存方法及装置 - Google Patents
一种批注数据保存方法及装置 Download PDFInfo
- Publication number
- WO2021104322A1 WO2021104322A1 PCT/CN2020/131547 CN2020131547W WO2021104322A1 WO 2021104322 A1 WO2021104322 A1 WO 2021104322A1 CN 2020131547 W CN2020131547 W CN 2020131547W WO 2021104322 A1 WO2021104322 A1 WO 2021104322A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- document
- annotation data
- saved
- format
- picture
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004590 computer program Methods 0.000 claims abstract description 20
- 230000006870 function Effects 0.000 claims description 44
- 238000013500 data storage Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 239000003086 colorant Substances 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Definitions
- This application relates to the field of data processing technology, in particular to a method and device for saving annotation data.
- electronic whiteboard software can be installed to enable the electronic device to realize the electronic whiteboard function.
- the realization of the electronic whiteboard function may specifically be: run the above electronic whiteboard software and display the electronic whiteboard page on the touch screen of the electronic device.
- the user can use a finger or a stylus to perform annotation editing operations such as text writing and graphics drawing on the electronic whiteboard page.
- a preset format document for example, XML (Extensible Markup Language, which can be Extensible Markup Language) format or customized arbitrary data format documents, etc.
- XML Extensible Markup Language
- customized arbitrary data format documents etc.
- the user can only view the specific annotation data through the electronic whiteboard software. Then, when the user sends the saved annotation data to others, if the electronic device used by the other person is not installed electronically Whiteboard software will cause the problem that others cannot view the annotation data, so the user experience is poor.
- the purpose of the embodiments of the present application is to provide a method and device for saving annotation data to improve user experience.
- the specific technical solutions are as follows:
- an embodiment of the present application provides a method for saving annotation data, which includes: acquiring location information corresponding to the annotation data to be saved; acquiring a picture corresponding to the annotation data to be saved; The location information is stored in the same document in the specified format.
- the annotation data to be saved includes all annotation data or specified annotation data in the annotation page; the obtaining the picture corresponding to the annotation data to be saved includes: annotating the annotation data to be saved Perform a screenshot operation on the area where the data is located to obtain the picture corresponding to the annotation data to be saved; or, according to the location information, draw the picture corresponding to the annotation data to be saved.
- the storing the picture and the location information in the same document in a specified format includes: creating a new document in the specified format; writing the picture into the document in the specified format; The location information is written into the document in the specified format, wherein in the document in the specified format, the location information is located after the picture; or, the picture and the location information are stored in In the same document in the specified format, the method includes: writing the location information into the document corresponding to the picture, wherein, in the document corresponding to the picture, the location information is located after the picture.
- the same document in the specified format contains an end-of-document identifier, where the end-of-document identifier is an identifier that has the following function: when the document editing software supports the specified format When opening the same document in the specified format, read the document data before the document end identifier; storing the picture and the location information in the same document in the specified format includes: writing the picture Before the end-of-document identifier in the same document in the specified format, write the location information after the end-of-document identifier in the same document in the specified format.
- the same document in the designated format contains a comment start identifier and a comment end identifier, and the location information is stored in the same document in the designated format.
- the end of annotation identifier wherein the start of annotation identifier and the end of annotation identifier are identifiers that have the following function: the same document in the specified format is imported to generate the annotation data to be saved The software that generates the annotation data to be saved displays the annotation data according to the position information between the annotation start identifier and the annotation end identifier.
- the data format of the location information in the same document in the specified format is a JSON format;
- the specified format is any one of the following formats: portable document format PDF; DOC format; JPG format; JPEG format; PNG format; image interchange format GIF.
- an embodiment of the present application provides a device for saving annotation data, including: a location information acquisition module for acquiring location information corresponding to the annotation data to be saved; and an image acquisition module for acquiring the annotation data to be saved The picture corresponding to the data; a storage module for storing the picture and the location information in the same document in a specified format.
- the annotation data to be saved includes all annotation data or specified annotation data in the annotation page; the image acquisition module is specifically used to: perform a screenshot operation on the area where the annotation data to be saved is located , Obtain the picture corresponding to the annotation data to be saved; or draw the picture corresponding to the annotation data to be saved according to the location information.
- the storage module is specifically configured to: create a new document in a specified format; write the picture into the document in the specified format; write the location information into the document in the specified format , Wherein, in the document of the specified format, the location information is located after the picture; or, the location information is written in the document corresponding to the picture, wherein the document corresponding to the picture , The location information is located behind the picture.
- the same document in the specified format contains an end-of-document identifier, where the end-of-document identifier is an identifier that has the following function: when the document editing software supports the specified format When opening the same document in the specified format, read the document data before the document end identifier; the storage module is specifically configured to: write the picture into the same document in the specified format in the document end Before the identifier, the location information is written after the document end identifier in the same document in the specified format.
- the same document in the designated format contains a comment start identifier and a comment end identifier, and the location information is stored in the same document in the designated format.
- the end of annotation identifier wherein the start of annotation identifier and the end of annotation identifier are identifiers with the following functions: importing the document in the specified format to generate the annotation data to be saved
- the software that generates the annotation data to be saved displays the annotation data according to the position information between the annotation start identifier and the annotation end identifier.
- the data format of the location information in the same document in the specified format is a JSON format;
- the specified format is any one of the following formats: portable document format PDF; DOC format; JPG format; JPEG format; PNG format; image interchange format GIF.
- an embodiment of the present application provides an electronic device including a processor and a memory, wherein the memory is used to store a computer program; the processor is used to execute the program stored in the memory. , To achieve any of the above-mentioned methods for saving data in batches.
- the embodiments of the present application also provide a computer-readable storage medium that stores a computer program in the computer-readable storage medium, and when it runs on a computer, the computer executes any of the above-mentioned methods for saving annotation data. .
- the embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above-mentioned methods for saving annotation data.
- the method, device, electronic device, computer readable storage medium, and computer program product for saving annotation data obtained in the embodiments of the present application obtain the location information corresponding to the annotation data to be saved; obtain the picture corresponding to the annotation data to be saved; The picture and the location information are stored in the same document in a designated format.
- the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved are stored in the same document in a specified format, so that the picture corresponding to the annotation data to be saved can be displayed in the image display function.
- Displayed in other software refers to software other than the target software.
- the target software refers to software that generates annotation data such as electronic whiteboards.
- the user can use other software that has a picture display function.
- Software such as document editing software
- you can also view the annotation data by displaying the pictures corresponding to the saved annotation data by other software other than the target software that has a picture display function, that is: making the viewers more convenient to view the annotation data , Therefore, improve the user experience.
- FIG. 1 is a schematic flowchart of a method for saving annotation data provided by an embodiment of the application
- FIG. 2 is a schematic diagram of another flow chart of a method for saving annotation data provided by an embodiment of the application
- FIG. 3 is a schematic structural diagram of an annotation data storage device provided by an embodiment of the application.
- FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for saving annotation data.
- the annotation data in the embodiment of the application may be the annotation data in the page such as an electronic whiteboard, or the annotation data in the page such as PPT.
- the specific type of the annotation page where the annotation data is located is not limited.
- Fig. 1 is a schematic flowchart of a method for saving annotation data according to an embodiment of the application, which specifically includes the following steps:
- Step 101 Obtain location information corresponding to the annotation data to be saved.
- the annotation data to be saved can be all the annotation data in the annotation page, or the specified annotation data in the annotation page, and the specified annotation data can be specified by the user through a preset operation instruction, for example, .
- the annotation data to be saved can be the annotation data in the designated frame selection area selected by the user through mouse frame selection or touch frame selection on the annotation page, or it can be determined according to other preset rules.
- the number of comment pages in this step can be one or more.
- This step can be executed after the user's save instruction for the annotation data to be saved is detected, for example: when it is detected that the user selects the specified annotation data in the designated area as the annotation data to be saved by box selection, and clicks the interface After the annotation save icon in the file, obtain the location information corresponding to the annotation data to be saved.
- This step can also be executed periodically at a preset interval, for example, this step is executed once every 10 minutes.
- the location information corresponding to the annotation data to be saved can be the location information of each pixel where the annotation data to be saved is located.
- the location information of the pixel is used to indicate the pixel coordinates of the pixel in the annotation page.
- the acquired position information can be stored in a document in a specified format in the subsequent step 103, so that when the user wants to erase the saved annotation data, During editing operations such as moving, the document in the specified format can be imported into the software that generates the annotation data to display the annotation data for the user to edit according to the location information stored in the document in the specified format.
- annotation data to be saved is annotation data with attributes such as color and thickness
- the annotation data displayed is the annotation data with attributes such as color and thickness. Therefore, it can be further improved User experience, where the pixel value information of the pixel is used to indicate the color and/or line width of the pixel in the comment page, and the line width indicates the width of the pixel in the comment page.
- Step 102 Obtain a picture corresponding to the annotation data to be saved.
- step 101 may be executed first to obtain the location information corresponding to the annotation data to be saved, or step 102 may be executed first to obtain the annotation data corresponding to the annotation data to be saved. image.
- FIG. 1 is only a schematic flow diagram of the method for saving annotation data provided in the embodiment of the present application.
- the execution order of step 101 and step 102 can be set according to actual needs, which is exemplary Step 102 may be executed before step 101, or it may be executed in parallel with step 101, or it may be executed alternately with step 101. This embodiment does not limit the execution order of step 101 and step 102.
- the pictures corresponding to the annotation data to be saved in each annotation page can be obtained page by page in the order from front to back.
- the order from front to back may refer to the order from smallest to largest according to the page number. In other possible embodiments, it may also be in the order from back to front, or in other order specified by the user, which is not limited in this embodiment.
- the above picture can be obtained in the following two ways:
- the first method draw a picture corresponding to the annotation data to be saved according to the location information.
- the picture corresponding to the annotation data to be saved can be drawn through data rendering.
- the second method is to perform a screenshot operation on the area where the annotation data to be saved is located to obtain the picture corresponding to the annotation data to be saved.
- the API Application Programming Interface
- the API used for screenshot operations in the system can be directly called to take a screenshot of the entire page of the annotation page, thereby Get the picture corresponding to the annotation data to be saved;
- the annotation data to be saved is the specified annotation data selected by the user in the annotation page, you can call the above API based on the position information of the selection box to obtain the above specified annotation data to be saved corresponding picture of.
- the second method can be used to obtain the image including the annotation data to be saved and all the original content in the annotation page, where the original content refers to the The content that already exists before the annotation, for example, when the annotation data to be saved is all the annotation data in a certain electronic whiteboard software page, and the above electronic whiteboard software page has background elements or background colors, the second method can be used to obtain Including all the annotation data in the electronic whiteboard software page, as well as all the background elements or background color pictures of the electronic whiteboard software page.
- the second method can be used to obtain all the annotation data in the PPT page, as well as all the original data of the PPT page.
- the second method can be used to obtain a picture including the annotation data to be saved and the original content in the designated area where the specified annotation data on the annotation page is located.
- the annotation data to be saved is the specified annotation data in a certain electronic whiteboard software page, and the above electronic whiteboard software page has background elements or background colors
- the first method can be used to obtain the information including the electronic whiteboard software page Specify the annotation data, and also include the background element or background color picture in the designated area where the specified annotation data in the electronic whiteboard software page is located.
- the annotation data to be saved is the specified annotation data in a PPT page, and the above PPT
- the second method can be used to obtain the specified annotation data in the PPT page, as well as the specified area where the specified annotation data in the PPT page is located. Picture of the original data inside.
- the above-mentioned pictures may also be obtained in other ways than the above-mentioned first way and the second way, which is not limited in this embodiment.
- Step 103 Store the picture and the location information in the same document in a designated format.
- the storage location of the picture can be after the storage location of the location information, or before the storage location of the location information.
- the pictures and location information before and after the storage location in the same document The relationship is not limited.
- the location information and pictures corresponding to the annotation data to be saved in each annotation page can be stored in the order of the annotation page.
- It stores the pictures corresponding to the annotation data to be saved in each annotation page in order according to the order of the annotation pages. After storing all the pictures corresponding to the annotation data to be saved, the positions corresponding to the annotation data to be saved in each annotation page are sequentially stored in the order of the annotation pages information.
- the annotation data to be saved is distributed on two different annotation pages
- the pictures corresponding to the data, after all the pictures are stored, after the picture storage location, are sequentially stored in the position information corresponding to the annotation data to be saved in the first annotation page, and the annotations to be saved in the second annotation page
- the first comment page is one of the above two different comment pages
- the second comment page is another one of the above two different comment pages.
- the designated format may be any one of the following formats: portable document format PDF, DOC format, JPG format, JPEG format, PNG format, or image interchange format GIF.
- the document editing software is software with a picture display function other than the target software for generating annotation data (such as electronic whiteboard software).
- the document editing software may be a software with PDF Document editing software (such as PDF reader), at this time users can view the annotation data through the software with PDF document editing function (such as PDF reader);
- PDF document editing function such as PDF reader
- the document editing software can be commonly used office Software
- the specified format is JPG, JPEG, PNG or GIF
- the document editing software can be a picture reader, and the user can view the annotation data through the picture reader.
- the picture and location information can be stored in the same document in the above designated format in the following manner:
- the specified format is an image format, such as JPG, JPEG, PNG, or GIF
- the image and location information can be stored in the same document in the above specified format in the following manner:
- the location information is written into the document corresponding to the picture, wherein, in the document corresponding to the picture, the location information is located behind the picture. If there are multiple pictures, the multiple pictures can be written into multiple documents of different specified formats, and the location information corresponding to each picture is written into the document of the specified format written in the picture. Exemplarily, suppose there are picture 1 and picture 2, the position information corresponding to picture 1 is position information 1, and the position information corresponding to picture 2 is picture 2. It can be that picture 1 and position information 1 are written into JPG document 1, and the picture 2 and position information 2 are written into JPG file 2. ,
- the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved are stored in the same document in the specified format, so that the annotation data to be saved corresponds to
- the picture can be displayed in other software with picture display function.
- other software refers to software other than the target software
- the target software refers to the software that generates the annotation data such as electronic whiteboard.
- the user can view the specific annotation data by displaying the image corresponding to the saved annotation data through other software with image display function (such as document editing software).
- the annotation data is double-stored in two different ways: one is: storing the location information corresponding to the annotation data to be saved, and when the user needs to edit the When re-editing the annotation data, the edited annotation data can be redisplayed in the target software that generates the annotation data to be saved according to the above-mentioned stored location information, so that the user can erase, move, etc. the edited annotation data Operation; the other is: store the picture corresponding to the annotation data to be saved.
- the user only wants to view the annotation data without editing the annotation data again, it can be displayed in a picture display function other than the target software. Open the document in the above specified format in other software, and then directly view the pictures stored in it, without opening the target software, thus further improving the user experience.
- FIG. 2 is a schematic flow diagram of another method for saving annotation data provided by an embodiment of the application, which specifically includes the following steps:
- Step 201 Perform a screenshot operation on the area where the annotation data is to be saved to obtain a picture corresponding to the annotation data to be saved.
- the annotation data to be saved can be all the annotation data in the annotation page, or can be the specified annotation data in the annotation page.
- the annotation data to be saved can be the user using the mouse frame in the annotation page.
- the number of comment pages in this step can be one or more.
- This step can be executed after the user's save instruction for the annotation data to be saved is detected, for example: when it is detected that the user selects the specified annotation data in the designated area as the annotation data to be saved by box selection, and clicks the interface After the annotation save icon in, take a screenshot of the area where the annotation data is to be saved, and get the picture corresponding to the annotation data to be saved.
- This step can also be executed periodically at a preset interval, for example, this step is executed once every 10 minutes.
- the screenshot operation can be performed page by page in order from front to back to obtain the pictures corresponding to the annotation data to be saved in each annotation page.
- the order from front to back may refer to the order from smallest to largest according to the page number. In other possible embodiments, it may also be in the order from back to front, or in other order specified by the user, which is not limited in this embodiment.
- the annotation data to be saved is all the annotation data in the annotation page
- this step can be used to obtain the image including the annotation data to be saved and all the original content in the annotation page.
- the annotation data to be saved is an electronic whiteboard software
- this step can be used to obtain all the annotation data in the electronic whiteboard software page, as well as all the background elements or background elements of the electronic whiteboard software page. The background color of the picture.
- the annotation data to be saved is the designated annotation data in the annotation page
- a picture including the annotation data to be saved and the original content in the designated area where the designated annotation data on the annotation page is located can be obtained.
- this step can be used to obtain the designated annotation data including the electronic whiteboard software page , It also includes the background element or background color picture in the designated area where the designated annotation data on the whiteboard software page is located.
- Step 202 Create a new document in a specified format.
- the document in the specified format may be a portable document format PDF, DOC format, or the like.
- the document in the specified format contains an end-of-document identifier, which is used to make the document data before the end-of-document identifier read when the document editing software that supports the specified format opens the document in the specified format, for example, PDF
- the end identifier in the formatted document can be: %%EOF.
- Step 203 Write the picture before the end-of-document identifier in the document of the specified format.
- the end-of-document identifier may already exist in the document of the specified format before the picture is written into the document of the specified format, or it may be added to the document of the specified format after the picture is written into the document of the specified format.
- the document end identifier is added to the document of the specified format, and the picture is written before the document end identifier.
- write the picture in the document of the specified format and then write the image in the document of the specified format. Add the end-of-document identifier after the position of the picture.
- picture display function such as document editing software
- other software can read the picture from the data before the document end identifier in the document according to the position of the document end identifier in the document , And display it.
- Step 204 Obtain location information corresponding to the annotation data to be saved.
- the position information corresponding to the annotation data to be saved may be the position information of each pixel where the annotation data to be saved is located, where the position information of the pixel is used to indicate the pixel coordinates of the pixel in the annotation page.
- FIG. 2 is only a schematic flow diagram of the method for saving annotation data provided by the embodiment of the present application.
- the execution order of step 201, step 202, and step 204 can be set according to actual needs.
- step 204 may be executed before step 201 and step 202
- step 202 may be executed before step 201
- all or any two steps of step 201, step 202, and step 204 may be executed in parallel Or alternate execution, this embodiment does not limit this.
- step 202 after performing step 201, perform step 202 to create a new document in a specified format, or perform step 202 to create a new document in a specified format after detecting a save instruction for the annotation data to be saved;
- step 204 after performing step 201, step 202, and step 203, perform step 204 to obtain the location information corresponding to the annotation data to be saved, or execute after detecting the save instruction for the annotation data to be saved Step 204.
- the order of execution of step 201, step 202, and step 204 is not limited. It is only necessary to ensure that step 201, step 202, and step 204 are executed after the save instruction for the annotation data to be saved is detected. .
- Step 205 Write the location information after the end-of-document identifier in the document of the specified format.
- the document in the designated format contains a comment start identifier and a comment end identifier, and the location information is stored between the comment start identifier and the comment end identifier in the document in the designated format;
- the comment start identifier and/or the comment end identifier can already exist in the document of the specified format before the location information is written into the document of the specified format, or it can be in the specified format after the picture is written into the document of the specified format Added in the documentation.
- the comment start identifier and the comment end identifier are added to the document in the specified format, and the comment start identifier and the comment Write position information between the end identifiers.
- after creating a new document of the specified format and before adding the comment start identifier and the comment end character write the position information in the document of the specified format, and then write the position information in the document of the specified format.
- a comment start identifier is added before the position in the document where the position information is written, and the comment end identifier is added after the position where the position information is written in the document in the specified format.
- add a comment start identifier to the document in the specified format, and write the position information after the comment start identifier, and then specify The end of the comment identifier is added after the position where the position information is written in the formatted document.
- the location information may be written into the document in the specified format before the picture, or may be written in the document in the specified format after the picture, and this embodiment does not impose any limitation on this.
- the comment start identifier and the comment end identifier are identifiers that have the following functions: when the same document in a specified format is imported into the software that generates the comment data to be saved, the software can use the comment start identifier The position information between the symbol and the end of the comment, the comment data is displayed. .
- the user when the user wants to perform editing operations such as erasing or moving the saved annotation data, he can import the document in the above-mentioned specified format into the software that generates the annotation data, which is based on the annotation start identifier and the annotation in the document End the identifier, quickly locate the location information, and then based on the location information, you can determine each pixel in the software page where the annotation data is located, and then the software can set the pixel value of the above-mentioned each pixel to a preset value Way, the annotation data is displayed in the software interface for the user to edit and use.
- the content written in the document in the specified format may also include other content, which is not limited in this embodiment.
- pixel value information may be included.
- the pixel value information may be written into the document in the specified format before the picture and/or location information, or may be written in the document in the specified format after the picture and/or location information. This embodiment does not impose any restriction on this.
- the annotation data to be saved is annotation data with attributes such as color and thickness
- the pixel value information of each pixel where the annotation data to be saved is located can also be obtained. It can also store: the pixel value information of each pixel where the annotation data is to be saved, so that when importing a document in a specified format that includes the pixel value information and position information of each pixel where the annotation data is located, the above annotation is generated
- Data software after determining each pixel in the software page where the annotation data is located according to the location information, you can set the determined pixel value of each pixel according to the pixel value information in the document to restore the color and color of the annotation data. Attributes such as thickness.
- the data format of the location information in the document in the specified format may be a JSON (JavaScript Object Notation, object notation) format.
- JSON JavaScript Object Notation, object notation
- the data format of the pixel value information stored in the document in the specified format may also be the JSON format.
- JSON uses a text format completely independent of programming language to store and represent data, it is easy to parse and generate, and data stored in JSON format is easier to transmit over the network. Therefore, in this embodiment of the application, location information is stored in JSON format In the specified format of the document, the efficiency of saving the annotation data can be improved, and the efficiency of network transmission can be improved during the annotation transmission process.
- the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved are stored in the same document in a specified format, so that the picture corresponding to the annotation data to be saved can be deleted It can be displayed in other software with picture display function except the target software that generates the annotation data, such as electronic whiteboard software.
- the user can use document editing software and other software other than the target software that has pictures.
- Other software with display function displays the pictures corresponding to the saved annotation data to view the specific annotation data.
- the target software can also view the annotation data through the display of pictures corresponding to the saved annotation data by other software other than the target software that has a picture display function, that is: making the viewers more convenient to view the annotation data, so , Improve the user experience.
- the user can view the data content before the end of the document identifier through the document editing software, and the data content after the end of the document identifier is invisible to the user.
- the image corresponding to the annotation data to be saved is written before the end-of-document identifier in the document of the specified format, and the location information is written after the end-of-document identifier in the document of the specified format, so that only the annotation to be saved can be displayed to the user
- the image corresponding to the data, and the location information is hidden, so that the user can view the annotation data intuitively, and reduce the user's visual interference in the process of viewing the annotation data, thereby further improving the user experience.
- the annotation data is double-stored in two different ways: one is: storing the picture corresponding to the annotation data to be saved, when the user only wants to view the annotation Data, without the need to edit the annotation data again, you can open the document in the specified format in other software other than the target software that has a picture display function, and then directly view the pictures stored in it without opening the target software; The other is to store the location information corresponding to the annotation data to be saved.
- the stored position information can be used in the target software that generates the annotation data to be saved.
- the edited annotation data is redisplayed so that the user can erase and move the edited annotation data, thereby further improving the user experience.
- the location information is stored between the comment start identifier and the comment end identifier in the document in the specified format, therefore, When importing the document in the above-mentioned specified format into the software that generates the annotation data, the position information can be quickly located according to the annotation start identifier and the annotation end identifier in the document to perform the subsequent annotation data display process. Therefore, The efficiency of displaying annotation data based on location information can be improved.
- an embodiment of the present application also provides an annotation data storage device.
- the schematic structural diagram of the device is shown in FIG. 3 and includes:
- the location information obtaining module 301 is used to obtain location information corresponding to the annotation data to be saved;
- the picture acquisition module 302 is configured to acquire the picture corresponding to the annotation data to be saved
- the storage module 303 is configured to store the picture and the location information in the same document in a designated format.
- the annotation data to be saved includes all annotation data in the annotation page or designated annotation data;
- the picture acquisition module 302 is specifically used for:
- a picture corresponding to the annotation data to be saved is drawn.
- the storage module 303 is specifically configured to:
- the location information is written into the document corresponding to the picture, wherein, in the document corresponding to the picture, the location information is located behind the picture.
- the same document in the specified format contains an end-of-document identifier, where the end-of-document identifier is an identifier that has the following function: when the document editing software supports the specified format When opening the same document in the specified format, read the document data before the document end identifier;
- the storage module is specifically configured to: write the location information into the same document in the specified format before the end of document identifier in the same document in the specified format, and write the location information into the end of the document in the same document in the specified format After the identifier.
- the same document in the designated format contains a comment start identifier and a comment end identifier, and the location information is stored in the same document in the designated format. And the end of the comment identifier;
- annotation start identifier and the annotation end identifier are identifiers that have the following functions: when the same document in the specified format is imported into the software that generates the annotation data to be saved, the generation The software for the annotation data to be saved displays the annotation data according to the position information between the annotation start identifier and the annotation end identifier;
- the data format of the location information in the same document in the specified format is a JSON format
- the specified format is any of the following formats:
- the storage module 303 stores the image and the location
- the information is stored in the same document in the specified format, so that the image corresponding to the annotation data to be saved can be displayed in other software with image display function besides the target software that generates the annotation data, such as electronic whiteboard software.
- the user can view the specific annotation data through the display of the image corresponding to the saved annotation data by other software other than the target software, such as the target software.
- the image corresponding to the saved annotation data can be viewed by other software other than the target software that has a picture display function. Display to view the annotated data, that is, make the viewer more convenient to view the annotated data, thus improving the user experience.
- the annotation data is double-stored in two different ways: one is: storing the location information corresponding to the annotation data to be saved, and when the user needs to edit the When re-editing the annotation data, the edited annotation data can be redisplayed in the target software that generates the annotation data to be saved according to the above-mentioned stored location information, so that the user can erase, move, etc. the edited annotation data Operation; the other is: store the picture corresponding to the annotation data to be saved.
- the user only wants to view the annotation data without editing the annotation data again, it can be displayed in a picture display function other than the target software. Open the document in the above specified format in other software, and then directly view the pictures stored in it without opening the target software, thus further improving the user experience.
- An embodiment of the present application also provides an electronic device, as shown in FIG. 4, including:
- the memory 401 is used to store computer programs
- the processor 402 is configured to implement the following steps when executing the program stored in the memory 401:
- the picture and the location information are stored in the same document in a designated format.
- it may also include other processing procedures in the above-mentioned annotation data saving method provided in the embodiment of the present application, which will not be described in detail here.
- the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved are stored in the same document in a specified format, so that the picture corresponding to the annotation data to be saved can be saved Whiteboard software and other software with image display function other than the target software that generates the annotation data.
- the user can use document editing software and other software other than the target software that has image display. The function of other software displays the pictures corresponding to the saved annotation data to view the specific annotation data.
- the software can also view the annotation data by displaying the pictures corresponding to the saved annotation data by other software other than the target software that has the function of image display, that is, making it easier for the viewer to view the annotation data. Therefore, Improved user experience.
- the annotation data is double-stored in two different ways: one is: storing the location information corresponding to the annotation data to be saved, and when the user needs to edit the When re-editing the annotation data, the edited annotation data can be redisplayed in the target software that generates the annotation data to be saved according to the above-mentioned stored location information, so that the user can erase, move, etc. the edited annotation data Operation; the other is: store the picture corresponding to the annotation data to be saved.
- the user only wants to view the annotation data without editing the annotation data again, it can be displayed in a picture display function other than the target software. Open the document in the above specified format in other software, and then directly view the pictures stored in it, without opening the target software, thus further improving the user experience.
- the electronic device provided in the embodiment of the present application may further include a communication interface and a communication bus.
- the processor 402 the communication interface, and the memory 401 communicate with each other through a communication bus.
- the above-mentioned communication bus mentioned by the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the above-mentioned electronic device and other devices.
- the memory may include random access memory (Random Access Memory, RAM for short), or may include non-volatile memory (non-volatile memory), such as at least one disk memory.
- RAM Random Access Memory
- non-volatile memory such as at least one disk memory.
- the memory may also be at least one storage device located far away from the foregoing processor.
- the aforementioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP for short) , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- CPU Central Processing Unit
- NP Network Processor
- DSP Digital Signal Processing
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- a computer-readable storage medium stores a computer program. When it runs on a computer, the computer executes any of the above-mentioned embodiments. One way to save annotation data.
- the computer readable storage medium stores a computer program.
- the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved can be stored in a specified format.
- the picture corresponding to the annotation data to be saved can be displayed in other software other than the target software that generates the annotation data, such as the electronic whiteboard software, which has a picture display function.
- the user can view the specific annotation data through the display of the image corresponding to the saved annotation data by other software other than the target software other than the target software.
- the annotation data is double-stored in two different ways: one is: storing the location information corresponding to the annotation data to be saved, and when the user needs to edit the When re-editing the annotation data, the edited annotation data can be redisplayed in the target software that generates the annotation data to be saved according to the above-mentioned stored location information, so that the user can erase, move, etc. the edited annotation data Operation; the other is: store the picture corresponding to the annotation data to be saved.
- the user only wants to view the annotation data without editing the annotation data again, it can be displayed in a picture display function other than the target software. Open the document in the above specified format in other software, and then directly view the pictures stored in it, without opening the target software, thus further improving the user experience.
- a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute the annotation data saving method in any of the above embodiments.
- the computer program product containing instructions provided by the embodiments of this application can store the location information corresponding to the annotation data to be saved and the picture corresponding to the annotation data to be saved in the same document in a specified format when it runs on a computer.
- the picture corresponding to the annotation data to be saved can be displayed in other software with a picture display function except for the target software that generates the annotation data such as electronic whiteboard software.
- the user can use Document editing software and other software other than the target software with picture display function display the pictures corresponding to the saved annotation data to view the specific annotation data.
- the annotation data is double-stored in two different ways: one is: storing the location information corresponding to the annotation data to be saved, and when the user needs to edit the When re-editing the annotation data, the edited annotation data can be redisplayed in the target software that generates the annotation data to be saved according to the above-mentioned stored location information, so that the user can erase, move, etc. the edited annotation data Operation; the other is: store the picture corresponding to the annotation data to be saved.
- the user only wants to view the annotation data without editing the annotation data again, it can be displayed in a picture display function other than the target software. Open the document in the above specified format in other software, and then directly view the pictures stored in it, without opening the target software, thus further improving the user experience.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (15)
- 一种批注数据保存方法,其特征在于,包括:获取待保存批注数据所对应的位置信息;获取所述待保存批注数据所对应的图片;将所述图片和所述位置信息存储至指定格式的同一文档中。
- 根据权利要求1所述的方法,其特征在于,所述待保存批注数据包括批注页面中的所有批注数据或者指定批注数据;所述获取所述待保存批注数据所对应的图片,包括:对所述待保存批注数据所在区域进行截图操作,得到所述待保存批注数据所对应的图片;或者,根据所述位置信息,绘制所述待保存批注数据所对应的图片。
- 根据权利要求1所述的方法,其特征在于,所述将所述图片和所述位置信息存储至指定格式的同一文档中,包括:新建指定格式的文档;将所述图片写入所述指定格式的文档;将所述位置信息写入所述指定格式的文档,其中,在所述指定格式的文档中,所述位置信息位于所述图片之后;或者,所述将所述图片和所述位置信息存储至指定格式的同一文档中,包括:将所述位置信息写入所述图片所对应的文档中,其中,在所述图片所对应的文档中,所述位置信息位于所述图片之后。
- 根据权利要求1所述的方法,其特征在于,所述指定格式的同一文档中含有文档结束标识符,其中,所述文档结束标识符为具备以下功能的标识符:使得当支持所述指定格式的文档编辑软件打开所述指定格式的同一文档时,读取所述文档结束标识符之前的文档数据;所述将所述图片和所述位置信息存储至指定格式的同一文档中,包括:将所述图片写入所述指定格式的同一文档中所述文档结束标识符之前,将所述位置信息写入所述指定格式的同一文档中所述文档结束标识符之后。
- 根据权利要求1-4任一所述的方法,其特征在于,所述指定格式的同一文档中含有批注起始标识符和批注结束标识符,所述位置信息存储于所述指定格式的同一文档中所述批注起始标识符和批注结束标识符之间;其中,所述批注起始标识符和所述批注结束标识符为具备以下功能的标识符:使得在将所述指定格式的同一文档导入产生所述待保存批注数据的软件时,所述产生所述待保存批注数据的软件根据所述批注起始标识符和所述批注结束标识符之间的所述位置信息,显示批注数据。
- 根据权利要求1-4任一所述的方法,其特征在于,所述指定格式的同一文档中的所述位置信息的数据格式为JSON格式;所述指定格式为以下格式中的任意一种:便携式文档格式PDF;DOC格式;JPG格式;JPEG格式;PNG格式;图像互换格式GIF。
- 一种批注数据保存装置,其特征在于,包括:位置信息获取模块,用于获取待保存批注数据所对应的位置信息;图片获取模块,用于获取所述待保存批注数据所对应的图片;存储模块,用于将所述图片和所述位置信息存储至指定格式的同一文档中。
- 根据权利要求7所述的装置,其特征在于,所述待保存批注数据包括批注页面中的所有批注数据或者指定批注数据;所述图片获取模块,具体用于:对所述待保存批注数据所在区域进行截图操作,得到所述待保存批注数据所对应的图片;或者,根据所述位置信息,绘制所述待保存批注数据所对应的图片。
- 根据权利要求7所述的装置,其特征在于,所述存储模块,具体用于:新建指定格式的文档;将所述图片写入所述指定格式的文档;将所述位置信息写入所述指定格式的文档,其中,在所述指定格式的文档中,所述位置信息位于所述图片之后;或者,将所述位置信息写入所述图片所对应的文档中,其中,在所述图片所对应的文档中,所述位置信息位于所述图片之后。
- 根据权利要求7所述的装置,其特征在于,所述指定格式的同一文档中含有文档结束标识符,其中,所述文档结束标识符为具备以下功能的标识符:使得当支持所述指定格式的文档编辑软件打开所述指定格式的同一文档时,读取所述文档结束标识符之前的文档数据;所述存储模块,具体用于:将所述图片写入所述指定格式的同一文档中所述文档结束标识符之前,将所述位置信息写入所述指定格式的同一文档中所述文档结束标识符之后。
- 根据权利要求7-10任一所述的装置,其特征在于,所述指定格式的同一文档中含有批注起始标识符和批注结束标识符,所述位置信息存储于所述指定格式的同一文档中所述批注起始标识符和批注结束标识符之间;其中,所述批注起始标识符和所述批注结束标识符为具备以下功能的标识符:使得在将所述指定格式的同一文档导入产生所述待保存批注数据的软件时,所述产生所述待保存批注数据的软件根据所述批注起始标识符和所述批注结束标识符之间的所述位置信息,显示批注数据。
- 根据权利要求7-10任一所述的装置,其特征在于,所述指定格式的同一文档中的所述位置信息的数据格式为JSON格式;所述指定格式为以下格式中的任意一种:便携式文档格式PDF;DOC格式;JPG格式;JPEG格式;PNG格式;图像互换格式GIF。
- 一种电子设备,其特征在于,包括:存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现权利要求1-6任一所述的方法步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任一所述的方法步骤。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行权利要求1-6中任一所述的方法步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911185515.2A CN111428452B (zh) | 2019-11-27 | 2019-11-27 | 一种批注数据保存方法及装置 |
CN201911185515.2 | 2019-11-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021104322A1 true WO2021104322A1 (zh) | 2021-06-03 |
Family
ID=71546836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/131547 WO2021104322A1 (zh) | 2019-11-27 | 2020-11-25 | 一种批注数据保存方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111428452B (zh) |
WO (1) | WO2021104322A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111428452B (zh) * | 2019-11-27 | 2023-09-05 | 杭州海康威视数字技术股份有限公司 | 一种批注数据保存方法及装置 |
CN112380827B (zh) * | 2020-10-16 | 2022-10-21 | 福建天泉教育科技有限公司 | 一种pptx文档批量处理方法及终端 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001042980A1 (en) * | 1999-12-07 | 2001-06-14 | Microsoft Corporation | System and method for annotating an electronic document independently of its content |
US7042594B1 (en) * | 2000-03-07 | 2006-05-09 | Hewlett-Packard Development Company, L.P. | System and method for saving handwriting as an annotation in a scanned document |
CN102455868A (zh) * | 2011-09-30 | 2012-05-16 | 北京壹人壹本信息科技有限公司 | 一种邮件手写批注及显示方法 |
CN102467495A (zh) * | 2011-09-08 | 2012-05-23 | 中标软件有限公司 | 一种odt格式文件手写批注的方法 |
CN102567452A (zh) * | 2011-11-11 | 2012-07-11 | 北京壹人壹本信息科技有限公司 | 一种批注信息处理方法与装置 |
CN111428452A (zh) * | 2019-11-27 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | 一种批注数据保存方法及装置 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6865713B1 (en) * | 1998-08-07 | 2005-03-08 | International Business Machines Corporation | Apparatus, program product and method of annotating a hypertext document with comments |
JP3674905B2 (ja) * | 1999-09-29 | 2005-07-27 | 日立ソフトウエアエンジニアリング株式会社 | 文書編集装置 |
US9026901B2 (en) * | 2003-06-20 | 2015-05-05 | International Business Machines Corporation | Viewing annotations across multiple applications |
US20110137923A1 (en) * | 2009-12-09 | 2011-06-09 | Evtext, Inc. | Xbrl data mapping builder |
CN103309568A (zh) * | 2012-03-14 | 2013-09-18 | 联想(北京)有限公司 | 一种电子文档批注方法、装置及终端设备 |
CN104794106A (zh) * | 2014-01-17 | 2015-07-22 | 北京大学 | 一种批注方法及装置 |
CN103761218A (zh) * | 2014-01-27 | 2014-04-30 | 上海维响信息科技有限公司 | 一种在电脑上对电子文档进行批注的方法 |
CN106776514B (zh) * | 2016-12-15 | 2020-08-07 | 广州视源电子科技股份有限公司 | 一种批注方法及装置 |
CN109726367B (zh) * | 2017-10-27 | 2022-06-10 | 腾讯科技(北京)有限公司 | 一种批注展示的方法及相关装置 |
CN108776651A (zh) * | 2018-06-08 | 2018-11-09 | 北京厚德思成科技有限公司 | Pdf文件的批注处理方法及系统 |
CN109120880A (zh) * | 2018-09-19 | 2019-01-01 | 电子科技大学 | 基于智能终端的实时会议批注方法及系统 |
CN115185444A (zh) * | 2019-04-17 | 2022-10-14 | 华为技术有限公司 | 一种添加批注的方法及电子设备 |
-
2019
- 2019-11-27 CN CN201911185515.2A patent/CN111428452B/zh active Active
-
2020
- 2020-11-25 WO PCT/CN2020/131547 patent/WO2021104322A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001042980A1 (en) * | 1999-12-07 | 2001-06-14 | Microsoft Corporation | System and method for annotating an electronic document independently of its content |
US7042594B1 (en) * | 2000-03-07 | 2006-05-09 | Hewlett-Packard Development Company, L.P. | System and method for saving handwriting as an annotation in a scanned document |
CN102467495A (zh) * | 2011-09-08 | 2012-05-23 | 中标软件有限公司 | 一种odt格式文件手写批注的方法 |
CN102455868A (zh) * | 2011-09-30 | 2012-05-16 | 北京壹人壹本信息科技有限公司 | 一种邮件手写批注及显示方法 |
CN102567452A (zh) * | 2011-11-11 | 2012-07-11 | 北京壹人壹本信息科技有限公司 | 一种批注信息处理方法与装置 |
CN111428452A (zh) * | 2019-11-27 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | 一种批注数据保存方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN111428452B (zh) | 2023-09-05 |
CN111428452A (zh) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992589B (zh) | 基于可视化页面生成sql语句的方法、装置、服务器及介质 | |
CN106776514B (zh) | 一种批注方法及装置 | |
US10229094B2 (en) | Dynamic simulation of a responsive web page | |
US7836409B2 (en) | Systems and methods for using interaction information to deform representations of digital content | |
US9311283B2 (en) | System for clipping webpages by traversing a dom, and highlighting a minimum number of words | |
US8949729B2 (en) | Enhanced copy and paste between applications | |
US8074167B2 (en) | Cross domain presence of web user interface and logic | |
US20140380142A1 (en) | Capturing website content through capture services | |
TWI478043B (zh) | 行動裝置應用頁面樣版之產生系統、方法及其記錄媒體 | |
KR20150087405A (ko) | E-리더에 콘텐츠의 노트 기반 주석을 제공하는 방법 | |
WO2021104322A1 (zh) | 一种批注数据保存方法及装置 | |
WO2017157104A1 (zh) | 信息复制系统、方法及电子设备和机器可读存储介质 | |
US9792267B2 (en) | Simplifying identification of potential non-visibility of user interface components when responsive web pages are rendered by disparate devices | |
US20150058708A1 (en) | Systems and methods of character dialog generation | |
WO2019047508A1 (zh) | 电子书评论信息的处理方法、电子设备以及存储介质 | |
US20140282139A1 (en) | System for mobile content management | |
US20200311340A1 (en) | Digital component backdrop rendering | |
TW201516968A (zh) | 圖像的處理方法及裝置 | |
WO2022218034A1 (zh) | 交互方法、装置和电子设备 | |
US20140282140A1 (en) | Method for mobile content management | |
US9354807B2 (en) | Method, apparatus and computer program to designate content retrieval on an interactive display | |
US20140282115A1 (en) | System and method for retrieving and selecting content | |
WO2023226853A1 (zh) | 用于作品转发的方法、装置、设备和存储介质 | |
US20160011770A1 (en) | Document autograph system and method | |
TW201629794A (zh) | 使用用於線上探究的結構化資料 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20892209 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20892209 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 190523) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20892209 Country of ref document: EP Kind code of ref document: A1 |