A method for measuring spectral information, a spectrometer and a storage medium

By using the laser cross to indicate the center of the measurement area and the bracket movement function in the spectrometer, the problems of spectrometer measurement position offset and low multi-region measurement efficiency are solved, achieving high-accuracy and efficient spectral measurement and simplifying data analysis.

CN116678841BActive Publication Date: 2024-10-01LISEN OPTICS SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310574289.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-10-01
Estimated Expiration
2043-05-19

AI Technical Summary

Technical Problem

Because the field of view lens and the laser pointer of the existing spectrometer are not coaxial, the measurement position is offset, the measurement results are inaccurate, the multi-region measurement efficiency is low, and the data statistics are cumbersome.

Method used

Two one-word laser pointers are used to form a laser cross, which accurately indicates the center of the measurement area, and displays the measurement area in real time on the screen. Combined with the mobile function of the stand, it can perform automated batch measurements and plan the shortest route for multi-region measurements.

Benefits of technology

It improves the accuracy and efficiency of spectral measurement, simplifies data statistical analysis, and optimizes user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116678841B_ABST
    Figure CN116678841B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method for measuring spectral information, a spectrometer and a storage medium, which are used to improve the accuracy of spectral measurement and improve the measurement efficiency of users. The method of the embodiment of the present invention includes: the spectrometer displays the current measurement area; based on the user's adjustment operation, the spectrometer adjusts the current measurement area to the area to be measured; the spectrometer measures the spectral information of the area to be measured. The method for measuring spectral information provided in the embodiment of the present application accurately locates the measurement position through laser cross-linking, calculates the measurement area in real time and displays it visually through the screen, so that users can easily identify the current detection area, greatly improves the accuracy of user measurement, and improves work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of spectral information measurement, and in particular to a spectral information measurement method, a spectrometer and a storage medium. Background Art

[0002] Spectrometers can be used to analyze the spectral characteristics of substances. They can identify the composition of substances by receiving light information and performing statistics on physical parameters such as wavelength, frequency, and intensity of light. Spectrometers are an important measurement and research tool that can be widely used in optics, optoelectronics, chemistry, physics, and other fields.

[0003] Generally, spectrometers use a field of view lens to receive light information. After the light information enters the lens, it will be converted into electrical information, and then statistical analysis of parameters such as wavelength, frequency, and intensity will be performed. There is a laser indicator next to the field of view lens. The indicator emits a point laser, and the laser points on the object to indicate the user's detection area.

[0004] However, since the field of view lens is not coaxial with the laser pointer, the position detected by the lens will be offset relative to the position of the laser emitted by the pointer. When the user measures the target area indicated by the laser, an area different from the target will be measured, resulting in inaccurate measurement results. Summary of the invention

[0005] The present application provides a method for measuring spectral information, a spectrometer and a storage medium, which can accurately indicate a measurement area, thereby improving measurement accuracy.

[0006] In a first aspect, the present application provides a method for measuring spectral information, which is applied to a spectrometer, the spectrometer comprising: two straight laser indicators, used to form a laser cross center located on the central axis of a field of view angle lens on the surface of an object to be measured, the laser cross center can indicate the center of a current measurement area, the method comprising: the spectrometer displays a current measurement area; the current measurement area is generated by the spectrometer based on a current object distance and a current measurement area center, and combined with a field of view angle of a field of view angle lens of the spectrometer; the current object distance refers to the current distance between the spectrometer and the surface of the object to be measured; based on an adjustment operation by a user, the spectrometer adjusts the current measurement area to the area to be measured; the spectrometer measures the spectral information of the area to be measured.

[0007] When measuring spectral information, the related art uses a point laser to indicate the approximate range, which is inaccurate and the range cannot be determined. In the above embodiment, a cross laser is used to indicate the exact center of the measurement area, and the current measurement area is displayed in real time on the spectrometer screen. The measurement area is visualized while ensuring accuracy, saving the time of manual judgment of the measurement area and improving the accuracy of the measurement.

[0008] In combination with some embodiments of the first aspect, in some embodiments, the lasers emitted by two straight laser pointers intersect vertically at the central axis of the field of view angle lens, and are used to form a laser cross located on the central axis of the field of view angle lens on the surface of the object to be measured, and the center of the laser cross can be used to indicate the center of the current measurement area.

[0009] When measuring spectral information, the laser cross sometimes indicates unclearly. In the above embodiment, the laser cross indicates the measurement center, which is conducive to the user to directly observe the measurement center. The cross is more conducive to the user to make horizontal and vertical positioning judgments, has more obvious advantages in positioning and orientation, and optimizes the user experience.

[0010] In combination with some embodiments of the first aspect, in some embodiments, the spectrometer further includes: a bracket for fixing a measuring part of the spectrometer, and in response to an instruction of the spectrometer, causing the measuring part of the spectrometer to move in a spatial position along an x-axis, a y-axis, and a z-axis; wherein based on an adjustment operation of the user, the spectrometer adjusts the current measurement area to the area to be measured, specifically comprising: in response to a start instruction of the user, the spectrometer moves to scan all images in the movable area; after synthesizing the scanned images, the spectrometer displays a mother map containing all images of the movable area on the screen; in response to one or more selection operations of the user on the mother map, the spectrometer displays one or more selection mark areas on the mother map; after determining that the one or more selection mark areas are the corresponding one or more areas to be measured, the spectrometer adjusts the current measurement area to the one or more areas to be measured.

