CN105938555A - Extraction method for picture curve data - Google Patents
Extraction method for picture curve data Download PDFInfo
- Publication number
- CN105938555A CN105938555A CN201610225916.6A CN201610225916A CN105938555A CN 105938555 A CN105938555 A CN 105938555A CN 201610225916 A CN201610225916 A CN 201610225916A CN 105938555 A CN105938555 A CN 105938555A
- Authority
- CN
- China
- Prior art keywords
- point
- curve
- picture
- extracted
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention relates to the technical field of the data processing, especially to an extraction method for picture curve data. The method comprises steps of data extraction zone determination and determination of all points on a curve. Data information of a picture having a plurality of curves can be extracted; a few influence factors exit; and the precision is high. A selectable area can be enlarged to carry out precise point fixing, so that the data extraction precision is improved; and problems of high curve thickness and deficiency of curves can be dealt with. Offset point and stray point elimination can be carried out on the extracted curve data; and thus the output data quality is improved substantially.
Description
Technical field
The present invention relates to technical field of data processing, particularly relate to the extracting method of a kind of picture curve data.
Background technology
During actual working and learning, need the curve data on some pictures to be analyzed, if active data is straight
Connect that source data is carried out Treatment Analysis is convenient, but it practice, be difficult to or source data cannot be obtained at all, although market
On have the instrument that some data extract, but function is the most single, typically can only meet the specific curves of specific occasion, and
The mode a little that takes mostly is manual reconnaissance scanning, is limited precision by artificial reconnaissance low, very big for more complicated many curvilinear figures error,
Limitation is the biggest, inefficiency.
Summary of the invention
It is an object of the invention to the defect overcoming prior art to exist, it is provided that the picture curve data that a kind of precision is high, efficiency is high
Extracting method.
The technical scheme realizing the object of the invention is: the extracting method of a kind of picture curve data, it is characterised in that described picture
The extracting method of curve data comprises the steps:
Step 1: determine that data extract region: the diagonal that the initial point of picture upper curve to be extracted and upper right angle point 2 are formed is certainly
Fixed rectangle region is that data extract region, determines that data are extracted region and comprised the steps:
1) initial point is determined: in the background of picture to be extracted, choose a point be converted to background rgb value, then at figure to be extracted
Choose a point near the initial point of sheet, then scan toward X-axis and Y-axis both direction from selected point, each point of scanning is converted to
Rgb value, compares the rgb value of each point with background rgb value, and the first rgb value and background rgb value are more than setting ratio
The point of rate, returns respective coordinates value, and this point is the initial point of picture upper curve to be extracted;
2) determine upper right angle point: after determining initial point, be determined by curvilinear abscissa maximum and vertical coordinate maximum to determine upper right
Angle point;
Step 2: determine each point on curve: scanning extracts each point of picture upper curve to be extracted, by the color value of each point one by one
Be converted to rgb value, the rgb value of each point is compared with reference to rgb value, the return corresponding point of coincidence loss scope
Coordinate figure.
As the prioritization scheme of the present invention, determine that the method for initial point or upper right angle point is: picture upper curve to be extracted initial point or
A upper right angle point rectangular area selected around, then arranges amplification, and the rectangular area chosen is amplified by entirety, and setting is put
The coordinate of big multiple square point is identical with origin or upper right angle point, substitutes initial point or the upper right corner with amplification square point
Point.
As the prioritization scheme of the present invention, during step 2 scans, if there is the feelings of the corresponding two kinds of Y values of an X value
During condition, set live width, then use upper and lower two-way simultaneous toward interscan, run into and meet two points of live width and average conduct
The extraction point of curve data, is unsatisfactory for two points of the some extraction point simultaneously as curve data of live width.
As the prioritization scheme of the present invention, the extracting method of picture curve data also includes the method for impurity point, removes impurity point
Method comprises the steps of:
1) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually increased one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value reduces, this point will be removed as miscellaneous point;
2) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually reduced one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value increases, this point will be removed as miscellaneous point.
As the prioritization scheme of the present invention, the extracting method of picture curve data also includes the method removing point partially, removes inclined point
Method is, selects two points, the then matching one straight line by the two point, figure to be extracted on the curve of picture to be extracted
Being removed as inclined point with the point of setting value greatly at Y direction deviation straight line between two points on the curve of sheet.
As the prioritization scheme of the present invention, the extracting method of picture curve data also includes the method for linear interpolation, described linear slotting
The method of value is first selected starting point on the curve of picture to be extracted, is then scanned, adjacent on the curve that will scan
Point as terminal, then couple together by bundle of lines beginning and end.
The present invention has positive effect: (1) present invention can extract the image data information containing a plurality of curve, it is believed that impact
Factor is few, and precision is high;
(2) present invention to can favored area be amplified, thus can carry out pinpoint, improves the precision that data are extracted;
(3) present invention can process the situation that some self curves are relatively thick, curve exists disappearance, additionally to the curve number after extracting
Partially put and miscellaneous point according to can also be removed, be greatly improved the quality of output data.
Detailed description of the invention
The extracting method of a kind of picture curve data, the extracting method of this picture curve data comprises the steps:
Step 1: determine that data extract region: the diagonal that the initial point of picture upper curve to be extracted and upper right angle point 2 are formed is certainly
Fixed rectangle region is that data extract region, determines that data are extracted region and comprised the steps:
1) initial point is determined: in the background of picture to be extracted, choose a point be converted to background rgb value, then at figure to be extracted
Choose a point near the initial point of sheet, then scan toward X-axis and Y-axis both direction from selected point, each point of scanning is converted to
Rgb value, compares the rgb value of each point with background rgb value, and the first rgb value and background rgb value are more than setting ratio
The point of rate, returns respective coordinates value, and this point is the initial point of picture upper curve to be extracted;
2) determine upper right angle point: after determining initial point, be determined by curvilinear abscissa maximum and vertical coordinate maximum to determine upper right
Angle point;
Step 2: determine each point on curve: scanning extracts each point of picture upper curve to be extracted, by the color value of each point one by one
Be converted to rgb value, the rgb value of each point is compared with reference to rgb value, the return corresponding point of coincidence loss scope
Coordinate figure.
By step 1) and step 2) each point coordinate figure of picture upper curve to be extracted can be obtained, if had on picture to be extracted
A plurality of curve, according to step 2) extract one by one.
The above-mentioned method determining initial point or upper right angle point needs to choose a point near the initial point at picture to be extracted, sometimes deposits
At this, point is more difficult chooses, a kind of determine initial point or upper right angle point method be: on initial point or the right side of picture upper curve to be extracted
A upper angle point rectangular area selected around, then arranges amplification, and the rectangular area chosen is amplified by entirety, including curve
On point and point in background, the coordinate then setting amplification square point is identical with origin or upper right angle point, with putting
Big multiple square point substitutes initial point or upper right angle point.The method is possible not only to determine initial point and upper right angle point, simultaneously for waiting to carry
Other point taking picture upper curve is also suitable.
During step 2 scans, during if there is the situation of X value corresponding two kinds of Y values, setting live width, then adopt
With upper and lower two-way simultaneous toward interscan, run into and meet two points of live width and average the extraction point as curve data, discontented
Two points of point of foot live width are simultaneously as the extraction point of curve data, and the method is applicable to the situation that picture upper curve to be extracted is thicker,
Bold curve is converted into the relatively fine alcoholic fermented preparation line of single-point pixel wide by this method.
The extracting method of picture curve data also includes the method for impurity point, goes the method for impurity point to comprise the steps of:
1) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually increased one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value reduces, this point will be removed as miscellaneous point;
2) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually reduced one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value increases, this point will be removed as miscellaneous point.
This removes miscellaneous point and the sawtooth that the method for impurity point can remove on curve, thus improves the quality of output data.
The extracting method of picture curve data also includes the method removing point partially, and the extracting method of picture curve data also includes removing
The method of point partially, the method that described removal is put partially is, selects two points on the curve of picture to be extracted, and then matching one is led to
Cross the straight line of the two point, the big and point of setting value at Y direction deviation straight line between two points on the curve of picture to be extracted
It is removed as point partially.The method mainly process after extracting curve data present in deviate entopic abnormity point.
The extracting method of picture curve data also includes the method for linear interpolation, and the method for linear interpolation is first at picture to be extracted
Curve on selected starting point, be then scanned, the adjacent point on the curve that will scan, as terminal, then uses the bundle of lines
Beginning and end couple together the method mainly due to the curve on picture to be extracted itself exist disappearance, formed by the method
Full curve, thus improve the quality of output data.
Particular embodiments described above, is further described the purpose of the present invention, technical scheme and beneficial effect,
Be it should be understood that the specific embodiment that the foregoing is only the present invention, be not limited to the present invention, all in the present invention
Spirit and principle within, any modification, equivalent substitution and improvement etc. done, should be included in protection scope of the present invention it
In.
Claims (6)
1. the extracting method of a picture curve data, it is characterised in that the extracting method of described picture curve data includes as follows
Step:
Step 1: determine that data extract region: the diagonal that the initial point of picture upper curve to be extracted and upper right angle point 2 are formed is certainly
Fixed rectangle region is that data extract region, determines that data are extracted region and comprised the steps:
1) initial point is determined: in the background of picture to be extracted, choose a point be converted to background rgb value, then at figure to be extracted
Choose a point near the initial point of sheet, then scan toward X-axis and Y-axis both direction from selected point, each point of scanning is converted to
Rgb value, compares the rgb value of each point with background rgb value, and the first rgb value and background rgb value are more than setting ratio
The point of rate, returns respective coordinates value, and this point is the initial point of picture upper curve to be extracted;
2) determine upper right angle point: after determining initial point, be determined by curvilinear abscissa maximum and vertical coordinate maximum to determine upper right
Angle point;
Step 2: determine each point on curve: scanning extracts each point of picture upper curve to be extracted, by the color value of each point one by one
Be converted to rgb value, the rgb value of each point is compared with reference to rgb value, the return corresponding point of coincidence loss scope
Coordinate figure.
The extracting method of a kind of picture curve data the most according to claim 1, it is characterised in that: described determine initial point or
The method of upper right angle point is: in initial point or a upper right angle point rectangular area selected around of picture upper curve to be extracted, then set
Putting amplification, the rectangular area chosen is amplified by entirety, sets coordinate and origin or the upper right of amplification square point
Angle point is identical, substitutes initial point or upper right angle point with amplification square point.
The extracting method of a kind of picture curve data the most according to claim 1, it is characterised in that: in step 2 scanning
During, during if there is the situation of X value corresponding two kinds of Y values, set live width, then use upper and lower two-way simultaneous toward in
Between scan, run into and meet two points of live width and average the extraction point as curve data, be unsatisfactory for two points of point of live width with
The extraction point of Shi Zuowei curve data.
The extracting method of a kind of picture curve data the most according to claim 1, it is characterised in that: described picture curve number
According to the extracting method method that also includes impurity point, go the method for impurity point to comprise the steps of:
1) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually increased one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value reduces, this point will be removed as miscellaneous point;
2) selecting to be gradually increased with X-axis on the curve of picture to be extracted, Y value is gradually reduced one section of curve, determines this curve
Dian Heyou territory, left territory point, in step 2) scanning during, if scan between the point of Dian Heyou territory, left territory with X-axis increase
Greatly, the point that Y value increases, this point will be removed as miscellaneous point.
The extracting method of a kind of picture curve data the most according to claim 1, it is characterised in that: described picture curve number
According to the extracting method method that also includes removing point partially, the method that described removal is put partially is, selects on the curve of picture to be extracted
Two points, then matching one is by the straight line of the two point, on the curve of picture to be extracted between two points in Y direction
Deviation straight line is removed as inclined point with the point of setting value greatly.
The extracting method of a kind of picture curve data the most according to claim 1, it is characterised in that: described picture curve number
According to the extracting method method that also includes linear interpolation, the method for described linear interpolation is first to select on the curve of picture to be extracted
Determining starting point, be then scanned, the adjacent point on the curve that will scan, as terminal, then uses bundle of lines beginning and end
Couple together.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610225916.6A CN105938555A (en) | 2016-04-12 | 2016-04-12 | Extraction method for picture curve data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610225916.6A CN105938555A (en) | 2016-04-12 | 2016-04-12 | Extraction method for picture curve data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105938555A true CN105938555A (en) | 2016-09-14 |
Family
ID=57151305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610225916.6A Pending CN105938555A (en) | 2016-04-12 | 2016-04-12 | Extraction method for picture curve data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105938555A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107909068A (en) * | 2017-11-24 | 2018-04-13 | 苏州灯蓝软件科技有限公司 | A kind of big data image curve reverse resolution method and system |
CN109145857A (en) * | 2018-09-04 | 2019-01-04 | 深圳清沣溪科技有限公司 | A method of extracting curve data from curvilinear figure |
WO2021004402A1 (en) * | 2019-07-05 | 2021-01-14 | 深圳数字生命研究院 | Image recognition method and apparatus, storage medium, and processor |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049598A (en) * | 2012-11-29 | 2013-04-17 | 北京航空航天大学 | Electromagnetic compatibility test curve picture information extraction method based on pixel coordinate strategy |
-
2016
- 2016-04-12 CN CN201610225916.6A patent/CN105938555A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049598A (en) * | 2012-11-29 | 2013-04-17 | 北京航空航天大学 | Electromagnetic compatibility test curve picture information extraction method based on pixel coordinate strategy |
Non-Patent Citations (5)
Title |
---|
付昆昆 等: "基于Matlab的图像曲线数据提取方法", 《汕头大学学报(自然科学版)》 * |
余学军 等: "二值图象曲线轮廓提取的新算法", 《中国图象图形学报》 * |
杜飞明 等: "工业图谱数据识别与分离***的研究与应用", 《机床与液压》 * |
董延 等: "一种利用Matlab提取图像中曲线的新方法", 《机电产品开发与创新》 * |
郭慧 等: "电磁兼容图片测试曲线的数据提取方法研究", 《计算机工程与设计》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107909068A (en) * | 2017-11-24 | 2018-04-13 | 苏州灯蓝软件科技有限公司 | A kind of big data image curve reverse resolution method and system |
CN109145857A (en) * | 2018-09-04 | 2019-01-04 | 深圳清沣溪科技有限公司 | A method of extracting curve data from curvilinear figure |
CN109145857B (en) * | 2018-09-04 | 2024-02-09 | 深圳十沣科技有限公司 | Method for extracting curve data from curve graph |
WO2021004402A1 (en) * | 2019-07-05 | 2021-01-14 | 深圳数字生命研究院 | Image recognition method and apparatus, storage medium, and processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101515325B (en) | Character extracting method in digital video based on character segmentation and color cluster | |
US8849042B2 (en) | Image processing apparatus, rectangle detection method, and computer-readable, non-transitory medium | |
CN104794421B (en) | A kind of positioning of QR codes and recognition methods | |
CN103258201B (en) | A kind of form lines extracting method of amalgamation of global and local message | |
CN106097368B (en) | A kind of recognition methods in veneer crack | |
US9160884B2 (en) | Image processing apparatus, line detection method, and computer-readable, non-transitory medium | |
CN105938555A (en) | Extraction method for picture curve data | |
CN110599552A (en) | pH test paper detection method based on computer vision | |
EP3249618B1 (en) | Banknote classification and identification method and device based on lab color space | |
CN105740860A (en) | Automatic detection method for Chinese character area of shop sign in natural scene | |
CN102254302A (en) | Picture trimming system and method thereof | |
KR20210154164A (en) | Detection method and detection system | |
CN106384113A (en) | Odd-and-even-line license plate character dividing method based on projection and template matching | |
US20130120806A1 (en) | Image processing apparatus, line detection method, and computer-readable, non-transitory medium | |
CN108182671A (en) | Single image defogging method based on sky area identification | |
CN113642380A (en) | Identification technology for wireless form | |
US7277579B2 (en) | Smart scan | |
CN105760869B (en) | Examination paper marking method based on image gray level recognition and processing | |
CN109242917A (en) | One kind being based on tessellated camera resolution scaling method | |
US8989493B1 (en) | Method and apparatus for identifying regions of an image to be filtered during processing of the image | |
CN108254380B (en) | PCB template comparison method based on digital image processing | |
CN100489885C (en) | Method for identifying image and device for realizing same | |
CN110223241A (en) | A kind of histogram equalizing method based on block statistics | |
CN110443166A (en) | A kind of licence plate recognition method of haze weather | |
CN111414877A (en) | Table clipping method of removing color borders, image processing apparatus, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160914 |