CN117111817A - Annotation information erasing method and device, electronic equipment and storage medium - Google Patents

Annotation information erasing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117111817A
CN117111817A CN202311380070.XA CN202311380070A CN117111817A CN 117111817 A CN117111817 A CN 117111817A CN 202311380070 A CN202311380070 A CN 202311380070A CN 117111817 A CN117111817 A CN 117111817A
Authority
CN
China
Prior art keywords
annotation
information
image
region
operated
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
CN202311380070.XA
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.)
Fuxin Kunpeng Beijing Information Technology Co ltd
Original Assignee
Fuxin Kunpeng Beijing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuxin Kunpeng Beijing Information Technology Co ltd filed Critical Fuxin Kunpeng Beijing Information Technology Co ltd
Priority to CN202311380070.XA priority Critical patent/CN117111817A/en
Publication of CN117111817A publication Critical patent/CN117111817A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/1444Selective acquisition, locating or processing of specific regions, e.g. highlighted text, fiducial marks or predetermined fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides an annotation information erasing method, an annotation information erasing device, electronic equipment and a storage medium, and relates to the technical field of image data processing, wherein the method comprises the following steps: responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image; responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined; and erasing the annotation information in the document image to obtain a target document image. According to the method, the number of loops does not need to be calculated, and the annotation information in the area to be erased can be accurately determined after simple interaction with a user, so that the accurate erasure is performed, and the erasure accuracy of the annotation information is improved.

Description