[0011] When measuring spectral information, it is repetitive and cumbersome for the user to manually perform multiple measurements in the area. In the above embodiment, by scanning and taking pictures in the movable area and establishing a mother map, the user selects an area on the mother map, and then the user's selected area is identified and the measurement part is moved to the specified position for measurement, thereby realizing batch automatic measurement of targets in a fixed area. The measurement efficiency is improved in an automated form, the measurement accuracy is improved compared to manual measurement, and the user experience is optimized.

[0012] In combination with some embodiments of the first aspect, in some embodiments, there are multiple areas to be measured; after determining that the one or more selected area marking areas are the corresponding one or more areas to be measured, the spectrometer adjusts the current measurement area to the multiple areas to be measured, specifically including: the spectrometer compares the running routes for measuring the multiple areas to be measured, and plans the shortest route; the spectrometer runs along the shortest route, and adjusts the current measurement area to the multiple areas to be measured.

[0013] When measuring, the quality of the route taken by the spectrometer to measure multiple areas directly affects the measurement efficiency. In the above embodiment, by planning the route for measuring, the running distance of the spectrometer is shortened, thereby improving the operating efficiency of the spectrometer during multi-area batch measurement.

[0014] In combination with some embodiments of the first aspect, in some embodiments, the spectrometer compares the running routes for measuring the multiple areas to be measured and plans the route with the shortest distance, specifically including: the spectrometer splits the mother map into multiple sub-maps according to the size of the selection density; the selection density refers to the number of selection parts in the unit sub-map area, and the more the greater the density; the spectrometer compares the running routes for measuring the multiple areas to be measured in the sub-map and plans the route with the shortest distance; the spectrometer plans the shortest route connecting all the sub-maps, and sets the connected overall route as the final measurement running route.

[0015] When planning routes in multiple areas, poor planning will lead to low measurement efficiency. In the above embodiment, the mother map containing the entire measurement area is used as a reference, and the sub-division is performed, and the selected areas in the sub-areas are close to each other to avoid the spectrometer from measuring the selected areas with a long round trip distance, which will reduce efficiency. After the measurement planning in the sub-areas, the routes are merged to form the route planning of all the selected areas on the mother map. The shortest path analysis steps are simplified, the time for the spectrometer to calculate the route is saved, and the work efficiency is improved.

[0016] In combination with some embodiments of the first aspect, in some embodiments, after the spectrometer measures the spectral information of the multiple areas to be measured, it also includes: after the spectral information of the multiple areas to be measured is measured, the spectrometer displays the spectral information measurement results of the multiple areas to be measured on a mother map.

[0017] After performing multi-region measurements, users will spend time on statistical and comparative analysis of data. In the above embodiment, the spectral information of multiple locations is compared and displayed on the mother map, and the spectral information results are more intuitively displayed to the user, which is convenient for the user to perform comparative analysis. The steps of statistical analysis of data results are simplified, and the user experience is optimized.

[0018] In combination with some embodiments of the first aspect, in some embodiments, the multiple areas to be measured include conventional areas and unconventional areas, the size of the conventional area is the same as that of the current measurement area, and the size of the unconventional area is different from that of the current measurement area; the spectrometer runs along the shortest route and adjusts the current measurement area to the multiple areas to be measured, specifically including: in the process of running to the conventional area along the shortest route, the spectrometer adjusts the position of the current measurement area to the corresponding conventional area position; in the process of running to the unconventional area along the shortest route, the spectrometer adjusts the position of the current measurement area to the corresponding unconventional area position, and then moves in the z-axis direction to make the current measurement area adapt to the size of the corresponding unconventional area.

[0019] When performing measurements, the user's requirements for the size of the measurement range are often not fixed. In the above embodiment, the distance between the measuring part of the spectrometer and the surface of the object to be measured is changed by moving in the z-axis direction, thereby changing the size of the detection range. By more widely applying the detection range of the area to be measured, the user's needs for measuring areas of various sizes are further met, and the user experience is optimized.

[0020] In a second aspect, an embodiment of the present application provides a spectrometer, which includes: two straight laser indicators, used to form a laser cross center located on the central axis of the field of view angle lens on the surface of the object to be measured, and the laser cross center can indicate the center of the current measurement area; a display module, used to display the current measurement area; the current measurement area is generated by the spectrometer based on the current object distance, the center of the current measurement area, and the field of view angle of the spectrometer field of view angle lens; the current object distance refers to the distance between the current spectrometer and the surface of the object to be measured; an adjustment module, used to adjust the current measurement area to the area to be measured based on the user's adjustment operation; a measurement module, used to measure the spectral information of the area to be measured.

