WO2018232752A1 - Method, apparatus and device for detecting substance - Google Patents

Method, apparatus and device for detecting substance Download PDF

Info

Publication number
WO2018232752A1
WO2018232752A1 PCT/CN2017/089842 CN2017089842W WO2018232752A1 WO 2018232752 A1 WO2018232752 A1 WO 2018232752A1 CN 2017089842 W CN2017089842 W CN 2017089842W WO 2018232752 A1 WO2018232752 A1 WO 2018232752A1
Authority
WO
WIPO (PCT)
Prior art keywords
laser
substance
detected
laser light
intensity
Prior art date
Application number
PCT/CN2017/089842
Other languages
French (fr)
Chinese (zh)
Inventor
黄晓庆
骆磊
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2017/089842 priority Critical patent/WO2018232752A1/en
Priority to CN201780002283.5A priority patent/CN108369190B/en
Publication of WO2018232752A1 publication Critical patent/WO2018232752A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/62Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light
    • G01N21/63Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light optically excited
    • G01N21/65Raman scattering

Definitions

  • the embodiments of the present application relate to the field of electronic technologies, and in particular, to a method, device, and device for detecting substances.
  • Raman spectrometer is mainly used in research institutes, physics and chemistry laboratories in universities, biology and medical fields, to study the determination and confirmation of material components. It can also be used in the criminal investigation and jewelry industry for drug testing and gemstones. Identification.
  • the instrument is simple in structure, easy to operate, fast, efficient and accurate, and is known for its low wavenumber measurement capability.
  • the confocal optical path is designed to achieve higher resolution, and um-level micro-area detection can be performed on the sample surface. Microscopic image measurement.
  • the laser emitting devices of current Raman spectrometer sensors are generally fixed (or manually adjusted), fixed-focus constant light, that is, when detecting a substance, the distance must be adjusted so that the substance is exactly at the focal length of the lens.
  • the related art has at least the following problems: on the one hand, if a darker color object or a lower ignition point object is encountered, it is likely to be directly affected by the thermal effect of laser concentrating light. The substance is ignited and even causes a fire. On the other hand, if the child gets it, direct laser radiation can cause serious irreversible damage to the eye.
  • the current Raman spectrometer sensors are mainly used by professionals in the professional field. This problem is not very obvious. However, in the next two years, with the sharp reduction of cost, the Raman spectrometer will enter the civilian market in large quantities, and the problem will become prominent. A big problem that hinders the development of the industry.
  • the embodiment of the present application provides a substance detecting method, device and device, which can adjust a pulse gap according to characteristics of a substance to be detected, and the user experience is good.
  • the solution is to provide a substance detection method for substance detection equipment, including:
  • the third laser light reflected from the substance to be detected Receiving, after receiving the focus, the third laser light reflected from the substance to be detected, measuring the intensity of the third laser, and adjusting the emitted laser parameters according to the measured intensity of the third laser, the parameters including : Laser intensity or laser pulse gap.
  • the distance between the calculation and the substance to be detected includes:
  • a time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
  • the receiving after receiving the third laser reflected from the substance to be detected after focusing, further includes:
  • the TOF It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
  • adjusting the parameters of the emitted laser light according to the intensity of the third laser light comprises:
  • the ratio of the emitted laser on-time and the off-time is reduced.
  • the method further includes:
  • the receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, while the Raman optical path collects the real-time Raman spectrum, and the Raman spectrum of the received subsequent frame laser is compared with the previous frame.
  • the Raman spectrum of the laser is compared. If the similarity of the Raman spectrum obtained by the two measurements is higher than a preset threshold, and the current integration time has reached the requirement, the name of the substance to be detected is determined according to the Raman spectrum. If the integration duration does not meet the requirements, continue to collect Raman spectra and adjust the laser parameters in real time. If the similarity is lower than the preset threshold, the user should be prompted to restart the detection.
  • the first laser is a parallel laser of a pulse waveform or a single intensity parallel laser.
  • a technical solution adopted by the embodiment of the present application is to provide a substance detecting apparatus, including:
  • a laser emitting module configured to control the sensor to emit the first laser to the substance to be detected
  • a focusing module configured to calculate a distance from the to-be-detected substance according to the received second laser reflected from the substance to be detected, and then control the lens to perform focusing according to the distance;
  • An adjustment module configured to measure an intensity of the third laser light according to the received third laser light reflected from the substance to be detected after focusing, and adjust the emitted laser parameter according to the measured intensity of the third laser light
  • the parameters include: laser intensity or laser pulse gap.
  • the focusing module is further configured to:
  • a time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
  • the adjustment module is further configured to:
  • the TOF It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
  • the adjustment module is further configured to:
  • the proportion of the emitted laser on-time and the off-time is reduced.
  • the adjustment module is further configured to:
  • the receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, while the Raman optical path collects the real-time Raman spectrum, and the Raman spectrum of the received subsequent frame laser is compared with the previous frame.
  • the Raman spectrum of the laser is compared. If the similarity of the Raman spectrum obtained by the two measurements is higher than a preset threshold, and the current integration time has reached the requirement, the name of the substance to be detected is determined according to the Raman spectrum. If the integration duration does not meet the requirements, continue to collect Raman spectra and adjust the laser parameters in real time. If the similarity is lower than the preset threshold, the user should be prompted to restart the detection.
  • the first laser is a parallel laser of a pulse waveform or a single intensity parallel laser.
  • a technical solution adopted by the embodiment of the present application is to provide a substance detecting device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described above; For emitting a first laser; the lens is for focusing the first laser emitted by the sensor; and the receiver is for receiving a second laser reflected from the substance to be detected.
  • a technical solution adopted by the embodiments of the present application is to provide a non-transitory computer readable storage medium storing computer executable instructions when the computer executable instructions are When the substance detecting device is executed, the electronic device is caused to perform the method as described above.
  • the embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse through the TOF autofocus, and can increase the convenience of the user, and ensures the convenience of the user. Convergence of laser safety.
  • the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the time can be prevented from being elongated, and the movement of the user's hand causes the non-subject object to be mixed into the Raman spectral data. In the middle, it also prevents misuse and has a significant improvement in the user experience.
  • FIG. 1 is a schematic diagram of a distance measuring principle of a substance detector provided by the present application.
  • FIG. 2 is a schematic diagram of a laser waveform emitted by a substance detector provided by the present application
  • FIG. 3 is a schematic diagram of an application scenario provided by the present application.
  • FIG. 4 is a flow chart of a method for detecting a substance provided by an embodiment of the present application.
  • FIG. 5 is a structural block diagram of a substance detecting apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural view of a substance detecting device provided by the present application.
  • the embodiment of the present application performs ranging by a sensor of a substance detecting device.
  • the substance detecting device includes: a sensor, a receiver, and a lens.
  • the sensor itself emits a laser that emits laser light from the lens of the lens.
  • a receiver is provided beside the lens (or inside the lens) to determine the distance by TOF (Time of Flight) or other methods.
  • the receiver here must be able to get both time information and light intensity information.
  • the ranging is the prior art, and the linear distance of the OA in FIG. 1 can be obtained by the TOF.
  • the light intensity information can be directly obtained from the photoelectric signal of the receiver, and the gap and/or power of the laser pulse can be adjusted according to the intensity of the reflected light.
  • the laser light emitted by the sensor of the substance detecting device of the embodiment of the present application is in the form of a pulse wave instead of a constant laser.
  • the sensor is in operation during the t0 period and the emitted laser has high energy. While in the t1 period, the sensor is off.
  • the subsequent waveform is the same as the waveform of the t0 period
  • the sensor is in the working state
  • the waveform is the same as the waveform of the t1 period
  • the sensor is in the off state.
  • the waveform emitted by the laser at this time is a single intensity constant light.
  • FIG. 3 is a schematic application scenario of a method for detecting a substance according to an embodiment of the present application.
  • the application scenario includes a Raman detector 1 and a substance to be detected 2.
  • the Raman detector 1 emits a parallel laser to the substance 2 to be detected.
  • the default setting of the lens is to emit parallel light without focusing.
  • the lens is directed against the substance to be detected, and after receiving the start detection signal triggered on the user interface, a parallel laser is emitted, and the parallel laser light is a laser beam in the form of a pulse wave as shown in FIG. 2.
  • the Raman detector 1 receives the laser light reflected from the substance 2 to be detected, calculates the distance from the substance 2 to be detected, and performs focusing.
  • the distance between the lens of the Raman detector 1 and the substance to be detected 2 should be kept within a certain range. If it is beyond the autofocus range, it will not be detected correctly.
  • the Raman detector 1 receives the laser light reflected from the substance to be detected 2 after focusing, measures the intensity of the laser light, and adjusts the intensity of the emitted laser light according to the laser intensity. This adjustment is a real-time dynamic adjustment.
  • the Raman detector 1 If the focus intensity received by the Raman detector 1 is less than the preset threshold during the t0 period, the emitted laser light will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards.
  • the Raman detector 1 receives the laser light reflected from the substance 2 to be detected, it can also collect the scattered light, that is, the Raman spectrum, in real time. The substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified to the user.
  • the intensity of the laser emitted by the Raman detector 1 cannot be based on the substance to be detected. Automatic adjustment, which is easy to cause: 1, if you encounter a darker color object or a lower ignition point, due to the thermal effect of laser concentrating, it is likely to directly ignite the test substance, and even cause a fire. 2. If the child gets it, direct laser radiation can cause serious irreversible damage to the eyes.
  • the Raman detector 1 receives the reflected laser light, can automatically focus, and can automatically adjust the time interval of the laser pulse by the reflected light intensity, thereby increasing user use.
  • the convenience also ensures the safety of the concentrated laser.
  • the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the movement of the user's hand due to the lengthening of the time is prevented, and the non-subject object is also mixed into Raman. In the spectral data, it also prevents misoperations and significantly improves the user experience.
  • a substance detecting method is performed when a substance detecting device is used for detecting a substance, and the main body of the method is a substance detecting device, and the method includes:
  • Step 41 The first laser is emitted to the substance to be detected.
  • the default setting of the lens is to emit parallel light without focusing.
  • the specific steps include: the lens is opposite to the substance to be detected, and after receiving the start detection signal triggered on the user interface, a parallel first laser is emitted.
  • the parallel laser emitted is a laser in the form of a pulse wave as shown in Fig. 2.
  • the initial condition t1 is preset to 0, or t0 and t1 are preset fixed data after the test. For example, after receiving a button for starting detection on the user interface, detection is started, and a laser having a pulse gap of t0 is emitted.
  • Step 42 Receive a second laser light reflected from the substance to be detected, calculate a distance from the substance to be detected, and perform focusing according to the distance.
  • the lens of the substance detecting device When the substance to be tested is detected, the lens of the substance detecting device needs to be in focus. When focusing, the distance should not be too far, and should be within a certain range, for example, 1-10cm. Since the focusing distance is limited, the distance between the lens of the substance detecting device and the substance to be detected should be kept within a certain range, and the automatic focusing range will not be detected correctly. If the substance to be detected is a liquid, autofocus cannot be performed according to the detected distance at this time. Even if the image is based on focusing, since there is no significant difference in contrast, autofocus is difficult to succeed, so when detecting the liquid, A prompt is issued prompting the user to manually adjust the focus and lock it.
  • the receiver receives the reflected laser in real time and calculates the distance between the object to be measured and the lens according to the TOF. Specifically, the sensor in the lens calculates the time difference or phase difference between laser emission and reflection, and then converts it into a distance. If the calculated distance is within the focus range, the AF AF module of the lens is automatically adjusted in real time according to the calculated distance so that the laser can accurately focus on the substance to be detected. If the calculated distance exceeds the auto focus range, the user may be prompted to place the object to be tested in a fixed distance interval to restart the measurement, and step 42 is repeated. If the reflected laser is not received, the lens may be facing a farther place. For example, facing the sky, the user should be prompted to place the object to be tested within a fixed distance interval to restart the measurement. Repeat step 41.
  • Step 43 Receive a third laser light reflected from the substance to be detected after focusing, measure the intensity of the third laser, and adjust the emitted laser parameter according to the measured intensity of the third laser.
  • the parameters include: laser intensity or laser pulse gap.
  • the receiver After the lens is in focus, the receiver measures the reflected laser intensity at the focus position. If the substance to be detected is white, it is strongly reflected. If it is black, it is weakly reflected. The reflection intensity of other color substances is between white matter and black matter.
  • the photons of each laser are reflected from the emission to the focus, and the TOF is necessarily a certain value. If the photons from the non-focus are different, the TOF must be different, so it can be judged according to the TOF of the received photons. Whether it is a laser reflected from the focus, and then measuring the intensity of the reflected laser.
  • the TOF may take a range of values to tolerate a certain focus error.
  • the proportion of t0 and t1 in the pulse waveform shown in FIG. 2 is adjusted in real time according to the obtained light intensity information, so as to prevent the dark-colored substance to be detected from endothermic combustion or chemical reaction at a high temperature.
  • the ratio may be calculated as follows:
  • t0+t1 is a fixed set value, where n is a linear scale factor.
  • the focus intensity received by the receiver is less than the preset threshold during the t0 period, the emitted laser light will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards.
  • the received focus intensity is less than the preset threshold, including but not limited to: focusing on an object with a very dark color, or a suspended state, or the object is not In the focus point.
  • the time of material detection is also extended accordingly. At this time, according to the proportion of t0 and t1 in the laser pulse, the remaining time of the user is prompted. .
  • the normal detection is less than 1 s, and it may take 3-5 s after the pulse change.
  • the power of the emitted laser light is adjusted accordingly.
  • the power of the emitted laser light is turned up or down.
  • the receiver After adjusting the emitted laser parameters according to the measured intensity of the third laser, the receiver continues to receive the laser light reflected from the substance to be detected, performs real-time measurement on the intensity of the reflected laser, and adjusts the emitted laser parameters in real time.
  • the scattered light is collected in real time, that is, the Raman spectrum (by the standard Raman detection method, the laser reflection path of the material reflection and scattering is returned, and the Raman spectrum is extracted through the dichroic film and the filter group and integrated. The final Raman line).
  • the measured Raman spectrum of the latter frame can be compared with the Raman spectrum of the previous frame. If the similarity of the Raman spectrum obtained by the two measurements is lower than the preset threshold, it can be determined that the focus has occurred during the measurement.
  • the change or the substance itself changes and the user may be prompted to change the substance to be detected, and the user decides whether to restart the test. For example, at 0.5 s, the gray powder on the table is focused and the light intensity is measured, because the laser is emitted to the table at 0.6 s, or the object is chemically reacted during the laser irradiation due to excessive temperature. A new substance has been generated. If the similarity is higher than the set threshold, and the current detected integration time has reached the requirement, and enough information is collected, the test is ended, the laser is turned off, and the substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified. user.
  • the detected integration duration is insufficient, the information has not been collected enough, and the current is a fixed focal length, repeating step 43 during the t0 period, if the current is autofocus, repeating steps 42, 43 during the t0 period, continuing the information collect.
  • the focal length or auto focus if it enters the t1 period, it waits for the next t0 time point.
  • the embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse by the TOF autofocus, and increases the convenience of the user, and ensures the safety of the concentrated laser. .
  • the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the dark object to be measured under constant laser irradiation can be prevented from absorbing heat or being emitted at a high temperature.
  • the chemical reaction is changed to pulse to prevent heat accumulation.
  • the movement of the user's hand causes the non-measurement object to be mixed into the Raman spectral data, which prevents misoperation and improves the user experience.
  • a substance detecting device for performing substance detection, the device includes: a laser emitting module 51, a focusing module 52, and an adjusting module 53.
  • the laser emitting module 51 controls the sensor to emit the first laser.
  • the focus module 52 calculates the distance from the second laser that is reflected from the substance to be detected, and then controls the lens to focus, and then the adjustment module 53 reflects from the substance to be detected according to the received focus.
  • the third laser light measures the intensity of the third laser light, and adjusts the intensity of the emitted laser light according to the laser intensity.
  • the laser emitting module 51 is configured to control the sensor to emit the first laser to the substance to be detected.
  • the default setting of the optical lens is to emit parallel light without focusing.
  • the specific steps include: after the lens is facing the substance to be detected, and receiving the start detection signal triggered on the user interface, the laser emitting module 51 controls the sensor to emit the parallel laser to the substance to be detected.
  • the parallel laser emitted is a laser in the form of a pulse wave as shown in Fig. 2.
  • the initial condition t1 is preset to 0, or t0 and t1 are preset fixed data after the test. For example, after receiving a button for starting detection on the user interface, detection is started, and a laser having a pulse gap of t0 is emitted.
  • the focusing module 52 is configured to calculate a distance from the to-be-detected substance according to the received second laser reflected from the substance to be detected, and then control the lens to perform focusing according to the distance.
  • the lens of the substance detecting device needs to be in focus.
  • the distance should not be too far, and should be within a certain range, for example, 1-10cm. Since the focusing distance is limited, the distance between the lens of the substance detecting device and the substance to be detected should be kept within a certain range, and the automatic focusing range will not be detected correctly. If the substance to be detected is a liquid, autofocus cannot be performed according to the detected distance at this time. Even if the image is based on focusing, since there is no significant difference in contrast, autofocus is difficult to succeed, so when detecting the liquid, A prompt is issued prompting the user to manually adjust the focus and lock it.
  • the focusing module 52 receives the reflected laser light in real time from the receiver, and calculates the distance between the object to be measured and the lens according to the TOF. Specifically, the sensor in the lens calculates the time difference or phase difference between laser emission and reflection, and then converts it into a distance. If the calculated distance is in the focus range Inside, the AF focus module of the lens is automatically adjusted in real time according to the calculated distance so that the laser can accurately focus on the substance to be detected. If the calculated distance exceeds the auto focus range, the user may be prompted to place the object to be tested within a fixed distance interval to restart the measurement. If the reflected laser is not received, the lens may be facing a distant place. For example, facing the sky, the user should be prompted to place the object to be tested within a fixed distance interval to start measuring again.
  • the adjusting module 53 is configured to measure the intensity of the third laser according to the received third laser reflected from the substance to be detected after focusing, and perform real-time transmission on the intensity of the third laser according to the measured
  • the laser parameters are adjusted, including: laser intensity or laser pulse gap.
  • the receiver After the lens is in focus, the receiver measures the reflected laser intensity at the focus position. If the substance to be detected is white, it is strongly reflected. If it is black, it is weakly reflected. The reflection intensity of other color substances is between white matter and black matter.
  • the adjustment module 53 is calibrated by the optical path TOF of the emitted laser, and the photons of each laser are re-reflected from the emission to the focus, and the TOF thereof is necessarily a determined value. If the photons from the non-focus are different, the TOF is necessarily different, and thus can be based on receiving the reflected photons.
  • the TOF judges whether it is a reflected laser beam, and then measures the light intensity of the reflected laser light.
  • the TOF may take a range of values to tolerate a certain focus error.
  • the measurement module 53 After the measurement module 53 performs the measurement and adjusts the proportion of t0 and t1 in the pulse waveform as shown in FIG. 2 in real time according to the obtained light intensity information, the dark substance to be detected is absorbed by the endothermic combustion or chemical reaction occurs at a high temperature.
  • the ratio may be calculated as follows:
  • T0/(t0+t1) n*y/x; (assuming t0+t1 is a fixed set value)
  • n is the linear scale factor
  • This calculation is a real-time dynamic adjustment. If the focus intensity received by the receiver is less than the preset threshold during the t0 period, the emitted laser will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards.
  • the case where the received focus light intensity is less than the preset threshold includes, but is not limited to, focusing on an object with a very dark color, or a suspended state, or the object is not in the focus point.
  • the time of material detection will be extended accordingly. At this time, according to the proportion of t0 and t1 in the laser pulse, the remaining user is prompted. duration.
  • the normal detection is less than 1 s, and it may take 3-5 s after the pulse change.
  • the power of the emitted laser light is adjusted accordingly.
  • the power of the emitted laser light is turned up or down.
  • the adjustment module 53 adjusts the emitted laser parameters according to the measured intensity of the third laser, and continues to receive the laser light reflected from the substance to be detected, and when the intensity of the reflected laser light is measured in real time, the real-time pull of the reflected laser light can be measured. Mann spectrum. At this time, it is no longer the receiver receiving, but the standard Raman detection method, the material reflection and scattering laser is extended by the laser emission path, the Raman spectrum is extracted through the dichroic color filter and the filter group, and the final is obtained. Raman line. The Raman spectrum of the measured laser of the latter frame can be compared with the Raman spectrum of the previous frame laser.
  • the similarity of the Raman spectrum obtained by the two measurements is lower than a preset threshold, it can be determined during the measurement.
  • the focus has changed or the substance itself has changed.
  • the user can be prompted to change the substance to be detected, and the user decides whether to restart the test. For example, at 0.5 s, the gray powder on the table is focused and the light intensity is measured, because the laser is emitted to the table at 0.6 s, or the object is chemically reacted during the laser irradiation due to excessive temperature. A new substance has been generated. If the similarity is higher than the set threshold, and the current detected integration time has reached the requirement, and enough information is collected, the test is ended, the laser is turned off, and the substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified. user.
  • the detected integration time is not enough, the information has not been collected enough, and the current is a fixed focal length, and the parameters of the emitted laser are adjusted by the adjustment module 53 during the t0 period, if the current is autofocus, at the t0 period
  • the focus is repeatedly performed by the focusing module 52, and the parameters of the emitted laser light are adjusted by the adjustment module 53 to continue the collection of information.
  • manually setting the focal length or auto focus if it enters the t1 period, it waits for the next t0 time point.
  • the embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse by the TOF autofocus, and increases the convenience of the user, and ensures the safety of the concentrated laser. .
  • the erroneous operation such as the movement of the user's hand during the detection process can be prevented, and the non-subject object is also mixed into the Raman spectrum.
  • the user experience is obviously improved.
  • the substance detecting device 60 includes:
  • One or more processors 61, a memory 62, a sensor 63, a lens 64, and a receiver 65 are exemplified by a processor 61 in FIG.
  • the processor 61, the memory 62, the sensor 63, and the receiver 65 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 62 is a non-volatile computer readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules.
  • the processor 61 executes various functional applications and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 62, that is, implementing the above-described substance detecting method.
  • the memory 62 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the substance detecting device, and the like.
  • memory 62 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the one or more modules are stored in the memory 62 and, when executed by the one or more processors 61, perform the substance detection method described above.
  • the sensor 63 is used to emit a parallel laser.
  • the lens 64 is used to focus the parallel laser light emitted by the sensor.
  • the receiver 65 is for receiving laser light reflected from the substance to be detected.
  • the embodiment of the present application provides a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors, such as in FIG.
  • One processor 61 that can make one or more of the above
  • the processor can perform the substance detection method in the above method.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