Annotation information erasing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image data processing technologies, and in particular, to an annotation information erasing method, an annotation information erasing device, an electronic device, and a storage medium.
Background
In the process of processing an electronic document, when the annotation information in a document image is deleted according to the document image in an open file format (Open Format for Documents, OFD), the surrounding number of a corresponding result path of the annotation information is calculated based on a non-zero surrounding number algorithm in the prior art, and the annotation information is erased according to the positive-negative relation of the surrounding number. However, if there is a broken portion in the result path, the number of circles may not be calculated correctly, resulting in that annotation information may not be erased accurately in the document image.
Disclosure of Invention
The invention provides an annotation information erasing method, an annotation information erasing device, electronic equipment and a storage medium, which are used for solving the defect that the prior art cannot accurately calculate the surrounding number by adopting a non-zero surrounding number algorithm, so that the annotation information cannot be erased in a document image, and the annotation information in an area to be erased can be accurately determined after simple interaction with a user without calculating the surrounding number, so that the annotation information can be accurately erased, and the erasure accuracy of the annotation information is improved.
The invention provides an annotation information erasing method, which comprises the following steps:
responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image;
responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation;
from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined;
and erasing the annotation information in the document image to obtain a target document image.
According to the annotation information erasing method provided by the invention, the annotation information in the to-be-erased area is determined from the to-be-operated annotation area image, and the method comprises the following steps: determining pixel point information positioned in the region to be erased from the image of the annotation region to be operated; and determining annotation information positioned in the to-be-erased area according to the pixel point information.
According to the annotation information erasing method provided by the invention, the pixel point information in the to-be-erased area is determined from the to-be-operated annotation area image, and the method comprises the following steps: determining first page layout information of the to-be-operated annotation region image and second page layout information of the to-be-erased region; under the condition that the second page layout information is matched with the first page layout information, determining pixel point information corresponding to the second page layout information from the to-be-operated annotation region image; and determining the pixel point information corresponding to the second page layout information as the pixel point information positioned in the area to be erased.
According to the annotation information erasing method provided by the invention, the annotation information is erased in the document image to obtain a target document image, and the method comprises the following steps: and setting the pixel value of the pixel point corresponding to the annotation information as a preset threshold value in the document image to obtain the target document image.
According to the annotation information erasing method provided by the invention, the response to the annotation erasing instruction input by the user outputs the annotation region image to be operated in the document image, and the method comprises the following steps: responding to the annotation erasing instruction input by the user, and identifying the document image to obtain the annotation region image to be operated; and displaying the to-be-operated annotation region image in a preview window.
According to the annotation information erasing method provided by the invention, the method further comprises the following steps: and storing the target document image by adopting a document generation library.
The invention also provides an annotation information erasing device, which comprises:
the output module is used for responding to the annotation erasing instruction input by the user and outputting an annotation area image to be operated in the document image;
the processing module is used for responding to the erasure selection operation of the user in the annotation region image to be operated and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined;
and the erasing module is used for erasing the annotation information in the document image to obtain a target document image.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements any one of the annotation information erasing methods described above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of annotation information erasure as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of annotation information erasure as described in any of the above.
According to the annotation information erasing method, the annotation information erasing device, the electronic equipment and the storage medium, the annotation region image to be operated in the document image is output by responding to the annotation erasing instruction input by the user; responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined; and erasing the annotation information in the document image to obtain a target document image. According to the method, the surrounding number does not need to be calculated, and after interaction with a user, annotation information in the area to be erased can be accurately determined, so that accurate erasure is performed, and the erasure accuracy of the annotation information is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an annotation information erasing method provided by the invention;
FIG. 2 is a schematic diagram of the annotation information erasing device according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For a better understanding of the embodiments of the present invention, first, the background art will be described in detail:
the OFD document is widely applied to the fields of electronic books, electronic contracts, electronic reports and the like. In the process of using the OFD document, the user may perform annotation operations on the OFD document, such as inputting operations of scribing, writing, etc. in the OFD document, and the electronic device responds to these operations to obtain corresponding annotation information (i.e. annotation handwriting). However, the user may also need to delete annotation information within a certain rectangular area in order to subsequently modify or hide the OFD document.
The existing annotation information erasing method is usually that the electronic equipment calculates the surrounding number of a path corresponding to the generated annotation information based on a non-zero surrounding number algorithm, and erases the annotation information according to the positive-negative relation of the surrounding number.
In the non-zero wrapping algorithm described above, each result path has a wrapping number indicating the number of times the result path passes through the other paths from left to right. If the number of times the resulting path crosses the other path from left to right is positive, then the wrap-around number is +1; on the contrary, the number of windings is-1. If the resulting path does not traverse other paths, then the wrap-around number is 0.
Under the condition that the two result paths are subjected to Boolean operation, the non-zero surrounding number algorithm calculates the surrounding number of the result paths according to the intersecting condition of the two result paths, and then judges whether a superposition area exists according to the positive and negative of the surrounding number.
Specifically, the half-parameter three-step estimation method (OP method) of the alley-Pakes calculates the number of loops of the result path according to the selected boolean operation (e.g., intersection (Intersect), union (Union), difference (Difference), etc.). If the number of windings of the result path is a non-zero value, indicating that the result path has a coincidence region; if the wrap-around number is 0, then this indicates that there is no overlap area in the resulting path.
It should be noted that in the non-zero wrapping algorithm, the resulting path is assumed to be continuous, without breaks. If there is a broken portion in the result path, the number of loops may not be calculated correctly, resulting in an inability to erase annotation information accurately in the document image.
In order to solve the technical problems, the embodiment of the invention provides an annotation information erasing method, an annotation information erasing device, electronic equipment and a storage medium.
It should be noted that, the execution subject according to the embodiment of the present invention may be an annotation information erasing device or an electronic device. Optionally, the electronic device may include: computer, mobile terminal, wearable device, etc.
The following further describes embodiments of the present invention by taking an electronic device as an example.
As shown in fig. 1, a flow chart of the annotation information erasing method provided by the present invention may include:
101. and responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image.
Wherein, the document image refers to image data corresponding to the OFD document.
The to-be-operated annotation region image refers to a region image corresponding to all annotation information in the document image, so that the user can conveniently carry out modification or hiding operation.
After the electronic equipment loads the document image, if a user wants to erase some annotation information in the document image, an annotation erasing instruction can be directly input into the electronic equipment; the electronic equipment responds to an annotation erasing instruction input by the user, detects annotation information in the document image, generates an annotation region image to be operated corresponding to the existing annotation information under the condition that the existence of the annotation information is detected, outputs the annotation region image to be operated, and then interacts with the user and the output annotation region image to be operated for later use, so that the annotation information which the user wants to erase is erased.
Optionally, the user may click on an annotation erase button in the electronic device to generate a corresponding annotation erase instruction.
Wherein the number of clicks and/or the duration of the clicks is not limited.
In some embodiments, the outputting, by the electronic device, the image of the annotation region to be operated in the document image in response to the annotation erasing instruction input by the user may include: the electronic equipment responds to an annotation erasing instruction input by a user, and identifies the document image to obtain an annotation region image to be operated; the electronic device displays the image of the annotation region to be operated in the preview window.
The preview window refers to a display window capable of outputting images in time, and the preview window can be arranged in an interactive interface designed for the electronic equipment by a user.
In the process of outputting the to-be-operated annotation region image, if an annotation erasing instruction input by a user is responded, the electronic equipment identifies the structure and the content of the document image, and generates the to-be-operated annotation region image corresponding to the annotation information under the condition that the annotation information is identified; the electronic equipment displays the to-be-operated annotation region image in a preview window so that a subsequent user can operate the to-be-operated annotation region image displayed in the preview window.
That is, when the electronic device detects that annotation information exists in the document image, the annotation information can be converted into a first path (path 1), and drawing is performed in a window (i.e., a preview window) of an upper application layer, so that an annotation region image to be operated is obtained.
102. And responding to the erasure selection operation of the user in the annotation region image to be operated, and determining the region to be erased corresponding to the erasure selection operation.
The to-be-erased area refers to an area range corresponding to annotation information which the user wants to erase, namely the to-be-erased area carries the annotation information which the user wants to erase.
Alternatively, the area to be erased may be an area formed in any shape, for example, the area to be erased is a rectangular area.
After the electronic equipment outputs the annotation region image to be operated, a user can input erasure selection operation on the annotation region image to be operated into the electronic equipment; after the electronic equipment detects the erasure selection operation, the electronic equipment can respond to the erasure selection operation to determine the region to be erased corresponding to the erasure selection operation so as to erase annotation information which is carried by the region to be erased and is wanted to be erased by a user.
In addition, the electronic device may switch the area to be erased to a second path (path 2).
103. And determining annotation information positioned in the region to be erased from the image of the region to be operated.
The annotation information in the to-be-erased area is the annotation information which is carried by the to-be-erased area and is wanted to be erased by the user.
In some embodiments, the determining, by the electronic device, annotation information located in the to-be-erased area from the to-be-operated annotation area image may include: the electronic equipment determines pixel point information positioned in an area to be erased from the image of the annotation area to be operated; the electronic equipment determines annotation information positioned in the area to be erased according to the pixel point information.
The pixel point information may include pixel point position information and/or pixel value information.
The electronic equipment can determine first pixel point information in the image of the annotation region to be operated and determine second pixel point information in the region to be erased; the electronic equipment determines pixel point information which is the same as the second pixel point information in the first pixel point information as annotation information positioned in the area to be erased so as to carry out accurate subsequent erasure.
It should be noted that, the timing of determining the first pixel information by the electronic device and determining the second pixel information by the electronic device is not limited.
In some embodiments, the determining, by the electronic device, pixel point information located in the to-be-erased area from the to-be-operated annotation area image may include: the electronic equipment determines first page layout information of an annotation region image to be operated and second page layout information of a region to be erased; under the condition that the second page layout information is matched with the first page layout information, the electronic equipment determines pixel point information corresponding to the second page layout information from the to-be-operated annotation region image; the electronic equipment determines pixel point information corresponding to the second page layout information as pixel point information positioned in the area to be erased.
The page layout information may include: margin, header parameters, footer parameters, document fonts and word sizes, and the like.
After determining the first page layout information of the to-be-operated annotation region image and the second page layout information of the to-be-erased region, the electronic device can match the second page layout information with the first page layout information, if the second page layout information is not matched with the first page layout information, no operation is performed, if the second page layout information is matched with the first page layout information, pixel point information corresponding to the second page layout information is determined from the to-be-operated annotation region image, and then the pixel point information is determined to be the pixel point information in the to-be-erased region so as to facilitate accurate subsequent erasing.
Note that, the timing of determining the first page layout information by the electronic device and determining the second page layout information by the electronic device is not limited.
Optionally, the determining, by the electronic device, pixel point information located in the to-be-erased area from the to-be-operated annotation area image may include: and the electronic equipment adopts a handwriting detection algorithm to determine pixel point information positioned in the region to be erased from the image of the annotation region to be operated.
The handwriting detection algorithm may include a color feature detection algorithm and/or a shape feature detection algorithm, among others.
And under the condition that the electronic equipment detects a target color (such as purple) in the image of the annotation region to be operated by adopting a color feature detection algorithm, determining pixel point information corresponding to the target color as pixel point information positioned in the region to be erased.
Under the condition that a shape feature detection algorithm is adopted by the electronic equipment, detecting a target shape (such as a triangle) in an image of the annotation region to be operated, determining pixel point information corresponding to the target shape as pixel point information in the region to be erased.
104. And erasing the annotation information in the document image to obtain a target document image.
After the electronic device determines the annotation information located in the area to be erased, an image processing technology can be adopted to erase the annotation information in the document image, so that the annotation information is invisible in the document image, and a target document image is obtained.
In addition, the electronic device may convert the erased annotation information into a third path (path 3).
Alternatively, the image processing technique may include: image restoration techniques, pixel coverage techniques, or other image processing techniques.
The image restoration technology refers to filling pixels of a missing area under the condition that a mask corresponding to a document image is determined, so that the texture and structure consistency of the whole mask is achieved.
The pixel coverage technique refers to a technique of covering pixel values of pixel points corresponding to annotation information by using a preset threshold.
In addition, the electronic equipment erases the annotation information in the area to be erased, so that the batch erasure of the annotation information can be realized, and the annotation erasure efficiency is improved.
In some embodiments, the electronic device erases annotation information in the document image to obtain a target document image, including: and the electronic equipment sets the pixel value of the pixel point corresponding to the annotation information as a preset threshold value in the document image to obtain a target document image.
The preset threshold may be set before the electronic device leaves the factory, or may be user-defined, which is not specifically limited herein. The preset threshold is a pixel value corresponding to a pixel point of a background except for characters in the document image.
After the electronic equipment acquires the annotation information, the pixel value of the pixel point corresponding to the annotation information can be set as a preset threshold value in the document image, and at the moment, the electronic equipment accurately erases the annotation information to obtain a target document image with higher accuracy.
In some embodiments, after step 104, the method may further include, but is not limited to, at least one implementation of:
implementation 1: the electronic equipment adopts a document generation library to store target document images.
The document generation library refers to a database with a storage function. Optionally, the document generation library is an OFD generation library.
When a user wants to save a target document image, a save instruction can be input to the electronic equipment; after responding to the save instruction, the electronic device can call a document generation library, and save the target document image by adopting the document generation library for later reading by a user.
It should be noted that, after determining the target document image, the target document image may be regarded as a new document image, and the above steps 101 to 104 may be repeatedly performed on the new document image until the preset number of times is reached, or until the target document image satisfied by the user is determined, at which time the user may input a suspension instruction for instructing the electronic device not to need to regard the target document image determined when the preset number of times is reached, or the target document image satisfied by the user, as a new document image.
The preset times may be set before leaving the factory of the electronic device, or may be user-defined, which is not specifically limited herein.
Implementation 2: the electronic device outputs prompt information for prompting the user that the target document image has been generated.
Optionally, the electronic device outputting the prompt information may include: the electronic equipment outputs the prompt information in a text form and/or a voice form.
Whether the prompt information is output in a text form or a voice form, the user can timely acquire annotation information in the to-be-erased area in the document image for the electronic equipment to erase.
In the embodiment of the invention, an annotation region image to be operated in a document image is output in response to an annotation erasing instruction input by a user; responding to the erasure selection operation of a user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the image of the annotation region to be operated, the annotation information in the region to be erased is determined; and erasing the annotation information in the document image to obtain a target document image. According to the method, the surrounding number does not need to be calculated, and after interaction with a user, annotation information in the area to be erased can be accurately determined, so that accurate erasure is performed, and the erasure accuracy of the annotation information is improved.
The annotation information erasing device provided by the invention is described below, and the annotation information erasing device described below and the annotation information erasing method described above can be referred to correspondingly.
Fig. 2 is a schematic structural diagram of an annotation information erasing device provided by the present invention, which may include:
an output module 201, configured to output an annotation region image to be operated in the document image in response to an annotation erasing instruction input by a user;
the processing module 202 is configured to respond to an erase selection operation of the user in the to-be-operated annotation area image, and determine an to-be-erased area corresponding to the erase selection operation; from the image of the annotation region to be operated, the annotation information in the region to be erased is determined;
and the erasing module 203 is configured to erase the annotation information in the document image to obtain a target document image.
Optionally, the processing module 202 is specifically configured to determine, from the image of the annotation region to be operated, pixel point information located in the region to be erased; and determining annotation information positioned in the area to be erased according to the pixel point information.
Optionally, the processing module 202 is specifically configured to determine the first page layout information of the to-be-operated annotation area image and the second page layout information of the to-be-erased area; under the condition that the second page layout information is matched with the first page layout information, determining pixel point information corresponding to the second page layout information from the to-be-operated annotation region image; and determining the pixel point information corresponding to the second page layout information as the pixel point information positioned in the area to be erased.
Optionally, the erasing module 203 is specifically configured to set a pixel value of a pixel point corresponding to the annotation information as a preset threshold in the document image, so as to obtain the target document image.
Optionally, the output module 201 is specifically configured to respond to the annotation erasing instruction input by the user, and identify the document image, so as to obtain the to-be-operated annotation region image; and displaying the to-be-operated annotation region image in the preview window.
Optionally, the annotation information erasing device may further include a storage module, where the storage module is configured to store the target document image by using a document generation library.
As shown in fig. 3, a schematic structural diagram of an electronic device provided by the present invention may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform an annotation information erasure method comprising: responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image; responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined; and erasing the annotation information in the document image to obtain a target document image.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the annotation information erasing method provided by the above methods, the method comprising: responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image; responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined; and erasing the annotation information in the document image to obtain a target document image.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the annotation information erasure method provided by the above methods, the method comprising: responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image; responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined; and erasing the annotation information in the document image to obtain a target document image.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An annotation information erasing method, comprising the steps of:
responding to an annotation erasing instruction input by a user, and outputting an annotation region image to be operated in the document image;
responding to the erasure selection operation of the user in the annotation region image to be operated, and determining a region to be erased corresponding to the erasure selection operation;
from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined;
and erasing the annotation information in the document image to obtain a target document image.
2. The method according to claim 1, wherein determining annotation information located in the region to be erased from the image of the region to be operated on includes:
determining pixel point information positioned in the region to be erased from the image of the annotation region to be operated;
and determining annotation information positioned in the to-be-erased area according to the pixel point information.
3. The method according to claim 2, wherein determining pixel information located in the region to be erased from the image of the region to be annotated includes:
determining first page layout information of the to-be-operated annotation region image and second page layout information of the to-be-erased region;
under the condition that the second page layout information is matched with the first page layout information, determining pixel point information corresponding to the second page layout information from the to-be-operated annotation region image;
and determining the pixel point information corresponding to the second page layout information as the pixel point information positioned in the area to be erased.
4. A method according to any one of claims 1 to 3, wherein said erasing the annotation information in the document image to obtain a target document image comprises:
and setting the pixel value of the pixel point corresponding to the annotation information as a preset threshold value in the document image to obtain the target document image.
5. A method according to any one of claims 1 to 3, wherein outputting an annotation region image to be operated in a document image in response to an annotation erase instruction input by a user comprises:
responding to the annotation erasing instruction input by the user, and identifying the document image to obtain the annotation region image to be operated;
and displaying the to-be-operated annotation region image in a preview window.
6. A method according to any one of claims 1 to 3, further comprising:
and storing the target document image by adopting a document generation library.
7. An annotation information erasing device, comprising:
the output module is used for responding to the annotation erasing instruction input by the user and outputting an annotation area image to be operated in the document image;
the processing module is used for responding to the erasure selection operation of the user in the annotation region image to be operated and determining a region to be erased corresponding to the erasure selection operation; from the to-be-operated annotation region image, annotation information in the to-be-erased region is determined;
and the erasing module is used for erasing the annotation information in the document image to obtain a target document image.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the annotation information erasure method according to any of claims 1 to 6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the annotation information erasure method according to any of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the annotation information erasure method according to any of claims 1 to 6.
CN202311380070.XA 2023-10-24 2023-10-24 Annotation information erasing method and device, electronic equipment and storage medium Pending CN117111817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311380070.XA CN117111817A (en) 2023-10-24 2023-10-24 Annotation information erasing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311380070.XA CN117111817A (en) 2023-10-24 2023-10-24 Annotation information erasing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117111817A true CN117111817A (en) 2023-11-24