[0021] In a third aspect, an embodiment of the present application provides a spectrometer, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the spectrometer to perform the method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, and when the above-mentioned computer program product is run on a spectrometer, the above-mentioned spectrometer executes the method described in the first aspect and any possible implementation manner of the first aspect.

[0023] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a spectrometer, enable the spectrometer to perform the method described in the first aspect and any possible implementation of the first aspect.

[0024] It is understandable that the spectrometers provided in the second and third aspects, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be repeated here.

[0025] The embodiments of the present application provide one or more technical solutions, which have at least the following technical effects or advantages:

[0026] 1. Due to the adoption of laser positioning and visual display of the measurement area, the problems of inaccurate measurement positioning and invisible area in related technologies are effectively solved, thereby effectively improving the accuracy of spectral measurement;

[0027] 2. Due to the adoption of batch selection and automated route detection, the problem of repeated and cumbersome multiple measurement steps in the relevant technology is effectively solved, thereby effectively improving the efficiency of spectral measurement;

[0028] 3. Due to the adoption of information visualization display, the cumbersome problem of data statistics and comparison after multiple measurements in related technologies is effectively solved, thereby simplifying the statistical analysis of spectral measurement results and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of a spectral measurement scenario in the related art;

[0030] Figure 2 is a schematic diagram of a spectral measurement scenario provided in an embodiment of the present application;

[0031] Figure 3 is a flow chart of a spectrum measurement method provided in an embodiment of the present application;

[0032] Figure 4 is a schematic diagram of a spectral measurement device provided in an embodiment of the present application;

[0033] Figure 5 is another schematic diagram of a spectral measurement scenario provided by an embodiment of the present application;

[0034] Figure 6 is a flow chart of another spectrum measurement method provided in an embodiment of the present application;

[0035] Figure 7It is a schematic diagram of the functional module structure of a spectrometer provided in an embodiment of the present application;

[0036] Figure 8 It is a schematic diagram of the physical device structure of a spectrometer provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The embodiment of the invention discloses a method for measuring spectral information, a spectrometer and a storage medium, which are used to improve the accuracy of spectral measurement and improve the measurement efficiency of users.

[0038] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0039] In the description of the embodiments of the present application, words such as, for example, or for example are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as, for example, or for example in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as, for example, or for example is intended to present related concepts in a specific way.

[0040] In the description of the embodiments of the present application, the term "multiple" means two or more. For example, "multiple systems" means two or more systems, and "multiple screen terminals" means two or more screen terminals. In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean including but not limited to, unless otherwise specifically emphasized.

[0041] The technical solution provided in this application can be applied to spectral measurement. Figure 1 , which is a schematic diagram of a scenario in which a spectrometer is used to perform spectral measurement in the related technology.

[0042] like Figure 1 As shown in (a), a user is outdoors and wants to measure the spectrum of the roots of grass on the ground. He holds a spectrometer about one meter away from the ground and emits a laser to hit the ground.

[0043] Figure 1Middle (b) is a view of the side of the spectrometer facing the measured object: 1 is the side of the spectrometer facing the measured object, which is used to receive light information and perform spectral measurement; 11 is a camera lens, which is used to take pictures. The pictures taken can be used to observe and record the appearance information of the object; 12 is a field of view angle lens, which is used to receive light information for measurement. The field of view angle of the field of view angle lens is generally small, and the range it can measure is small; 101 is a point-type laser pointer, which is used to emit laser. The laser can indicate the measurement position when it hits the object.

[0044] Figure 1 (c) is the view of the spectrometer facing the user, which is the display screen; 2 is the display screen interface of the spectrometer facing the user, which is used to display the view of the measured object, so that the user can observe and record the appearance information of the object; 21 is the view of the object taken by the camera lens 11; 102 is the laser indication point on the ground hit by the point-type laser pointer 101.

[0045] The user determines the position of the laser pointer point 102 as the measurement position and performs spectrum measurement.

[0046] However, since the field of view lens is not coaxial with the laser pointer, the position detected by the lens is offset relative to the laser emitted by the pointer, and the user's actual measurement position is different from the laser indicated position. At the same time, if the user has no experience, it is impossible to accurately judge the measurement range. When both the position and the range are uncertain, the accuracy of the spectral test is low. At this time, when the user performs a measurement, the result is bound to be unsatisfactory. For example, in the above scenario, the user wants to measure the roots of the grass, but due to deviation, the laser hits the roots of the grass, and the spectral information of the grass leaves is actually measured.

[0047] Similar to the above analysis, after the user took the measurement, he found that the measurement result was inconsistent with the reference result given by the instructor. So he went to ask the instructor for advice, and the instructor asked him to move the spectrometer closer to the ground, and pay attention to not only observing the laser indicator point, but also the position of the field of view lens, and measure again, and finally get a result close to the standard.

[0048] The instructor's advice is empirical. Being closer to the ground is to reduce the measurement range. Under the condition of the same field of view, the farther the distance, the larger the range that can be measured. A large range may have other interferences. In addition to the laser point, the lens position must be observed, which means that there is a deviation in the laser indication, and the human eye is needed to determine the specific measurement position.

