CN107016393B - Graphical identification method of characteristic points of data trend line and groove width measurement method - Google Patents

Graphical identification method of characteristic points of data trend line and groove width measurement method Download PDF

Info

Publication number
CN107016393B
CN107016393B CN201610134761.5A CN201610134761A CN107016393B CN 107016393 B CN107016393 B CN 107016393B CN 201610134761 A CN201610134761 A CN 201610134761A CN 107016393 B CN107016393 B CN 107016393B
Authority
CN
China
Prior art keywords
data
trend
image
characteristic
characteristic image
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.)
Active
Application number
CN201610134761.5A
Other languages
Chinese (zh)
Other versions
CN107016393A (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.)
WUHAN FANMAO ELECTRONIC TECHNOLOGY Co.,Ltd.
Original Assignee
Shanghai Fanxuan 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 Shanghai Fanxuan Technology Co Ltd filed Critical Shanghai Fanxuan Technology Co Ltd
Priority to CN201610134761.5A priority Critical patent/CN107016393B/en
Publication of CN107016393A publication Critical patent/CN107016393A/en
Application granted granted Critical
Publication of CN107016393B publication Critical patent/CN107016393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a graphical identification method of characteristic points of a data trend line, which comprises the following steps: converting a data trend line formed by the acquired data into a trend image; and secondly, scanning and comparing preset characteristic images in the trend image, and when the preset similarity is reached or greater than the preset similarity, obtaining the current scanning position on the trend image, namely the position of the characteristic point of the data trend line. The invention also provides a groove width measuring method based on the identification method. The present invention applies image recognition techniques to data analysis that obfuscates the noise or fluctuations of the data through the imaging of the data, thereby enhancing the recognition of data trends and providing a useful complement to current data analysis.

Description

