CN104374721B - Spliced beef rapid detection system and method - Google Patents
Spliced beef rapid detection system and method Download PDFInfo
- Publication number
- CN104374721B CN104374721B CN201410405101.7A CN201410405101A CN104374721B CN 104374721 B CN104374721 B CN 104374721B CN 201410405101 A CN201410405101 A CN 201410405101A CN 104374721 B CN104374721 B CN 104374721B
- Authority
- CN
- China
- Prior art keywords
- sample tray
- beef
- sample
- hole
- signal
- 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.)
- Expired - Fee Related
Links
Landscapes
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
本发明公开了一种快速检测拼接牛肉的系统和方法。该系统包括控制器和检测机构,检测机构包括底座,底座上设有检测台,检测台中部设有矩形凹槽,矩形凹槽内储存有液体,液体上设有样品托盘,样品托盘前后两端分别设有第一永磁体和第二永磁体,样品托盘底部设有定位柱,定位柱底部设有定位头,矩形凹槽前内侧面设有第一电磁铁和第一接近开关,矩形凹槽后内侧面设有第二电磁铁,矩形凹槽的底面设有若干个定位块,定位块下方设有驱动定位块转动的第一驱动电机,定位块上设有定位孔,定位孔底部设有第三电磁铁和第二接近开关,样品托盘上方设有光收发器,矩形凹槽上方设有摄像头。本发明能够快速、简便、准确地检测出牛肉是否为拼接牛肉。
The invention discloses a system and method for quickly detecting spliced beef. The system includes a controller and a detection mechanism, the detection mechanism includes a base, a detection platform is arranged on the base, a rectangular groove is arranged in the middle of the detection platform, liquid is stored in the rectangular groove, a sample tray is arranged on the liquid, and the front and rear ends of the sample tray are The first permanent magnet and the second permanent magnet are respectively provided, the bottom of the sample tray is provided with a positioning column, the bottom of the positioning column is provided with a positioning head, the front inner side of the rectangular groove is provided with a first electromagnet and a first proximity switch, and the rectangular groove The rear inner surface is provided with a second electromagnet, the bottom surface of the rectangular groove is provided with several positioning blocks, the first drive motor for driving the positioning block to rotate is provided below the positioning block, the positioning block is provided with a positioning hole, and the bottom of the positioning hole is provided with The third electromagnet and the second proximity switch, an optical transceiver is arranged above the sample tray, and a camera is arranged above the rectangular groove. The invention can quickly, simply and accurately detect whether the beef is spliced beef.
Description
技术领域technical field
本发明涉及食品检测技术领域,尤其涉及一种快速检测拼接牛肉的系统和方法。The invention relates to the technical field of food detection, in particular to a system and method for rapidly detecting spliced beef.
背景技术Background technique
牛肉味道鲜美,营养丰富,口感好,是上等的食材。但由于其生产成本较高,尤其是高档牛肉块,价格不菲。而拼接牛肉由不同大小的碎块牛肉拼接而成,不但口感不好,而且不同来源的牛肉块彼此之间也会形成污染,形成食品安全问题。Beef is delicious, nutritious, and tastes good, and it is a first-class ingredient. But because its production cost is higher, especially high-grade beef cut, the price is not cheap. The spliced beef is spliced from pieces of beef of different sizes, which not only tastes bad, but also causes contamination between beef pieces from different sources, causing food safety problems.
中国专利公开号CN1603794,公开日2005年4月6日,发明的名称为近红外技术快速检测牛肉嫩度的方法和装置,该申请案公开了一种近红外技术快速检测牛肉嫩度的方法和装置,它由近红外光源、近红外检测器、漫反射光纤设备、微处理器、显示和记录装置和可转动载物台组成。其不足之处是,该检测装置不能检测牛肉是否为拼接牛肉。Chinese Patent Publication No. CN1603794, published on April 6, 2005, the name of the invention is a method and device for quickly detecting beef tenderness with near-infrared technology. The application discloses a method and device for quickly detecting beef tenderness with near-infrared technology. The device is composed of a near-infrared light source, a near-infrared detector, a diffuse reflection optical fiber device, a microprocessor, a display and recording device and a rotatable stage. Its shortcoming is that this detection device can not detect whether beef is splicing beef.
发明内容Contents of the invention
本发明的目的是克服目前牛肉检测系统不能检测牛肉是否为拼接牛肉的技术问题,提供了一种快速检测拼接牛肉的系统和方法,其能够快速、简便、准确地检测出牛肉是否为拼接牛肉。The purpose of the present invention is to overcome the technical problem that the current beef detection system cannot detect whether beef is spliced beef, and to provide a system and method for quickly detecting spliced beef, which can quickly, easily and accurately detect whether beef is spliced beef.
为了解决上述问题,本发明采用以下技术方案予以实现:In order to solve the above problems, the present invention adopts the following technical solutions to achieve:
本发明的一种快速检测拼接牛肉的系统,包括控制器和检测机构,所述控制器包括中央处理单元、触摸屏和光源控制模块,所述检测机构包括底座,所述底座上设有检测台,所述检测台中部设有矩形凹槽,所述矩形凹槽内储存有液体,所述液体上设有呈圆形的样品托盘,所述样品托盘的前端和后端分别设有第一永磁体和第二永磁体,所述样品托盘底部设有定位柱,所述定位柱底部设有定位头,所述定位头由铁磁性材料制成,所述矩形凹槽的前内侧面设有第一电磁铁和第一接近开关,所述矩形凹槽的后内侧面设有第二电磁铁,所述矩形凹槽的底面设有若干个定位块,所述定位块下方设有驱动定位块转动的第一驱动电机,所述定位块上设有与定位头配合且限制定位头自由转动的定位孔,所述若干个定位块上的定位孔从前至后呈直线排列,所述定位孔底部设有第三电磁铁和第二接近开关,所述样品托盘上方设有光收发器,所述光收发器包括照射光源和光接收器,所述矩形凹槽上方设有摄像头,所述中央处理单元分别与触摸屏、光源控制模块、第一电磁铁、第二电磁铁、第三电磁铁、第一接近开关、第二接近开关、第一驱动电机、光接收器和摄像头电连接,所述光源控制模块还与照射光源电连接。A system for quickly detecting spliced beef of the present invention includes a controller and a detection mechanism, the controller includes a central processing unit, a touch screen and a light source control module, the detection mechanism includes a base, and a detection platform is arranged on the base, The middle part of the detection table is provided with a rectangular groove, and liquid is stored in the rectangular groove, and a circular sample tray is arranged on the liquid, and the front end and the rear end of the sample tray are respectively provided with first permanent magnets and the second permanent magnet, the bottom of the sample tray is provided with a positioning column, the bottom of the positioning column is provided with a positioning head, the positioning head is made of ferromagnetic material, and the front inner surface of the rectangular groove is provided with a first The electromagnet and the first proximity switch, the rear inner surface of the rectangular groove is provided with a second electromagnet, the bottom surface of the rectangular groove is provided with several positioning blocks, and the positioning block is provided below the positioning block to drive the rotation of the positioning block. The first drive motor, the positioning block is provided with positioning holes that cooperate with the positioning head and limit the free rotation of the positioning head, the positioning holes on the several positioning blocks are arranged in a straight line from front to back, and the bottom of the positioning holes is provided with The third electromagnet and the second proximity switch, an optical transceiver is arranged above the sample tray, the optical transceiver includes an illumination light source and a light receiver, a camera is arranged above the rectangular groove, and the central processing unit is connected with The touch screen, the light source control module, the first electromagnet, the second electromagnet, the third electromagnet, the first proximity switch, the second proximity switch, the first drive motor, the light receiver and the camera are electrically connected, and the light source control module is also electrically connected It is electrically connected with the irradiation light source.
在本技术方案中,照射光源为卤素灯或激光发射器。检测时,将待测牛肉样品放置在样品托盘上,使牛肉样品的中心位于样品托盘的中心。In this technical solution, the illumination light source is a halogen lamp or a laser emitter. During detection, place the beef sample to be tested on the sample tray so that the center of the beef sample is located at the center of the sample tray.
中央处理单元控制第一电磁铁工作,第一电磁铁产生吸力,样品托盘上的第一永磁体受第一电磁铁吸力作用,样品托盘向矩形凹槽的前内侧面运动,同时第一永磁体受吸力作用正对第一电磁铁,校准定位头的位置,保证定位头能够插入定位孔。矩形凹槽左右内侧壁之间的距离比样品托盘的直径略大,使样品托盘只能够前后运动,保证定位头在定位孔排列成的直线上方运动,便于定位头插入定位孔。当样品托盘移动到矩形凹槽前内侧面处时,第一接近开关发出触发信号,中央处理单元接收到第一接近开关发出的触发信号,控制第一电磁铁停止工作,控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁工作,第三电磁铁产生吸力,样品托盘底部的定位头受第三电磁铁的吸力作用插入该定位孔,该定位孔内的第二接近开关发出触发信号。中央处理单元接收到触发信号,判断样品托盘定位成功,此时样品托盘的中心点位于光收发器的正下方。The central processing unit controls the first electromagnet to work, the first electromagnet generates suction, the first permanent magnet on the sample tray is affected by the first electromagnet suction, the sample tray moves to the front inner side of the rectangular groove, and at the same time the first permanent magnet Acting on the first electromagnet under the action of suction, the position of the positioning head is calibrated to ensure that the positioning head can be inserted into the positioning hole. The distance between the left and right inner walls of the rectangular groove is slightly larger than the diameter of the sample tray, so that the sample tray can only move forward and backward, ensuring that the positioning head moves above the straight line formed by the positioning holes, so that the positioning head can be inserted into the positioning hole. When the sample tray moves to the front inner side of the rectangular groove, the first proximity switch sends a trigger signal, and the central processing unit receives the trigger signal from the first proximity switch, controls the first electromagnet to stop working, and controls the distance to the front of the rectangular groove. The third electromagnet at the bottom of the nearest positioning hole on the inner surface works, and the third electromagnet generates suction, and the positioning head at the bottom of the sample tray is inserted into the positioning hole by the suction of the third electromagnet, and the second proximity switch in the positioning hole sends out trigger signal. The central processing unit receives the trigger signal and judges that the positioning of the sample tray is successful. At this time, the center point of the sample tray is located directly below the optical transceiver.
用户可通过触摸屏选择样品托盘需要插入的定位孔位置。中央处理单元控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁停止工作,样品托盘受浮力作用浮起,样品托盘底部的定位头离开定位孔。中央处理单元控制第二电磁铁以及样品托盘需要插入的定位孔底部的第三电磁铁工作,样品托盘上的第二永磁体受第二电磁铁吸力作用,样品托盘向矩形凹槽的后内侧面运动。当样品托盘移动到需要插入的定位孔上方时,样品托盘下方的定位头受第三电磁铁吸力作用,样品托盘底部的定位头插入该定位孔,该定位孔内的第二接近开关发出触发信号。中央处理单元接收到触发信号,判断样品托盘成功插入用户选择的定位孔。样品托盘在液体中前后移动,无摩擦损耗,通过定位孔实现精确定位。The user can select the location of the positioning hole where the sample tray needs to be inserted through the touch screen. The central processing unit controls the third electromagnet at the bottom of the positioning hole closest to the front inner side of the rectangular groove to stop working, the sample tray is floated by buoyancy, and the positioning head at the bottom of the sample tray leaves the positioning hole. The central processing unit controls the operation of the second electromagnet and the third electromagnet at the bottom of the positioning hole where the sample tray needs to be inserted. The second permanent magnet on the sample tray is subjected to the suction force of the second electromagnet. sports. When the sample tray moves above the positioning hole to be inserted, the positioning head under the sample tray is attracted by the third electromagnet, the positioning head at the bottom of the sample tray is inserted into the positioning hole, and the second proximity switch in the positioning hole sends out a trigger signal . The central processing unit receives the trigger signal and judges that the sample tray is successfully inserted into the positioning hole selected by the user. The sample tray moves back and forth in the liquid without friction loss, and precise positioning is achieved through positioning holes.
摄像头采集矩形凹槽的图像信息,并发送到中央处理单元,中央处理单元通过图像处理得到样品托盘的位置信息,在样品托盘前后移动时进行监控,如果样品托盘没有移动到需要插入的定位孔的正上方,中央处理单元通过第一电磁铁和第二电磁铁调整样品托盘的位置,便于中央处理单元更准确的调整样品托盘的位置。The camera collects the image information of the rectangular groove and sends it to the central processing unit. The central processing unit obtains the position information of the sample tray through image processing, and monitors when the sample tray moves back and forth. If the sample tray does not move to the position of the positioning hole that needs to be inserted Directly above, the central processing unit adjusts the position of the sample tray through the first electromagnet and the second electromagnet, so that the central processing unit can adjust the position of the sample tray more accurately.
中央处理单元控制样品托盘插入的定位孔所在的定位块旋转一周,每水平转动30度停下检测一次光谱数据。检测光谱数据时,照射光源发出的检测光的强度曲线先从0按照直线上升到最大值,接着从最大值按照正弦曲线下降到0。光接收器检测接收到的反射光强度,并将其发送到中央处理单元,中央处理单元对检测数据进行相应处理后,判断待测牛肉样品是否为拼接牛肉。The central processing unit controls the positioning block where the positioning hole where the sample tray is inserted to rotate for one revolution, and stops to detect spectral data every horizontal rotation of 30 degrees. When detecting spectral data, the intensity curve of the detection light emitted by the illumination source first rises from 0 to the maximum value in a straight line, and then decreases from the maximum value to 0 in a sinusoidal curve. The light receiver detects the received reflected light intensity and sends it to the central processing unit, and the central processing unit processes the detected data accordingly to determine whether the beef sample to be tested is spliced beef.
光学检测拼接牛肉的原理:整块的牛肉纹路自然连续、条理清晰、色泽统一、含水量相近,因此其同入射角的反射吸收光谱信号是接近的,可以作为检测的依据。而拼接肉的不同碎块虽然经过整理、胶粘和表面处理,但是其内在肉质纹路并不连续,有整体的断层,色泽相差较大,含水量很难一致,因此可以根据光学检测方法确定是否为拼接牛肉。The principle of optical detection of spliced beef: the whole piece of beef has natural continuous lines, clear layers, uniform color, and similar water content, so it is close to the reflection absorption spectrum signal at the incident angle, which can be used as the basis for detection. Although the different pieces of spliced meat have been sorted, glued and surface treated, their internal meat texture is not continuous, there are overall faults, the color is quite different, and the water content is difficult to be consistent. Therefore, it can be determined by optical detection methods. For the splice beef.
本发明是采用光强度不断变化的入射光照射样品,在入射光的强度渐大或者减小的变化过程中,不同基团对相应波长光的吸收是渐大或者减小的,此时基团的吸收程度处于未饱和、饱和渐弱过程中,反射光中包含更多的检测信息,从而使得到的检测信号能够更准确的表征出牛肉是否为拼接。In the present invention, the sample is irradiated with incident light with constantly changing light intensity. During the change process of increasing or decreasing intensity of incident light, the absorption of different groups to light of corresponding wavelengths is gradually increasing or decreasing. At this time, the group The absorption degree is in the process of unsaturated and saturated fading, and the reflected light contains more detection information, so that the obtained detection signal can more accurately characterize whether the beef is spliced.
作为优选,所述定位头呈扁平状,所述定位头的纵截面呈倒置的等腰梯形,所述定位孔的形状与定位头的形状匹配,所述定位孔顶部设有倾斜的导向面。定位孔沿从前至后方向设置,定位孔顶部的左右两侧的导向面起导向作用,便于定位头插入定位孔。Preferably, the positioning head is flat, the longitudinal section of the positioning head is an inverted isosceles trapezoid, the shape of the positioning hole matches the shape of the positioning head, and an inclined guide surface is provided on the top of the positioning hole. The positioning hole is arranged along the direction from front to back, and the guide surfaces on the left and right sides of the top of the positioning hole play a guiding role, facilitating the insertion of the positioning head into the positioning hole.
作为优选,所述矩形凹槽左右内侧壁之间的距离与样品托盘的直径相匹配。矩形凹槽左右内侧壁之间的距离比样品托盘的直径略大,使样品托盘只能够前后运动,保证定位头在定位孔排列成的直线上方运动,便于定位头插入定位孔。Preferably, the distance between the left and right inner side walls of the rectangular groove matches the diameter of the sample tray. The distance between the left and right inner walls of the rectangular groove is slightly larger than the diameter of the sample tray, so that the sample tray can only move forward and backward, ensuring that the positioning head moves above the straight line formed by the positioning holes, so that the positioning head can be inserted into the positioning hole.
作为优选,所述光源控制模块包括函数存储器和功放电路,所述函数存储器的输入端与中央处理单元电连接,所述函数存储器的输出端与功放电路的输入端电连接,所述功放电路的输出端与照射光源电连接。函数存储器存储中央处理单元发出的函数信息,并通过功放电路控制照射光源发出不同强度的检测光。Preferably, the light source control module includes a function memory and a power amplifier circuit, the input end of the function memory is electrically connected to the central processing unit, the output end of the function memory is electrically connected to the input end of the power amplifier circuit, and the power amplifier circuit The output end is electrically connected with the irradiation light source. The function memory stores the function information sent by the central processing unit, and controls the illumination light source to emit detection light with different intensities through the power amplifier circuit.
作为优选,所述矩形凹槽底面上距离矩形凹槽前内侧面最近的定位孔位于光收发器的正下方。距离矩形凹槽前内侧面最近的定位孔用于样品托盘的初始定位,最前面的定位孔与最后面的定位孔之间的距离为样品托盘的半径。Preferably, the positioning hole on the bottom surface of the rectangular groove closest to the front inner side of the rectangular groove is located directly below the optical transceiver. The positioning hole closest to the front inner side of the rectangular groove is used for the initial positioning of the sample tray, and the distance between the frontmost positioning hole and the rearmost positioning hole is the radius of the sample tray.
本发明的一种快速检测拼接牛肉的方法,包括以下步骤:A method for rapidly detecting spliced beef of the present invention comprises the following steps:
S1:制备片状牛肉样品,将牛肉样品放置在样品托盘上,使牛肉样品的中心位于样品托盘的中心;S1: Prepare a sliced beef sample, place the beef sample on the sample tray so that the center of the beef sample is located at the center of the sample tray;
S2:中央处理单元根据用户通过触摸屏输入的指令,控制样品托盘插入用户指定的定位孔;S2: The central processing unit controls the sample tray to be inserted into the positioning hole designated by the user according to the instruction input by the user through the touch screen;
S3:中央处理单元通过光源控制模块控制照射光源发出特定光强的检测光照射在牛肉样品上,检测光强度曲线先从0按照直线上升到最大值,接着从最大值按照正弦曲线下降到0,光接收器采集反射光谱数据Spect(t),然后中央处理单元控制样品托盘插入的定位孔所在定位块下方的第一驱动电机工作,第一驱动电机控制定位块转动30度,使样品托盘水平旋转30度,光接收器采集此时照射光源照射点的光谱数据,如此控制样品托盘水平旋转360度,每水平转动30度停下检测一次光谱数据,从而在牛肉样品上采集12个不同位置的光谱数据Spect(t);S3: The central processing unit controls the irradiation light source through the light source control module to emit detection light with a specific light intensity to irradiate the beef sample. The detection light intensity curve first rises from 0 to the maximum value in a straight line, and then decreases from the maximum value to 0 according to the sinusoidal curve. The optical receiver collects the reflection spectrum data Spec(t), and then the central processing unit controls the first driving motor under the positioning block where the positioning hole where the sample tray is inserted is located to work, and the first driving motor controls the positioning block to rotate 30 degrees, so that the sample tray rotates horizontally 30 degrees, the light receiver collects the spectral data of the irradiation point of the light source at this time, so that the sample tray is controlled to rotate 360 degrees horizontally, and stops to detect the spectral data every 30 degrees of horizontal rotation, so as to collect the spectra of 12 different positions on the beef sample data Spect(t);
S4:中央处理单元将采集到的12个光谱数据Spect(t)均进行同样的数据处理,计算出12个信噪比特征值,对每个光谱数据Spect(t)进行的数据处理包括以下步骤:S4: The central processing unit performs the same data processing on the collected 12 spectral data Spec(t), and calculates 12 signal-to-noise ratio characteristic values, and the data processing for each spectral data Spec(t) includes the following steps :
采用输入信号作为输入矩阵,势函数V(x,t,α)与输入信号协同为一层随机共振模型:With input signal As an input matrix, the potential function V(x, t, α) cooperates with the input signal to form a stochastic resonance model:
其中,V(x,t,α)为势函数,x(t)为布朗粒子运动轨迹函数,t为运动时间,为周期性正弦信号,N(t)为内秉噪声,A是信号幅度,f是信号频率,D是外噪声强度,ξ(t)是外噪声,为相位,Among them, V(x, t, α) is the potential function, x(t) is the motion trajectory function of Brownian particles, t is the motion time, is a periodic sinusoidal signal, N(t) is internal noise, A is signal amplitude, f is signal frequency, D is external noise intensity, ξ(t) is external noise, for the phase,
计算V(x,t,α)对于x(t)的一阶导数、二阶导数和三阶导数,并且使等式等于0,得到二层随机共振模型:Calculate the first-order derivative, second-order derivative and third-order derivative of V(x, t, α) with respect to x(t), and make the equation equal to 0 to obtain the two-layer stochastic resonance model:
设定噪声强度D=0,Spect(t)=0,N(t)=0,计算得到A的临界值为将Ac代入一层随机共振模型中,并设定x0(t)=0,sn0=0,采用四阶珑格库塔算法求解一层随机共振模型,得到:Set the noise intensity D=0, Spect(t)=0, N(t)=0, the calculated critical value of A is Substituting A c into a layer of stochastic resonance model, and setting x 0 (t) = 0, sn 0 = 0, using the fourth-order Longe-Kutta algorithm to solve a layer of stochastic resonance model, we get:
其中,待定系数:Among them, the undetermined coefficient:
(k1)n=a(αxn-1(t))2b(αxn-1(t))3+snn-1 (4)(k 1 ) n =a(αx n-1 (t)) 2 b(αx n-1 (t)) 3 +sn n-1 (4)
其中,xn(t)为x(t)的n阶导数,snn是S(t)的n阶导数在t=0处的值,a、b为设定的常数,Wherein, x n (t) is the n-order derivative of x (t), sn n is the value of the n-order derivative of S (t) at t=0, and a, b are constants set,
计算得到x1(t),x2(t)…xn+1(t)的值,对x1(t),x2(t)…xn+1(t)进行积分得到x(t),并得到x(t)在一层随机共振模型和二层随机共振模型组成的双层随机共振系统产生共振时刻的位置xm值、与xm相对应的共振时刻t1、与t1相对应的运动加速度α1以及与t1相对应的噪声D1,D1为D中的一个值,Calculate the value of x 1 (t), x 2 (t)…x n +1 (t), integrate x 1 (t), x 2 (t)…x n+1 (t) to get x(t ), and get x( t ) in the double-layer stochastic resonance system composed of one-layer stochastic resonance model and two-layer stochastic resonance model. The motion acceleration α1 and the noise D1 corresponding to t1, D1 is a value in D,
通过公式
S5:将计算出的12个信噪比特征值分为四组,将SNR特征3、SNR特征6、SNR特征9、SNR特征12分为第一组,将SNR特征2、SNR特征4、SNR特征7、SNR特征11分为第二组,将SNR特征1和SNR特征5分为第三组,将SNR特征8和SNR特征10分为第四组,并分别计算各组的信噪比平均值,得到SNR平均1、SNR平均2、SNR平均3、SNR平均4,S5: Divide the calculated 12 SNR feature values into four groups, divide SNR feature 3 , SNR feature 6 , SNR feature 9 , and SNR feature 12 into the first group, and divide SNR feature 2 , SNR feature 4 , SNR feature Feature 7 and SNR feature 11 are divided into the second group, SNR feature 1 and SNR feature 5 are divided into the third group, SNR feature 8 and SNR feature 10 are divided into the fourth group, and the average signal-to-noise ratio of each group is calculated respectively value, get SNR average 1 , SNR average 2 , SNR average 3 , SNR average 4 ,
计算各个信噪比特征值与其所对应的组的信噪比平均值之间的误差QEj,j=1,…,12;Calculate the error QE j between each SNR eigenvalue and the SNR average value of the corresponding group, j=1,...,12;
统计满足QEj≤2%的信噪比特征值的个数M1,统计满足QEj>2%的信噪比特征值的个数M2;Counting the number M 1 of SNR eigenvalues satisfying QE j ≤ 2%, counting the number M 2 of SNR eigenvalues satisfying QE j >2%;
S6:如果则中央处理单元判断该牛肉样品不是拼接牛肉,如果则中央处理单元判断该牛肉样品是拼接牛肉,否则跳转至步骤S3,对牛肉样品重新进行检测。S6: if Then the central processing unit judges that the beef sample is not spliced beef, if Then the central processing unit judges that the beef sample is spliced beef, otherwise jump to step S3, and retest the beef sample.
作为优选,所述步骤S2包括以下步骤:Preferably, said step S2 includes the following steps:
S21:中央处理单元控制第一电磁铁工作,样品托盘受第一电磁铁吸力作用运动到矩形凹槽前内侧面处,第一接近开关发出触发信号;S21: the central processing unit controls the operation of the first electromagnet, the sample tray is moved to the front inner side of the rectangular groove by the suction force of the first electromagnet, and the first proximity switch sends a trigger signal;
S22:中央处理单元接收到第一接近开关发出的触发信号,控制第一电磁铁停止工作,控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁工作,第三电磁铁产生吸力,样品托盘底部的定位头受第三电磁铁的吸力作用插入该定位孔,该定位孔内的第二接近开关发出触发信号;S22: The central processing unit receives the trigger signal from the first proximity switch, controls the first electromagnet to stop working, controls the third electromagnet at the bottom of the positioning hole closest to the front inner side of the rectangular groove to work, and the third electromagnet generates suction , the positioning head at the bottom of the sample tray is inserted into the positioning hole by the suction force of the third electromagnet, and the second proximity switch in the positioning hole sends a trigger signal;
S23:中央处理单元接收到第二接近开关发出的触发信号,判断样品托盘定位成功,此时样品托盘的中心点位于光收发器的正下方;S23: The central processing unit receives the trigger signal sent by the second proximity switch, and judges that the positioning of the sample tray is successful. At this time, the center point of the sample tray is located directly below the optical transceiver;
S24:中央处理单元读取用户通过触摸屏输入的指令确定样品托盘需要插入的定位孔位置;S24: the central processing unit reads the instruction input by the user through the touch screen to determine the position of the positioning hole where the sample tray needs to be inserted;
S25:中央处理单元控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁停止工作,样品托盘受浮力作用浮起,样品托盘底部的定位头离开定位孔;S25: the central processing unit controls the third electromagnet at the bottom of the positioning hole closest to the front inner surface of the rectangular groove to stop working, the sample tray is lifted by buoyancy, and the positioning head at the bottom of the sample tray leaves the positioning hole;
S26:中央处理单元控制第二电磁铁以及样品托盘需要插入的定位孔底部的第三电磁铁工作,样品托盘底部的定位头插入该定位孔,该定位孔内的第二接近开关发出触发信号。S26: The central processing unit controls the operation of the second electromagnet and the third electromagnet at the bottom of the positioning hole where the sample tray needs to be inserted, the positioning head at the bottom of the sample tray is inserted into the positioning hole, and the second proximity switch in the positioning hole sends a trigger signal.
本发明的实质效果是:(1)能够快速、简便、准确地检测出牛肉是否为拼接牛肉。(2)样品托盘在液体中前后移动,无摩擦损耗,通过定位孔实现精确定位。The essential effects of the invention are: (1) It can quickly, easily and accurately detect whether the beef is spliced beef. (2) The sample tray moves back and forth in the liquid without friction loss, and precise positioning is achieved through the positioning holes.
附图说明Description of drawings
图1是本发明的一种结构示意图;Fig. 1 is a kind of structural representation of the present invention;
图2是矩形凹槽的结构示意图;Fig. 2 is a structural schematic diagram of a rectangular groove;
图3是矩形凹槽和样品托盘的结构示意图;Fig. 3 is a schematic structural view of a rectangular groove and a sample tray;
图4是图3的截面图;Fig. 4 is a sectional view of Fig. 3;
图5是定位孔的结构示意图;Fig. 5 is the structural representation of positioning hole;
图6是本发明的电路原理连接框图;Fig. 6 is a circuit principle connection block diagram of the present invention;
图7是检测时照射光源发出的检测光的光强曲线图。Fig. 7 is a light intensity curve diagram of the detection light emitted by the irradiation light source during detection.
图中:1、中央处理单元,2、触摸屏,3、光源控制模块,4、底座,5、检测台,6、矩形凹槽,7、样品托盘,8、第一永磁体,9、第二永磁体,10、定位柱,11、定位头,12、第一电磁铁,13、第二电磁铁,14、定位块,15、第一驱动电机,16、定位孔,17、第三电磁铁,18、第一接近开关,19、光收发器,20、照射光源,21、光接收器,22、升降机构,23、导向面,24、函数存储器,25、功放电路,26、摄像头,27、横向连杆,28、纵向连杆,29、丝杆,30、支撑杆,31、螺纹套,32、套管,33、第二接近开关。In the figure: 1. Central processing unit, 2. Touch screen, 3. Light source control module, 4. Base, 5. Detection platform, 6. Rectangular groove, 7. Sample tray, 8. First permanent magnet, 9. Second Permanent magnet, 10, positioning column, 11, positioning head, 12, the first electromagnet, 13, the second electromagnet, 14, positioning block, 15, the first drive motor, 16, positioning hole, 17, the third electromagnet , 18, the first proximity switch, 19, optical transceiver, 20, illumination light source, 21, optical receiver, 22, lifting mechanism, 23, guide surface, 24, function memory, 25, power amplifier circuit, 26, camera, 27 , transverse connecting rod, 28, longitudinal connecting rod, 29, screw mandrel, 30, support rod, 31, threaded sleeve, 32, sleeve pipe, 33, the second proximity switch.
具体实施方式detailed description
下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。The technical solutions of the present invention will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.
实施例:本实施例的一种快速检测拼接牛肉的系统,如图1、图2、图3、图4所示,包括控制器和检测机构,控制器包括中央处理单元1、触摸屏2和光源控制模块3,检测机构包括底座4,底座4上设有检测台5,检测台5中部设有矩形凹槽6,矩形凹槽6内储存有液体,液体上设有呈圆形的样品托盘7,样品托盘7的前端和后端分别设有第一永磁体和第二永磁体,样品托盘7底部设有定位柱10,定位柱10底部设有定位头11,定位头11由铁磁性材料制成,矩形凹槽6的前内侧面设有第一电磁铁12和第一接近开关18,矩形凹槽6的后内侧面设有第二电磁铁13,矩形凹槽6的底面设有七个定位块14,定位块14下方设有驱动定位块14转动的第一驱动电机15,定位块14上设有与定位头11配合且限制定位头11自由转动的定位孔16,七个定位块14上的定位孔16从前至后呈直线排列,定位孔16底部设有第三电磁铁17和第二接近开关33,样品托盘7上方设有光收发器19,光收发器19包括照射光源20和光接收器21,底座4上还设有带动光收发器19上下运动的升降机构22。Embodiment: A kind of system of rapid detection splicing beef of this embodiment, as shown in Fig. 1, Fig. 2, Fig. 3, Fig. 4, comprises controller and detection mechanism, and controller comprises central processing unit 1, touch screen 2 and light source The control module 3, the detection mechanism includes a base 4, a detection platform 5 is arranged on the base 4, a rectangular groove 6 is arranged in the middle of the detection platform 5, liquid is stored in the rectangular groove 6, and a circular sample tray 7 is arranged on the liquid , the front end and the rear end of the sample tray 7 are respectively provided with a first permanent magnet and a second permanent magnet, the bottom of the sample tray 7 is provided with a positioning column 10, and the bottom of the positioning column 10 is provided with a positioning head 11, and the positioning head 11 is made of ferromagnetic material Into, the front inner surface of the rectangular groove 6 is provided with the first electromagnet 12 and the first proximity switch 18, the rear inner surface of the rectangular groove 6 is provided with the second electromagnet 13, and the bottom surface of the rectangular groove 6 is provided with seven Positioning block 14, the first drive motor 15 that drives positioning block 14 to rotate is provided with below positioning block 14, positioning hole 16 that cooperates with positioning head 11 and limits positioning head 11 to rotate freely is provided on positioning block 14, seven positioning blocks 14 The positioning holes 16 are arranged in a straight line from front to back. The bottom of the positioning holes 16 is provided with a third electromagnet 17 and a second proximity switch 33. An optical transceiver 19 is provided above the sample tray 7. The optical transceiver 19 includes an illumination light source 20 and a light source. The receiver 21 and the base 4 are also provided with a lifting mechanism 22 that drives the optical transceiver 19 to move up and down.
如图6所示,光源控制模块3包括函数存储器24和功放电路25,矩形凹槽6上方还设有摄像头26,摄像头26通过连接件与升降机构22相连,中央处理单元1分别与触摸屏2、第一电磁铁12、第二电磁铁13、第三电磁铁17、第一接近开关18、第二接近开关33、第一驱动电机15、光接收器21、升降机构22、摄像头26、函数存储器24的输入端电连接,函数存储器24的输出端与功放电路25的输入端电连接,功放电路25的输出端与照射光源20电连接。As shown in Figure 6, the light source control module 3 includes a function memory 24 and a power amplifier circuit 25, and a camera 26 is also arranged above the rectangular groove 6, and the camera 26 is connected to the lifting mechanism 22 through a connector, and the central processing unit 1 is respectively connected to the touch screen 2, First electromagnet 12, second electromagnet 13, third electromagnet 17, first proximity switch 18, second proximity switch 33, first drive motor 15, light receiver 21, lifting mechanism 22, camera 26, function memory 24 is electrically connected to the input end, the output end of the function memory 24 is electrically connected to the input end of the power amplifier circuit 25 , and the output end of the power amplifier circuit 25 is electrically connected to the illumination light source 20 .
升降机构22包括横向连杆27、纵向连杆28、丝杆29、支撑杆30以及驱动丝杆29转动的第二驱动电机,丝杆29和支撑杆30竖直设置在底座4上,横向连杆27一端设有套设在丝杆29上的螺纹套31以及套设在支撑杆30上的套管32,所述横向连杆27另一端与纵向连杆28的顶端相连,所述光收发器19设置在纵向连杆28的底端,照射光源20的照射方向竖直向下,第二驱动电机与中央处理单元1电连接。中央处理单元1可通过升降机构22调整光收发器29的上下位置,以满足实际检测需求。Lifting mechanism 22 comprises transverse connecting rod 27, longitudinal connecting rod 28, screw mandrel 29, support rod 30 and the second driving motor that drives screw mandrel 29 to rotate, and screw mandrel 29 and support rod 30 are vertically arranged on the base 4, and horizontal link One end of the rod 27 is provided with a threaded sleeve 31 sleeved on the screw rod 29 and a sleeve 32 sleeved on the support rod 30, the other end of the transverse connecting rod 27 is connected with the top of the longitudinal connecting rod 28, and the optical transceiver The device 19 is arranged at the bottom end of the longitudinal connecting rod 28 , the irradiation direction of the illuminating light source 20 is vertically downward, and the second driving motor is electrically connected with the central processing unit 1 . The central processing unit 1 can adjust the up and down position of the optical transceiver 29 through the lifting mechanism 22 to meet the actual detection requirements.
定位头11呈扁平状,定位头11的纵截面呈倒置的等腰梯形,定位孔16的形状与定位头11的形状匹配,如图5所示,定位孔16顶部左右两侧分别设有倾斜的导向面23。定位孔16沿从前至后方向设置,定位孔16顶部左右两侧的导向面23起导向作用,便于定位头11插入定位孔16。The positioning head 11 is flat, and the longitudinal section of the positioning head 11 is an inverted isosceles trapezoid. The shape of the positioning hole 16 matches the shape of the positioning head 11. As shown in Figure 5, the left and right sides of the top of the positioning hole 16 are respectively provided with inclined The guide surface 23. The positioning hole 16 is arranged along the direction from front to back, and the guide surfaces 23 on the left and right sides of the top of the positioning hole 16 act as guides, facilitating the insertion of the positioning head 11 into the positioning hole 16 .
矩形凹槽6左右内侧壁之间的距离与样品托盘7的直径相匹配。矩形凹槽6左右内侧壁之间的距离比样品托盘7的直径大2cm,使样品托盘7只能够前后运动,保证定位头11在定位孔16排列成的直线上方运动,便于定位头11插入定位孔16。The distance between the left and right inner side walls of the rectangular groove 6 matches the diameter of the sample tray 7 . The distance between the left and right inner walls of the rectangular groove 6 is 2 cm larger than the diameter of the sample tray 7, so that the sample tray 7 can only move back and forth, ensuring that the positioning head 11 moves above the straight line formed by the positioning holes 16, which is convenient for the positioning head 11 to insert and locate hole 16.
矩形凹槽6底面上距离矩形凹槽6前内侧面最近的定位孔16位于光收发器19的正下方。距离矩形凹槽6前内侧面最近的定位孔16用于样品托盘7的初始定位,最前面的定位孔16与最后面的定位孔16之间的距离为样品托盘7的半径。The positioning hole 16 on the bottom surface of the rectangular groove 6 closest to the front inner side of the rectangular groove 6 is located directly below the optical transceiver 19 . The positioning hole 16 closest to the front inner side of the rectangular groove 6 is used for the initial positioning of the sample tray 7 , and the distance between the frontmost positioning hole 16 and the rearmost positioning hole 16 is the radius of the sample tray 7 .
样品托盘7包括呈圆形的底盘以及与底盘外缘相连的环形侧壁,第一永磁体和第二永磁体分别镶嵌在环形侧壁的前端和后端,底盘底部设有向下凸出的凸块,凸块呈球冠形,定位柱10设置在凸块的底部。凸块呈球冠形,使样品托盘7能够平稳的在液体中上下浮动,底盘用于放置待测牛肉样品,环形侧壁可防止液体溅到底盘上的待测牛肉样品上。The sample tray 7 includes a circular chassis and an annular side wall connected to the outer edge of the chassis. The first permanent magnet and the second permanent magnet are respectively embedded in the front and rear ends of the annular side wall. The bottom of the chassis is provided with a downwardly protruding The bump is in the shape of a spherical crown, and the positioning post 10 is arranged at the bottom of the bump. The bump is in the shape of a spherical crown, so that the sample tray 7 can float up and down smoothly in the liquid. The chassis is used to place the beef sample to be tested, and the annular side wall can prevent the liquid from splashing on the beef sample to be tested on the chassis.
函数存储器24存储中央处理单元1发出的函数信息,并通过功放电路25控制照射光源20发出不同强度的检测光。摄像头26采集矩形凹槽6的图像信息,并发送到中央处理单元1,中央处理单元1通过图像处理得到样品托盘7的位置信息,在样品托盘7前后移动时进行监控,如果样品托盘7没有移动到需要插入的定位孔16的正上方,中央处理单元1通过第一电磁铁12和第二电磁铁13调整样品托盘7的位置,便于中央处理单元1更准确的调整样品托盘7的位置。照射光源20为卤素灯。The function memory 24 stores the function information sent by the central processing unit 1 , and controls the illuminating light source 20 to emit detection lights with different intensities through the power amplifier circuit 25 . The camera 26 collects the image information of the rectangular groove 6 and sends it to the central processing unit 1. The central processing unit 1 obtains the position information of the sample tray 7 through image processing, and monitors when the sample tray 7 moves back and forth. If the sample tray 7 does not move Right above the positioning hole 16 to be inserted, the central processing unit 1 adjusts the position of the sample tray 7 through the first electromagnet 12 and the second electromagnet 13, so that the central processing unit 1 can adjust the position of the sample tray 7 more accurately. The irradiation light source 20 is a halogen lamp.
检测时,将待测牛肉样品放置在样品托盘7上,使牛肉样品的中心位于样品托盘7的中心。During detection, the beef sample to be tested is placed on the sample tray 7 so that the center of the beef sample is located at the center of the sample tray 7 .
中央处理单元1控制第一电磁铁12工作,第一电磁铁12产生吸力,样品托盘7上的第一永磁体受第一电磁铁12吸力作用,样品托盘7向矩形凹槽6的前内侧面运动,同时第一永磁体受吸力作用正对第一电磁铁12,校准定位头11的位置,保证定位头11能够插入定位孔16。矩形凹槽6左右内侧壁之间的距离比样品托盘7的直径略大,使样品托盘7只能够前后运动,保证定位头11在定位孔16排列成的直线上方运动,便于定位头11插入定位孔16。当样品托盘7与矩形凹槽6前内侧面相接触时(此时,定位头11位于距离矩形凹槽6前内侧面最近的定位孔16的正上方),第一接近开关18发出触发信号,中央处理单元1接收到第一接近开关18发出的触发信号,控制第一电磁铁12停止工作,控制距离矩形凹槽6前内侧面最近的定位孔16底部的第三电磁铁17工作,第三电磁铁17产生吸力,样品托盘7底部的定位头11受第三电磁铁17的吸力作用插入该定位孔16,该定位孔16内的第二接近开关33发出触发信号。中央处理单元1接收到第二接近开关33发出的触发信号,判断样品托盘7定位成功,此时样品托盘7的中心点位于光收发器19的正下方。The central processing unit 1 controls the first electromagnet 12 to work, and the first electromagnet 12 generates a suction force. The first permanent magnet on the sample tray 7 is subjected to the suction force of the first electromagnet 12, and the sample tray 7 faces the front inner side of the rectangular groove 6. At the same time, the first permanent magnet is facing the first electromagnet 12 by the suction force, and the position of the positioning head 11 is calibrated to ensure that the positioning head 11 can be inserted into the positioning hole 16. The distance between the left and right inner walls of the rectangular groove 6 is slightly larger than the diameter of the sample tray 7, so that the sample tray 7 can only move back and forth, ensuring that the positioning head 11 moves above the straight line formed by the positioning holes 16, which facilitates the insertion and positioning of the positioning head 11 hole 16. When the sample tray 7 was in contact with the front inner side of the rectangular groove 6 (at this time, the positioning head 11 was located directly above the positioning hole 16 closest to the front inner side of the rectangular groove 6), the first proximity switch 18 sent a trigger signal, and the center The processing unit 1 receives the trigger signal sent by the first proximity switch 18, controls the first electromagnet 12 to stop working, and controls the third electromagnet 17 at the bottom of the positioning hole 16 closest to the front inner surface of the rectangular groove 6 to work, and the third electromagnet 17 to work. The iron 17 generates suction, and the positioning head 11 at the bottom of the sample tray 7 is inserted into the positioning hole 16 by the suction of the third electromagnet 17, and the second proximity switch 33 in the positioning hole 16 sends a trigger signal. The central processing unit 1 receives the trigger signal from the second proximity switch 33 and judges that the sample tray 7 is positioned successfully, and the center point of the sample tray 7 is located directly below the optical transceiver 19 at this time.
用户可通过触摸屏2选择样品托盘7需要插入的定位孔16位置。中央处理单元1控制距离矩形凹槽6前内侧面最近的定位孔16底部的第三电磁铁17停止工作,样品托盘7受浮力作用浮起,样品托盘7底部的定位头11离开定位孔16。中央处理单元1控制第二电磁铁13以及样品托盘7需要插入的定位孔16底部的第三电磁铁17工作,样品托盘7上的第二永磁体受第二电磁铁13吸力作用,样品托盘7向矩形凹槽6的后内侧面运动。当样品托盘7移动到需要插入的定位孔16上方时,样品托盘7下方的定位头11受第三电磁铁13吸力作用,样品托盘7底部的定位头11插入该定位孔16,该定位孔16内的第二接近开关33发出触发信号。中央处理单元1接收到触发信号,判断样品托盘7成功插入用户选择的定位孔16。样品托盘7在液体中前后移动,无摩擦损耗,通过定位孔16实现精确定位。The user can select the location of the positioning hole 16 where the sample tray 7 needs to be inserted through the touch screen 2 . The central processing unit 1 controls the third electromagnet 17 at the bottom of the positioning hole 16 closest to the front inner surface of the rectangular groove 6 to stop working, the sample tray 7 is floated by buoyancy, and the positioning head 11 at the bottom of the sample tray 7 leaves the positioning hole 16. The central processing unit 1 controls the second electromagnet 13 and the third electromagnet 17 at the bottom of the positioning hole 16 that the sample tray 7 needs to be inserted to work. The second permanent magnet on the sample tray 7 is subjected to the suction force of the second electromagnet 13, and the sample tray 7 Move to the rear inner side of the rectangular groove 6. When the sample tray 7 moved to the top of the positioning hole 16 to be inserted, the positioning head 11 below the sample tray 7 was subjected to the suction force of the third electromagnet 13, and the positioning head 11 at the bottom of the sample tray 7 was inserted into the positioning hole 16, and the positioning hole 16 The second proximity switch 33 inside sends a trigger signal. The central processing unit 1 receives the trigger signal and judges that the sample tray 7 is successfully inserted into the positioning hole 16 selected by the user. The sample tray 7 moves back and forth in the liquid without friction loss, and precise positioning is realized through the positioning hole 16 .
中央处理单元1控制样品托盘7插入的定位孔16所在的定位块14旋转一周,每水平转动30度停下检测一次光谱数据。检测光谱数据时,照射光源20发出的检测光的强度曲线先从0按照直线上升到最大值,接着从最大值按照正弦曲线下降到0,如图7所示。光接收器21检测接收到的反射光强度曲线,并将其发送到中央处理单元1,中央处理单元1对检测数据进行相应处理后,判断待测牛肉样品是否为拼接牛肉。The central processing unit 1 controls the positioning block 14 where the positioning hole 16 where the sample tray 7 is inserted is located to rotate once, and stops to detect spectral data every horizontal rotation of 30 degrees. When detecting spectral data, the intensity curve of the detection light emitted by the irradiation light source 20 first increases from 0 to the maximum value in a straight line, and then decreases from the maximum value to 0 in a sinusoidal curve, as shown in FIG. 7 . The light receiver 21 detects the received reflected light intensity curve and sends it to the central processing unit 1, and the central processing unit 1 processes the detected data accordingly to determine whether the beef sample to be tested is spliced beef.
光学检测拼接牛肉的原理:整块的牛肉纹路自然连续、条理清晰、色泽统一、含水量相近,因此其同入射角的反射吸收光谱信号是接近的,可以作为检测的依据。而拼接肉的不同碎块虽然经过整理、胶粘和表面处理,但是其内在肉质纹路并不连续,有整体的断层,色泽相差较大,含水量很难一致,因此可以根据光学检测方法确定是否为拼接牛肉。The principle of optical detection of spliced beef: the whole piece of beef has natural continuous lines, clear layers, uniform color, and similar water content, so it is close to the reflection absorption spectrum signal at the incident angle, which can be used as the basis for detection. Although the different pieces of spliced meat have been sorted, glued and surface treated, their internal meat texture is not continuous, there are overall faults, the color is quite different, and the water content is difficult to be consistent. Therefore, it can be determined by optical detection methods. For the splice beef.
本发明是采用光强度不断变化的入射光照射样品,在入射光的强度渐大或者减小的变化过程中,不同基团对相应波长光的吸收是渐大或者减小的,此时基团的吸收程度处于未饱和、饱和渐弱过程中,反射光中包含更多的检测信息,从而使得到的检测信号能够更准确的表征出牛肉是否为拼接。In the present invention, the sample is irradiated with incident light with constantly changing light intensity. During the change process of increasing or decreasing intensity of incident light, the absorption of different groups to light of corresponding wavelengths is gradually increasing or decreasing. At this time, the group The absorption degree is in the process of unsaturated and saturated fading, and the reflected light contains more detection information, so that the obtained detection signal can more accurately characterize whether the beef is spliced.
本实施例的一种快速检测拼接牛肉的方法,适用于上述的一种快速检测拼接牛肉的系统,包括以下步骤:A method for quickly detecting spliced beef in this embodiment is applicable to the above-mentioned system for rapidly detecting spliced beef, including the following steps:
S1:制备厚度为7mm-8mm的牛肉样品,将牛肉样品放置在样品托盘上,使牛肉样品的中心位于样品托盘的中心;S1: Prepare a beef sample with a thickness of 7mm-8mm, place the beef sample on the sample tray so that the center of the beef sample is located at the center of the sample tray;
S2:中央处理单元根据用户通过触摸屏输入的指令,控制样品托盘插入用户指定的定位孔;S2: The central processing unit controls the sample tray to be inserted into the positioning hole designated by the user according to the instruction input by the user through the touch screen;
S3:中央处理单元通过光源控制模块控制照射光源发出特定光强的检测光照射在牛肉样品上,检测光强度曲线先从0按照直线上升到最大值,接着从最大值按照正弦曲线下降到0,光接收器采集反射光谱数据Spect(t),然后中央处理单元控制样品托盘插入的定位孔所在定位块下方的第一驱动电机工作,第一驱动电机控制定位块转动30度,使样品托盘水平旋转30度,光接收器采集此时照射光源照射点的光谱数据,如此控制样品托盘水平旋转360度,每水平转动30度停下检测一次光谱数据,从而在牛肉样品上采集12个不同位置的光谱数据Spect(t);S3: The central processing unit controls the irradiation light source through the light source control module to emit detection light with a specific light intensity to irradiate the beef sample. The detection light intensity curve first rises from 0 to the maximum value in a straight line, and then decreases from the maximum value to 0 according to the sinusoidal curve. The optical receiver collects the reflection spectrum data Spec(t), and then the central processing unit controls the first driving motor under the positioning block where the positioning hole where the sample tray is inserted is located to work, and the first driving motor controls the positioning block to rotate 30 degrees, so that the sample tray rotates horizontally 30 degrees, the light receiver collects the spectral data of the irradiation point of the light source at this time, so that the sample tray is controlled to rotate 360 degrees horizontally, and stops to detect the spectral data every 30 degrees of horizontal rotation, so as to collect the spectra of 12 different positions on the beef sample data Spect(t);
S4:中央处理单元将采集到的12个光谱数据Spect(t)均进行同样的数据处理,计算出12个信噪比特征值,对每个光谱数据Spect(t)进行的数据处理包括以下步骤:S4: The central processing unit performs the same data processing on the collected 12 spectral data Spec(t), and calculates 12 signal-to-noise ratio characteristic values, and the data processing for each spectral data Spec(t) includes the following steps :
采用输入信号作为输入矩阵,With input signal As an input matrix,
在绝热近似条件下,假设信号幅度极小(A<<1),双稳态系统在没有足够能量驱动的情况下,布朗运动粒子偏置于一侧势阱中,信号周期比一些典型势阱内系统弛豫时间要长的多,此时周期性驱动力的出现使势函数发生倾斜,最终导致布朗运动粒子从一个势阱到另外一个势阱的跃迁,因此势函数V(x,t,α)与输入信号协同为一层随机共振模型:Under adiabatic approximation conditions, assuming that the signal amplitude is extremely small (A<<1), when the bistable system does not have enough energy to drive, the Brownian motion particles are biased in one side of the potential well, and the signal period is shorter than that of some typical potential wells The relaxation time of the internal system is much longer. At this time, the appearance of periodic driving force makes the potential function tilt, which eventually leads to the transition of Brownian motion particles from one potential well to another. Therefore, the potential function V(x, t, α) cooperates with the input signal to form a stochastic resonance model:
其中,V(x,t,α)为势函数,x(t)为布朗粒子运动轨迹函数,t为运动时间,为周期性正弦信号,N(t)为内秉噪声,A是信号幅度,f是信号频率,D是外噪声强度,ξ(t)是外噪声,为相位,Among them, V(x, t, α) is the potential function, x(t) is the motion trajectory function of Brownian particles, t is the motion time, is a periodic sinusoidal signal, N(t) is internal noise, A is signal amplitude, f is signal frequency, D is external noise intensity, ξ(t) is external noise, for the phase,
计算V(x,t,α)对于x(t)的一阶导数、二阶导数和三阶导数,并且使等式等于0,得到二层随机共振模型:Calculate the first-order derivative, second-order derivative and third-order derivative of V(x, t, α) with respect to x(t), and make the equation equal to 0 to obtain the two-layer stochastic resonance model:
设定噪声强度D=0,Spect(t)=0,N(t)=0,计算得到A的临界值为在A<Ac的情况下,布朗运动粒子在其原始位置左右进行徘徊,并不能实现两个势阱之间的跃迁,但是粒子在得到外噪声干预的情况下,即便是A<Ac其也能完成势阱之间的跃迁,这就是随机共振的发生过程,将Ac代入一层随机共振模型中,并设定x0(t)=0,sn0=0,采用四阶珑格库塔算法求解一层随机共振模型,得到:Set the noise intensity D=0, Spect(t)=0, N(t)=0, the calculated critical value of A is In the case of A<A c , the Brownian motion particle hovers around its original position, and cannot realize the transition between the two potential wells, but when the particle is interfered by external noise, even if A<A c It can also complete the transition between potential wells, which is the occurrence process of stochastic resonance. Substitute A c into a layer of stochastic resonance model, and set x 0 (t) = 0, sn 0 = 0, using the fourth-order Longge The Kutta algorithm solves the one-layer stochastic resonance model and obtains:
其中,待定系数:Among them, the undetermined coefficient:
(k1)n=a(αxn-1(t))2b(αxn-1(t))3+snn-1 (4)(k 1 ) n =a(αx n-1 (t)) 2 b(αx n-1( t)) 3 +sn n-1 (4)
其中,xn(t)为x(t)的n阶导数,snn是S(t)的n阶导数在t=0处的值,a、b为设定的常数,Wherein, x n (t) is the n-order derivative of x (t), sn n is the value of the n-order derivative of S (t) at t=0, and a, b are constants set,
计算得到x1(t),x2(t)…xn+1(t)的值,对x1(t),x2(t)…xn+1(t)进行积分得到x(t),并得到x(t)在一层随机共振模型和二层随机共振模型组成的双层随机共振系统产生共振时刻的位置xm值、与xm相对应的共振时刻t1、与t1相对应的运动加速度α1以及与t1相对应的噪声D1,D1为D中的一个值,Calculate the value of x 1 (t), x 2 (t)…x n +1 (t), integrate x 1 (t), x 2 (t)…x n+1 (t) to get x(t ), and get x( t ) in the double-layer stochastic resonance system composed of one-layer stochastic resonance model and two-layer stochastic resonance model. The motion acceleration α1 and the noise D1 corresponding to t1, D1 is a value in D,
通过公式
S5:将计算出的12个信噪比特征值分为四组,将SNR特征3、SNR特征6、SNR特征9、SNR特征12分为第一组,将SNR特征2、SNR特征4、SNR特征7、SNR特征11分为第二组,将SNR特征1和SNR特征5分为第三组,将SNR特征8和SNR特征10分为第四组,并分别计算各组的信噪比平均值,得到SNR平均1、SNR平均2、SNR平均3、SNR平均4,S5: Divide the calculated 12 SNR feature values into four groups, divide SNR feature 3 , SNR feature 6 , SNR feature 9 , and SNR feature 12 into the first group, and divide SNR feature 2 , SNR feature 4 , SNR feature Feature 7 and SNR feature 11 are divided into the second group, SNR feature 1 and SNR feature 5 are divided into the third group, SNR feature 8 and SNR feature 10 are divided into the fourth group, and the average signal-to-noise ratio of each group is calculated respectively value, get SNR average 1 , SNR average 2 , SNR average 3 , SNR average 4 ,
计算各个信噪比特征值与其所对应的组的信噪比平均值之间的误差QEj,j=1,…,12;Calculate the error QE j between each SNR eigenvalue and the SNR average value of the corresponding group, j=1,...,12;
统计满足QEj≤2%的信噪比特征值的个数M1,统计满足QEj>2%的信噪比特征值的个数M2;Counting the number M 1 of SNR eigenvalues satisfying QE j ≤ 2%, counting the number M 2 of SNR eigenvalues satisfying QE j >2%;
S6:如果则中央处理单元判断该牛肉样品不是拼接牛肉,如果则中央处理单元判断该牛肉样品是拼接牛肉,否则跳转至步骤S3,对牛肉样品重新进行检测。S6: if Then the central processing unit judges that the beef sample is not spliced beef, if Then the central processing unit judges that the beef sample is spliced beef, otherwise jump to step S3, and retest the beef sample.
光强度曲线先从0按照直线上升到最大值,接着从最大值按照正弦曲线下降到0的检测光适合检测厚度为7mm-8mm的牛肉样品。步骤S6中,如果和两个公式都不成立,则可以控制样品托盘插入与该定位孔相邻的定位孔,接着跳转至步骤S3对牛肉样品重新进行检测。The detection light whose light intensity curve first rises from 0 to the maximum value in a straight line, and then falls from the maximum value to 0 according to a sinusoidal curve is suitable for detecting beef samples with a thickness of 7mm-8mm. In step S6, if and If the two formulas are not established, the sample tray can be controlled to be inserted into the positioning hole adjacent to the positioning hole, and then jump to step S3 to retest the beef sample.
步骤S2包括以下步骤:Step S2 comprises the following steps:
S21:中央处理单元控制第一电磁铁工作,样品托盘受第一电磁铁吸力作用运动到矩形凹槽前内侧面处,第一接近开关发出触发信号;S21: the central processing unit controls the operation of the first electromagnet, the sample tray is moved to the front inner side of the rectangular groove by the suction force of the first electromagnet, and the first proximity switch sends a trigger signal;
S22:中央处理单元接收到第一接近开关发出的触发信号,控制第一电磁铁停止工作,控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁工作,第三电磁铁产生吸力,样品托盘底部的定位头受第三电磁铁的吸力作用插入该定位孔,该定位孔内的第二接近开关发出触发信号;S22: The central processing unit receives the trigger signal from the first proximity switch, controls the first electromagnet to stop working, controls the third electromagnet at the bottom of the positioning hole closest to the front inner side of the rectangular groove to work, and the third electromagnet generates suction , the positioning head at the bottom of the sample tray is inserted into the positioning hole by the suction force of the third electromagnet, and the second proximity switch in the positioning hole sends a trigger signal;
S23:中央处理单元接收到第二接近开关发出的触发信号,判断样品托盘定位成功,此时样品托盘的中心点位于光收发器的正下方;S23: The central processing unit receives the trigger signal sent by the second proximity switch, and judges that the positioning of the sample tray is successful. At this time, the center point of the sample tray is located directly below the optical transceiver;
S24:中央处理单元读取用户通过触摸屏输入的指令确定样品托盘需要插入的定位孔位置;S24: the central processing unit reads the instruction input by the user through the touch screen to determine the position of the positioning hole where the sample tray needs to be inserted;
S25:中央处理单元控制距离矩形凹槽前内侧面最近的定位孔底部的第三电磁铁停止工作,样品托盘受浮力作用浮起,样品托盘底部的定位头离开定位孔;S25: the central processing unit controls the third electromagnet at the bottom of the positioning hole closest to the front inner surface of the rectangular groove to stop working, the sample tray is lifted by buoyancy, and the positioning head at the bottom of the sample tray leaves the positioning hole;
S26:中央处理单元控制第二电磁铁以及样品托盘需要插入的定位孔底部的第三电磁铁工作,样品托盘受第二电磁铁吸力作用移动到需要插入的定位孔上方,样品托盘底部的定位头受第三电磁铁吸力作用插入该定位孔,该定位孔内的第二接近开关发出触发信号。摄像头采集矩形凹槽的图像信息,并发送到中央处理单元,中央处理单元通过图像处理得到样品托盘的位置信息,如果样品托盘受第二电磁铁吸力作用向后移动过度,运动到需要插入的定位孔的后方,中央处理单元通过第一电磁铁和第二电磁铁调整样品托盘的位置,使样品托盘保持在需要插入的定位孔的正上方。S26: The central processing unit controls the second electromagnet and the third electromagnet at the bottom of the positioning hole to be inserted into the sample tray to work. The sample tray is moved to the top of the positioning hole to be inserted by the suction force of the second electromagnet. Inserted into the positioning hole by the suction force of the third electromagnet, the second proximity switch in the positioning hole sends out a trigger signal. The camera collects the image information of the rectangular groove and sends it to the central processing unit. The central processing unit obtains the position information of the sample tray through image processing. If the sample tray moves backward excessively due to the suction force of the second electromagnet, it moves to the position that needs to be inserted. Behind the hole, the central processing unit adjusts the position of the sample tray through the first electromagnet and the second electromagnet, so that the sample tray remains directly above the positioning hole to be inserted.
在本实施例中,经过检测满足QEj≤2%的信噪比特征值的个数M1=1,统计满足QEj>2%的信噪比特征值的个数为M2=11,判断牛肉样品是拼接牛肉。In this embodiment, the number M 1 =1 of SNR eigenvalues satisfying QE j ≤ 2% is detected, and the number of SNR eigenvalues satisfying QE j > 2% is M 2 =11, The beef sample was judged to be spliced beef.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410405101.7A CN104374721B (en) | 2014-08-18 | 2014-08-18 | Spliced beef rapid detection system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410405101.7A CN104374721B (en) | 2014-08-18 | 2014-08-18 | Spliced beef rapid detection system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104374721A CN104374721A (en) | 2015-02-25 |
CN104374721B true CN104374721B (en) | 2017-01-11 |
Family
ID=52553768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410405101.7A Expired - Fee Related CN104374721B (en) | 2014-08-18 | 2014-08-18 | Spliced beef rapid detection system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104374721B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109835709A (en) * | 2017-11-27 | 2019-06-04 | 浙江大学常州工业技术研究院 | A kind of lacquer painting detection device |
CN110261327A (en) * | 2019-07-24 | 2019-09-20 | 湖北琪谱检测技术有限公司 | A kind of food safety integrated analysis device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL8802404A (en) * | 1988-09-30 | 1990-04-17 | Meyn Bv | METHOD AND APPARATUS FOR IRRADIATING FOOD PRODUCTS |
JPH06242102A (en) * | 1993-02-23 | 1994-09-02 | Snow Brand Milk Prod Co Ltd | Inspection method and apparatus for flesh tissue |
JP2006098106A (en) * | 2004-09-28 | 2006-04-13 | Mitsui Mining & Smelting Co Ltd | Internal quality evaluation device for produce |
CN101144780A (en) * | 2006-09-14 | 2008-03-19 | 郭培源 | Pork freshness intelligent detection device |
CN101710067A (en) * | 2009-12-14 | 2010-05-19 | 中国农业大学 | System and method for detecting quality of livestock meat |
NO329603B1 (en) * | 2007-11-22 | 2010-11-22 | Integrated Optoelectronics As | Method and system for painting and determining / recognizing different materials |
CN102507459A (en) * | 2011-11-23 | 2012-06-20 | 中国农业大学 | Method and system for quick lossless evaluation on freshness of fresh beef |
CN103424521A (en) * | 2013-08-01 | 2013-12-04 | 浙江工商大学 | Device and method for detecting freshness of beef |
-
2014
- 2014-08-18 CN CN201410405101.7A patent/CN104374721B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL8802404A (en) * | 1988-09-30 | 1990-04-17 | Meyn Bv | METHOD AND APPARATUS FOR IRRADIATING FOOD PRODUCTS |
JPH06242102A (en) * | 1993-02-23 | 1994-09-02 | Snow Brand Milk Prod Co Ltd | Inspection method and apparatus for flesh tissue |
JP2006098106A (en) * | 2004-09-28 | 2006-04-13 | Mitsui Mining & Smelting Co Ltd | Internal quality evaluation device for produce |
CN101144780A (en) * | 2006-09-14 | 2008-03-19 | 郭培源 | Pork freshness intelligent detection device |
NO329603B1 (en) * | 2007-11-22 | 2010-11-22 | Integrated Optoelectronics As | Method and system for painting and determining / recognizing different materials |
CN101710067A (en) * | 2009-12-14 | 2010-05-19 | 中国农业大学 | System and method for detecting quality of livestock meat |
CN102507459A (en) * | 2011-11-23 | 2012-06-20 | 中国农业大学 | Method and system for quick lossless evaluation on freshness of fresh beef |
CN103424521A (en) * | 2013-08-01 | 2013-12-04 | 浙江工商大学 | Device and method for detecting freshness of beef |
Non-Patent Citations (3)
Title |
---|
Differentiation of Beef and Kangaroo Meat by Visible/Near-Infrared Reflectance Spectroscopy;H.B. Ding et al.;《FOOD CHEMISTRY AND TOXICOLOGY》;19991231;第64卷(第5期);第814-817页 * |
牛高档部位肉品质快速检测方法的研究;牛蕾等;《2010年中国牛业进展》;20101231;第474-478页 * |
用近红外漫反射光谱检测肉品新鲜度的初步研究;侯瑞锋等;《光谱学与光谱分析》;20061231;第26卷(第12期);第2193-2196页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104374721A (en) | 2015-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102235939A (en) | Lens stray light detection device and lens stray light detection method | |
CN104374721B (en) | Spliced beef rapid detection system and method | |
CN104089885A (en) | Beef quality rapid detection system and method | |
CN103940766B (en) | Optical characteristic detection device of agricultural product tissue | |
CN104089959A (en) | Fast and accurate beef quality detection system and method | |
CN104374709B (en) | Beef freshness rapid nondestructive detection device and detection method | |
CN104374720B (en) | Spliced mutton detection system and method | |
CN104089900B (en) | Snowflakes beef detection apparatus and method | |
CN104374703B (en) | Snow beef rapid detection system and method | |
CN104089888A (en) | Fast and accurate beef quality detection system and method | |
CN104374718B (en) | The system and method that a kind of quick detection splices Carnis caprae seu ovis | |
CN104374716B (en) | Spliced beef detection system and method | |
CN104374717A (en) | Snow beef detection system and method | |
CN104089903B (en) | A kind of snowflakes beef detection apparatus and method | |
CN104089905A (en) | Detection device and method for spliced beef | |
CN208223783U (en) | It is a kind of for testing the tester of the guide-lighting performance of light guide | |
CN104089890A (en) | Beef quality detection system and method | |
CN104374707B (en) | Beef freshness detection device and detection method | |
CN104089887A (en) | Device and method for detecting snowflake beef | |
CN104089904A (en) | Detection device and method for spliced mutton | |
CN104251828A (en) | Device and method for rapid detection of splicing mutton | |
CN104089899A (en) | Device and method for detecting snowflake beef | |
KR101157357B1 (en) | Orsat analyzer | |
CN104374741B (en) | splicing beef detection device and detection method thereof | |
CN112201124A (en) | Demonstration device for physical teaching of gravitational acceleration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB03 | Change of inventor or designer information |
Inventor after: Fu Jun Inventor after: Liu Wei Inventor after: Cai Yanping Inventor before: Hui Guohua Inventor before: Zhao Mengtian Inventor before: Liu Wei Inventor before: Cai Yanping Inventor before: Han Yuanyuan |
|
COR | Change of bibliographic data |
Free format text: CORRECT: INVENTOR; FROM: HUI GUOHUA ZHAO MENGTIAN LIU WEI CAI YANPING HAN YUANYUAN TO: FU JUN LIU WEI CAI YANPING |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170111 Termination date: 20170818 |