CN108492279A - A kind of vehicle tarpaulin on off state detection method and system - Google Patents

A kind of vehicle tarpaulin on off state detection method and system Download PDF

Info

Publication number
CN108492279A
CN108492279A CN201810142066.2A CN201810142066A CN108492279A CN 108492279 A CN108492279 A CN 108492279A CN 201810142066 A CN201810142066 A CN 201810142066A CN 108492279 A CN108492279 A CN 108492279A
Authority
CN
China
Prior art keywords
picture
call number
element unit
unit cell
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810142066.2A
Other languages
Chinese (zh)
Other versions
CN108492279B (en
Inventor
何军强
沈林强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hong Quan Internet Of Things Technology Ltd By Share Ltd
Original Assignee
Hangzhou Hong Quan Internet Of Things Technology Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hong Quan Internet Of Things Technology Ltd By Share Ltd filed Critical Hangzhou Hong Quan Internet Of Things Technology Ltd By Share Ltd
Priority to CN201810142066.2A priority Critical patent/CN108492279B/en
Publication of CN108492279A publication Critical patent/CN108492279A/en
Application granted granted Critical
Publication of CN108492279B publication Critical patent/CN108492279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30232Surveillance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30236Traffic on road, railway or crossing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

A kind of vehicle tarpaulin on off state detection method of offer of the embodiment of the present invention and system, the method includes:From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Reference base picture and the first comparison picture are divided into according to presetting method from top to lower part to the rectangle picture element unit cell of predetermined number respectively;Benchmark picture and first compares the identical picture element unit cell of manipulative indexing number in picture successively, picks out the first call number, and obtains the second comparison picture;Second comparison picture is split, and the first comparison picture and the second comparison picture are compared, picks out the second call number;If the second call number is less than or equal to the first call number, then judge that the tarpaulin of vehicle is in closing process, if the second call number is greater than or equal to the first call number, then judge that the tarpaulin of vehicle is in opening procedure, this method and system can improve the accuracy being detected to the on off state of vehicle tarpaulin.

Description

A kind of vehicle tarpaulin on off state detection method and system
Technical field
The present embodiments relate to technical field of vehicle management more particularly to a kind of vehicle tarpaulin on off state detection methods And system.
Background technology
After slag-soil truck fills dregs, if the tarpaulin of slag-soil truck does not cover, it can cause, slag-soil truck is in driving process In, dregs sheds out vehicle from the wagon box of slag-soil truck, and on slag-soil truck travel is all fullly dregs, is brought to social environment Adverse effect.
In order to avoid slag-soil truck in the process of moving caused by dregs shed problem, it would be desirable to detect slag-soil truck and filling When dregs, if cover tarpaulin.For not covering the slag-soil truck of tarpaulin, speed limit processing can be carried out to it.
Existing solution is magnet contactor or infrared sensor to be installed in the wagon box position of slag-soil truck, to detect Whether the tarpaulin of slag-soil truck covers.But there are two drawbacks for both schemes:First, due to magnet contactor or sensor Mounted in the wagon box position of slag-soil truck, it is easy to be bumped against by the scraper bowl of excavator, causes to damage;Second, driver's cheating is easier, and is led Cause causes to judge by accident to whether tarpaulin covers.Therefore, how to provide it is a kind of can be with the side of accurate judgement dregs hood cloth on off state Method, the problem of becoming urgent need to resolve.
Invention content
For problems of the prior art, the embodiment of the present invention provides a kind of vehicle tarpaulin on off state detection method And system.
In a first aspect, the embodiment of the present invention provides a kind of vehicle tarpaulin on off state detection method, the method includes:
From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Wherein, the base The time of quasi- picture it is earlier and it is described first comparison picture between have preset time it is poor, first reference base picture and The first comparison picture is rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, rectangle picture What lower part indicated is the picture of compartment front;
The reference base picture and the first comparison picture are divided into according to presetting method from top to lower part respectively pre- If the rectangle picture element unit cell of number;Wherein, each picture element unit cell corresponds to a call number, and the picture element unit cell closer to lower part corresponds to Call number it is bigger, the line of demarcation between two neighboring picture element unit cell is parallel with the boundary line on the top of place picture, described pre- If number is the positive integer more than 1;
The reference base picture and described first compares the identical picture element unit cell of manipulative indexing number in picture successively, if full The first preset condition of foot then selects a call number from the corresponding call number of the discrepant picture element unit cell of tool, is denoted as the first rope Quotation marks, and the second comparison picture is obtained from the monitor video;Wherein, the second comparison picture and first comparison diagram Piece has preset time difference and the time compares rearward, and first preset condition includes:Only there is difference there are one picture element unit cell Different or mutually continuous multiple picture element unit cells are variant;
The second comparison picture is divided into according to the presetting method from top to lower part to the square of the predetermined number Shape picture element unit cell more described first compares the identical picture list of manipulative indexing number in picture and the second comparison picture successively Member selects a call number if meeting first preset condition from having in the corresponding call number of discrepant picture element unit cell, It is denoted as the second call number;
If second call number is less than or equal to first call number, judges that the tarpaulin of the vehicle is in and close Process judges that the tarpaulin of the vehicle is in opened if second call number is greater than or equal to first call number Journey.
Second aspect, the embodiment of the present invention provide a kind of vehicle tarpaulin switch state detecting system, the system comprises:
Picture acquisition module, for from the compartment monitor video of vehicle to be measured, obtaining reference base picture and first pair in real time Compare picture;Wherein, the time of the reference base picture is earlier and has preset time poor between the first comparison picture, First reference base picture and the first comparison picture are rectangle picture, and the top expression of rectangle picture is compartment tail portion Picture, what the lower part of rectangle picture indicated is the picture of compartment front;
Divide module, for respectively by the reference base picture and it is described first comparison picture according to presetting method from top to Lower part is divided into the rectangle picture element unit cell of the first predetermined number;Wherein, each picture element unit cell corresponds to a call number, under The corresponding call number of picture element unit cell in portion is bigger, the side in the line of demarcation between two neighboring picture element unit cell and the top of place picture Boundary line is parallel, and first predetermined number is the positive integer more than 1;
First call number acquisition module, for corresponding to rope in the reference base picture successively and the first comparison picture The identical picture element unit cell of quotation marks is chosen if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell A call number is selected, the first call number is denoted as, and obtains the second comparison picture from the monitor video;Wherein, described second It compares picture to compare compared with picture has the preset time poor and the time rearward with described first, the first preset condition packet It includes:Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;
Second call number acquisition module is used for the second comparison picture according to the presetting method from top to lower part It is divided into the rectangle picture element unit cell of the predetermined number, successively in the first comparison picture and the second comparison picture The identical picture element unit cell of manipulative indexing number, if meeting first preset condition, from having, discrepant picture element unit cell is corresponding A call number is selected in call number, is denoted as the second call number;
First judgment module, if for second call number be less than or equal to first call number, judge described in The tarpaulin of vehicle is in closing process, if second call number is greater than or equal to first call number, judges the vehicle Tarpaulin be in opening procedure.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the equipment includes memory and processor, described Processor and the memory complete mutual communication by bus;The memory, which is stored with, to be executed by the processor Program instruction, the processor calls described program instruction to be able to carry out above-mentioned vehicle tarpaulin on off state detection method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The computer program realizes above-mentioned vehicle tarpaulin on off state detection method when being executed by processor.
Vehicle tarpaulin on off state detection method and system provided in an embodiment of the present invention, by from the compartment of vehicle to be measured In monitor video, reference base picture and the first comparison picture are obtained, respectively by reference base picture and the first comparison picture, according to default side Method is divided into the rectangle picture element unit cell of predetermined number from top to lower part, successively benchmark picture and first comparison picture in it is right The identical picture element unit cell of call number is answered, if meeting the first preset condition, from the corresponding call number of the discrepant picture element unit cell of tool In select a call number, be denoted as the first call number, and obtain the second comparison picture from monitor video, picture compared by second The rectangle picture element unit cell of predetermined number is divided into from top to lower part according to presetting method, compares the first comparison picture and successively The identical picture element unit cell of manipulative indexing number in two comparison pictures, if meeting the first preset condition, from the discrepant picture list of tool A call number is selected in the corresponding call number of member, is denoted as the second call number, if the second call number is less than or equal to the first index Number, then judge that the tarpaulin of vehicle is in closing process, if the second call number is greater than or equal to first call number, judges vehicle Tarpaulin be in opening procedure.This method and system judge the tarpaulin of vehicle based on the compartment monitor video of vehicle to be measured On off state can improve the accuracy being detected to the on off state of vehicle tarpaulin.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is vehicle tarpaulin on off state detection method flow chart provided in an embodiment of the present invention;
Fig. 2 is the scheme of installation of compartment monitoring device provided in an embodiment of the present invention;
Fig. 3~Fig. 4 is the picture schematic diagram in compartment monitor video provided in an embodiment of the present invention;
Fig. 5 is split the picture obtained later for the picture in the monitor video provided in an embodiment of the present invention to compartment and shows It is intended to;
Fig. 6 is the structural schematic diagram of vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having The every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Fig. 1 is vehicle tarpaulin on off state detection method flow chart provided in an embodiment of the present invention, as shown in Figure 1, described Method includes:
Step 10, from the compartment monitor video of vehicle to be measured, in real time obtain reference base picture and first comparison picture;Its In, the time of the reference base picture is earlier and has preset time poor between the first comparison picture, and described first Reference base picture and the first comparison picture are rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, What the lower part of rectangle picture indicated is the picture of compartment front;
Step 11, respectively by the reference base picture and it is described first comparison picture according to presetting method from top to lower part It is cut into the rectangle picture element unit cell of predetermined number;Wherein, each picture element unit cell corresponds to a call number, the picture list closer to lower part The corresponding call number of member is bigger, and the line of demarcation between two neighboring picture element unit cell is parallel with the boundary line on the top of place picture, The predetermined number is the positive integer more than 1;
The identical picture list of manipulative indexing number in step 12, the successively reference base picture and the first comparison picture Member is selected a call number from having in the corresponding call number of discrepant picture element unit cell, is denoted as if meeting the first preset condition First call number, and the second comparison picture is obtained from the monitor video;Wherein, the second comparison picture and described first Comparison picture has preset time difference and the time compares rearward, and first preset condition includes:Only there are one picture lists Member is variant or mutually continuously multiple picture element unit cells are variant;
The second comparison picture is divided into described default by step 13 according to the presetting method from top to lower part Several rectangle picture element unit cells, successively it is more described first comparison picture and it is described second comparison picture in manipulative indexing number it is identical Picture element unit cell selects one if meeting first preset condition from having in the corresponding call number of discrepant picture element unit cell Call number is denoted as the second call number;
If step 14, second call number are less than or equal to first call number, the tarpaulin of the vehicle is judged In closing process, if second call number is greater than or equal to first call number, at the tarpaulin for judging the vehicle In opening procedure.
Fig. 2 is the scheme of installation of compartment monitoring device provided in an embodiment of the present invention, and Fig. 3~Fig. 4 is that the present invention is implemented Picture schematic diagram in the compartment monitor video that example provides, Fig. 5 are in the monitor video provided in an embodiment of the present invention to compartment Picture is split the picture schematic diagram obtained later.As shown in Fig. 2, can be installed in the top of the compartment front of vehicle to be measured One camera, wherein compartment front refers to the part of the headstock close to vehicle to be measured.Camera can monitor in real time and wait for measuring car Compartment, obtain the compartment monitor video of vehicle to be measured.
Server can get compartment monitor video from camera, then, be obtained in real time from compartment monitor video Front and back two frames rectangle picture, wherein have preset time poor between front and back two frames rectangle picture, which can basis Actual conditions are set, for example, can be set as 3 seconds.Server can be earlier by the time in two frame rectangle pictures One frame rectangle picture compares a frame rectangle picture rearward as the first comparison picture as reference base picture, using the time.Wherein, base The picture for the compartment front for being proximate to vehicle to be measured that the lower part of quasi- picture and the first comparison picture indicates, reference base picture and first Compare the top of picture, the picture for being proximate to compartment tail portion of expression.
Fig. 3 and Fig. 4 gets front and back two frames picture for server from compartment monitor video, if, the time ratio of Fig. 3 More forward, the time of Fig. 4 compares rearward, then server can be using Fig. 3 as reference base picture, using Fig. 4 as the first comparison picture.
After getting reference base picture and the first comparison picture, server can according to preset method to reference base picture and First comparison picture is split.For example, reference base picture can be divided into the square of predetermined number by server from top to lower part Shape picture element unit cell, wherein predetermined number can be positive integer more than 1, for example, server reference base picture can be divided into as 8 picture element unit cells shown in fig. 5.The line of demarcation of two neighboring rectangle picture element unit cell is parallel with the upper boundary line of reference base picture, Moreover, each picture element unit cell is corresponded to there are one call number, the corresponding call number of picture element unit cell closer to reference base picture lower part is got over Greatly, that is to say, that the corresponding call number of picture element unit cell closer to compartment front is bigger.
First comparison picture can be divided into the picture element unit cell of predetermined number by server in the same manner, according to phase Same method pair first compares each picture element unit cell in picture and sets call number.In this way, each picture list in reference base picture Member in the first comparison picture all there are one corresponding picture element unit cell, the corresponding call number of the two corresponding picture element unit cells It is identical.
Server can benchmark picture and identical two picture element unit cells of call number in the first comparison picture successively. If two picture element unit cells being compared to each other are variant, the corresponding call number of the two picture element unit cells is obtained.Server is by base Each picture element unit cell in quasi- picture respectively compared with the corresponding picture element unit cell in the first comparison picture after, can obtain It is all to have the corresponding call number of discrepant picture element unit cell.
If meeting the first preset condition, i.e., server only gets a call number, or gets multiple call numbers, But it is mutually continuous between this multiple call number, then server can arbitrarily choose a rope from all call numbers got Quotation marks are denoted as the first call number.For example, server only gets a call number n1, then n1 can be denoted as first by server Call number, if server gets 3 call numbers, respectively n2, n2+1, n2+2, then server can index these three Any one in number is denoted as the first call number, for example, n2+1 can be denoted as to the first call number.
If being unsatisfactory for the first preset condition, for example server gets multiple call numbers, still, this multiple call number it Between be not mutually continuous, for example, the call number that server is got is:2,3,5 and 6, this four call numbers are not continuous , then server can reacquire two frame rectangle pictures, respectively as new reference base picture and the first comparison picture, then weigh The multiple above process.
After server gets the first call number according to the method described above, it can continue to obtain a frame from monitor video Time is located at the rectangle picture for after the first comparison picture and comparing picture interval preset time difference with first, as the second comparison Picture, and the second comparison picture is split using identical method, it is divided into the rectangle picture element unit cell of predetermined number.Than Such as, reference base picture and first comparison picture be divided into 8 rectangle picture element unit cells, then server can in the same manner by Second comparison picture is divided into 8 rectangle picture element unit cells, and in the same manner to each picture in the second comparison picture Unit sets call number.In this way, there are one opposite in the second comparison picture for each picture element unit cell in the first comparison picture The picture element unit cell answered, the corresponding call number of the two corresponding picture element unit cells are identical.
Then, it is identical with the manipulative indexing number in the second comparison picture can to compare the first comparison picture successively for server Two picture element unit cells.If two picture element unit cells being compared to each other are variant, then the corresponding index of the two picture element unit cells is obtained Number.Each picture element unit cell that server is compared first in picture compares in picture with second compared with corresponding picture element unit cell Later, the corresponding call number of all discrepant picture element unit cells of tool can be obtained.
If meeting the first preset condition, i.e., server only gets a call number, or gets multiple call numbers, But it is mutually continuous between this multiple call number, then server can arbitrarily choose a rope from all call numbers got Quotation marks are denoted as the second call number.For example, server only gets a call number n3, then n3 can be denoted as second by server Call number, if server gets 3 call numbers, respectively n4, n4+1, n4+2, then server can index these three Any one in number is denoted as the second call number, for example, n4+1 can be denoted as to the second call number.Likewise, if discontented The first preset condition of foot, such as server get multiple call numbers, are not still, between the multiple call number mutually continuous , for example, the call number that server is got is:2,3,5 and 6, this four call numbers are not continuous, then server can be with Two frame rectangle pictures are reacquired, respectively as new reference base picture and the first comparison picture, are then repeated the above process.
After server gets the first call number and the second call number, the size of two call numbers can be compared.If Know through comparing, the second call number is less than or equal to the first call number, then illustrates have discrepant part in front and back two frame pictures It is gradually moved from the compartment front of vehicle to be measured to compartment tail portion, indicates the tarpaulin of vehicle to be measured from compartment front to compartment tail portion Mobile, server may determine that the tarpaulin of vehicle to be measured is in closing process;If known through comparing, the second call number be more than or Equal to the first call number, then illustrate have discrepant part from the compartment tail portion of vehicle to be measured gradually to vehicle in front and back two frame pictures Compartment front is moved, and indicates that the tarpaulin of vehicle to be measured is moved from compartment tail portion to compartment front, server may determine that vehicle to be measured Tarpaulin be in opening procedure.
The video frame that server can also be in the tarpaulin of vehicle to be measured opening procedure is deposited in the form of picture locally Storage, or the picture under tarpaulin lower and non-completely closed state in the completely closed state can be stored in local, for looking into It sees.
Vehicle tarpaulin on off state detection method provided in an embodiment of the present invention is regarded by the monitoring from the compartment of vehicle to be measured Obtained in real time in frequency reference base picture and first comparison picture, respectively by reference base picture and first comparison picture according to presetting method from Top is divided into the rectangle picture element unit cell of predetermined number to lower part, corresponds to rope in benchmark picture and the first comparison picture successively The identical picture element unit cell of quotation marks is chosen if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell Select a call number, be denoted as the first call number, and obtain the second comparison picture from monitor video, by the second comparison picture according to Presetting method is divided into the rectangle picture element unit cell of predetermined number from top to lower part, compares the first comparison picture and second pair successively Picture element unit cell more identical than manipulative indexing number in picture, if meeting the first preset condition, from the discrepant picture element unit cell pair of tool A call number is selected in the call number answered, and is denoted as the second call number, if the second call number is less than or equal to the first call number, Judge that the tarpaulin of vehicle is in closing process, if the second call number is greater than or equal to first call number, judges vehicle Tarpaulin is in opening procedure.This method judges the on off state of the tarpaulin of vehicle based on the compartment monitor video of vehicle to be measured, The accuracy being detected to the on off state of vehicle tarpaulin can be improved.In addition, since compartment monitor video is to pass through camera shooting Head shooting obtains, and camera is mounted on top of the compartment by near-car head of vehicle to be measured, it is not easy to be hit by the scraper bowl of excavator It arrives, camera is hardly damaged.
Optionally, on the basis of the above embodiments, the method further includes:
If judgement knows that the tarpaulin of the vehicle is in closing process, then obtains preset closing call number threshold value;
If second call number is less than or equal to the closing call number threshold value, the tarpaulin of the vehicle has been judged It completely closes.
Server can judge that the tarpaulin of vehicle to be measured is to be in opening procedure according to the method described in above-described embodiment, It is in closing process.If server is known by judgement, the tarpaulin of vehicle to be measured is in closing process, then server is also Can further it judge, whether the tarpaulin of the vehicle completely closes.
Specifically, server can obtain preset closing call number threshold value, which can be denoted as Iclose, IcloseSize can be set according to actual needs.Server can be according to the method described in above-described embodiment The second call number is obtained, if the second call number is less than or equal to Iclose, then judge that tarpaulin completely closes.
If the second call number is more than Iclose, illustrate that tarpaulin has not been fully closed.Server can continue to obtain second pair Than after picture and with the second comparison picture interval preset time, a poor frame rectangle picture, is denoted as third comparison picture, according to Method described in above-described embodiment is split third comparison picture, and the setting pair of the picture element unit cell to being obtained after segmentation The call number answered, and compare the identical two picture lists of manipulative indexing number in third comparison picture and the second comparison picture successively Member obtains and has the corresponding call number of discrepant picture element unit cell.
If meeting the first preset condition, server can arbitrarily select a call number from the call number got, It is denoted as third call number, then third call number is compared with the second call number.If third call number is less than or equal to Second call number then continues to compare third call number and IcloseIf third call number is less than or equal to Iclose, then judge paulin Cloth has completely closed.If third call number is more than Iclose, then server can continue obtain third comparison picture after One frame picture, and so on, it repeats the above process.
In the actual closing process of tarpaulin, tarpaulin back and forth movement may be led to by the resistance of the dregs in compartment, At this point, the case where third call number is more than the second call number may be will appear.If server is known by comparing, third rope Quotation marks are more than the second call number, then server can reacquire front and back two frames picture respectively as new reference base picture and first Picture is compared, is repeated the above process.
Vehicle tarpaulin on off state detection method provided in an embodiment of the present invention, if judging to know, the tarpaulin of vehicle is in Closing process then obtains preset closing call number threshold value, if the second call number, which is less than or equal to, closes call number threshold value, sentences The tarpaulin of disconnected vehicle has completely closed so that the method more science.
Optionally, on the basis of the above embodiments, the method further includes:
If judgement knows that the tarpaulin of the vehicle is in opening procedure, then obtains preset opening call number threshold value;
If second call number is greater than or equal to the opening call number threshold value, the tarpaulin of the vehicle has been judged It opens completely.
Server can judge that the tarpaulin of vehicle to be measured is in opened according to the method described in above-described embodiment Journey is in closing process.If server is known by judgement, the tarpaulin of vehicle to be measured is in opening procedure, then services Device can also further judge whether the tarpaulin of the vehicle is opened completely.
Specifically, server can obtain preset opening call number threshold value, and I can be denoted as by opening call number threshold valueopen, IopenSize can be set according to actual needs.Server can obtain the according to the method described in above-described embodiment Two call numbers, if known through comparing, the second call number is greater than or equal to Iopen, then judge that tarpaulin is opened completely.
If known through comparing, the second call number, which is less than, opens call number threshold value Iopen, illustrate that tarpaulin is not opened also completely. Server can continue to obtain the frame histogram that the second comparison picture compares picture interval preset time difference later and with second Piece compares picture as third.
Server can be split third comparison picture, and according to the method described in above-described embodiment to segmentation The picture element unit cell that obtains afterwards sets corresponding call number, and compare successively third comparison picture compared with second it is corresponding in picture Identical two picture element unit cells of call number obtain and have the corresponding call number of discrepant picture element unit cell, if the index got Number meet the first preset condition, then server a call number can be arbitrarily selected from the call number got, be denoted as third Call number, then third call number is compared with the second call number.If third call number is greater than or equal to the second call number, Then continue to compare third call number and IopenIf third call number is greater than or equal to Iopen, then judge that tarpaulin is beaten completely It opens.If third call number is less than Iopen, then server can continue obtain third comparison picture after a frame picture, successively Analogize, repeats the above process.
In the actual opening procedure of tarpaulin, tarpaulin back and forth movement may be led to by the resistance of the dregs in compartment, At this point, the case where third call number is less than the second call number may be will appear.If server is known through comparing, third index Number be less than the second call number, then server can reacquire front and back two frames picture, respectively as new reference base picture and first Picture is compared, is repeated the above process.
Vehicle tarpaulin on off state detection method provided in an embodiment of the present invention, if judging to know, if judging to know, vehicle Tarpaulin be in opening procedure, then obtain preset opening call number threshold value, if the second call number be greater than or equal to open index Number threshold value, then judge that the tarpaulin of vehicle is opened completely so that the method more science.
Optionally, on the basis of the above embodiments, the reference base picture more described successively and first comparison diagram The identical picture element unit cell of manipulative indexing number in piece, including:
Gray proces are carried out to the reference base picture and the first comparison picture respectively, obtain gray scale reference base picture and the One intensity contrast picture;
Successively by the identical picture list of manipulative indexing number in the gray scale reference base picture and the first intensity contrast picture Pixel in member is compared, and statistics meets the number of the pixel of the second preset condition;Wherein, second preset condition Including:The luminance difference of pixel is less than predetermined threshold value;
If the ratio for the pixel sum that the pixel number for meeting second preset condition accounts in picture element unit cell is less than Preset percentage then judges that described two two be compared to each other picture element unit cells are variant.
Specifically, it is corresponded in the reference base picture more described successively described in above-described embodiment and the first comparison picture The identical picture element unit cell of call number, detailed process are as follows.
First, server can make gray proces to reference base picture, obtain gray scale reference base picture, and server can also use Same method pair first compares picture and makees gray proces, obtains the first intensity contrast picture.
Then, server can be identical with manipulative indexing number in the first intensity contrast picture by gray scale reference base picture successively Pixel in picture element unit cell is compared.For example, server can be first by gray scale reference base picture and the first intensity contrast picture In minimum two picture element unit cells of manipulative indexing number be compared, compare the brightness of the pixel in the two picture element unit cells, Then the brightness of statistical pixel point meets the number of the pixel of the second preset condition, can the number be denoted as N1, wherein second Preset condition refers to that the luminance difference of pixel is less than predetermined threshold value, wherein predetermined threshold value can be set according to actual conditions It is fixed.
Then, server can count the sum of the pixel in a picture element unit cell, can be by the sum of pixel It is denoted as N2, server can calculate the ratio of N1 and N2, and the ratio is compared with preset percentage, which can To be set according to actual conditions, for example it can be set as 85%.If the ratio is less than preset percentage, server It may determine that the two picture element unit cells are variant.If the ratio is greater than or equal to preset percentage, server can be sentenced The two picture element unit cells of breaking are identical.
Server can be identical with all call numbers in the first comparison picture to reference base picture according to the method described above Picture element unit cell is compared, and show that two picture element unit cells to compare are identical or variant.
Vehicle tarpaulin on off state detection method provided in an embodiment of the present invention, by respectively to reference base picture and first pair Gray proces are carried out than picture, obtain gray scale reference base picture and the first intensity contrast picture, successively by gray scale reference base picture and the Pixel in one intensity contrast picture in the identical picture element unit cell of manipulative indexing number is compared, and statistics meets the second default item The number of the pixel of part, if the pixel number for meeting the second preset condition accounts for the ratio of the sum of the pixel in picture element unit cell Less than preset percentage, then judge that described two two be compared to each other picture element unit cells are variant so that the method more section It learns.
Fig. 6 is the structural schematic diagram of vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention, such as Fig. 6 institutes Show, the system comprises:Picture acquisition module 20, segmentation module 21, the first call number acquisition module 22, the second call number obtain Module 23 and the first judgment module 24, wherein:
Picture acquisition module 20 is used for from the compartment monitor video of vehicle to be measured, obtains reference base picture and first pair in real time Compare picture;Wherein, the time of the reference base picture is earlier and has preset time poor between the first comparison picture, First reference base picture and the first comparison picture are rectangle picture, and the top expression of rectangle picture is compartment tail portion Picture, what the lower part of rectangle picture indicated is the picture of compartment front;Divide module 21 to be used for respectively by the reference base picture It is divided into the rectangle picture element unit cell of the first predetermined number from top to lower part according to presetting method with the first comparison picture;Its In, each picture element unit cell corresponds to a call number, and the corresponding call number of picture element unit cell closer to lower part is bigger, two neighboring figure Line of demarcation between blade unit is parallel with the boundary line on the top of place picture, and first predetermined number is just whole more than 1 Number;First call number acquisition module 22 is for manipulative indexing number in the reference base picture successively and the first comparison picture Identical picture element unit cell selects one if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell A call number is denoted as the first call number, and the second comparison picture is obtained from the monitor video;Wherein, second comparison Picture compares compared with picture has the preset time poor and the time rearward with described first, and first preset condition includes: Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;Second call number acquisition module 23 is used In the rectangle picture that the second comparison picture is divided into according to the presetting method from top to lower part to the predetermined number Unit more described first compares the identical picture element unit cell of manipulative indexing number in picture and the second comparison picture successively, if Meet first preset condition, then selects a call number from the corresponding call number of the discrepant picture element unit cell of tool, be denoted as Second call number;If the first judgment module 24 is less than or equal to first call number for second call number, judge The tarpaulin of the vehicle is in closing process, if second call number is greater than or equal to first call number, judges institute The tarpaulin for stating vehicle is in opening procedure.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention may include:Picture acquisition module 20 divides Cut module 21, the first call number acquisition module 22, the second call number acquisition module 23 and the first judgment module 24.
Picture acquisition module 20 can get compartment monitor video from camera, be obtained in real time from compartment monitor video Take front and back two frames rectangle picture, wherein have preset time poor between two frame rectangle pictures, which can be according to reality Border situation is set, for example, can be set as 3 seconds.Picture acquisition module 20 can compare the time in two frame rectangle pictures A forward frame rectangle picture compares a frame rectangle picture rearward as the first comparison picture as reference base picture, using the time. Wherein, the picture for the compartment front for being proximate to vehicle to be measured that the lower part of reference base picture and the first comparison picture indicates, reference map The picture for the compartment tail portion for being proximate to vehicle to be measured that the top of piece and the first comparison picture indicates.
After picture acquisition module 20 gets reference base picture and the first comparison picture, segmentation module 21 can be according to default Method to reference base picture and first comparison picture be split.For example, segmentation module 21 can be from top to lower part by benchmark Picture segmentation at predetermined number rectangle picture element unit cell, wherein predetermined number can be positive integer more than 1, for example, segmentation mould Reference base picture can be divided into 8 picture element unit cells as shown in Figure 5 by block 21.The line of demarcation of two neighboring rectangle picture element unit cell with The upper boundary line of reference base picture is parallel, moreover, each picture element unit cell is corresponded to, there are one call numbers, under reference base picture The corresponding call number of picture element unit cell in portion is bigger, that is to say, that the corresponding call number of picture element unit cell closer to compartment front is got over Greatly.Segmentation module 21 can in the same manner be split into the first comparison picture the picture element unit cell of predetermined number, press The picture element unit cell in picture, which is compared, according to identical method pair first sets call number.In this way, each picture list in reference base picture All there are one corresponding picture element unit cell, the call number phases of the two corresponding picture element unit cells in the first comparison picture for member Together.
First call number acquisition module 22 can successively benchmark picture and first comparison picture in manipulative indexing number Identical two picture element unit cells.If two picture element unit cells being compared to each other are variant, discrepant picture element unit cell pair is obtained The call number answered.First call number acquisition module 22 all compares all picture element unit cells in reference base picture with first in picture After corresponding picture element unit cell compares, the corresponding call number of all discrepant picture element unit cells of tool can be obtained.
If meeting the first preset condition, i.e., the first call number acquisition module 22 only gets a call number, or obtains Multiple call numbers are got, but it is mutually continuous between this multiple call number, then and the first call number acquisition module 22 can be from acquisition To all call numbers in arbitrarily choose a call number, be denoted as the first call number.
If being unsatisfactory for the first preset condition, for example the first call number acquisition module 22 gets multiple call numbers, still, Mutually continuous between the multiple call number, then picture acquisition module 20 can reacquire two frame rectangle pictures, point Not as new reference base picture and the first comparison picture, then repeat the above process.
After first call number acquisition module 22 gets the first call number, the second call number acquisition module 23 can continue The rectangle picture that a frame time compares picture interval preset time difference later and with first positioned at the first comparison picture is obtained, as Second comparison picture, and the second comparison picture is split using identical method, it is divided into the rectangle picture of predetermined number Unit, and call number is set to each picture element unit cell in the second comparison picture in the same manner.In this way, the first comparison diagram There are one corresponding picture element unit cell, the two corresponding pictures in the second comparison picture for each picture element unit cell in piece The corresponding call number of unit is identical.
Second call number acquisition module 23 can compare the first comparison picture and the corresponding rope in the second comparison picture successively Identical two picture element unit cells of quotation marks.If two picture element unit cells being compared to each other are variant, discrepant picture list is obtained The corresponding call number of member.All picture element unit cells that second call number acquisition module 23 is compared first in picture are all compared with second After corresponding picture element unit cell in picture compares, the corresponding call number of all discrepant picture element unit cells of tool can be obtained.
If meeting the first preset condition, i.e., the second call number acquisition module 23 only gets a call number, or obtains Multiple call numbers are got, but it is mutually continuous between this multiple call number, then and the second call number acquisition module 23 can be from acquisition To all call numbers in arbitrarily choose a call number, be denoted as the second call number.Likewise, if being unsatisfactory for the first default item Part, such as the second call number acquisition module 23 get multiple call numbers, are not still, between the multiple call number mutually to interconnect Continuous, then picture acquisition module 20 can reacquire two frame rectangle pictures, be compared respectively as new reference base picture and first Then picture repeats the above process.
After getting the first call number and the second call number, the first judgment module 24 can compare the big of two call numbers It is small.If known through comparing, the second call number is less than or equal to the first call number, then illustrates there is difference in front and back two frame pictures Part gradually moved from the compartment front of vehicle to be measured to compartment tail portion, the first judgment module 24 may determine that vehicle to be measured Tarpaulin is in closing process;If known through comparing, the second call number is greater than or equal to the first call number, then illustrates front and back two frames Have discrepant part in picture gradually to move to compartment front from the compartment tail portion of vehicle to be measured, the first judgment module 24 can be with Judge that the tarpaulin of vehicle to be measured is in opening procedure.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention, function are implemented referring in particular to the above method Example, details are not described herein again.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention is regarded by the monitoring from the compartment of vehicle to be measured In frequency, reference base picture and the first comparison picture are obtained, respectively by reference base picture and the first comparison picture, according to presetting method from upper Portion is divided into the rectangle picture element unit cell of predetermined number to lower part, and benchmark picture and first compares manipulative indexing in picture successively Number identical picture element unit cell is selected if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell One call number is denoted as the first call number, and the second comparison picture is obtained from monitor video, by the second comparison picture according to pre- Equipment, method is divided into the rectangle picture element unit cell of predetermined number from top to lower part, compares the first comparison picture and the second comparison successively The identical picture element unit cell of manipulative indexing number in picture corresponds to if meeting the first preset condition from having discrepant picture element unit cell Call number in select a call number, be denoted as the second call number, if the second call number be less than or equal to the first call number, sentence The tarpaulin of disconnected vehicle is in closing process, if the second call number is greater than or equal to first call number, judges the paulin of vehicle Cloth is in opening procedure.The system judges the on off state of the tarpaulin of vehicle based on the compartment monitor video of vehicle to be measured, can To improve the accuracy being detected to the on off state of vehicle tarpaulin.In addition, since compartment monitor video is to pass through camera What shooting obtained, camera is mounted on top of the compartment by near-car head of vehicle to be measured, it is not easy to it is bumped against by the scraper bowl of excavator, Camera is hardly damaged.
Optionally, on the basis of the above embodiments, the system comprises:Picture acquisition module, segmentation module, the first rope Quotation marks acquisition module, the second call number acquisition module, the first judgment module, first threshold acquisition module and the second judgment module, Wherein:
First threshold acquisition module is for obtaining preset closing call number threshold value;If the second judgment module is for described the Two call numbers are less than or equal to the closing call number threshold value, then judge that the tarpaulin of the vehicle has completely closed.
Specifically, vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention may include:Picture obtains mould Block, segmentation module, the first call number acquisition module, the second call number acquisition module, the first judgment module, first threshold obtain mould Block and the second judgment module.Wherein, the picture acquisition module, the segmentation module, the first call number acquisition module, institute The second call number acquisition module and first judgment module are stated, is described in detail in the above-described embodiments, details are not described herein again.
First judgment module knows that the tarpaulin of vehicle to be measured is in after closing process by judgement, and first threshold obtains Module can obtain preset closing call number threshold value, and I can be denoted as by closing call number threshold valueclose, IcloseSize can root It is set according to actual needs.
Second judgment module can compare the second call number acquisition module and get the second call number and first threshold acquisition The I that module is gotcloseIf known through comparing, the second call number is less than or equal to Iclose, then the second judgment module can be with Judge that tarpaulin completely closes.If known through comparing, the second call number is more than Iclose, the second judgment module may determine that tarpaulin also It does not completely close.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention, if judging to know, the tarpaulin of vehicle is in Closing process then obtains preset closing call number threshold value, if the second call number, which is less than or equal to, closes call number threshold value, sentences The tarpaulin of disconnected vehicle has completely closed so that the system more science.
Optionally, on the basis of the above embodiments, the system comprises:Picture acquisition module, segmentation module, the first rope Quotation marks acquisition module, the second call number acquisition module, the first judgment module, second threshold acquisition module and third judgment module, Wherein:
Second threshold acquisition module is for obtaining preset opening call number threshold value;If third judgment module is for described the Two call numbers are greater than or equal to the opening call number threshold value, then judge that the tarpaulin of the vehicle is opened completely.
Specifically, vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention may include:Picture obtains mould Block, segmentation module, the first call number acquisition module, the second call number acquisition module, the first judgment module, second threshold obtain mould Block and third judgment module.Wherein, the picture acquisition module, the segmentation module, the first call number acquisition module, institute The second call number acquisition module and first judgment module are stated, is described in detail in the above-described embodiments, details are not described herein again.
First judgment module knows that the tarpaulin of vehicle to be measured is in after opening procedure by judgement, and second threshold obtains Module can obtain preset opening call number threshold value, and I can be denoted as by opening call number threshold valueopen, IopenSize can basis Actual needs is set.
Third judgment module can compare the second call number acquisition module and get the second call number and second threshold acquisition The I that module is gotopenIf known through comparing, the second call number is greater than or equal to Iopen, then third judgment module can sentence Disconnected tarpaulin is opened completely.If known through comparing, the second call number is less than Iopen, then third judgment module may determine that tarpaulin also It does not open completely.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention, if judging to know, the tarpaulin of vehicle is in Opening procedure then obtains preset opening call number threshold value, if the second call number, which is greater than or equal to, opens call number threshold value, sentences The tarpaulin of disconnected vehicle is opened completely so that the system more science.
Optionally, on the basis of the above embodiments, the first call number acquisition module is specifically used for:
Gray proces are carried out to the reference base picture and the first comparison picture respectively, obtain gray scale reference base picture and the One intensity contrast picture;
Successively by the identical picture list of manipulative indexing number in the gray scale reference base picture and the first intensity contrast picture Member is compared, and statistics meets the number of the pixel of the second preset condition;Wherein, second preset condition includes:Pixel The luminance difference of point is less than predetermined threshold value;
If the ratio for the pixel sum that the pixel number for meeting second preset condition accounts in picture element unit cell is less than Preset percentage then judges that described two two be compared to each other picture element unit cells are variant.
Specifically, the first call number acquisition module described in above-described embodiment can make gray proces to reference base picture, Gray scale reference base picture is obtained, the first call number acquisition module can also use the comparison picture of same method pair first to make at gray scale Reason, obtains the first intensity contrast picture.
First call number acquisition module can be successively by manipulative indexing in gray scale reference base picture and the first intensity contrast picture Pixel in number identical picture element unit cell is compared.For example, the first call number acquisition module can be first by gray scale reference map Piece two picture element unit cells minimum with the manipulative indexing number in the first intensity contrast picture are compared, and compare the two picture lists The brightness of pixel in member, then statistical pixel point brightness meet the number of the pixel of the second preset condition, can should Number is denoted as N1, wherein the second preset condition refers to that the luminance difference of pixel is less than predetermined threshold value, wherein predetermined threshold value can To be set according to actual conditions.
First call number acquisition module can count the sum of the pixel in a picture element unit cell, can be by pixel Sum be denoted as N2, the first call number acquisition module can calculate the ratio of N1 and N2, and by the ratio and preset percentage phase Compare, which can be set according to actual conditions, for example can be set as 85%.If the ratio is less than pre- If percentage, then the first call number acquisition module may determine that the two picture element unit cells are variant.If the ratio be more than or Equal to preset percentage, then the first call number acquisition module may determine that the two picture element unit cells are identical.
First call number acquisition module can according to the method described above, to all in reference base picture and the first comparison picture The identical picture element unit cell of call number is compared, and show that two picture element unit cells to compare are identical or discrepant result.
Vehicle tarpaulin switch state detecting system provided in an embodiment of the present invention, by respectively to reference base picture and first pair Gray proces are carried out than picture, obtain gray scale reference base picture and the first intensity contrast picture, successively by gray scale reference base picture and the Pixel in one intensity contrast picture in the identical picture element unit cell of manipulative indexing number is compared, and statistics meets the second default item The number of the pixel of part, if the pixel number for meeting the second preset condition accounts for the ratio of the sum of the pixel in picture element unit cell Less than preset percentage, then judge that described two two be compared to each other picture element unit cells are variant so that the system more section It learns.
Fig. 7 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in fig. 7, the equipment includes:Place Device (processor) 31, memory (memory) 32 and bus 33 are managed, wherein:
The processor 31 and the memory 32 complete mutual communication by the bus 33;The processor 31 For calling the program instruction in the memory 32, to execute the method that above-mentioned each method embodiment is provided, such as including: From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Wherein, the reference base picture Time is earlier and has preset time poor between the first comparison picture, first reference base picture and described first Comparison picture is rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, and the lower part of rectangle picture indicates Be compartment front picture;Respectively by the reference base picture and it is described first comparison picture according to presetting method from top under Part is cut into the rectangle picture element unit cell of predetermined number;Wherein, each picture element unit cell corresponds to a call number, the figure closer to lower part The corresponding call number of blade unit is bigger, and the boundary line in the line of demarcation between two neighboring picture element unit cell and the top of place picture is flat Row, the predetermined number are the positive integer more than 1;Successively rope is corresponded in the reference base picture and the first comparison picture The identical picture element unit cell of quotation marks is chosen if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell A call number is selected, the first call number is denoted as, and obtains the second comparison picture from the monitor video;Wherein, described second It compares picture to compare compared with picture has the preset time poor and the time rearward with described first, the first preset condition packet It includes:Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;Picture is compared by described second The rectangle picture element unit cell of the predetermined number is divided into from top to lower part according to the presetting method, successively more described first The identical picture element unit cell of manipulative indexing number in picture and the second comparison picture is compared, if meeting first preset condition, A call number then is selected from the corresponding call number of the discrepant picture element unit cell of tool, is denoted as the second call number;If described second Call number is less than or equal to first call number, then judges that the tarpaulin of the vehicle is in closing process, if second rope Quotation marks are greater than or equal to first call number, then judge that the tarpaulin of the vehicle is in opening procedure.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt When computer executes, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:
From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Wherein, the base The time of quasi- picture it is earlier and it is described first comparison picture between have preset time it is poor, first reference base picture and The first comparison picture is rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, rectangle picture What lower part indicated is the picture of compartment front;Respectively by the reference base picture and it is described first comparison picture according to presetting method from Top is divided into the rectangle picture element unit cell of predetermined number to lower part;Wherein, each picture element unit cell corresponds to a call number, closer to The corresponding call number of picture element unit cell of lower part is bigger, the line of demarcation between two neighboring picture element unit cell and the top of place picture Boundary line is parallel, and the predetermined number is the positive integer more than 1;The reference base picture and the first comparison picture successively The identical picture element unit cell of middle manipulative indexing number, if meeting the first preset condition, from having the corresponding rope of discrepant picture element unit cell A call number is selected in quotation marks, is denoted as the first call number, and the second comparison picture is obtained from the monitor video;Wherein, The second comparison picture compares compared with picture has the preset time poor and the time rearward with described first, and described first is pre- If condition includes:Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;By described second Comparison picture is divided into the rectangle picture element unit cell of the predetermined number according to the presetting method from top to lower part, compares successively The identical picture element unit cell of manipulative indexing number in the first comparison picture and the second comparison picture, if it is pre- to meet described first If condition, then a call number is selected from the corresponding call number of the discrepant picture element unit cell of tool, be denoted as the second call number;If institute It states the second call number and is less than or equal to first call number, then judge that the tarpaulin of the vehicle is in closing process, if described Second call number is greater than or equal to first call number, then judges that the tarpaulin of the vehicle is in opening procedure.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage Medium storing computer instructs, and the computer instruction makes the computer execute the side that above-mentioned each method embodiment is provided Method, such as including:
From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Wherein, the base The time of quasi- picture it is earlier and it is described first comparison picture between have preset time it is poor, first reference base picture and The first comparison picture is rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, rectangle picture What lower part indicated is the picture of compartment front;Respectively by the reference base picture and it is described first comparison picture according to presetting method from Top is divided into the rectangle picture element unit cell of predetermined number to lower part;Wherein, each picture element unit cell corresponds to a call number, closer to The corresponding call number of picture element unit cell of lower part is bigger, the line of demarcation between two neighboring picture element unit cell and the top of place picture Boundary line is parallel, and the predetermined number is the positive integer more than 1;The reference base picture and the first comparison picture successively The identical picture element unit cell of middle manipulative indexing number, if meeting the first preset condition, from having the corresponding rope of discrepant picture element unit cell A call number is selected in quotation marks, is denoted as the first call number, and the second comparison picture is obtained from the monitor video;Wherein, The second comparison picture compares compared with picture has the preset time poor and the time rearward with described first, and described first is pre- If condition includes:Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;By described second Comparison picture is divided into the rectangle picture element unit cell of the predetermined number according to the presetting method from top to lower part, compares successively The identical picture element unit cell of manipulative indexing number in the first comparison picture and the second comparison picture, if it is pre- to meet described first If condition, then a call number is selected from the corresponding call number of the discrepant picture element unit cell of tool, be denoted as the second call number;If institute It states the second call number and is less than or equal to first call number, then judge that the tarpaulin of the vehicle is in closing process, if described Second call number is greater than or equal to first call number, then judges that the tarpaulin of the vehicle is in opening procedure.
The embodiments such as electronic equipment described above are only schematical, illustrate as separating component wherein described Unit may or may not be physically separated, and the component shown as unit may or may not be object Manage unit, you can be located at a place, or may be distributed over multiple network units.It can select according to the actual needs Some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound In the case of the labour for the property made, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention rather than right It is limited;Although the embodiment of the present invention is described in detail with reference to foregoing embodiments, the ordinary skill of this field Personnel should understand that:It still can be with technical scheme described in the above embodiments is modified, or to which part Or all technical features carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution The range of each embodiment technical solution of the embodiment of the present invention.

Claims (10)

1. a kind of vehicle tarpaulin on off state detection method, which is characterized in that including:
From the compartment monitor video of vehicle to be measured, reference base picture and the first comparison picture are obtained in real time;Wherein, the reference map The time of piece is earlier and has preset time poor between the first comparison picture, first reference base picture and described First comparison picture is rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion, the lower part of rectangle picture What is indicated is the picture of compartment front;
The reference base picture and the first comparison picture are divided into default according to presetting method from top to lower part respectively Several rectangle picture element unit cells;Wherein, each picture element unit cell corresponds to a call number, the corresponding rope of picture element unit cell closer to lower part Quotation marks are bigger, and the line of demarcation between two neighboring picture element unit cell is parallel with the boundary line on the top of place picture, described default Number is the positive integer more than 1;
The identical picture element unit cell of manipulative indexing number in the reference base picture and the first comparison picture successively, if meeting the One preset condition then selects a call number from the corresponding call number of the discrepant picture element unit cell of tool, is denoted as the first call number, And the second comparison picture is obtained from the monitor video;Wherein, the second comparison picture compares picture tool with described first There is the preset time difference and the time compares rearward, first preset condition includes:Only there are one picture element unit cell it is variant or The mutually continuous multiple picture element unit cells of person are variant;
The second comparison picture is divided into according to the presetting method from top to lower part to the histogram of the predetermined number Blade unit more described first compares the identical picture element unit cell of manipulative indexing number in picture and the second comparison picture successively, If meeting first preset condition, a call number is selected from having in the corresponding call number of discrepant picture element unit cell, is remembered For the second call number;
If second call number is less than or equal to first call number, judges that the tarpaulin of the vehicle is in and closed Journey judges that the tarpaulin of the vehicle is in opening procedure if second call number is greater than or equal to first call number.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If judgement knows that the tarpaulin of the vehicle is in closing process, preset closing call number threshold value is obtained;
If second call number is less than or equal to the closing call number threshold value, judge that the tarpaulin of the vehicle is complete It closes.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
If judgement knows that the tarpaulin of the vehicle is in opening procedure, preset opening call number threshold value is obtained;
If second call number is greater than or equal to the opening call number threshold value, judge that the tarpaulin of the vehicle is complete It opens.
4. according to the method described in claim 1, it is characterized in that, the reference base picture more described successively and first pair described Picture element unit cell more identical than manipulative indexing number in picture, including:
Gray proces are carried out to the reference base picture and the first comparison picture respectively, obtain gray scale reference base picture and the first ash Degree comparison picture;
It successively will be in the identical picture element unit cell of manipulative indexing number in the gray scale reference base picture and the first intensity contrast picture Pixel be compared, statistics meet the second preset condition pixel number;Wherein, the second preset condition packet It includes:The luminance difference of pixel is less than predetermined threshold value;
If the pixel number for meeting second preset condition accounts for the ratio of the pixel sum in picture element unit cell less than default Percentage then judges that described two two be compared to each other picture element unit cells are variant.
5. a kind of vehicle tarpaulin switch state detecting system, which is characterized in that including:
Picture acquisition module, for from the compartment monitor video of vehicle to be measured, obtaining reference base picture and the first comparison diagram in real time Piece;Wherein, the time of the reference base picture is earlier and has preset time poor between the first comparison picture, described First reference base picture and the first comparison picture are rectangle picture, and what the top of rectangle picture indicated is the picture of compartment tail portion Face, what the lower part of rectangle picture indicated is the picture of compartment front;
Divide module, for respectively by the reference base picture and it is described first comparison picture according to presetting method from top to lower part It is divided into the rectangle picture element unit cell of the first predetermined number;Wherein, each picture element unit cell corresponds to a call number, closer to lower part The corresponding call number of picture element unit cell is bigger, the boundary line in the line of demarcation between two neighboring picture element unit cell and the top of place picture Parallel, first predetermined number is the positive integer more than 1;
First call number acquisition module, for manipulative indexing number in the reference base picture successively and the first comparison picture Identical picture element unit cell selects one if meeting the first preset condition from having in the corresponding call number of discrepant picture element unit cell A call number is denoted as the first call number, and the second comparison picture is obtained from the monitor video;Wherein, second comparison Picture compares compared with picture has the preset time poor and the time rearward with described first, and first preset condition includes: Picture element unit cell is variant there are one only or mutually continuously multiple picture element unit cells are variant;
Second call number acquisition module is divided according to the presetting method from top to lower part for comparing picture by described second At the rectangle picture element unit cell of the predetermined number, corresponded in the first comparison picture and the second comparison picture successively The identical picture element unit cell of call number, if meeting first preset condition, from the corresponding index of the discrepant picture element unit cell of tool A call number is selected in number, is denoted as the second call number;
First judgment module judges the vehicle if being less than or equal to first call number for second call number Tarpaulin be in closing process, if second call number be greater than or equal to first call number, judge the vehicle Tarpaulin is in opening procedure.
6. system according to claim 5, which is characterized in that the system also includes:
First threshold acquisition module, for obtaining preset closing call number threshold value;
Second judgment module, if for second call number be less than or equal to the closings call number threshold value, judgement described in The tarpaulin of vehicle has completely closed.
7. system according to claim 5, which is characterized in that the system also includes:
Second threshold acquisition module, for obtaining preset opening call number threshold value;
Third judgment module, if for second call number be greater than or equal to the openings call number threshold value, judgement described in The tarpaulin of vehicle is opened completely.
8. system according to claim 5, which is characterized in that the first call number acquisition module is specifically used for:
Gray proces are carried out to the reference base picture and the first comparison picture respectively, obtain gray scale reference base picture and the first ash Degree comparison picture;
Successively by the identical picture element unit cell of manipulative indexing number in the gray scale reference base picture and the first intensity contrast picture into Row compares, and statistics meets the number of the pixel of the second preset condition;Wherein, second preset condition includes:Pixel Luminance difference is less than predetermined threshold value;
If the pixel number for meeting second preset condition accounts for the ratio of the pixel sum in picture element unit cell less than default Percentage then judges that described two two be compared to each other picture element unit cells are variant.
9. a kind of electronic equipment, which is characterized in that including memory and processor, the processor and the memory pass through total Line completes mutual communication;The memory is stored with the program instruction that can be executed by the processor, the processor tune It is able to carry out the method as described in Claims 1-4 is any with described program instruction.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The method as described in Claims 1-4 is any is realized when processor executes.
CN201810142066.2A 2018-02-11 2018-02-11 Method and system for detecting on-off state of vehicle tarpaulin Active CN108492279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810142066.2A CN108492279B (en) 2018-02-11 2018-02-11 Method and system for detecting on-off state of vehicle tarpaulin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810142066.2A CN108492279B (en) 2018-02-11 2018-02-11 Method and system for detecting on-off state of vehicle tarpaulin

Publications (2)

Publication Number Publication Date
CN108492279A true CN108492279A (en) 2018-09-04
CN108492279B CN108492279B (en) 2020-05-05

Family

ID=63340298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810142066.2A Active CN108492279B (en) 2018-02-11 2018-02-11 Method and system for detecting on-off state of vehicle tarpaulin

Country Status (1)

Country Link
CN (1) CN108492279B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556506A (en) * 2003-12-30 2004-12-22 上海交通大学 Intelligent alarming treatment method of video frequency monitoring system
CN101017573A (en) * 2007-02-09 2007-08-15 南京大学 Method for detecting and identifying moving target based on video monitoring
CN103984961A (en) * 2014-05-30 2014-08-13 成都西物信安智能系统有限公司 Image detection method for detecting foreign matter at bottom of vehicle
CN103986906A (en) * 2014-05-08 2014-08-13 杭州同尊信息技术有限公司 Door opening and closing detection method based on monitoring videos
CN104340827A (en) * 2013-07-26 2015-02-11 上海三菱电梯有限公司 Anti-pinch detection method and anti-pinch detection device for sliding door device
CN104899880A (en) * 2015-05-25 2015-09-09 长安大学 Method for automatically detecting open and closed states of vehicle door of public traffic vehicle
CN104952083A (en) * 2015-06-26 2015-09-30 兰州理工大学 Video saliency detection algorithm based on saliency target background modeling
FR3013878B1 (en) * 2013-11-28 2016-01-01 Sagem Defense Securite ANALYSIS OF A MULTISPECTRAL IMAGE
CN105291949A (en) * 2015-11-02 2016-02-03 湖南汽车制造有限责任公司 Tarpaulin top cover state monitoring system and transportation vehicle with same
CN205113119U (en) * 2015-11-13 2016-03-30 湖北佳恒科技有限公司 Novel dregs car roof afterbody prevent raise dust device
CN106023227A (en) * 2016-06-02 2016-10-12 南京康尼机电股份有限公司 Rail vehicle door lock switch non-contact monitoring method and rail vehicle door lock switch non-contact monitoring device
CN107525458A (en) * 2017-07-20 2017-12-29 武汉依迅北斗空间技术有限公司 A kind of dregs hood cloth condition checkout gear and method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556506A (en) * 2003-12-30 2004-12-22 上海交通大学 Intelligent alarming treatment method of video frequency monitoring system
CN101017573A (en) * 2007-02-09 2007-08-15 南京大学 Method for detecting and identifying moving target based on video monitoring
CN104340827A (en) * 2013-07-26 2015-02-11 上海三菱电梯有限公司 Anti-pinch detection method and anti-pinch detection device for sliding door device
FR3013878B1 (en) * 2013-11-28 2016-01-01 Sagem Defense Securite ANALYSIS OF A MULTISPECTRAL IMAGE
CN103986906A (en) * 2014-05-08 2014-08-13 杭州同尊信息技术有限公司 Door opening and closing detection method based on monitoring videos
CN103984961A (en) * 2014-05-30 2014-08-13 成都西物信安智能系统有限公司 Image detection method for detecting foreign matter at bottom of vehicle
CN104899880A (en) * 2015-05-25 2015-09-09 长安大学 Method for automatically detecting open and closed states of vehicle door of public traffic vehicle
CN104952083A (en) * 2015-06-26 2015-09-30 兰州理工大学 Video saliency detection algorithm based on saliency target background modeling
CN105291949A (en) * 2015-11-02 2016-02-03 湖南汽车制造有限责任公司 Tarpaulin top cover state monitoring system and transportation vehicle with same
CN205113119U (en) * 2015-11-13 2016-03-30 湖北佳恒科技有限公司 Novel dregs car roof afterbody prevent raise dust device
CN106023227A (en) * 2016-06-02 2016-10-12 南京康尼机电股份有限公司 Rail vehicle door lock switch non-contact monitoring method and rail vehicle door lock switch non-contact monitoring device
CN107525458A (en) * 2017-07-20 2017-12-29 武汉依迅北斗空间技术有限公司 A kind of dregs hood cloth condition checkout gear and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨顺辽等: ""基于图像处理的棚车车门状态自动检测"", 《计算机测量与控制》 *

Also Published As

Publication number Publication date
CN108492279B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN105769120B (en) Method for detecting fatigue driving and device
CN102395043B (en) Video quality diagnosing method
Cucchiara et al. Detecting objects, shadows and ghosts in video streams by exploiting color and motion information
CN110321923A (en) Object detection method, system and the medium of different scale receptive field Feature-level fusion
CN103942539B (en) A kind of oval accurate high efficiency extraction of head part and masking method for detecting human face
CN103186887A (en) Image demisting device and image demisting method
CN109308711A (en) Object detection method, device and image processing equipment
CN102297867A (en) Detection system for assembly quality of wiring harness
CN107103330A (en) A kind of LED status recognition methods and device
CN105163110A (en) Camera cleanliness detection method and system and shooting terminal
CN109918971A (en) Number detection method and device in monitor video
CN107240092A (en) A kind of image blur detection method and device
CN103489187A (en) Quality test based segmenting method of cell nucleuses in cervical LCT image
CN109740721A (en) Wheat head method of counting and device
WO2023025010A1 (en) Stroboscopic banding information recognition method and apparatus, and electronic device
CN109815936A (en) A kind of target object analysis method and device, computer equipment and storage medium
CN110110782A (en) Retinal fundus images optic disk localization method based on deep learning
CN106127124A (en) The automatic testing method of the abnormal image signal in region, taxi front row
CN102724541B (en) Intelligent diagnosis and recovery method for monitoring images
CN109359593A (en) A kind of sleet environment fuzzy pictures monitoring and pre-alarming method based on image local grid
CN108305350A (en) A kind of vehicle load state identification method and system
CN106960424B (en) Tubercle bacillus image segmentation and identification method and device based on optimized watershed algorithm
CN106611165B (en) A kind of automotive window detection method and device based on correlation filtering and color-match
CN105959566A (en) Image pickup mode switching method and device, and automobile data recorder
CN108492279A (en) A kind of vehicle tarpaulin on off state detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant