WO2019084817A1 - 焦点偏离的判断方法、装置、存储介质及电子设备 - Google Patents

焦点偏离的判断方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2019084817A1
WO2019084817A1 PCT/CN2017/108734 CN2017108734W WO2019084817A1 WO 2019084817 A1 WO2019084817 A1 WO 2019084817A1 CN 2017108734 W CN2017108734 W CN 2017108734W WO 2019084817 A1 WO2019084817 A1 WO 2019084817A1
Authority
WO
WIPO (PCT)
Prior art keywords
peak
raman
recorded
spectral data
raman spectral
Prior art date
Application number
PCT/CN2017/108734
Other languages
English (en)
French (fr)
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/108734 priority Critical patent/WO2019084817A1/zh
Priority to CN201780002523.1A priority patent/CN108064340B/zh
Publication of WO2019084817A1 publication Critical patent/WO2019084817A1/zh

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 present disclosure relates to the field of substance detection, and in particular, to a method, device, storage medium, and electronic device for determining focus deviation.
  • Raman detection equipment uses Raman scattering to detect the composition of substances. It is currently used in many fields, including professional oil exploration, drug testing, common safety inspections in life, anti-narcotics, etc., and with Raman detection. The cost of equipment is declining and there are more applications in the civilian market, such as pesticide testing, real and fake inspection.
  • the first 1 second is correctly photographed to the object to be tested, and then 0.4 seconds is irradiated to the adjacent plastic plate, and then 0.6 seconds to correctly reach the object to be tested.
  • the final identification result may determine that the object to be tested is a mixture, the specific composition is 80% of the actual substance of the object to be tested, and 20% is plastic, resulting in inaccurate final substance detection results.
  • the main purpose of the present disclosure is to provide a method, device, storage medium and electronic device for determining focus deviation, which are used to solve the technical problem that the deviation of the laser focus is not easily detected during the Raman detection process.
  • a focus deviation includes: in the process of emitting laser light and performing Raman spectroscopy collection by the Raman detecting device, recording Raman spectral data accumulated by the spectrometer sensor of the Raman detecting device once every fixed time interval, or each When the luminance value of the collected Raman spectrum is increased by a fixed value, the Raman spectral data collected by the spectrometer sensor of the Raman detecting device is recorded once; the peak information of each recorded Raman spectral data is extracted; according to the nth The peak information of the sub-recorded Raman spectral data and the peak information of the n+1th recorded Raman spectral data determine the growth rate of each peak of the nth recorded Raman spectral data to the n+1th recording , n is a positive integer greater than 0 and less than N, N is the total number of times of recording Raman spectral data; determining whether the
  • a device for determining a focus deviation comprising:
  • a data recording module configured to record Raman spectral data collected by the spectrometer sensor of the Raman detecting device once every fixed time period in a process of emitting laser light and performing Raman spectroscopy collection by the Raman detecting device, or When the brightness value of the collected Raman spectrum is increased by a fixed value, the Raman spectrum data accumulated by the spectrometer sensor of the Raman detecting device is recorded once;
  • a peak extraction module for extracting peak information of each recorded Raman spectral data
  • a calculation module configured to determine respective peaks of the nth recorded Raman spectral data to the nth according to the peak information of the nth recorded Raman spectral data and the peak information of the n+1th recorded Raman spectral data
  • the growth rate at the time of +1 recording, n is a positive integer greater than 0 and less than N, and N is the total number of times the Raman spectral data is recorded;
  • a comparison judging module configured to determine whether the growth rate of each peak of the nth recorded Raman spectral data is consistent
  • a determining module configured to determine that a focus deviation of the laser light emitted by the Raman detecting device occurs when the growth rates of the respective peaks of the nth recorded Raman spectral data are inconsistent.
  • a computer readable storage medium including one or more programs for performing the first embodiment of the present disclosure The method described on the one hand.
  • an electronic device comprising: the computer readable storage medium of the third aspect of the embodiments of the present disclosure; and one or more processors for executing the computer Read the program in the storage medium.
  • the growth ratios of the respective peaks appearing at different positions are equal.
  • the Raman spectrum collected by the spectrometer sensor is recorded multiple times, and Whether the growth ratio of each peak is consistent or not, finally, according to the judgment result, it can be determined whether the laser focus is offset, without the user having to judge by experience, and avoiding the mixing of other objects in the collected Raman spectrum due to the focus shift.
  • the occurrence of the Mann spectrum occurs, which in turn improves the accuracy of the substance detection.
  • FIG. 1 is a schematic flow chart of a method for judging focus deviation according to an embodiment of the present disclosure
  • FIGS. 2a and 2b are schematic diagrams showing peaks of Raman spectral data provided by an embodiment of the present disclosure
  • FIG. 3 is a block diagram of a focus deviation determining apparatus according to an embodiment of the present disclosure.
  • FIG. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure.
  • the application scenario is to perform substance detection on the object to be measured by using a Raman detecting device, and the Raman detecting device is provided with a laser emitter and a spectrometer sensor.
  • the laser emitter emits laser light to illuminate the object to be tested, and the object to be tested scatters Raman spectroscopy under the illumination of the laser, and the spectrometer sensor is used to collect Raman spectroscopy data.
  • the Raman spectral data collected by the spectrometer sensor is stored in real time, that is, the Raman spectral data collected by the spectrometer sensor is accumulated at the current time when the sensor data is not cleared. Total data.
  • FIG. 1 is a flowchart of a method for judging focus deviation according to an embodiment of the present disclosure. As shown in FIG. 1, the method includes:
  • the Raman spectral data collected by the spectrometer sensor of the Raman detecting device is recorded once every fixed time interval, or collected every time.
  • the luminance values of the Raman spectrum are recorded for a fixed value to record the Raman spectral data accumulated by the spectrometer sensor of the Raman detecting device.
  • the Raman detection device is specifically in the detection process, usually the first half of the time to turn on the laser to illuminate the object to be tested and collect the Raman spectrum, the laser is turned off in the second half, but still maintain the original holding posture, and start the sensor Collect interference information such as circuits and ambient light.
  • the recording of the Raman spectral data described in the above step S11 is performed during the period in which the Raman detecting device continuously emits the laser-collected Raman spectrum.
  • step S11 includes the following two methods:
  • the Raman spectral data collected by the spectrometer sensor of the Raman detecting device is recorded once every fixed time period in the step S11, and may include: detecting the total laser emission duration M according to the Raman detecting device. The duration is divided into N time slices; each interval duration M/N The Raman spectral data collected by the spectrometer sensor of the Raman detecting device is recorded once.
  • the Raman detecting device can set a fixed duration (ie, the total duration of the laser emission M described above) to perform laser emission, such as 2 s, and the arrival time is considered to be the end of the Raman spectrum collection.
  • N may be a value that is set in advance in consideration of the total duration M and the calculation ability of the Raman spectroscopy apparatus. The larger the M is, the larger the slice is. The larger the slice is, the better the judgment accuracy is. The larger N is, the smaller the slice is. The higher the computing power is.
  • the brightness value of the Raman spectrum collected in step S11 is increased by a fixed value.
  • Recording the Raman spectrum data collected by the spectrometer sensor of the Raman detecting device once may include: according to the pulling The detected total luminance value B of the Manchester detecting device divides the luminance of the Raman spectral data into N luminance slices, and the detected total luminance value refers to the luminance value of the Raman spectral data collected by the Raman detecting device reaches B. The detection is stopped; the luminance value of the collected Raman spectrum is recorded once per B/N of the Raman spectral data collected by the spectrometer sensor of the Raman detecting device.
  • the Raman detecting device can also set a maximum value of a peak. If the vertical axis reaches 40,000 (sensor brightness value), the current integration time period is considered to be up to standard, and the Raman spectrum collection is ended. .
  • the above-mentioned detected total luminance value B is the sensor luminance value set by the Raman detecting device.
  • N may be a value that is set in advance in consideration of the total luminance value B and the calculation capability of the Raman spectrum device.
  • the above two methods may be performed one by one.
  • Table 1 shows the peak information of the extracted Raman spectral data in the case where the above-described mode 1 is employed.
  • the laser emission duration of the Raman detecting device reaches M
  • the collection of Raman spectral information is stopped, and the data is recorded N times. It is worth noting that the data recorded each time is the total Raman spectral data collected by the spectrometer sensor starting to collect the Raman spectrum to the current time.
  • Table 2 shows the peak information of the extracted Raman spectral data in the case of the above mode 2.
  • the peak information extracted according to the Raman spectrum data of each record of the embodiment of the present disclosure may include the peak of the peak and the position where it appears. Specifically, the peak information is exemplified below with reference to Figures 2a and 2b.
  • 2a is a schematic diagram of the Raman spectral data 2 in Table 1, as shown in FIG. 2a, the Raman spectral data 2 includes two peaks, the peaks are y12 and y22, respectively, and the positions where the peaks appear are x1 and x2 of the X-axis, respectively. The position point, therefore, the peak information recorded in Table 1 is (x1, y12) and (x2, y22).
  • 2b is a schematic diagram of the Raman spectral data 3 in Table 1, as shown in FIG. 2b, the Raman spectral data 3 includes two peaks, the peaks are y12, y22, and y33, respectively, and the positions where the peaks appear are x1 of the X-axis, respectively.
  • x2 and x3 position points therefore, the peak information recorded in Table 1 is (x1, y13), (x2, y23) and (x3, y33).
  • n is a positive integer greater than 0 and less than N
  • N is the total number of times the Raman spectral data is recorded.
  • the second recorded Raman spectral data 2 includes two peaks (x1, y12) and (x2, y22), and the two peaks are to the third.
  • the growth rate of the peak (x1, y12) to the third recording is (y13-y12).
  • the growth rate is (y23-y22)/y22.
  • the peak information of each recorded Raman spectral data extracted in step S12 includes a peak of a peak in each of the recorded Raman spectral data exceeding a preset threshold, and the peak The location where the crest appears.
  • step S13 specifically includes: determining a growth rate of the first peak according to a peak of the first peak and a peak of a peak of the same position of the first peak in the n-1th recorded Raman spectral data, The first peak is nth The peak in the sub-recorded Raman spectral data exceeds any peak of the preset threshold.
  • the peak information recorded in Table 1 or Table 2 is information of peaks whose peak value is greater than a preset threshold.
  • the peaks recorded in Table 1 are information of peaks whose peak value is larger than y0.
  • the growth rate is (y13-y12)/y12, and the peak (x2, y22) to the first At the time of 3 recordings, the growth rate was (y23-y22)/y22.
  • the Raman spectrum of an object to be tested has an equal proportion of growth of each peak at different positions, if the growth rate of each peak of the nth recorded Raman spectral data is inconsistent, it indicates Raman spectroscopy data of other substances are collected, so that it is possible to determine the focus deviation of the laser light emitted by the Raman detecting device.
  • the embodiment of the present disclosure records the Raman spectrum collected by the spectrometer sensor multiple times, and judges whether the growth ratios of the peaks are consistent, and finally judges according to the judgment.
  • the embodiment of the present disclosure records the Raman spectrum collected by the spectrometer sensor multiple times, and judges whether the growth ratios of the peaks are consistent, and finally judges according to the judgment.
  • the Raman spectral data of the second record shows a new peak at the x3 position, and since the peak of the nth recorded Raman spectral data is not recorded, it is impossible to judge the newly appearing Whether the growth rate of the peak coincides with other peak growth rates, so that when the growth rates of the respective peaks of the nth recorded Raman spectral data are identical, it is impossible to determine that the laser light emitted by the Raman detection device does not have a focus deviation.
  • the n+1th recorded Raman If the spectral data does not show a peak whose peak value exceeds a preset threshold at a new position, it can be determined that the laser light emitted by the Raman detecting device does not have a focus deviation between the nth recording and the (n+1)th recording.
  • the growth rate of each peak of the Raman spectral data recorded at the i-th time is uniform, and the Raman spectrum data of the i+1th record is new in comparison with the respective peaks of the Raman spectrum data of the i-th record.
  • the Nth record is pulled. If the Manchester spectral data has a new peak with a peak value exceeding a preset threshold at a new position, an additional method is needed to determine whether the focus is not deviated.
  • the method provided by the embodiment of the present disclosure can be based on the N-1th recorded Raman spectrum. Data of the data at the new position and the peak of the newly appearing peak, determining whether the growth rate of the new peak is different from the Raman spectral data of the N-1th record The growth rate of the peaks is uniform.
  • the Raman detection device determines that the laser emitted by the Raman detection device is at the N-th No focus deviation occurs between the 1st record and the Nth record; if the growth rate of the new peak does not coincide with the growth rate of each peak of the N-1th recorded Raman spectral data, the Raman detection is determined The laser light emitted by the device deviates from the focus between the N-1th record and the Nth record.
  • the Raman spectral data of the N-1th record may not have a peak or a peak at the new position, since the peak does not exceed the preset threshold (y0 as shown in FIG. 2a or FIG. 2b) Not extracted, so it is not recorded in Table 1, but the growth rate of the newly appearing peak can still be judged by the actual value of the new position at the N-1th recorded Raman spectral data.
  • the preset threshold y0 is too large, and there may be a case where the laser light caused by the shaking is irradiated on another item, and the peak of the other item can reach y0.
  • the threshold y0 and the total number N of records can be pre-calibrated experimentally according to the scene and the user.
  • the method for determining the focus deviation provided by the embodiment of the present disclosure may output a reminder message when the laser focus is deviated, to remind the user that the laser focus has deviated, and the user decides whether to perform the Raman detection again, or When the reminder information is output, the data of the spectrometer sensor is also cleared, and the user is forced to perform Raman detection again. This disclosure does not limit this.
  • step S12 to step S15 can be performed between each recording of Raman spectral data and the next recording of Raman spectral data, thereby realizing real-time inspection and reminding, and once the focus is determined to be deviated, the user can be immediately alerted and adopted.
  • Countermeasures such as stopping the laser Launch, ready to re-test.
  • steps S12 to S15 may also be After the Raman spectral data collection is completed, for example, after the laser duration reaches the preset total duration or the peak reaches the peak of the trigger stop, in this case, if it is determined that the focus shift occurs during the Raman detection, The results of the substance test are output, allowing the user to decide whether or not to retest.
  • the device includes:
  • a data recording module 301 configured to record Raman spectral data collected by the spectrometer sensor of the Raman detecting device once every fixed time period in a process of emitting laser light and performing Raman spectroscopy collection by the Raman detecting device, or Whenever the brightness value of the collected Raman spectrum is increased by a fixed value, the Raman spectrum data accumulated by the spectrometer sensor of the Raman detecting device is recorded once;
  • the peak extraction module 302 is configured to extract peak information of each recorded Raman spectral data
  • the calculating module 303 is configured to determine, according to the peak information of the nth recorded Raman spectral data and the peak information of the n+1th recorded Raman spectral data, each peak of the nth recorded Raman spectral data to The growth rate at the time of n+1 recordings, n is a positive integer greater than 0 and less than N, and N is the total number of times the Raman spectral data is recorded;
  • the comparison judging module 304 is configured to determine whether the growth rates of the respective peaks of the nth recorded Raman spectral data are consistent;
  • the determining module 305 is configured to determine that the laser light emitted by the Raman detecting device is out of focus when the growth rates of the respective peaks of the nth recorded Raman spectral data are inconsistent.
  • the data recording module 301 includes:
  • a first dividing sub-module configured to divide the detection duration into N time slices according to a total laser emission duration M of the Raman detecting device
  • the first data recording sub-module is configured to record the Raman spectral data collected by the spectrometer sensor of the Raman detecting device once every interval duration M/N.
  • the data recording module 301 includes:
  • a second dividing sub-module configured to divide the brightness of the Raman spectral data into N brightness slices according to the detected total brightness value B of the Raman detecting device, where the detecting the total brightness value means that the Raman detecting device is When the brightness value of the collected Raman spectral data reaches B, the detection is stopped;
  • the second data recording sub-module is configured to collect the Raman spectrum data collected by the spectrometer sensor of the Raman detecting device for each time the brightness value of the collected Raman spectrum is increased by B/N.
  • the peak extraction module 302 is configured to:
  • the calculation module 303 is configured to:
  • the first peak is The peak in the Raman spectral data recorded n times exceeds any peak of the preset threshold.
  • the comparison determining module 304 is configured to:
  • the determining module 305 is further configured to:
  • the growth rate of each peak of the Raman spectral data recorded at the nth time is uniform, and the Raman spectrum data of the n+1th record is not in a new position compared to the respective peaks of the nth recorded Raman spectrum data.
  • a peak having a peak exceeding a preset threshold occurs, it is determined that the laser light emitted by the Raman detecting device does not have a focus deviation between the nth recording and the (n+1)th recording.
  • the determining module 305 is further configured to:
  • the growth rate of each peak of the Raman spectral data recorded at the N-1th time is uniform, and the Nth recorded Raman spectral data is new in comparison with the respective peaks of the N-1th recorded Raman spectral data.
  • the growth of the new peak is judged based on the data of the Raman spectral data of the N-1th record at the new position and the peak of the newly appearing peak. Whether the rate is consistent with the growth rate of each peak of the N-1th recorded Raman spectral data;
  • the growth rate of the new peak is inconsistent with the growth rate of each peak of the N-1th recorded Raman spectral data, it is determined that the laser emitted by the Raman detection device is recorded to the Nth time from the N-1th time. A focus deviation occurs between records.
  • the device For a Raman spectrum of an object to be tested, the growth ratios of the respective peaks appearing at different positions are equal.
  • the device records the Raman collected by the spectrometer sensor multiple times. Spectral, and judge whether the growth ratio of each peak is consistent, and finally determine whether the laser focus is offset according to the judgment result, so that the user does not need to judge by experience, and avoids the Raman spectrum in the collected due to the focus shift.
  • the occurrence of Raman spectroscopy mixed with other objects can improve the accuracy of substance detection.
  • FIG. 4 is a block diagram of an electronic device 400, according to an exemplary embodiment.
  • the electronic device 400 can include a processor 401, a memory 402, a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
  • a processor 401 can include a processor 401, a memory 402, a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
  • I/O input/output
  • the processor 401 is configured to control the overall operation of the electronic device 400 to complete all or part of the steps of determining the focus deviation described above.
  • the memory 402 is used to store various types of data to support operations at the electronic device 400, such as may include instructions for any application or method operating on the electronic device 400, as well as application related data, For example, contact data, sent and received messages, pictures, audio, video, and so on.
  • the memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read Only Read-Only Memory (ROM), magnetic memory, flash memory, disk or optical disk.
  • the multimedia component 403 can include a screen and an audio component.
  • the screen may be, for example, a touch screen, and the audio component is used to output and/or input an audio signal.
  • the audio component can include a microphone for receiving an external audio signal.
  • the received audio signal may be further stored in memory 402 or transmitted via communication component 405.
  • the audio component also includes at least one speaker for outputting an audio signal.
  • the I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
  • the communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 405 can include: Wi-Fi module, Bluetooth module, NFC module.
  • the electronic device 400 may be configured by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), and digital signal processing devices (Digital).
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • Digital Digital
  • DSPD Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components Implementation, a method for determining the focus deviation described above.
  • the embodiment of the present disclosure further provides a computer readable storage medium 1 including one or more programs for performing the above-described one focus deviation determination method.
  • the present disclosure also provides an electronic device comprising the above computer readable storage medium 1 and one or more processors for executing the program in the computer readable storage medium 1.
  • the electronic device also includes a laser emitter, a spectrometer sensor, and the like.
  • the electronic device may be a terminal device such as a mobile phone or a tablet computer.

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)
  • Spectrometry And Color Measurement (AREA)

Abstract

一种焦点偏离的判断方法、装置、存储介质及电子设备,该方法包括:在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据(S11);提取每一次记录的拉曼光谱数据的波峰信息(S12);根据第n次记录的波峰信息与第n+1次记录的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率(S13);判断第n次记录的各个波峰的增长速率是否一致(S14);在第n次记录的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离(S15)。

Description

焦点偏离的判断方法、装置、存储介质及电子设备 技术领域
本公开涉及物质检测领域,尤其涉及一种焦点偏离的判断方法、装置、存储介质及电子设备。
背景技术
拉曼检测设备利用拉曼散射来检测物质的成分,当前在多个领域都有应用,包括专业的石油勘探,药物检测,到生活中常见安全检查,缉毒等场景,同时,随着拉曼检测设备的成本不断下降,在民用市场也有了更多的应用,例如用于农药检测,真假货检测等。
目前的拉曼检测设备通常采用非接触式检测,都需要将激光的焦点人工对到待测物品上。但是,通过人眼直接去看着激光焦点,难免在用户未察觉的情况下,激光焦点发生偏离,甚至对准到其他物品上。激光偏移导致的后果可能是本次检测信噪比判定无法通过,需要重新检测,严重的还可能出现误判,如把偏离过程对准的物品也作为待测物品,从而检测结果将待测物品认定为混合物,造成严重误判,例如检测总时长为2秒,前1秒正确照到待测物品,然后0.4秒照射到了旁边的塑料板,然后0.6秒又正确照到待测物品,则最终识别结果可能会认定该待测物品为混合物,具体成分为80%该待测物品的实际物质,20%为塑料,导致最终的物质检测结果不准确。
发明内容
本公开主要目的是提供一种焦点偏离的判断方法、装置、存储介质及电子设备,用以解决拉曼检测过程中激光焦点发生偏离不易被察觉的技术问题。
为了实现上述目的,根据本公开实施例的第一方面,提供一种焦点偏离 的判断方法,包括:在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据;提取每一次记录的拉曼光谱数据的波峰信息;根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数;判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致;在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
根据本公开实施例的第二方面,提供一种焦点偏离的判断装置,所述装置包括:
数据记录模块,用于在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值每增长一固定值,记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据;
峰值提取模块,用于提取每一次记录的拉曼光谱数据的波峰信息;
计算模块,用于根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数;
对比判断模块,用于判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致;
确定模块,用于在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
根据本公开实施例的第三方面,提供一种计算机可读存储介质,所述计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行本公开实施例的第一方面所述的方法。
根据本公开实施例的第四方面,提供一种电子设备,包括:本公开实施例的第三方面所述的计算机可读存储介质;以及一个或者多个处理器,用于执行所述计算机可读存储介质中的程序。
对一种待测物体的拉曼光谱来说,其不同位置出现的各个波峰的增长比例是相等的,通过本公开提供的技术方案,多次记录光谱仪传感器累计收集到的拉曼光谱,并对各波峰的增长比例是否一致进行判断,最终根据判断结果即可确定激光焦点是否出现了偏移,无需用户通过经验判断,避免了由于焦点偏移导致在收集的拉曼光谱中混入其他物体的拉曼光谱的情况发生,进而可以提高物质检测的准确度。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
图1是本公开实施例提供的一种焦点偏离的判断方法的流程示意图;
图2a和图2b是本公开实施例提供的一种拉曼光谱数据的波峰的示意图;
图3是本公开实施例提供的一种焦点偏离的判断装置的框图;
图4是本公开实施例提供的一种电子设备的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所 有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
在介绍本公开提供的焦点偏离的判断方法、装置、存储介质及电子设备之前,首先对本公开各个实施例所涉及应用场景进行介绍。该应用场景为利用拉曼检测设备对待测物体进行物质检测,该拉曼检测设备上设置有激光发射器和光谱仪传感器。激光发射器发射激光照射待测物体,待测物体在激光的照射下散射拉曼光谱,该光谱仪传感器用于收集拉曼光谱数据。值得说明的是,光谱仪传感器收集的拉曼光谱数据是实时累计存储的,也就是说,在不清除传感器数据的情况下,该光谱仪传感器收集到的拉曼光谱数据为开始收集到当前时刻累计的总的数据。
图1是根据本公开实施例提供的一种焦点偏离的判断方法的流程图,如图1所示,该方法包括:
S11、在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值每增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
值得说明的是,拉曼检测设备具体在检测过程中,通常是前一半时间开启激光以照射待测物品并收集拉曼光谱,后一半时间关闭激光,但依然保持原握持姿态,并启动传感器收集电路和环境光等的干扰信息。在此种情况下,上述步骤S11所描述的对拉曼光谱数据进行记录是在拉曼检测设备连续发射激光收集拉曼光谱的时间段内。
具体地,步骤S11包括以下两种方式:
方式一、步骤S11中所述每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据可以包括:根据所述拉曼检测设备的激光发射总时长M将检测时长划分为N个时间切片;每间隔时长M/N 记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
示例地,在一种可能的实现方式中,拉曼检测设备可以设定一个固定时长(即上述激光发射总时长M)进行激光发射,如2s,达到时间则认为拉曼光谱收集结束。N可以是综合考虑总时长M以及拉曼光谱设备的计算能力预先设定的值。其中,M越大每一时间切片越大,可能影响判断精度,N越大每一时间切片越小,对计算能力要求越高。
方式二、步骤S11中所述的每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据可以包括:根据所述拉曼检测设备的检测总亮度值B将拉曼光谱数据的亮度划分为N个亮度切片,所述检测总亮度值是指所述拉曼检测设备在收集到的拉曼光谱数据的亮度值达到B时停止检测;收集到的拉曼光谱的亮度值每增长B/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
示例地,在一种可能的实现方式中,拉曼检测设备还可以设定一个峰的最高值,如纵轴达到40000(传感器亮度值),则认为当前积分时长已经达标,结束拉曼光谱收集。在此种情况下,上述检测总亮度值B即为拉曼检测设备设定的传感器亮度值。另外,N可以是综合考虑总亮度值B以及拉曼光谱设备的计算能力预先设定的值。
本公开实施例在具体实施时,上述两种方式可以择一执行。
S12、提取每一次记录的拉曼光谱数据的波峰信息。
示例地,下表1示出了在采用上述方式一的情况下,提取的拉曼光谱数据的波峰信息。
表1
Figure PCTCN2017108734-appb-000001
Figure PCTCN2017108734-appb-000002
其中,参照表1,拉曼检测设备激光发射时长达到M时,停止收集拉曼光谱信息,共记录数据N次。值得说明的是,每次记录的数据是光谱仪传感器开始收集拉曼光谱到当前时刻累计收集到的总的拉曼光谱数据。
又一个例子,下表2示出了在采用上述方式二的情况下,提取的拉曼光谱数据的波峰信息。
表2
Figure PCTCN2017108734-appb-000003
参照表2,拉曼检测设备收集到的拉曼光谱的亮度值达到B时,停止收 集拉曼光谱信息,共记录数据N次。
另外,参照表1和表2,本公开实施例根据每一次记录的拉曼光谱数据提取的波峰信息可以包括波峰的峰值以及出现的位置。具体地,下面以图2a和图2b举例说明该波峰信息。
图2a是表1中的拉曼光谱数据2的示意图,如图2a所示,拉曼光谱数据2包括两个波峰,峰值分别为y12以及y22,峰值出现的位置分别是X轴的x1和x2位置点,因此,表1中记录的波峰信息为(x1,y12)和(x2,y22)。图2b是表1中的拉曼光谱数据3的示意图,如图2b所示,拉曼光谱数据3包括两个波峰,峰值分别为y12,y22以及y33,峰值出现的位置分别是X轴的x1、x2和x3位置点,因此,表1中记录的波峰信息为(x1,y13),(x2,y23)和(x3,y33)。
S13、根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率。
其中,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数。
仍以图2a和图2b为例进行说明,结合表1可知,第2次记录的拉曼光谱数据2包括两个波峰(x1,y12)和(x2,y22),该两个波峰到第3次记录时,对应拉曼光谱数据3中的波峰(x1,y13)和(x2,y23),由此可知,波峰(x1,y12)到第3次记录时,增长速率为(y13-y12)/y12,波峰(x2,y22)到第3次记录时,增长速率为(y23-y22)/y22。
另外,在一种可能的实现方式中,步骤S12中提取的每一次记录的拉曼光谱数据的波峰信息包括每一次记录的拉曼光谱数据中的峰值超过预设阈值的波峰的峰值以及所述波峰出现的位置。这样,步骤S13具体包括:根据第一波峰的峰值以及第n-1次记录的拉曼光谱数据中位置与所述第一波峰的位置相同的波峰的峰值确定所述第一波峰的增长速率,所述第一波峰是第n 次记录的拉曼光谱数据中的峰值超过预设阈值的任一波峰。
也就是说,表1或表2中记录的波峰信息均为峰值大于预设阈值的波峰的信息。如图2a以及图2b中所示的y0,表1中记录的波峰为峰值大于y0的波峰的信息。
S14、判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致。
示例地,表1中第2次记录的拉曼光谱数据2中的波峰(x1,y12)到第3次记录时,增长速率为(y13-y12)/y12,波峰(x2,y22)到第3次记录时,增长速率为(y23-y22)/y22。
因此,若(y13-y12)/y13=(y23-y22)/y23,则第2次记录拉曼光谱数据的各个波峰的增长速率一致,或者(y13-y12)/y13-(y23-y22)/y23=0,则第2次记录拉曼光谱数据的各个波峰的增长速率一致。
值得说明的是,但因为受实际环境因素的影响,应留有一定的误差范围,因此,本公开实施例在具体实施时,可以判断各个波峰的增长速率之差或者之比是否处于预设误差范围之内,在各个波峰的增长速率之差或者之比处于所述预设误差范围时,确定各个波峰的增长速率一致,在各个波峰的增长速率之差或者之比未处于所述预设误差范围时,确定各个波峰的增长速率不一致。
S15、在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
由于对一种待测物体的拉曼光谱来说,其不同位置出现的各个波峰的增长比例是相等的,因此,若第n次记录的拉曼光谱数据的各个波峰的增长速率不一致,则表明收集到其他物质的拉曼光谱数据,从而可以确定拉曼检测设备发射的激光发生焦点偏离。
因此,采用上述方法步骤,本公开实施例多次记录光谱仪传感器累计收集到的拉曼光谱,并对各波峰的增长比例是否一致进行判断,最终根据判断 结果即可确定激光焦点是否出现了偏移,无需用户通过经验判断,避免了由于焦点偏移导致在收集的拉曼光谱中混入其他物体的拉曼光谱的情况发生,进而可以提高物质检测的准确度。
另外,值得说明的是,在第n次记录的拉曼光谱数据的各个波峰的增长速率一致时,由于第n+1次记录的拉曼光谱数据中可能在新的位置出现了新的波峰,例如,参照图2a和图2b,第2记录的拉曼光谱数据在x3位置出现了新的波峰,由于第n次记录的拉曼光谱数据的相同位置没有记录该波峰,因此无法判断新出现的波峰的增长速率是否与其他波峰增长速率一致,从而在第n次记录的拉曼光谱数据的各个波峰的增长速率一致时,无法确定所述拉曼检测设备发射的激光未发生焦点偏离。
因此本公开实施例中,若第n次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第n次记录的拉曼光谱数据的各个波峰,第n+1次记录的拉曼光谱数据未在新的位置出现峰值超过预设阈值的波峰,则可确定所述拉曼检测设备发射的激光在第n次记录到第n+1次记录之间未发生焦点偏离。但是,在第i次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第i次记录的拉曼光谱数据的各个波峰,第i+1次记录的拉曼光谱数据在新的位置出现峰值超过预设阈值的新的波峰时,至少需要结合i+2次记录的拉曼光谱数据进一步判断新出现的波峰的增长速率,以确定是否发生焦点偏离,其中,i是大于0小于N-1的正整数。
针对最后一次记录,若在第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第N-1次记录的拉曼光谱数据的各个波峰,第N次记录的拉曼光谱数据在新的位置出现峰值超过预设阈值的新的波峰,则需要额外的方法判断焦点是否未偏离,例如,本公开实施例提供的方法可以根据第N-1次记录的拉曼光谱数据在所述新的位置上的数据以及该新出现的波峰的峰值,判断该新的波峰的增长速率是否与第N-1次记录的拉曼光谱数据的各 个波峰的增长速率一致,若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间未发生焦点偏离;若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率不一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间发生焦点偏离。
也就是说,虽然第N-1次记录的拉曼光谱数据可能在所述新的位置未出现波峰或者出现波峰,但是由于峰值未超过预设阈值(如图2a或者图2b所示的y0)未被提取,因此未被记录到表1中,但是,仍可以利用第N-1次记录的拉曼光谱数据在所述新的位置的实际数值判断新出现的波峰的增长速率。
由此可知,在具体实施时,预设阈值y0的设置越小,提取到的波峰数越多,后续记录的拉曼光谱数据相比之前记录的拉曼光谱数据出现新的波峰的几率越小,预设阈值y0取值过大,还可能出现抖动造成的激光照射在另一种物品上的时间内,没有该另一物品的峰值能够达到y0的情况发生。具体地,阈值y0以及记录的总次数N可以根据场景和使用者通过实验预先标定。
进一步地,本公开实施例提供的焦点偏离的判断方法在确定激光焦点偏离时,可以输出提醒信息,以提醒使用者激光焦点已偏离,由使用者决策是否重新进行拉曼检测,也可以是在输出提醒信息时,同时清除光谱仪传感器的数据,强制要求使用者重新进行拉曼检测。本公开对此不做限定。
另外,值得说明的是,对于上述方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制。例如,步骤S12至步骤S15可以在每次记录拉曼光谱数据与下一次记录拉曼光谱数据之间执行,从而实现实时的检查与提醒,一旦确定焦点偏离,则可以立刻提醒使用者,并采用应对措施,如停止激光 发射,准备重新进行检测。但是,在两次记录间隔时间过小的情况下,拉曼检测设备的计算能力可能不足以支撑在两次记录的间隔做预处理和提峰算法,因此,步骤S12至步骤S15也可以是在拉曼光谱数据收集完成之后执行,例如,发射激光时长达到预设总时长或者波峰到达触发停止的峰值之后执行,在此种情况下,若确定拉曼检测过程中出现了焦点偏移,仍可以输出物质检测结果,让使用者决策是否需要重新进行检测。
图3是根据本公开实施例提供的一种焦点偏离的判断装置的框图,用于实施上述方法实施例提供的一种焦点偏离的判断方法的步骤,如图3所示,该装置包括:
数据记录模块301,用于在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据;
峰值提取模块302,用于提取每一次记录的拉曼光谱数据的波峰信息;
计算模块303,用于根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数;
对比判断模块304,用于判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致;
确定模块305,用于在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
可选地,所述数据记录模块301包括:
第一划分子模块,用于根据所述拉曼检测设备的激光发射总时长M将检测时长划分为N个时间切片;
第一数据记录子模块,用于每间隔时长M/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
可选地,所述数据记录模块301包括:
第二划分子模块,用于根据所述拉曼检测设备的检测总亮度值B将拉曼光谱数据的亮度划分为N个亮度切片,所述检测总亮度值是指所述拉曼检测设备在收集到的拉曼光谱数据的亮度值达到B时停止检测;
第二数据记录子模块,用于收集到的拉曼光谱的亮度值每增长B/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
可选地,所述峰值提取模块302用于:
提取每一次记录的拉曼光谱数据中的峰值超过预设阈值的波峰的峰值以及所述波峰出现的位置;
所述计算模块303用于:
根据第一波峰的峰值以及第n+1次记录的拉曼光谱数据中位置与所述第一波峰的位置相同的波峰的峰值确定所述第一波峰的增长速率,所述第一波峰是第n次记录的拉曼光谱数据中的峰值超过预设阈值的任一波峰。
可选地,所述对比判断模块304用于:
判断各个波峰的增长速率之差或者之比是否处于预设误差范围之内,在各个波峰的增长速率之差或者之比处于所述预设误差范围时,确定各个波峰的增长速率一致,在各个波峰的增长速率之差或者之比未处于所述预设误差范围时,确定各个波峰的增长速率不一致。
可选地,所述确定模块305还用于:
在第n次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第n次记录的拉曼光谱数据的各个波峰,第n+1次记录的拉曼光谱数据未在新的位置出现峰值超过预设阈值的波峰时,确定所述拉曼检测设备发射的激光在第n次记录到第n+1次记录之间未发生焦点偏离。
可选地,所述确定模块305还用于:
在第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第N-1次记录的拉曼光谱数据的各个波峰,第N次记录的拉曼光谱数据在新的位置出现峰值超过预设阈值的新的波峰时,根据第N-1次记录的拉曼光谱数据在所述新的位置上的数据以及该新出现的波峰的峰值,判断该新的波峰的增长速率是否与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致;
若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间未发生焦点偏离;
若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率不一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间发生焦点偏离。
对一种待测物体的拉曼光谱来说,其不同位置出现的各个波峰的增长比例是相等的,采用本公开实施例提供的上述装置,该装置多次记录光谱仪传感器累计收集到的拉曼光谱,并对各波峰的增长比例是否一致进行判断,最终根据判断结果即可确定激光焦点是否出现了偏移,从而无需用户通过经验判断,避免了由于焦点偏移导致在收集的拉曼光谱中混入其他物体的拉曼光谱的情况发生,进而可以提高物质检测的准确度。
图4是根据一示例性实施例示出的一种电子设备400的框图。如图5所示,该电子设备400可以包括:处理器401,存储器402,多媒体组件403,输入/输出(I/O)接口404,以及通信组件405。
其中,处理器401用于控制该电子设备400的整体操作,以完成上述的焦点偏离的判断方法中的全部或部分步骤。存储器402用于存储各种类型的数据以支持在该电子设备400的操作,这些数据例如可以包括用于在该电子设备400上操作的任何应用程序或方法的指令,以及应用程序相关的数据, 例如联系人数据、收发的消息、图片、音频、视频等等。该存储器402可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件403可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器402或通过通信组件405发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口404为处理器401和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件405用于该电子设备400与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件405可以包括:Wi-Fi模块,蓝牙模块,NFC模块。
在一示例性实施例中,电子设备400可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述焦点偏离的判断方法。
本公开实施例还提供一种计算机可读存储介质1,该计算机可读存储介质1中包括一个或多个程序,该一个或多个程序用于执行上述一种焦点偏离的判断方法。
本公开还提供一种电子设备,该电子设备包括上述计算机可读存储介质1,以及一个或者多个处理器,用于执行该计算机可读存储介质1中的程序。该电子设备还包括激光发射器,光谱仪传感器等。
其中,该电子设备可以是手机或者平板电脑等终端设备。
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。

Claims (16)

  1. 一种焦点偏离的判断方法,其特征在于,包括:
    在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据;
    提取每一次记录的拉曼光谱数据的波峰信息;
    根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数;
    判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致;
    在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
  2. 根据权利要求1所述的方法,其特征在于,所述每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,包括:
    根据所述拉曼检测设备的激光发射总时长M将检测时长划分为N个时间切片;
    每间隔时长M/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
  3. 根据权利要求1所述的方法,其特征在于,所述每当收集到的拉曼光谱的亮度值增长一固定值记录一次所述拉曼检测设备的光谱仪传感器累 计收集到的拉曼光谱数据,包括:
    根据所述拉曼检测设备的检测总亮度值B将拉曼光谱数据的亮度划分为b个亮度切片,所述检测总亮度值是指所述拉曼检测设备在收集到的拉曼光谱数据的亮度值达到B时停止检测;
    收集到的拉曼光谱的亮度值每增长B/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述提取每一次记录的拉曼光谱数据的波峰信息,包括:
    提取每一次记录的拉曼光谱数据中的峰值超过预设阈值的波峰的峰值以及所述波峰出现的位置;
    所述根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,包括:
    根据第一波峰的峰值以及第n+1次记录的拉曼光谱数据中位置与所述第一波峰的位置相同的波峰的峰值确定所述第一波峰的增长速率,所述第一波峰是第n次记录的拉曼光谱数据中的峰值超过预设阈值的任一波峰。
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,所述判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致,包括:
    判断各个波峰的增长速率之差或者之比是否处于预设误差范围之内,在各个波峰的增长速率之差或者之比处于所述预设误差范围时,确定各个波峰的增长速率一致,在各个波峰的增长速率之差或者之比未处于所述预设误差范围时,确定各个波峰的增长速率不一致。
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    在第n次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第n次记录的拉曼光谱数据的各个波峰,第n+1次记录的拉曼光谱数据未在新的位置出现峰值超过预设阈值的波峰,则确定所述拉曼检测设备发射的激光在第n次记录到第n+1次记录之间未发生焦点偏离。
  7. 根据权利要求4所述的方法,其特征在于,所述方法还包括:在第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第N-1次记录的拉曼光谱数据的各个波峰,第N次记录的拉曼光谱数据在新的位置出现峰值超过预设阈值的新的波峰时,根据第N-1次记录的拉曼光谱数据在所述新的位置上的数据以及该新出现的波峰的峰值,判断该新的波峰的增长速率是否与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致;
    若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间未发生焦点偏离;
    若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率不一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间发生焦点偏离。
  8. 一种焦点偏离的判断装置,其特征在于,所述装置包括:
    数据记录模块,用于在拉曼检测设备发射激光并进行拉曼光谱收集的过程中,每间隔一固定时长记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据,或者每当收集到的拉曼光谱的亮度值增长一固定值,记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据;
    峰值提取模块,用于提取每一次记录的拉曼光谱数据的波峰信息;
    计算模块,用于根据第n次记录的拉曼光谱数据的波峰信息与第n+1次记录的拉曼光谱数据的波峰信息,确定第n次记录的拉曼光谱数据的各个波峰到第n+1次记录时的增长速率,n为大于0且小于N的正整数,N为记录拉曼光谱数据的总次数;
    对比判断模块,用于判断第n次记录的拉曼光谱数据的各个波峰的增长速率是否一致;
    确定模块,用于在第n次记录的拉曼光谱数据的各个波峰的增长速率不一致时,确定所述拉曼检测设备发射的激光发生焦点偏离。
  9. 根据权利要求8所述的装置,其特征在于,所述数据记录模块包括:
    第一划分子模块,用于根据所述拉曼检测设备的激光发射总时长M将检测时长划分为N个时间切片;
    第一数据记录子模块,用于每间隔时长M/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
  10. 根据权利要求8所述的装置,其特征在于,所述数据记录模块包括:
    第二划分子模块,用于根据所述拉曼检测设备的检测总亮度值B将拉曼光谱数据的亮度划分为N个亮度切片,所述检测总亮度值是指所述拉曼检测设备在收集到的拉曼光谱数据的亮度值达到B时停止检测;
    第二数据记录子模块,用于收集到的拉曼光谱的亮度值每增长B/N记录一次所述拉曼检测设备的光谱仪传感器累计收集到的拉曼光谱数据。
  11. 根据权利要求8至10中任一项所述的装置,其特征在于,所述峰值提取模块用于:
    提取每一次记录的拉曼光谱数据中的峰值超过预设阈值的波峰的峰值 以及所述波峰出现的位置;
    所述计算模块用于:
    根据第一波峰的峰值以及第n+1次记录的拉曼光谱数据中位置与所述第一波峰的位置相同的波峰的峰值确定所述第一波峰的增长速率,所述第一波峰是第n次记录的拉曼光谱数据中的峰值超过预设阈值的任一波峰。
  12. 根据权利要求8至10中任一项所述的装置,其特征在于,所述对比判断模块用于:
    判断各个波峰的增长速率之差或者之比是否处于预设误差范围之内,在各个波峰的增长速率之差或者之比处于所述预设误差范围时,确定各个波峰的增长速率一致,在各个波峰的增长速率之差或者之比未处于所述预设误差范围时,确定各个波峰的增长速率不一致。
  13. 根据权利要求11所述的装置,其特征在于,所述确定模块还用于:
    在第n次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第n次记录的拉曼光谱数据的各个波峰,第n+1次记录的拉曼光谱数据未在新的位置出现峰值超过预设阈值的波峰时,确定所述拉曼检测设备发射的激光在第n次记录到第n+1次记录之间未发生焦点偏离。
  14. 根据权利要求11所述的装置,其特征在于,所述确定模块还用于:
    在第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,且相比第N-1次记录的拉曼光谱数据的各个波峰,第N次记录的拉曼光谱数据在新的位置出现峰值超过预设阈值的新的波峰时,根据第N-1次记录的拉曼光谱数据在所述新的位置上的数据以及该新出现的波峰的峰值,判断该新的波峰的增长速率是否与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致;
    若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间未发生焦点偏离;
    若该新的波峰的增长速率与第N-1次记录的拉曼光谱数据的各个波峰的增长速率不一致,则确定所述拉曼检测设备发射的激光在第N-1次记录到第N次记录之间发生焦点偏离。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行权利要求1至7中任一项所述的方法。
  16. 一种电子设备,其特征在于,包括:
    权利要求15中所述的计算机可读存储介质;以及
    一个或者多个处理器,用于执行所述计算机可读存储介质中的程序。
