A Python-based LED spectrometer calibration method, system and platform
Through the Python-based LED spectrometer calibration method and system, the calibration process is automated, which solves the problems of tedious calibration operations and poor data traceability of traditional LED spectrometers, and improves production efficiency and data recording accuracy.
Patent Information
- Application Number
- CN202210237356.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The calibration operation of traditional LED spectrometer is cumbersome, resulting in low production efficiency, poor data traceability, and high risk of worker input errors.
Using a Python-based LED spectrometer calibration method and system, the calibration process is automated by obtaining original image positioning parameters, generating machine difference coefficients and configuration files, reducing manual operations, and recording calibration data for easy traceability.
It effectively reduces the steps of manually modifying parameters, reduces the risk of errors, improves production efficiency and data traceability, and simplifies the operating process for workers.
Smart Images

Figure CN114723789B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of spectrometer calibration, and in particular relates to a Python-based LED spectrometer calibration method, system and platform. Background Art
[0002] With the development of Industry 4.0 smart factories, equipment in production workshops needs to be produced intelligently one after another. At present, the calibration of LED spectrometers is done by manually inputting calibration coefficients and setting parameters. Workers often make input errors during operation, which will cause the risk of defective products flowing out. In addition, the efficiency of analyzing data and tracing the source is low. In other words, the calibration operation process of traditional LED spectrometers is cumbersome and the workload of staff is heavy, which leads to low production efficiency and low traceability of data.
[0003] Therefore, in view of the cumbersome calibration operation process of the above traditional LED spectrometers, the heavy workload of the staff, which leads to low production efficiency, and the technical defects of low data traceability, it is urgent to design and develop a Python-based LED spectrometer calibration method, system and platform. Summary of the invention
[0004] The first object of the present invention is to provide a Python-based LED spectrometer calibration method;
[0005] The second object of the present invention is to provide a Python-based LED spectrometer calibration system;
[0006] The third object of the present invention is to provide a Python-based LED spectrometer calibration platform;
[0007] The first object of the present invention is achieved in this way: the method specifically comprises the following steps:
[0008] Acquire original image positioning parameters, and generate a first original configuration file in real time according to the original configuration file data;
[0009] In combination with the first original configuration file and the test standard part data, a machine error coefficient is generated in real time;
[0010] Generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient;
[0011] A second configuration file is generated in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0012] Furthermore, the standard parts are specifically products tested on the standard machine;
[0013] The step of obtaining the original image positioning parameters and generating the first original configuration file in real time according to the original configuration file data also includes the following steps:
[0014] Obtain the work order number data information and generate the original image positioning parameters.
[0015] Furthermore, the step of obtaining the original image positioning parameters and generating the first original configuration file in real time according to the original configuration file data further includes the following steps:
[0016] Determine whether the work order number data and the configuration template data match. If they match, execute the next step, otherwise return to the previous step.
[0017] Furthermore, the first original configuration file is specifically a configuration file for modifying image positioning parameters, voltage, and current; the first original configuration file is specifically a configuration file without a computer difference coefficient.
[0018] Furthermore, the step of combining the first original configuration file and the test standard part data to generate the machine error coefficient in real time also includes the following steps:
[0019] Obtain standard parts data and calculate in real time the machine difference between the standard parts data tested by the spectrometer and the standard parts data tested by the standard machine.
[0020] Furthermore, the step of acquiring the standard component data and calculating in real time the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine also includes the following steps:
[0021] Calibration work order number data and configuration template data;
[0022] Determine whether the standard coefficient in the standard parts data is qualified. If qualified, execute the next step, otherwise return to the previous step.
[0023] Furthermore, the second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter;
[0024] The step of generating a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data also includes the following steps:
[0025] Obtain organic difference coefficient configuration files, test standard parts data and standard parts data;
[0026] Determine whether the difference between the standard part data tested by the spectrometer and the standard part data tested by the standard machine is within the standard threshold range. If so, execute the next step, otherwise return to the previous step.
[0027] The second object of the present invention is achieved in that the system specifically comprises:
[0028] A first generating unit, used for acquiring original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0029] A second generating unit, used to generate machine error coefficients in real time by combining the first original configuration file and the test standard part data;
[0030] A third generating unit is used to generate a configuration file containing an organic difference coefficient in real time according to the organic difference coefficient;
[0031] The fourth generating unit is used to generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0032] Furthermore, the standard part is specifically a product tested by the standard machine; the first original configuration file is specifically a configuration file for modifying image positioning parameters, voltage, and current; the first original configuration file is specifically a configuration file without a computer difference coefficient; the second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter;
[0033] The system is also provided with:
[0034] The first generation module is used to obtain the work order number data information and generate the original image positioning parameters;
[0035] The first generating unit is also provided with:
[0036] The first determination module is used to determine whether the work order number data and the configuration template data are consistent;
[0037] The second generating unit is further provided with:
[0038] A calculation and processing module is used to obtain standard component data and calculate in real time the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine;
[0039] Calibration module, used to calibrate work order number data and configuration template data;
[0040] The second determination module is used to determine whether the standard coefficient in the standard part data is qualified;
[0041] The fourth generating unit is further provided with:
[0042] An acquisition module, used for acquiring an organic difference coefficient configuration file, test standard parts data and standard parts data;
[0043] The third determination module is used to determine whether the difference between the data of the standard part tested by the spectrometer and the data of the standard part tested by the standard machine is within a standard threshold range.
[0044] The third object of the present invention is achieved by: comprising: a processor, a memory and a Python-based LED spectrometer calibration platform control program;
[0045] The processor executes the Python-based LED spectrometer calibration platform control program, the Python-based LED spectrometer calibration platform control program is stored in the memory, and the Python-based LED spectrometer calibration platform control program implements the Python-based LED spectrometer calibration method steps.
[0046] The present invention obtains original image positioning parameters through a method, and generates a first original configuration file in real time according to the original configuration file data; generates an organic difference coefficient in real time by combining the first original configuration file and the test standard parts data; generates a configuration file containing an organic difference coefficient in real time according to the organic difference coefficient; generates a second configuration file in real time according to the organic difference coefficient configuration file, the test standard parts data and the standard parts data, and the system and platform corresponding to the method can realize that all parameters that need to be modified are included in the configuration file modified by the calibration system, thereby reducing the steps of manually modifying parameters, effectively preventing quality accidents caused by inputting wrong parameters, reducing the workload of staff, and effectively recording each calibration data and configuration file through the calibration system, so as to effectively analyze data and trace the source.
[0047] That is to say, the solution of the present invention can eliminate the step of manually inputting parameters, simplify the operation requirements for workers, improve production efficiency, and increase the preservation of historical calibration coefficients and files through the calibration system to improve the traceability of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 This is a schematic diagram of a Python-based LED spectrometer calibration method flow chart of the present invention;
[0050] Figure 2 This is a schematic flow chart of a specific embodiment of a Python-based LED spectrometer calibration method of the present invention;
[0051] Figure 3 This is a schematic diagram of the architecture of a Python-based LED spectrometer calibration system of the present invention;
[0052] Figure 4 This is a schematic diagram of the architecture of a Python-based LED spectrometer calibration platform of the present invention;
[0053] Figure 5 A schematic diagram of a computer-readable storage medium architecture in an embodiment of the present invention;
[0054] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0055] In order to better understand the purpose, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0056] The present invention may also be implemented or applied through other different specific examples, and the details in this specification may also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. Secondly, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0059] Preferably, the LED spectrometer calibration method based on Python of the present invention is applied in one or more terminals or servers. The terminal is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0060] The terminal can be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal can interact with the client through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.
[0061] The present invention is to realize a Python-based LED spectrometer calibration method, system, platform and storage medium.
[0062] like Figure 1 , which is a flow chart of a Python-based LED spectrometer calibration method provided in an embodiment of the present invention.
[0063] In this embodiment, the Python-based LED spectrometer calibration method can be applied to a terminal with a display function or a fixed terminal. The terminal is not limited to a personal computer, a smart phone, a tablet computer, a desktop computer or an all-in-one computer equipped with a camera, etc.
[0064] The LED spectrometer calibration method based on Python can also be applied to a hardware environment consisting of a terminal and a server connected to the terminal through a network. The network includes but is not limited to: a wide area network, a metropolitan area network or a local area network. The LED spectrometer calibration method based on Python in the embodiment of the present invention can be executed by a server, or by a terminal, or by both a server and a terminal.
[0065] For example, for a terminal that needs to perform Python-based LED spectrometer calibration, the Python-based LED spectrometer calibration function provided by the method of the present invention can be directly integrated on the terminal, or a client for implementing the method of the present invention can be installed. For another example, the method provided by the present invention can also be run on a server or other device in the form of a software development kit (SDK), and an interface for the Python-based LED spectrometer calibration function is provided in the form of SDK. The terminal or other device can implement the Python-based LED spectrometer calibration function through the provided interface.
[0066] The present invention will be further described below in conjunction with the accompanying drawings.
[0067] like Figure 1-2 As shown, the present invention provides a Python-based LED spectrometer calibration method, and the method specifically includes the following steps:
[0068] S1, obtaining original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0069] S2, combining the first original configuration file and the test standard part data, generating a machine error coefficient in real time;
[0070] S3, generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient;
[0071] S4. Generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0072] The standard parts are specifically products tested on the standard machine;
[0073] The step of obtaining the original image positioning parameters and generating the first original configuration file in real time according to the original configuration file data also includes the following steps:
[0074] S01. Obtain work order number data information and generate original image positioning parameters.
[0075] The step of obtaining the original image positioning parameters and generating the first original configuration file in real time according to the original configuration file data also includes the following steps:
[0076] S11. Determine whether the work order number data and the configuration template data are consistent. If they are consistent, execute the next step, otherwise return to the previous step.
[0077] The first original configuration file is specifically a configuration file for modifying image positioning parameters, voltage, and current; the first original configuration file is specifically a configuration file without a computer difference coefficient.
[0078] The step of combining the first original configuration file and the test standard part data to generate the machine error coefficient in real time also includes the following steps:
[0079] S21, obtaining standard component data, and calculating in real time the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine.
[0080] The step of acquiring the standard component data and calculating the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine in real time also includes the following steps:
[0081] S211, calibration work order number data and configuration template data;
[0082] S212, determine whether the standard coefficient in the standard part data is qualified, if qualified, execute the next step, otherwise return to the previous step.
[0083] The second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter;
[0084] The step of generating a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data also includes the following steps:
[0085] S41, obtaining an organic difference coefficient configuration file, test standard parts data, and standard parts data;
[0086] S42, determining whether the difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine is within the standard threshold range, if so, executing the next step, otherwise returning to the previous step.
[0087] Specifically, in the embodiment of the present invention, this solution is implemented according to the following technical solutions:
[0088] Step 1: Upload the original configuration file to export the image positioning parameters, and then import the parameters into the specified original configuration file;
[0089] Step 2: According to the input work order number, the specified original configuration file imports the corresponding setting parameters and downloads the generated configuration file;
[0090] Step 3: Import the spectrometer to generate the configuration file, test the standard parts data, and upload the standard parts data;
[0091] Step 4: Calculate the machine error between the standard parts data tested by the spectrometer and the standard parts data tested by the standard machine, generate the machine error coefficient, and download the generated machine error coefficient configuration file
[0092] Step 5: The spectrometer imports the organic difference coefficient configuration file, tests the standard parts data, and uploads the standard parts data;
[0093] Step 6: Determine whether the difference between the standard parts test data of the spectrometer and the standard parts test data of the standard machine is within the range, and import the card control spectrometer standard according to the work order number.
[0094] Step 7: Download the final configuration file;
[0095] The beneficial effect of the present invention is that all parameters that need to be modified are in the configuration file modified by the calibration system, which reduces the steps of manually modifying parameters, effectively prevents quality accidents caused by inputting wrong parameters, and reduces the workload of staff. The calibration system effectively records each calibration data and configuration file, and can effectively analyze data and trace back.
[0096] That is to say, Figure 2 As shown, this embodiment provides a spectrometer calibration method based on Python, comprising the following steps:
[0097] B1: Enter the work order number, upload the original configuration file and export the image positioning parameters.
[0098] Specifically, the work order number includes setting parameters and card control standards that can be used to obtain the product. The uploaded original configuration file reads the image positioning parameters, which are used by the spectrometer to locate the product grabbing position.
[0099] B2: According to the input work order number, the specified original configuration file imports the corresponding setting parameters, and the parameters import the specified original configuration file;
[0100] Specifically, the configuration file queries voltage and current parameters through the work order number, and modifies the original configuration file according to the parameters.
[0101] B3: Download and generate configuration files;
[0102] Specifically, the configuration file generated by downloading is a configuration file for modifying image positioning parameters and voltage and current
[0103] B4: Import the spectrometer to generate configuration files, test standard parts data, and upload standard parts data;
[0104] Specifically, the imported configuration file is a configuration file without computer difference coefficients, and the standard parts are products tested by the standard machine. The spectrometer tests the standard parts data without adding machine difference coefficients, and the standard parts data is uploaded through a Web page constructed by Python Flask.
[0105] B5: Calculate the machine difference between the standard parts data tested by the spectrometer and the standard parts data tested by the standard machine, and generate the machine difference coefficient. Specifically, the standard parts data tested by the spectrometer is queried by the work order number corresponding to the original standard parts data, and the difference between the two is calculated. The machine difference coefficient is the difference between the standard parts data tested by the spectrometer and the standard parts data tested by the standard machine.
[0106] B6: Download and generate the organic difference coefficient configuration file
[0107] Specifically, the generating of the organic difference coefficient configuration file is to modify the configuration file to increase the calibration coefficient;
[0108] B7: The spectrometer imports the organic difference coefficient configuration file, tests the standard parts data, and uploads the standard parts data;
[0109] Specifically, the imported organic difference coefficient configuration file is a configuration file of computer difference coefficients, the spectrometer tests the standard part data with the addition of the machine difference coefficients, and the standard part data is uploaded via a Web page constructed by Python Flask.
[0110] B8: Determine whether the difference between the standard parts test data of the spectrometer and the standard parts test data of the standard machine is within the range, and import the card control spectrometer standard according to the work order number.
[0111] Specifically, the spectrometer test standard parts data is the standard parts test data after adding the machine difference coefficient. The standard parts test data is compared with the standard parts test data of the standard machine to determine whether it meets the machine difference range. If it fails, the calibration system will report an error prompt. If it passes, the configuration file will increase the client difference coefficient in the original calibration coefficient, and modify the card control spectrometer standard queried according to the work order number.
[0112] B9: Download the final configuration file;
[0113] Specifically, the final configuration file is a configuration file that modifies and adds calibration coefficients and card control parameters.
[0114] To achieve the above purpose, the present invention also provides a Python-based LED spectrometer calibration system, such as Figure 3 As shown, the system specifically includes:
[0115] A first generating unit, used for acquiring original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0116] A second generating unit, used to generate machine error coefficients in real time by combining the first original configuration file and the test standard part data;
[0117] A third generating unit is used to generate a configuration file containing an organic difference coefficient in real time according to the organic difference coefficient;
[0118] The fourth generating unit is used to generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0119] The standard part is specifically a product tested by the standard machine; the first original configuration file is specifically a configuration file for modifying image positioning parameters, voltage, and current; the first original configuration file is specifically a configuration file without a computer difference coefficient; the second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter;
[0120] The system is also provided with:
[0121] The first generation module is used to obtain the work order number data information and generate the original image positioning parameters;
[0122] The first generating unit is also provided with:
[0123] The first generating unit is also provided with:
[0124] The first determination module is used to determine whether the work order number data and the configuration template data are consistent;
[0125] The second generating unit is further provided with:
[0126] A calculation and processing module is used to obtain standard component data and calculate in real time the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine;
[0127] Calibration module, used to calibrate work order number data and configuration template data;
[0128] The second determination module is used to determine whether the standard coefficient in the standard part data is qualified;
[0129] The fourth generating unit is further provided with:
[0130] An acquisition module, used for acquiring an organic difference coefficient configuration file, test standard parts data and standard parts data;
[0131] The third determination module is used to determine whether the difference between the data of the standard part tested by the spectrometer and the data of the standard part tested by the standard machine is within a standard threshold range.
[0132] In the system solution embodiment of the present invention, the method steps involved in the Python-based LED spectrometer calibration have been described above in detail and will not be repeated here.
[0133] To achieve the above objectives, the present invention also provides a Python-based LED spectrometer calibration platform, such as Figure 4 As shown, it includes: a processor, a memory and a control program of the LED spectrometer calibration platform based on Python;
[0134] The processor executes the Python-based LED spectrometer calibration platform control program, the Python-based LED spectrometer calibration platform control program is stored in the memory, and the Python-based LED spectrometer calibration platform control program implements the steps of the Python-based LED spectrometer calibration method, for example:
[0135] S1, obtaining original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0136] S2, combining the first original configuration file and the test standard part data, generating a machine error coefficient in real time;
[0137] S3, generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient;
[0138] S4. Generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0139] The specific details of the steps have been explained above and will not be repeated here.
[0140] In the embodiment of the present invention, the built-in processor of the Python-based LED spectrometer calibration platform can be composed of integrated circuits, such as a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor uses various interfaces and lines to connect various components, and executes or executes programs or units stored in the memory, and calls data stored in the memory to perform various functions of the Python-based LED spectrometer calibration and process data;
[0141] The memory is used to store program codes and various data. It is installed in the Python-based LED spectrometer calibration platform and can realize high-speed and automatic access to programs or data during operation.
[0142] The memory includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electronically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0143] To achieve the above object, the present invention also provides a computer readable storage medium, such as Figure 5 As shown, the computer-readable storage medium stores a Python-based LED spectrometer calibration platform control program, and the Python-based LED spectrometer calibration platform control program implements the steps of the Python-based LED spectrometer calibration method, for example:
[0144] S1, obtaining original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0145] S2, combining the first original configuration file and the test standard part data, generating a machine error coefficient in real time;
[0146] S3, generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient;
[0147] S4. Generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0148] The specific details of the steps have been explained above and will not be repeated here.
[0149] In the description of the embodiments of the present invention, it should be noted that any process or method description in the flowchart or otherwise described herein may be understood as representing a module, fragment or portion of a code comprising one or more executable instructions for implementing steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations, in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0150] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM).
[0151] In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0152] In an embodiment of the present invention, in order to achieve the above-mentioned purpose, the present invention further provides a chip system, wherein the chip system includes at least one processor, and when the program instructions are executed in the at least one processor, the chip system executes the steps of the LED spectrometer calibration method based on Python, for example:
[0153] S1, obtaining original image positioning parameters, and generating a first original configuration file in real time according to the original configuration file data;
[0154] S2, combining the first original configuration file and the test standard part data, generating a machine error coefficient in real time;
[0155] S3, generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient;
[0156] S4. Generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
[0157] The specific details of the steps have been explained above and will not be repeated here.
[0158] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0159] The present invention obtains original image positioning parameters through a method, and generates a first original configuration file in real time according to the original configuration file data; generates an organic difference coefficient in real time by combining the first original configuration file and the test standard parts data; generates a configuration file containing an organic difference coefficient in real time according to the organic difference coefficient; generates a second configuration file in real time according to the organic difference coefficient configuration file, the test standard parts data and the standard parts data, and the system and platform corresponding to the method can realize that all parameters that need to be modified are included in the configuration file modified by the calibration system, thereby reducing the steps of manually modifying parameters, effectively preventing quality accidents caused by inputting wrong parameters, reducing the workload of staff, and effectively recording each calibration data and configuration file through the calibration system, so as to effectively analyze data and trace the source.
[0160] That is to say, the solution of the present invention can eliminate the step of manually inputting parameters, simplify the operation requirements for workers, improve production efficiency, and increase the preservation of historical calibration coefficients and files through the calibration system to improve the traceability of data.
[0161] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A Python-based LED spectrometer calibration method, Features The method specifically comprises the following steps: Obtain work order number data information and generate original image positioning parameters; Acquire original image positioning parameters, and generate a first original configuration file in real time according to the original configuration file data; wherein the first original configuration file is a configuration file without a computer difference coefficient, and the first original configuration file is specifically a configuration file for modifying image positioning parameters, voltage, and current; In combination with the first original configuration file and the test standard component data, the machine error coefficient is generated in real time; including: obtaining the standard component data, and calculating the machine error between the standard component data tested by the spectrometer and the standard component data tested by the standard machine in real time; wherein the standard component is specifically a product tested by the standard machine; Generating a configuration file containing the organic difference coefficient in real time according to the organic difference coefficient; A second configuration file is generated in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
2. According to the LED spectrometer calibration method based on Python in claim 1, Features The step of obtaining the original image positioning parameters and generating the first original configuration file in real time according to the original configuration file data also includes the following steps: Determine whether the work order number data and the configuration template data match. If they match, execute the next step, otherwise return to the previous step.
3. According to the LED spectrometer calibration method based on Python in claim 1, Features The step of acquiring the standard component data and calculating the machine difference between the standard component data tested by the spectrometer and the standard component data tested by the standard machine in real time also includes the following steps: Calibration work order number data and configuration template data; Determine whether the standard coefficient in the standard parts data is qualified. If qualified, execute the next step, otherwise return to the previous step.
4. The LED spectrometer calibration method based on Python according to claim 1, Features The second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter; The step of generating a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data also includes the following steps: Obtain organic difference coefficient configuration files, test standard parts data and standard parts data; Determine whether the difference between the standard part data tested by the spectrometer and the standard part data tested by the standard machine is within the standard threshold range. If so, execute the next step, otherwise return to the previous step.
5. A Python-based LED spectrometer calibration system, Features The system specifically comprises: The first generation module is used to obtain the work order number data information and generate the original image positioning parameters; A first generating unit is used to obtain the original image positioning parameters, and generate a first original configuration file in real time according to the original configuration file data; wherein the first original configuration file is a configuration file without a computer difference coefficient, and the first original configuration file is specifically a configuration file for modifying the image positioning parameters, voltage, and current; The second generating unit is used to generate the machine error coefficient in real time by combining the first original configuration file and the test standard part data; the second generating unit is provided with: a calculation processing module, which is used to obtain the standard part data and calculate the machine error of the standard part data tested by the spectrometer and the standard part data tested by the standard machine in real time; wherein the standard part is specifically a product tested by the standard machine; A third generating unit is used to generate a configuration file containing an organic difference coefficient in real time according to the organic difference coefficient; The fourth generating unit is used to generate a second configuration file in real time according to the organic difference coefficient configuration file, the test standard part data and the standard part data.
6. The LED spectrometer calibration system based on Python according to claim 5, It is characterized in that The second configuration file is specifically a configuration file for modifying and adding a calibration coefficient and a card control parameter; The first generating unit is further provided with: The first determination module is used to determine whether the work order number data and the configuration template data are consistent; The second generating unit is also provided with: Calibration module, used to calibrate work order number data and configuration template data; The second determination module is used to determine whether the standard coefficient in the standard part data is qualified; The fourth generating unit is further provided with: An acquisition module, used for acquiring an organic difference coefficient configuration file, test standard parts data and standard parts data; The third determination module is used to determine whether the difference between the data of the standard part tested by the spectrometer and the data of the standard part tested by the standard machine is within a standard threshold range.
7. A Python-based LED spectrometer calibration platform, It is characterized in that include: Processor, memory and Python-based control program for the LED spectrometer calibration platform; Wherein the processor executes the Python-based LED spectrometer calibration platform control program, the Python-based LED spectrometer calibration platform control program is stored in the memory, and the Python-based LED spectrometer calibration platform control program implements the steps of the Python-based LED spectrometer calibration method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method for calibration and re-test of LED beam splitter
CN106443539A
Spectrometer calibration
CN110809712A
Image processing device and program
JP2020055141A
Spectrometer secondary reference calibration
US10048100B1
Emission spectroscopic analyzer
US20180238736A1
