Disclosure of Invention
The invention provides a two-dimensional luminescence detection method for a surface illuminant, which adopts a spectrometer matrix to move along an appointed path, so that each spectrometer in the spectrometer matrix is responsible for detecting an appointed area, the detection efficiency is improved, and the requirement of mass real-time data acquisition in industrial production can be met.
The invention adopts the following technical scheme:
a two-dimensional luminescence detection method for a surface illuminant comprises the following steps:
s1, acquiring a detected area of a surface illuminant;
s2, dividing a detected area into a plurality of same large areas, and dividing the large areas into a plurality of same small areas;
s3, electrifying the surface illuminant to lighten the detected area;
s4, controlling the spectrometer to stay at an initial position in a measured area corresponding to the spectrometer by the PC, wherein the initial position in the measured area corresponding to the spectrometer is one of areas on four vertexes of the measured area corresponding to the spectrometer;
s5, controlling the spectrometer to perform point-by-point traversal detection on the detected area by taking the S shape as a route from the initial position through the PC;
s6, detecting whether the spectrometer completes all detection of the detected area of the surface illuminant, if so, ending the detection and entering the step S7, and if not, returning to the step S5;
and S7, transmitting the detected data to a PC through a high-speed interface for analysis, processing and storage.
Further, the number of the spectrometers is multiple.
Further, the number of spectrometers is equal to the number of large areas; and, the step S4 specifically includes:
and the PC controls each spectrometer to stay at the initial position of a large area corresponding to the spectrometer, wherein the large area comprises four vertexes, and the initial position of the large area is one small area in small areas on the four vertexes of the large area.
Further, when the starting position of one of the large areas is a small area of the top left corner vertex of the large area, the starting positions of all the large areas are small areas of the top left corner vertex of each large area; in the same way as above, the first and second,
when the starting position of one of the large areas is a small area of the top right corner vertex of the large area, the starting positions of all the large areas are small areas of the top right corner vertex of each large area;
when the starting position of one of the large areas is a small area of the vertex at the lower left corner of the large area, the starting positions of all the large areas are the small areas of the vertex at the lower left corner of each large area;
when the starting position of one of the large areas is a small area of the vertex of the lower right corner of the large area, the starting positions of all the large areas are small areas of the vertex of the lower right corner of each large area.
Further, the step S5 specifically includes: and the PC controls the spectrometer corresponding to each large area to simultaneously carry out point-by-point traversal detection on each small area by taking the S shape as a route from the initial position in each large area.
Furthermore, the number of the spectrometers is less than that of the small areas, and a plurality of spectrometers are centralized and arranged at equal intervals to form a spectrometer matrix; and, the step S4 specifically includes:
the PC controls the spectrometer matrix to stay at the initial position of a measured area of the surface illuminant, wherein the measured area of the surface illuminant comprises four vertexes, the initial position of the measured area of the surface illuminant is a spectrometer matrix detection area of any one vertex, and the spectrometer matrix detection area is a set of all small areas corresponding to the spectrometer matrix.
Further, the step S5 specifically includes:
s51, controlling a spectrometer matrix by the PC to detect a spectrometer matrix detection area;
s52, detecting whether the spectrometer matrix completes all detection of the detection area of the current spectrometer matrix, if so, entering a step S53, and if not, returning to the step S51;
and S53, the PC controls the spectrometer matrix to move along the small area by taking the S shape as a route, and the spectrometer matrix enters the next spectrometer matrix detection area for detection.
Furthermore, the spectrometer comprises a spectrometer controller, a detection probe, an optical fiber line and a cosine diffuser, two ends of the optical fiber line are respectively connected with the spectrometer controller and the detection probe, and the cosine diffuser is arranged at one end of the detection probe far away from the optical fiber line.
Furthermore, the spectrometer comprises a spectrometer controller, a detection probe, an optical fiber line and a miniature integrating sphere, wherein two ends of the optical fiber line are respectively connected with the spectrometer controller and the detection probe, and the miniature integrating sphere is arranged at one end, far away from the optical fiber line, of the detection probe.
The invention has the beneficial effects that:
(1) A plurality of spectrometers are adopted to form a spectrometer matrix, each spectrometer in the matrix is responsible for a corresponding acquisition area, and the spectrometer matrix acquires data simultaneously in the movement process, so that high-efficiency data acquisition is realized; the measured area of the surface illuminant is divided into a plurality of large areas and small areas, the spectrometer matrix moves along the large areas, and the spectrometer in the spectrometer matrix moves along the small areas, so that the path can be better planned, and the detection is more comprehensive.
(2) Every spectrum appearance in the spectrum appearance matrix is responsible for the detection of a cell, and the spaced distance between every two adjacent spectrum appearance is equal, and the spectrum appearance matrix uses the S type to detect along cell removal face luminous body, reduces the use of spectrum appearance, improves detection efficiency on the basis of realizing resources are saved.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Example one
As shown in fig. 1, fig. 1 illustrates the structure and position of the surface illuminant and the spectrometer matrix in the present invention, in this embodiment, four spectrometers are arranged to form the spectrometer matrix, the four spectrometers are fixed together by a fixing bracket, the surface illuminant is above the spectrometer matrix, and the surface illuminant is detected by moving the fixing bracket to drive the spectrometers to move.
The spectrometer comprises a spectrometer controller, a detection probe, an optical fiber line and a cosine diffuser, wherein two ends of the optical fiber line are respectively connected with the spectrometer controller and the detection probe, and the cosine diffuser is arranged at one end of the detection probe, which is far away from the optical fiber line; or the spectrometer comprises a spectrometer controller, a detection probe, an optical fiber line and a miniature integrating sphere, the two ends of the optical fiber line are respectively connected with the spectrometer controller and the detection probe, and the miniature integrating sphere is arranged at one end of the detection probe far away from the optical fiber line.
As shown in fig. 3, fig. 3 is a schematic flow chart of a first method in the present invention, which specifically includes the following steps:
s1, acquiring a detected area of the surface illuminant.
And S2, dividing the detected area into a plurality of same large areas, and dividing the large areas into a plurality of same small areas. As shown in fig. 4, the measured area is set to have M rows and N columns, so that the whole measured area is divided into M × N large areas; each large area is set to have m rows and n columns, and then each large area is divided into m × n small areas.
And S3, electrifying the surface luminous body to light the detected area.
S4, setting the number of the spectrometers to be the same as that of the large areas, namely, if the measured area has M × N large areas, the spectrometer matrix comprises M × N spectrometers, so that one spectrometer is correspondingly arranged below each large area; and the PC controls each spectrometer to stay at the initial position in a large area corresponding to the spectrometer, wherein the large area comprises four vertexes, and the initial position of the large area is one small area in the four vertexes of the large area.
When the starting position of one of the large areas is a small area of the top left corner vertex of the large area, the starting positions of all the large areas are small areas of the top left corner vertex of each large area; in the same way as above, the first and second,
when the starting position of one of the large areas is a small area of the top right corner vertex of the large area, the starting positions of all the large areas are small areas of the top right corner vertex of each large area;
when the starting position of one of the large areas is a small area of the vertex at the lower left corner of the large area, the starting positions of all the large areas are the small areas of the vertex at the lower left corner of each large area;
when the starting position of one of the large areas is a small area of the vertex at the lower right corner of the large area, the starting positions of all the large areas are the small areas of the vertex at the lower right corner of each large area.
The initial position of each large area is set to be the same position, so that the situation of cross detection is avoided after each spectrometer in the spectrometer matrix completes one period of movement, when one spectrometer completes the detection of one large area, all spectrometers in the spectrometer matrix complete the detection of the corresponding large area, and the detection of the opposite illuminant detection area is completed in one period due to the fact that the number of the spectrometers is the same as that of the large areas, and the detection efficiency is improved.
And S5, controlling the spectrometer corresponding to each large area by the PC to traverse and detect each small area point by taking the S shape as a route from the initial position in each large area.
As shown in fig. 4, a small circle at the top left corner of each large area in fig. 4 represents a detection probe of a spectrometer, in this embodiment, the start position of the large area is set at the top left corner of each large area, when detection is started, the detection probe of the spectrometer in one large area moves along a small area grid of each large area, the detection probe moves rightward along the first row of small areas first to perform detection, after detection of the first row of small areas is completed, the detection probe moves downward by one grid, at this time, the detection probe is located at the rightmost end of the second row, the detection probe moves leftward from the rightmost end of the second row to perform detection, after detection of the second row is completed, the detection probe moves downward by one grid, at this time, the detection probe is located at the leftmost end of the third row, the detection probe moves rightward from the leftmost end of the third row to perform detection, and so on until the detection probes detect all the small areas in one large area.
Each large area corresponds to one spectrometer, and all the spectrometers are fixed together to form a spectrometer matrix, so that when the spectrometers move, all the spectrometers move simultaneously, and when one spectrometer completes detection of the corresponding area, all the spectrometers complete detection, namely, detection of the area where the face illuminant is detected is completed.
It should be understood that, in this embodiment, when the starting position of the large area is the top left corner, the moving manner of the detection probe is not limited to moving from the top left corner in the above manner, but may also move from the top left corner downwards along the small areas in the first column, when the detection in the first column is completed, the detection probe moves to the right for one grid, at this time, the detection probe is located at the lowermost end of the second column, and then the detection probe moves upwards from the lowermost end of the second column, when the detection in the second column is completed, the detection probe continues to move to the right for one grid, at this time, the detection probe is located at the uppermost end of the third column, then the detection probe moves downwards from the uppermost end of the third column, and so on, until the detection probe completes the detection of the whole large area.
When the initial position of the large area is other vertexes, the moving modes of the detection probe are also two, namely, the detection probe firstly moves transversely and then moves longitudinally to form an S-shaped route, or the detection probe firstly moves longitudinally and then moves transversely to form the S-shaped route.
And S6, detecting whether the spectrometer completes all detection of the detected area of the surface illuminant, if so, ending the detection and entering the step S7, otherwise, returning to the step S5.
And S7, transmitting the detected data to a PC through a high-speed interface for analysis, processing and storage. The high-speed interface comprises but not limited to a gigabit network, a PCI-E interface and a USB interface, ensures that detected data can be uploaded to a PC (personal computer) in time, and facilitates subsequent storage, analysis and processing.
Example two
Compared with the first embodiment, the detection efficiency can be improved on the basis of resource saving, and the requirement for mass real-time data acquisition in industrial production can be better met.
As shown in fig. 5, fig. 5 is a schematic flow chart of a second method in the present invention, which specifically includes the following steps:
s1, acquiring a detected area of the surface illuminant.
And S2, dividing the detected area into a plurality of same large areas, and dividing the large areas into a plurality of same small areas. As shown in fig. 5, the measured area is set to have M rows and N columns, so that the whole measured area is divided into M × N large areas; each large area is set to have m rows and n columns, and then each large area is divided into m × n small areas.
And S3, electrifying the surface luminous body to light the detected area.
S4, setting the number of the spectrometers to be smaller than the number of the small regions, as shown in fig. 6, a small circle at the top left corner in the figure represents one spectrometer, in this embodiment, the number of the spectrometers is set to be four, and four spectrometers are centralized and equally spaced to form a 2 × 2 spectrometer matrix (i.e., four small circles in the figure), that is, a spectrometer array is corresponding to each of the four small regions; the PC controls the spectrometer matrix to stay at the initial position of the measured area of the surface illuminant, wherein the measured area of the surface illuminant comprises four vertexes, the initial position of the measured area of the surface illuminant is a spectrometer matrix detection area of any one vertex, the spectrometer matrix detection area is a set of all small areas corresponding to the spectrometer matrix, and the initial position of the measured area of the surface illuminant is set as the spectrometer matrix detection area of the upper left corner of the measured area of the surface illuminant in the embodiment.
Of course, each spectrometer in the spectrometer matrix is not limited to the adjacent arrangement mentioned in this embodiment, and may also be arranged at intervals, and the distance between every two adjacent spectrometers in the spectrometer matrix is the same, and may be one row or one column of small areas, two rows or two columns of small areas, three rows or three columns of small areas, and the like; in this embodiment, the method is described by taking a spectrometer matrix arranged adjacently as an example.
And S5, controlling the spectrometer to perform point-by-point traversing detection on the detected area by taking the S shape as a route from the initial position through the PC.
And S51, controlling the spectrometer matrix by the PC to detect the detection area of the spectrometer matrix.
S52, detecting whether the spectrometer matrix completes all detection of the current spectrometer matrix detection area, if so, entering a step S53, otherwise, returning to the step S51.
And S53, the PC controls the spectrometer matrix to move along the small area by taking the S shape as a route, and the spectrometer matrix enters the next spectrometer matrix detection area for detection.
When the spectrometer matrix finishes the detection of four small areas at the upper left corner, the spectrometer matrix moves rightwards to enter a next spectrometer matrix detection area, namely four small areas at the right side adjacent to the four small areas at the upper left corner, and the next spectrometer matrix detection area sequentially moves rightwards until the spectrometer matrix detection area is detected, when the spectrometer matrix moves to the rightmost end of the first two rows, if only 1 x 2 small areas are left, the spectrometer matrix still moves to the detection area for detection, so that two spectrometers at the left side in the spectrometer matrix correspond to the detection area, and two spectrometers at the right side in the spectrometer matrix do not have corresponding areas, when the detection is finished, the spectrometer matrix moves downwards to a third row small area and a fourth row small area, when only two spectrometers at the rightmost end of the spectrometer matrix detect, the two spectrometers at the left side in the spectrometer matrix correspond to the two small areas, and the two spectrometers at the right side do not correspond to the small areas; if the spectrometer matrix corresponds to four small areas under normal conditions, the spectrometer matrix directly moves downwards to the four small areas at the rightmost ends of the third row and the fourth row small areas. When the spectrometer matrix finishes the detection of the third row small area and the fourth row small area, the spectrometer matrix is located at the leftmost end of the third row small area and the fourth row small area, the spectrometer matrix moves downwards to the fifth row small area and the sixth row small area to start detection, and so on, when the last detection is carried out, if only one row is left, two spectrometers at the upper end in the spectrometer matrix detect, and two spectrometers at the lower end do not correspond to the small areas.
It should be understood that the spectrometer matrix in this embodiment is not limited to first moving laterally and then moving longitudinally from the top left corner of the measured area of the planar illuminant, but may also move longitudinally and then move laterally. Meanwhile, the spectrometer matrix in this embodiment is not limited to move from the top left corner, but may move from the top right corner, the bottom left corner, and the bottom right corner first in the horizontal direction and then in the vertical direction, or move in the horizontal direction and along the S-shaped path.
And S6, detecting whether the spectrometer completes all detection of the detected area of the surface illuminant, if so, ending the detection and entering the step S7, and if not, returning to the step S5.
And S7, transmitting the detected data to a PC (personal computer) through a high-speed interface for analysis, processing and storage. The high-speed interface comprises but not limited to a gigabit network, a PCI-E interface and a USB interface, ensures that detected data can be uploaded to a PC (personal computer) in time, and facilitates subsequent storage, analysis and processing.
It should be understood that the method in the present invention is not limited to the two methods provided in the first and second embodiments, and the position of the spectrometer matrix may be fixed, and the control surface light emitter moves, that is, the table carrying the object moves, and the measured area moves in the plane by controlling the measured area to complete the data acquisition in cooperation with the spectrometer matrix each time data is detected.
In the embodiment, a plurality of spectrometers are adopted to form a spectrometer matrix, each spectrometer in the matrix is responsible for the corresponding acquisition region, and the spectrometer matrix acquires in the movement process at the same time, so that the detection efficiency is improved while resources are saved.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; these modifications and substitutions do not cause the essence of the corresponding technical solution to depart from the scope of the technical solution of the embodiments of the present invention, and are intended to be covered by the claims and the specification of the present invention.