Graphical identification method of characteristic points of data trend line and groove width measurement method
Technical Field
The invention relates to the field of computer vision and image recognition, in particular to a graphical recognition method for characteristic points of a data trend line and a groove width measurement method.
Background
Computer vision inspection or image recognition is generally performed by shooting a target object into an image, analyzing stored image data through a certain algorithm, and acquiring characteristic information of the target object from the image data, and is widely applied to industrial production and product inspection at present.
However, in the field of data analysis, there is a rare occurrence of a method of analyzing data by a trend image of the data. With the change of sensing and measuring technologies, the measurement accuracy is continuously improved, and meanwhile, the influence of measurement noise on measurement data increases the difficulty of data analysis, so that the algorithm needs to be continuously updated to meet the requirements of different applications. For another example, for some data analysis software, such as stock analysis software, when some data is artificially created, the analysis result is often affected, and on the whole trend line, the artificial data is buried in the big data and is not easily found by people.
In the above situation, the overall trend of the data is often relatively fixed, and the drastic change of the data generally occurs in a cell or a range, and at this time, if some feature points of the data are analyzed with respect to the identification of the trend image, it is more convenient and faster than simply analyzing the data.
Therefore, the invention aims to apply computer image recognition to data analysis, and contributes to widening the data analysis means.
Disclosure of Invention
In order to achieve the purpose, the invention provides a graphical identification method of characteristic points of a data trend line, which comprises the following steps:
converting a data trend line formed by the acquired data into a trend image;
and secondly, scanning and comparing preset characteristic images in the trend image, wherein when the preset similarity is reached or greater than the preset similarity, the current scanning position on the trend image is the position of the characteristic point of the data trend line, and the number of the characteristic points can be one, multiple or even none.
Further, the preset similarity is 80%.
Further, when a plurality of preset feature images need to be identified, repeating the first step and the second step, and identifying the corresponding feature points of each preset feature image respectively.
Further, in the first step, a coordinate system is established for the trend image, so that the feature point position is represented by coordinate values.
The present invention also provides a groove width measurement method, the groove defining a surface profile having a height difference, the method comprising:
scanning the surface contour by adopting a distance meter with uniform linear motion, and recording the actual measurement distance between the surface contour and the distance meter on a motion track at a certain frequency so as to form a data trend line;
converting the data trend lines into trend images;
setting a first characteristic image and a second characteristic image which respectively correspond to the data graph change trend of the groove when the height is suddenly changed;
respectively scanning and comparing the first characteristic image and the second characteristic image in the trend image, wherein when the first characteristic image and the second characteristic image reach or are greater than a preset similarity, the current scanning position on the trend image is the position of a characteristic point corresponding to the first characteristic image or the second characteristic image;
and calculating the width of the groove through the characteristic points corresponding to the first characteristic image and the second characteristic image.
Further, the rangefinder enables ranging based on transmitting and receiving signal waves, such as using a laser rangefinder, an infrared rangefinder, or the like.
Further, the preset similarity is 80%, and can be adjusted according to actual needs.
Further, a coordinate system is established for the trend image, so that the positions of the feature points are represented by coordinate values. For picture files, a coordinate system can be established by the positions of the pixels.
The present invention applies image recognition techniques to data analysis that obfuscates the noise or fluctuations of the data through the imaging of the data, thereby enhancing the recognition of data trends and providing a useful complement to current data analysis.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is a flow chart of a method for graphical identification of characteristic points of a data trend line of the present invention;
FIG. 2 is a schematic diagram of a groove width measurement according to a preferred embodiment of the present invention;
FIG. 3 is a graph of the trend of the data obtained from the measurements of FIG. 2, further showing a close-up view at point A;
fig. 4 is a picture converted from the data trend line of fig. 3, in which preset feature pictures at the corresponding points a and D, respectively, are also shown.
Detailed Description
In the description of the embodiments of the present invention, it should be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc., indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
As shown in fig. 1, the method for graphically identifying characteristic points of a data trend line of the present invention comprises the following steps:
step S1: converting a data trend line formed by the collected data into a trend image;
step S2: establishing a coordinate system for the trend image;
step S3: determining a preset characteristic image;
step S4: scanning and comparing the preset characteristic image in the trend image, and when the preset similarity is reached or greater than the preset similarity, obtaining the current scanning position on the trend image, namely the position of the characteristic point of the data trend line;
step S5: when it is necessary to recognize another preset feature image, steps S3 and S4 are repeated.
The method for graphically identifying characteristic points of a data trend line of the present invention is further illustrated by an embodiment of measuring the groove width.
As shown in fig. 2, the laser rangefinder 1 is placed above the groove 2 for measuring its distance from the wall surface defined by the groove 2, the groove 2 defining wall surface profiles 21, 22, 23, 24, 25. The incident direction of the laser distance measuring device 1 is perpendicular to the wall profiles 21, 22, 23 and parallel to the wall profiles 23, 24.
The laser distance measuring device 1 moves linearly at a certain speed v and sequentially sweeps the wall profiles 21, 24, 23, 25 and 22, and the actually measured distance values during the moving process are recorded at a certain frequency, and the recorded numerical curve is shown in fig. 3.
In fig. 3, the horizontal axis (X axis) represents "time", and the vertical axis (Y axis) represents "distance", and since the laser range finder 1 performs a linear motion at a constant speed v, the actually measured distance values are recorded at each time point of the time axis, thereby forming a data trend line shown in fig. 3.
When it is desired to calculate the width of the groove 2 in fig. 2 by using the data trend lines in fig. 3, the mathematical method is to find the break point in the curve by numerical calculation, such as point A, B, C, D in fig. 3, and after determining one of points a and B and one of points C and D, the width of the groove can be easily found. Generally, the method for finding the break point of the continuous curve through calculation is to derive the continuous curve, and when data jump occurs in a derivative curve (which is not derivable based on the break point), the corresponding position in the original continuous curve is the break point position.
For a data trend line formed by continuous data like that in fig. 3, the derivation method for each point is as follows:
let the coordinates of the points recorded be (x) in sequence0,y0)、(x1,y1)、(x2,y2)……(xn,yn) When any point (x) of the curve needs to be calculatedm,ym) At the derivative of (b), the derivative of the point KmThe following formula is satisfied:
Km=(ym-ym-1)/(xm-xm-1)
when the sampled data has ideal precision, each break point of the data trend line can be effectively found through the method, but in actual measurement, the measured data can be influenced by various noises, so that a curve which looks smooth on a trend graph actually has severe fluctuation in a small interval or range. The line segment OA is approximately a straight line as shown in fig. 3, but when the point a is enlarged, it can be seen that the data from O to a forms a curve with sharp fluctuations, which are caused by measurement errors and noise. If the break point is found only by the derivation method, a plurality of break points may appear on the line segment from O to a, which may affect the correct determination of the data. Of course, the data can be further processed by other algorithms, which increases the processing difficulty, and different algorithms are often required according to different actual situations, thereby increasing the workload of developers.
For the above situation, the present embodiment finds the break point of the curve in fig. 3 in the following manner.
First, the numerical value curve in fig. 3 is saved as an image file, i.e., picture 3 as shown in fig. 4.
Pictures 31, 32 are provided corresponding to the curve changes at points a and D, respectively. For the arrangement of the pictures 31 and 32, the data curve trend in fig. 3 is not needed to be known, in the measurement as shown in fig. 2, the laser range finder 1 scans from the wall surface contour 21 to the wall surface contour 23, and a jump of a numerical value is necessarily generated due to the height difference, so that the picture 31 only needs to be arranged in a way that a horizontal line segment is connected with an upward vertical line segment, and the picture 32 is arranged similarly.
Then, the picture 31 is scanned and compared in the picture 3, and a position with a similarity meeting a preset value is found, in this embodiment, when the compared similarity is greater than 80%, the graph is considered to be consistent, so that the point a can be found to be the position consistent with the picture 31 through the comparison. Similarly, a location at point D that coincides with picture 32 may also be found.
For the picture 3, accurate coordinate positioning can be performed through the pixel points, so that a coordinate system can be established. Therefore, the found points A and D can be represented by coordinate values, and when the coordinates of the two points are known, the width of the groove can be calculated according to the coordinates.
Suppose the coordinates of point A are (x)A,yA) The coordinates of point D are (x)D,yD) Therefore, the width W of the groove satisfies the following formula:
W=(xD-xA)×v
where v is the moving speed at the time of measurement by the laser range finder 1.
The data pattern recognition method of the present invention is explained above by a groove width measurement method. Similarly, the method can also be applied to more complicated data trend line analysis, such as a K-line graph of stock tendency, and various feature pictures (images) can be set according to the experience of an operator to compare with the whole K-line graph to find the feature points. Since the comparison is performed only by the graph, the influence of the small-range fluctuation of the data on the result is greatly reduced, namely, the data fluctuation is blurred. And the degree of the fuzzification can be adjusted by presetting the similarity so as to represent tolerable comparison difference.
The present embodiment applies image recognition techniques to data analysis, which obscures the noise or fluctuations of the data through the patterning of the data, thereby enhancing the identification of data trends and providing a useful complement to current data analysis.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (4)

1. A method for measuring a groove width based on graphical identification of data trend line feature points, the groove defining a surface profile having a height differential, comprising:
scanning the surface contour by adopting a distance meter with uniform linear motion, and recording the actual measurement distance between the surface contour and the distance meter on a motion track at a certain frequency so as to form a data trend line;
converting the data trend lines into trend images;
setting a first characteristic image and a second characteristic image which respectively correspond to the data graph change trend of the groove when the height is suddenly changed;
respectively scanning and comparing the first characteristic image and the second characteristic image in the trend image, wherein when the first characteristic image and the second characteristic image reach or are greater than a preset similarity, the current scanning position on the trend image is the position of a characteristic point corresponding to the first characteristic image or the second characteristic image;
and calculating the width of the groove through the characteristic points corresponding to the first characteristic image and the second characteristic image.
2. The groove width measuring method according to claim 1, wherein the distance meter performs distance measurement based on transmission and reception of signal waves.
3. The groove width measurement method according to claim 1, wherein the preset degree of similarity is 80%.
4. The groove width measuring method according to claim 1, further comprising establishing a coordinate system for the trend image to represent feature point positions in coordinate values.
CN201610134761.5A 2016-03-10 2016-03-10 Graphical identification method of characteristic points of data trend line and groove width measurement method Active CN107016393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610134761.5A CN107016393B (en) 2016-03-10 2016-03-10 Graphical identification method of characteristic points of data trend line and groove width measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610134761.5A CN107016393B (en) 2016-03-10 2016-03-10 Graphical identification method of characteristic points of data trend line and groove width measurement method

Publications (2)

Publication Number Publication Date
CN107016393A CN107016393A (en) 2017-08-04
CN107016393B true CN107016393B (en) 2020-04-21

Family

ID=59439056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610134761.5A Active CN107016393B (en) 2016-03-10 2016-03-10 Graphical identification method of characteristic points of data trend line and groove width measurement method

Country Status (1)

Country Link
CN (1) CN107016393B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118067624B (en) * 2024-04-19 2024-08-23 宁德时代新能源科技股份有限公司 Method, device and system for detecting battery before welding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798237A (en) * 2004-12-10 2006-07-05 富士胶片株式会社 Method of and system for image processing and computer program
CN101028186A (en) * 2007-03-28 2007-09-05 李楚雅 Automatic recognition of EC G ST section based on template match
CN101517354A (en) * 2006-09-12 2009-08-26 大日本印刷株式会社 Protrusion height measuring method, protrusion height measuring apparatus and program
CN103673999A (en) * 2013-12-23 2014-03-26 西南交通大学 Optimal measurement position positioning system for laser measurement

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010216858A (en) * 2009-03-13 2010-09-30 Yamagata-Chino Corp Trend graph display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798237A (en) * 2004-12-10 2006-07-05 富士胶片株式会社 Method of and system for image processing and computer program
CN101517354A (en) * 2006-09-12 2009-08-26 大日本印刷株式会社 Protrusion height measuring method, protrusion height measuring apparatus and program
CN101028186A (en) * 2007-03-28 2007-09-05 李楚雅 Automatic recognition of EC G ST section based on template match
CN103673999A (en) * 2013-12-23 2014-03-26 西南交通大学 Optimal measurement position positioning system for laser measurement

Also Published As

Publication number Publication date
CN107016393A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
US9576375B1 (en) Methods and systems for detecting moving objects in a sequence of image frames produced by sensors with inconsistent gain, offset, and dead pixels
RU2529594C1 (en) Calibration device, distance measurement system, calibration method and calibration programme
US7471809B2 (en) Method, apparatus, and program for processing stereo image
US8103376B2 (en) System and method for the on-machine 2-D contour measurement
KR102522928B1 (en) Method and apparatus for estimating moving velocity of vehicle
JP3059035B2 (en) Distance measuring device
JP2013239170A (en) Stereo image processing device and stereo image processing method
US10684120B2 (en) Wire rope measuring device and wire rope measuring method
JPWO2017145541A1 (en) Moving body
JP4862816B2 (en) Image correspondence point search device, distance measuring device and image motion detection device using the same
KR20180098945A (en) Method and apparatus for measuring speed of vehicle by using fixed single camera
CN112819842B (en) Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection
KR101238748B1 (en) System for measuring distance of target using step-staring infrared sensor unit
CN107016393B (en) Graphical identification method of characteristic points of data trend line and groove width measurement method
JP2007127478A (en) Device and method for speed detection of tracking subject
WO2018229812A1 (en) Three-dimensional measurement device and method
CN113643355B (en) Target vehicle position and orientation detection method, system and storage medium
CN111199191A (en) Pointer instrument automatic reading method based on scale searching
CN116203574A (en) Data processing system for detecting object distance
CN112712476B (en) Denoising method and device for TOF ranging and TOF camera
CN114266835A (en) Deformation monitoring control method and system for non-measuring camera
CN114820782A (en) Point cloud calibration method and system of line laser contourgraph based on plane calibration block
JPH1096607A (en) Object detector and plane estimation method
RU2351091C2 (en) Method of automatic detection and correction of radial distortion on digital images
Mikhaylichenko et al. Approach to non-contact measurement of geometric parameters of large-sized objects

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200327

Address after: 201207 Pudong New Area, Shanghai, China (Shanghai) free trade trial area 2, new building 13, 27 Jinqiao Road.

Applicant after: Shanghai Fanxuan Technology Co., Ltd

Address before: 201206, Shanghai, Pudong New Area Free Trade Zone pilot new Jinqiao Road 27, 13 floor, 2 floor

Applicant before: SHANGHAI KAIHUANG SOFTWARE TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200615

Address after: Room 801, building C1, future science and Technology City, 999 Gaoxin Avenue, Wuhan New Technology Development Zone, Hubei Province

Patentee after: WUHAN FANMAO ELECTRONIC TECHNOLOGY Co.,Ltd.

Address before: 201207 Pudong New Area, Shanghai, China (Shanghai) free trade trial area 2, new building 13, 27 Jinqiao Road.

Patentee before: Shanghai Fanxuan Technology Co.,Ltd.