The present invention is Application No. 201710376485.8, the applying date to be on May 25th, 2017, entitled " be based on
The divisional application of the patent of the control method of image procossing ".
The content of the invention
To solve the above-mentioned problems, the present 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 state 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 opening state sent, the quick closedown of regulating gate mechanism.
According to an aspect of the present invention, a kind of control method based on image procossing is provided, this method includes:
1) a kind of gate self-controlled platform based on image procossing is provided, including knife switch, audio alert equipment, shining sets
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
With the presence or absence of collision behavior on the gate mechanism, there are collision generation signal during collision behavior, is sent, otherwise, send
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 is arranged on the gate mechanism, for detecting and exporting in institute
State the impact force numerical value generated on gate mechanism;
Wherein, the AT89C51 controls chip is 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, further include:FLASH storage devices are 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, further include:Right of access control device,
Including card slot, information read device and privilege analysis equipment, the card slot places visa card for passenger, and described information is read
Equipment is used to that the information on the visa card to be read out 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, further include:
On off state detection device is arranged on the gate mechanism, for detecting the current state of the gate mechanism
It is opening state or closed state;
Image capture device 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 image 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, carries out noise analysis, to be made an uproar to mid-scene image
Time big secondary noise signal of the main noise signal and noise amplitude of acoustic amplitude maximum, 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;
Switching equipment is filtered, is connected respectively with signal analysis equipment and noise analysis equipment, it is 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 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 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
It handles 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
It adapts 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
It manages to directly obtain target filtering image;
Target identification equipment, with Kalman filtering equipment, adaptive wavelet filter apparatus and adaptive median filter equipment
It connects respectively, for receiving target filtering image, human body target identification is carried out to target filtering image, and is recognizing human body mesh
During mark, 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 state 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 opening state 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, various filter windows is used to carry out corresponding various block of pixels centered on the pixel to the pixel and are obtained
It takes, determines each pixel gray value variance in the block, the correspondence filter window of gray value variance minimum is selected 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:To the image that receives into
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, the gate mechanism is controlled to open, when receiving disabled user's signal, the gate mechanism is controlled to close
It closes.
More specifically, in the gate self-controlled platform based on image procossing:
Kalman filtering equipment enters operating mode 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 operating mode;
Adaptive wavelet filter apparatus enters when receiving the first switching signal or three switching signals from battery saving mode
Operating mode when receiving the second switching signal or four switching signals, enters battery saving mode from operating mode;
Adaptive median filter equipment enters when receiving the first switching signal or the second switching signal from battery saving mode
Operating mode when receiving the 3rd switching signal or four switching signals, enters battery saving mode from operating mode.
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 alarm.
Specific embodiment
Embodiment of the present invention is described in detail below with reference to accompanying drawings.
The element of gate includes babinet, blocks body, movement, control module and supplementary module.
Babinet is played a supporting role for protecting the internal parts such as movement, control module.
The stainless steel of the main material generally use 304 or 316 of babinet, secondary material include organic glass, tempered glass,
Resin, stone material or timber etc..Selection need to generally consider it is firm, beautiful, be unlikely to deform, scratch resistant scratch, rust resistance and corrosion resistance is easier to
Processing is fixed.
Block body for do not allow pedestrian by when serve and block, permission pedestrian by when can open clearance.
It is realized in the form of generally by door or blocking bar.
Blocking the selection of body need to generally consider firm, can bear certain impact force, but the impact force of itself cannot to people
There is injury, weight is as far as possible small, beautiful, and rust resistance and corrosion resistance, fixation easy to process is not hurted sb.'s feelings after damage.
The entirety (including driving motor, speed reducer etc.) that movement is made of various mechanical parts utilizes mechanical original
The opening and closing action of body is blocked in reason control.
Influence the processing technology of the key factor including mechanical part of movement performance and used life and material and most heavy
The driving motor wanted and the speed reducer to match.
Driving 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 replacement.DC brushless motor is non-carbonate, and there is no this loss, service life is also longer.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, 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 driving motor is realized using microprocessor technology.
Microprocessor generally uses microcontroller, but if control system is more complicated or needs and a lot of other systems
(including ticketing system, access control system when) it is integrated when, 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 generally can be realized by master control borad, motor control panel and auxiliary control panel, complicated control circuit
Special industrial personal computer is needed to configure to realize if (such as underground ticket checking machine).
Supplementary module include LED indicating modules, counting module, pedestrian detection module, alarm module, permission input module,
Voice cue module etc..
LED indicating modules:It is generally made of LED dot matrix or LED display, is used to indicate 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 motion range, 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
For device generally using Photoelectric infrared switch (relatively common) or infrared light curtain, Photoelectric infrared switch is divided into the correlation used in pairs
(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.In addition 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 generally can be according to substantial amounts of experiment
Data establish corresponding mathematical model, and 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 which 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).
Permission input module:Pedestrian before current needs that gate is allowed " to know " oneself whether possess legal current power
Limit, i.e., " input " permission and gate allowed to judge whether to let pass.There are many kinds of input modes, 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 generally with access control system or ticketing service system
System is combined.In the occasion having free passage then without this module.
Voice cue module:Here voice prompt is different from the audio alert in the alarm module of front, mainly uses
In the relevant information of aid prompting pedestrian, such as the type of the current admission ticket of prompting, welcome message.The module it is less common, 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
It smoothly passes through under condition, this violates the wishes 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
With the presence or absence of collision behavior in door mechanism, there are collision generation signal during collision behavior, is sent, otherwise, collisionless letter is sent
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 impact force numerical value generated on the gate mechanism;
Wherein, the AT89C51 controls chip is 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, further include:
FLASH storage devices, are arranged on inside gate mechanism, and chip is controlled with the AT89C51 of the crash detection device
Connection, for prestoring the default dynamics threshold value.
In the gate self-controlled platform based on image procossing, further include:
Right of access control device, including card slot, information read device and privilege analysis equipment, the card slot is used to pass through
Person places visa card, and described information reads equipment and is used to that the information on the visa card to be read out 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, further include:
On off state detection device is arranged on the gate mechanism, for detecting the current state of the gate mechanism
It is opening state or closed state;
Image capture device 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 image 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, carries out noise analysis, to be made an uproar to mid-scene image
Time big secondary noise signal of the main noise signal and noise amplitude of acoustic amplitude maximum, 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;
Switching equipment is filtered, is connected respectively with signal analysis equipment and noise analysis equipment, it is 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 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 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
It handles 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
It adapts 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
It manages to directly obtain target filtering image;
Target identification equipment, with Kalman filtering equipment, adaptive wavelet filter apparatus and adaptive median filter equipment
It connects respectively, for receiving target filtering image, human body target identification is carried out to target filtering image, and is recognizing human body mesh
During mark, 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 state 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 opening state 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, various filter windows is used to carry out corresponding various block of pixels centered on the pixel to the pixel and are obtained
It takes, determines each pixel gray value variance in the block, the correspondence filter window of gray value variance minimum is selected 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:To the image that receives into
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, the gate mechanism is controlled to open, when receiving disabled user's signal, the gate mechanism is controlled to close
It closes.
In the gate self-controlled platform based on image procossing:
Kalman filtering equipment enters operating mode 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 operating mode;
Adaptive wavelet filter apparatus enters when receiving the first switching signal or three switching signals from battery saving mode
Operating mode when receiving the second switching signal or four switching signals, enters battery saving mode from operating mode;
Adaptive median filter equipment enters when receiving the first switching signal or the second switching signal from battery saving mode
Operating mode when receiving the 3rd switching signal or four switching signals, enters battery saving mode from operating mode.
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 include 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 has impulsive noise and good filters 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 use hardware realization.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 inhibit noise based on sequencing statistical theory, in
The basic principle of value filtering is the value any in digital picture or Serial No. in each point value in a neighborhood of the point
Value replaces, the actual value for making the pixel value of surrounding close, so as to eliminate isolated noise spot.Method is the two dimension with certain structure
Pixel in plate is ranked up by sleiding form 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, is usually 3*3,5*5 regions or different shapes, such as line
Shape, circular, cross, circular ring shape etc..
Gate self-controlled platform using the present invention based on image procossing, is still deposited for sluice control system in the prior art
Steal a ride space the technical issues of, by transforming sluice control system of the prior art, add multiple detection devices and
The high-precision image processing equipment of customization is taken appropriate measures with detecting the appearance for the extreme case stolen a ride, 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 has been disclosed in the preferred embodiments as above, above-described embodiment not 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 variation.Therefore, every content without departing from technical solution of the present invention, technical spirit pair according to the 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.