PCT/CN2017/108734 2017-10-31 2017-10-31 焦点偏离的判断方法、装置、存储介质及电子设备 WO2019084817A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/108734 WO2019084817A1 (zh) 2017-10-31 2017-10-31 焦点偏离的判断方法、装置、存储介质及电子设备
CN201780002523.1A CN108064340B (zh) 2017-10-31 2017-10-31 焦点偏离的判断方法、装置、存储介质及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/108734 WO2019084817A1 (zh) 2017-10-31 2017-10-31 焦点偏离的判断方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2019084817A1 true WO2019084817A1 (zh) 2019-05-09

Family

ID=62142050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108734 WO2019084817A1 (zh) 2017-10-31 2017-10-31 焦点偏离的判断方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN108064340B (zh)
WO (1) WO2019084817A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032988B (zh) * 2019-04-23 2020-11-13 北京理工大学 紫外拉曼光谱系统实时降噪增强方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722995A (zh) * 2002-10-11 2006-01-18 英特拉雷斯公司 用于确定物体表面相对于激光束的位置和对准的方法和系统
US20100191506A1 (en) * 2009-01-26 2010-07-29 Itt Manufacturing Enterprises, Inc. Data Quality And Ancillary Data Checking For Raman Sensor
CN104458701A (zh) * 2014-12-11 2015-03-25 成都鼎智汇科技有限公司 拉曼光谱爆炸物识别仪自动校准方法
CN106383105A (zh) * 2016-08-29 2017-02-08 上海交通大学 可自动调整测样距离的拉曼光谱测量装置与方法
CN106596499A (zh) * 2016-11-01 2017-04-26 北京华泰诺安技术有限公司 一种拉曼光谱实时校准方法
CN106770168A (zh) * 2016-12-26 2017-05-31 同方威视技术股份有限公司 基于拉曼光谱的物品检查设备及方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6351306B1 (en) * 1999-10-19 2002-02-26 Kaiser Optical Systems, Inc. Optical measurement probe calibration configurations
CN102121902B (zh) * 2011-03-15 2012-10-24 南京工业大学 一种在线拉曼光谱仪校正装置及其校正方法
CN103505221A (zh) * 2012-06-28 2014-01-15 广西科学院 一种利用拉曼光谱定量检测血糖的无损方法
CN103969239B (zh) * 2013-09-06 2016-04-13 北京理工大学 一种分光瞳激光差动共焦拉曼光谱测试方法及装置
CN105372222B (zh) * 2014-08-22 2018-11-30 中国科学院生态环境研究中心 一种二价重金属检测方法
CN104316506B (zh) * 2014-10-14 2017-05-10 上海交通大学 拉曼探头和可自动对焦的拉曼信号探测系统以及方法
CN104931481B (zh) * 2015-06-23 2017-08-25 北京理工大学 激光双轴差动共焦诱导击穿‑拉曼光谱成像探测方法与装置
CN106770153B (zh) * 2016-11-15 2019-05-17 北京蓝色星语科技有限公司 一种空间偏移量可调的拉曼光谱系统及拉曼光谱探测方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722995A (zh) * 2002-10-11 2006-01-18 英特拉雷斯公司 用于确定物体表面相对于激光束的位置和对准的方法和系统
US20100191506A1 (en) * 2009-01-26 2010-07-29 Itt Manufacturing Enterprises, Inc. Data Quality And Ancillary Data Checking For Raman Sensor
CN104458701A (zh) * 2014-12-11 2015-03-25 成都鼎智汇科技有限公司 拉曼光谱爆炸物识别仪自动校准方法
CN106383105A (zh) * 2016-08-29 2017-02-08 上海交通大学 可自动调整测样距离的拉曼光谱测量装置与方法
CN106596499A (zh) * 2016-11-01 2017-04-26 北京华泰诺安技术有限公司 一种拉曼光谱实时校准方法
CN106770168A (zh) * 2016-12-26 2017-05-31 同方威视技术股份有限公司 基于拉曼光谱的物品检查设备及方法