A method, an apparatus and a device for detecting a substance, the method comprising: transmitting a first laser to a substance to be detected; receiving a second laser reflected from the substance to be detected and, after calculating the distance to the substance to be detected, performing focusing on the basis of the distance; receiving a third laser reflected from the substance to be detected after focusing, measuring the intensity of the third laser and, on the basis of the measured intensity of the third laser, adjusting the parameters of the transmitted laser in real time. The reflected laser is received by means of a receiving device, enabling automatic focusing by means of TOF, and automatic adjustment of the parameters of the laser on the basis of the reflected light intensity. Similarity comparisons are performed on the basis of continuous data collection, and when the laser pulse gap caused by heat absorption of an object automatically increases, it is possible to prevent non-tested objects also being mixed into the Raman spectroscopy data as a result of misoperations such as movement caused by time lengthening, or erroneous test measurement results caused by chemical changes due to high temperatures, thus significantly enhancing the user experience.

Description

一种物质检测方法、装置及设备Material detection method, device and device 技术领域Technical field
本申请实施方式涉及电子技术领域,特别是涉及一种物质检测方法、装置及设备。The embodiments of the present application relate to the field of electronic technologies, and in particular, to a method, device, and device for detecting substances.
背景技术Background technique
拉曼光谱仪主要适用于科研院所、高等院校物理和化学实验室、生物及医学领域等光学方面,研究物质成分的判定与确认;还可以应用于刑侦及珠宝行业进行毒品的检测及宝石的鉴定。该仪器以其结构简单、操作简便、测量快速高效准确,以低波数测量能力著称;采用共焦光路设计以获得更高分辨率,可对样品表面进行um级的微区检测,也可用此进行显微影像测量。Raman spectrometer is mainly used in research institutes, physics and chemistry laboratories in universities, biology and medical fields, to study the determination and confirmation of material components. It can also be used in the criminal investigation and jewelry industry for drug testing and gemstones. Identification. The instrument is simple in structure, easy to operate, fast, efficient and accurate, and is known for its low wavenumber measurement capability. The confocal optical path is designed to achieve higher resolution, and um-level micro-area detection can be performed on the sample surface. Microscopic image measurement.
当前拉曼光谱仪的传感器的激光发射装置一般来说都是功率固定(或手动调节),焦距固定的恒定光,也就是说,在检测物质时,必须调整距离以使物质正好位于镜头焦距上。在实现本申请实施例的过程中,发明人发现相关技术至少存在以下问题:一方面,如果遇到较深颜色的物体或者燃点较低的物体,由于激光聚光的热效应,很可能直接将被测物质点燃,甚至引发火灾。另一方面,如果儿童拿到了,激光直射可能对眼睛造成严重的不可逆的伤害。当前拉曼光谱仪的传感器主要还是专业领域由专业人员使用,此问题还不是很明显,但未来两年内,随着成本的大幅降低,拉曼光谱仪将大量进入民用市场,届时该问题将凸显,成为一个阻碍行业发展的大问题。The laser emitting devices of current Raman spectrometer sensors are generally fixed (or manually adjusted), fixed-focus constant light, that is, when detecting a substance, the distance must be adjusted so that the substance is exactly at the focal length of the lens. In the process of implementing the embodiments of the present application, the inventors have found that the related art has at least the following problems: on the one hand, if a darker color object or a lower ignition point object is encountered, it is likely to be directly affected by the thermal effect of laser concentrating light. The substance is ignited and even causes a fire. On the other hand, if the child gets it, direct laser radiation can cause serious irreversible damage to the eye. The current Raman spectrometer sensors are mainly used by professionals in the professional field. This problem is not very obvious. However, in the next two years, with the sharp reduction of cost, the Raman spectrometer will enter the civilian market in large quantities, and the problem will become prominent. A big problem that hinders the development of the industry.
发明内容Summary of the invention
本申请实施方式提供一种物质检测方法、装置及设备,能够根据被检测物质的特性调节脉冲间隙,用户体验佳。The embodiment of the present application provides a substance detecting method, device and device, which can adjust a pulse gap according to characteristics of a substance to be detected, and the user experience is good.
为解决上述技术问题,第一方面,本申请实施方式采用的一个技术 方案是:提供一种物质检测方法,应用于物质检测设备,包括:In order to solve the above technical problem, the first aspect, a technology adopted by the embodiment of the present application The solution is to provide a substance detection method for substance detection equipment, including:
发射第一激光至待检测物质;Launching a first laser to the substance to be detected;
接收从待检测物质反射的第二激光,计算与所述待检测物质的距离后根据所述距离进行对焦;Receiving a second laser light reflected from the substance to be detected, calculating a distance from the substance to be detected, and performing focusing according to the distance;
接收对焦后从所述待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度对发射的激光参数进行调节,所述参数包括:激光强度或激光脉冲间隙。Receiving, after receiving the focus, the third laser light reflected from the substance to be detected, measuring the intensity of the third laser, and adjusting the emitted laser parameters according to the measured intensity of the third laser, the parameters including : Laser intensity or laser pulse gap.
其中,所述计算与待检测物质的距离包括:Wherein the distance between the calculation and the substance to be detected includes:
通过计算发出所述第一激光与接收所述第二激光的时间差或相位差,然后将所述时间差或相位差换算成距离。A time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
其中,所述接收对焦后从所述待检测物质反射的第三激光之后,还包括:The receiving, after receiving the third laser reflected from the substance to be detected after focusing, further includes:
根据TOF判断所述第三激光是否为从焦点反射回来的激光,如是则对所述第三激光的强度进行测量。It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
其中,所述根据所述第三激光的强度对所述发射的激光的参数进行调节包括:Wherein adjusting the parameters of the emitted laser light according to the intensity of the third laser light comprises:
检测到所述第三激光的强度小于预设阈值时,将所述发射的激光开启时长与关闭时长的比例调小。When it is detected that the intensity of the third laser light is less than a preset threshold, the ratio of the emitted laser on-time and the off-time is reduced.
其中,所述根据测量得到的所述第三激光的强度对发射的激光参数进行调节之后,还包括:Wherein, after adjusting the emitted laser parameters according to the measured intensity of the third laser, the method further includes:
接收器继续接收从待检测物质反射的激光,对所述反射的激光的强度进行实时测量,同时拉曼光路收集实时拉曼光谱,将接收得到的后一帧激光的拉曼光谱与前一帧激光的拉曼光谱进行对比,如两次测量得到的拉曼光谱的相似度高于预设阈值,且当前积分时长已经达到要求,则根据所述拉曼光谱确定所述待检测物质的名称。如果积分时长未达到要求,则继续收集拉曼光谱,并实时调节激光参数。而如果相似度低于预设阈值,则应提示用户重新开始检测。The receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, while the Raman optical path collects the real-time Raman spectrum, and the Raman spectrum of the received subsequent frame laser is compared with the previous frame. The Raman spectrum of the laser is compared. If the similarity of the Raman spectrum obtained by the two measurements is higher than a preset threshold, and the current integration time has reached the requirement, the name of the substance to be detected is determined according to the Raman spectrum. If the integration duration does not meet the requirements, continue to collect Raman spectra and adjust the laser parameters in real time. If the similarity is lower than the preset threshold, the user should be prompted to restart the detection.
其中,所述第一激光为脉冲波形的平行激光或单一强度平行激光。Wherein, the first laser is a parallel laser of a pulse waveform or a single intensity parallel laser.
第二方面,本申请实施方式采用的一个技术方案是:提供一种物质检测装置,包括: In a second aspect, a technical solution adopted by the embodiment of the present application is to provide a substance detecting apparatus, including:
激光发射模块,用于控制传感器发射第一激光至待检测物质;a laser emitting module, configured to control the sensor to emit the first laser to the substance to be detected;
对焦模块,用于根据接收的从待检测物质反射的第二激光计算与待检测物质的距离,然后根据所述距离控制镜头进行对焦;a focusing module, configured to calculate a distance from the to-be-detected substance according to the received second laser reflected from the substance to be detected, and then control the lens to perform focusing according to the distance;
调节模块,用于根据接收的对焦后从待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度对发射的激光参数进行调节,所述参数包括:激光强度或激光脉冲间隙。An adjustment module, configured to measure an intensity of the third laser light according to the received third laser light reflected from the substance to be detected after focusing, and adjust the emitted laser parameter according to the measured intensity of the third laser light The parameters include: laser intensity or laser pulse gap.
其中,所述对焦模块进一步用于:Wherein, the focusing module is further configured to:
通过计算发出所述第一激光与接收所述第二激光的时间差或相位差,然后将所述时间差或相位差换算成距离。A time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
其中,所述调节模块还用于:The adjustment module is further configured to:
根据TOF判断所述第三激光是否为从焦点反射回来的激光,如是则对所述第三激光的强度进行测量。It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
其中,所述调节模块进一步用于:Wherein, the adjustment module is further configured to:
检测到所述第三激光的强度小于预设阈值时,将所述发射的激光开启时长与关闭时长的占比调小。When it is detected that the intensity of the third laser light is less than a preset threshold, the proportion of the emitted laser on-time and the off-time is reduced.
其中,所述调节模块还用于:The adjustment module is further configured to:
接收器继续接收从待检测物质反射的激光,对所述反射的激光的强度进行实时测量,同时拉曼光路收集实时拉曼光谱,将接收得到的后一帧激光的拉曼光谱与前一帧激光的拉曼光谱进行对比,如两次测量得到的拉曼光谱的相似度高于预设阈值,且当前积分时长已经达到要求,则根据所述拉曼光谱确定所述待检测物质的名称。如果积分时长未达到要求,则继续收集拉曼光谱,并实时调节激光参数。而如果相似度低于预设阈值,则应提示用户重新开始检测。The receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, while the Raman optical path collects the real-time Raman spectrum, and the Raman spectrum of the received subsequent frame laser is compared with the previous frame. The Raman spectrum of the laser is compared. If the similarity of the Raman spectrum obtained by the two measurements is higher than a preset threshold, and the current integration time has reached the requirement, the name of the substance to be detected is determined according to the Raman spectrum. If the integration duration does not meet the requirements, continue to collect Raman spectra and adjust the laser parameters in real time. If the similarity is lower than the preset threshold, the user should be prompted to restart the detection.
其中,所述第一激光为脉冲波形的平行激光或单一强度平行激光。Wherein, the first laser is a parallel laser of a pulse waveform or a single intensity parallel laser.
第三方面,本申请实施方式采用的一个技术方案是:提供一种物质检测设备,包括:In a third aspect, a technical solution adopted by the embodiment of the present application is to provide a substance detecting device, including:
至少一个处理器;At least one processor;
一个镜头;a lens
以及,与所述至少一个处理器通信连接的存储器、传感器、以及接 收器;And a memory, a sensor, and a connection in communication with the at least one processor Receiver
其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的方法;所述传感器用于发出第一激光;所述镜头用于将传感器发出的所述第一激光进行聚焦;接收器用于接收从待检测物质中反射回来的第二激光。Wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described above; For emitting a first laser; the lens is for focusing the first laser emitted by the sensor; and the receiver is for receiving a second laser reflected from the substance to be detected.
第四方面,本申请实施方式采用的一个技术方案是:提供一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,当所述计算机可执行指令被物质检测设备执行时,使所述电子设备执行如上所述的方法。In a fourth aspect, a technical solution adopted by the embodiments of the present application is to provide a non-transitory computer readable storage medium storing computer executable instructions when the computer executable instructions are When the substance detecting device is executed, the electronic device is caused to perform the method as described above.
区别于现有技术,本申请实施例通过激光接收器接收反射的激光,能够通过TOF自动对焦并能通过反射光强自动调节激光脉冲的时间间隙,既增加了用户使用的便利性,又保证了汇聚激光使用的安全性。另一方面,因为连续数据采集的相似度比较,在因物体吸热造成的激光脉冲间隙自动加大时,可防止时间拉长,用户手的移动造成非待测物体也被混入拉曼光谱数据中,也就防止了误操作,对用户体验有明显的提升。Different from the prior art, the embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse through the TOF autofocus, and can increase the convenience of the user, and ensures the convenience of the user. Convergence of laser safety. On the other hand, because the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the time can be prevented from being elongated, and the movement of the user's hand causes the non-subject object to be mixed into the Raman spectral data. In the middle, it also prevents misuse and has a significant improvement in the user experience.
附图说明DRAWINGS
图1是本申请提供的物质检测仪的测距原理示意图;1 is a schematic diagram of a distance measuring principle of a substance detector provided by the present application;
图2是本申请提供的物质检测仪发出的激光波形的示意图;2 is a schematic diagram of a laser waveform emitted by a substance detector provided by the present application;
图3是本申请提供的应用场景示意图;3 is a schematic diagram of an application scenario provided by the present application;
图4是本申请实施例提供的一种物质检测方法的流程图;4 is a flow chart of a method for detecting a substance provided by an embodiment of the present application;
图5是本申请实施例提供的一种物质检测装置的结构框图;FIG. 5 is a structural block diagram of a substance detecting apparatus according to an embodiment of the present application; FIG.
图6是本申请提供的一种物质检测设备的结构示意图。FIG. 6 is a schematic structural view of a substance detecting device provided by the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及本申请实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体本申请实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments of the present application described herein are only used to explain the present application and are not intended to limit the application.
参阅图1,本申请实施例通过物质检测设备的传感器进行测距。该 物质检测设备包括:传感器、接收器以及镜头。传感器本身就会发射激光,发出的激光能够从镜头的透镜中射出。但为了能够测距并自动对焦,在镜头旁(或镜头内侧)配备一接收器,以通过TOF(Time of Flight,飞行时间测距法)或其他方法来判定距离。Referring to FIG. 1, the embodiment of the present application performs ranging by a sensor of a substance detecting device. The The substance detecting device includes: a sensor, a receiver, and a lens. The sensor itself emits a laser that emits laser light from the lens of the lens. However, in order to be able to measure distance and autofocus, a receiver is provided beside the lens (or inside the lens) to determine the distance by TOF (Time of Flight) or other methods.
此处的接收器既要能够得到时间信息也要能够得到光强信息。测距为现有技术,通过TOF即可得到图1中OA的直线距离。而光强信息可由接收器的光电信号直接得到,进而可根据反射光强度调整激光脉冲的间隙和/或功率。The receiver here must be able to get both time information and light intensity information. The ranging is the prior art, and the linear distance of the OA in FIG. 1 can be obtained by the TOF. The light intensity information can be directly obtained from the photoelectric signal of the receiver, and the gap and/or power of the laser pulse can be adjusted according to the intensity of the reflected light.
参阅图2,本申请实施例的通过物质检测设备的传感器发出的激光为脉冲波的形式,而非恒定激光。处于t0时段时传感器处于工作状态,发出的激光具有高能量。而处于t1时段时,传感器处于关闭状态。以此类推,当后续的波形与t0时段的波形相同时,传感器处于工作状态,当与t1时段的波形相同时,传感器处于关闭状态。当t1时段为零时,则此时激光发出的波形为单一强度恒定光。Referring to FIG. 2, the laser light emitted by the sensor of the substance detecting device of the embodiment of the present application is in the form of a pulse wave instead of a constant laser. The sensor is in operation during the t0 period and the emitted laser has high energy. While in the t1 period, the sensor is off. By analogy, when the subsequent waveform is the same as the waveform of the t0 period, the sensor is in the working state, and when the waveform is the same as the waveform of the t1 period, the sensor is in the off state. When the t1 period is zero, then the waveform emitted by the laser at this time is a single intensity constant light.
图3是本申请实施例提供一种物质检测方法的可能应用场景。在一些可能应用场景,如图3所示,该应用场景包括拉曼检测仪1及待检测物质2。拉曼检测仪1发射平行激光至待检测物质2。物质检测仪开启后,镜头的默认设置为发出平行光,不聚焦。将镜头对着待检测物质,接收在用户界面上触发的开始检测信号后,发出平行激光,发出的平行激光为图2所示的脉冲波形式的激光。接着,拉曼检测仪1接收从待检测物质2反射的激光,计算与待检测物质2的距离后进行对焦。对焦时,拉曼检测仪1的镜头与待检测物质2的距离应保持在一定范围内,超出自动对焦范围将无法正确检测。拉曼检测仪1接收对焦后从待检测物质2反射的激光,对该激光的强度进行测量,并根据该激光强度进行发射激光强度的调节。此调节为实时动态的调节,如果在t0时段拉曼检测仪1接收到的焦点光强小于预设阈值,发出的激光将被关闭,并提示用户,以防止物体被点燃或造成潜在安全隐患。拉曼检测仪1在接收到从待检测物质2反射的激光时,还可以实时采集散射光,也就是拉曼光谱。根据匹配算法确定此拉曼光谱对应的物质名称并告知用户。FIG. 3 is a schematic application scenario of a method for detecting a substance according to an embodiment of the present application. In some possible application scenarios, as shown in FIG. 3, the application scenario includes a Raman detector 1 and a substance to be detected 2. The Raman detector 1 emits a parallel laser to the substance 2 to be detected. When the substance detector is turned on, the default setting of the lens is to emit parallel light without focusing. The lens is directed against the substance to be detected, and after receiving the start detection signal triggered on the user interface, a parallel laser is emitted, and the parallel laser light is a laser beam in the form of a pulse wave as shown in FIG. 2. Next, the Raman detector 1 receives the laser light reflected from the substance 2 to be detected, calculates the distance from the substance 2 to be detected, and performs focusing. When focusing, the distance between the lens of the Raman detector 1 and the substance to be detected 2 should be kept within a certain range. If it is beyond the autofocus range, it will not be detected correctly. The Raman detector 1 receives the laser light reflected from the substance to be detected 2 after focusing, measures the intensity of the laser light, and adjusts the intensity of the emitted laser light according to the laser intensity. This adjustment is a real-time dynamic adjustment. If the focus intensity received by the Raman detector 1 is less than the preset threshold during the t0 period, the emitted laser light will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards. When the Raman detector 1 receives the laser light reflected from the substance 2 to be detected, it can also collect the scattered light, that is, the Raman spectrum, in real time. The substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified to the user.
现有技术中,拉曼检测仪1发出的激光强度不能够根据待检测物质 进行自动的调节,这样一来,容易造成:1、如果遇到较深颜色的物体或者燃点较低的物体,由于激光聚光的热效应,很可能直接将被测物质点燃,甚至引发火灾。2、如果儿童拿到了,激光直射可能对眼睛造成严重的不可逆的伤害。In the prior art, the intensity of the laser emitted by the Raman detector 1 cannot be based on the substance to be detected. Automatic adjustment, which is easy to cause: 1, if you encounter a darker color object or a lower ignition point, due to the thermal effect of laser concentrating, it is likely to directly ignite the test substance, and even cause a fire. 2. If the child gets it, direct laser radiation can cause serious irreversible damage to the eyes.
请再参阅图3,在本申请实施例提供的可能应用场景中,拉曼检测仪1接收反射的激光,能够自动对焦并能通过反射光强自动调节激光脉冲的时间间隙,既增加了用户使用的便利性,又保证了汇聚激光使用的安全性。另一方面,因为连续数据采集的相似度比较,在因物体吸热造成的激光脉冲间隙自动加大时,可防止因时间拉长造成用户手的移动等使得非待测物体也被混入拉曼光谱数据中,也就防止了误操作,对用户体验有明显的提升。Referring to FIG. 3 again, in a possible application scenario provided by the embodiment of the present application, the Raman detector 1 receives the reflected laser light, can automatically focus, and can automatically adjust the time interval of the laser pulse by the reflected light intensity, thereby increasing user use. The convenience also ensures the safety of the concentrated laser. On the other hand, because the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the movement of the user's hand due to the lengthening of the time is prevented, and the non-subject object is also mixed into Raman. In the spectral data, it also prevents misoperations and significantly improves the user experience.
参阅图4,在一个实施例中,利用物质检测设备进行物质检测时的一种物质检测方法,该方法的执行主体为物质检测设备,所述方法包括:Referring to FIG. 4, in one embodiment, a substance detecting method is performed when a substance detecting device is used for detecting a substance, and the main body of the method is a substance detecting device, and the method includes:
步骤41:发射第一激光至待检测物质。Step 41: The first laser is emitted to the substance to be detected.
物质检测设备开启后,镜头的默认设置为发出平行光,不聚焦。具体步骤包括:镜头对着待检测物质,接收在用户界面上触发的开始检测信号后,发出平行的第一激光。发出的平行激光为图2所示的脉冲波形式的激光,初始情况t1预设为0,或者t0和t1为预设为试验后的固定数据。例如,接收点击用户界面上的开始检测的按键后,开始进行检测,发出脉冲间隙为t0的激光。After the substance detection device is turned on, the default setting of the lens is to emit parallel light without focusing. The specific steps include: the lens is opposite to the substance to be detected, and after receiving the start detection signal triggered on the user interface, a parallel first laser is emitted. The parallel laser emitted is a laser in the form of a pulse wave as shown in Fig. 2. The initial condition t1 is preset to 0, or t0 and t1 are preset fixed data after the test. For example, after receiving a button for starting detection on the user interface, detection is started, and a laser having a pulse gap of t0 is emitted.
步骤42:接收从待检测物质反射的第二激光,计算与所述待检测物质的距离后根据所述距离进行对焦。Step 42: Receive a second laser light reflected from the substance to be detected, calculate a distance from the substance to be detected, and perform focusing according to the distance.
在进行对待检测物质进行检测时,物质检测设备的镜头需进行对焦。进行对焦时,距离不可过远,应在一定范围内,例如1-10cm。由于对焦距离有限,物质检测设备的镜头与待检测物质的距离应保持在一定范围内,超出自动对焦范围将无法正确检测。如果待检测物质是液体,此时不能够根据检测出的距离进行自动对焦,即使是基于图像的对焦,也因为没有明显对比度的差异,自动对焦很难成功,因此在对液体进行检测时,可发出提示,提示用户手动调节焦距并可锁死。 When the substance to be tested is detected, the lens of the substance detecting device needs to be in focus. When focusing, the distance should not be too far, and should be within a certain range, for example, 1-10cm. Since the focusing distance is limited, the distance between the lens of the substance detecting device and the substance to be detected should be kept within a certain range, and the automatic focusing range will not be detected correctly. If the substance to be detected is a liquid, autofocus cannot be performed according to the detected distance at this time. Even if the image is based on focusing, since there is no significant difference in contrast, autofocus is difficult to succeed, so when detecting the liquid, A prompt is issued prompting the user to manually adjust the focus and lock it.
接收器实时接收反射的激光,根据TOF计算出待测物体与镜头的距离。具体为:镜头内的传感器通过计算激光发射和反射的时间差或相位差,然后换算成距离。如果计算得出的距离在对焦范围内,则根据计算的距离实时自动调整镜头的AF对焦模块使激光能够准确对焦到待检测物质上。如果计算得出的距离超过自动对焦范围,则可进行提示用户将待测物体置于固定距离区间内重新开始测量,重复步骤42。如果接收不到反射激光,说明此时镜头可能对着较远的地方,如对着天空,应提示用户将待测物体置于固定距离区间内重新开始测量,重复步骤41。The receiver receives the reflected laser in real time and calculates the distance between the object to be measured and the lens according to the TOF. Specifically, the sensor in the lens calculates the time difference or phase difference between laser emission and reflection, and then converts it into a distance. If the calculated distance is within the focus range, the AF AF module of the lens is automatically adjusted in real time according to the calculated distance so that the laser can accurately focus on the substance to be detected. If the calculated distance exceeds the auto focus range, the user may be prompted to place the object to be tested in a fixed distance interval to restart the measurement, and step 42 is repeated. If the reflected laser is not received, the lens may be facing a farther place. For example, facing the sky, the user should be prompted to place the object to be tested within a fixed distance interval to restart the measurement. Repeat step 41.
步骤43:接收对焦后从所述待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度对发射的激光参数进行调节,所述参数包括:激光强度或激光脉冲间隙。Step 43: Receive a third laser light reflected from the substance to be detected after focusing, measure the intensity of the third laser, and adjust the emitted laser parameter according to the measured intensity of the third laser. The parameters include: laser intensity or laser pulse gap.
镜头进行对焦后,接收器对此时在对焦点位置的反射激光光强进行测量。如果待检测物质是白色则强反射,如是黑色则弱反射,其他颜色物质的反射强度介于白色物质与黑色物质之间。通过发出的激光的光路TOF标定,每个激光的光子从发出到焦点再反射,其TOF必然是确定数值,如果来自非焦点的光子,TOF必然不同,因此可根据接收反射的光子的TOF进行判断是否是从焦点处反射的激光,再对反射的激光进行光强的测量。可选地,该TOF可取一定范围的值,以容忍一定对焦误差。After the lens is in focus, the receiver measures the reflected laser intensity at the focus position. If the substance to be detected is white, it is strongly reflected. If it is black, it is weakly reflected. The reflection intensity of other color substances is between white matter and black matter. By calibrating the optical path TOF of the emitted laser, the photons of each laser are reflected from the emission to the focus, and the TOF is necessarily a certain value. If the photons from the non-focus are different, the TOF must be different, so it can be judged according to the TOF of the received photons. Whether it is a laser reflected from the focus, and then measuring the intensity of the reflected laser. Optionally, the TOF may take a range of values to tolerate a certain focus error.
进行测量后根据得到的光强信息实时调节如图2所示的脉冲波形中t0与t1的占比,以防止深色的待检测物质吸热燃烧或者在高温下发生化学反应。After the measurement, the proportion of t0 and t1 in the pulse waveform shown in FIG. 2 is adjusted in real time according to the obtained light intensity information, so as to prevent the dark-colored substance to be detected from endothermic combustion or chemical reaction at a high temperature.
进行调节时,假设激光的发射强度为x流明,接收器得到的激光光强为y流明,则可能按照如下方式计算占比:When making adjustments, assuming that the emission intensity of the laser is x lumens and the laser intensity obtained by the receiver is y lumens, the ratio may be calculated as follows:
t0/(t0+t1)=n*y/x;T0/(t0+t1)=n*y/x;
假设t0+t1为固定设定值,其中n为线性比例系数。Suppose t0+t1 is a fixed set value, where n is a linear scale factor.
实际采用何种最佳对应关系,需要根据具体设备经过实验得出,此处不做限定。此计算为实时动态的调节,如果在t0时段接收器接收到的焦点光强小于预设阈值,发出的激光将被关闭,并提示用户,以防止物体被点燃或造成潜在安全隐患。接收到的焦点光强小于预设阈值的情况包括但不限于:聚焦到颜色很深的物体,或者悬空状态,或者物体不 在对焦点上。What kind of optimal correspondence is actually used depends on the specific equipment and is not limited here. This calculation is a real-time dynamic adjustment. If the focus intensity received by the receiver is less than the preset threshold during the t0 period, the emitted laser light will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards. The received focus intensity is less than the preset threshold, including but not limited to: focusing on an object with a very dark color, or a suspended state, or the object is not In the focus point.
由于激光脉冲时隙的变化,并依据光学信噪比与积分时间的开方成正比的原理,物质检测的时间也会相应延长,此时根据激光脉冲中t0与t1占比提示用户剩余的时长。正常检测小于1s,脉冲变化后有可能需要3-5s。Due to the change of the laser pulse time slot and the principle that the optical signal-to-noise ratio is proportional to the square of the integration time, the time of material detection is also extended accordingly. At this time, according to the proportion of t0 and t1 in the laser pulse, the remaining time of the user is prompted. . The normal detection is less than 1 s, and it may take 3-5 s after the pulse change.
进行激光强度进行调节时,则相应的调节发射的激光的功率。将发射的激光的功率进行调大或调小。When the laser intensity is adjusted, the power of the emitted laser light is adjusted accordingly. The power of the emitted laser light is turned up or down.
根据测量得到的第三激光的强度对发射的激光参数进行调节之后,接收器继续接收从待检测物质反射的激光,对反射的激光的强度进行实时测量,并实时调节发射激光参数。同时实时采集散射光,也就是拉曼光谱(通过标准的拉曼检测方法,物质反射和散射的激光延激光发射路径返回,通过二向色片和滤光片组提取出拉曼光谱并积分获得最终的拉曼谱线)。将测量得到的后一帧拉曼光谱与前一帧拉曼光谱可进行对比,如果两次测量得到的拉曼光谱的相似度低于预设阈值,可则判定在测量过程中对焦点发生了变化或者物质本身出现了变化,此时可提示用户待检测物质出现了变化,由用户决定是否重新开始检测。例如,在0.5s时对桌子上的灰色粉末进行对焦并测量光强,因不小心在0.6s时激光发射到了桌子上;又或者,物体因温度过高在激光照射过程中发生了化学反应,生成了新的物质。而如果相似度高于设定阈值,且当前检测的积分时长已经达到要求,收集到了足够多的信息,则结束此次测试,激光关闭,根据匹配算法确定此拉曼光谱对应的物质名称并告知用户。After adjusting the emitted laser parameters according to the measured intensity of the third laser, the receiver continues to receive the laser light reflected from the substance to be detected, performs real-time measurement on the intensity of the reflected laser, and adjusts the emitted laser parameters in real time. At the same time, the scattered light is collected in real time, that is, the Raman spectrum (by the standard Raman detection method, the laser reflection path of the material reflection and scattering is returned, and the Raman spectrum is extracted through the dichroic film and the filter group and integrated. The final Raman line). The measured Raman spectrum of the latter frame can be compared with the Raman spectrum of the previous frame. If the similarity of the Raman spectrum obtained by the two measurements is lower than the preset threshold, it can be determined that the focus has occurred during the measurement. The change or the substance itself changes, and the user may be prompted to change the substance to be detected, and the user decides whether to restart the test. For example, at 0.5 s, the gray powder on the table is focused and the light intensity is measured, because the laser is emitted to the table at 0.6 s, or the object is chemically reacted during the laser irradiation due to excessive temperature. A new substance has been generated. If the similarity is higher than the set threshold, and the current detected integration time has reached the requirement, and enough information is collected, the test is ended, the laser is turned off, and the substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified. user.
可选地,如果检测的积分时长不够,信息还未收集够,且当前为手动固定焦距,在t0时段时重复步骤43,如果当前为自动对焦,在t0时段重复步骤42、43,继续信息的收集。上述手动固定焦距或者自动对焦时,如果进入t1时段则等待下一个t0时间点。Optionally, if the detected integration duration is insufficient, the information has not been collected enough, and the current is a fixed focal length, repeating step 43 during the t0 period, if the current is autofocus, repeating steps 42, 43 during the t0 period, continuing the information collect. When manually setting the focal length or auto focus, if it enters the t1 period, it waits for the next t0 time point.
本申请实施例通过激光接收器接收反射的激光,能够通过TOF自动对焦并能通过反射光强自动调节激光脉冲的时间间隙,既增加了用户使用的便利性,又保证了汇聚激光使用的安全性。另一方面,因为连续数据采集的相似度比较,在因物体吸热造成的激光脉冲间隙自动加大时,可防止在恒定激光照射下的深色的被测物体吸热燃烧或者在高温下发 生化学反应,改为脉冲防止热量堆积,用户手的移动造成非待测物体也被混入拉曼光谱数据中,也就防止了误操作,对用户体验有明显的提升。The embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse by the TOF autofocus, and increases the convenience of the user, and ensures the safety of the concentrated laser. . On the other hand, because the similarity of continuous data acquisition is compared, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the dark object to be measured under constant laser irradiation can be prevented from absorbing heat or being emitted at a high temperature. The chemical reaction is changed to pulse to prevent heat accumulation. The movement of the user's hand causes the non-measurement object to be mixed into the Raman spectral data, which prevents misoperation and improves the user experience.
参阅图5,在另一个实施例中,用于进行物质检测的一种物质检测装置,该装置包括:激光发射模块51、对焦模块52以及调节模块53,激光发射模块51控制传感器发射第一激光至待检测物质,对焦模块52根据接收的从待检测物质反射的第二激光计算与待检测物质的距离,然后控制镜头进行对焦,接着,调节模块53根据接收的对焦后从待检测物质反射的第三激光,对该第三激光的强度进行测量,并根据该激光强度进行发射激光强度的调节。Referring to FIG. 5, in another embodiment, a substance detecting device for performing substance detection, the device includes: a laser emitting module 51, a focusing module 52, and an adjusting module 53. The laser emitting module 51 controls the sensor to emit the first laser. The focus module 52 calculates the distance from the second laser that is reflected from the substance to be detected, and then controls the lens to focus, and then the adjustment module 53 reflects from the substance to be detected according to the received focus. The third laser light measures the intensity of the third laser light, and adjusts the intensity of the emitted laser light according to the laser intensity.
具体的:specific:
激光发射模块51,用于控制传感器发射第一激光至待检测物质。The laser emitting module 51 is configured to control the sensor to emit the first laser to the substance to be detected.
物质检测装置开启后,光学镜头的默认设置为发出平行光,不聚焦。具体步骤包括:镜头对着待检测物质,接收在用户界面上触发的开始检测信号后,激光发射模块51控制传感器发射平行激光至待检测物质。发出的平行激光为图2所示的脉冲波形式的激光,初始情况t1预设为0,或者t0和t1为预设为试验后的固定数据。例如,接收点击用户界面上的开始检测的按键后,开始进行检测,发出脉冲间隙为t0的激光。After the substance detection device is turned on, the default setting of the optical lens is to emit parallel light without focusing. The specific steps include: after the lens is facing the substance to be detected, and receiving the start detection signal triggered on the user interface, the laser emitting module 51 controls the sensor to emit the parallel laser to the substance to be detected. The parallel laser emitted is a laser in the form of a pulse wave as shown in Fig. 2. The initial condition t1 is preset to 0, or t0 and t1 are preset fixed data after the test. For example, after receiving a button for starting detection on the user interface, detection is started, and a laser having a pulse gap of t0 is emitted.
对焦模块52,用于根据接收的从待检测物质反射的第二激光计算与待检测物质的距离,然后根据所述距离控制镜头进行对焦。The focusing module 52 is configured to calculate a distance from the to-be-detected substance according to the received second laser reflected from the substance to be detected, and then control the lens to perform focusing according to the distance.
物质检测装置在进行对待检测物质进行检测时,物质检测装置的镜头需进行对焦。镜头进行对焦时,距离不可过远,应在一定范围内,例如1-10cm。由于对焦距离有限,物质检测装置的镜头与待检测物质的距离应保持在一定范围内,超出自动对焦范围将无法正确检测。如果待检测物质是液体,此时不能够根据检测出的距离进行自动对焦,即使是基于图像的对焦,也因为没有明显对比度的差异,自动对焦很难成功,因此在对液体进行检测时,可发出提示,提示用户手动调节焦距并可锁死。When the substance detecting device detects the substance to be detected, the lens of the substance detecting device needs to be in focus. When the lens is in focus, the distance should not be too far, and should be within a certain range, for example, 1-10cm. Since the focusing distance is limited, the distance between the lens of the substance detecting device and the substance to be detected should be kept within a certain range, and the automatic focusing range will not be detected correctly. If the substance to be detected is a liquid, autofocus cannot be performed according to the detected distance at this time. Even if the image is based on focusing, since there is no significant difference in contrast, autofocus is difficult to succeed, so when detecting the liquid, A prompt is issued prompting the user to manually adjust the focus and lock it.
对焦模块52对接收器实时接收反射的激光,根据TOF计算出待测物体与镜头的距离。具体为:镜头内的传感器通过计算激光发射和反射的时间差或相位差,然后换算成距离。如果计算得出的距离在对焦范围 内,则根据计算的距离实时自动调整镜头的AF对焦模块使激光能够准确对焦到待检测物质上。如果计算得出的距离超过自动对焦范围,则可进行提示用户将待测物体置于固定距离区间内重新开始测量。如果接收不到反射激光,说明此时镜头可能对着较远的地方,如对着天空,应提示用户将待测物体置于固定距离区间内重新开始测量。The focusing module 52 receives the reflected laser light in real time from the receiver, and calculates the distance between the object to be measured and the lens according to the TOF. Specifically, the sensor in the lens calculates the time difference or phase difference between laser emission and reflection, and then converts it into a distance. If the calculated distance is in the focus range Inside, the AF focus module of the lens is automatically adjusted in real time according to the calculated distance so that the laser can accurately focus on the substance to be detected. If the calculated distance exceeds the auto focus range, the user may be prompted to place the object to be tested within a fixed distance interval to restart the measurement. If the reflected laser is not received, the lens may be facing a distant place. For example, facing the sky, the user should be prompted to place the object to be tested within a fixed distance interval to start measuring again.
调节模块53,用于用于根据接收的对焦后从待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度实时对发射的激光参数进行调节,所述参数包括:激光强度或激光脉冲间隙。The adjusting module 53 is configured to measure the intensity of the third laser according to the received third laser reflected from the substance to be detected after focusing, and perform real-time transmission on the intensity of the third laser according to the measured The laser parameters are adjusted, including: laser intensity or laser pulse gap.
镜头进行对焦后,接收器对此时在对焦点位置的反射激光光强进行测量。如果待检测物质是白色则强反射,如是黑色则弱反射,其他颜色物质的反射强度介于白色物质与黑色物质之间。调节模块53通过发出的激光的光路TOF标定,每个激光的光子从发出到焦点再反射,其TOF必然是确定数值,如果来自非焦点的光子,TOF必然不同,因此可根据接收反射的光子的TOF进行判断是否是反射的激光,再对反射的激光进行光强的测量。可选地,该TOF可取一定范围的值,以容忍一定对焦误差。After the lens is in focus, the receiver measures the reflected laser intensity at the focus position. If the substance to be detected is white, it is strongly reflected. If it is black, it is weakly reflected. The reflection intensity of other color substances is between white matter and black matter. The adjustment module 53 is calibrated by the optical path TOF of the emitted laser, and the photons of each laser are re-reflected from the emission to the focus, and the TOF thereof is necessarily a determined value. If the photons from the non-focus are different, the TOF is necessarily different, and thus can be based on receiving the reflected photons. The TOF judges whether it is a reflected laser beam, and then measures the light intensity of the reflected laser light. Optionally, the TOF may take a range of values to tolerate a certain focus error.
调节模块53进行测量后并根据得到的光强信息实时调节如图2所示的脉冲波形中t0与t1的占比,以防止深色的待检测物质吸热燃烧或者在高温下发生化学反应。After the measurement module 53 performs the measurement and adjusts the proportion of t0 and t1 in the pulse waveform as shown in FIG. 2 in real time according to the obtained light intensity information, the dark substance to be detected is absorbed by the endothermic combustion or chemical reaction occurs at a high temperature.
进行调节时,假设激光的发射强度为x流明,接收器得到的激光光强为y流明,则可能按照如下方式计算占比:When making adjustments, assuming that the emission intensity of the laser is x lumens and the laser intensity obtained by the receiver is y lumens, the ratio may be calculated as follows:
t0/(t0+t1)=n*y/x;(假设t0+t1为固定设定值)T0/(t0+t1)=n*y/x; (assuming t0+t1 is a fixed set value)
其中n为线性比例系数。Where n is the linear scale factor.
实际采用何种对应关系为最佳需要根据具体设备经过实验得出,此处不做限定。此计算为实时动态的调节,如果在t0时段接收器接收到的焦点光强小于预设阈值,关闭发出的激光将,并提示用户,以防止物体被点燃或造成潜在安全隐患。接收到的焦点光强小于预设阈值的情况包括但不限于:聚焦到颜色很深的物体,或者悬空状态,或者物体不在对焦点上。 What kind of correspondence is actually used is the best need according to the specific equipment through experiments, not limited here. This calculation is a real-time dynamic adjustment. If the focus intensity received by the receiver is less than the preset threshold during the t0 period, the emitted laser will be turned off and the user will be prompted to prevent the object from being ignited or causing potential safety hazards. The case where the received focus light intensity is less than the preset threshold includes, but is not limited to, focusing on an object with a very dark color, or a suspended state, or the object is not in the focus point.
由于激光脉冲时隙的变化,并依据光学信噪比与积分时间的开方成正比的原理,物质检测的时间也会相应延长,此时了根据激光脉冲中t0与t1占比提示用户剩余的时长。正常检测小于1s,脉冲变化后有可能需要3-5s。Due to the change of the laser pulse time slot and the principle that the optical signal-to-noise ratio is proportional to the square of the integration time, the time of material detection will be extended accordingly. At this time, according to the proportion of t0 and t1 in the laser pulse, the remaining user is prompted. duration. The normal detection is less than 1 s, and it may take 3-5 s after the pulse change.
进行激光强度进行调节时,则相应的调节发射的激光的功率。将发射的激光的功率进行调大或调小。When the laser intensity is adjusted, the power of the emitted laser light is adjusted accordingly. The power of the emitted laser light is turned up or down.
调节模块53根据测量得到的第三激光的强度对发射的激光参数进行调节之后,继续接收从待检测物质反射的激光,进行反射的激光的强度进行实时测量时,可测量得到反射激光的实时拉曼光谱。此时不再是接收器接收,而是通过标准的拉曼检测方法,物质反射和散射的激光延激光发射路径返回,通过二向色片和滤光片组提取出拉曼光谱并积分获得最终的拉曼谱线。将测量得到的后一帧激光的拉曼光谱与前一帧激光的拉曼光谱可进行对比,如果两次测量得到的拉曼光谱的相似度低于预设阈值,可则判定在测量过程中对焦点发生了变化或者物质本身出现了变化,此时可提示用户待检测物质出现了变化,由用户决定是否重新开始检测。例如,在0.5s时对桌子上的灰色粉末进行对焦并测量光强,因不小心在0.6s时激光发射到了桌子上;又或者,物体因温度过高在激光照射过程中发生了化学反应,生成了新的物质。而如果相似度高于设定阈值,且当前检测的积分时长已经达到要求,收集到了足够多的信息,则结束此次测试,激光关闭,根据匹配算法确定此拉曼光谱对应的物质名称并告知用户。The adjustment module 53 adjusts the emitted laser parameters according to the measured intensity of the third laser, and continues to receive the laser light reflected from the substance to be detected, and when the intensity of the reflected laser light is measured in real time, the real-time pull of the reflected laser light can be measured. Mann spectrum. At this time, it is no longer the receiver receiving, but the standard Raman detection method, the material reflection and scattering laser is extended by the laser emission path, the Raman spectrum is extracted through the dichroic color filter and the filter group, and the final is obtained. Raman line. The Raman spectrum of the measured laser of the latter frame can be compared with the Raman spectrum of the previous frame laser. If the similarity of the Raman spectrum obtained by the two measurements is lower than a preset threshold, it can be determined during the measurement. The focus has changed or the substance itself has changed. At this point, the user can be prompted to change the substance to be detected, and the user decides whether to restart the test. For example, at 0.5 s, the gray powder on the table is focused and the light intensity is measured, because the laser is emitted to the table at 0.6 s, or the object is chemically reacted during the laser irradiation due to excessive temperature. A new substance has been generated. If the similarity is higher than the set threshold, and the current detected integration time has reached the requirement, and enough information is collected, the test is ended, the laser is turned off, and the substance name corresponding to the Raman spectrum is determined according to the matching algorithm and notified. user.
可选地,如果检测的积分时长不够,信息还未收集够,且当前为手动固定焦距,在t0时段时通过调节模块53对发射的激光的参数进行调节,如果当前为自动对焦,在t0时段重复通过对焦模块52进行对焦,并通过调节模块53对发射的激光的参数进行调节,继续信息的收集。上述手动固定焦距或者自动对焦时,如果进入t1时段则等待下一个t0时间点。Optionally, if the detected integration time is not enough, the information has not been collected enough, and the current is a fixed focal length, and the parameters of the emitted laser are adjusted by the adjustment module 53 during the t0 period, if the current is autofocus, at the t0 period The focus is repeatedly performed by the focusing module 52, and the parameters of the emitted laser light are adjusted by the adjustment module 53 to continue the collection of information. When manually setting the focal length or auto focus, if it enters the t1 period, it waits for the next t0 time point.
本申请实施例通过激光接收器接收反射的激光,能够通过TOF自动对焦并能通过反射光强自动调节激光脉冲的时间间隙,既增加了用户使用的便利性,又保证了汇聚激光使用的安全性。另一方面,根据连续数 据采集的相似度比较,在因物体吸热造成的激光脉冲间隙自动加大时,可防止因时间拉长造成用户手在检测过程中移动等误操作而使非待测物体也被混入拉曼光谱数据中,或者待测物体因高温发生化学变化造成的测试结果错误现象,对用户体验有明显的提升。The embodiment of the present application receives the reflected laser light through the laser receiver, can automatically adjust the time interval of the laser pulse by the TOF autofocus, and increases the convenience of the user, and ensures the safety of the concentrated laser. . On the other hand, based on consecutive numbers According to the similarity degree of the collected, when the laser pulse gap caused by the heat absorption of the object is automatically increased, the erroneous operation such as the movement of the user's hand during the detection process can be prevented, and the non-subject object is also mixed into the Raman spectrum. In the data, or the error of the test result caused by the chemical change of the object to be tested due to high temperature, the user experience is obviously improved.
参阅图6,申请再一个实施例提供的一种物质检测设备60的硬件结构示意图,如图6所示,该物质检测设备60包括:Referring to FIG. 6, a hardware structure diagram of a substance detecting device 60 according to another embodiment is provided. As shown in FIG. 6, the substance detecting device 60 includes:
一个或多个处理器61、存储器62、传感器63、镜头64以及接收器65,图6中以一个处理器61为例。One or more processors 61, a memory 62, a sensor 63, a lens 64, and a receiver 65 are exemplified by a processor 61 in FIG.
处理器61、存储器62、传感器63以及接收器65可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 61, the memory 62, the sensor 63, and the receiver 65 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器62作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。处理器61通过运行存储在存储器62中的非易失性软件程序、指令以及模块,从而执行各种功能应用以及数据处理,即实现上述的一种物质检测方法。The memory 62 is a non-volatile computer readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The processor 61 executes various functional applications and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 62, that is, implementing the above-described substance detecting method.
存储器62可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据物质检测装置的使用所创建的数据等。此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。The memory 62 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the substance detecting device, and the like. Moreover, memory 62 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
所述一个或者多个模块存储在所述存储器62中,当被所述一个或者多个处理器61执行时,执行上述的物质检测方法。The one or more modules are stored in the memory 62 and, when executed by the one or more processors 61, perform the substance detection method described above.
传感器63用于发出平行激光。镜头64用于将传感器发出的平行激光进行聚焦。接收器65用于接收从待检测物质中反射回来的激光。The sensor 63 is used to emit a parallel laser. The lens 64 is used to focus the parallel laser light emitted by the sensor. The receiver 65 is for receiving laser light reflected from the substance to be detected.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本申请实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图6中的一个处理器61,可使得上述一个或多 个处理器可执行上述方法中的物质检测方法。The embodiment of the present application provides a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors, such as in FIG. One processor 61 that can make one or more of the above The processor can perform the substance detection method in the above method.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above description is only the embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of this application.

