CN110660096B - Curve consistency detection method and storage medium - Google Patents

Curve consistency detection method and storage medium Download PDF

Info

Publication number
CN110660096B
CN110660096B CN201910951457.3A CN201910951457A CN110660096B CN 110660096 B CN110660096 B CN 110660096B CN 201910951457 A CN201910951457 A CN 201910951457A CN 110660096 B CN110660096 B CN 110660096B
Authority
CN
China
Prior art keywords
curve
detected
pixel
difference
ordinate
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
CN201910951457.3A
Other languages
Chinese (zh)
Other versions
CN110660096A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910951457.3A priority Critical patent/CN110660096B/en
Publication of CN110660096A publication Critical patent/CN110660096A/en
Application granted granted Critical
Publication of CN110660096B publication Critical patent/CN110660096B/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
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Abstract

The invention discloses a curve consistency detection method and a storage medium, wherein the method comprises the following steps: converting a plurality of curve images to be detected into a preset color space to obtain color space parameter values of each curve image to be detected, extracting pixel coordinate information of curves in each curve image to be detected according to the color space parameter values of each curve image to be detected, drawing the curves to be detected corresponding to the curves in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curves in each curve image to be detected, and carrying out consistency detection on a plurality of groups of curves to be detected drawn in the pixel coordinate system to obtain detection results, thereby solving the problems that the consistency of similar experimental curves in a plurality of experimental curve images is difficult to detect and the detection results are easy to be wrong in the prior art.

Description

