Disclosure of Invention
The embodiment of the application at least partially solves the technical problems of aging drift and manual standard sample replacement in color difference detection in the prior art by providing the method, the system, the equipment and the medium for measuring the online color difference without the standard sample, and realizes the technical effect that accurate color difference data measurement can be still carried out without manually installing and replacing the standard sample on the online color difference meter system.
In order to solve the above technical problems, the embodiment of the present invention provides the following technical solutions:
A method for measuring online chromatic aberration without a standard sample comprises the following steps:
Step S101, continuously performing online measurement on an object to be measured by using a first color difference detection device;
step S102, detecting a detected sample selected on the object to be detected by using a second color difference detection device, and calculating the difference value of the color indexes of the detected sample and the standard sample;
step S103, calculating virtual standard sample data according to the measured value of the measured sample and the difference value;
step S104, inputting the virtual standard sample data into first color difference detection equipment for calibration, and continuing on-line color difference measurement.
Optionally, after and participating in the subsequent online color difference measurement, the method further comprises:
step S105, presetting a calibration period, and recording a time point when the previous calibration is finished;
Step S106, repeating steps S102 to S104 when the detection time of the first color difference detection device reaches the calibration period.
Optionally, the step S101 further includes:
continuously acquiring data of an object to be detected by using a first color difference detection device;
Based on the CIELab color space model, brightness index, chromaticity index, identity information and position information corresponding to each measuring point are recorded.
Optionally, the step of detecting the detected sample selected on the detected object by using the second color difference detection device includes:
And selecting a detected sample on the object to be detected at regular intervals, recording corresponding position information, and detecting and subsequently calculating by using a second color difference detection device.
Optionally, the step of calculating the difference between the color indexes of the measured sample and the standard sample includes:
and respectively carrying out difference to the brightness index, the red-green index and the yellow-blue index of the tested sample and the standard sample to obtain corresponding brightness difference values, red-green index difference values and yellow-blue index difference values.
Optionally, the step S103 further includes:
taking brightness indexes, red-green index and yellow-blue index of a plurality of samples to be tested;
and calculating virtual standard sample data by using a reverse push method according to the corresponding brightness difference value, the red-green chromaticity difference value and the yellow-blue chromaticity difference value.
Optionally, after calculating the virtual standard sample data by using the back-off method, the method further includes:
and presetting an error range, removing the virtual standard sample data which do not accord with the error range, and averaging the virtual standard sample data which accord with the error range to obtain final virtual standard sample data.
In a second aspect, there is provided a standard-free online color difference measurement system, the system comprising:
the color difference data acquisition module is used for continuously carrying out online measurement on the object to be measured by utilizing the first color difference detection device;
The difference value calculating module is used for detecting the detected sample selected on the object to be detected by using a second color difference detecting device and calculating the difference value of the color indexes of the detected sample and the standard sample;
The virtual standard sample calculation module calculates virtual standard sample data according to the measured value of the measured sample and the difference value;
and the calibration module inputs the virtual standard sample data into first color difference detection equipment for calibration, and continuously performs online color difference measurement.
In a third aspect, an electronic device is provided, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements steps corresponding to the method of the first aspect when the processor executes the computer program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs steps corresponding to the method of the first aspect.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
The invention adopts the continuous test of the object to be tested and periodically collects the detection points meeting the requirements as the tested sample, and utilizes the second color difference detection device to perform difference calculation on the brightness index, the red-green index and the yellow-blue index of the tested sample and the data corresponding to the initial physical standard sample respectively, thereby obtaining the difference value corresponding to each index. When the subsequent color difference detection equipment performs calibration, the difference value is read by a reverse push method, and the difference value is calculated by the corresponding measured sample data and the difference value, so that the data of the virtual standard sample is obtained, and then the data is used as the algorithm of the standard sample value color difference detection equipment of the first color difference detection device 1 to perform online color difference measurement. Therefore, the method can accurately measure the color difference data without manually installing and replacing the standard sample of the online color difference meter system.
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 some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
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 refer to 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.
In the description of the present invention, it should also be noted that, unless explicitly specified and limited otherwise, the term "mounted" shall be construed broadly, and for example, it may be fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, directly connected, indirectly connected through an intermediate medium, or communicating between the two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solutions of the present application, and not limited to the technical solutions of the present application, and the embodiments of the present application and the technical features in the embodiments may be combined with each other without conflict.
The embodiment of the application improves the technical problems of aging drift and manual standard sample replacement in the prior art by providing the method, the system, the equipment and the medium for measuring the online color difference without the standard sample, and realizes the technical effect that accurate color difference data measurement can be still carried out without manually installing and replacing the standard sample of the online color difference meter system.
The technical scheme of the embodiment of the application aims to solve the technical problems, and the overall thought is as follows:
The invention adopts the continuous test of the object 5 to be tested (i.e. the product produced on line) and periodically collects the detection points meeting the requirements as the tested sample, and utilizes the second color difference detection device 2 to perform the difference between the brightness index, the red-green index and the yellow-blue index of the tested sample and the data corresponding to the initial physical standard sample, thereby obtaining the difference value corresponding to each index. When the subsequent color difference detection equipment performs calibration, the difference value is read by a reverse-push method, and the difference value is calculated by the corresponding measured sample data and the difference value, so that the data of the virtual table sample is obtained, and then the data is used as an algorithm of the standard sample value color difference detection equipment of the first color difference detection device 1 to perform online color difference measurement. Therefore, the method can accurately measure the color difference data without manually installing and replacing the standard sample of the online color difference meter system.
In the embodiment of the application, a method for measuring online chromatic aberration without a standard sample is provided as shown in fig. 1, and the method comprises the following steps of S101 to S103:
Step S101, continuously performing online measurement on the object 5 to be measured by using the first color difference detection device 1;
The sample is irradiated by an LED light source, and a detector in the color difference detection device receives reflected light of the sample. The reflected light is collected by a lens within the instrument and directed to a diffraction grating which splits the received reflected light into light of each component wavelength, which is measured by a silicon diode matrix and converted into the desired color data. When the object 5 to be detected (i.e., the dyed coil) is detected, the working state is a manner of continuously moving in a certain direction on the horizontal plane. Therefore, the object 5 to be measured is detected, and in this embodiment, color difference data is obtained by downward direction right above the object 5 to be measured, and online measurement is continuously performed. Wherein the first color difference detection device 1 is an online color difference meter, and the second color difference detection device 2 is a desk-top color difference meter.
Step S102, detecting the detected sample selected on the detected object 5 by using a second color difference detection device 2, and calculating the difference value of the color indexes of the detected sample and the standard sample;
The basic principle of color difference detection is to detect the color difference of an object by comparing color data between a standard sample and a detected sample. In the detection process, the second color difference detection device 2 which is not arranged on the production line is utilized for data test, so that the on-line color difference meter system is not required to be manually installed and replaced, and the normal operation of the production line is not interfered. And selecting a point to be detected without defects in the product produced on line as a detected sample to detect, calculating the color difference of the detected sample, namely calculating the difference value of the color indexes of the detected sample and the standard sample, and recording the position of the detected sample.
Step S103, calculating virtual standard sample data according to the measured value of the measured sample and the difference value;
The step mainly uses a back-push method to acquire the data of the standard sample, for example, the original formula adopts the measured value of the measured sample to subtract the standard sample to obtain a difference value, and the difference value is subtracted from the measured value of the measured sample to obtain the virtual standard sample.
Step S104, inputting the virtual standard sample data into first color difference detection equipment for calibration, and continuing on-line color difference measurement.
The virtual standard sample data converted by the second color difference detection equipment is directly used as detection data of the standard sample to be sent to the first color difference detection equipment, so that the first color difference detection equipment continuously performs online test without using multiple calibrations of the standard sample, and the production efficiency is improved.
It should be noted that, as shown in fig. 3, a scenario for applying the online color difference measurement method without a standard sample is provided for this embodiment, where the support frame 6 carries the first color difference detection device 1 and detects the moving object 5 (i.e., the coiled material) to be measured downward, where the arrow is the moving direction, and the control cabinet 4 controls the first color difference detection device 1 and is used as a data processing medium to connect the second color difference detection device 2 through the communication optical fiber 3, so as to complete data intercommunication of the two color difference detection devices.
Further, after and in participation in the subsequent online color difference measurement, the method further comprises:
step S105, presetting a calibration period, and recording a time point when the previous calibration is finished;
Step S106, repeating steps S102 to S104 when the detection time of the first color difference detecting device 1 reaches the calibration period.
It should be noted that, for the essence of the calibration period, the purpose is to implement calibration automation, and at the same time, to accomplish a higher degree of automatic no-standard-sample chromatic aberration measurement at the calibration. And setting a calibration period, and determining based on historical data or experimental data to count the time length of the aging drift of the color difference detection device in the production process. I.e. the control program is arranged to repeat steps S102 to S104 for calibration when the measurement time of the first color difference detecting means 1 meets the period, indicating that the first color difference meter is about to drift over time.
It should be further noted that, because different coiled materials or different production workshops have different production line environments in the production process, specific values of the calibration period can be adjusted according to user requirements and aging drift conditions in corresponding environments.
Further, the step S101 further includes:
Continuously acquiring data of an object 5 to be detected by using the first color difference detection device 1;
Based on the CIELab color space model, brightness index, chromaticity index, identity information and position information corresponding to each measuring point are recorded.
It should be noted that, for the calculation of the color difference, a color space model is generally used for quantization, which mainly includes RGB, CMYK, CIELab and other color space models, and the present embodiment preferably includes the CIELab color space model, and is described by taking it as an example. Wherein the identity information is the roll number of the roll.
It should be further noted that the CIELab color space model defines the CIE color space using a brightness index L (luminance axis), a chromaticity index a (red-green axis), and a chromaticity index b (Huang Lanzhou), wherein the brightness index L represents black and white, 0 is black, 100 is white, and (0, 100) is gray. In the chromaticity index a (red-green axis), positive values are red and negative values are green. In the chromaticity index b (Huang Lanzhou), positive values are yellow and negative values are blue.
Further, the detecting step is performed on the detected sample selected on the detected object 5 by using the second color difference detecting device 2, and the method further includes:
and selecting a detected sample and recording corresponding position information on the object to be detected 5 periodically, and detecting and subsequently calculating by using the second color difference detection device 2.
The periodic acquisition of the samples is to continuously calculate the subsequent virtual standard sample data, and the recording of the position information may directly perform the physical position searching. The specific positioning mode is that the moving direction of the coiled material is fixed, so the moving length of the coiled material is used for position recording as the longitudinal position.
Further, the step of calculating the difference between the color indexes of the measured sample and the standard sample includes:
and respectively carrying out difference to the brightness index, the red-green index and the yellow-blue index of the tested sample and the standard sample to obtain corresponding brightness difference values, red-green index difference values and yellow-blue index difference values.
The specific calculation is as follows:
Defining the brightness index of the sample to be measured as L, the red-green index as a, the yellow-blue index as b, the volume number as K and the corresponding longitudinal position value as s, and defining the brightness index of the standard sample as The red-green index isYellow Lan Sepin index of。
Wherein the method comprises the steps of、、The brightness index, the red-green index and the yellow-blue index are respectively corresponding differences.Is the total color difference, i.e. the average color difference.
Further, the step S103 further includes:
taking brightness indexes, red-green index and yellow-blue index of a plurality of samples to be tested;
and calculating virtual standard sample data by using a reverse push method according to the corresponding brightness difference value, the red-green chromaticity difference value and the yellow-blue chromaticity difference value.
The backward calculation method is the backward calculation, and the calculation process is as follows:
Definition of the lightness index of a virtual standard as The red-green index isYellow Lan Sepin index of;
To be virtually standard、、And carrying out calibration by taking the first color difference detection device in, and continuing to perform online color difference measurement.
Further, after calculating the virtual standard sample data by using the back-off method, the method further comprises:
and presetting an error range, removing the virtual standard sample data which do not accord with the error range, and averaging the virtual standard sample data which accord with the error range to obtain final virtual standard sample data.
It should be noted that, because the environmental environment in the production workshop is worse, external factor interference, such as dust, is likely to appear when the measurement of the sample is performed, so that an error range is set, the data with chromatic aberration exceeding the range is removed, the occurrence of error data is avoided, and in addition, the accuracy of the standard sample is improved by adopting an averaging value method.
Based on the same inventive concept, the embodiment of the application provides a standard-sample-free online color difference measurement system, as shown in fig. 4, comprising:
the color difference data acquisition module 201 continuously performs online measurement on the object 5 to be measured by using the first color difference detection device 1;
the difference calculating module 202 is used for detecting the detected sample selected on the detected object 5 by using the second color difference detecting device 2 and calculating the difference between the color indexes of the detected sample and the standard sample;
A virtual standard sample calculation module 203 for calculating virtual standard sample data based on the measured value of the sample to be measured and the difference value;
the calibration module 204 inputs the virtual standard sample data into the first color difference detection device for calibration, and continues on-line color difference measurement.
Based on the same inventive concept, as shown in fig. 5, the present embodiment provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, a standard-free online color difference measurement method is implemented.
Based on the same inventive concept, the present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a non-standard on-line color difference measurement method.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In summary, the invention provides a method, a system, a device and a medium for measuring online color difference without standard samples, which adopt continuous test of an object to be measured and periodically collect detection points meeting requirements as a sample to be measured, and utilize a second color difference detection device to perform difference between brightness indexes, red-green index and yellow-blue index of the sample to be measured and data corresponding to initial real standard samples respectively, so as to obtain difference values corresponding to the indexes. When the subsequent color difference detection equipment performs calibration, the difference value is read by a reverse-push method, and the difference value is calculated by the corresponding measured sample data and the difference value, so that the data of the virtual table sample is obtained, and then the data is used as an algorithm of the standard sample value color difference detection equipment of the first color difference detection device 1 to perform online color difference measurement. Therefore, the method can accurately measure the color difference data without manually installing and replacing the standard sample of the online color difference meter system. Meanwhile, a mode of calculating average values of a plurality of data and a mode of calibrating at fixed time are adopted, so that the detection precision is further ensured.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.