Claims (14)

  1. 一种物质检测方法,应用于物质检测设备,其特征在于,包括:A substance detecting method is applied to a substance detecting device, which comprises:
    发射第一激光至待检测物质;Launching a first laser to the substance to be detected;
    接收从待检测物质反射的第二激光,计算与所述待检测物质的距离后根据所述距离进行对焦;Receiving a second laser light reflected from the substance to be detected, calculating a distance from the substance to be detected, and performing focusing according to the distance;
    接收对焦后从所述待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度实时对发射的激光参数进行调节,所述参数包括激光强度或激光脉冲间隙。Receiving a third laser light reflected from the substance to be detected after focusing, measuring the intensity of the third laser, and adjusting the emitted laser parameter in real time according to the measured intensity of the third laser, the parameter Includes laser intensity or laser pulse gap.
  2. 根据权利要求1所述的方法,其特征在于,所述计算与待检测物质的距离包括:The method according to claim 1, wherein the calculating the distance from the substance to be detected comprises:
    通过计算发出所述第一激光与接收所述第二激光的时间差或相位差,然后将所述时间差或相位差换算成距离。A time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
  3. 根据权利要求1或者2所述的方法,其特征在于,所述接收对焦后从所述待检测物质反射的第三激光之后,还包括:The method according to claim 1 or 2, wherein after receiving the third laser light reflected from the substance to be detected after focusing, the method further comprises:
    根据TOF判断所述第三激光是否为从焦点反射回来的激光,如是则对所述第三激光的强度进行测量。It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述第三激光的强度对所述发射的激光参数进行调节包括:The method according to claim 3, wherein the adjusting the emitted laser parameters according to the intensity of the third laser comprises:
    检测到所述第三激光的强度小于预设阈值时,将所述发射的激光开启时长与关闭时长的比例调小。When it is detected that the intensity of the third laser light is less than a preset threshold, the ratio of the emitted laser on-time and the off-time is reduced.
  5. 根据权利要求4所述的方法,其特征在于,所述根据测量得到的所述第三激光的强度对发射的激光参数进行调节之后,还包括:The method according to claim 4, wherein the adjusting the emitted laser parameters according to the measured intensity of the third laser further comprises:
    接收器继续接收从待检测物质反射的激光,对所述反射的激光的强度进行实时测量,并且同时通过拉曼光路实时采集所述发射激光照射到待测物体上时的散射光,也就是拉曼光谱,将接收得到的后一帧激光的拉曼光谱与前一帧激光的拉曼光谱进行对比,如两次测量得到的拉曼光谱的相似度高于预设阈值,且当前积分时长已经达到要求,则根据所述拉曼光谱确定所述待检测物质的名称;如果积分时长未达到要求,则继 续收集拉曼光谱,并实时调节激光参数;而如果相似度低于预设阈值,则提示用户重新开始检测。The receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, and simultaneously collects the scattered light when the emitted laser light is irradiated onto the object to be tested, that is, pulls, through the Raman optical path. The spectroscopy compares the Raman spectrum of the received laser beam with the Raman spectrum of the previous frame laser. For example, the similarity of the Raman spectrum obtained by the two measurements is higher than a preset threshold, and the current integration time has been When the requirement is met, the name of the substance to be detected is determined according to the Raman spectrum; if the integration time does not meet the requirement, then The Raman spectrum is continuously collected and the laser parameters are adjusted in real time; if the similarity is lower than the preset threshold, the user is prompted to restart the detection.
  6. 根据权利要求1或者2所述的方法,其特征在于,Method according to claim 1 or 2, characterized in that
    所述激光为脉冲波形平行的激光或单一强度的平行激光。The laser is a laser with a pulse waveform parallel or a parallel laser with a single intensity.
  7. 一种物质检测装置,其特征在于,包括:A substance detecting device, comprising:
    激光发射模块,用于控制传感器发射第一激光至待检测物质;a laser emitting module, configured to control the sensor to emit the first laser to the substance to be detected;
    对焦模块,用于根据接收的从待检测物质反射的第二激光计算与待检测物质的距离,然后根据所述距离控制镜头进行对焦;a focusing module, configured to calculate a distance from the to-be-detected substance according to the received second laser reflected from the substance to be detected, and then control the lens to perform focusing according to the distance;
    调节模块,用于根据接收的对焦后从待检测物质反射的第三激光,对所述第三激光的强度进行测量,并根据测量得到的所述第三激光的强度对发射的激光参数进行调节,所述参数包括:激光强度或激光脉冲间隙。An adjustment module, configured to measure an intensity of the third laser light according to the received third laser light reflected from the substance to be detected after focusing, and adjust the emitted laser parameter according to the measured intensity of the third laser light The parameters include: laser intensity or laser pulse gap.
  8. 根据权利要求7所述的装置,其特征在于,所述对焦模块进一步用于:The apparatus according to claim 7, wherein said focusing module is further configured to:
    通过计算发出所述第一激光与接收所述第二激光的时间差或相位差,然后将所述时间差或相位差换算成距离。A time difference or a phase difference between the first laser light and the second laser light is calculated, and then the time difference or phase difference is converted into a distance.
  9. 根据权利要求7或者8所述的装置,其特征在于,所述调节模块还用于:The device according to claim 7 or 8, wherein the adjustment module is further configured to:
    根据TOF判断所述第三激光是否为从焦点反射回来的激光,如是则对所述第三激光的强度进行测量。It is judged according to the TOF whether the third laser light is a laser light reflected from the focus, and if so, the intensity of the third laser light is measured.
  10. 根据权利要求9所述的装置,其特征在于,所述调节模块进一步用于:The device according to claim 9, wherein the adjustment module is further configured to:
    检测到所述第三激光的强度小于预设阈值时,将所述发射的激光开启时长与关闭时长的占比调小。When it is detected that the intensity of the third laser light is less than a preset threshold, the proportion of the emitted laser on-time and the off-time is reduced.
  11. 根据权利要求10所述的装置,其特征在于,所述调节模块还用于:The device according to claim 10, wherein the adjustment module is further configured to:
    控制接收器继续接收从待检测物质反射的激光,对所述反射的激光的强度进行实时测量,同时收集实时拉曼光谱,将接收得到的后一帧激光的拉曼光谱与前一帧激光的拉曼光谱进行对比,如两次测量得到的拉 曼光谱的相似度高于预设阈值,且当前积分时长已经达到要求,则根据所述拉曼光谱确定所述待检测物质的名称;如果积分时长未达到要求,则继续收集拉曼光谱,并实时调节激光参数;而如果相似度低于预设阈值,则应提示用户重新开始检测。The control receiver continues to receive the laser light reflected from the substance to be detected, and measures the intensity of the reflected laser light in real time, and collects the real-time Raman spectrum, and receives the Raman spectrum of the laser beam of the subsequent frame and the laser of the previous frame. Raman spectroscopy for comparison, such as two measurements If the similarity of the spectroscopy is higher than the preset threshold, and the current integration time has reached the requirement, the name of the substance to be detected is determined according to the Raman spectroscopy; if the integration time does not meet the requirement, the Raman spectroscopy is continuously collected, and The laser parameters are adjusted in real time; if the similarity is lower than the preset threshold, the user should be prompted to restart the detection.
  12. 根据权利要求7或者8所述的装置,其特征在于,所述激光为脉冲波形平行的激光或单一强度的平行激光。The apparatus according to claim 7 or 8, wherein the laser light is a laser beam having a pulse waveform parallel or a parallel laser light having a single intensity.
  13. 一种物质检测设备,其特征在于,包括:A substance detecting device, comprising:
    至少一个处理器;At least one processor;
    一个镜头;a lens
    以及,与所述至少一个处理器通信连接的存储器、传感器、以及接收器;And a memory, a sensor, and a receiver communicatively coupled to the at least one processor;
    其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6任一项所述的方法;所述传感器用于发出第一激光;所述镜头用于将传感器发出的所述第一激光进行聚焦;接收器用于接收从待检测物质中反射回来的第二激光和第三激光。Wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of claims 1-6 The method is for emitting a first laser; the lens is for focusing the first laser emitted by the sensor; and the receiver is for receiving the second laser and the third laser reflected from the substance to be detected .
  14. 一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,当所述计算机可执行指令被物质检测设备执行时,使所述电子设备执行权利要求1-6所述的方法。 A non-transitory computer readable storage medium storing computer executable instructions for causing the electronic device to perform claim 1 when the computer executable instructions are executed by a substance detecting device The method described in 6.