[0049] In the above scenario, because the installation position of the point laser pointer 101 is not coaxial with the field of view lens 12, the laser point 102 cannot accurately indicate the measurement position, causing errors in the user's judgment and resulting in inaccurate measurement results.

[0050] In the scenario, the user has a reference result and can check whether the spectral measurement is accurate. However, there is no guarantee that there will be a reference result in other scenarios, and the accuracy of the result cannot be judged, so the accuracy of the indication is particularly important.

[0051] The spectral information measurement method provided in the embodiment of the present application can accurately locate the measurement position through laser cross-linking, calculate the measurement area in real time and visualize it on the screen, so that users can easily identify the current detection area, greatly improving the accuracy of user measurement and improving work efficiency. Figure 2 , is a schematic diagram of a spectral measurement scenario provided in an embodiment of the present application.

[0052] like Figure 2 As shown in (a), the user is outdoors and wants to measure the spectrum of the roots of grass on the ground. He holds a spectrometer about one meter away from the ground and emits a cross laser to hit the ground.

[0053] Figure 2 Middle (b) is a view of the spectrometer facing one side of the measured object, 201 and 202 are straight line laser indicators, the straight line lasers emitted by the two indicators intersect and combine to form a cross, and the cross line is the center axis of the field angle lens 12. Therefore, when the laser cross hits the object, the center position of the cross is the center position of the measurement area of ​​the field angle lens.

[0054] Figure 2 Middle (c) is a view of the spectrometer facing the user, 203 is the laser cross, and the intersection of the laser cross 203 is the center position of the measurement derived above; 204 is the measurement area display, which can accurately display the specific measurement range on the screen.

[0055] The user accurately determines the center of the measurement position based on the position of the intersection of the laser cross 203. At the same time, the user finds that the measurement area is large through the screen area display 204, and lowers the height of the spectrometer to reduce the measurement range. After determining the range, the user performs spectrum measurement and obtains a result close to the reference.

[0056] The following describes the spectrum measurement method in the embodiment of the present application in combination with the above scenario. Figure 3 , is a flow chart of a spectral measurement method provided in an embodiment of the present application.

[0057] S301, the spectrometer displays the current measurement area;

[0058] The spectrometer has a distance measuring device that can directly measure the distance between the object and the spectrometer field of view lens. After the spectrometer is turned on for measurement, it will first measure the distance from the current spectrometer to the surface of the object to be measured. This distance is the object distance.

[0059] After the spectrometer measures the current object distance, it will determine the center point of the current measurement area through the center point of the laser intersection in combination with the field of view angle parameters of its own field of view lens.

[0060] The laser cross is obtained by the laser cross of two straight laser pointers of the spectrometer, such as Figure 2 As shown in 201 and 202 of (b), the straight lasers emitted by the two indicators intersect at the central axis of the field angle lens, and the central axis is the center line extending from the field angle lens, such as Figure 2 As shown in 203 in (c), the intersection center of the laser hitting the surface of the object to be measured is the intersection point of the central axis of the field angle lens and the surface of the object to be measured, and this point is the center point of the current measurement area.

[0061] In some embodiments, a straight line of lasers will intersect vertically, in which case a laser cross will be obtained on the object plane. The laser cross is generally more conducive to positioning in the horizontal and vertical directions, and the center point of the laser cross is also the center point of the measurement area.

[0062] The spectrometer will identify the position of the center point of the current measurement area. Specifically, the spectrometer will use image recognition to identify the laser intersection in the image, and then further determine the laser intersection point, which is the center point of the measurement area.

[0063] The spectrometer can calculate the radius of the current measurement range based on the field of view parameters of its own field of view lens and the current object distance, and further determine the area. Combined with the identification of the center point of the measurement area, the range of the current measurement area on the image can be accurately calculated. Figure 2 As shown in 204 in (c), the current measurement area can be displayed on the screen in a graphical form, which is convenient for the user to perform calibration and measurement.

[0064] S302, based on the user's adjustment operation, the spectrometer adjusts the current measurement area to the area to be measured;

[0065] After observing the current measurement area, the user will adjust the current measurement area according to the needs to make the measurement range meet the requirements. During the adjustment process, the spectrometer will calculate the adjusted current measurement area based on the field of view parameters of its own field of view lens, combined with the current object distance adjusted by the user and the center point of the current measurement area, and Figure 2 As shown in 204 in (c), it is displayed in the form of a graph on the spectrometer screen.

[0066] In some embodiments, after observing the current measurement area, the user adjusts the distance between the spectrometer and the surface of the object to be measured and adjusts the position of the spectrometer until the current measurement area meets their needs. When the user makes the final adjustment and confirms, the measurement is started, indicating that the current measurement area is the area to be measured.

[0067] S303: The spectrometer measures the spectral information of the area to be measured.