Curve consistency detection method and storage medium
Technical Field
The invention relates to the field of image processing, in particular to a curve consistency detection method and a storage medium.
Background
The relationship and distinction between experimental curves generated by experimental instruments is the focus of research by researchers, and experimental curves are generally related to many factors such as time, temperature, equipment parameters and the like, and once these factors change, the experimental curves change accordingly. Most of the current experimental instruments do not have the function of detecting the consistency of a similar experimental curve by a plurality of experimental curve pictures containing the similar experimental curve, and usually only the plurality of experimental curve pictures can be exported, and then the comparison and detection are completed manually; however, the experimental curves are usually complex and changeable, and some similar experimental curves needing to be compared and detected have high similarity and insignificant difference, so that the prior art has the problems that the consistency of similar experimental curves respectively in multiple experimental curve pictures is difficult to detect and the detection result is easy to make mistakes. Therefore, providing a method capable of redrawing multiple curves to be detected in multiple pictures under the same pixel coordinate system and performing consistency detection on the multiple curves to be detected in the same pixel coordinate system is a technical problem to be solved.
Disclosure of Invention
The invention provides a curve consistency detection method, which solves the problems of high detection difficulty and easy error of detection results of directly detecting the consistency of similar experimental curves in a plurality of experimental curve pictures, and achieves the purposes of redrawing the obtained plurality of curves to be detected in the plurality of pictures under the same pixel coordinate system and carrying out consistency detection on the plurality of curves to be detected in the same pixel coordinate system.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme:
a method of curve consistency detection, comprising:
converting the plurality of curve images to be detected into a preset color space to obtain color space parameter values of each curve image to be detected;
extracting pixel coordinate information of curves in each curve image to be detected according to the color space parameter value of each curve image to be detected;
drawing a curve to be detected corresponding to the curve in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curve in each curve image to be detected;
and carrying out consistency detection on a plurality of groups of curves to be detected drawn in the pixel coordinate system to obtain a detection result.
In a preferred option of the embodiment of the present invention, in the above curve consistency detection method, the step of converting the plurality of curve images to be detected into a preset color space includes:
performing undistorted conversion on the plurality of curve images to be detected, and respectively storing the curve images to be detected after undistorted conversion into a preset picture format;
and respectively converting the plurality of curve images to be detected stored as the preset picture format into a preset color space.
In a preferred option of the embodiment of the present invention, in the above method for detecting curve consistency, the step of extracting pixel coordinate information of a curve in each curve image to be detected according to a color space parameter value of each curve image to be detected includes:
removing image content which does not contain a curve area to be detected in the curve image to be detected according to the color space parameter value of each curve image to be detected, extracting a mask of the curve in each curve image to be detected, and obtaining pixel coordinate information of the curve in the curve image to be detected according to the mask of the curve in the curve image to be detected.
In a preferred option of the embodiment of the present invention, in the above method for detecting curve consistency, the step of obtaining pixel coordinate information of the curve in the curve image to be detected according to the mask of the curve in the curve image to be detected includes:
and summarizing the pixel coordinates of the highest point of each column in the mask of the curve in the curve image to be detected to obtain the pixel coordinate information of the curve in the curve image to be detected.
In a preferred option of the embodiment of the present invention, in the above method for detecting curve consistency, the step of performing consistency detection on a plurality of groups of curves to be detected drawn in a pixel coordinate system to obtain a detection result includes:
performing difference calculation on the ordinate of all pixel points with the same abscissa in a plurality of groups of curves to be detected to obtain the ordinate difference values among a plurality of groups of pixel points with the same abscissa in the curves to be detected;
drawing a difference curve according to the longitudinal coordinate difference value;
determining whether a plurality of groups of curves to be detected are consistent according to the ordinate of the difference curve, wherein when all the ordinate of the difference curve is zero, the plurality of curves to be detected are consistent; and when the ordinate of the difference curve is not zero, the curves to be detected are inconsistent.
In a preferred option of the embodiment of the present invention, in the method for detecting curve consistency, after the step of detecting consistency for a plurality of groups of curves to be detected to obtain a detection result, the method further includes:
and establishing a mapping relation between a pixel coordinate system and a rectangular coordinate system, and converting a difference curve in the pixel coordinate system into the rectangular coordinate system according to the mapping relation to obtain a target difference curve so as to quantitatively judge the difference of the curve to be detected according to the target difference curve.
In a preferred option of the embodiment of the present invention, in the above curve consistency detection method, the step of converting the difference curve in the pixel coordinate system into the rectangular coordinate system according to the mapping relationship to obtain the target difference curve includes:
taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the rectangular coordinate system as a rectangular-abscissa difference value, and taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the pixel coordinate system as a pixel-abscissa difference value;
taking the ratio of the abscissa of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the pixel abscissa as the ratio of the abscissa of the target point of the difference curve in the rectangular coordinate system to the difference value of the rectangular abscissa, and calculating the abscissa of the target point in the rectangular coordinate system corresponding to the abscissa of each pixel point in the pixel coordinate system;
taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the rectangular coordinate system as a rectangular-ordinate difference value, and taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the pixel coordinate system as a pixel-ordinate difference value;
taking the ratio of the ordinate of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the pixel ordinate as the ratio of the ordinate of the target point of the difference curve in the rectangular coordinate system to the difference value of the rectangular coordinate, and calculating to obtain the ordinate of each pixel point of the difference curve in the pixel coordinate corresponding to the ordinate of the target point in the rectangular coordinate system;
and drawing a target difference curve in the rectangular coordinate system according to the horizontal coordinate and the vertical coordinate of each pixel point in the rectangular coordinate system.
In a preferred option of the embodiment of the present invention, in the above method for detecting curve consistency, before the step of converting the plurality of curve images to be detected into the preset color space, the method further includes:
and setting the region which contains the curve to be detected and the region which does not contain the curve to be detected in each curve image to be detected to different colors.
In a preferred option of the embodiment of the present invention, in the above method for detecting curve consistency, the preset color space includes an HSV color space.
The present invention also provides a storage medium storing a computer program executable by one or more processors for implementing the curve consistency detection method of any one of the above.
According to the curve consistency detection method and the storage medium, a plurality of curve images to be detected are converted into a preset color space to obtain color space parameter values of each curve image to be detected; extracting pixel coordinate information of curves in each curve image to be detected according to the color space parameter value of each curve image to be detected; drawing a curve to be detected corresponding to the curve in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curve in each curve image to be detected; the method comprises the steps of carrying out consistency detection on a plurality of groups of curves to be detected, which are drawn in a pixel coordinate system, so as to obtain detection results, thereby solving the problems that the detection difficulty is high and the detection results are easy to make mistakes when the consistency of similar experimental curves respectively in a plurality of experimental curve pictures is directly carried out, and realizing the purposes of redrawing the plurality of curves to be detected, which are respectively in a plurality of pictures, under the same pixel coordinate system and carrying out consistency detection on the plurality of curves to be detected under the same pixel coordinate system.
Drawings
The scope of the present disclosure will be better understood from the following detailed description of exemplary embodiments, read in conjunction with the accompanying drawings. The drawings included herein are:
FIG. 1 is a flowchart of a curve consistency detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for detecting curve consistency according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for detecting curve consistency according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Referring to fig. 1, an embodiment of the present invention provides a method for detecting curve consistency, which includes steps S110 to S140.
Step S110: and converting the plurality of curve images to be detected into a preset color space to obtain color space parameter values of each curve image to be detected.
It can be understood that the format of the plurality of pictures respectively containing the curve images to be detected may be a special format, and many picture processing software cannot directly process the pictures in the special format, so that the plurality of pictures in the special format need to be converted into the pictures in the preset general format; wherein the special format includes, but is not limited to: WMF format, pixar format, PCX format, and MPO format, including but not limited to: PNG format, JPG format, JPEG format, and GIF format.
Specifically, in the process of converting the picture in the special format into the picture in the general format, a distortion-free conversion mode should be adopted to retain as much information in the picture in the original special format as possible, for example, the process of converting the picture in the special format into the picture in the PDF format may be adopted, and then the picture in the PDF format is stored as a preset picture in the general format, where the picture in the PDF format is adopted as a transfer picture, so that the information in the picture in the special format can be ensured not to be distorted.
In this embodiment, the step of converting the plurality of curve images to be detected into the preset color space includes:
performing undistorted conversion on the plurality of curve images to be detected, and respectively storing the curve images to be detected after undistorted conversion into a preset picture format; and respectively converting the plurality of curve images to be detected stored as the preset picture format into a preset color space.
It will be appreciated that after a picture of a preset general format is obtained, the determined color space parameter values of the curve image to be detected contained in the picture can be obtained.
In this embodiment, the preset color space includes an HSV color space.
It is understood that color spaces include, but are not limited to: according to the features of the picture content of the embodiment, and the feature that the HSV color space is more visual compared with other color spaces, the preset color space in the embodiment is preferably the HSV color space.
In this embodiment, before step S110, the method further includes: and setting the region which contains the curve to be detected and the region which does not contain the curve to be detected in each curve image to be detected to different colors.
It can be understood that by setting the color of the curve image to be detected in each of the pictures to be different from the color of the other images except the curve image to be detected in the picture, the color space parameter values of the curve image to be detected in the picture can be clearly distinguished from the color space parameter values of the other images except the curve image to be detected in the picture after the picture is converted into the preset color space; it should be noted that, in the method for detecting curve consistency in this embodiment, consistency is detected on a target curve included in each of a plurality of pictures, so if more than one curve image is included in the picture, in order to extract the target curve, other curve images in the picture need to be shielded, and in this embodiment, the color of the target curve may be set to be different from the color of other curves in the picture where the target curve is located. It can be appreciated that, in this embodiment, the HSV color space is adopted, and the color of an image in the image can be adjusted by setting the parameter value of the hue of the image in the HSV color space, where red is 0, green is 60, and blue is 120, and the content of the image of the included curve image to be detected can be distinguished into the curve image to be detected and other images by adjusting the color of the image in the image.
Step S120: and extracting pixel coordinate information of curves in each curve image to be detected according to the color space parameter value of each curve image to be detected.
In this embodiment, the step S120 includes: and removing image contents excluding the to-be-detected curve area from the to-be-detected curve image according to the color space parameter value of each to-be-detected curve image so as to extract a mask of the curve in each to-be-detected curve image, and obtaining pixel coordinate information of the curve in the to-be-detected curve image according to the mask of the curve in the to-be-detected curve image.
It can be understood that, in addition to the tone parameter, the adjustable parameters of the HSV color space adopted in this embodiment further include a saturation parameter and a brightness parameter, after the tone parameter is set to set the color of the to-be-detected curve image in each picture to be different from the colors of the other images except for the to-be-detected curve image in the picture, the mask of the to-be-detected curve image included in each picture may be extracted by setting the saturation parameter and the brightness parameter and fine tuning the tone parameter, where the mask of the to-be-detected curve image is used to mask the other images in the picture so as to extract the to-be-detected curve image information.
In this embodiment, the step of obtaining the pixel coordinate information of the curve in the curve image to be detected according to the mask of the curve in the curve image to be detected includes: and summarizing the pixel coordinates of the highest point of each column in the mask of the curve in the curve image to be detected to obtain the pixel coordinate information of the curve in the curve image to be detected.
It may be understood that, in the embodiment, the picture in the preset format is composed of a plurality of pixel points, so in the pixel coordinate information of the to-be-detected curve image extracted through the mask, each pixel abscissa corresponds to a pixel ordinate composed of a plurality of pixel points, in order to ensure the accuracy of the subsequent curve consistency detection, a unique pixel point needs to be selected from the pixel ordinate composed of a plurality of pixel points, and the ordinate of the pixel point is taken as the pixel ordinate corresponding to the pixel abscissa, in the embodiment, the ordinate of the pixel point of each column of the highest point in the mask of the to-be-detected curve image is taken as the pixel ordinate corresponding to the abscissa of the pixel point, and it is to be noted that, in the pixel coordinate information of the to-be-detected curve image extracted through the mask of the to-be-detected curve image, the ordinate of the pixel point of each column of the lowest point may also be taken as the pixel ordinate corresponding to the abscissa of the pixel point.
Step S130: and drawing a curve to be detected corresponding to the curve in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curve in each curve image to be detected.
It can be understood that the pixel coordinate information of each image of the curve to be detected includes the pixel abscissa and the pixel ordinate of the pixel point in the curve to be detected, so that the curve to be detected corresponding to the image of the curve to be detected included in each image can be drawn in the pixel coordinate system according to the pixel abscissa and the pixel ordinate of all the pixel points in the curve to be detected.
Step S140: and carrying out consistency detection on a plurality of groups of curves to be detected drawn in the pixel coordinate system to obtain a detection result.
It can be understood that, in this embodiment, the multiple sets of curves to be detected refer to multiple curves to be detected.
Referring to fig. 2, in the present embodiment, step S140 includes steps S141 to S142.
Step S141: and performing difference calculation on the ordinate of all the pixel points with the same abscissa in the multiple groups of curves to be detected to obtain the ordinate difference values among the multiple groups of pixel points with the same abscissa in the curves to be detected.
It should be noted that, in this embodiment, performing difference calculation on the ordinate of the pixel points with the same abscissa in the multiple groups of curves to be detected means: and performing difference calculation on the ordinate of the pixel points with the same abscissa in any two curves to be detected in the plurality of groups of curves to be detected.
Step S142: and drawing a difference curve according to the longitudinal coordinate difference value.
It can be understood that the multiple groups of curves to be detected in the pixel coordinate system have the same abscissa, and the differences of the multiple groups of curves to be detected are mainly reflected in the differences of the ordinate corresponding to the same abscissa, so that the difference calculation is performed on the ordinate of all the pixel points with the same abscissa in the multiple groups of curves to be detected, the difference of the ordinate of each pixel point with the same abscissa in the multiple groups of curves to be detected can be obtained, the difference of the ordinate of each pixel point of the multiple groups of curves to be detected is used as the ordinate of the difference curve, and the abscissa of each pixel point of the multiple groups of curves to be detected is used as the abscissa of the difference curve, so that the multiple groups of difference curves corresponding to the curves to be detected can be drawn.
Step S143: and determining whether a plurality of groups of curves to be detected are consistent or not according to the ordinate of the difference curve.
When all the ordinate of the difference curve is zero, the curves to be detected are consistent; and when the ordinate of the difference curve is not zero, the curves to be detected are inconsistent.
It can be understood that when all the ordinate of the difference curve is zero, the ordinate of each pixel point representing that the plurality of curves to be detected have the same abscissa is the same, that is, the plurality of curves to be detected are completely consistent; when the ordinate of the difference curve is not all zero, the ordinate of the pixel points representing the plurality of curves to be detected with the same abscissa is not identical, and the ordinate is different, namely the plurality of curves to be detected are inconsistent.
In this embodiment, after step S140, the method further includes the steps of: and establishing a mapping relation between a pixel coordinate system and a rectangular coordinate system, and converting a difference curve in the pixel coordinate system into the rectangular coordinate system according to the mapping relation to obtain a target difference curve so as to quantitatively judge the difference of the curve to be detected according to the target difference curve.
It will be appreciated that in a pixel coordinate system, it is possible to detect whether the curves to be detected are identical, however, the units of the abscissa and the ordinate of the pixel coordinate system are pixels, and are different from the units of the abscissa and the ordinate of the curves to be detected in a rectangular coordinate system before being converted to the pixel coordinate system, wherein the units of the abscissa of the curves to be detected in the rectangular coordinate system include, but are not limited to: hertz, time, speed, and temperature, the ordinate units of the curve to be detected in the rectangular coordinate system include, but are not limited to: after detecting that the curves to be detected are inconsistent, the difference between the curves to be detected is quantitatively known, and the difference curve in the pixel coordinate system is converted into a rectangular coordinate system according to a preset mapping relation to obtain a target difference curve, and the target difference curve is analyzed to quantitatively judge the difference of the curves to be detected.
Specifically, referring to fig. 3, the steps include steps S151 to S155.
Step S151: and taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the rectangular coordinate system as a rectangular-abscissa difference value, and taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the pixel coordinate system as a pixel-abscissa difference value.
It will be appreciated that the start value of the abscissa in the coordinate system is usually set to zero, and the end value of the abscissa in the coordinate system may be set to a target value as required, however, on the abscissa axis, the start value of the difference curve may not be zero, and the end value of the difference curve may not reach the target value, so the start value of the abscissa and the end value of the abscissa in the rectangular coordinate system refer to: on the abscissa axis in the rectangular coordinate system, the start value of the difference curve and the end value of the difference curve correspond to each other, and the start value of the abscissa and the end value of the abscissa in the pixel coordinate system refer to: on the abscissa axis in the pixel coordinate system, a start value of the difference curve and an end value of the difference curve.
Step S152: and taking the ratio of the abscissa of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the abscissa of the pixel as the ratio of the abscissa of the target point of the difference curve in the rectangular coordinate system to the difference value of the abscissa of the rectangular coordinate system, and calculating the abscissa of the target point in the rectangular coordinate system corresponding to the abscissa of each pixel point of the difference curve in the pixel coordinate system.
Specifically, the ratio of the abscissa of the target point of the difference curve in the pixel coordinate system in step S152 to the difference value of the pixel abscissa is taken as the ratio of the pixel abscissa; taking the ratio of the abscissa of the target point of the difference curve in the rectangular coordinate system in the step S152 to the difference value of the rectangular coordinate as the rectangular coordinate ratio; the abscissa of the target point of the difference curve in the rectangular coordinate system is an unknown parameter, and the abscissa of the target point of the difference curve in the pixel coordinate system, the pixel abscissa difference value and the rectangular abscissa difference value are known parameters; adopting a mapping relation that the pixel abscissa ratio is equal to the rectangular abscissa ratio, and calculating to obtain the abscissa of the target point in the difference curve in the rectangular coordinate system; and calculating the abscissa in the rectangular coordinate system, which corresponds to the abscissa of each pixel point in the difference curve in the pixel coordinate system.
Step S153: and taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the rectangular coordinate system as a rectangular-ordinate difference value, and taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the pixel coordinate system as a pixel-ordinate difference value.
It is understood that the start value of the ordinate and the end value of the ordinate in the rectangular coordinate system refer to: on the ordinate axis in the rectangular coordinate system, the start value of the difference curve and the end value of the difference curve correspond to each other, and the start value of the ordinate and the end value of the ordinate in the pixel coordinate system refer to: on the ordinate axis in the pixel coordinate system, the start value of the difference curve and the end value of the difference curve.
Step S154: and taking the ratio of the ordinate of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the pixel ordinate as the ratio of the ordinate of the target point of the difference curve in the rectangular coordinate system to the difference value of the rectangular coordinate system, and calculating to obtain the ordinate of each pixel point of the difference curve in the pixel coordinate corresponding to the ordinate of the target point in the rectangular coordinate system.
It can be understood that, the ordinate of the target pixel point of the difference curve in the pixel coordinate system is obtained by performing difference calculation on a plurality of curves to be detected, so that the ordinate of the target pixel point may be zero, may be greater than zero, or may be less than zero; when the ordinate of the target pixel point is zero, directly assigning the ordinate of the target pixel point in the rectangular coordinate system to zero; when the ordinate of the target pixel point is not zero, taking the ratio of the ordinate of the target point of the difference curve in the pixel coordinate system to the difference value of the pixel ordinate as the ratio of the pixel ordinate; taking the ratio of the ordinate of the target point of the difference curve in the rectangular coordinate system to the rectangular ordinate of the difference value as the rectangular ordinate ratio, wherein the ordinate of the target point of the difference curve in the rectangular coordinate system is an unknown parameter, and the ordinate of the target point of the difference curve in the pixel coordinate system, the pixel ordinate difference value and the rectangular ordinate difference value are known parameters; adopting a mapping relation that the pixel ordinate ratio is equal to the rectangular ordinate ratio, and calculating to obtain the ordinate of the target point of the difference curve in the rectangular coordinate system; and calculating the ordinate of each pixel point of the difference curve in the pixel coordinate system in the rectangular coordinate system.
Step S155: and drawing a target difference curve in the rectangular coordinate system according to the horizontal coordinate and the vertical coordinate of each pixel point in the rectangular coordinate system.
It will be appreciated that, in any coordinate system, the graph corresponding to the abscissa and the ordinate can be drawn according to the determined abscissa and ordinate, and in this embodiment, the target difference curve corresponding to the abscissa and the ordinate can be drawn in a rectangular coordinate system according to the abscissa and the ordinate. According to the target difference curve, the difference of a plurality of curves to be detected under a preset unit can be quantitatively known.
The embodiment of the invention also provides a storage medium, which stores a computer program, and the computer program can be executed by one or more processors to realize the curve consistency detection method.
In summary, according to the curve consistency detection method and the storage medium, the color space parameter value of each curve image to be detected is obtained by converting a plurality of curve images to be detected into a preset color space; extracting pixel coordinate information of curves in each curve image to be detected according to the color space parameter value of each curve image to be detected; drawing a curve to be detected corresponding to the curve in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curve in each curve image to be detected; and consistency detection is carried out on a plurality of groups of curves to be detected drawn in the pixel coordinate system to obtain detection results, so that the problems that in the prior art, the consistency of similar experimental curves in a plurality of experimental curve pictures is high in detection difficulty and the detection results are easy to make mistakes can be solved. Further, the difference curve in the pixel coordinate system is converted into a rectangular coordinate system according to the mapping relation to obtain a target difference curve, and the target difference curve is analyzed, so that the difference of the curve to be detected can be obtained quantitatively, fine adjustment of parameters for generating the curve to be detected is facilitated for researchers, and an expected experimental effect is achieved.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Although the embodiments of the present invention are disclosed above, the embodiments are only used for the convenience of understanding the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is still subject to the scope of the present disclosure as defined by the appended claims.

Claims (6)

1. A curve consistency detection method is characterized in that,
converting the plurality of curve images to be detected into a preset color space to obtain color space parameter values of each curve image to be detected;
extracting pixel coordinate information of the curves in each curve image to be detected according to the color space parameter values of each curve image to be detected, and extracting pixel coordinate information of the curves in each curve image to be detected according to the color space parameter values of each curve image to be detected, wherein the step of extracting the pixel coordinate information of the curves in each curve image to be detected comprises the following steps: removing image content which does not contain a curve area to be detected in the curve image to be detected according to the color space parameter value of each curve image to be detected, extracting a mask of the curve in each curve image to be detected, and obtaining pixel coordinate information of the curve in the curve image to be detected according to the mask of the curve in the curve image to be detected;
drawing a curve to be detected corresponding to the curve in each curve image to be detected in a pixel coordinate system according to the pixel coordinate information of the curve in each curve image to be detected;
performing consistency detection on a plurality of groups of curves to be detected, which are drawn in a pixel coordinate system, to obtain a detection result, and performing consistency detection on a plurality of groups of curves to be detected, which are drawn in the pixel coordinate system, to obtain the detection result, wherein the step of obtaining the detection result comprises the following steps:
performing difference calculation on the ordinate of all pixel points with the same abscissa in a plurality of groups of curves to be detected to obtain the ordinate difference values among a plurality of groups of pixel points with the same abscissa in the curves to be detected; drawing a difference curve according to the longitudinal coordinate difference value; determining whether a plurality of groups of curves to be detected are consistent according to the ordinate of the difference curve, wherein when all the ordinate of the difference curve is zero, the plurality of curves to be detected are consistent; when the ordinate of the difference curve is not all zero, a plurality of curves to be detected are inconsistent; after the step of performing consistency detection on a plurality of groups of curves to be detected to obtain detection results, the method further comprises the following steps: the method for obtaining the target difference curve comprises the steps of: taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the rectangular coordinate system as a rectangular-abscissa difference value, and taking the difference value between the starting value of the abscissa and the ending value of the abscissa in the pixel coordinate system as a pixel-abscissa difference value; taking the ratio of the abscissa of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the pixel abscissa as the ratio of the abscissa of the target point of the difference curve in the rectangular coordinate system to the difference value of the rectangular abscissa, and calculating the abscissa of the target point in the rectangular coordinate system corresponding to the abscissa of each pixel point in the pixel coordinate system; taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the rectangular coordinate system as a rectangular-ordinate difference value, and taking the difference value between the starting value of the ordinate and the ending value of the ordinate in the pixel coordinate system as a pixel-ordinate difference value; taking the ratio of the ordinate of the target pixel point in the difference curve in the pixel coordinate system to the difference value of the pixel ordinate as the ratio of the ordinate of the target point of the difference curve in the rectangular coordinate system to the difference value of the rectangular coordinate, and calculating to obtain the ordinate of each pixel point of the difference curve in the pixel coordinate corresponding to the ordinate of the target point in the rectangular coordinate system; and drawing a target difference curve in the rectangular coordinate system according to the horizontal coordinate and the vertical coordinate of each pixel point in the rectangular coordinate system.
2. The curve consistency detection method according to claim 1, wherein the step of converting the plurality of curve images to be detected into a preset color space includes:
performing undistorted conversion on the plurality of curve images to be detected, and respectively storing the curve images to be detected after undistorted conversion into a preset picture format;
and respectively converting the plurality of curve images to be detected stored as the preset picture format into a preset color space.
3. The curve consistency detection method according to claim 1, wherein the step of obtaining pixel coordinate information of the curve in the curve image to be detected according to the mask of the curve in the curve image to be detected comprises:
and summarizing the pixel coordinates of the highest point of each column in the mask of the curve in the curve image to be detected to obtain the pixel coordinate information of the curve in the curve image to be detected.
4. The curve consistency detection method according to claim 1, wherein before the step of converting the plurality of curve images to be detected into the preset color space, the method further comprises:
and setting the region which contains the curve to be detected and the region which does not contain the curve to be detected in each curve image to be detected to different colors.
5. The curve consistency detection method according to claim 1, wherein the preset color space comprises an HSV color space.
6. A storage medium storing a computer program executable by one or more processors for implementing a curve consistency detection method as claimed in any one of claims 1 to 5.
CN201910951457.3A 2019-10-08 2019-10-08 Curve consistency detection method and storage medium Active CN110660096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910951457.3A CN110660096B (en) 2019-10-08 2019-10-08 Curve consistency detection method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910951457.3A CN110660096B (en) 2019-10-08 2019-10-08 Curve consistency detection method and storage medium

Publications (2)

Publication Number Publication Date
CN110660096A CN110660096A (en) 2020-01-07
CN110660096B true CN110660096B (en) 2023-05-23

Family

ID=69038643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910951457.3A Active CN110660096B (en) 2019-10-08 2019-10-08 Curve consistency detection method and storage medium

Country Status (1)

Country Link
CN (1) CN110660096B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049598B (en) * 2012-11-29 2015-08-05 北京航空航天大学 A kind of information extracting method of the electromagnetic compatibility test curve picture based on pixel coordinate strategy
CN104697476B (en) * 2015-03-19 2017-06-06 北京时代之峰科技有限公司 Roughness light cuts the automatic testing method and device of contour curve
CN108052950B (en) * 2017-12-08 2021-06-11 东北大学 MIA-based fused magnesia furnace dynamic flame segmentation and feature extraction method
CN109030391A (en) * 2018-08-09 2018-12-18 深圳市中金岭南有色金属股份有限公司 The measuring method of dissoluble lead, soluble Zn in Lead and Zinc bulk concentrates
CN109458980B (en) * 2018-11-06 2021-01-26 五邑大学 Antenna downward inclination angle measurement method based on linear regression fitting
CN110263390B (en) * 2019-05-24 2023-04-25 五邑大学 Antenna downward inclination angle automatic adjustment method and system based on unmanned aerial vehicle vision measurement

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
中国测绘学会."摄影测量与遥感".《中国测绘学科发展蓝皮书》.测绘出版社,2018, *
刘洁锋等著."进阶篇".《大洋非线性编辑实用教程 高级篇》.中国传媒大学出版社,2016, *
托马斯•林德布拉德等."人脸定位及识别".《图像处理与脉冲耦合神经网络 基于Python的实现 第3版》.国防工业出版社,2017, *

Also Published As

Publication number Publication date
CN110660096A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN107316047A (en) Image processing apparatus, image processing method and storage medium
CN108549836B (en) Photo copying detection method, device, equipment and readable storage medium
US9384519B1 (en) Finding similar images based on extracting keys from images
CN110598795A (en) Image difference detection method and device, storage medium and terminal
CN116030453A (en) Digital ammeter identification method, device and equipment
CN110660096B (en) Curve consistency detection method and storage medium
JP2008134791A (en) Image processor and image processing program
US8437545B1 (en) System and method for digital image signal compression using intrinsic images
CN116980549A (en) Video frame processing method, device, computer equipment and storage medium
JP2018018361A (en) Data processor and computer program
CN113095147A (en) Skin area detection method, system, image processing terminal and storage medium
KR102097189B1 (en) Pallet-based Image Recoloring Method and Apparatus
JP6132996B1 (en) Image processing apparatus, image processing method, and image processing program
JPH06251147A (en) Video feature processing method
KR101643550B1 (en) System and method for detecting and describing color invariant features using fast explicit diffusion in nonlinear scale spaces
KR20120128539A (en) Methdo and apparatus for photorealistic enhancing of computer graphic image
CN116523803B (en) Image processing method, shadow removing device, apparatus, and storage medium
CN113760686B (en) User interface testing method, device, terminal and storage medium
US11157767B2 (en) Image searching method based on feature extraction
KR100911059B1 (en) System and method for generating thumnail images
JP7106318B2 (en) Image processing device, image processing method and program
JP2005130000A (en) Image processing apparatus
JP2021036456A (en) Image processing system, image processing method and program
Saputra et al. Local pixel analysis in color constancy to improve feature extraction process
JP2013070161A (en) Image processor and control method thereof

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