PCT/CN2017/089842 2017-06-23 2017-06-23 Method, apparatus and device for detecting substance WO2018232752A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/089842 WO2018232752A1 (en) 2017-06-23 2017-06-23 Method, apparatus and device for detecting substance
CN201780002283.5A CN108369190B (en) 2017-06-23 2017-06-23 Substance detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/089842 WO2018232752A1 (en) 2017-06-23 2017-06-23 Method, apparatus and device for detecting substance

Publications (1)

Publication Number Publication Date
WO2018232752A1 true WO2018232752A1 (en) 2018-12-27

Family

ID=63011409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089842 WO2018232752A1 (en) 2017-06-23 2017-06-23 Method, apparatus and device for detecting substance

Country Status (2)

Country Link
CN (1) CN108369190B (en)
WO (1) WO2018232752A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020153703A1 (en) * 2019-01-22 2020-07-30 엘지이노텍 주식회사 Camera apparatus and auto-focusing method therefor

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109581406A (en) * 2018-11-22 2019-04-05 深圳天眼激光科技有限公司 A kind of the return laser beam processing method and system of adaptive automatic growth control
JP6805448B2 (en) * 2019-04-23 2020-12-23 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Control devices, imaging systems, moving objects, control methods, and programs
CN111077530B (en) * 2019-12-17 2023-03-28 北京缔科新技术研究院(有限合伙) Light quantum distance meter with air component measuring function
CN113340229A (en) * 2021-04-20 2021-09-03 北京九辰智能医疗设备有限公司 Laser measuring device and automatic adjusting method thereof
CN113176249B (en) * 2021-05-20 2022-10-28 中国科学技术大学 Quick Raman scanning imager

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616647A (en) * 2006-11-10 2009-12-30 拉斯·M·拉森 The method and apparatus that is used for noinvasive or Wicresoft's optical processing eyes
US20140028996A1 (en) * 2012-07-26 2014-01-30 Seagate Technology Llc Accuracy and precision in raman spectroscopy
CN104883502A (en) * 2015-05-19 2015-09-02 广东欧珀移动通信有限公司 Focusing method and apparatus for mobile terminal
CN205420505U (en) * 2015-12-04 2016-08-03 杨昭 Laser shock treatment on -line measuring corrects system based on work piece vibration frequency
CN106383105A (en) * 2016-08-29 2017-02-08 上海交通大学 Raman spectrum measuring device and method capable of automatically adjusting distance between device and measured sample
CN106707290A (en) * 2017-03-08 2017-05-24 深圳市芯盛传感科技有限公司 Optical distance measurement module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR112017001407A2 (en) * 2014-07-21 2019-11-12 7386819 Manitoba Ltd Method and Device for Bone Scanning in Meat

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616647A (en) * 2006-11-10 2009-12-30 拉斯·M·拉森 The method and apparatus that is used for noinvasive or Wicresoft's optical processing eyes
US20140028996A1 (en) * 2012-07-26 2014-01-30 Seagate Technology Llc Accuracy and precision in raman spectroscopy
CN104883502A (en) * 2015-05-19 2015-09-02 广东欧珀移动通信有限公司 Focusing method and apparatus for mobile terminal
CN205420505U (en) * 2015-12-04 2016-08-03 杨昭 Laser shock treatment on -line measuring corrects system based on work piece vibration frequency
CN106383105A (en) * 2016-08-29 2017-02-08 上海交通大学 Raman spectrum measuring device and method capable of automatically adjusting distance between device and measured sample
CN106707290A (en) * 2017-03-08 2017-05-24 深圳市芯盛传感科技有限公司 Optical distance measurement module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020153703A1 (en) * 2019-01-22 2020-07-30 엘지이노텍 주식회사 Camera apparatus and auto-focusing method therefor
US11539873B2 (en) 2019-01-22 2022-12-27 Lg Innotek Co., Ltd. Camera apparatus and autofocusing method therefor

