Summary of the invention
In order to solve the deficiencies in the prior art, the invention provides a kind of simple in structure, easy to operate, control the accurately control method of autonomous intelligence street lamp control system.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of control method of autonomous intelligence street lamp control system may further comprise the steps:
(1) program initialization: memory resets, and sets luminance threshold;
(2) obtain to be compared image: by image unit photographic images first, obtain the first image, extract the brightness value of all luminance points on the first image, and the statistics brightness value surpasses the number of the luminance point of luminance threshold; Account for the ratio of all luminance point numbers greater than P if surpass the number of the luminance point of luminance threshold
0And less than P
1The time, then with the first image as being compared Image Saving and continuing photographic images; Account for the ratio of all luminance point numbers greater than P if surpass the number of the luminance point of luminance threshold
1, then continue photographic images, repeating step (2), described P
0Span be 20% ~ 40%, described P
1Span be 60% ~ 80%;
(3) obtain movement images: the image that will take for the second time is as the second image, obtains the second image information and with the second image image as a comparison;
(4) judge movement images and the correlation that is compared image: with movement images be compared image and compare, calculate movement images and the brightness ratio that is compared the luminance point of the same position in the image, and calculate the first brightness ratio threshold value, statistics surpasses the number of the brightness ratio of the first brightness ratio threshold value, when the number of the brightness ratio that surpasses the first brightness ratio threshold value accounts for the ratio of all brightness ratio numbers less than P
2, then movement images be compared image correlation, do not send control signal; When the number of the brightness ratio that surpasses the first brightness ratio threshold value accounts for the ratio of all brightness ratio numbers greater than P
2Then the centre processing is carried out in the brightness value of image relatively and the luminance point of the same position that is compared image, draw the brightness value after the centreization processing of each luminance point, then calculate the movement images after centreization the processing and be compared the brightness ratio of luminance point of the same position of image, calculate thus the second brightness ratio threshold value, and statistics surpasses the number of the brightness ratio of the second brightness ratio threshold value, when the number of the brightness ratio that surpasses the second brightness ratio threshold value accounts for the ratio of all brightness ratio numbers greater than P
3Then movement images is with to be compared image uncorrelated, send the startup illumination control signal, and send glittering characteristic information, the camera left and right sides is respectively equipped be used to the light-sensitive element that reads glittering characteristic information, glittering characteristic information adopts with the fixed cycle flicker synchronously, in each cycle, is defined as successively glittering characteristic information m by the flicker in the time interval of setting
1~ m
n, 3≤n≤10, image be compared image when uncorrelated, street lamp sends m
1Glittering characteristic information; Otherwise movement images be compared image correlation, the glittering characteristic information that detects when the light-sensitive element that is arranged on the image unit both sides is m
1And the glittering characteristic information that street lamp sends also is m
1, then send the lighting-off control signal; Described P
2And P
3Span be 20% ~ 80%.
As the preferred version of above-mentioned control method, account for the ratio of all luminance point numbers less than P if surpass the number of the luminance point of luminance threshold
0, then starting the floor light control signal, photographic images again as being compared Image Saving, and enters into step (3) and (4) of claim 1 with the image that photographs.
The computational methods of described the first brightness ratio threshold value are: the brightness ratio of luminance point that calculates movement images and the same position that is compared image, all brightness ratio ratios are sorted by size, then choose minimum value and peaked, get the mean value of these two brightness ratios as the brightness ratio threshold value.
The method of described centreization processing is: the mean value of the brightness value of each luminance point and at least 9 ~ 16 luminance points being adjacent on the computed image, and as the brightness value of each luminance point of image after the processing of centre.
The computational methods of described the second brightness ratio threshold value are: calculate through the brightness ratio of the movement images after the processing of centre with the luminance point of the same position that is compared image, all brightness ratio ratios are sorted by size, then choose minimum value and maximum, get the mean value of these two values as the second brightness ratio threshold value.
The control method of above-mentioned Intelligent street lamp control system, be provided with the illumination control of extending, concrete steps are: the direction that vehicle or pedestrian advance is the direction that street lamp extends and throws light on, the light-sensitive element in camera left side is used for reading the glittering characteristic information that the adjacent street lamp in its left side sends, the light-sensitive element on camera right side is used for reading the glittering characteristic information that the adjacent street lamp on its right side sends, and sends first m
1The street lamp of glittering characteristic information be the first tagmeme illuminating street lamp, with the first tagmeme illuminating street lamp adjacent street lamp on the extension illumination direction be the second tagmeme illuminating street lamp, with the second tagmeme illuminating street lamp adjacent street lamp on the extension illumination direction be the 3rd tagmeme illuminating street lamp, the rest may be inferred to setting the N tagmeme illuminating street lamp that extends, in the step (4), when movement images be compared in the situation of image correlation, the second tagmeme illuminating street lamp is judged the glittering characteristic information that its light-sensitive element reads, when the glittering characteristic information that reads is m
1, this street lamp starts illumination, and sends m
2Glittering characteristic information, the illumination of realize extending of the second tagmeme illuminating street lamp; The 3rd tagmeme illuminating street lamp is judged the glittering characteristic information that its light-sensitive element reads, when the glittering characteristic information that reads is m
2, this street lamp starts illumination, and sends m
3Glittering characteristic information, the illumination of realize extending of the 3rd tagmeme illuminating street lamp; The rest may be inferred realizes the illumination of extending to setting the N tagmeme illuminating street lamp that extends; The glittering characteristic information that the light-sensitive element of N+1 tagmeme illuminating street lamp reads is m
nThe time, do not send the startup illumination control signal, the illumination of extending finishes, and the span of N is 3-10.
The present invention than the beneficial effect that prior art has is: the control method of a kind of Intelligent street lamp control system provided by the invention, do not need to lay special sensing unit, mainly be to obtain pavement image information by photographic images, and judge whether to send the startup illumination control signal by the brightness degree of correlation of photographic images before and after relatively, realize opening and closing automatically of street lamp, can conveniently be arranged in the existing street lamp, more bring replacement hardware by software, realized the reduction cost, improve intelligent, improve integrated level, the purpose that improves reliability and be convenient to safeguard, can be implemented in the street lighting of city and economize on electricity 50%, in intercity street lighting, economize on electricity 80%.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
In present embodiment 1, with reference to Fig. 1, be the method for the intelligence control system of single street lighting.
Step S
1, memory resets, and sets luminance threshold, by image unit photographic images first, obtains the first image.Process the first image, obtain the brightness value of all luminance points on the first image, and the statistics brightness value surpasses the number of the luminance point of luminance threshold; If surpass luminance threshold luminance point number greater than all luminance point numbers 20% and less than 80%, then with the first image as being compared Image Saving and continuing photographic images; If surpass the number of luminance point of luminance threshold greater than 80% of the number of all luminance points, then continue photographic images, repeating step (2);
Step S
2, time-lapse shooting the second image, photographic images for the second time after the time-delay obtains the second image information and with the second image image as a comparison;
Step S
3, calculate movement images and the brightness ratio that is compared the luminance point of the same position in the image;
Step S
4If the brightness ratio that calculates is then got its reciprocal value as brightness ratio less than 1;
Step S
5, calculate the first brightness ratio threshold value;
Step S
6, statistics surpasses the number of the brightness ratio of the first brightness ratio threshold value;
Step S
7, the number that judge to surpass the brightness ratio of the first brightness ratio threshold value accounts for the ratio of all brightness ratio numbers, when the number of the brightness ratio that surpasses the first brightness ratio threshold value less than 80% of all brightness ratio numbers, enter step S
9, movement images is not sent control signal with to be compared image uncorrelated; When the number of the brightness ratio that surpasses the first brightness ratio threshold value greater than all brightness ratio numbers greater than 80%, enter step S
8, again the centre processing is carried out in the brightness value of image relatively and the luminance point of the same position that is compared image, draw the brightness value after the centreization processing of each luminance point;
Step S
10, then calculate the brightness ratio of movement images and the luminance point of the same position that is compared image after centreization the processing, calculate the second brightness ratio threshold value by brightness ratio, and add up the number above the brightness ratio of the second brightness ratio threshold value;
Step S
11, statistics surpasses the number of the brightness ratio of the second brightness ratio threshold value;
Step S
12, when the number of the brightness ratio that surpasses the second brightness ratio threshold value greater than all brightness ratio numbers greater than 80%, then movement images enters step S with to be compared image uncorrelated
14, do not send the startup illumination control signal; When the number of the brightness ratio that surpasses the second brightness ratio threshold value greater than 80% of all brightness ratio numbers, then movement images enters step S with to be compared image uncorrelated
13Send the startup illumination control signal, and send glittering characteristic information, glittering characteristic information is by fixing 20ms cycle synchronisation, among each 20ms, to 15.5ms, 16ms, 16.5ms, 17ms, 17.5ms, 18ms, each time point flicker of 18.5ms, 19ms once, form altogether 8 glittering characteristic informations and be respectively m
1~ m
8, image be compared image when uncorrelated, street lamp sends m
1Glittering characteristic information; Otherwise movement images be compared image correlation, the glittering characteristic information that detects when the light-sensitive element that is arranged on the image unit both sides is m
1And the glittering characteristic information that street lamp sends also is m
1, then enter step S
15, send the lighting-off control signal, finish illumination.
In present embodiment 2, with reference to Fig. 2, the light-sensitive element in camera left side is used for reading the glittering characteristic information that the adjacent street lamp in its left side sends, and turn-off time moment that will avoid electric light source during the floor light photographic images of current street lamp.Glittering characteristic information, to 15.5ms, 16ms, 16.5ms, 17ms, 17.5ms, 18ms, each time point flicker of 18.5ms, 19ms once, forms altogether 8 glittering characteristic informations and is respectively m among each 20ms by fixing 20ms cycle synchronisation
1~ m
8The number of glittering characteristic information determines the street lamp small cup number of the extension illumination on the vehicles or pedestrians direction of advance, and the number of glittering characteristic information can be determined according to road quality classification, street lamp spacing and other factors.According to the road traffic rule of travelling, the right-hand lane of travelling as vehicle in front or pedestrian is this sidecar road, and left-hand lane is the offside track, and the span of N is 4, glittering characteristic information m
1~ m
4Be the glittering characteristic information that the photosensitive software in left side reads, be the glittering characteristic information that this side extension illumination direction sends; Below be the step of the control system schematic flow sheet of present embodiment 2, wherein define the step S among the embodiment 1
3~ S
15Be frame correlator program:
Step D
1: beginning;
Step D
3: memory resets, and sets luminance threshold;
Step D
5: obtain the first image;
Step D
7: obtain the brightness value of all luminance points on the first image, and the statistics brightness value surpasses the number of the luminance point of luminance threshold;
Step D
9: judge whether brightness value is enough above the number of the luminance point of luminance threshold:
If surpass the number of luminance point of luminance threshold less than 20% of all luminance point numbers, enter step B
9: start the floor light control signal, again photographic images;
Step B
11: the image of shooting is as being compared image storage;
Step B
13: the rear for the second time photographic images of time-delay in the floor light situation;
Step B
15: enter frame correlator program;
Step B
17: judge movement images and be compared image correlation or uncorrelated, movement images be compared image correlation, get back to step B
11Repeat to take;
If movement images be compared image correlation, then enter step B
19, send the startup illumination control signal, after lighting, sends by street lamp glittering characteristic information m
1
Meet above-mentioned step D
9If, surpass the number of luminance point of luminance threshold greater than 80% of the number of all luminance points, then do not need to start illumination control signal, enter step F
9
Step D
11If: surpass luminance threshold luminance point number greater than all luminance point numbers 20% and less than 80%, then with the first image as being compared Image Saving and continuing photographic images.
Step D
13: the rear for the second time photographic images of time-delay;
Step D
15: enter frame correlator program;
Step D
17: judge movement images and whether be compared image relevant;
Step D
19: cycle-index accumulative total, for preventing from missing the moment of flashing, need to carry out repeatedly image taking;
Step D
21If: movement images be compared image correlation, and judge whether the left side light-sensitive element of current street lamp reads glittering characteristic information m
1
Step D
23: whether glittering characteristic information m is arranged
1If there is not glittering characteristic information m
1, then enter step F
23, do not send the startup illumination control signal, then enter step D
41, judged whether glittering characteristic information m
1 '
Step D
25: if glittering characteristic information m is arranged
1, enter step F
25, judgement is that self sends or other street lamp sends; If the street lamp of front sends, then enter step F
27, self send glittering characteristic information m
2The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1, and the movement images that photographs enters step H when being compared image correlation
27, then send the lighting-off control signal;
Step D
29: not glittering characteristic information m
1, glittering characteristic information m whether
2, if glittering characteristic information m
2, enter step F
29, judge glittering characteristic information m
2That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
31, self send glittering characteristic information m
3The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1, and the movement images that photographs enters step H when being compared image correlation
31, then send the lighting-off control signal;
Step D
33: not glittering characteristic information m
2, glittering characteristic information m whether
3, if glittering characteristic information m
3, enter step F
33, judge glittering characteristic information m
3That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
35, self send glittering characteristic information m
4The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1, and the movement images that photographs enters step H when being compared image correlation
35, then send the lighting-off control signal;
Step D
37: not glittering characteristic information m
3, glittering characteristic information m whether
4, if glittering characteristic information m
4, enter step F
37, judge glittering characteristic information m
4That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
39, send the lighting-off control signal or do not start illumination control signal, do not send glittering characteristic information; The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1, and the movement images that photographs enters step H when being compared image correlation
39, then send the lighting-off control signal;
Step D
39: the glittering characteristic information that reads is not m
1~ m
4, mistake appears in program, enters step D
41, the illumination of extending finishes, again cyclic program.
Meet above-mentioned step D
21, enter step D
41, return D
5
In present embodiment 3, with reference to Fig. 3, below be the step of the control system schematic flow sheet of present embodiment 3, wherein define the step S among the embodiment 1
3~ S
15Be frame correlator program: according to the road traffic rule of travelling, the right-hand lane of travelling as vehicle in front or pedestrian is this sidecar road, and left-hand lane is the glittering characteristic information in offside track, and wherein the span of N is 4, m
1 '~ m
4 'Be the glittering characteristic information that the photosensitive software in right side reads, be the glittering characteristic information that offside extension illumination direction sends.
Step D1 among the repetition embodiment 2 ~ D21;
Step D
21If: movement images be compared image correlation, and judge whether the right side light-sensitive element of current street lamp reads glittering characteristic information m
1 '
Step D43: whether glittering characteristic information m is arranged
1 'If there is not glittering characteristic information m
1 ', then enter step F
43, do not send the startup illumination control signal, then enter step D
61, judged whether glittering characteristic information m
1
Step D
45: if glittering characteristic information m is arranged
1 ', enter step F
45, judgement is that self sends or other street lamp sends; If the street lamp of front sends, then enter step F
47, self send glittering characteristic information m
2 'The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1 ', and the movement images that photographs enters step H when being compared image correlation
47, then send the lighting-off control signal;
Step D
49: not glittering characteristic information m
1 ', glittering characteristic information m whether
2 ', if glittering characteristic information m
2 ', enter step F
49, judge glittering characteristic information m
2 'That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
51, self send glittering characteristic information m
3 'The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1 ', and the movement images that photographs enters step H when being compared image correlation
51, then send the lighting-off control signal;
Step D
53: not glittering characteristic information m
2 ', glittering characteristic information m whether
3 ', if glittering characteristic information m
3 ', enter step F
53, judge glittering characteristic information m
3 'That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
55, self send glittering characteristic information m
4 'The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1 ', and the movement images that photographs enters step H when being compared image correlation
55, then send the lighting-off control signal;
Step D
57: not glittering characteristic information m
3 ', glittering characteristic information m whether
4 ', if glittering characteristic information m
4 ', enter step F
57, judge glittering characteristic information m
4 'That oneself sends or other street lamps send; If the street lamp of front sends, then enter step F
59, then do not start illumination control signal, do not send glittering characteristic information; The m that the glittering characteristic information that reads when the photosensitive software in left side sends for self
1 ', and the movement images that photographs enters step H when being compared image correlation
59, then send the lighting-off control signal
Step D
59: the glittering characteristic information that reads is not m
1 '~ m
4 ', mistake appears in program, enters step D
61, the illumination of extending finishes.
Step D
63: get back to step D
5