CN111460774A - Method and device for restoring data in curve, storage medium and electronic equipment - Google Patents

Method and device for restoring data in curve, storage medium and electronic equipment Download PDF

Info

Publication number
CN111460774A
CN111460774A CN202010253318.6A CN202010253318A CN111460774A CN 111460774 A CN111460774 A CN 111460774A CN 202010253318 A CN202010253318 A CN 202010253318A CN 111460774 A CN111460774 A CN 111460774A
Authority
CN
China
Prior art keywords
curve
target
data
determining
origin
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.)
Granted
Application number
CN202010253318.6A
Other languages
Chinese (zh)
Other versions
CN111460774B (en
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.)
Beijing Yiyoulian Technology Co ltd
Original Assignee
Beijing Yiyoulian 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 Beijing Yiyoulian Technology Co ltd filed Critical Beijing Yiyoulian Technology Co ltd
Priority to CN202010253318.6A priority Critical patent/CN111460774B/en
Publication of CN111460774A publication Critical patent/CN111460774A/en
Application granted granted Critical
Publication of CN111460774B publication Critical patent/CN111460774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Machine Translation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to a method, a device, a storage medium and electronic equipment for restoring data in a curve, wherein the method comprises the following steps: acquiring a target report document, and analyzing character elements and curve elements carried in the target report document; storing the character elements into a character array file, and storing the curve elements into a curve array file; determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file; determining data in the target curve based on the target origin and the character array file; and segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve. Therefore, the data in the curve can be restored, the abnormal values can be removed conveniently, and the data are smoothed, so that the curve is reshaped.

Description

Method and device for restoring data in curve, storage medium and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a method and a device for restoring data in a curve, a storage medium and electronic equipment.
Background
The curve is a line formed by continuously changing the direction when the moving point moves, and can be thought of as a curved wavy line. In real life, curves often exist in some reports under some special scenes. For example, in medical reports, some curves are described for a patient's lung ventilation function. For the curves in the reports, due to the existence of abnormal values in the curves, the accuracy of the reports is affected, and therefore, data in the curves need to be restored so as to eliminate the abnormal values, and the data are smoothed so as to reshape the curves.
Disclosure of Invention
In view of this, to solve the above technical problems or some technical problems, embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for restoring data in a curve.
In a first aspect, an embodiment of the present invention provides a method for restoring data in a curve, where the method includes:
acquiring a target report document, and analyzing character elements and curve elements carried in the target report document;
storing the character elements into a character array file, and storing the curve elements into a curve array file;
determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file;
determining data in the target curve based on the target origin and the character array file;
and segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
In an optional embodiment, the analyzing the text elements and the curve elements carried in the target report document includes:
and analyzing the character elements and curve elements carried in the target report document by utilizing a document vector element analysis technology.
In an alternative embodiment, the determining a target curve in the target report document includes:
determining the color of the curve;
and determining a target curve in the target report document according to the curve color.
In an optional embodiment, the determining a target origin of the target curve based on the text array file and the curve array file includes:
extracting pairwise crossed vertical line groups appearing in a target area in the target report document aiming at the curve array file;
forming an origin point set of the suspected target curve by the intersection points of the two pairwise intersected vertical line groups;
extracting a first array element with a numerical value of zero aiming at the character array file;
calculating an origin point which is closest to the first array element in the origin point set of the suspected target curve by taking the position of the first array element as a reference;
and determining the origin as a target origin of the target curve.
In an optional embodiment, the determining data in the target curve based on the target origin and the literal array file includes:
determining the area range where the target curve is located according to the target origin, wherein the area range comprises the maximum coordinate of the abscissa and the maximum coordinate of the ordinate;
extracting a second array element closest to the maximum coordinate of the abscissa from the character array file;
extracting a third array element which is closest to the maximum coordinate of the vertical coordinate from the character array file;
and determining data in the target curve based on the second array element, the third array element and any curve point in the target curve.
In an optional embodiment, the determining data in the target curve based on any curve point in the second array element, the third array element, and the target curve includes:
inputting any curve point in the second array element, the third array element and a target curve into a data calculation formula to determine data in the target curve;
wherein the data calculation formula comprises:
x_i = X_i * x_m / X_max;
y_i = Y_i * y_m / Y_max;
the data in the target curve is composed of (X _ i, Y _ i), any curve point in the target curve is composed of (X _ i, Y _ i), the X _ m is the second array element, the Y _ m is the third array element, the abscissa maximum coordinate is composed of (0, X _ max), and the ordinate maximum coordinate is composed of (0, Y _ max).
In an optional embodiment, the method further comprises:
and performing linear interpolation on an original result obtained by segmenting data in the target curve by using a linear interpolation method to complete filling of the sparse point set.
In a second aspect, an embodiment of the present invention provides an apparatus for restoring data in a curve, where the apparatus includes:
the document acquisition module is used for acquiring a target report document and analyzing character elements and curve elements carried in the target report document;
the element storage module is used for storing the character elements into a character array file and storing the curve elements into a curve array file;
the origin determining module is used for determining a target curve in the target report document and determining a target origin of the target curve based on the character array file and the curve array file;
the data determining module is used for determining data in the target curve based on the target origin and the character array file;
and the data segmentation module is used for segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the foregoing method for restoring data in a curve.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: the processor is used for executing a restoring program of the data in the curve stored in the memory so as to realize the restoring method of the data in the curve.
According to the technical scheme provided by the embodiment of the invention, a target report document is obtained, character elements and curve elements carried in the target report document are analyzed, the character elements are stored in a character array file, the curve elements are stored in a curve array file, a target curve in the target report document is determined, a target origin of the target curve is determined based on the character array file and the curve array file, data in the target curve is determined based on the target origin and the character array file, and the data in the target curve is segmented according to a preset segmentation rule, so that the data in the target curve is restored. Therefore, the data in the curve can be restored, the abnormal values can be removed conveniently, and the data are smoothed, so that the curve is reshaped.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for restoring data in a curve according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for restoring data in a curve according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 1, an implementation flow diagram of a method for restoring data in a curve according to an embodiment of the present invention is shown, where the method specifically includes the following steps:
s101, acquiring a target report document, and analyzing character elements and curve elements carried in the target report document;
in the embodiment of the present invention, a target report document may be obtained, for example, a patient lung ventilation function examination report document, for example, a bronchodilation test examination report document, and such a report document includes a corresponding curve describing a patient lung ventilation function and a corresponding curve describing a bronchodilation test.
For the obtained target report document, the embodiment of the present invention may analyze the text elements and the curve elements carried in the target report document, and certainly may also include other document elements, such as image elements, which is not limited in the embodiment of the present invention.
Specifically, the embodiment of the present invention may analyze the text elements and the curve elements carried in the target report document by using a document vector element analysis technology.
For example, for a patient pulmonary ventilation function examination report document, the embodiment of the present invention may analyze text elements, image elements, and curve elements carried in the patient pulmonary ventilation function examination report document by using a document vector element analysis technique.
S102, storing the character elements into a character array file, and storing the curve elements into a curve array file;
for the text elements, the image elements and the curve elements obtained by the analysis, the embodiment of the invention stores the text elements into a text array file, stores the image elements into an image array file and stores the curve elements into a curve array file.
S103, determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file;
for curves in a target report document, because of differences in color, embodiments of the present invention may determine a target curve in the target report document based on the color of the curve.
For example, embodiments of the present invention determine the curve color: and determining a target curve in the target report document based on the curve color.
In addition, based on the character array file and the curve array file, a target origin of the target curve is determined, and the specific implementation mode is as follows:
extracting pairwise crossed vertical line groups appearing in a target area in the target report document aiming at the curve array file; forming an origin point set of the suspected target curve by the intersection points of the two pairwise intersected vertical line groups; extracting a first array element with a numerical value of zero aiming at the character array file; calculating an origin point which is closest to the first array element in the origin point set of the suspected target curve by taking the position of the first array element as a reference; and determining the origin as a target origin of the target curve.
Wherein, for the target area, according to the prior information, it may be the left area in the target report document.
For example, for the curve array file, two intersecting vertical line groups appearing in a left area in the target report document are extracted, and intersections of the two intersecting vertical line groups form an origin point set of a suspected target curve;
and aiming at the character array file, extracting array elements with the numerical value of 0, calculating an origin point which is closest to the array elements with the numerical value of 0 in the origin point set of the suspected target curve by taking the positions of the array elements with the numerical value of 0 as a reference, and determining the origin point as a target origin point of the target curve.
S104, determining data in the target curve based on the target origin and the character array file;
for the target origin and the character array file, the embodiment of the present invention may determine data in the target curve based on the target origin and the character array file, and the specific implementation manner is as follows:
determining the area range where the target curve is located according to the target origin, wherein the area range comprises the maximum coordinate of the abscissa and the maximum coordinate of the ordinate; extracting a second array element closest to the maximum coordinate of the abscissa from the character array file; extracting a third array element which is closest to the maximum coordinate of the vertical coordinate from the character array file; and determining data in the target curve based on the second array element, the third array element and any curve point in the target curve.
For example, according to the maximum value and the minimum value of the horizontal and vertical intersecting line segments determined by the target origin, determining the area range where the target curve is located, wherein the area range comprises the maximum coordinate (0, X _ max) of the horizontal coordinate and the maximum coordinate (0, Y _ max) of the vertical coordinate;
extracting an array element X _ m closest to the maximum coordinate (0, X _ max) of the abscissa from the literal array file, and extracting an array element Y _ m closest to the maximum coordinate (0, Y _ max) of the ordinate from the literal array file;
for any curve point (X _ i, Y _ i) in a target curve, determining data in the target curve based on the second array element, the third array element and any curve point in the target curve.
Specifically, any curve point in the second array element, the third array element and a target curve is input into a data calculation formula to determine data in the target curve.
Wherein the data calculation formula comprises:
x_i = X_i * x_m / X_max;
y_i = Y_i * y_m / Y_max;
the data in the target curve is composed of (X _ i, Y _ i), any curve point in the target curve is composed of (X _ i, Y _ i), the X _ m is the second array element, the Y _ m is the third array element, the abscissa maximum coordinate is composed of (0, X _ max), and the ordinate maximum coordinate is composed of (0, Y _ max).
And S105, segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
For the obtained data in the target curve, the embodiment of the invention segments the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
Specifically, according to the rule that the curves start from the origin and the change trend is monotonically increasing in the x-axis direction, the embodiment of the invention provides a target curve segmentation technology based on trend analysis, and the target curve is segmented by judging whether the curve starting from the origin in the target area is monotonically increasing in the x-axis direction, so that the segmentation result is the extracted data in the original curve.
In addition, for an original result obtained by segmenting data in a target curve, the embodiment of the invention performs linear interpolation on the original result obtained by segmenting the data in the target curve by using a linear interpolation method so as to complete filling of a sparse point set.
Through the above description of the technical scheme provided by the embodiment of the present invention, a target report document is obtained, text elements and curve elements carried in the target report document are analyzed, the text elements are stored in a text array file, the curve elements are stored in a curve array file, a target curve in the target report document is determined, a target origin of the target curve is determined based on the text array file and the curve array file, data in the target curve is determined based on the target origin and the text array file, and the data in the target curve is segmented according to a preset segmentation rule, so as to realize the reduction of the data in the target curve. Therefore, the data in the curve can be restored, the abnormal values can be removed conveniently, and the data are smoothed, so that the curve is reshaped.
Relative to the method embodiment, an embodiment of the present invention further provides an embodiment of a device for restoring data in a curve, and as shown in fig. 2, the device may include: a document acquisition module 210, an element storage module 220, an origin determination module 230, a data determination module 240, and a data segmentation module 250.
The document acquisition module 210 is configured to acquire a target report document and analyze text elements and curve elements carried in the target report document;
the element storage module 220 is configured to store the text elements into a text array file, and store the curve elements into a curve array file;
an origin determining module 230, configured to determine a target curve in the target report document, and determine a target origin of the target curve based on the text array file and the curve array file;
a data determining module 240, configured to determine data in the target curve based on the target origin and the character array file;
and a data segmentation module 250, configured to segment the data in the target curve according to a preset segmentation rule, so as to implement restoration of the data in the target curve.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 300 shown in fig. 3 includes: at least one processor 301, memory 302, at least one network interface 304, and other user interfaces 303. The various components in the mobile terminal 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 3.
The user interface 303 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 302 in embodiments of the present invention may be either volatile memory or non-volatile memory, or may include both volatile and non-volatile memory, wherein non-volatile memory may be Read-only memory (ROM), programmable Read-only memory (programmable ROM), erasable programmable Read-only memory (EPROM ), electrically erasable programmable Read-only memory (EEPROM), or flash memory volatile memory may be Random Access Memory (RAM), which serves as external cache memory, by way of example and not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamicdram, SDRAM), synchronous dynamic random access memory (syncronous, SDRAM), double data rate synchronous dynamic random access memory (doubtatatare SDRAM, ddrsrssram), enhanced synchronous dynamic random access memory (enhancedram, synchronous DRAM), or synchronous DRAM (drtronomydram), or any other type of RAM suitable for direct access, including but not limited to DRAM, and flash memory L.
In some embodiments, memory 302 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 3021 and application programs 3022.
The operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs 3022 include various application programs such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application program 3022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 302, specifically, a program or an instruction stored in the application 3022, the processor 301 is configured to execute the method steps provided by the method embodiments, for example, including: acquiring a target report document, and analyzing character elements and curve elements carried in the target report document; storing the character elements into a character array file, and storing the curve elements into a curve array file; determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file; determining data in the target curve based on the target origin and the character array file; and segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The processor 301 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of the method in combination with the hardware.
For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 3, and may perform all the steps of the method for restoring data in the curve shown in fig. 1, so as to achieve the technical effect of the method for restoring data in the curve shown in fig. 1.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors, the method for restoring data in a curve performed on the device side for restoring data in a curve is implemented.
The processor is used for executing the restoring program of the data in the curve stored in the memory so as to realize the following steps of the restoring method of the data in the curve executed on the restoring equipment side of the data in the curve:
acquiring a target report document, and analyzing character elements and curve elements carried in the target report document; storing the character elements into a character array file, and storing the curve elements into a curve array file; determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file; determining data in the target curve based on the target origin and the character array file; and segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for restoring data in a curve, the method comprising:
acquiring a target report document, and analyzing character elements and curve elements carried in the target report document;
storing the character elements into a character array file, and storing the curve elements into a curve array file;
determining a target curve in the target report document, and determining a target origin of the target curve based on the character array file and the curve array file;
determining data in the target curve based on the target origin and the character array file;
and segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
2. The method of claim 1, wherein parsing textual elements and curvilinear elements carried in the target report document comprises:
and analyzing the character elements and curve elements carried in the target report document by utilizing a document vector element analysis technology.
3. The method of claim 1, wherein determining a target curve in the target report document comprises:
determining the color of the curve;
and determining a target curve in the target report document according to the curve color.
4. The method of claim 1, wherein determining the target origin of the target curve based on the literal array file and the curve array file comprises:
extracting pairwise crossed vertical line groups appearing in a target area in the target report document aiming at the curve array file;
forming an origin point set of the suspected target curve by the intersection points of the two pairwise intersected vertical line groups;
extracting a first array element with a numerical value of zero aiming at the character array file;
calculating an origin point which is closest to the first array element in the origin point set of the suspected target curve by taking the position of the first array element as a reference;
and determining the origin as a target origin of the target curve.
5. The method of claim 1, wherein determining data in the target curve based on the target origin and the literal array file comprises:
determining the area range where the target curve is located according to the target origin, wherein the area range comprises the maximum coordinate of the abscissa and the maximum coordinate of the ordinate;
extracting a second array element closest to the maximum coordinate of the abscissa from the character array file;
extracting a third array element which is closest to the maximum coordinate of the vertical coordinate from the character array file;
and determining data in the target curve based on the second array element, the third array element and any curve point in the target curve.
6. The method of claim 5, wherein determining data in a target curve based on any curve point in the second array element, the third array element, and the target curve comprises:
inputting any curve point in the second array element, the third array element and a target curve into a data calculation formula to determine data in the target curve;
wherein the data calculation formula comprises:
x_i = X_i * x_m / X_max;
y_i = Y_i * y_m / Y_max;
the data in the target curve is composed of (X _ i, Y _ i), any curve point in the target curve is composed of (X _ i, Y _ i), the X _ m is the second array element, the Y _ m is the third array element, the abscissa maximum coordinate is composed of (0, X _ max), and the ordinate maximum coordinate is composed of (0, Y _ max).
7. The method of claim 1, further comprising:
and performing linear interpolation on an original result obtained by segmenting data in the target curve by using a linear interpolation method to complete filling of the sparse point set.
8. An apparatus for restoring data in a curve, the apparatus comprising:
the document acquisition module is used for acquiring a target report document and analyzing character elements and curve elements carried in the target report document;
the element storage module is used for storing the character elements into a character array file and storing the curve elements into a curve array file;
the origin determining module is used for determining a target curve in the target report document and determining a target origin of the target curve based on the character array file and the curve array file;
the data determining module is used for determining data in the target curve based on the target origin and the character array file;
and the data segmentation module is used for segmenting the data in the target curve according to a preset segmentation rule so as to realize the reduction of the data in the target curve.
9. An electronic device, comprising: the processor is used for executing a restoring program of the data in the curve stored in the memory so as to realize the restoring method of the data in the curve of any one of claims 1-7.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the method for restoring data in a curve according to any one of claims 1 to 7.
CN202010253318.6A 2020-04-02 2020-04-02 Method and device for restoring data in curve, storage medium and electronic equipment Active CN111460774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010253318.6A CN111460774B (en) 2020-04-02 2020-04-02 Method and device for restoring data in curve, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010253318.6A CN111460774B (en) 2020-04-02 2020-04-02 Method and device for restoring data in curve, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111460774A true CN111460774A (en) 2020-07-28
CN111460774B CN111460774B (en) 2023-06-30

Family

ID=71685850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010253318.6A Active CN111460774B (en) 2020-04-02 2020-04-02 Method and device for restoring data in curve, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111460774B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0926776A (en) * 1995-07-13 1997-01-28 Hitachi Ltd Radical extracting method and hinting information generating device
CN106127751A (en) * 2016-06-20 2016-11-16 北京小米移动软件有限公司 image detecting method, device and system
CN107451232A (en) * 2017-07-24 2017-12-08 广东顺德德力信息科技有限公司 A kind of electronic document graph text information restoring method, storage device and terminal
CN107909068A (en) * 2017-11-24 2018-04-13 苏州灯蓝软件科技有限公司 A kind of big data image curve reverse resolution method and system
CN110008809A (en) * 2019-01-04 2019-07-12 阿里巴巴集团控股有限公司 Acquisition methods, device and the server of list data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0926776A (en) * 1995-07-13 1997-01-28 Hitachi Ltd Radical extracting method and hinting information generating device
CN106127751A (en) * 2016-06-20 2016-11-16 北京小米移动软件有限公司 image detecting method, device and system
CN107451232A (en) * 2017-07-24 2017-12-08 广东顺德德力信息科技有限公司 A kind of electronic document graph text information restoring method, storage device and terminal
CN107909068A (en) * 2017-11-24 2018-04-13 苏州灯蓝软件科技有限公司 A kind of big data image curve reverse resolution method and system
CN110008809A (en) * 2019-01-04 2019-07-12 阿里巴巴集团控股有限公司 Acquisition methods, device and the server of list data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭延峥等: "复杂曲线图像的数据提取方法", 《电子测量技术》 *

Also Published As

Publication number Publication date
CN111460774B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
Wolin et al. ShortStraw: A Simple and Effective Corner Finder for Polylines.
US8838657B1 (en) Document fingerprints using block encoding of text
CN110910863B (en) Method, device and equipment for extracting audio segment from audio file and storage medium
CN111368638A (en) Spreadsheet creation method and device, computer equipment and storage medium
CN108170806B (en) Sensitive word detection and filtering method and device and computer equipment
CN111310254B (en) CAD legend identification method and device, storage medium and electronic equipment
CN110796130A (en) Method, device and computer storage medium for character recognition
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
US20230401691A1 (en) Image defect detection method, electronic device and readable storage medium
CN114332794B (en) Target detection method, system, device and medium for train line image
CN112083870A (en) Information identification method and equipment
CN109086186B (en) Log detection method and device
CN103744609B (en) A kind of data extraction method and device
CN116227573B (en) Segmentation model training method, image segmentation device and related media
CN111460774A (en) Method and device for restoring data in curve, storage medium and electronic equipment
CN110162729B (en) Method and device for establishing browser fingerprint and identifying browser type
CN110796115A (en) Image detection method and device, electronic equipment and readable storage medium
CN113988067B (en) Sentence word segmentation method and device and electronic equipment
CN113934875A (en) Electrophoresis data identification method and system, computer storage medium and electronic equipment
CN114529965A (en) Character image clustering method and device, computer equipment and storage medium
CN115168758A (en) OFD document fast rendering method and device, electronic device and storage medium
CN114283436A (en) Table identification method, device, equipment and storage medium
CN107704708B (en) Linear engineering section coordinate calculation method, device and equipment
CN113989820A (en) Table extraction method and device, computer equipment and storage medium
CN111783180A (en) Drawing splitting method and related device

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
GR01 Patent grant
GR01 Patent grant