A kind of locker Dead on Arrival detection method
Technical field
Whether the present invention relates to the express delivery cabinets used in a kind of delivery industry more particularly to a kind of pair of express delivery cabinet to occur opening out
The method that case failure is detected.
Background technique
It is that part cast side gives express mail to Courier Service company that traditional express mail, which throws modulus formula, and Courier Service company send express mail
Up to recipient, recipient is notified to take express mail.The defect that this express mail throws modulus formula is to need courier that express mail is sent to addressee
Fang Shouzhong, courier need that recipient is waited to carry out pickup, and delivering efficiency reduces;If recipient in the place being sent to, does not need also
It wants courier to be sent to again, increases extra workload to courier.In order to solve this technical problem it has been developed that
By locker keep in article in the way of complete that part is sent to act, mode is that part cast side gives express mail to Courier Service company,
Express mail is sent to addressee point by the courier of Courier Service company, and then express mail is placed in locker, and notifies addressee's addressee,
After addressee receives information, express mail is taken out in locker, this addresses the problem the delivery effects that traditional express mail throws modulus formula
The low defect of rate.
Locker, which is one, can be identified article (express mail) based on Internet of Things, be kept in, and monitor and what is managed sets
It is standby.Intelligent express delivery drop-off box system is constituted together with PC server.PC server can be to each express delivery drop-off box of this system
Unitized management (such as information of express delivery drop-off box, the information of express mail, the information etc. of user) is carried out, and various information are carried out whole
Close analysis processing.After express mail is sent to designated place by courier, it need to be only deposited into express delivery drop-off box, system is just user automatically
A short message, including pickup address and identifying code are sent, user inputs identifying code before the convenient time reaches the terminal
Take out express mail.The product provides convenient when and where it is intended that user receives express mail.
Application No. is CN201510077829.6, application publication number CN104778142A, publication date is in July, 2015
Chinese invention patent application on the 15th discloses a kind of fault detection system of Intelligent storage cabinet, and the system is installed on intelligent storage
Object cabinet host computer, the system use communication instruction poll Intelligent storage cabinet slave within the set time, once discovery event
Barrier, the fault message are stored in the storage medium of host computer, the system can autopolling Intelligent storage cabinet subordinate set
Standby state, the remote server of recording and sending timely and conveniently can be monitored and be safeguarded.
Application No. is CN201420215176.4, application publication number CN203838754U, publication date is in September, 2014
Chinese invention patent application on the 17th discloses a kind of intelligent express delivery access arrangement, host and packet including being equipped with host output end
The express delivery cabinet for 1 Dao N platform slave being sequentially arranged is included, 1 to N platform slave respectively includes several cells being sequentially arranged, and 1 arrives N platform
Slave installs the slave control panel equipped with slave input terminal, slave output end and slave control terminal, host output end and the 1st respectively
The slave output end of the slave input terminal of platform slave, the slave input terminal of n-th slave and (n-1)th slave passes through harness and connects
It connects;Several cells install the cell control panel equipped with cell input terminal and cell output end, slave control terminal respectively in slave
Pass through line with the cell output end of the cell input terminal of the 1st cell, the cell input terminal of m-th cell and the m-1 cell
Beam connection.The utility model, which increases slave or cell, only to be needed to concatenate increased slave or cell with previous slave or cell,
Wiring is simple, and installation and debugging are fast, and failure fault point is fast, and work efficiency is high.
Above-mentioned locker be all by cell control panel issue unpack instruction, by judge control panel return word and
The switch state for inquiring control panel, to determine whether unpacking successfully.This mode has the following deficiencies:
1, since under electricity piece failure, especially high temperature and humidity, the command word that control panel returns is not necessarily reliable, and reality is answered
It sometimes appear that command word returns successfully in, but mould shift is opened, open more casees, not unpacking situation.Above-mentioned fault condition occurs
When, system can not automatic identification warning, cause to take wrong part, fall the disputes such as part.
2, troublesome by the process of monitoring locking evidence after going wrong, the monitoring checked in several days is generally required, is disappeared
Consume plenty of time and manpower.
Summary of the invention
In order to overcome above-mentioned locker to will appear out the defect of the Dead on Arrival such as mould shift and Kai Duo case, the present invention provides one
Kind locker Dead on Arrival detection method, is capable of detecting when out the Dead on Arrival such as mould shift and Kai Duo case by this method, avoids
Part and the generation for taking the disputes such as wrong part, and not will increase the hardware cost of existing locker, it is easy to promote and utilize.
Used technical solution is the present invention to solve above-mentioned technical problem:
A kind of locker Dead on Arrival detection method, characterized by the following steps:
Step 1, the outer edge setting identification of each cell marks on locker;
Step 2, acquired with the camera on locker all lattice doors close when original image;
Step 3 marks progress grid identification according to identification to collected original image, calculates each cell of locker
Corresponding coordinate range data;
Step 4, locker obtain unpacking instructing and unpack, and camera is taken pictures, and acquire picture;
The picture that camera in step 4 acquires is compared step 5 with original image, judges that chamber door is practical and opens
Position, the practical open position of chamber door are compared with position of unpacking is instructed, if unanimously, it is normal to unpack, if inconsistent, just
There is Dead on Arrival, once Dead on Arrival occur enters step 6;
Step 6 notifies related personnel to handle.
In step 5, the specific steps that are compared with original image of picture that camera is acquired are as follows: acquire camera
Picture and original image be all converted into bitmap, then filter, gray processing goes to lose color again after filtering, and gray processing is gone after losing color
Image array is carried out again to subtract calculating, the value calculated is compared with the threshold value of setting, is judged to difference greater than threshold value,
It is set as 1, is judged to identical less than threshold value, is set as 0, can thus obtain a differential matrix;According to differential matrix, identifying is
It is no to have the region for being set as " 1 ", it proves not unpack normally if not for the region of " 1 ", enters step 6;If there is being set as
The region of " 1 " calculates the coordinate for being set as the central point in region of " 1 ", so that it may the practical open position for judging chamber door, by this
The coordinate coordinate range data corresponding with each cell of locker calculated in step 3 of a little central points are compared, if
Center point coordinate is needing just to illustrate in unpacking coordinate range the practical open position of chamber door and the unpacking position consistency of instruction, normally
It unpacks, if center point coordinate needing in unpacking coordinate range not illustrating the practical open position of chamber door and instructing position of unpacking
It sets inconsistent, Dead on Arrival occurs, once Dead on Arrival occur enters step 6.
In step 6, once there is Dead on Arrival, locker automatically records fault time point, returns in the video recording of camera
It puts and is marked on progress bar.
In step 6, number node, cell number, fault time are also sent to related by locker to failure photo
Personnel, so that related personnel is handled in time.
In step 3, if picture grid identification is abnormal, camera angle is adjusted so that picture grid being capable of positive common sense
Not, the original image and coordinate range data of acquisition are saved after normal identification.
Compared with prior art, the invention has the following advantages:
When Dead on Arrival occurs for the present invention, message can be sent at the first time duty personnel and handle, and avoid of long duration
Generation dispute;After Dead on Arrival occurs, it may be convenient to recall monitoring playback picture at that time.The present invention is using on locker
Original camera just can detect that whether locker normally unpacks, if there is Dead on Arrival, and can first time into
Row fault alarm, notifies related personnel to handle, while can also be marked on the playing back videos progress bar in camera.
Staff's query processing is facilitated to reduce the consumption of plenty of time and manpower.Since utilize is the existing of locker to the present invention
Camera does not need the manufacturing cost for additionally increasing locker.
Detailed description of the invention
Fig. 1 is original image collecting flowchart figure;
Fig. 2 is Dead on Arrival overhaul flow chart;
Fig. 3 be locker detect automatically lattice door whether Yi Chang flow chart.
Specific embodiment
The present invention will be further described with reference to the examples below, and described embodiment is only present invention a part
Embodiment is not whole embodiment.Based on the embodiments of the present invention, those skilled in the art are not making
Other embodiments used obtained, belong to protection scope of the present invention under the premise of creative work.
The present invention relates to hardware include locker background server and multiple storings, be provided on cabinet locker more
A cell and camera.
The present invention includes the following steps:
Step 1, the outer edge of each cell is marked with unified identification label (such as light tone label) on locker
Note is marked with light tone label (such as red-label) in the edge of lattice door in label;
Step 2, acquired with the camera on locker all lattice doors close when original image, acquire original image
When, it is ensured that all lattice doors are closed, and are blocked without any, allow camera that can accurately collect original image;
Step 3 marks progress grid identification according to light tone to collected original image, calculates each cell of locker
Corresponding coordinate range data;And the original image of acquisition and coordinate range data are stored in the background server of locker
On;
The instruction that obtains unpacking of step 4, locker is unpacked, and camera is taken pictures, and acquires picture, and by collected picture
It is sent to the background server of locker;
Step 5, locker background server the original image of picture and preservation that camera acquires all is converted into position
Figure, then filters, and gray processing goes to lose color again after filtering, and gray processing goes that image array is carried out again after losing color to subtract calculating, will
The value calculated is compared with the threshold value on the background server for being set in locker, is judged to difference greater than threshold value, if
It is 1, is judged to identical less than threshold value, is set as 0, can thus obtain a differential matrix;
The background server of locker recognises that the region for being set as " 1 " according to differential matrix, if not being
The region of " 1 " then proves not unpack normally, enters step 7;If there is being set as the region of " 1 ", the region for being set as " 1 " is calculated
Central point coordinate, by the coordinate of these central points and the coordinate range data that are stored in the background server of locker into
Row compares, so that it may obtain being which lattice door is opened, the unpacking data which lattice door is not turned on, by unpacking data and should
Unpacking cell data compare, if unanimously, normal to unpack, if inconsistent, there have been Dead on Arrival, once go out
Existing Dead on Arrival enters step 6;
Step 6, locker background server notify related personnel to handle according to fault condition.
In step 5, unpacking data include open cell coordinate and unpacking number;The cell data that should be unpacked include
The number that should be unpacked and the cell coordinate that should be unpacked;It is normal to unpack if all consistent;If unpacking number and should
Number of unpacking is consistent, but the coordinate for the cell opened is inconsistent with the cell coordinate that should unpack, then the unpacking of mould shift occurs out
Failure;If the coordinate for the cell opened is consistent with the cell coordinate that should be unpacked, but number of unpacking is less than the number that should unpack
Then there is the Dead on Arrival unpacked less;If the coordinate for the cell opened is consistent with the cell coordinate that should be unpacked, but number of unpacking
Mesh is more than the number that unpack and more unpacking Dead on Arrival then occurs.If all inconsistent, there is out the unpacking event of mould shift
Barrier.
In step 6, the background server of locker will record fault time point, in the playing back videos progress bar of camera
On be marked.
In step 6, the fault condition includes following information: number node, cell number, unpack type, failure classes
Type, fault time and failure photo.
In step 3, if picture grid identification is abnormal, camera angle is adjusted so that picture grid being capable of positive common sense
Not, the original image of acquisition is saved after normal identification and coordinate range data are stored on the background server of locker;
The unpacking type includes referring to that pickup is unpacked and part cast is unpacked.
The fault type includes not unpacking, unpacking wrong, few unpacking or unpack more.
The present invention also provides locker detect automatically lattice door whether Yi Chang process: locker background server inspection
Survey whether someone uses locker, if someone uses, locker cell is opened, and automatic detection terminates;If nobody uses,
Control camera, which is taken pictures, takes figure, and obtained picture and original image are all converted into bitmap, then filtered, grey again after filtering
Degreeization goes to lose color, and gray processing goes that image array is carried out again after losing color to subtract calculating, by the value calculated and is set in storage
Threshold value on the background server of object cabinet is compared, and is judged to difference greater than threshold value, is set as 1, less than threshold value be judged to it is identical,
It is set as 0, can thus obtain a differential matrix;The background server of locker has been recognised that and has been set according to differential matrix
For the region of " 1 ", prove that lattice door is without exception if not for the region of " 1 ", if identifying the region for being set as " 1 ",
It then proves that lattice door has exception, goes to handle before notifying related personnel.
Setting to threshold value mentioned in the present invention is set by locker operation enterprise, generally 30%.