Family

ID=88809590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311380070.XA Pending CN117111817A (en) 2023-10-24 2023-10-24 Annotation information erasing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117111817A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090015858A1 (en) * 2007-07-10 2009-01-15 Konica Minolta Business Technologies, Inc. Image Processing Apparatus, Image Processing Method, and Image Processing Program
CN107168674A (en) * 2017-06-19 2017-09-15 浙江工商大学 Throw screen annotation method and system
CN114879869A (en) * 2022-05-10 2022-08-09 深圳市掌阅科技有限公司 Note erasing method, electronic device and computer storage medium
CN115115744A (en) * 2022-04-15 2022-09-27 腾讯科技(深圳)有限公司 Image processing method, apparatus, device, storage medium, and program product
CN116774877A (en) * 2023-08-21 2023-09-19 福昕鲲鹏(北京)信息科技有限公司 Method and device for erasing graffiti handwriting in OFD document page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090015858A1 (en) * 2007-07-10 2009-01-15 Konica Minolta Business Technologies, Inc. Image Processing Apparatus, Image Processing Method, and Image Processing Program
CN107168674A (en) * 2017-06-19 2017-09-15 浙江工商大学 Throw screen annotation method and system
CN115115744A (en) * 2022-04-15 2022-09-27 腾讯科技(深圳)有限公司 Image processing method, apparatus, device, storage medium, and program product
CN114879869A (en) * 2022-05-10 2022-08-09 深圳市掌阅科技有限公司 Note erasing method, electronic device and computer storage medium
CN116774877A (en) * 2023-08-21 2023-09-19 福昕鲲鹏(北京)信息科技有限公司 Method and device for erasing graffiti handwriting in OFD document page

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN112580623B (en) Image generation method, model training method, related device and electronic equipment
CN112115678B (en) Information display method and device, storage medium and electronic equipment
CN109685870B (en) Information labeling method and device, labeling equipment and storage medium
KR20060129177A (en) Automatic generation of user interface descriptions through sketching
JP2013089198A (en) Electronic comic editing device, method and program
CN107977205A (en) Gui interface automatically creates method and system
US20230237777A1 (en) Information processing apparatus, learning apparatus, image recognition apparatus, information processing method, learning method, image recognition method, and non-transitory-computer-readable storage medium
CN111461070B (en) Text recognition method, device, electronic equipment and storage medium
CN111324352A (en) Code generation method of application page and related equipment
CN106648571B (en) Method and device for calibrating application interface
JP2023039892A (en) Training method for character generation model, character generating method, device, apparatus, and medium
WO2023019995A1 (en) Training method and apparatus, translation presentation method and apparatus, and electronic device and storage medium
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN111539390A (en) Small target image identification method, equipment and system based on Yolov3
CN117111817A (en) Annotation information erasing method and device, electronic equipment and storage medium
US20220319141A1 (en) Method for processing image, device and storage medium
CN114443022A (en) Method for generating page building block and electronic equipment
CN114821222A (en) Test paper image generation method and device, storage medium and electronic equipment
US20170017370A1 (en) Device and method for processing data
US11074392B2 (en) Information processing apparatus and non-transitory computer readable medium for switching between an attribute information mode and an image information mode
CN113936187A (en) Text image synthesis method and device, storage medium and electronic equipment
CN113469878B (en) Text erasing method and training method and device of model thereof, and storage medium
WO2023188160A1 (en) Input assistance device, input assistance method, and non-transitory computer-readable medium
CN116884019A (en) Signature recognition method, signature recognition device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination