A kind of locker Dead on Arrival detection method
Technical field
The present invention relates to the express delivery cabinet used in a kind of express delivery industry, particularly relate to a kind of whether the method that Dead on Arrival detects to be occurred out to express delivery cabinet.
Background technology
It is that express mail is given Courier Service company by part cast side that traditional express mail throws delivery formula, and express mail is sent to recipient by Courier Service company, and notice recipient gets express mail.The defect that this express mail throws delivery formula is to need courier to be delivered to by express mail in recipient hand, and courier needs to wait for that recipient carrys out pickup, delivers efficiency and reduces; If the place that recipient is not being sent to, also need courier again to send to, add extra work amount to courier.Have developed the mode utilizing locker to keep in article send part action to solve this technical matters people, its pattern is, express mail is given Courier Service company by part cast side, express mail is delivered to addressee point by the courier of Courier Service company, then express mail is placed in locker, and notifies addressee's addressee, after addressee receives information, in locker, take out express mail, this addresses the problem the inefficient defect of delivery that traditional express mail throws delivery formula.
Locker is one and article (express mail) can be identified based on Internet of Things, temporary, the equipment of monitor and managment.Intelligent express delivery drop-off box system is formed together with PC server.PC server can carry out unitized management (as the information of express delivery drop-off box, the information of express mail, the information etc. of user) to each express delivery drop-off box of native system, and carries out confluence analysis process to various information.After express mail is sent to appointed place by courier, only need by it stored in express delivery drop-off box, system just automatically for user sends a note, comprises pickup address and identifying code, and user's input validation code before time easily arrives this terminal can take out express mail.This product is intended to provide when and where easily for user receives express mail.
Application number is CN201510077829.6, application publication number is CN104778142A, publication date is the fault detection system that the Chinese invention patent application on July 15th, 2015 discloses a kind of Intelligent storage cabinet, described system is installed on Intelligent storage cabinet host computer, described system adopts communication instruction poll Intelligent storage cabinet slave in setting-up time, once discovery fault, described failure message is stored in the storage medium of host computer, described system can the state of autopolling Intelligent storage cabinet slave, the remote server of recording and sending, can monitor timely and conveniently and safeguard.
Application number is CN201420215176.4, application publication number is CN203838754U, publication date is that the Chinese invention patent application on September 17th, 2014 discloses a kind of intelligent express delivery access arrangement, comprise the main frame that is provided with host output end and comprise arrange in turn 1 to the express delivery cabinet of N platform slave, 1 to N platform slave comprises several cells arranged in turn respectively, 1 to N platform slave is installed respectively and is provided with slave input end, the slave control panel of slave output terminal and slave control end, the slave input end of host output end and the 1st slave, the slave input end of n-th slave is all connected by wire harness with the slave output terminal of (n-1)th slave, in slave, several cells install the cell control panel being provided with cell input end and cell output terminal respectively, and slave control end is connected by wire harness with the cell output terminal of m-1 cell with the cell input end of the 1st cell, the cell input end of a m cell.The utility model increases slave or cell only needs the slave increased or cell to be connected in series with previous slave or cell, and wiring is simple, and Installation and Debugging are fast, and the fault point that breaks down is fast, and work efficiency is high.
Above-mentioned locker is all by sending unpacking instruction to cell control panel, by judging the on off state returning word and inquiry control panel of control panel, judges whether to unpack successfully.There is following weak point in this mode:
1, due to electricity piece fault, under particularly hot and humid, the command word that control panel returns is not necessarily reliable, occurs that command word returns successfully sometimes, but opens mould shift, open many casees in real world applications, the situation of not unpacking.When there is above-mentioned failure condition, system cannot identification alarm automatically, causes getting wrong part, falls the disputes such as part.
2, very loaded down with trivial details by the process of monitoring locking evidence after going wrong, often need the monitoring checked in several days, consume plenty of time and manpower.
Summary of the invention
The defect of the Dead on Arrival such as mould shift and Kai Duo case is there will be out in order to overcome above-mentioned locker, the invention provides a kind of locker Dead on Arrival detection method, the Dead on Arrival such as mould shift and Kai Duo case can be detected out by the method, avoid part and the generation of getting the disputes such as wrong part, and the hardware cost of existing locker can not be increased, easy to utilize.
The present invention for solving the problems of the technologies described above adopted technical scheme is:
A kind of locker Dead on Arrival detection method, is characterized in that: comprise the steps:
Step 1, on locker, the outward flange of each cell arranges identification marking;
Original image when step 2, lattice door closedown all with the camera collection on locker;
Step 3, according to identification marking, grid identification is carried out to the original image collected, calculate the coordinate range data that each cell of locker is corresponding;
Step 4, locker obtain unpacking instruction and unpack, and camera is taken pictures, and gather picture;
Step 5, the picture of camera collection in step 4 and original image to be compared, judge the actual open site of chamber door, and instruction position of unpacking in chamber door actual open site compares, if consistent, then normally unpack, if inconsistent, just there is Dead on Arrival, once occur that Dead on Arrival just enters step 6;
Step 6, notify that related personnel processes.
In step 5, the concrete steps of the picture of camera collection and original image being compared are: all convert the picture of camera collection and original image to bitmap, then filtering, after filtering, gray processing removes color again, and gray processing carries out image array to subtract calculating after removing color again, the threshold value of the value calculated and setting is compared, what be greater than threshold value is judged to difference, is set to 1, is less than being judged to of threshold value identical, be set to 0, so just can draw a differential matrix, according to differential matrix, identify the region whether having and be set to " 1 ", if there is no the region for " 1 ", prove normally not unpack, enter step 6, if there is the region being set to " 1 ", calculate the coordinate of the central point in the region being set to " 1 ", just can judge the actual open site of chamber door, the coordinate range data that the coordinate of these central points is corresponding with each cell of the locker calculated in step 3 compare, if center point coordinate is needing just to illustrate in the coordinate range of unpacking that chamber door actual open site and instruction is unpacked position consistency, normal unpacking, if center point coordinate is needing just to illustrate in the coordinate range of unpacking that and instruction position of unpacking in chamber door actual open site is inconsistent, there is Dead on Arrival, once occur that Dead on Arrival just enters step 6.
In step 6, once there is Dead on Arrival, the automatic record trouble time point of locker, in the enterprising row labels of playing back videos progress bar of camera.
In step 6, number node, cell numbering, fault-time and fault photo also will be sent to related personnel, so that related personnel processes in time by locker.
In step 3, if picture grid identification is abnormal, adjustment camera angle, so that picture grid can normally identify, preserves the original image and coordinate range data that gather after normal identification.
Compared with prior art, the present invention has following beneficial effect:
During generation Dead on Arrival of the present invention, the message energy very first time sends to duty personnel to process, and has avoided generation dispute of long duration; After there is Dead on Arrival, monitoring playback picture at that time can be recalled easily.The present invention utilizes original camera on locker just can detect whether locker normally unpacks, whether there is Dead on Arrival, and fault alarm can be carried out in the very first time, and notify that related personnel processes, simultaneously can also in the enterprising row labels of playing back videos progress bar at camera.Staff's query processing is facilitated to decrease the consumption of plenty of time and manpower.What utilize due to the present invention is the existing camera of locker, does not need the manufacturing cost additionally increasing locker.
Accompanying drawing explanation
Fig. 1 is original image collecting flowchart figure;
Fig. 2 is Dead on Arrival overhaul flow chart;
Whether abnormal Fig. 3 be the automatic detection case lattice door of locker process flow diagram.
Embodiment
Below in conjunction with embodiment, the invention will be further described, and described embodiment is only the present invention's part embodiment, is not whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments used obtained under creative work prerequisite, belongs to protection scope of the present invention.
The hardware that the present invention relates to comprises the background server of locker and multiple storing, and cabinet locker is provided with multiple cell and camera.
The present invention includes following steps:
Step 1, on locker, the outward flange of each cell all marks by unified identification marking (as light tone mark), when marking, all marks in the edge of lattice door by light tone mark (as red-label);
Original image when step 2, lattice door closedown all with the camera collection on locker, when gathering original image, ensure that all lattice doors are closed, and without any blocking, allow camera can collect original image accurately;
Step 3, to the original image collected according to light tone mark carry out grid identification, calculate the coordinate range data that each cell of locker is corresponding; And the original image of collection and coordinate range data are kept on the background server of locker;
Step 4, locker obtain unpacking instruction and unpack, and camera is taken pictures, and gather picture, and the picture collected are sent to the background server of locker;
The background server of step 5, locker all converts the picture of camera collection and the original image of preservation to bitmap, then filtering, after filtering, gray processing removes color again, gray processing carries out image array to subtract calculating after removing color again, and the value calculated and the threshold value be set on the background server of locker are compared, what be greater than threshold value is judged to difference, be set to 1, be less than being judged to of threshold value identical, be set to 0, so just can draw a differential matrix;
The background server of locker, according to differential matrix, identifies the region whether having and be set to " 1 ", if do not have the region for " 1 ", proves normally not unpack, enters step 7; If there is the region being set to " 1 ", calculate the coordinate of the central point in the region being set to " 1 ", the coordinate of these central points and the coordinate range data be kept in the background server of locker are compared, just can obtain being which lattice door is opened, the unpacking data which lattice door is not opened, unpacking data and the cell data that should unpack are contrasted, if consistent, then normally unpack, if inconsistent, just there is Dead on Arrival, once occur that Dead on Arrival just enters step 6;
According to failure condition, the background server of step 6, locker notifies that related personnel processes.
In step 5, unpacking data comprise the coordinate of the cell opened and unpacking number; The cell data that should unpack comprise the number unpacked and the cell coordinate that should unpack; If all consistent, then normally unpack; If unpacked, number is consistent with number of should unpacking, but the coordinate of the cell opened is inconsistent with the cell coordinate that should unpack, then occur out the Dead on Arrival of mould shift; If the coordinate of the cell opened is consistent with the cell coordinate that should unpack, but number of unpacking is less than the Dead on Arrival that unpacking less then appears in number of unpacking; If the coordinate of the cell opened is consistent with the cell coordinate that should unpack, but then there is the Dead on Arrival of unpacking more than number of should unpacking in number of unpacking more.If all inconsistent, then there is out the Dead on Arrival of mould shift.
In step 6, the background server meeting record trouble time point of locker, in the enterprising row labels of playing back videos progress bar of camera.
In step 6, described failure condition comprises following information: number node, cell numbering, unpack type, fault type, fault-time and fault photo.
In step 3, if picture grid identification is abnormal, adjustment camera angle is so that picture grid can normally identify, the original image that after normal identification, preservation gathers and coordinate range data are kept on the background server of locker;
Described unpacking type comprises and refers to that pickup is unpacked and part cast is unpacked.
Described fault type comprises does not unpack, mistake of unpacking, unpacks or unpack more less.
Present invention also offers the flow process whether automatic detection case lattice door of locker is abnormal: the background server of locker detects whether someone uses locker, if there is people to use, locker cell is opened, and automatically detects end; If nobody uses, control camera is taken pictures and is got figure, all converts the picture obtained and original image to bitmap, then filtering, after filtering, gray processing removes color again, gray processing carries out image array to subtract calculating after removing color again, and the value calculated and the threshold value be set on the background server of locker are compared, what be greater than threshold value is judged to difference, be set to 1, be less than being judged to of threshold value identical, be set to 0, so just can draw a differential matrix; The background server of locker is according to differential matrix, identify the region whether having and be set to " 1 ", if there is no the region for " 1 ", prove that lattice door is without exception, if identify the region being set to " 1 ", then prove that lattice door has exception, goes process before notifying related personnel.
Setting as the threshold value mentioned in the present invention is set by locker operation enterprise, is generally 30%.