[0068] After the user confirms to perform spectral measurement, this step will be entered. The spectrometer will collect the spectral information in the current area to be measured, perform statistical analysis on the spectral information, and display the results on the screen in the form of a spectrum graph, etc., and feedback to the user.

[0069] It can be seen from the above embodiments that, compared with the related art using a spectrometer to perform spectral measurement, the embodiments of the present application use a visualization method, indicating the center of the measurement area with a laser cross, and displaying the measurement area with a screen graphic, which is also updated in real time according to user adjustments. The user can quickly calibrate and locate the measurement area with the laser cross and screen display as the standard, which improves the accuracy of spectral measurement on the one hand, and the efficiency of spectral measurement for users on the other hand, and optimizes the user's experience of using the spectrometer.

[0070] The present application also provides a spectrometer, referring to Figure 4 The spectrometer mainly includes a measuring part 1 of the spectrometer and a bracket 4. The measuring part 1 of the spectrometer can be used to implement the above embodiment, and the bracket 4 can provide automatic and accurate movement support for the measuring part of the spectrometer. The main parts of the bracket 4 include:

[0071] Support legs 41, used to fix the entire device;

[0072] An x-moving axis 42 can move the measuring part 1 of the spectrometer fixed on the bracket 4 in an x-axis direction, where the x-axis direction is a direction in a horizontal plane;

[0073] The y moving axis 43 can move the measuring part 1 of the spectrometer fixed on the bracket 4 in the y-axis direction, and the y-axis direction is perpendicular to the x-axis in the horizontal plane;

[0074] The z moving axis 44 generally does not move, but allows the entire device, including the x moving axis 42, the y moving axis 43 and the measuring part 1 of the spectrometer, to move up and down in the z axis direction, which is perpendicular to the horizontal plane where the x and y axes are located and is the vertical direction.

[0075] By moving in two axial directions, the x-axis 42 and the y-axis 43, a wide range of objects can be measured. Figure 4 As shown in 401.

[0076] The following is a description of the usage scenarios of the spectrometer:

[0077] The user goes outdoors and wants to carry out measurements at multiple locations in a certain area, so he fixes the bracket 4 and installs the measuring part 1 of the spectrometer in place.

[0078] The user selects the scanning option of the spectrometer, and the spectrometer moves automatically. After the camera takes pictures of all positions in the area, the spectrometer returns to its original position.

[0079] See also Figure 5 , Figure 5 Schematic diagram of the scene for measuring spectral information. Figure 5 As shown in (a), the spectrometer screen shows a mother earth Figure 5 , this mother land Figure 5 The entire area that the spectrometer can capture within the movable area 401. Area 51 is displayed in bright color, which is the area that can be measured. The user clicks on the measurement area 51 to select the measurement. Areas 511, 512 and 513 are the areas 1, 2 and 3 selected by the user for measurement. Area 513 has not been confirmed yet. 52 is a selection prompt box, prompting the user to confirm the selection. Click "OK" to confirm the selection position, and click "Cancel" to cancel this selection.

[0080] The user clicks "OK" in the selection box 52 and starts the spectrometer measurement. The spectrometer quickly moves to the positions of the designated selection areas 511, 512 and 513 in turn to perform measurements. After the measurement is completed, the spectrometer returns to its original position.

[0081] At this time Figure 5 As shown in (b), a mother map is displayed on the screen of the spectrometer, and selected areas 511, 512 and 513 on the map display corresponding spectral measurement result graphs 531, 532 and 533 respectively.

[0082] The user obtained the spectral results in three areas in a short time, and obtained the desired results after statistical analysis.

[0083] The following describes the specific method steps in combination with the above usage scenarios. Figure 6 , which is a schematic diagram of the flow chart of the spectral measurement method.

[0084] S601, the spectrometer displays the current measurement area;

[0085] When the measuring part of the spectrometer is mounted on the bracket, a wireless connection is established between the two. The spectrometer sends a command signal, such as Figure 4 As shown, after receiving the signal, the bracket will move the x-moving axis 42 and the y-moving axis 43 according to the instruction, and the measuring part of the spectrometer can scan and take pictures or perform spectral measurements on different areas.

[0086] After powering on, the spectrometer will move the measuring part to the initial position, which is the zero point of the bracket device, the position when neither the x-axis nor the y-axis moves, and is located at the lower left corner of the entire movable area 401. At the initial position, the spectrometer will display the current measuring area, and the range size of the current measuring area can be used for subsequent area selection operations.

[0087] S602, in response to a user operation, the spectrometer scans all images in the movable area;

[0088] After receiving the user's start instruction, the spectrometer will move in the x-axis and y-axis directions within the movable range, and scan and take pictures at the same time. The spectrometer will quickly collect all image information within the movable area 401 in a short time.

[0089] S603, the spectrometer synthesizes the scanned images and displays a mother map including all images of the movable area on the screen;

[0090] After collecting all the image information in the movable area 401, the spectrometer will stitch all the images together to fit into a master map of the entire area and display it on the screen. Figure 5 As shown, the mother land in the mobile area is displayed on the screen Figure 5 .

