A kind of system and method for quick detection splicing beef
Technical field
The present invention relates to technical field of food detection, particularly relate to the system and method for a kind of quick detection splicing beef.
Background technology
Beef taste is delicious, nutritious, in good taste, is first-class food materials.But owing to its production cost is higher, especially
Top grade beef block, expensive.And splice beef and be spliced by different size of fragment beef, not only mouthfeel is bad, and
The beef clod of separate sources the most also can form pollution, forms food-safety problem.
China Patent Publication No. CN1603794, publication date on April 6th, 2005, the entitled near infrared technology of invention is quick
Detection tenderness of beef utilizing method and apparatus, this application case disclose a kind of rapidly detecting tenderness of beef utilizing near infrared technology method and
Device, it is by near-infrared light source, near infrared detector, diffuse-reflectance fiber plant, microprocessor, display and recording equipment and can turn
Dynamic object stage composition.Its weak point is, this detection device can not detect whether beef is splicing beef.
Summary of the invention
It is an object of the invention to overcome current beef detecting system can not detect whether beef is that the technology splicing beef is asked
Topic, it is provided that a kind of quick detection splicing beef system and method, its can quickly, simplicity, detect that beef is exactly
No for splicing beef.
In order to solve the problems referred to above, the present invention is achieved by the following technical solutions:
The system of a kind of quick detection splicing beef of the present invention, including controller and testing agency, described controller bag
Including CPU, touch screen and light source control module, described testing agency includes that base, described base are provided with detection
Platform, is provided with rectangular recess in the middle part of described monitor station, store liquid in described rectangular recess, and described liquid is provided with rounded
Sample tray, the front-end and back-end of described sample tray are respectively equipped with the first permanent magnet and the second permanent magnet, described sample tray
Bottom is provided with locating dowel, is provided with positioning head bottom described locating dowel, and described positioning head is made up of ferrimagnet, and described rectangle is recessed
The anteromedial surface of groove is provided with the first electric magnet and the first proximity switch, and the rear medial surface of described rectangular recess is provided with the second electromagnetism
Ferrum, the bottom surface of described rectangular recess is provided with several locating pieces, is provided with drive locating piece to rotate first below described locating piece
Drive motor, described locating piece is provided with and coordinates and limit the hole, location that positioning head is freely rotatable with positioning head, described several
Hole, location on locating piece is arranged in a linear from front to back, is provided with the 3rd electric magnet and second close to opening bottom hole, described location
Closing, described sample tray is arranged over optical transceiver, and described optical transceiver includes radiation source and optical receiver, and described rectangle is recessed
Groove is arranged over photographic head, described CPU respectively with touch screen, light source control module, the first electric magnet, second electricity
Magnet, the 3rd electric magnet, the first proximity switch, the second proximity switch, the first driving motor, optical receiver and photographic head are electrically connected
Connecing, described light source control module also electrically connects with radiation source.
In the technical program, radiation source is Halogen light or generating laser.During detection, beef sample to be measured is placed
On sample tray, beef sample is made to be centrally located at the center of sample tray.
Central processing unit controls the first work of electromagnet, the first electric magnet produces suction, and first on sample tray is forever
Magnet is moved to the anteromedial surface of rectangular recess by the first electromagnet suction effect, sample tray, and the first permanent magnet is inhaled simultaneously
Power effect is just to the first electric magnet, the position of calibration positioning head, it is ensured that positioning head is inserted into positioning hole.In about rectangular recess
Distance between sidewall is more bigger than the diameter of sample tray, makes sample tray be merely able to seesaw, it is ensured that positioning head is in location
The straight line upper direction that hole is arranged in, it is simple to positioning head inserts hole, location.When sample tray moves to rectangular recess anteromedial surface
During place, the first proximity switch sends triggering signal, and CPU receives the triggering signal that the first proximity switch sends, control
Make the first electric magnet to quit work, the 3rd electromagnetism ironworker bottom hole, location that command range rectangular recess anteromedial surface is nearest
Making, the 3rd electric magnet produces suction, and the positioning head bottom sample tray is inserted this hole, location by the suction of the 3rd electric magnet,
The second proximity switch in this hole, location sends triggering signal.CPU receives triggering signal, it is judged that sample tray
Positioning successfully, now the central point of sample tray is positioned at the underface of optical transceiver.
User can select sample tray to need the position of positioning hole inserted by touch screen.Central processing unit controls distance
The 3rd electric magnet bottom hole, location that rectangular recess anteromedial surface is nearest quits work, and sample tray is floated by buoyancy,
Positioning head bottom sample tray leaves hole, location.Central processing unit controls the second electric magnet and sample tray need to insert
Location hole bottom the 3rd work of electromagnet, the second permanent magnet on sample tray is by the second electromagnet suction effect, sample
Pallet moves to the rear medial surface of rectangular recess.When sample tray moves to need above the hole, location of insertion, sample tray
The positioning head of lower section is by the 3rd electromagnet suction effect, and the positioning head bottom sample tray inserts this hole, location, in this hole, location
The second proximity switch send triggering signal.CPU receives triggering signal, it is judged that sample tray is successively inserted into use
The hole, location that family selects.Sample tray moves forward and backward in a liquid, without frictional dissipation, realizes being accurately positioned by hole, location.
The image information of camera collection rectangular recess, and it is sent to CPU, CPU is by figure
As processing the positional information obtaining sample tray, it is monitored when sample tray moves forward and backward, if sample tray does not move
Moving the surface positioning hole needing to insert, CPU adjusts sample carrier by the first electric magnet and the second electric magnet
The position of dish, it is simple to CPU adjusts the position of sample tray more accurately.
The locating piece at the place, hole, location that central processing unit controls sample tray inserts rotates a circle, and often horizontally rotates 30
Degree stops and detects a spectroscopic data.During detection spectroscopic data, the intensity curve of the detection light that radiation source sends first from 0 according to
Ramp maximum, then drop to 0 from maximum according to sine curve.Optical receiver detects the reflective light intensity received
Degree, and send it to CPU, after CPU carries out respective handling to detection data, it is judged that beef to be measured
Whether sample is splicing beef.
The principle of optical detection splicing beef: the beef lines of monoblock is naturally continuous, orderliness is clear, color and luster is unified, aqueous
Measuring close, therefore it is close with the reflection absorption spectrum signal of angle of incidence, can be as the foundation of detection.And splice meat
Although difference fragments are through arrangement, gluing and surface process, but the most discontinuous at meat lines in it, there is overall tomography,
Color and luster difference is relatively big, and water content is difficult to consistent, therefore can determine whether for splicing beef according to optical detecting method.
The present invention is that the incident illumination using light intensity to be continually changing irradiates sample, and the intensity at incident illumination is gradually big or reduces
Change procedure in, different groups are gradually big to the absorption of respective wavelength light or reduce, now at the degree of absorption of group
During unsaturation, saturated diminuendo, reflection light comprises more detection information, so that the detection signal arrived can be more
Symbolize whether beef is splicing accurately.
As preferably, described positioning head is flat, and the longitudinal section of described positioning head is inverted isosceles trapezoid, described fixed
The shape in hole, position and the form fit of positioning head, top, hole, described location is provided with the spigot surface of inclination.Hole, location is along from front to back
Direction is arranged, and the spigot surface of the left and right sides at top, hole, location play the guiding role, it is simple to positioning head inserts hole, location.
As preferably, the distance between medial wall, described rectangular recess left and right matches with the diameter of sample tray.Rectangle
Distance between medial wall, groove left and right is more bigger than the diameter of sample tray, makes sample tray be merely able to seesaw, it is ensured that fixed
The straight line upper direction that potential head is arranged in hole, location, it is simple to positioning head inserts hole, location.
As preferably, described light source control module includes function memory and power amplifier, described function memory defeated
Entering end to electrically connect with CPU, the outfan of described function memory electrically connects with the input of power amplifier, described
The outfan of power amplifier electrically connects with radiation source.The function information that function memory storage CPU sends, and
Control radiation source by power amplifier and send the detection light of varying strength.
As preferably, the hole, location that on described rectangular recess bottom surface, distance rectangular recess anteromedial surface is nearest is positioned at light transmitting-receiving
The underface of device.What distance rectangular recess anteromedial surface was nearest positions the hole initial alignment for sample tray, determining of foremost
The radius that distance is sample tray between hole, position and hole, rearmost location.
The method of a kind of quick detection splicing beef of the present invention, comprises the following steps:
S1: preparation lamellar beef sample, is placed on beef sample on sample tray, makes beef sample be centrally located at sample
The center of product pallet;
The instruction that S2: CPU is inputted by touch screen according to user, controls sample tray and inserts user's appointment
Hole, location;
The detection light that S3: CPU sends certain light intensity by light source control module control radiation source is radiated at
On beef sample, detect light intensity elder generation from 0 according to ramping maximum, then from maximum according to sine curve
Dropping to 0, optical receiver gathers reflected spectrum data Spect (t), the location that then central processing unit controls sample tray inserts
The first driving motor work below the locating piece of place, hole, first drives motor to control locating piece rotates 30 degree, makes sample tray
Horizontally rotating 30 degree, optical receiver gathers the spectroscopic data of now radiation source point of irradiation, so controls the rotation of sample tray level
Three-sixth turn, often horizontally rotates 30 degree of spectroscopic datas of detection that stop, thus gathers 12 diverse locations on beef sample
Spectroscopic data Spect (t);
Collect 12 spectroscopic datas Spect (t) are all carried out same data and process by S4: CPU, meter
Calculating 12 signal to noise ratio eigenvalues, the data carrying out each spectroscopic data Spect (t) process and comprise the following steps:
Use input signalAs input matrix, potential function V (x, t,
α) working in coordination with input signal is one layer of accidental resonance model:
Wherein, V (x, t, α) is potential function, and x (t) is Brownian Particles movement locus function, and t is movement time,For periodic sinusoidal signal, N (t) grasps noise in being, A is signal amplitude, and f is signal frequency, and D is outer making an uproar
Sound intensity, ξ (t) is outer noise,For phase place,
Calculate the V (x, t, α) first derivative, second dervative and three order derivatives for x (t), and make equation be equal to 0,
To two layers of accidental resonance model:
Set noise intensity D=0,Spect (t)=0, N (t)=0, it is calculated the marginal value of A
ForBy AcSubstitute in one layer of accidental resonance model, and set x0(t)=0, sn0=0, use quadravalence jade for asking rain lattice
One layer of accidental resonance model of storehouse tower Algorithm for Solving, obtains:
Wherein, undetermined coefficient:
(k1)n=a (α xn-1(t))2b(αxn-1(t))3+snn-1 (4)
Wherein, xnT () is the n order derivative of x (t), snnBeing the n order derivative of S (t) value at t=0, a, b are set normal
Number,
It is calculated x1(t), x2(t)…xn+1T the value of (), to x1(t), x2(t)…xn+1T () is integrated obtaining x (t),
And obtain the x (t) the double-deck stochastic resonance system generation resonance at one layer of accidental resonance model and two layers of accidental resonance model composition
The position x in momentmValue and xmCorresponding acceleration of motion α 1 corresponding for resonance moment t1 with t1 and corresponding with t1
Noise D1, D1 are a value in D,
Pass through formula , it is calculated signal to noise ratio eigenvalue SNRFeature,
Wherein, Δ U=a2/4b;
S5: calculate 12 signal to noise ratio eigenvalues are divided into four groups, by SNRFeature 3、SNRFeature 6、SNRFeature 9、SNRFeature 12Point
It it is first group, by SNRFeature 2、SNRFeature 4、SNRFeature 7、SNRFeature 11It is divided into second group, by SNRFeature 1And SNRFeature 5It is divided into the 3rd group, will
SNRFeature 8And SNRFeature 10It is divided into the 4th group, and calculates the signal to noise ratio meansigma methods of each group respectively, obtain SNRAverage 1、SNRAverage 2、
SNRAverage 3、SNRAverage 4,
Calculate error QE between each signal to noise ratio eigenvalue and signal to noise ratio meansigma methods of its corresponding groupj, j=
1 ..., 12;
Statistics meets QEjNumber M of the signal to noise ratio eigenvalue of≤2%1, statistics meets QEjThe signal to noise ratio eigenvalue of > 2%
Number M2;
S6: ifThen CPU judges that this beef sample is not splicing beef, ifThen CPU judges that this beef sample is splicing beef, otherwise jumps to step S3, to beef sample
Re-start detection.
As preferably, described step S2 comprises the following steps:
S21: central processing unit controls the first work of electromagnet, sample tray is arrived by the first electromagnet suction action
At rectangular recess anteromedial surface, the first proximity switch sends triggering signal;
S22: CPU receives the triggering signal that the first proximity switch sends, and controls the first electric magnet and stops work
Making, the 3rd work of electromagnet bottom hole, location that command range rectangular recess anteromedial surface is nearest, the 3rd electric magnet produces to be inhaled
Power, the positioning head bottom sample tray is inserted this hole, location by the suction of the 3rd electric magnet, and second in this hole, location connects
Nearly switch sends triggering signal;
S23: CPU receives the triggering signal that the second proximity switch sends, it is judged that sample tray is positioned to
Merit, now the central point of sample tray is positioned at the underface of optical transceiver;
S24: CPU reads user and determines that sample tray needs that inserts to determine by the instruction that touch screen inputs
Hole site, position;
The 3rd electric magnet bottom hole, location that S25: central processing unit controls distance rectangular recess anteromedial surface is nearest
Quitting work, sample tray is floated by buoyancy, and the positioning head bottom sample tray leaves hole, location;
S26: central processing unit controls the second electric magnet and sample tray need that inserts to position the 3rd bottom hole
Work of electromagnet, the positioning head bottom sample tray inserts this hole, location, and the second proximity switch in this hole, location sends triggering
Signal.
The substantial effect of the present invention is: (1) can quickly, easy, detect whether beef is splicing beef exactly.
(2) sample tray moves forward and backward in a liquid, without frictional dissipation, realizes being accurately positioned by hole, location.
Accompanying drawing explanation
Fig. 1 is a kind of structural representation of the present invention;
Fig. 2 is the structural representation of rectangular recess;
Fig. 3 is the structural representation of rectangular recess and sample tray;
Fig. 4 is the sectional view of Fig. 3;
Fig. 5 is the structural representation in hole, location;
Fig. 6 is that the circuit theory of the present invention connects block diagram;
The light intensity curve figure of the detection light that when Fig. 7 is detection, radiation source sends.
In figure: 1, CPU, 2, touch screen, 3, light source control module, 4, base, 5, monitor station, 6, rectangle recessed
Groove, 7, sample tray, the 8, first permanent magnet, the 9, second permanent magnet, 10, locating dowel, 11, positioning head, the 12, first electric magnet, 13,
Second electric magnet, 14, locating piece, 15, first drives motor, and 16, hole, location, the 17, the 3rd electric magnet, the 18, first proximity switch,
19, optical transceiver, 20, radiation source, 21, optical receiver, 22, elevating mechanism, 23, spigot surface, 24, function memory, 25, merit
Electric discharge road, 26, photographic head, 27, transverse link, 28, longitudinal rod, 29, screw mandrel, 30, support bar, 31, thread bush, 32, sleeve pipe,
33, the second proximity switch.
Detailed description of the invention
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
Embodiment: the system of a kind of quick detection splicing beef of the present embodiment, as shown in Figure 1, Figure 2, Figure 3, Figure 4, bag
Including controller and testing agency, controller includes CPU 1, touch screen 2 and light source control module 3, and testing agency wraps
Including base 4, base 4 is provided with monitor station 5, is provided with rectangular recess 6, stores liquid, liquid in rectangular recess 6 in the middle part of monitor station 5
Body is provided with rounded sample tray 7, and the front-end and back-end of sample tray 7 are respectively equipped with the first permanent magnet and the second permanent magnetism
Body, is provided with locating dowel 10 bottom sample tray 7, be provided with positioning head 11 bottom locating dowel 10, and positioning head 11 is by ferrimagnet system
Becoming, the anteromedial surface of rectangular recess 6 is provided with the first electric magnet 12 and the first proximity switch 18, and the rear medial surface of rectangular recess 6 sets
Having the second electric magnet 13, the bottom surface of rectangular recess 6 is provided with seven locating pieces 14, is provided with driving locating piece 14 turns below locating piece 14
The first dynamic driving motor 15, locating piece 14 is provided with and coordinates and limit the hole, location that positioning head 11 is freely rotatable with positioning head 11
16, the hole, location 16 on seven locating pieces 14 is arranged in a linear from front to back, and location is provided with the 3rd electric magnet 17 He bottom hole 16
Second proximity switch 33, sample tray 7 is arranged over optical transceiver 19, and optical transceiver 19 includes radiation source 20 and optical receiver
21, base 4 is additionally provided with the elevating mechanism 22 driving optical transceiver 19 to move up and down.
As shown in Figure 6, light source control module 3 includes function memory 24 and power amplifier 25, also sets above rectangular recess 6
Having a photographic head 26, photographic head 26 is connected with elevating mechanism 22 by connector, CPU 1 respectively with touch screen 2, first
Electric magnet the 12, second electric magnet the 13, the 3rd electric magnet the 17, first proximity switch the 18, second proximity switch 33, first drives motor
15, the input electrical connection of optical receiver 21, elevating mechanism 22, photographic head 26, function memory 24, function memory 24 defeated
Going out end to electrically connect with the input of power amplifier 25, the outfan of power amplifier 25 electrically connects with radiation source 20.
Elevating mechanism 22 includes transverse link 27, longitudinal rod 28, screw mandrel 29, support bar 30 and drives screw mandrel 29 to rotate
The second driving motor, screw mandrel 29 and support bar 30 be vertically arranged on base 4, and transverse link 27 one end is provided with and is set in screw mandrel
Thread bush 31 on 29 and the sleeve pipe 32 being set on support bar 30, described transverse link 27 other end and longitudinal rod 28
Top is connected, and described optical transceiver 19 is arranged on the bottom of longitudinal rod 28, the direction of illumination of radiation source 20 straight down, the
Two drive motor to electrically connect with CPU 1.CPU 1 can adjust optical transceiver 29 by elevating mechanism 22
Upper-lower position, to meet actually detected demand.
Positioning head 11 is in flat, and the longitudinal section of positioning head 11 is inverted isosceles trapezoid, and the shape in hole 16, location is with fixed
The form fit of potential head 11, as it is shown in figure 5, top, hole 16, location is respectively arranged on the left side and the right side the spigot surface 23 of inclination.Hole, location
16 are arranged along direction from front to back, and the spigot surface 23 of the left and right sides, top, hole 16, location play the guiding role, it is simple to positioning head 11 is inserted
Enter to position hole 16.
Distance between rectangular recess about 6 medial wall matches with the diameter of sample tray 7.In rectangular recess about 6
Distance 2cm bigger than the diameter of sample tray 7 between sidewall, makes sample tray 7 be merely able to seesaw, it is ensured that positioning head 11 exists
The straight line upper direction that hole 16, location is arranged in, it is simple to positioning head 11 inserts hole 16, location.
The hole 16, location that on rectangular recess 6 bottom surface, distance rectangular recess 6 anteromedial surface is nearest is just being positioned at optical transceiver 19
Lower section.What distance rectangular recess 6 anteromedial surface was nearest positions the hole 16 initial alignment for sample tray 7, the location of foremost
The radius that distance is sample tray 7 between hole 16 and hole, rearmost location 16.
Sample tray 7 includes rounded chassis and the annular sidewall being connected with chassis outer rim, the first permanent magnet and
Two permanent magnets are embedded in the front-end and back-end of annular sidewall respectively, and tray bottom is provided with downwardly projecting projection, and projection is spherical crown
Shape, locating dowel 10 is arranged on the bottom of projection.Projection is spherical, make sample tray 7 can the most in a liquid on float downward
Dynamic, chassis is used for placing beef sample to be measured, and annular sidewall can prevent on the beef sample to be measured that liquid splashes on chassis.
Function memory 24 stores the function information that CPU 1 sends, and controls to irradiate by power amplifier 25
Light source 20 sends the detection light of varying strength.Photographic head 26 gathers the image information of rectangular recess 6, and it is single to be sent to centre reason
Unit 1, CPU 1 obtains the positional information of sample tray 7 by image procossing, enters when sample tray 7 moves forward and backward
Row monitoring, if sample tray 7 does not move to need the surface in the hole 16, location inserted, CPU 1 is by the
One electric magnet 12 and the second electric magnet 13 adjust the position of sample tray 7, it is simple to CPU 1 adjusts sample more accurately
The position of pallet 7.Radiation source 20 is Halogen light.
During detection, beef sample to be measured is placed on sample tray 7, makes beef sample be centrally located at sample tray 7
Center.
CPU 1 controls the first electric magnet 12 and works, and the first electric magnet 12 produces suction, on sample tray 7
First permanent magnet is by the first electric magnet 12 suction, and sample tray 7 moves to the anteromedial surface of rectangular recess 6, and simultaneously first
Permanent magnet just to the first electric magnet 12, is calibrated the position of positioning head 11, it is ensured that positioning head 11 is inserted into location by suction
Hole 16.Distance between rectangular recess about 6 medial wall is more bigger than the diameter of sample tray 7, before and after making sample tray 7 be merely able to
Motion, it is ensured that the straight line upper direction that positioning head 11 is arranged in hole 16, location, it is simple to positioning head 11 inserts hole 16, location.Work as sample
When product pallet 7 contacts with rectangular recess 6 anteromedial surface, (now, positioning head 11 is positioned at apart from rectangular recess 6 anteromedial surface nearest
The surface in hole 16, location), the first proximity switch 18 sends triggering signal, and CPU 1 receives first close to opening
Close the 18 triggering signals sent, control the first electric magnet 12 and quit work, nearest the determining of command range rectangular recess 6 anteromedial surface
The 3rd electric magnet 17 bottom hole 16, position works, and the 3rd electric magnet 17 produces suction, and the positioning head 11 bottom sample tray 7 is by the
The suction of three electric magnet 17 inserts this hole, location 16, and the second proximity switch 33 in this hole, location 16 sends triggering signal.
CPU 1 receives the triggering signal that the second proximity switch 33 sends, it is judged that sample tray 7 positions successfully, this up-to-date style
The central point of product pallet 7 is positioned at the underface of optical transceiver 19.
User can select sample tray 7 to need the position, hole, location 16 inserted by touch screen 2.CPU 1 is controlled
The 3rd electric magnet 17 bottom hole 16, location that system distance rectangular recess 6 anteromedial surface is nearest quits work, and sample tray 7 is by floating
Power effect floats, and the positioning head 11 bottom sample tray 7 leaves hole 16, location.CPU 1 controls the second electric magnet 13
And sample tray 7 needs the 3rd electric magnet 17 bottom the hole 16, location inserted to work, the second permanent magnet on sample tray 7
By the second electric magnet 13 suction, sample tray 7 moves to the rear medial surface of rectangular recess 6.When sample tray 7 moves to need
Time above hole, location 16 to be inserted, the positioning head 11 below sample tray 7 is by the 3rd electric magnet 13 suction, sample tray
Positioning head 11 bottom 7 inserts this hole, location 16, and the second proximity switch 33 in this hole, location 16 sends triggering signal.Centre
Reason unit 1 receives triggering signal, it is judged that sample tray 7 is successively inserted into the hole, location 16 that user selects.Sample tray 7 is at liquid
In movable, without frictional dissipation, be accurately positioned by the realization of hole 16, location.
CPU 1 controls the locating piece 14 at the place, hole 16, location that sample tray 7 inserts and rotates a circle, every level
Rotate 30 degree of spectroscopic datas of detection that stop.During detection spectroscopic data, the intensity curve of the detection light that radiation source 20 sends
First from 0 according to ramping maximum, then drop to 0 from maximum according to sine curve, as shown in Figure 7.Optical receiver
21 detect the intensity of reflected light curve received, and send it to CPU 1, and CPU 1 is to detection number
After carrying out respective handling, it is judged that whether beef sample to be measured is splicing beef.
The principle of optical detection splicing beef: the beef lines of monoblock is naturally continuous, orderliness is clear, color and luster is unified, aqueous
Measuring close, therefore it is close with the reflection absorption spectrum signal of angle of incidence, can be as the foundation of detection.And splice meat
Although difference fragments are through arrangement, gluing and surface process, but the most discontinuous at meat lines in it, there is overall tomography,
Color and luster difference is relatively big, and water content is difficult to consistent, therefore can determine whether for splicing beef according to optical detecting method.
The present invention is that the incident illumination using light intensity to be continually changing irradiates sample, and the intensity at incident illumination is gradually big or reduces
Change procedure in, different groups are gradually big to the absorption of respective wavelength light or reduce, now at the degree of absorption of group
During unsaturation, saturated diminuendo, reflection light comprises more detection information, so that the detection signal arrived can be more
Symbolize whether beef is splicing accurately.
The method of a kind of quick detection splicing beef of the present embodiment, it is adaptable to above-mentioned a kind of quickly detection splicing beef
System, comprise the following steps:
S1: prepare the beef sample that thickness is 7mm-8mm, beef sample is placed on sample tray, makes beef sample
It is centrally located at the center of sample tray;
The instruction that S2: CPU is inputted by touch screen according to user, controls sample tray and inserts user's appointment
Hole, location;
The detection light that S3: CPU sends certain light intensity by light source control module control radiation source is radiated at
On beef sample, detect light intensity elder generation from 0 according to ramping maximum, then from maximum according to sine curve
Dropping to 0, optical receiver gathers reflected spectrum data Spect (t), the location that then central processing unit controls sample tray inserts
The first driving motor work below the locating piece of place, hole, first drives motor to control locating piece rotates 30 degree, makes sample tray
Horizontally rotating 30 degree, optical receiver gathers the spectroscopic data of now radiation source point of irradiation, so controls the rotation of sample tray level
Three-sixth turn, often horizontally rotates 30 degree of spectroscopic datas of detection that stop, thus gathers 12 diverse locations on beef sample
Spectroscopic data Spect (t);
Collect 12 spectroscopic datas Spect (t) are all carried out same data and process by S4: CPU, meter
Calculating 12 signal to noise ratio eigenvalues, the data carrying out each spectroscopic data Spect (t) process and comprise the following steps:
Use input signalAs input matrix,
Under adiabatic approximation condition, it is assumed that signal amplitude minimum (A < < 1), bistable system drives not having enough energy
In the case of Dong, Brownian movement particle is offset in the potential well of side, and the signal period is than the system relaxation time in some typical case's potential wells
To be grown many, the now appearance of cyclic drive power makes potential function run-off the straight, ultimately results in Brownian movement particle from a gesture
Trap is to the transition of another one potential well, and therefore potential function V (x, t, α) and input signal are worked in coordination with is one layer of accidental resonance model:
Wherein, V (x, t, α) is potential function, and x (t) is Brownian Particles movement locus function, and t is movement time,For periodic sinusoidal signal, N (t) grasps noise in being, A is signal amplitude, and f is signal frequency, and D is outer noise
Intensity, ξ (t) is outer noise,For phase place,
Calculate the V (x, t, α) first derivative, second dervative and three order derivatives for x (t), and make equation be equal to 0,
To two layers of accidental resonance model:
Set noise intensity D=0,Spect (t)=0, N (t)=0, it is calculated the marginal value of A
ForAt A < AcIn the case of, Brownian movement particle is hovered about its home position, can not be real
Transition between existing two potential wells, but particle is in the case of obtaining the intervention of outer noise, even if A is < AcIt also can complete gesture
Transition between trap, here it is the generating process of accidental resonance, by AcSubstitute in one layer of accidental resonance model, and set x0(t)=
0, sn0=0, use quadravalence one layer of accidental resonance model of jade for asking rain Ge Kuta Algorithm for Solving, obtain:
Wherein, undetermined coefficient:
(k1)n=a (α xn-1(t))2b(αxn-1(t))3+snn-1 (4)
Wherein, xnT () is the n order derivative of x (t), snnBeing the n order derivative of S (t) value at t=0, a, b are set normal
Number,
It is calculated x1(t), x2(t)…xn+1T the value of (), to x1(t), x2(t)…xn+1T () is integrated obtaining x (t),
And obtain the x (t) the double-deck stochastic resonance system generation resonance at one layer of accidental resonance model and two layers of accidental resonance model composition
The position x in momentmValue and xmCorresponding acceleration of motion α 1 corresponding for resonance moment t1 with t1 and corresponding with t1
Noise D1, D1 are a value in D,
Pass through formula , it is calculated signal to noise ratio eigenvalue SNRFeature, its
In, Δ U=a2/4b;
S5: calculate 12 signal to noise ratio eigenvalues are divided into four groups, by SNRFeature 3、SNRFeature 6、SNRFeature 9、SNRFeature 12Point
It it is first group, by SNRFeature 2、SNRFeature 4、SNRFeature 7、SNRFeature 11It is divided into second group, by SNRFeature 1And SNRFeature 5It is divided into the 3rd group, will
SNRFeature 8And SNRFeature 10It is divided into the 4th group, and calculates the signal to noise ratio meansigma methods of each group respectively, obtain SNRAverage 1、SNRAverage 2、
SNRAverage 3、SNRAverage 4,
Calculate error QE between each signal to noise ratio eigenvalue and signal to noise ratio meansigma methods of its corresponding groupj, j=
1 ..., 12;
Statistics meets QEjNumber M of the signal to noise ratio eigenvalue of≤2%1, statistics meets QEjThe signal to noise ratio eigenvalue of > 2%
Number M2;
S6: ifThen CPU judges that this beef sample is not splicing beef, ifThen CPU judges that this beef sample is splicing beef, otherwise jumps to step S3, to beef sample
Re-start detection.
Light intensity elder generation according to ramping maximum, then drops to 0 from maximum according to sine curve from 0
It is the beef sample of 7mm-8mm that detection light is suitable for detecting thickness.In step S6, ifWithTwo
Formula is all false, then can control sample tray and insert the location hole adjacent with this hole, location, then jump to step S3 pair
Beef sample re-starts detection.
Step S2 comprises the following steps:
S21: central processing unit controls the first work of electromagnet, sample tray is arrived by the first electromagnet suction action
At rectangular recess anteromedial surface, the first proximity switch sends triggering signal;
S22: CPU receives the triggering signal that the first proximity switch sends, and controls the first electric magnet and stops work
Making, the 3rd work of electromagnet bottom hole, location that command range rectangular recess anteromedial surface is nearest, the 3rd electric magnet produces to be inhaled
Power, the positioning head bottom sample tray is inserted this hole, location by the suction of the 3rd electric magnet, and second in this hole, location connects
Nearly switch sends triggering signal;
S23: CPU receives the triggering signal that the second proximity switch sends, it is judged that sample tray is positioned to
Merit, now the central point of sample tray is positioned at the underface of optical transceiver;
S24: CPU reads user and determines that sample tray needs that inserts to determine by the instruction that touch screen inputs
Hole site, position;
The 3rd electric magnet bottom hole, location that S25: central processing unit controls distance rectangular recess anteromedial surface is nearest
Quitting work, sample tray is floated by buoyancy, and the positioning head bottom sample tray leaves hole, location;
S26: central processing unit controls the second electric magnet and sample tray need that inserts to position the 3rd bottom hole
Work of electromagnet, above the hole, location that sample tray is moved to need to insert by the second electromagnet suction effect, at the bottom of sample tray
The positioning head in portion is inserted this hole, location by the 3rd electromagnet suction effect, and the second proximity switch in this hole, location sends triggering letter
Number.The image information of camera collection rectangular recess, and it is sent to CPU, CPU passes through image procossing
Obtain the positional information of sample tray, if sample tray is moved rearwards by excessively by the second electromagnet suction effect, move to need
The rear in hole, location to be inserted, CPU adjusts the position of sample tray by the first electric magnet and the second electric magnet
Put, make sample tray be maintained at the surface positioning hole needing to insert.
In the present embodiment, QE is met through detectionjNumber M of the signal to noise ratio eigenvalue of≤2%1=1, statistics meets QEj
The number of the signal to noise ratio eigenvalue of > 2% is M2=11,Judge that beef sample is splicing beef.