Also Published As

Publication number Publication date
CN108369190B (en) 2021-03-16
CN108369190A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
WO2018232752A1 (en) Method, apparatus and device for detecting substance
Wabnitz et al. Performance assessment of time-domain optical brain imagers, part 1: basic instrumental performance protocol
US10274376B2 (en) System for testing thermal response time of uncooled infrared focal plane detector array and method therefor
CN103712777B (en) Detect device and the detection method of ultraviolet light photo imaging system performance parameter
CN102445155A (en) Thermal imaging method and apparatus for evaluating coatings
CN105021627B (en) The highly sensitive quick on-line water flushing method of optical thin film and element surface damage from laser
EP3421953A1 (en) Measurement device and method for spectral responsivity of large-aperture radiometer
JP2014503073A (en) Systems and methods for metered dose illumination in biological analysis or other systems
JP2015172570A (en) Measurement instrument and measurement method
TW201250233A (en) Systems and methods for wavelength spectrum analysis for detection of various gases using a treated tape
EP3505915A1 (en) Raman spectrum detection apparatus and method based on power of reflected light and image recognition
JP4842028B2 (en) Scattering absorber measuring method and scattering absorber measuring apparatus
US20090219524A1 (en) Method and apparatus for controlled raman spectrometer
CN105953929B (en) A kind of single-shot subpulse width and energy measuring apparatus
EP3505888A1 (en) Raman spectrum detection apparatus and method based on power of reflected light
JPWO2019004144A1 (en) Receiver, control method, program and storage medium
WO2019196113A1 (en) Method for controlling probe, detection facility, and device for controlling probe
CN207779900U (en) Raman spectrum detection device based on reflected optical power and image recognition
WO2019140579A1 (en) Method and terminal for performing raman detection on substance for detection
CN109668906A (en) It is a kind of for measuring the measurement method and device of optical film layer laser damage threshold
US10278625B2 (en) Blood measuring apparatus using spectroscope
RU2463568C1 (en) Apparatus for thermal lens spectroscopy
CN103822713A (en) Method and device for detecting spectral resolution of spectral imager
CN210128940U (en) Optical integrating sphere and sample terahertz transmission spectrum acquisition device
CN210108947U (en) Optical integrating sphere and sample terahertz reflection spectrum acquisition device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17914803

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 03.06.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17914803

Country of ref document: EP

Kind code of ref document: A1