[0091] Since the field angle of the view angle lens is smaller than that of the camera lens, the actual measurement range is narrower and needs to be distinguished from the photographic synthesis area. 51 is the area that the field angle lens can measure.

[0092] In some embodiments, the to-be-detected area 51 and the non-detected area on the map are distinguished by light and dark, so that the user can clearly identify the detection area.

[0093] S604: In response to the user's one or more selection operations on the mother map, one or more selection mark areas appear on the mother map;

[0094] After obtaining the mother map of the entire area, the user can select an area to measure. Figure 5 As shown in (a), the user can select an area by clicking on the map on the screen. The size of the selection box is consistent with the current measurement area range in step S601. As shown in 511, 512, and 513 in the figure, they are selection mark areas, which are also simplified as selection areas in the following text.

[0095] The default size of the selection range refers to the previous embodiment, and is calculated by the field angle of the field angle lens and the object distance. The object distance is the distance between the field angle lens of the spectrometer on the bracket and the surface of the current object being measured, which is measured by the distance measuring device of the spectrometer.

[0096] In some embodiments, the user can choose to actively change the size of the selection area. The selection area of ​​the default size is referred to as the conventional selection area, and the selection area after the selection area size is changed is referred to as the unconventional selection area. The number of the two types of selection areas is not limited. For the unconventional selection area, the spectrometer needs to move on the z-axis in subsequent measurements to adapt to different size ranges.

[0097] In some embodiments, in order to facilitate the selection of a region, the user can use two fingers on the spectrometer screen to zoom in or out on the map to select a region. Correspondingly, the conventional selection range will automatically zoom in or out.

[0098] In some embodiments, after the user clicks to select an area, a prompt message will appear on the screen to prompt the user to confirm the selection. Figure 5 The number 52 is a prompt message, which has two options for the user to choose from. The user can confirm the selection by clicking the "OK" option, and can cancel the selection by clicking the "Cancel" option.

[0099] In some embodiments, the user can make multiple selections at multiple locations.

[0100] Specifically, there are the following situations when selecting a district:

[0101] 1. The user clicks on the map to confirm a selection. If you want to measure multiple locations on the map, click once at each of the corresponding locations to select.

[0102] 2. The user clicks on the map to confirm a selection. If you want to measure the same location on the map multiple times, just click multiple times on the same location to select;

[0103] The selection areas in the above two situations may include conventional or unconventional selection areas, and in some embodiments, often include one or both of the above selection area situations.

[0104] S605, the spectrometer determines that the one or more selected area marking areas are one or more areas to be measured, and adjusts the current measurement area to the one or more areas to be measured;

[0105] After the user confirms to measure, the bracket will move and move the spectrometer to the designated selection mark area according to the selection order, that is, adjust the current measurement area to one or more areas to be measured in sequence.

[0106] In some embodiments, to improve work efficiency, the spectrometer may not measure in the order of the selected areas. The spectrometer may plan a shortest route that can measure all selected areas and issue instructions to let the bracket move along the shortest route. For unconventional selected areas in some embodiments, although the position center can be located according to the laser cross, its size is inconsistent with the current measurement range. The bracket can move up and down on the z-axis to adapt the current measurement area to the corresponding unconventional selected area size.

[0107] Specifically, when planning a route, you can follow the following principles:

[0108] 1. When moving from one position to the next, the x-axis, y-axis, and z-axis can move simultaneously to ensure that the route taken is the shortest straight line;

[0109] 2. Divide the constituencies and measure the constituencies together to avoid unnecessary travel time;

[0110] 3. For unconventional selections, the one-way principle is generally adopted, that is, measurement is carried out in sequence from large to small or from small to large according to the selection range. At this time, the z-axis only needs to move in one direction, and there is no need to move back and forth to waste efficiency.

[0111] In compliance with the above principles, route planning can be carried out according to the following steps:

[0112] 1. The spectrometer splits the mother map into multiple sub-maps, and the sub-maps ensure that their selection density is as large as possible; the selection density refers to the number of selection parts in the unit sub-map area, and the more the density, the greater the density;

[0113] 2. The spectrometer compares the running routes of multiple areas to be measured in the measurement sub-map and plans the shortest route;

[0114] 3. The spectrometer plans the shortest route connecting all sub-maps and sets the connected overall route as the final measurement operation route.

[0115] After executing the above route planning, the spectrometer can run according to the planned route, so that the current measurement area corresponds to multiple areas to be measured in sequence, which is convenient for subsequent measurements.

[0116] S606: The spectrometer detects spectral information of the one or more areas to be measured.

[0117] The selected area is the area to be measured. When the spectrometer reaches the designated area to be measured in sequence, the spectral information of the area to be measured will be measured.

[0118] In some embodiments, after measuring the spectral information of all selected areas, the spectrometer will display the spectrometer on a map, such as Figure 5As shown in (b), 531, 532, and 533 are displayed spectrum graphs. Users can collect and analyze spectral information in a large range based on the spectrum graphs to improve measurement efficiency.