Also Published As

Publication number Publication date
CN108064340A (zh) 2018-05-22
CN108064340B (zh) 2020-06-16

Similar Documents

Publication Publication Date Title
WO2021143008A1 (zh) 类别标注方法及装置、电子设备、存储介质和计算机程序
WO2016110145A1 (zh) 屏幕亮度设置方法及装置
WO2020134641A1 (zh) 数据处理方法及装置
WO2017031905A1 (zh) 社交关系分析方法及装置
US11893796B2 (en) Methods and systems for detection of anomalous motion in a video stream and for creating a video summary
US20120075480A1 (en) Video testing system and method
WO2016155232A1 (zh) 号码标记方法及装置
WO2016050038A1 (zh) 通信消息识别方法及装置
US10104428B2 (en) Video playing detection method and apparatus
EP2998960A1 (en) Method and device for video browsing
CN109557396B (zh) 一种电磁场辐射抗扰度视频自动检测系统及检测方法
EP3882787A1 (en) Method and device for evaluating quality of content, electronic equipment, and storage medium
CN109635142A (zh) 图像选择方法及装置、电子设备和存储介质
CN106253996B (zh) 灵敏度衰减测试方法及装置
CN111666015A (zh) 悬浮短信显示方法及装置
WO2019084817A1 (zh) 焦点偏离的判断方法、装置、存储介质及电子设备
JP5971182B2 (ja) Maldi質量分析装置
WO2019036941A1 (zh) 物质检测方法、装置、存储介质及电子设备
WO2019101002A1 (zh) 一种鞋的数据获取方法和设备以及计算机存储介质
WO2019080013A1 (zh) 拉曼检测方法、装置、存储介质及电子设备
TW201333502A (zh) 邏輯分析儀之資料讀取及寫入其記憶體之方法
CN108132882A (zh) 信息获取方法、装置及电子设备
CN114387441A (zh) 一种图像处理方法及系统
US11763561B2 (en) Information processing apparatus, information processing method, and program
US10331621B1 (en) System and method for displaying a sample of uniform and outlier rows from a file

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: 17930961

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 11.09.2020

122 Ep: pct application non-entry in european phase

Ref document number: 17930961

Country of ref document: EP

Kind code of ref document: A1