Invention content
The main purpose of the present invention is to provide a kind of pedestrian running red light behavioral value method, apparatus and computer-readable
Storage medium, it is intended to solve the problems, such as the existing efficiency low technical being detected to pedestrian running red light behavior.
To achieve the above object, the present invention provides a kind of pedestrian running red light behavioral value method, is applied to and pavement
The detection device that makes a dash across the red light of traffic lights communication connection, the pedestrian running red light behavioral value method include the following steps:
In the bright signal of the red light lamp that monitors the traffic lights, obtain it is current with the detection device that makes a dash across the red light
Wireless access point AP establishes the first position information of the mobile terminal of network connection;
It has currently been established in the mobile terminal of network connection, has been located at the AP based on first position information determination
First movement terminal except the corresponding fence region the AP;
The second position information of the first movement terminal is obtained every prefixed time interval in preset duration, wherein
The preset duration lights duration for the traffic lights red light;
It is true based on the second position information and the fence region when getting the second position information
Determine the corresponding user of the first movement terminal and whether there is red light violation behavior.
Further, in one embodiment, described to be determined based on the second position information and the fence region
The step of corresponding user of the first movement terminal whether there is red light violation behavior include:
It is determined in the first movement terminal with the presence or absence of positioned at the fence area based on the second position information
The second mobile terminal in domain;
When there is the second mobile terminal being located in the fence region, second mobile terminal pair is determined
There are red light violation behaviors by the user answered.
Further, in one embodiment, the region residing for detection device of making a dash across the red light is equipped with camera, the determination
After the corresponding user of second mobile terminal the step of there are red light violation behaviors, further include:
The identification information of second mobile terminal is obtained, based on the identification-information reporting violation event to default clothes
Business device;
It controls the camera and carries out photographing operation, and the picture that photographing operation obtains is uploaded to the preset service
Device.
Further, in one embodiment, described to be determined in the first movement terminal based on the second position information
Include with the presence or absence of the step of the second mobile terminal in the fence region:
Obtain the corresponding plane coordinates of the second position information, wherein the plane coordinates includes abscissa and vertical seat
Mark;
Abscissa in plane coordinates is within the scope of default abscissa and ordinate is within the scope of default ordinate
The corresponding mobile terminal of plane coordinates as the second mobile terminal.
Further, in one embodiment, the pedestrian running red light behavioral value method further includes:
In the bright signal of the red light lamp that monitors the traffic lights, in the preset duration monitoring in real time it is current whether
In the presence of the third mobile terminal for establishing network connection with the AP;
When there is the third mobile terminal for establishing network connection with the AP, it is current to obtain the third mobile terminal
The third place information;
The 4th location information of the third mobile terminal is obtained every prefixed time interval in red time interval,
Wherein, between at the time of being divided into after current time and detect the bright signal of the green light lamp of the traffic lights between the red time
Time interval;
The third is determined based on the third place information, the 4th location information and the fence region
The corresponding user of mobile terminal whether there is red light violation behavior.
Further, in one embodiment, described to be based on the third place information, the 4th location information and institute
It states fence region and determines that the step of corresponding user of the third mobile terminal whether there is red light violation behavior is wrapped
It includes:
Determine whether the third mobile terminal is located at the fence region and corresponds to based on the third place information
Road in;
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information and the fence region determine that the corresponding user of the third mobile terminal whether there is red light violation row
For.
Further, in one embodiment, described to be located at fence region correspondence in the third mobile terminal
Road except when, determine that the third mobile terminal corresponds to based on the 4th location information and the fence region
User whether there is red light violation behavior the step of include:
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information determines whether the third mobile terminal is located in the fence region;
When the third mobile terminal is located in the fence region, determine that the third mobile terminal corresponds to
User there are red light violation behaviors.
Further, in one embodiment, described in the bright signal of the red light lamp that monitors the traffic lights, acquisition is worked as
The first position information of the preceding mobile terminal for establishing network connection with the wireless access point AP of the detection device that makes a dash across the red light
Before step, the pedestrian running red light behavioral value method further includes:
When the detection device that makes a dash across the red light starts operation, the AP is created, wherein answer being equipped with detection of making a dash across the red light
When detecting the network signal of the AP with the mobile terminal of program APP, the mobile terminal establishes network company with the AP
It connects;
Make a dash across the red light the road information in region residing for detection device described in acquisition, and described in being generated based on the road information
Fence region.
In addition, to achieve the above object, the present invention also provides a kind of pedestrian running red light behavioral value device, the pedestrians
The behavioral value device that makes a dash across the red light includes:It memory, processor and is stored on the memory and can transport on the processor
Capable pedestrian running red light behavioral value program, the pedestrian running red light behavioral value program are realized when being executed by the processor
The step of pedestrian running red light behavioral value method described in any one of the above embodiments.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer can
It reads to be stored with pedestrian running red light behavioral value program on storage medium, the pedestrian running red light behavioral value program is by processor
The step of pedestrian running red light behavioral value method described in any one of the above embodiments is realized when execution.
The present invention is by the way that in the bright signal of the red light lamp that monitors the traffic lights, acquisition has currently been made a dash across the red light with described
The wireless access point AP of detection device establishes the first position information of the mobile terminal of network connection, is then based on described first
Location information determination has currently been established in the mobile terminal of network connection with the AP, is located at the corresponding fences of the AP
First movement terminal except region then obtains the first movement terminal in preset duration every prefixed time interval
Second position information, then when getting the second position information, be based on the second position information and the electronics
Fence area determines that the corresponding user of the first movement terminal whether there is red light violation behavior, can be according to mobile whole
The location information at end accurately judges that the user of the mobile terminal whether there is red light violation behavior, due to using channel radio
Letter technology improves the efficiency being detected to pedestrian running red light behavior without being influenced by weather environment.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit this hair
It is bright.
As shown in Figure 1, the pedestrian running red light behavior inspection for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to
Survey the structural schematic diagram of device.
Terminal of the embodiment of the present invention can be PC, can also be smart mobile phone, tablet computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard
Audio level 4) the packaged type terminal device with display function such as player, pocket computer.
As shown in Figure 1, the terminal may include:Processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is logical for realizing the connection between these components
Letter.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), and optional user connects
Mouth 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally the wired of standard
Interface, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be stable storage
Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned place
Manage the storage device of device 1001.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light
Sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can according to the light and shade of ambient light come
The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when mobile terminal is moved in one's ear.As
One kind of motion sensor, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, quiet
Size and the direction that can detect that gravity when only, can be used to identify mobile terminal posture application (such as horizontal/vertical screen switching, phase
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile terminal may be used also
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor are configured, details are not described herein.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1
Including than illustrating more or fewer components, either combining certain components or different components arrangement.
As shown in Figure 1, as may include operating system, network in a kind of memory 1005 of computer storage media
Communication module, Subscriber Interface Module SIM and pedestrian running red light behavioral value program.
In terminal shown in Fig. 1, network interface 1004 be mainly used for connect background server, with background server into
Row data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And locate
Reason device 1001 can be used for calling the pedestrian running red light behavioral value program stored in memory 1005.
In the present embodiment, pedestrian running red light behavioral value device includes:Memory 1005, processor 1001 and storage
On the memory 1005 and the pedestrian running red light behavioral value program that can be run on the processor 1001, wherein place
When reason device 1001 calls the pedestrian running red light behavioral value program stored in memory 1005, and execute following operation:
In the bright signal of the red light lamp that monitors the traffic lights, obtain it is current with the detection device that makes a dash across the red light
Wireless access point AP establishes the first position information of the mobile terminal of network connection;
It has currently been established in the mobile terminal of network connection, has been located at the AP based on first position information determination
First movement terminal except the corresponding fence region the AP;
The second position information of the first movement terminal is obtained every prefixed time interval in preset duration, wherein
The preset duration lights duration for the traffic lights red light;
It is true based on the second position information and the fence region when getting the second position information
Determine the corresponding user of the first movement terminal and whether there is red light violation behavior.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
It is determined in the first movement terminal with the presence or absence of positioned at the fence area based on the second position information
The second mobile terminal in domain;
When there is the second mobile terminal being located in the fence region, second mobile terminal pair is determined
There are red light violation behaviors by the user answered.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
The identification information of second mobile terminal is obtained, based on the identification-information reporting violation event to default clothes
Business device;
It controls the camera and carries out photographing operation, and the picture that photographing operation obtains is uploaded to the preset service
Device.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
Obtain the corresponding plane coordinates of the second position information, wherein the plane coordinates includes abscissa and vertical seat
Mark;
Abscissa in plane coordinates is within the scope of default abscissa and ordinate is within the scope of default ordinate
The corresponding mobile terminal of plane coordinates as the second mobile terminal.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
In the bright signal of the red light lamp that monitors the traffic lights, in the preset duration monitoring in real time it is current whether
In the presence of the third mobile terminal for establishing network connection with the AP;
When there is the third mobile terminal for establishing network connection with the AP, it is current to obtain the third mobile terminal
The third place information;
The 4th location information of the third mobile terminal is obtained every prefixed time interval in red time interval,
Wherein, between at the time of being divided into after current time and detect the bright signal of the green light lamp of the traffic lights between the red time
Time interval;
The third is determined based on the third place information, the 4th location information and the fence region
The corresponding user of mobile terminal whether there is red light violation behavior.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
Determine whether the third mobile terminal is located at the fence region and corresponds to based on the third place information
Road in;
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information and the fence region determine that the corresponding user of the third mobile terminal whether there is red light violation row
For.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information determines whether the third mobile terminal is located in the fence region;
When the third mobile terminal is located in the fence region, determine that the third mobile terminal corresponds to
User there are red light violation behaviors.
Further, processor 1001 can call the pedestrian running red light behavioral value program stored in memory 1005,
Also execute following operation:
When the detection device that makes a dash across the red light starts operation, the AP is created, wherein answer being equipped with detection of making a dash across the red light
When detecting the network signal of the AP with the mobile terminal of program APP, the mobile terminal establishes network company with the AP
It connects;
Make a dash across the red light the road information in region residing for detection device described in acquisition, and described in being generated based on the road information
Fence region.
The present invention also provides a kind of pedestrian running red light behavioral value methods, are pedestrian running red light of the present invention with reference to Fig. 2, Fig. 2
The flow diagram of one embodiment of behavioral value method.
In the present embodiment, which is applied to communicate to connect with the traffic lights on pavement
The detection device that makes a dash across the red light.
Wherein, which is set to the roadside region residing for traffic lights, this makes a dash across the red light built in detection device
WIFI module, when the detection device that makes a dash across the red light starts operation, which is created wireless by the WIFI module
Access point AP, and when the AP creates completion, fence region is created, which is that currently this is red using this
Zebra stripes region in the road of green light.
It, then can wherein one for example, the region corresponding to the both sides zebra stripes of a certain road is set there are two when traffic lights
A traffic light setting one is made a dash across the red light detection device, and corresponding fence region is that the zebra stripes region also may be used certainly
To make a dash across the red light detection device in each traffic light setting one.If the region corresponding to the both sides zebra stripes of a certain road is set
There are two traffic lights, and a traffic lights are additionally provided among road, can the traffic light of two side of road be respectively set one rush it is red
Lamp inspection measurement equipment makes a dash across the red light alternatively, the traffic light among the traffic light of road side and road is respectively set one
Detection device, each fence region corresponding to detection device of making a dash across the red light is nearest apart from the detection device that makes a dash across the red light
Two traffic lights between zebra stripes region;It makes a dash across the red light inspection it is of course also possible to be respectively set one in each traffic light
Measurement equipment.
In the present embodiment, which includes the following steps:
Step S100, in the bright signal of the red light lamp that monitors the traffic lights, obtain it is current with the inspection of making a dash across the red light
The wireless access point AP of measurement equipment establishes the first position information of the mobile terminal of network connection;
In the present embodiment, the mobile terminal for detection application APP of making a dash across the red light is installed in the covering model for entering the AP
When enclosing interior, when being able to detect that the network signal of the AP, mobile terminal establishes network connection with AP at this time, specifically, the APP
After mounting, forced service and the WIFI functions of the mobile terminal can be opened, and then network connection is established with the AP, and should
Mobile terminal can establish network connection by the AP of any detection device that makes a dash across the red light in the AP and road.
In the present embodiment, which can monitor the operating status of the traffic lights in real time, monitor
When the bright signal of the red light lamps of the traffic lights, i.e., when the traffic lights have green light to be switched to when red, obtain it is current with this rush it is red
The first position information of the mobile terminal for establishing network connection of lamp inspection measurement equipment specifically can be obtained first and currently rushed with this
The identification information of the mobile terminal for establishing network connection of red light detection device, and location information is sent by the identification information
Request is obtained to currently with the mobile terminal for establishing network connection of the detection device that makes a dash across the red light, mobile terminal receiving
It when location information obtains request, obtains the location information of its own by the GPS module of the mobile terminal, and will get
Location information is sent to the detection device that makes a dash across the red light, wherein the identification information include mobile terminal unique designation code and or
The corresponding phone number of the mobile terminal.
Step S200 determines the mobile end for currently having established network connection with the AP based on the first position information
In end, the first movement terminal except the corresponding fence regions the AP;
In the present embodiment, when getting first position information, determination has currently established network connection with the AP
In mobile terminal, the first movement terminal being located at except the corresponding fence regions the AP is deleted and has currently been built with AP
The mobile terminal being located in the mobile terminal of vertical network connection in fence region, to avoid horse will be crossed when green light is lighted
Road and the user that the user to go across the road is mistaken for the behavior of making a dash across the red light is not completed when red light is lighted.
Step S300 obtains the second confidence of the first movement terminal in preset duration every prefixed time interval
Breath, wherein the preset duration lights duration for the traffic lights red light;
Wherein, prefixed time interval can be rationally arranged, for example, the prefixed time interval may be configured as 0.3S,
0.5S etc..
In the present embodiment, it when determining first movement terminal, is obtained within a preset time interval every prefixed time interval
The second position information of the first movement terminal is taken, specifically, the detection device that makes a dash across the red light is transmittable to obtain request to first
Mobile terminal, when receiving acquisition request, which can pass through GPS moulds in real time or every prefixed time interval
Block obtains the location information of its own, and is sent to the location information of its own every prefixed time interval in preset duration
The detection device that makes a dash across the red light, the location information which receives are second position information.
Step S400 is enclosed when getting the second position information based on the second position information and the electronics
Column region determines that the corresponding user of the first movement terminal whether there is red light violation behavior.
In the present embodiment, when getting second position information every time, the second position information and the electricity are based on
Sub- fence area determines that the corresponding user of the first movement terminal whether there is red light violation behavior, specifically, is based on institute
Second position information is stated to determine in the first movement terminal with the presence or absence of the mobile end being located in the fence region
End, in the presence of judge the mobile terminal being located in the fence region there are red light violations for corresponding user
Behavior.
The pedestrian running red light behavioral value method that the present embodiment proposes, by the red light lamp for monitoring the traffic lights
When bright signal, the mobile terminal for currently having established network connection with the wireless access point AP of the detection device that makes a dash across the red light is obtained
First position information, then determined based on the first position information and currently established the movement of network connection with the AP
In terminal, the first movement terminal being located at except the corresponding fence regions the AP, then every pre- in preset duration
If time interval obtains the second position information of the first movement terminal, then when getting the second position information,
Determine that the corresponding user of the first movement terminal whether there is based on the second position information and the fence region
Red light violation behavior can accurately judge that the user of the mobile terminal whether there is according to the location information of mobile terminal
Red light violation behavior, due to using wireless communication technique without being influenced by weather environment, and then improve pedestrian is rushed it is red
The efficiency that lamp behavior is detected.Also, with carried out by camera capture compared with, will not because of camera blur-free imaging away from
Detection efficiency is influenced from the limitation deposited, which is also not present camera best position when installing
The problem of selecting and a large amount of construction survey brought to work.
Based on first embodiment, the second embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, step S400 includes:
Step S410 is determined described with the presence or absence of being located in the first movement terminal based on the second position information
The second mobile terminal in fence region;
In the present embodiment, when getting second position information every time, based on the second position, information determines the first shifting
With the presence or absence of the second mobile terminal being located in fence region in dynamic terminal, and then determine the use of the first movement terminal
With the presence or absence of the user entered in the fence region in family.
Step S420 determines that described second moves when there is the second mobile terminal being located in the fence region
There are red light violation behaviors by the corresponding user of dynamic terminal.
In the present embodiment, when there is the second mobile terminal being located in fence region, i.e., the first movement is whole
When there is the user into the fence region in the user at end, determines that the corresponding user of the second mobile terminal exists and rush
Red light violation behavior.
The pedestrian running red light behavioral approach that the present embodiment proposes, by determining described the based on the second position information
With the presence or absence of the second mobile terminal being located in the fence region in one mobile terminal, then exist positioned at described
When the second mobile terminal in fence region, determine that there are red light violations by the corresponding user of second mobile terminal
Behavior, and then realize in the user for accurately determining first movement terminal according to second position information and fence region
There are the user of red light violation behavior, the efficiency being detected to pedestrian running red light behavior is further improved.
Based on second embodiment, the 3rd embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, region residing for detection device of making a dash across the red light further includes after step S420 equipped with camera:
Step S430 obtains the identification information of second mobile terminal, is based on the identification-information reporting violation event
To predetermined server;
In the present embodiment, the corresponding user of second mobile terminal is being determined there are when red light violation behavior, obtaining
The identification information of second mobile terminal, and based on identification-information reporting violation event to predetermined server, wherein the mark is believed
Breath includes the corresponding phone number of SIM card installed in second mobile terminal, which is the clothes at traffic police center
Business device.
Step S440 controls the camera and carries out photographing operation, and the picture that photographing operation obtains is uploaded to described
Predetermined server.
In the present embodiment, make a dash across the red light camera that region residing for detection device is equipped with this make a dash across the red light detection device and
Predetermined server communicates to connect, and is determining the corresponding user of second mobile terminal there are when red light violation behavior, is controlling institute
It states camera and carries out photographing operation, and the picture that photographing operation obtains is uploaded to the predetermined server.
The pedestrian running red light behavioral approach that the present embodiment proposes, by obtaining the identification information of second mobile terminal,
Based on the identification-information reporting violation event to predetermined server, then controls the camera and carry out photographing operation, and will
The picture that photographing operation obtains is uploaded to the predetermined server, can report pedestrian running red light violation event in time, and pass through
Camera obtains pedestrian running red light evidence violating the regulations, further improves the efficiency being detected to pedestrian running red light behavior.
Based on second embodiment, the fourth embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, step S410 includes:
Step S411 obtains the corresponding plane coordinates of the second position information, wherein the plane coordinates includes cross
Coordinate and ordinate;
In the present embodiment, since the location information longitude and latitude of GPS perception is terrestrial coordinate system, i.e. second position information
For the coordinate in terrestrial coordinate system, the second position information is being obtained, information is converted to Euclidean the earth and sits by the second position
Coordinate, that is, plane coordinates in mark system.
Abscissa in plane coordinates is within the scope of default abscissa and ordinate is in default indulge and sits by step S412
The corresponding mobile terminal of plane coordinates in range is marked as the second mobile terminal.
Wherein, the coordinate range that abscissa range and default ordinate are ranging from determined according to fence region is preset.
In the present embodiment, when getting the corresponding plane coordinates of second position information, horizontal seat in plane coordinates is obtained
Mark is within the scope of default abscissa and ordinate is in the plane coordinates within the scope of default ordinate, and will be by plane coordinates
Middle abscissa is within the scope of default abscissa and ordinate is in the corresponding shifting of plane coordinates within the scope of default ordinate
Dynamic terminal is as the second mobile terminal.
As shown in figure 3, by taking the fence region of rectangular area as an example, right angle is established as origin using pavement point A
Coordinate system, by the longitude and latitude degrees of data of four points A, B, C, D of pavement rectangle (can GPS measurements on the spot obtain), by coordinate translation
Obtain (xi,yi) i=A, B, C, D.
The E that sets up an office is that the longitude and latitude degrees of data of collected pedestrian passes through step 1 Euclidean coordinate, using step 2 coordinate translation
Obtain the coordinate i.e. corresponding plane coordinates of second position information, then judge E points whether in fence region i.e. in rectangle region
The method in domain is:xE>xAAnd xE<xD, while meeting yE>yAAnd yE<yC。
The pedestrian running red light behavioral approach that the present embodiment proposes, by obtaining the corresponding plane of the second position information
Abscissa in plane coordinates is within the scope of default abscissa and ordinate is in flat within the scope of default ordinate by coordinate
The corresponding mobile terminal of areal coordinate can accurately be sentenced as the second mobile terminal according to the plane coordinates of second position information
Disconnected red light violation behavior, further improves the efficiency being detected to pedestrian running red light behavior.
Based on first embodiment, the 5th embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, which further includes:
Step S500 is monitored in the bright signal of the red light lamp that monitors the traffic lights in the preset duration in real time
It is current to whether there is the third mobile terminal that network connection is established with the AP;
In the present embodiment, the user of the mobile terminal of network connection is established after bright to red light lamp with the AP for realization
The detection for carrying out red light violation behavior, in the bright signal of the red light lamp that monitors the traffic lights, in the preset duration
Monitoring in real time is currently with the presence or absence of the third mobile terminal for establishing network connection with the AP.
Step S600 obtains the third movement when there is the third mobile terminal for establishing network connection with the AP
The current the third place information of terminal;
In the present embodiment, when there is the third mobile terminal for establishing network connection with the AP, the third is obtained
The current the third place information of mobile terminal specifically can first obtain the identification information of third mobile terminal, and pass through the mark
Know information and sends location information acquisition request to third mobile terminal, when receiving location information acquisition request, third movement
Terminal obtains the location information of its own by the GPS module, and the location information got is sent to the detection of making a dash across the red light
Equipment, wherein the identification information includes the unique designation code and or the corresponding cell-phone number of the mobile terminal of third mobile terminal
Code.
Step S700 obtains the 4th of the third mobile terminal the in red time interval every prefixed time interval
Location information, wherein the bright signal of green light lamp of the traffic lights is divided into after current time and detected between the red time
Time interval between moment;
Step S800 is determined based on the third place information, the 4th location information and the fence region
The corresponding user of the third mobile terminal whether there is red light violation behavior.
In the present embodiment, when getting the third place information, every prefixed time interval in red time interval
Obtain the 4th location information of the third mobile terminal, and according to the third place information, the 4th location information and described
Fence region determines that the corresponding user of the third mobile terminal whether there is red light violation behavior, specifically, first
It determines whether third mobile terminal is located in the corresponding road in the fence region based on the third place information, that is, determines
Whether the user of the third mobile terminal is interior driver or passenger, is located at the electronics in the third mobile terminal
When except the corresponding road in fence area, the third is determined based on the 4th location information and the fence region
The corresponding user of mobile terminal whether there is red light violation behavior.
The pedestrian running red light behavioral approach that the present embodiment proposes, by the bright letter of red light lamp for monitoring the traffic lights
Number when, in the preset duration monitoring in real time currently with the presence or absence of establishing the third mobile terminal of network connection with the AP,
Then when there is the third mobile terminal for establishing with the AP network connection, obtain the third mobile terminal it is current the
Three location informations then obtain the 4th of the third mobile terminal in red time interval every prefixed time interval
Confidence ceases, and is then based on the third place information, the 4th location information and the fence region and determines described the
The corresponding user of three mobile terminals whether there is red light violation behavior, and then realize it is bright to red light lamp after built with the AP
The user of the mobile terminal of vertical network connection carries out the detection of red light violation behavior, further improves pedestrian running red light and disobeys
The efficiency of chapter behavioral value.
Based on the 5th embodiment, the sixth embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, step S800 includes:
Step S810 determines whether the third mobile terminal encloses positioned at the electronics based on the third place information
In the corresponding road in column region;
In the present embodiment, it improves the third place information and determines whether third mobile terminal is located at fence region pair
In the road answered, i.e., whether the mobile terminal is located in the road, to determine whether the user of the third mobile terminal is interior
Driver or passenger.
Step S820 is based on when the third mobile terminal is located at except the corresponding road in the fence region
4th location information and the fence region determine that the corresponding user of the third mobile terminal is red with the presence or absence of rushing
Lamp act of violating regulations.
In the present embodiment, when the third mobile terminal is located at except the corresponding road in the fence region,
I.e. whether the user of the third mobile terminal is interior driver or passenger, is based on the 4th location information and the electricity
Sub- fence area determines that the corresponding user of the third mobile terminal whether there is red light violation behavior, to avoid to car
Driver or passenger carry out red light violation behavior wrong report.
The pedestrian running red light behavioral approach that the present embodiment proposes, by determining described the based on the third place information
Whether three mobile terminals are located in the corresponding road in the fence region, are then located at institute in the third mobile terminal
When stating except the corresponding road in fence region, institute is determined based on the 4th location information and the fence region
It states the corresponding user of third mobile terminal and whether there is red light violation behavior, can avoid to interior driver or passenger
The wrong report for carrying out red light violation behavior further improves the efficiency of pedestrian running red light act of violating regulations detection.
Based on sixth embodiment, the 7th embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, step S820 includes
Step S821 is based on when the third mobile terminal is located at except the corresponding road in the fence region
4th location information determines whether the third mobile terminal is located in the fence region;
Step S822 determines the third movement when the third mobile terminal is located in the fence region
There are red light violation behaviors by the corresponding user of terminal.
In the present embodiment, when the third mobile terminal is located at except the corresponding road in the fence region,
If determining that third mobile terminal is located in the fence region according to the 4th location information, it is determined that the third movement
There are red light violation behaviors by the corresponding user of terminal, specifically, if the cross in the corresponding plane coordinates of the 4th location information
Coordinate is in the ordinate within the scope of default abscissa and in the corresponding plane coordinates of the 4th location information and is in default vertical
In coordinate range, then judge that there are red light violation behaviors by the corresponding user of the third mobile terminal.
The pedestrian running red light behavioral approach that the present embodiment proposes, by being located at the electronics in the third mobile terminal
When except the corresponding road in fence area, determine whether the third mobile terminal is located at institute based on the 4th location information
It states in fence region;Then when the third mobile terminal is located in the fence region, the third is determined
There are red light violation behaviors accurately to be judged according to the plane coordinates of second position information by the corresponding user of mobile terminal
Red light violation behavior, and then realize and accurately determine that the third moves according to the 4th location information and fence region
In the user of terminal whether be red light violation behavior user, further improve and pedestrian running red light behavior be detected
Efficiency.
Based on above-described embodiment, the 8th embodiment of pedestrian running red light behavioral value method of the present invention is proposed, in this implementation
In example, before step S100, which further includes:
When the detection device that makes a dash across the red light starts operation, the AP is created, wherein answer being equipped with detection of making a dash across the red light
When detecting the network signal of the AP with the mobile terminal of program APP, the mobile terminal establishes network company with the AP
It connects;
Make a dash across the red light the road information in region residing for detection device described in acquisition, and described in being generated based on the road information
Fence region.
In the present embodiment, which is set to the roadside region residing for traffic lights, the detection of making a dash across the red light
WIFI module built in equipment, when the detection device that makes a dash across the red light starts operation, which passes through the WIFI module
Wireless access point AP is created, and when the AP creates completion, create fence region, which is currently should
Using the zebra stripes region in the road of the traffic lights.
It, then can wherein one for example, the region corresponding to the both sides zebra stripes of a certain road is set there are two when traffic lights
A traffic light setting one is made a dash across the red light detection device, and corresponding fence region is that the zebra stripes region also may be used certainly
To make a dash across the red light detection device in each traffic light setting one.If the region corresponding to the both sides zebra stripes of a certain road is set
There are two traffic lights, and a traffic lights are additionally provided among road, can the traffic light of two side of road be respectively set one rush it is red
Lamp inspection measurement equipment makes a dash across the red light alternatively, the traffic light among the traffic light of road side and road is respectively set one
Detection device, each fence region corresponding to detection device of making a dash across the red light is nearest apart from the detection device that makes a dash across the red light
Two traffic lights between zebra stripes region;It makes a dash across the red light inspection it is of course also possible to be respectively set one in each traffic light
Measurement equipment.
The present embodiment propose pedestrian running red light behavioral approach, by it is described make a dash across the red light detection device start operation when,
The AP is created, the road information in region residing for detection device of then making a dash across the red light described in acquisition, and given birth to based on the road information
At the fence region, to create AP and fence region in time, convenient for being examined to pedestrian running red light act of violating regulations
It surveys.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with pedestrian running red light behavioral value program, the pedestrian running red light behavioral value program is realized when being executed by processor
Following operation:
In the bright signal of the red light lamp that monitors the traffic lights, obtain it is current with the detection device that makes a dash across the red light
Wireless access point AP establishes the first position information of the mobile terminal of network connection;
It has currently been established in the mobile terminal of network connection, has been located at the AP based on first position information determination
First movement terminal except the corresponding fence region the AP;
The second position information of the first movement terminal is obtained every prefixed time interval in preset duration, wherein
The preset duration lights duration for the traffic lights red light;
It is true based on the second position information and the fence region when getting the second position information
Determine the corresponding user of the first movement terminal and whether there is red light violation behavior.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
It is determined in the first movement terminal with the presence or absence of positioned at the fence area based on the second position information
The second mobile terminal in domain;
When there is the second mobile terminal being located in the fence region, second mobile terminal pair is determined
There are red light violation behaviors by the user answered.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
The identification information of second mobile terminal is obtained, based on the identification-information reporting violation event to default clothes
Business device;
It controls the camera and carries out photographing operation, and the picture that photographing operation obtains is uploaded to the preset service
Device.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
Obtain the corresponding plane coordinates of the second position information, wherein the plane coordinates includes abscissa and vertical seat
Mark;
Abscissa in plane coordinates is within the scope of default abscissa and ordinate is within the scope of default ordinate
The corresponding mobile terminal of plane coordinates as the second mobile terminal.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
In the bright signal of the red light lamp that monitors the traffic lights, in the preset duration monitoring in real time it is current whether
In the presence of the third mobile terminal for establishing network connection with the AP;
When there is the third mobile terminal for establishing network connection with the AP, it is current to obtain the third mobile terminal
The third place information;
The 4th location information of the third mobile terminal is obtained every prefixed time interval in red time interval,
Wherein, between at the time of being divided into after current time and detect the bright signal of the green light lamp of the traffic lights between the red time
Time interval;
The third is determined based on the third place information, the 4th location information and the fence region
The corresponding user of mobile terminal whether there is red light violation behavior.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
Determine whether the third mobile terminal is located at the fence region and corresponds to based on the third place information
Road in;
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information and the fence region determine that the corresponding user of the third mobile terminal whether there is red light violation row
For.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
When the third mobile terminal is located at except the corresponding road in the fence region, it is based on the described 4th
Location information determines whether the third mobile terminal is located in the fence region;
When the third mobile terminal is located in the fence region, determine that the third mobile terminal corresponds to
User there are red light violation behaviors.
Further, following operation is also realized when the pedestrian running red light behavioral value program is executed by processor:
When the detection device that makes a dash across the red light starts operation, the AP is created, wherein answer being equipped with detection of making a dash across the red light
When detecting the network signal of the AP with the mobile terminal of program APP, the mobile terminal establishes network company with the AP
It connects;
Make a dash across the red light the road information in region residing for detection device described in acquisition, and described in being generated based on the road information
Fence region.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-
It is exclusive to include, so that process, method, article or system including a series of elements include not only those elements,
But also include other elements that are not explicitly listed, or further include for this process, method, article or system institute
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or system including the element.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but many situations
It is lower the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to the prior art
The part to contribute can be expressed in the form of software products, which is stored in as described above
In one storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be
Mobile phone, computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.