The content of the invention
In order to solve the above problems, the invention provides a kind of control method based on image procossing, can receive
When allowing right of way signal and personnel by signal and receiving the closed mode that on off state detection device is sent, regulating gate
Mechanism quickly opens, for receiving disabled user's signal and personnel by signal and receiving on off state detection device
During the open mode sent, the quick closedown of regulating gate mechanism.
According to an aspect of the present invention, there is provided a kind of control method based on image procossing, this method include:
1) a kind of gate self-controlled platform based on image procossing is provided, including knife switch, audio alert equipment, luminous is set
Standby, gate mechanism, crash detection device and main control device, the main control device respectively with the knife switch, the voice reporting
Alert equipment, the luminaire and crash detection device connection, the knife switch are connected with the gate mechanism, are used
In controlling opening or closing for the gate mechanism, the crash detection device is arranged on the gate mechanism, for detecting
It whether there is collision behavior on the gate mechanism, when collision behavior being present, sending collision generation signal, otherwise, sending
Collisionless signal;
Wherein, the main control device is when receiving the collision generation signal, respectively to the audio alert equipment and
The luminaire sends warning drive signal;
2) self-controlled platform is run.
More specifically, in the gate self-controlled platform based on image procossing:The crash detection device includes pressure
Sensor and AT89C51 control chips, the pressure sensor are arranged on the gate mechanism, for detecting and exporting in institute
State caused impact force numerical value on gate mechanism;
Wherein, the AT89C51 control chips are connected with the pressure sensor, in the impact force numerical value received
During more than or equal to default dynamics threshold value, collision generation signal is sent, is less than default dynamics threshold value in the impact force numerical value received
When, send collisionless signal.
More specifically, in the gate self-controlled platform based on image procossing, in addition to:FLASH storage devices, set
Inside gate mechanism, it is connected with the AT89C51 control chips of the crash detection device, for prestoring the pre set force
Spend threshold value.
More specifically, in the gate self-controlled platform based on image procossing, in addition to:Right of access control device,
Including neck, information read device and privilege analysis equipment, the neck is used for passenger and places visa card, and described information is read
Equipment is used to be read out the information on the visa card to obtain passenger's information, the privilege analysis equipment and the letter
Breath reads equipment connection, for being verified to passenger's information, and when being verified, sends permission right of way signal,
Otherwise, disabled user's signal is sent.
More specifically, in the gate self-controlled platform based on image procossing, in addition to:
On off state detection device, it is arranged on the gate mechanism, the state current for detecting the gate mechanism
It is open mode or closed mode;
Image capture device, it is arranged in front of the knife switch, and to the distance for waiting in line line and arrives the gate
The distance of switch is equal, for the scene waited in line among line and the knife switch is carried out view data capture with
Export mid-scene image;
Signal analysis equipment, for receiving mid-scene image, the pixel of each pixel based on mid-scene image
Value determines the mean square deviation of mid-scene image pixel value to be exported as target mean square error;
Noise analysis equipment, for receiving mid-scene image, noise analysis is carried out to mid-scene image, to be made an uproar
The maximum main noise signal of acoustic amplitude and the big secondary noise signal of noise amplitude time, based on main noise signal, secondary noise signal with
And mid-scene image determines the signal to noise ratio of mid-scene image to be exported as target signal to noise ratio;
Filtering switching equipment, is connected with signal analysis equipment and noise analysis equipment respectively, square for receiving target
Difference and target signal to noise ratio, and target signal to noise ratio be less than or equal to default snr threshold and target mean square error be more than or equal to it is default equal
During variance threshold values, the first switching signal is sent, is less than or equal to default snr threshold in target signal to noise ratio and target mean square error is small
When default mean deviation threshold, the second switching signal is sent, is more than default snr threshold in target signal to noise ratio and target is square
When difference is more than or equal to default mean deviation threshold, the 3rd switching signal is sent, is also more than default snr threshold in target signal to noise ratio
And target mean square error sends the 4th switching signal when being less than default mean deviation threshold;
Kalman filtering equipment, it is connected with filtering switching equipment, for when receiving four switching signals, to intermediate field
Scape image carries out Kalman filtering processing to obtain target filtering image;
Adaptive wavelet filter apparatus, it is connected with filtering switching equipment, for when receiving the first switching signal, centering
Between scene image carry out adaptive wavelet filtering process to obtain wavelet filtering image, and wavelet filtering image is sent to adaptive
Answer medium filtering equipment;It is additionally operable to when receiving three switching signals, adaptive wavelet filtering is carried out to mid-scene image
Handle to directly obtain target filtering image;
Adaptive median filter equipment, be connected with filtering switching equipment, for when receiving the first switching signal, from oneself
Adapt to receive wavelet filtering image at wavelet filtering equipment, adaptive median filter processing is carried out to wavelet filtering image to obtain
Target filtering image;It is additionally operable to when receiving the second switching signal, mid-scene image is carried out at adaptive median filter
Manage to directly obtain target filtering image;
Target identification equipment, with Kalman filtering equipment, adaptive wavelet filter apparatus and adaptive median filter equipment
Connect respectively, for receiving target filtering image, human body target identification is carried out to target filtering image, and recognizing human body mesh
Timestamp, the personnel of sending pass through signal;
Exception control equipment, respectively with the on off state detection device, the target identification equipment and the gate
Mechanism connects, for receiving the permission right of way signal and the personnel by signal and receiving the on off state
During the closed mode that detection device is sent, regulating gate mechanism quickly opens, for receive disabled user's signal with
And the personnel, by signal and when receiving the open mode that the on off state detection device is sent, regulating gate mechanism is fast
Speed is closed;
Wherein, the adaptive median filter processing that adaptive median filter equipment performs includes:For the image received
Each pixel, use various filter windows the pixel is carried out centered on the pixel corresponding to various block of pixels obtain
Take, determine the gray value variance in each block of pixels, select the minimum corresponding filter window of gray value variance to be filtered as target
Ripple window carries out medium filtering to obtain its filtered pixel value to the pixel value of the pixel, all pictures based on the image received
The filtered pixel value of element obtains the filtering image of adaptive median filter equipment output;
Wherein, the adaptive wavelet filtering process that adaptive wavelet filter apparatus performs includes:The image received is entered
Row wavelet decomposition determines the average of HH subbands, based on the mean value computation wavelet shrinkage to obtain tetra- subbands of LL, LH, HL and HH
Optimal threshold, the wavelet reconstruction that optimal threshold based on wavelet shrinkage carries out image is defeated to obtain adaptive wavelet filtering equipment
The filtering image gone out;
Wherein, the knife switch is also connected with the right of access control device, for described allowing to lead to receiving
During row signal, control the gate mechanism to open, when receiving disabled user's signal, control the gate mechanism to close
Close.
More specifically, in the gate self-controlled platform based on image procossing:
Kalman filtering equipment enters mode of operation when receiving four switching signals, from battery saving mode, is receiving
When the first switching signal, the second switching signal or three switching signals, enter battery saving mode from mode of operation;
Adaptive wavelet filter apparatus enters when receiving the first switching signal or three switching signals from battery saving mode
Mode of operation, when receiving the second switching signal or four switching signals, enter battery saving mode from mode of operation;
Adaptive median filter equipment enters when receiving the first switching signal or the second switching signal from battery saving mode
Mode of operation, when receiving the 3rd switching signal or four switching signals, enter battery saving mode from mode of operation.
More specifically, in the gate self-controlled platform based on image procossing:The knife switch opens the gate
The speed of mechanism is slower than the speed that the exception control equipment opens the gate mechanism;The knife switch closes the gate
The speed of mechanism is slower than the speed that the exception control equipment closes the gate mechanism.
More specifically, in the gate self-controlled platform based on image procossing:The audio alert equipment includes voice
Chip and two-way speaker are played, the speech play chip is connected with the two-way speaker, for receiving
When stating warning drive signal, corresponding audio alert file is played by the two-way speaker.
More specifically, in the gate self-controlled platform based on image procossing:The luminaire receive it is described
During warning drive signal, feux rouges is sent with preset emission frequency to be alarmed.
Embodiment
Embodiment of the present invention is described in detail below with reference to accompanying drawings.
The element of gate includes casing, blocks body, movement, control module and supplementary module.
Casing is used to protect the internal parts such as movement, control module, and plays a supporting role.
The stainless steel of the main material generally use 304 or 316 of casing, secondary material include lucite, safety glass,
Resin, stone material or timber etc..Selection need to typically consider it is firm, attractive in appearance, be unlikely to deform, scratch resistant scratch, rust resistance and corrosion resistance, be easier to
Processing is fixed.
Block body be used for do not allow pedestrian by when serve and block, it is allowed to pedestrian by when can open clearance.
Realized in the form of typically by door or blocking bar.
Blocking the selection of body need to typically consider firm, can bear certain impulsive force, but the impulsive force of itself can not to people
There is injury, weight is as far as possible small, attractive in appearance, rust resistance and corrosion resistance, fixation easy to process, is not hurted sb.'s feelings after damage.
The entirety (including motor, reductor etc.) that movement is made up of various mechanical parts, utilize mechanical original
The opening and closing action of body is blocked in reason control.
Influenceing the key factor of movement performance and used life includes the processing technology and material of mechanical part, and most heavy
The motor wanted and the reductor to match.
Motor generally use brush direct current motor or DC brushless motor.Brush direct current motor cost is relatively low, control
Technical comparing is simple, therefore widely used by inner gate manufacturer of state, but carbon brush therein belongs to easy wearing detail, it is necessary to periodic maintenance
And replacing.DC brushless motor is non-carbonate, also longer in the absence of this loss, service life.If it is desired to improve the performance of movement
And service life, then using the DC brushless motor that performance is more preferable, service life is longer it is good selection, it is especially European
The DC brushless motor of one line brand, its reliability and durability are all that common electric machine is unable to reach, but cost is very high, control
Technology processed is also very complicated.
Control module is that the control of various electric components and motor is realized using microprocessor technology.
Microprocessor typically uses single-chip microcomputer, but if control system is more complicated, or needs and a lot of other systems
When (including ticketing system, gate control system etc.) integrates, and to response time requirement it is very high in the case of, it is necessary to using performance more
High arm processor even Cortex processors.
Simple control circuit typically can be achieved by master control borad, motor control panel and auxiliary control panel, complicated control circuit
Need to configure special industrial computer to realize if (such as underground ticket checking machine).
Supplementary module include LED indicating modules, counting module, pedestrian detection module, alarm module, authority input module,
Voice cue module etc..
LED indicating modules:Typically it is made up of LED dot matrix or LED display, for indicating prevailing state and the side of gate
To some is also comprising prompt messages and welcome message etc. such as word or patterns.
Counting module:For recording current number, can be shown by LED charactrons or display screen, can reset and
Count upper-limit is set.
Pedestrian detection module:For identifying the prevailing state of pedestrian, judge that whether legal pedestrian is current, and may determine that
Whether pedestrian is in blocking in body range of movement, to protect the personal safety of pedestrian.The performance of detection module is very crucial, influences
To the validity and security of gate, mainly by hardware, the two factors of -- sensor and software -- recognizer determine.Sensing
Device typically uses Photoelectric infrared switch (relatively common) or infrared light curtain, and Photoelectric infrared switch is divided into the correlation used in pairs again
(relatively common) and used aloned it is reflective;High-end gate can use 10 pairs with upper inlet Photoelectric infrared switch, special occasions
High-performance infrared light curtain or other special sensors can be used.Other recognizer is also critically important, height, the step of different pedestrians
Different away from, speed, it is also varied to carry size and the position of luggage, it is contemplated that more people continue through fore-and-aft clearance
(anti-trailing), some occasions are also contemplated that the current situation of cycling, and high-end gate manufacturer typically can be according to substantial amounts of experiment
Data establish corresponding mathematical modeling, self-developing recognizer, can effectively identify that pedestrian, luggage and bicycle etc. are common
Current target, and anti-following distance can reach within 20mm, and the index depends on sensor accuracy of identification and algorithm simultaneously,
The common anti-following distance of gate can only achieve 100mm.
Alarm module:Gate can trigger alarm under various non-normal use situations, for prompting or alerting pedestrian, management
Person and maintenance person, these situations include illegal current, gate exception, power-on self-test etc., and it is (relatively more normal that type of alarm includes buzzing
See), light, voice etc. (use can be integrated).
Authority input module:Pedestrian needs to allow gate " to know " oneself whether possess legal current power before current
Limit, i.e., " input " authority and allow gate to judge whether to let pass.Input mode has many kinds, such as the non-contact IC card side of swiping the card
Formula, bio-identification, input password, coin etc., simply have direct button to pass through.The module typically with gate control system or ticketing service system
System is combined.In the occasion having free passage then without this module.
Voice cue module:Here voice message is different from the audio alert in alarm module above, mainly uses
In the related information of aid prompting pedestrian, the type of the current admission ticket of such as prompting, welcome message.The module it is less conventional, it is necessary to
User customizes to manufacturer.
Current sluice control system is perfect not enough, and in certain extreme cases, people still are able in the feelings do not swiped the card
Smoothly passed through under condition, this violates the wish of gate design person.In order to overcome above-mentioned deficiency, the present invention has built a kind of based on figure
As the control method of processing, for solving above-mentioned technical problem.
The present invention provides a kind of control method based on image procossing, and this method includes:1) provide a kind of based at image
The gate self-controlled platform of reason;2) self-controlled platform is run.Fig. 1 is based on image procossing according to embodiment of the present invention
Gate self-controlled platform block diagram, the platform include knife switch, audio alert equipment, luminaire, gate machine
Structure, crash detection device and main control device, the main control device respectively with the knife switch, the audio alert equipment, institute
Luminaire and crash detection device connection are stated, the knife switch is connected with the gate mechanism, for controlling
Opening or closing for gate mechanism is stated, the crash detection device is arranged on the gate mechanism, for detecting in the lock
It whether there is collision behavior in door mechanism, when collision behavior be present, sending collision generation signal, otherwise, sending collisionless letter
Number;
Wherein, the main control device is when receiving the collision generation signal, respectively to the audio alert equipment and
The luminaire sends warning drive signal.
Then, continue to carry out further the concrete structure of the gate self-controlled platform based on image procossing of the present invention
It is bright.
In the gate self-controlled platform based on image procossing:
The crash detection device includes pressure sensor and AT89C51 control chips, and the pressure sensor is arranged on
On the gate mechanism, for detecting and exporting the caused impact force numerical value on the gate mechanism;
Wherein, the AT89C51 control chips are connected with the pressure sensor, in the impact force numerical value received
During more than or equal to default dynamics threshold value, collision generation signal is sent, is less than default dynamics threshold value in the impact force numerical value received
When, send collisionless signal.
In the gate self-controlled platform based on image procossing, in addition to:
FLASH storage devices, are arranged on inside gate mechanism, the AT89C51 control chips with the crash detection device
Connection, for prestoring the default dynamics threshold value.
In the gate self-controlled platform based on image procossing, in addition to:
Right of access control device, including neck, information read device and privilege analysis equipment, the neck are used to pass through
Person places visa card, and described information reads equipment and is used to be read out the information on the visa card to obtain passenger's letter
Breath, the privilege analysis equipment read equipment with described information and are connected, for being verified to passenger's information, and testing
When card passes through, permission right of way signal is sent, otherwise, sends disabled user's signal.
In the gate self-controlled platform based on image procossing, in addition to:
On off state detection device, it is arranged on the gate mechanism, the state current for detecting the gate mechanism
It is open mode or closed mode;
Image capture device, it is arranged in front of the knife switch, and to the distance for waiting in line line and arrives the gate
The distance of switch is equal, for the scene waited in line among line and the knife switch is carried out view data capture with
Export mid-scene image;
Signal analysis equipment, for receiving mid-scene image, the pixel of each pixel based on mid-scene image
Value determines the mean square deviation of mid-scene image pixel value to be exported as target mean square error;
Noise analysis equipment, for receiving mid-scene image, noise analysis is carried out to mid-scene image, to be made an uproar
The maximum main noise signal of acoustic amplitude and the big secondary noise signal of noise amplitude time, based on main noise signal, secondary noise signal with
And mid-scene image determines the signal to noise ratio of mid-scene image to be exported as target signal to noise ratio;
Filtering switching equipment, is connected with signal analysis equipment and noise analysis equipment respectively, square for receiving target
Difference and target signal to noise ratio, and target signal to noise ratio be less than or equal to default snr threshold and target mean square error be more than or equal to it is default equal
During variance threshold values, the first switching signal is sent, is less than or equal to default snr threshold in target signal to noise ratio and target mean square error is small
When default mean deviation threshold, the second switching signal is sent, is more than default snr threshold in target signal to noise ratio and target is square
When difference is more than or equal to default mean deviation threshold, the 3rd switching signal is sent, is also more than default snr threshold in target signal to noise ratio
And target mean square error sends the 4th switching signal when being less than default mean deviation threshold;
Kalman filtering equipment, it is connected with filtering switching equipment, for when receiving four switching signals, to intermediate field
Scape image carries out Kalman filtering processing to obtain target filtering image;
Adaptive wavelet filter apparatus, it is connected with filtering switching equipment, for when receiving the first switching signal, centering
Between scene image carry out adaptive wavelet filtering process to obtain wavelet filtering image, and wavelet filtering image is sent to adaptive
Answer medium filtering equipment;It is additionally operable to when receiving three switching signals, adaptive wavelet filtering is carried out to mid-scene image
Handle to directly obtain target filtering image;
Adaptive median filter equipment, be connected with filtering switching equipment, for when receiving the first switching signal, from oneself
Adapt to receive wavelet filtering image at wavelet filtering equipment, adaptive median filter processing is carried out to wavelet filtering image to obtain
Target filtering image;It is additionally operable to when receiving the second switching signal, mid-scene image is carried out at adaptive median filter
Manage to directly obtain target filtering image;
Target identification equipment, with Kalman filtering equipment, adaptive wavelet filter apparatus and adaptive median filter equipment
Connect respectively, for receiving target filtering image, human body target identification is carried out to target filtering image, and recognizing human body mesh
Timestamp, the personnel of sending pass through signal;
Exception control equipment, respectively with the on off state detection device, the target identification equipment and the gate
Mechanism connects, for receiving the permission right of way signal and the personnel by signal and receiving the on off state
During the closed mode that detection device is sent, regulating gate mechanism quickly opens, for receive disabled user's signal with
And the personnel, by signal and when receiving the open mode that the on off state detection device is sent, regulating gate mechanism is fast
Speed is closed;
Wherein, the adaptive median filter processing that adaptive median filter equipment performs includes:For the image received
Each pixel, use various filter windows the pixel is carried out centered on the pixel corresponding to various block of pixels obtain
Take, determine the gray value variance in each block of pixels, select the minimum corresponding filter window of gray value variance to be filtered as target
Ripple window carries out medium filtering to obtain its filtered pixel value to the pixel value of the pixel, all pictures based on the image received
The filtered pixel value of element obtains the filtering image of adaptive median filter equipment output;
Wherein, the adaptive wavelet filtering process that adaptive wavelet filter apparatus performs includes:The image received is entered
Row wavelet decomposition determines the average of HH subbands, based on the mean value computation wavelet shrinkage to obtain tetra- subbands of LL, LH, HL and HH
Optimal threshold, the wavelet reconstruction that optimal threshold based on wavelet shrinkage carries out image is defeated to obtain adaptive wavelet filtering equipment
The filtering image gone out;
Wherein, the knife switch is also connected with the right of access control device, for described allowing to lead to receiving
During row signal, control the gate mechanism to open, when receiving disabled user's signal, control the gate mechanism to close
Close.
In the gate self-controlled platform based on image procossing:
Kalman filtering equipment enters mode of operation when receiving four switching signals, from battery saving mode, is receiving
When the first switching signal, the second switching signal or three switching signals, enter battery saving mode from mode of operation;
Adaptive wavelet filter apparatus enters when receiving the first switching signal or three switching signals from battery saving mode
Mode of operation, when receiving the second switching signal or four switching signals, enter battery saving mode from mode of operation;
Adaptive median filter equipment enters when receiving the first switching signal or the second switching signal from battery saving mode
Mode of operation, when receiving the 3rd switching signal or four switching signals, enter battery saving mode from mode of operation.
In the gate self-controlled platform based on image procossing:
The speed that the knife switch opens the gate mechanism is slower than the exception control equipment opening gate machine
The speed of structure;The speed that the knife switch closes the gate mechanism is slower than the exception control equipment closing gate machine
The speed of structure.
In the gate self-controlled platform based on image procossing:
The audio alert equipment includes speech play chip and two-way speaker, the speech play chip with it is described
Two-way speaker connects, for when receiving the warning drive signal, being played by the two-way speaker corresponding
Audio alert file.
In the gate self-controlled platform based on image procossing:
The luminaire sends feux rouges to be reported when receiving the warning drive signal, with preset emission frequency
It is alert.
In addition, medium filtering have to impulsive noise it is good filter out effect, particularly while noise is filtered out, Neng Goubao
The edge of signal is protected, is allowed to not be blurred.These good characteristics are that linear filter method is not had.In addition, medium filtering
Algorithm comparison it is simple, be also easy to be realized with hardware.So median filter method is after proposition, just in Digital Signal Processing
Field obtains important application.
Medium filtering is a kind of nonlinear signal processing technology that can effectively suppress noise based on sequencing statistical theory, in
The general principle of value filtering is the value any in digital picture or Serial No. with each point value in a neighborhood of the point
Value replaces, and allows the close actual value of the pixel value of surrounding, so as to eliminate isolated noise spot.Method is the two dimension with certain structure
Sleiding form, pixel in plate is ranked up according to the size of pixel value, the 2-D data sequence of generation monotone increasing (or decline)
Row.Two dimension median filter output is g (x, y)=med { f (x-k, y-l), (k, l ∈ W) }, wherein, f (x, y), g (x, y) are respectively
For image after original image and processing.W is two dimension pattern plate, usually 3*3,5*5 regions or different shapes, such as line
Shape, circular, cross, annular etc..
Using the gate self-controlled platform based on image procossing of the present invention, still deposited for sluice control system in the prior art
In the technical problem in space of stealing a ride, by transforming sluice control system of the prior art, add multiple detection devices and
The appearance for the extreme case that the high-precision image processing equipment of customization is stolen a ride with detecting, and take appropriate measures, so as to advise
Model people's is current, ensure that the economic interests of gate operator are inviolable.
It is understood that although the present invention is disclosed as above with preferred embodiment, but above-described embodiment and it is not used to
Limit the present invention.For any those skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications are all made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of change.Therefore, every content without departing from technical solution of the present invention, the technical spirit pair according to the present invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.