[0119] In some embodiments, the user can click on the spectrum graph displayed on the parent map to enter the detail page, which will display more information about the corresponding area, such as corresponding photos, distances, etc.

[0120] It is understandable that the method for measuring spectral information provided in the above embodiment is not for the user to carry out calibration and detection with the spectrometer himself, but through a visual map display within the range area. Allowing users to directly select the corresponding areas in batches can realize automatic detection of multiple areas within the range, and after the detection, the detection results of each area can be simply observed. Visual display is more conducive to the user's analysis of the data in the area, improves the detection accuracy and efficiency, and enhances the user experience.

[0121] The following describes the spectrometer in the embodiment of the present application from the perspective of the module. Figure 7 , is a schematic diagram of the functional module structure of the spectrometer in an embodiment of the present application.

[0122] The spectrometer 700 comprises:

[0123] Two straight laser pointers 701 are used to form a laser cross center located on the central axis of the field angle lens on the surface of the object to be measured, and the laser cross center can indicate the center of the current measurement area;

[0124] Display module 702, used to display the current measurement area; the current measurement area is generated by the spectrometer according to the current object distance and the center of the current measurement area, combined with the field of view angle of the field of view lens of the spectrometer; the current object distance refers to the current distance between the spectrometer and the surface of the object to be measured;

[0125] An adjustment module 703 is used to adjust the current measurement area to the area to be measured based on the user's adjustment operation;

[0126] The measuring module 704 is used to measure the spectral information of the area to be measured.

[0127] In some embodiments, the lasers emitted by the two straight laser pointers 701 intersect perpendicularly at the central axis of the field of view angle lens, and are used to form a laser cross located on the central axis of the field of view angle lens on the surface of the object to be measured. The center of the laser cross can be used to indicate the center of the current measurement area.

[0128] In some embodiments, the spectrometer further includes: a bracket 705 for fixing the measuring part of the spectrometer and, in response to the instruction of the spectrometer, making the measuring part of the spectrometer move in the x-axis, y-axis and z-axis in the spatial position;

[0129] The adjustment module 703 specifically includes:

[0130] The mobile scanning unit 7031 is used to respond to the user's start instruction and move and scan all images in the movable area;

[0131] A mother map display unit 7032 is used to display a mother map including all images of the movable area on the screen after synthesizing the scanned images;

[0132] A selection area display unit 7033 is used to respond to one or more selection area operations of the user on the mother map and display one or more selection area mark areas on the mother map;

[0133] The adjusting unit 7034 is configured to adjust the current measurement area to the one or more areas to be measured after determining that the one or more selected area marking areas are the corresponding one or more areas to be measured.

[0134] In some embodiments, there are multiple areas to be measured; the adjustment unit 7034 specifically includes:

[0135] The route planning subunit 70341 is used to compare the operation routes for measuring the multiple areas to be measured and plan the shortest route;

[0136] The route operation subunit 70342 is used to operate the spectrometer along the shortest route and adjust the current measurement area to the multiple areas to be measured.

[0137] The route planning subunit 70341 specifically includes:

[0138] The map splitting subunit 703411 is used to split the mother map into multiple sub-maps according to the density of the selected area; the density of the selected area refers to the number of selected areas in the unit sub-map area, and the more the selected areas, the greater the density;

[0139] The route comparison subunit 703412 is used to compare the running routes of measuring multiple areas to be measured in the submap and plan the shortest route;

[0140] The route summary subunit 703413 is used to connect the shortest routes of all the sub-maps and determine the connected overall route as the final measurement operation route.

[0141] In some embodiments, the spectrometer further includes: a result display module 706, which is used to display the measurement results of the spectral information of the multiple areas to be measured on the mother map after the spectral information of the multiple areas to be measured is measured.

[0142] In some embodiments, the multiple areas to be measured in the selected area display unit 7033 include a conventional area and an unconventional area, the size of the conventional area is the same as that of the current measurement area, and the size of the unconventional area is different from that of the current measurement area;

[0143] The corresponding route operation subunit 70342 also includes:

[0144] The conventional route operation subunit 703421 is used to adjust the current measurement area position to the corresponding conventional area position during the process of running to the conventional area by the shortest route;

[0145] The unconventional route operation subunit 703422 is used to adjust the current measurement area position to the corresponding unconventional area position during the process of running to the unconventional area along the shortest route, and then move in the z-axis direction to make the current measurement area adapt to the size of the corresponding unconventional area.

[0146] The spectrometer in the embodiment of the present application is described above from the perspective of modular functional entities. The spectrometer in the embodiment of the present application is described below from the perspective of hardware processing. Figure 8 , is a schematic diagram of a physical device structure of a spectrometer in an embodiment of the present invention.

[0147] It should be noted that Figure 8 The structure of the spectrometer shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0148] like Figure 8 As shown, the spectrometer includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method described in the above embodiment. In RAM 803, various programs and data required for system operation are also stored. CPU 801, ROM 802 and RAM 803 are connected to each other through bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0149] refer to Figure 2 and Figure 8, the following components are connected to the I / O interface 805: an input section 806 for inputting information including the field angle lens 12, the camera lens 11, the distance measuring device, etc.; an output section 807 including the laser pointers 201 and 202, the liquid crystal display (LCD), and the speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that the computer program read therefrom is installed into the storage section 808 as needed.

