CN105938555A - Extraction method for picture curve data - Google Patents

Extraction method for picture curve data Download PDF

Info

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
Application number
CN201610225916.6A
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.)
Changzhou Wujin Semiconductor Lighting Application Technology Institute
Original Assignee
Changzhou Wujin Semiconductor Lighting Application Technology Institute
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 Changzhou Wujin Semiconductor Lighting Application Technology Institute filed Critical Changzhou Wujin Semiconductor Lighting Application Technology Institute
Priority to CN201610225916.6A priority Critical patent/CN105938555A/en
Publication of CN105938555A publication Critical patent/CN105938555A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local 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

A kind of extracting method of picture curve data
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.
CN201610225916.6A 2016-04-12 2016-04-12 Extraction method for picture curve data Pending CN105938555A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
付昆昆 等: "基于Matlab的图像曲线数据提取方法", 《汕头大学学报(自然科学版)》 *
余学军 等: "二值图象曲线轮廓提取的新算法", 《中国图象图形学报》 *
杜飞明 等: "工业图谱数据识别与分离系统的研究与应用", 《机床与液压》 *
董延 等: "一种利用Matlab提取图像中曲线的新方法", 《机电产品开发与创新》 *
郭慧 等: "电磁兼容图片测试曲线的数据提取方法研究", 《计算机工程与设计》 *

Cited By (4)

* Cited by examiner, † Cited by third party
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
TWI480833B (en) A method for composing a confocal microscopy image with a higher resolution
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
CN106097368B (en) A kind of recognition methods in veneer crack
CN105938555A (en) Extraction method for picture curve data
CN105740860A (en) Automatic detection method for Chinese character area of shop sign in natural scene
CN110599552A (en) pH test paper detection method based on computer vision
CN102254302A (en) Picture trimming system and method thereof
KR20210154164A (en) Detection method and detection system
CN106097354B (en) A kind of hand images dividing method of combining adaptive Gauss Face Detection and region growing
CN1588431A (en) Character extracting method from complecate background color image based on run-length adjacent map
US20130120806A1 (en) Image processing apparatus, line detection method, and computer-readable, non-transitory medium
US20160307062A1 (en) Method and device for determining regions to be detected on display motherboard
CN109242917A (en) One kind being based on tessellated camera resolution scaling method
CN105760869A (en) Examination paper marking method based on image gray level recognition and processing
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
CN110223241A (en) A kind of histogram equalizing method based on block statistics
CN110443166A (en) A kind of licence plate recognition method of haze weather
CN106204889B (en) A kind of localization method and device of bank note fluorescence area
JP3378439B2 (en) Form image creation device
CN111178356A (en) Paper contour skew correction method
CN105654087A (en) Color template-based offline handwritten character extraction method
CN111414877B (en) Table cutting method for removing color frame, image processing apparatus and storage medium
CN110310274B (en) Plant flower number detection method

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