CN113049106A - Digital intelligent color sensor system - Google Patents
Digital intelligent color sensor system Download PDFInfo
- Publication number
- CN113049106A CN113049106A CN202110265532.8A CN202110265532A CN113049106A CN 113049106 A CN113049106 A CN 113049106A CN 202110265532 A CN202110265532 A CN 202110265532A CN 113049106 A CN113049106 A CN 113049106A
- Authority
- CN
- China
- Prior art keywords
- signal
- module
- unit
- light
- frequency
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 claims abstract description 87
- 238000012545 processing Methods 0.000 claims abstract description 79
- 238000005070 sampling Methods 0.000 claims abstract description 38
- 230000003287 optical effect Effects 0.000 claims abstract description 33
- 238000004458 analytical method Methods 0.000 claims abstract description 3
- 238000006243 chemical reaction Methods 0.000 claims description 27
- 238000000354 decomposition reaction Methods 0.000 claims description 13
- 238000007781 pre-processing Methods 0.000 claims description 13
- 238000001914 filtration Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 11
- 230000003321 amplification Effects 0.000 claims description 3
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 239000000523 sample Substances 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J3/00—Spectrometry; Spectrophotometry; Monochromators; Measuring colours
- G01J3/46—Measurement of colour; Colour measuring devices, e.g. colorimeters
Landscapes
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- General Physics & Mathematics (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
Description
技术领域technical field
本发明涉及颜色传感器技术领域,特别是一种数字智能型颜色传感器系统。The invention relates to the technical field of color sensors, in particular to a digital intelligent color sensor system.
背景技术Background technique
随着现代工业化生产向高速化、自动化方向发展,目前我国对颜色测量、识别仪器的需求量越来越大,要求也越来越高;目前,现有的颜色传感器大多采用固定的光源,不能适应不同场合或不同目标对象测量的需要。With the development of modern industrial production towards high speed and automation, the demand for color measurement and identification instruments in my country is increasing, and the requirements are getting higher and higher; at present, most of the existing color sensors use fixed light sources, which cannot be Adapt to the measurement needs of different occasions or different target objects.
公开于该背景技术部分的信息仅仅旨在增加对本发明的总体背景的理解,而不应当被视为承认或以任何形式暗示该信息构成已为本领域一般技术人员所公知的现有技术。The information disclosed in this Background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
针对上述问题,本发明旨在提供一种数字智能型颜色传感器系统。In view of the above problems, the present invention aims to provide a digital intelligent color sensor system.
本发明的目的采用以下技术方案来实现:The object of the present invention adopts the following technical solutions to realize:
本发明示出一种数字智能型颜色传感器系统,包括处理器模块、信号传感模块、控制模块和信号处理模块;其中处理器模块分别与信号传感模块、控制模块和信号处理模块连接,信号传感模块与信号处理模块连接;The invention shows a digital intelligent color sensor system, comprising a processor module, a signal sensing module, a control module and a signal processing module; wherein the processor module is respectively connected with the signal sensing module, the control module and the signal processing module, and the signal The sensing module is connected with the signal processing module;
信号传感模块用于发射检测光源和接收光信号,其中接收的光信号包括红色光信号、绿色光信号和蓝色光信号;The signal sensing module is used for emitting and detecting light sources and receiving light signals, wherein the received light signals include red light signals, green light signals and blue light signals;
控制模块用于检测被测物体的光强度,并根据光强度检测结果出输出相应的控制指令调节信号传感模块发射的检测光源强度;The control module is used to detect the light intensity of the object to be measured, and according to the detection result of the light intensity, output corresponding control commands to adjust the intensity of the detection light source emitted by the signal sensing module;
信号处理模块用于根据接收到的光信号进行信号处理,输出AD采样信号到处理器模块;The signal processing module is used to perform signal processing according to the received optical signal, and output the AD sampling signal to the processor module;
处理器模块根据接收到的AD采样信号进行分析处理,获取颜色检测结果。The processor module analyzes and processes the received AD sampling signal to obtain the color detection result.
一种实施方式中,信号传感模块包括光源单元、RGB光信号采集单元和白光信号采集单元;其中,In one embodiment, the signal sensing module includes a light source unit, an RGB light signal collection unit, and a white light signal collection unit; wherein,
光源单元用于提供白色光源;The light source unit is used to provide a white light source;
RGB光信号采集单元包括分别设置有红色光滤光装置、绿色光绿光装置和蓝色光滤光装置的光敏采集单元,用于分别采集红色光信号、绿色光信号和蓝色光信号,并将采集到的采集红色光信号、绿色光信号和蓝色光信号传输到信号处理模块;The RGB light signal collection unit includes a photosensitive collection unit that is respectively provided with a red light filter device, a green light green light device and a blue light filter device, which are used to collect the red light signal, the green light signal and the blue light signal respectively, and collect the light signal. The collected red light signal, green light signal and blue light signal are transmitted to the signal processing module;
白光信号采集单元,用于直接采集白色光源照射到物体后反射回的白色光信号,并将采集到的白色光信号传输到信号处理模块。The white light signal collection unit is used to directly collect the white light signal reflected back after the white light source illuminates the object, and transmit the collected white light signal to the signal processing module.
一种实施方式中,控制模块包括光强度反馈单元和光源控制单元;In one embodiment, the control module includes a light intensity feedback unit and a light source control unit;
光强度反馈单元用于根据接收到的白色光信号进行光强度检测,获取光强度检测值;The light intensity feedback unit is used to perform light intensity detection according to the received white light signal, and obtain the light intensity detection value;
光源控制单元用于根据获取的光强度检测值进行判断,当光强度检测值减弱或者小于设定的阈值时,则向光源单元发出补偿控制信号,以控制光源单元调节光源亮度。The light source control unit is used for judgment according to the acquired light intensity detection value, and when the light intensity detection value is weakened or smaller than the set threshold, it sends a compensation control signal to the light source unit to control the light source unit to adjust the brightness of the light source.
一种实施方式中,还包括外部检测模块;In one embodiment, it also includes an external detection module;
外部检测模块用于与外部检测头连接,通过外部检测头进行光信号采样,并将通过外部检测头采样的光信号传输到信号处理模块;The external detection module is used to connect with the external detection head, sample the optical signal through the external detection head, and transmit the optical signal sampled by the external detection head to the signal processing module;
处理器模块包括信号选择单元,其中信号选择单元分别与信号传感模块和外部检测模块连接;当检测到外部检测模块接有外部检测头时,信号选择单元切断信号传感模块的信号采样并选择外部检测模块连接的外部检测头进行光信号采样。The processor module includes a signal selection unit, wherein the signal selection unit is respectively connected with the signal sensing module and the external detection module; when it is detected that the external detection module is connected with an external detection head, the signal selection unit cuts off the signal sampling of the signal sensing module and selects The external detection head connected to the external detection module performs optical signal sampling.
一种实施方式中,信号处理模块包括依次连接的AD转换单元、预处理单元和放大单元;其中In one embodiment, the signal processing module includes an AD conversion unit, a preprocessing unit and an amplifying unit that are connected in sequence; wherein
AD转换单元用于对接收到的光信号进行模数转换处理,获取AD采样信号;其中接收到的光信号包括由信号传感模块传输的红色光信号、绿色光信号、蓝色光信号、白色光信号或由外部检测模块传输的光信号。The AD conversion unit is used to perform analog-to-digital conversion processing on the received optical signal, and obtain the AD sampling signal; wherein the received optical signal includes red light signal, green light signal, blue light signal, white light signal transmitted by the signal sensing module signal or optical signal transmitted by an external detection module.
预处理单元用于对获取的AD采样信号进行滤波处理,输出预处理后的AD采样信号;The preprocessing unit is used to filter the acquired AD sampled signal, and output the preprocessed AD sampled signal;
放大单元用于对预处理后的AD采样信号进行放大处理,输出放大处理后的AD采样信号。The amplifying unit is used for amplifying the preprocessed AD sampled signal, and outputting the amplified AD sampled signal.
一种实施方式中,预处理单元对获取的AD采样信号进行滤波处理,具体包括:In one embodiment, the preprocessing unit performs filtering processing on the acquired AD sampled signal, specifically including:
对获取的AD采样信号进行经验模态分解,获取AD采样信号的IMF分量;Perform empirical mode decomposition on the acquired AD sampled signal to obtain the IMF component of the AD sampled signal;
对获取的IMF分量进行高低频划分,将IMF分量划分为低频IMF分量和高频IMF分量,并根据低频IMF分量进行重构得到低频信号;根据高频IMF分量进行重构得到高频信号;The acquired IMF components are divided into high and low frequencies, the IMF components are divided into low-frequency IMF components and high-frequency IMF components, and the low-frequency signals are obtained by reconstructing according to the low-frequency IMF components; the high-frequency signals are obtained by reconstructing according to the high-frequency IMF components;
采用设定的小波基和分解尺度对低频信号进行小波分解处理,获取低频信号的高频小波系数和低频小波系数,针对获取的高频小波系数进行阈值处理,获取阈值处理后的高频小波系数;Use the set wavelet base and decomposition scale to perform wavelet decomposition processing on the low-frequency signal, obtain the high-frequency wavelet coefficients and low-frequency wavelet coefficients of the low-frequency signal, perform threshold processing on the obtained high-frequency wavelet coefficients, and obtain the thresholded high-frequency wavelet coefficients ;
将低频小波系数和阈值处理后的高频小波系数进行重构,得到滤波后的低频信号;Reconstruct the low-frequency wavelet coefficients and the thresholded high-frequency wavelet coefficients to obtain a filtered low-frequency signal;
对高频信号进行加权中值滤波处理,得到滤波后的高频信号;Perform weighted median filtering on the high-frequency signal to obtain the filtered high-frequency signal;
将滤波后的低频信号和滤波后的高频信号进行重构,得到预处理后的AD采样信号。The filtered low-frequency signal and the filtered high-frequency signal are reconstructed to obtain the preprocessed AD sampling signal.
一种实施方式中,处理器模块包括电源单元、存储单元、颜色转换单元;其中In one embodiment, the processor module includes a power supply unit, a storage unit, and a color conversion unit; wherein
电源单元分别与系统的各模块连接,用于为系统各模块供电;The power supply unit is connected to each module of the system respectively, and is used to supply power to each module of the system;
存储单元用于存储系统配置参数和颜色转换标准参考数据;The storage unit is used to store system configuration parameters and color conversion standard reference data;
颜色转换单元用于根据信号处理模块传输的AD采样信号进行与存储的颜色转换标准参考数据进行比对,输出颜色检测结果。The color conversion unit is used for comparing with the stored color conversion standard reference data according to the AD sampling signal transmitted by the signal processing module, and outputting the color detection result.
本发明的有益效果为:通过控制模块对被测物体的光强度进行检测,并且根据光强度检测结果来自适应调节检测光源的强度,使得通过信号传感模块采集的红、绿、蓝三色光信号能够处于合适的亮度水平中,并且通过信号处理模块和处理器模块依次根据采集的红、绿、蓝三色光信号进行颜色检测处理最终获取颜色检测结果,能够有效提高颜色检测结果的精确度和智能化水平。The beneficial effects of the present invention are: the light intensity of the measured object is detected by the control module, and the intensity of the detection light source is adaptively adjusted according to the light intensity detection result, so that the red, green and blue light signals collected by the signal sensing module It can be at a suitable brightness level, and the signal processing module and the processor module sequentially perform color detection processing according to the collected red, green, and blue light signals, and finally obtain the color detection results, which can effectively improve the accuracy and intelligence of the color detection results. level.
附图说明Description of drawings
利用附图对本发明作进一步说明,但附图中的实施例不构成对本发明的任何限制,对于本领域的普通技术人员,在不付出创造性劳动的前提下,还可以根据以下附图获得其它的附图。The present invention will be further described by using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. For those of ordinary skill in the art, under the premise of no creative work, other Attached.
图1为本发明一种数字智能型颜色传感器系统,示例性实施例的框架结构图;1 is a frame structure diagram of a digital intelligent color sensor system of the present invention, an exemplary embodiment;
图2为图1实施例中处理器模块、信号传感模块、控制模块和信号处理模块的框架结构图。FIG. 2 is a frame structure diagram of a processor module, a signal sensing module, a control module and a signal processing module in the embodiment of FIG. 1 .
附图标记:Reference number:
处理器模块1、信号传感模块2控制模块3、信号处理模块4、外部检测模块5、通信模块6、光源单元21、RGB光信号采集单元22、白光信号采集单元23、光强度反馈单元31、光源控制单元32、AD转换单元41、预处理单元42、放大单元43Processor module 1, signal sensing module 2, control module 3, signal processing module 4, external detection module 5, communication module 6, light source unit 21, RGB light signal collection unit 22, white light signal collection unit 23, light intensity feedback unit 31 , light source control unit 32, AD conversion unit 41, preprocessing unit 42, amplification unit 43
具体实施方式Detailed ways
结合以下应用场景对本发明作进一步描述。The present invention will be further described with reference to the following application scenarios.
参见图1、图2实施例所示一种数字智能型颜色传感器系统,包括处理器模块1、信号传感模块2、控制模块3和信号处理模块4;其中处理器模块1分别与信号传感模块2、控制模块3和信号处理模块4连接,信号传感模块2与信号处理模块4连接;Referring to FIG. 1 and FIG. 2, a digital intelligent color sensor system includes a processor module 1, a signal sensing module 2, a control module 3 and a signal processing module 4; wherein the processor module 1 is connected to the signal sensing module 1 respectively. The module 2, the control module 3 and the signal processing module 4 are connected, and the signal sensing module 2 is connected with the signal processing module 4;
信号传感模块2用于发射检测光源和接收光信号,其中接收的光信号包括红色光信号、绿色光信号和蓝色光信号;The signal sensing module 2 is used for emitting and detecting light sources and receiving light signals, wherein the received light signals include red light signals, green light signals and blue light signals;
控制模块3用于检测被测物体的光强度,并根据光强度检测结果出输出相应的控制指令调节信号传感模块2发射的检测光源强度;The control module 3 is used to detect the light intensity of the object to be measured, and output corresponding control instructions to adjust the intensity of the detection light source emitted by the signal sensing module 2 according to the light intensity detection result;
信号处理模块4用于根据接收到的光信号进行信号处理,输出AD采样信号到处理器模块1;The signal processing module 4 is used to perform signal processing according to the received optical signal, and output the AD sampling signal to the processor module 1;
处理器模块1根据接收到的AD采样信号进行分析处理,获取颜色检测结果。The processor module 1 performs analysis and processing according to the received AD sampling signal, and obtains the color detection result.
上述实施方式中,提出一种数字智能型颜色传感器系统,通过控制模块3对被测物体的光强度进行检测,并且根据光强度检测结果来自适应调节检测光源的强度,使得通过信号传感模块2采集的红、绿、蓝三色光信号能够处于合适的亮度水平中,并且通过信号处理模块4和处理器模块1依次根据采集的红、绿、蓝三色光信号进行颜色检测处理最终获取颜色检测结果,能够有效提高颜色检测结果的精确度和智能化水平。In the above embodiment, a digital intelligent color sensor system is proposed, which detects the light intensity of the measured object through the control module 3, and adaptively adjusts the intensity of the detected light source according to the light intensity detection result, so that the signal sensor module 2 The collected red, green, and blue light signals can be at a suitable brightness level, and the signal processing module 4 and the processor module 1 sequentially perform color detection processing according to the collected red, green, and blue light signals, and finally obtain a color detection result. , which can effectively improve the accuracy and intelligence level of color detection results.
一种实施方式中,信号传感模块2包括光源单元21、RGB光信号采集单元22和白光信号采集单元23;其中,In one embodiment, the signal sensing module 2 includes a light source unit 21, an RGB light signal collection unit 22 and a white light signal collection unit 23; wherein,
光源单元21用于提供白色光源;The light source unit 21 is used to provide a white light source;
RGB光信号采集单元22包括分别设置有红色光滤光装置、绿色光绿光装置和蓝色光滤光装置的光敏采集单元,用于分别采集红色光信号、绿色光信号和蓝色光信号,并将采集到的采集红色光信号、绿色光信号和蓝色光信号传输到信号处理模块4;The RGB light signal collection unit 22 includes a photosensitive collection unit respectively provided with a red light filter device, a green light green light device and a blue light filter device, and is used to collect the red light signal, the green light signal and the blue light signal respectively, and collect the red light signal, green light signal and blue light signal respectively. The collected collected red light signal, green light signal and blue light signal are transmitted to the signal processing module 4;
白光信号采集单元23,用于直接采集白色光源照射到被测物体后反射回的白色光信号,并将采集到的白色光信号传输到信号处理模块4。The white light signal collection unit 23 is configured to directly collect the white light signal reflected back after the white light source illuminates the object to be measured, and transmit the collected white light signal to the signal processing module 4 .
其中,光源单元21采用白色LED灯,其中白色LED灯的光照强度可调节。The light source unit 21 adopts a white LED lamp, wherein the light intensity of the white LED lamp can be adjusted.
一种场景中,RGB光信号采集单元22可以在光敏元件上设置分别针对红光、绿光和蓝光的滤光装置,分别采集红、绿、蓝三色光信号;也可以采用现有的三原色传感器,分别采集红、绿、蓝三色光信号。In one scenario, the RGB light signal collection unit 22 may set filter devices for red light, green light and blue light on the photosensitive element, respectively, to collect red, green, and blue light signals; an existing three-primary color sensor may also be used. , respectively collect red, green, and blue light signals.
一种实施方式中,控制模块3包括光强度反馈单元31和光源控制单元32;In one embodiment, the control module 3 includes a light intensity feedback unit 31 and a light source control unit 32;
光强度反馈单元31用于根据接收到的白色光信号进行光强度检测,获取光强度检测值;The light intensity feedback unit 31 is configured to perform light intensity detection according to the received white light signal, and obtain a light intensity detection value;
光源控制单元32用于根据获取的光强度检测值进行判断,当光强度检测值减弱或者小于设定的阈值时,则向光源单元21发出补偿控制信号,以控制光源单元21调节光源亮度增大。The light source control unit 32 is used to judge according to the acquired light intensity detection value, and when the light intensity detection value is weakened or less than the set threshold, it will send a compensation control signal to the light source unit 21 to control the light source unit 21 to adjust the brightness of the light source to increase .
同时,当光强度检测值增强或者大于设定的阈值时,则向光源单元21发出调节控制信号,以控制光源单元21调节光源亮度减小。At the same time, when the detected value of the light intensity increases or is greater than the set threshold, an adjustment control signal is sent to the light source unit 21 to control the light source unit 21 to adjust the brightness of the light source to decrease.
一种场景中,光强度反馈单元31可以采用现有的光照强度检测单元(如光强传感器),由光照强度检测单元直接检测被测物体的光强度;或者根据接收到的白色光信号获取光强度检测值。In one scenario, the light intensity feedback unit 31 can use an existing light intensity detection unit (such as a light intensity sensor), and the light intensity detection unit directly detects the light intensity of the measured object; or obtains light according to the received white light signal. Intensity detection value.
一种实施方式中,还包括外部检测模块5;In one embodiment, it also includes an external detection module 5;
外部检测模块5用于与外部检测头连接,通过外部检测头进行光信号采样,并将通过外部检测头采样的光信号传输到信号处理模块4;The external detection module 5 is used to connect with the external detection head, sample the optical signal through the external detection head, and transmit the optical signal sampled by the external detection head to the signal processing module 4;
处理器模块1包括信号选择单元,其中信号选择单元分别与信号传感模块2和外部检测模块5连接;当检测到外部检测模块5接有外部检测头时,信号选择单元切断信号传感模块2的信号采样并选择外部检测模块5连接的外部检测头进行光信号采样。The processor module 1 includes a signal selection unit, wherein the signal selection unit is respectively connected with the signal sensing module 2 and the external detection module 5; when it is detected that the external detection module 5 is connected with an external detection head, the signal selection unit cuts off the signal sensing module 2 and select the external detection head connected to the external detection module 5 to sample the optical signal.
外部检测头可以选用光纤型检测头;The external detection head can choose the optical fiber type detection head;
处理器模块1对光信号的信号来源(信号传感模块2、外部检测模块5)进行检测,即对外部检测头是否介入进行判断,选择单元根据信号来源的判断结果进行检测模式的选择,当有外部检测头接已接好时,优先选择外部信号进入信号处理模块4和处理器模块1进行处理。The processor module 1 detects the signal source of the optical signal (signal sensing module 2, external detection module 5), that is, judges whether the external detection head is involved, and the selection unit selects the detection mode according to the judgment result of the signal source. When an external detection head has been connected, the external signal is preferentially selected to enter the signal processing module 4 and the processor module 1 for processing.
一种实施方式中,信号处理模块4包括依次连接的AD转换单元41、预处理单元42和放大单元43;其中In one embodiment, the signal processing module 4 includes an AD conversion unit 41, a preprocessing unit 42 and an amplifying unit 43 connected in sequence; wherein
AD转换单元41用于对接收到的光信号进行模数转换处理,获取AD采样信号;其中接收到的光信号包括由信号传感模块2传输的红色光信号、绿色光信号、蓝色光信号、白色光信号或由外部检测模块5传输的光信号。The AD conversion unit 41 is configured to perform analog-to-digital conversion processing on the received optical signal to obtain AD sampling signals; wherein the received optical signal includes the red light signal, green light signal, blue light signal, The white light signal or the light signal transmitted by the external detection module 5 .
预处理单元42用于对获取的AD采样信号进行滤波处理,输出预处理后的AD采样信号;The preprocessing unit 42 is used for filtering the acquired AD sampled signal, and outputs the preprocessed AD sampled signal;
放大单元43用于对预处理后的AD采样信号进行放大处理,输出放大处理后的AD采样信号。The amplifying unit 43 is used for amplifying the preprocessed AD sampled signal, and outputting the amplified AD sampled signal.
信号处理模块4上设置有AD转换单元41对接收到的光信号进行模数转换,获取数字AD采样信号,并进一步对AD采样信号进行滤波处理和放大处理;能够有助于处理器模块1根据获取的AD采样信号准确识别各颜色分量值,从而获取颜色检测结果。The signal processing module 4 is provided with an AD conversion unit 41 to perform analog-to-digital conversion on the received optical signal, obtain a digital AD sampled signal, and further filter and amplify the AD sampled signal; The acquired AD sampling signal accurately identifies the value of each color component, thereby acquiring the color detection result.
同时设置预处理单元对获取的AD采样信号进行滤波处理,能够有效去除AD采样信号中的噪声信号干扰,提高AD采样信号的质量和效果,使得基于AD采样信号进行的颜色检测处理精确度更高。At the same time, setting the preprocessing unit to filter the acquired AD sampled signal can effectively remove the noise signal interference in the AD sampled signal, improve the quality and effect of the AD sampled signal, and make the color detection processing based on the AD sampled signal more accurate. .
一种场景中,信号处理模块4采用DPS处理芯片(Digital Signal Processor),能够对接收到的光信号进行模数转换,并进一步完成对转换后的AD采样信号进行基于数字信号的信号处理过程。In one scenario, the signal processing module 4 adopts a DPS processing chip (Digital Signal Processor), which can perform analog-to-digital conversion on the received optical signal, and further complete the digital signal-based signal processing process on the converted AD sampled signal.
一种场景中,上述光信号具体为光电流信号。In one scenario, the above-mentioned optical signal is specifically a photocurrent signal.
一种场景中,信号处理模块4能够调节放大单元43中放大器的放大倍数,根据检测模式不同,选择不同的放大倍数,如检测到黑色等反光较弱的物体时,选择高放大倍数,检测白光灯反光较强的物体时,选择低放大倍数。In one scenario, the signal processing module 4 can adjust the magnification of the amplifier in the amplifying unit 43, and select different magnifications according to different detection modes. Choose a low magnification for objects with strong light reflections.
一种实施方式中,预处理单元42对获取的AD采样信号进行滤波处理,具体包括:In one embodiment, the preprocessing unit 42 performs filtering processing on the acquired AD sampled signal, specifically including:
对获取的AD采样信号进行经验模态分解,获取AD采样信号的IMF分量;Perform empirical mode decomposition on the acquired AD sampled signal to obtain the IMF component of the AD sampled signal;
对获取的IMF分量进行高低频划分,将IMF分量划分为低频IMF分量和高频IMF分量,并根据低频IMF分量进行重构得到低频信号;根据高频IMF分量进行重构得到高频信号;The acquired IMF components are divided into high and low frequencies, the IMF components are divided into low-frequency IMF components and high-frequency IMF components, and the low-frequency signals are obtained by reconstructing according to the low-frequency IMF components; the high-frequency signals are obtained by reconstructing according to the high-frequency IMF components;
采用设定的小波基和分解尺度对低频信号进行小波分解处理,获取低频信号的高频小波系数和低频小波系数,针对获取的高频小波系数进行阈值处理,获取阈值处理后的高频小波系数;Use the set wavelet base and decomposition scale to perform wavelet decomposition processing on the low-frequency signal, obtain the high-frequency wavelet coefficients and low-frequency wavelet coefficients of the low-frequency signal, perform threshold processing on the obtained high-frequency wavelet coefficients, and obtain the thresholded high-frequency wavelet coefficients ;
将低频小波系数和阈值处理后的高频小波系数进行重构,得到滤波后的低频信号;Reconstruct the low-frequency wavelet coefficients and the thresholded high-frequency wavelet coefficients to obtain a filtered low-frequency signal;
对高频信号进行加权中值滤波处理,得到滤波后的高频信号;Perform weighted median filtering on the high-frequency signal to obtain the filtered high-frequency signal;
将滤波后的低频信号和滤波后的高频信号进行重构,得到预处理后的AD采样信号。The filtered low-frequency signal and the filtered high-frequency signal are reconstructed to obtain the preprocessed AD sampling signal.
其中,预处理单元42对获取的IMF分量进行高低频划分,具体包括:Wherein, the preprocessing unit 42 performs high and low frequency division on the acquired IMF components, which specifically includes:
针对获取的各个IMF分量,分别计算各IMF分量的高低频特征因子,其中采用的高低频特征因子计算函数为:For each acquired IMF component, the high and low frequency eigenfactors of each IMF component are calculated respectively, and the high and low frequency eigenfactor calculation functions used are:
式中,w(x)表示第x个IMF分量的高低频特征因子,x=2,…,I,I表示IMF分量的总数,Z(IMFx)表示第x个IMF分量的过零率,Z(IMFx-1)表示第x-1个IMF分量的过零率;表示根据第x个IMF分量获取的调节分量,其中 表示调节分量的第k个采样点的幅值,IMFx(k)表示第x个IMF分量中第k个采样点的幅值,k=1,2,…,K,K表示采样点的总数,max(IMFx(k))表示第x个IMF分量中各采样点幅值的最大值,β表示调节因子,其中β∈[0.03,0.06],表示调节分量的过零率,Z(IMFx-1)表示根据第x-1个IMF分量获取的调节分量,表示调节分量的过零率,ω1和ω2分别表示权重因子,其中ω1>ω2;In the formula, w(x) represents the high and low frequency characteristic factor of the xth IMF component, x=2,...,I, I represents the total number of IMF components, Z( IMFx ) represents the zero-crossing rate of the xth IMF component, Z(IMF x-1 ) represents the zero-crossing rate of the x-1th IMF component; represents the adjustment component obtained from the xth IMF component, where Indicates the amplitude of the k-th sampling point of the adjustment component, IMF x (k) represents the amplitude of the k-th sampling point in the x-th IMF component, k=1,2,…,K, K represents the total number of sampling points , max(IMF x (k)) represents the maximum amplitude of each sampling point in the xth IMF component, β represents the adjustment factor, where β∈[0.03,0.06], Indicates the adjustment amount The zero-crossing rate of , Z(IMF x-1 ) represents the adjustment component obtained according to the x-1th IMF component, Indicates the adjustment amount The zero-crossing rate of , ω 1 and ω 2 respectively represent the weight factor, where ω 1 >ω 2 ;
依次将获取的各IMF分量的高低频特征因子和设定的阈值T进行比较,当w(x)<T时,则将第x至I个IMF分量划分为低频IMF分量,将第1至x-1个IMF分量划分为高频IMF分量;若各IMF分量的高低频特征因子均小于设定的阈值T,则将第1个IMF分量划分为高频IMF分量,其余的IMF分量划分为低频IMF分量。Compare the acquired high and low frequency characteristic factors of each IMF component with the set threshold T in turn. When w(x)<T, divide the xth to I IMF components into low frequency IMF components, and divide the 1st to xth IMF components into low-frequency IMF components. -1 IMF component is divided into high frequency IMF components; if the high and low frequency characteristic factors of each IMF component are less than the set threshold T, the first IMF component is divided into high frequency IMF components, and the rest IMF components are divided into low frequency components IMF component.
上述实施方式中,针对基于光信号获取的AD采样信号(特别是通过光纤探头采集的光信号获取的AD采样信号),其高频噪声信号表现并不明显,因此传统的去噪滤波技术容易出现过处理或者处理效果不佳的情况,针对上述问题,提出了一种基于经验模态分解进行信号高低频划分,并分别针对高低频信号进行滤波处理的技术方案,同时提出了一种基于IMF分量进行高低频划分的技术方案,能够通过IMF分量的特性,首先计算出各IMF分量的高低频特征因子,其中特别加入了根据原始IMF分量进行上移调节后的调节分量作为依据,能够有效地过滤噪声影响的情况下获取原始信号的过零率特性,并进一步根据过零率特性反映IMF分量的高低频特性,能够自适应地准确选取高低频信号的划分边界。同时,针对划分的高频信号,则采用处理效果比较明显的加权中值滤波处理方式进行滤波处理。而针对反映信号特征的低频信号,则进一步采用基于小波分解和高频小波系数阈值处理的技术方案进行处理,能够在高低频划分的基础上,进一步对低频信号中隐藏的噪声干扰进行去除,进一步提高AD采样信号的质量。为后续根据该AD采样信号进一步放大,及准确换算颜色分量值奠定了基础。In the above embodiment, for the AD sampling signal obtained based on the optical signal (especially the AD sampling signal obtained by the optical signal collected by the fiber probe), the high-frequency noise signal performance is not obvious, so the traditional denoising filtering technology is easy to appear. In the case of over-processing or poor processing effect, in view of the above problems, a technical solution is proposed to divide the high and low frequency signals based on empirical mode decomposition, and filter the high and low frequency signals respectively. The technical scheme for dividing high and low frequencies can first calculate the high and low frequency characteristic factors of each IMF component through the characteristics of the IMF components, and especially add the adjustment components after the upward adjustment according to the original IMF components as the basis, which can effectively filter Under the influence of noise, the zero-crossing rate characteristics of the original signal are obtained, and the high- and low-frequency characteristics of the IMF components are further reflected according to the zero-crossing rate characteristics, which can adaptively and accurately select the division boundaries of high-frequency and low-frequency signals. At the same time, for the divided high-frequency signals, a weighted median filtering processing method with a relatively obvious processing effect is used for filtering processing. For low-frequency signals that reflect signal characteristics, the technical solution based on wavelet decomposition and high-frequency wavelet coefficient threshold processing is further processed, which can further remove the hidden noise interference in the low-frequency signal on the basis of high-frequency division. Improve the quality of AD sampled signals. It lays a foundation for further amplification and accurate conversion of color component values according to the AD sampling signal.
其中,预处理单元42针对获取的高频小波系数进行阈值处理,具体采用的阈值处理函数为:Wherein, the preprocessing unit 42 performs threshold processing on the acquired high-frequency wavelet coefficients, and the threshold processing function specifically adopted is:
式中,w′(i,j)表示阈值处理后的第i尺度第j个高频小波系数,w(i,j)表示小波分解处理获取的第i尺度第j个高频小波系数,j表示w(i,j)所处的分解尺度,α表示设定的影响因子,b表示设定的补偿因子,T表示设定的阈值,其中σ表示噪声估计,V表示AD采样信号的长度;sgn(·)表示符号函数;ω1和ω2分别表示设定的调节权重因子。In the formula, w'(i, j) represents the j-th high-frequency wavelet coefficient of the i-th scale after thresholding, w(i, j) represents the j-th high-frequency wavelet coefficient of the i-th scale obtained by wavelet decomposition, and j represents the decomposition scale of w(i,j), α represents the set influence factor, b represents the set compensation factor, T represents the set threshold, where σ represents the noise estimate, V represents the length of the AD sampled signal; sgn(·) represents the sign function; ω 1 and ω 2 represent the set adjustment weight factors, respectively.
上述实施方式中,基于低频信号分解后获取的高频小波系数,采用上述阈值处理函数进行阈值处理,能够对高频小波系数中的包含的微小噪声隐形滤波,从而对低频信号进行精调处理,进一步提高了AD采样信号的质量。In the above embodiment, based on the high-frequency wavelet coefficients obtained after the low-frequency signal is decomposed, the threshold processing function is used to perform threshold processing, so that the small noise contained in the high-frequency wavelet coefficients can be invisible filtered, so that the low-frequency signal can be fine-tuned. The quality of the AD sampled signal is further improved.
一种实施方式中,处理器模块1包括电源单元、存储单元、颜色转换单元;其中In one embodiment, the processor module 1 includes a power supply unit, a storage unit, and a color conversion unit; wherein
电源单元分别与系统的各模块连接,用于为系统各模块供电;The power supply unit is connected to each module of the system respectively, and is used to supply power to each module of the system;
存储单元用于存储系统配置参数和颜色转换标准参考数据;The storage unit is used to store system configuration parameters and color conversion standard reference data;
颜色转换单元用于根据信号处理模块4传输的AD采样信号进行与存储的颜色转换标准参考数据进行比对,输出颜色检测结果。The color conversion unit is configured to compare the AD sampling signal transmitted by the signal processing module 4 with the stored color conversion standard reference data, and output the color detection result.
其中,颜色转换单元分别接收红、绿、蓝三色光信号以及白色光信号进行处理后的AD采样信号,并根据红、绿、蓝三色光信号的AD采样信号获取红、绿、蓝三色的光强度,并根据光强度信号转换为频率信号,量化出R、G、B值,从而得到颜色检测结果;The color conversion unit respectively receives the red, green, and blue optical signals and the AD sampling signals processed by the white optical signals, and obtains the red, green, and blue three-color optical signals according to the AD sampling signals of the red, green, and blue optical signals. The light intensity is converted into a frequency signal according to the light intensity signal, and the R, G and B values are quantified to obtain the color detection result;
其中根据白色光信号的光强度值与预设的白准白光强度进行比较,用于根据比较结果对量化的R、G、B值进行补偿。The light intensity value of the white light signal is compared with the preset white quasi-white light intensity, which is used to compensate the quantized R, G, and B values according to the comparison result.
一种实施方式中,该系统还包括通信模块6,通信模块6与处理器模块1连接;In one embodiment, the system further includes a communication module 6, which is connected to the processor module 1;
通信模块6与外部终端实现无线数据交互,用于将由处理器模块1获取的颜色检测结果发送到外部终端。有助于提高传感器系统与外部终端的通信能力,提高传感器系统针对不同场景应用的适应水平。The communication module 6 realizes wireless data interaction with the external terminal, and is used for sending the color detection result obtained by the processor module 1 to the external terminal. It helps to improve the communication capability between the sensor system and external terminals, and improves the adaptability of the sensor system to different scenarios.
需要说明的是,在本发明各个实施例中的各功能单元/模块可以集成在一个处理单元/模块中,也可以是各个单元/模块单独物理存在,也可以是两个或两个以上单元/模块集成在一个单元/模块中。上述集成的单元/模块既可以采用硬件的形式实现,也可以采用软件功能单元/模块的形式实现。It should be noted that each functional unit/module in each embodiment of the present invention may be integrated into one processing unit/module, or each unit/module may exist physically alone, or two or more units/modules/ Modules are integrated in one unit/module. The above-mentioned integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of software functional units/modules.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解应当理解,可以以硬件、软件、固件、中间件、代码或其任何恰当组合来实现这里描述的实施例。对于硬件实现,处理器可以在一个或多个下列单元中实现:专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、设计用于实现这里所描述功能的其他电子单元或其组合。对于软件实现,实施例的部分或全部流程可以通过计算机程序来指令相关的硬件来完成。实现时,可以将上述程序存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。计算机可读介质可以包括但不限于RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。From the above description of the embodiments, those skilled in the art can clearly understand and understand that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor may be implemented in one or more of the following units: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Program gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, other electronic units designed to implement the functions described herein, or combinations thereof. For software implementation, part or all of the processes of the embodiments may be implemented by computer programs instructing relevant hardware. When implemented, the above-described programs may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that a computer can access. Computer readable media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer.
最后应当说明的是,以上实施例仅用以说明本发明的技术方案,而非对本发明保护范围的限制,尽管参照较佳实施例对本发明作了详细地说明,本领域的普通技术人员应当分析,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的实质和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit the protection scope of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should analyze the , the technical solutions of the present invention may be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110265532.8A CN113049106B (en) | 2021-03-11 | 2021-03-11 | A digital intelligent color sensor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110265532.8A CN113049106B (en) | 2021-03-11 | 2021-03-11 | A digital intelligent color sensor system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113049106A true CN113049106A (en) | 2021-06-29 |
CN113049106B CN113049106B (en) | 2021-12-21 |
Family
ID=76511403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110265532.8A Active CN113049106B (en) | 2021-03-11 | 2021-03-11 | A digital intelligent color sensor system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113049106B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114353936A (en) * | 2022-01-04 | 2022-04-15 | 中工创智信息科技(江苏)有限公司 | Industrial equipment safety analysis device based on internet |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050154319A1 (en) * | 2002-01-15 | 2005-07-14 | Xillix Technologies Corporation | Fluorescence endoscopy video systems with no moving parts in the camera |
CN102215736A (en) * | 2008-11-18 | 2011-10-12 | 斯特赖克公司 | Endoscopic led light source having a feedback control system |
CN108095701A (en) * | 2018-04-25 | 2018-06-01 | 上海凯利泰医疗科技股份有限公司 | Image processing system, fluorescence endoscope illumination imaging device and imaging method |
CN111798396A (en) * | 2020-07-01 | 2020-10-20 | 中通服咨询设计研究院有限公司 | Multifunctional image processing method based on wavelet transformation |
CN112097910A (en) * | 2019-06-17 | 2020-12-18 | 广州市合熠电子科技有限公司 | Intelligent RGB digital color sensor circuit system |
-
2021
- 2021-03-11 CN CN202110265532.8A patent/CN113049106B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050154319A1 (en) * | 2002-01-15 | 2005-07-14 | Xillix Technologies Corporation | Fluorescence endoscopy video systems with no moving parts in the camera |
CN102215736A (en) * | 2008-11-18 | 2011-10-12 | 斯特赖克公司 | Endoscopic led light source having a feedback control system |
CN108095701A (en) * | 2018-04-25 | 2018-06-01 | 上海凯利泰医疗科技股份有限公司 | Image processing system, fluorescence endoscope illumination imaging device and imaging method |
CN112097910A (en) * | 2019-06-17 | 2020-12-18 | 广州市合熠电子科技有限公司 | Intelligent RGB digital color sensor circuit system |
CN111798396A (en) * | 2020-07-01 | 2020-10-20 | 中通服咨询设计研究院有限公司 | Multifunctional image processing method based on wavelet transformation |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114353936A (en) * | 2022-01-04 | 2022-04-15 | 中工创智信息科技(江苏)有限公司 | Industrial equipment safety analysis device based on internet |
CN114353936B (en) * | 2022-01-04 | 2023-05-30 | 中工创智信息科技(江苏)有限公司 | Industrial equipment safety analysis device based on internet |
Also Published As
Publication number | Publication date |
---|---|
CN113049106B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102512178B (en) | Blood oxygen measurer and method | |
CN109657653B (en) | Wheat grain gibberellic disease identification method based on imaging hyperspectral data | |
CN111147079B (en) | Data acquisition method and device with adaptive and adjustable sampling frequency | |
CN207869389U (en) | A kind of voice de-noising sound pick-up based on Homogeneous Circular microphone array | |
WO2021077807A1 (en) | Ambient light signal adjustment method, chip and electronic device | |
CN106504762B (en) | Bird community number estimation system and method | |
CN113049106B (en) | A digital intelligent color sensor system | |
CN110580916B (en) | Weight acoustic measurement model creation method and weight measurement method and device | |
CN107072569A (en) | Spike detection module based on frame | |
CN106066397B (en) | A kind of compensation system, method and immunity analysis instrument suitable for current-output type photomultiplier tube | |
CN106598107B (en) | But automatically regulated photoelectric sensor signal circuit based on feedback system | |
CN111722208B (en) | Underwater fish simulation equalizer and equalization method | |
CN118300686B (en) | Visible light communication method, device, equipment and medium based on environment self-adaption | |
CN105678744B (en) | The autonomous imaging self-adaptive MCP gain adjusting method therefores of range gating | |
CN117097335A (en) | High-sensitivity proximity light detection sensor | |
CN111461117A (en) | Yak calf growth environment monitoring system and method | |
US20010042844A1 (en) | Smart optical microphone/sensor | |
CN115512160A (en) | Seedling quality grading monitoring device and method based on image and near infrared spectrum phenotype | |
CN110784645B (en) | Gray level modulation image fusion method based on single-color two-channel sCMOS camera | |
CN204169852U (en) | Be applicable to the Oximetry front end direct current filtering circuit of Intelligent bracelet | |
CN108693135A (en) | A kind of plant leaf blade moisture content detecting system | |
CN1580710A (en) | Embedded temperature oscillometer and measuring method thereof | |
CN107255535A (en) | A kind of vibrating wire sensor frequency measuring method, device and equipment | |
CN112712132A (en) | Winter bamboo shoot detection method and device and winter bamboo shoot detection system based on microwave reflection method | |
CN115856825B (en) | Nondestructive pickup method for radar signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A digital intelligent color sensor system Effective date of registration: 20220712 Granted publication date: 20211221 Pledgee: Bank of China Limited Guangzhou Development Zone Branch Pledgor: Guangzhou Heyi Intelligent Technology Co.,Ltd. Registration number: Y2022980010139 |
|
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Room 401, No. 2 Lianpu Street, Huangpu District, Guangzhou City, Guangdong Province, 510000 Patentee after: Guangzhou Heyi Intelligent Technology Co.,Ltd. Country or region after: China Address before: 510700 the second floor of A3, production base, 73 Ruihe Road, Huangpu District, Guangzhou City, Guangdong Province Patentee before: Guangzhou Heyi Intelligent Technology Co.,Ltd. Country or region before: China |
|
PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20211221 Pledgee: Bank of China Limited Guangzhou Development Zone Branch Pledgor: Guangzhou Heyi Intelligent Technology Co.,Ltd. Registration number: Y2022980010139 |