Disclosure of Invention
In view of the above, an object of the present invention is to provide a ground object spectrometer capable of detecting and simultaneously accurately acquiring the area of a detected region and height information of the detected region.
The embodiment of the invention provides a ground object spectrometer, which comprises a ground object spectrometer body, a distance measuring sensor and a detecting head which are arranged on a first side surface of the ground object spectrometer body, an angle sensor and a controller which are arranged in the ground object spectrometer, and a display screen which is arranged on a second side surface opposite to the first side surface; the controller is electrically connected with the distance measuring sensor, the detecting head, the angle sensor and the display screen; executable code is stored within the controller, the executable code being executable by the controller to implement the steps of:
acquiring angle information of the ground feature spectrometer detected by the angle sensor;
acquiring distance information between the feature spectrometer body and a measured area detected by the distance measuring sensor;
acquiring spectral information of a detected area detected by a detecting head;
calculating the area of the measured area according to the angle information, the distance information and the field angle of the probe;
and displaying the area of the detected area and the spectrum information on a display screen.
Preferably, the angle sensor is a gyroscope sensor.
Preferably, the distance measuring sensor is an infrared distance measuring sensor.
Preferably, the area of the measured region is calculated according to the angle information, the distance information and the field angle of the probe, specifically:
when the angle information β is 90 degrees, judging whether the distance information is greater than a preset threshold value;
if not, the diameter of the measured region is Y ═ D +2 × tan (A/2);
if yes, the diameter of the measured area is Y-2X tan (A/2);
wherein D is the diameter of the probe head, X is the distance information, and A is the angle of view of the probe head.
Preferably, the preset threshold is 2 meters.
Preferably, when the angle information β is not 90 degrees, the diameter Y of the measured region is h [ tan (β + α) -tan (β + α) ];
wherein h is X cos β is a/2.
Preferably, the ground object spectrometer further comprises a camera arranged on the first side face; and the display screen also simultaneously displays the image information of the measured area obtained by the shooting of the camera.
In the embodiment, the angle sensor and the ranging sensor are additionally arranged, so that the area of the measured area, the height information and the angle information during measurement can be accurately and quickly acquired when the surface feature spectrometer is used, and subsequent data sorting and analysis are facilitated.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 4, an embodiment of the invention provides a ground object spectrometer, which includes a ground object spectrometer body 10, a distance measuring sensor 20 and a detecting head 30 disposed on a first side surface 11 of the ground object spectrometer body 10, an angle sensor 40 and a controller 50 disposed in the ground object spectrometer, and a display screen 60 disposed on a second side surface 12 opposite to the first side surface 11; the controller 50 is electrically connected with the distance measuring sensor 20, the detecting head 30, the angle sensor 40 and the display screen 50; the controller 50 has stored therein executable code that can be executed by the controller to implement the steps of:
and S101, acquiring the angle information of the surface feature spectrometer detected by the angle sensor.
In this embodiment, the angle sensor 40 may be a gyroscope sensor, which is disposed in the geophysical spectrometer body 10 and can measure the angle information of the geophysical spectrometer body 10.
In this embodiment, the gyro sensor may be of a type MC3430, which may measure an angle in the range of 0-180 degrees. Of course, in other embodiments of the present invention, other types of gyro sensors may be adopted according to actual needs, and the present invention is not limited in particular.
And S102, acquiring distance information between the feature spectrometer body and the region to be measured, which is detected by the distance measuring sensor.
In this embodiment, the distance measuring sensor 20 may be an infrared distance measuring sensor, which is fixed on the first side surface 11 together with the detecting head 30, and when the detecting head 30 sends a detection signal to the measured area, the distance measuring sensor 20 simultaneously and simultaneously obtains distance information between the feature spectrometer and the measured area, where the distance information is linear distance information between the distance measuring sensor 20 and the measured area, and is not a vertical height of the feature spectrometer.
In this embodiment, the model of the infrared distance measuring sensor may be GY-53V L53L 1x, however, in other embodiments of the present invention, other models of infrared distance measuring sensors may be adopted according to actual needs, and the present invention is not limited specifically.
S103, acquiring spectral information of the detected area detected by the detecting head.
In this embodiment, during detection, the detection head 30 can emit detection light with a predetermined wavelength, and after the detection light is emitted to the detected region, the detection light generates raman scattering on the surface of the object in the detected region and returns spectral information.
The detecting head 30 generally has a certain angle of view, that is, the detecting range is determined by the angle of view, and the angle of view may be selected to be 1/8/15/25 degrees according to actual needs, and the invention is not limited in detail.
And S104, calculating the area of the measured area according to the angle information, the distance information and the field angle of the detecting head.
As shown in fig. 5, in this embodiment, when the angle information β is 90 degrees, that is, the detection direction of the feature spectrometer is perpendicular to the measured area, the distance information is equal to the vertical height of the feature spectrometer.
In which, since the probing tip 30 itself has a certain diameter, if the height is relatively low, the influence of the diameter of the probing tip 30 itself cannot be completely ignored.
Therefore, when calculating the area of the detected region, it is first determined whether the distance information is greater than a preset threshold (e.g., set to 1 meter). Wherein:
if the distance information is smaller than the preset threshold value, the diameter Y of the measured area is as follows:
Y=D+2*X*tan(A/2);
if the distance information is larger than the preset threshold value, the diameter Y of the measured area is as follows:
Y=2*X*tan(A/2)。
here, D is the diameter of the probe head 30, X is distance information, and a is the angle of view of the probe head 30.
In this embodiment, as shown in fig. 6, if the angle information β is not 90 degrees, it indicates that the detection direction of the feature spectrometer is tilted, and the measured area is elliptical, so it is necessary to perform calculation according to the angle information to obtain the major axis and the minor axis of the measured area and the vertical height of the feature spectrometer:
in fig. 6, w is the length of a solid line, z is the length of a broken line, and z is h [ tan (β + α) -tan β ], α is a/2.
w can be calculated by the cosine equation
The right angle property can also be used to solve
The length of the major axis of the ellipse is designated as a and the minor axis is designated as b. Then there are:
2a=h[tan(β+α)-tan(β-α)];
line BC is the tangent line of the ellipse to the circle, and line OB is the line connecting the vertex and the tangent edge point.
The triangle in which line OB is located is a right triangle, and knowing a cathetus x and a corner α, half the length of line BC is xtan α. the length of line DE is xtan α
The coordinate system is established with the center point of the ellipse as the origin, the major axis as the x-axis, and the minor axis as the y-axis, then the intersection of line OB and line BC and the coordinates of the points on the ellipse are (a-z, xtan α).
By the equation of an ellipse
Knowing a and the coordinates of a point on the ellipse (a-z, xtan α), substituting into the ellipse equation can calculate the value of the semi-minor axis b.
From this, the area of the ellipse is S ═ pi ab.
And S105, displaying the area and the spectrum information of the detected area on a display screen.
In this embodiment, after the area and the spectral information of the measured area and the vertical height of the surface feature spectrometer are obtained, they may be displayed on the display screen 60, so that the user may visually obtain the detection result of this time, and the subsequent classification and analysis of data is facilitated.
Further, the terrestrial object spectrometer may further include a camera 70 disposed on the first side surface 11; the display screen 60 also simultaneously displays the image information of the measured area captured by the camera 70.
As shown in fig. 7, in this embodiment, the display screen 60 displays the image and the area of the detected region and the measurement height and the measurement angle of the surface feature spectrometer on the left side thereof, and displays the corresponding spectrum information on the right side thereof, so that the user can more comprehensively acquire and store the current detection condition, thereby facilitating the subsequent data classification and analysis.
In summary, in this embodiment, the angle sensor and the distance measuring sensor are added to the surface feature spectrometer, so that the surface feature spectrometer can accurately and quickly acquire the area, the measurement height and the measurement angle information of the measured area when in use, and subsequent data sorting and analysis are facilitated.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.