[0150] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the present invention are performed.

[0151] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.

[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] Specifically, the spectrometer of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the spectral information measurement method provided in the above embodiment is implemented.

[0154] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the spectrometer described in the above embodiment; or may exist independently without being assembled into the spectrometer. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the spectrometer, the spectrometer implements the method provided in the above embodiment.

[0155] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0156] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present invention.

[0157] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the embodiments disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the present invention.

[0158] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for measuring spectral information, applied to a spectrometer, characterized in that: The spectrometer includes two straight laser indicators, which are used to form a laser cross center located on the central axis of the field angle lens on the surface of the object to be measured, and the laser cross center can indicate the center of the current measurement area. The method includes: The spectrometer displays the current measurement area; the current measurement area is generated by the spectrometer according to the current object distance and the center of the current measurement area, combined with the field of view angle of the field of view lens of the spectrometer; the current object distance refers to the current distance between the spectrometer and the surface of the object to be measured; Based on the user's adjustment operation, the spectrometer adjusts the current measurement area to the area to be measured; The spectrometer measures spectral information of the area to be measured.

2. The method according to claim 1, characterized in that The lasers emitted by the two straight laser pointers intersect perpendicularly with the central axis of the field angle lens, and are used to form a laser cross located on the central axis of the field angle lens on the surface of the object to be measured. The center of the laser cross can be used to indicate the center of the current measurement area.

3. The method according to claim 1, characterized in that The spectrometer further comprises: a bracket for fixing a measuring part of the spectrometer and, in response to an instruction of the spectrometer, causing the measuring part of the spectrometer to move along an x-axis, a y-axis and a z-axis in a spatial position; The spectrometer adjusts the current measurement area to the area to be measured based on the user's adjustment operation, specifically including: In response to a user's start instruction, the spectrometer moves to scan all images within the movable area; After synthesizing the scanned images, the spectrometer displays a mother map including all images of the movable area on the screen; In response to one or more selection operations on the mother map by the user, the spectrometer displays one or more selection mark areas on the mother map; After determining that the one or more selected area marking areas are corresponding to the one or more areas to be measured, the spectrometer adjusts the current measurement area to the one or more areas to be measured.

4. The method according to claim 3, characterized in that There are multiple areas to be measured; The spectrometer adjusts the current measurement area to the multiple areas to be measured, specifically including: The spectrometer compares the operation routes for measuring the multiple areas to be measured and plans the shortest route; The spectrometer runs along the shortest route and adjusts the current measurement area to the multiple areas to be measured.

5. The method according to claim 4, characterized in that The spectrometer compares the operation routes for measuring the multiple areas to be measured and plans the shortest route, specifically including: The spectrometer splits the mother map into multiple sub-maps according to the density of the selected areas; the density of the selected areas refers to the number of selected areas in the unit sub-map area, and the more the selected areas, the greater the density; The spectrometer compares the running routes of measuring a plurality of areas to be measured in the sub-map, and plans the shortest route; The spectrometer plans the shortest route connecting all the sub-maps, and sets the connected overall route as the final measurement operation route.

6. The method according to claim 4, characterized in that After the spectrometer measures the spectral information of the plurality of areas to be measured, the method further includes: After the spectral information of the multiple areas to be measured is measured, the spectrometer displays the spectral information measurement results of the multiple areas to be measured on the mother map.

7. The method according to claim 4, characterized in that The multiple areas to be measured include conventional areas and unconventional areas, the size of the conventional areas is the same as that of the current measurement area, and the size of the unconventional areas is different from that of the current measurement area; The spectrometer runs along the shortest route, and adjusts the current measurement area to the multiple areas to be measured, specifically including: In the process of running to the conventional area by the shortest route, the spectrometer adjusts the current measurement area position to the corresponding conventional area position; In the process of running to the unconventional area along the shortest route, the spectrometer adjusts the position of the current measurement area to the corresponding position of the unconventional area, and then moves in the z-axis direction to make the current measurement area adapt to the size of the corresponding unconventional area.

8. A spectrometer, characterized in that: The spectrometer comprises: Two straight laser pointers are used to form a laser cross center located on the central axis of the field angle lens on the surface of the object to be measured, and the laser cross center can indicate the center of the current measurement area; A display module is used to display the current measurement area; the current measurement area is generated by the spectrometer according to the current object distance and the center of the current measurement area, combined with the field of view angle of the field of view lens of the spectrometer; the current object distance refers to the current distance between the spectrometer and the surface of the object to be measured; An adjustment module, used for adjusting the current measurement area to the area to be measured based on the user's adjustment operation; The measuring module is used to measure the spectral information of the area to be measured.

9. A spectrometer, characterized in that: The spectrometer comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the spectrometer executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a spectrometer, the spectrometer is caused to perform the method according to any one of claims 1 to 7.