Driver working state monitoring system based on software development
Technical Field
The invention relates to the technical field of monitoring data processing, in particular to a driver working state monitoring system based on software development.
Background
The method comprises the steps of capturing and analyzing requirements, designing, realizing and testing, and the like, wherein in order to meet various requirements of clients, the software development technology is developed, the application direction is wider and wider, the working state of staff is required to be monitored by depending on the software development process, in the testing stage of a monitoring system, as much as possible, errors need to be found and solved at a small cost, the method has important significance as professional staff providing service for citizens in traveling, the working state of bus drivers is monitored and early warned in time, the monitoring range is automatically adjusted in the testing process, monitoring pictures required by the clients can be effectively captured, invalid monitoring pictures are reduced, the monitoring efficiency is improved, the requirements of the clients are met more intuitively, the abnormal situation of the working state of the drivers is not judged in time, the prompt processing is carried out, and the traffic safety hidden trouble cannot be reduced to a certain extent.
Therefore, a driver operating condition monitoring system based on software development is needed to solve the above problems.
Disclosure of Invention
The invention aims to provide a driver working state monitoring system based on software development, so as to solve the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: a driver work state monitoring system based on software development is characterized in that: the system comprises: the system comprises a client information acquisition module, a main control platform, a monitoring automatic regulation module, a working state analysis module, a passenger state analysis module, a monitoring linkage module and a state adjustment prompt module;
The customer information acquisition module acquires information of different customers to the main control platform, and the method comprises the following steps: the method comprises the steps that height information of different drivers and height information of bus drivers after driver adjustment are sent to a monitoring automatic adjusting module by a main control platform, the monitoring automatic adjusting module predicts the sitting height of the drivers according to the heights of the drivers and the heights of corresponding drivers, tests whether the upper body is in an effective monitoring range or not under the dynamic state of the drivers according to the sitting heights of the different drivers and the positions of monitoring cameras, automatically adjusts the monitoring range if the upper body is not in the effective monitoring range, and simulates the working state of the drivers through a working state analyzing module after the monitoring range is adjusted: the method comprises the steps of analyzing facial expressions and hand actions of a driver, judging a passenger riding state according to a passenger body inclination proportion through the passenger state analysis module when the bus turns, comprehensively analyzing the driver riding state by combining the passenger riding state through the monitoring linkage module, and transmitting analysis results to the state adjustment prompt module, wherein the state adjustment prompt module prompts the driver to adjust the state when the driver works abnormally.
Further, the customer information acquisition module comprises a driver height acquisition unit and a driver position height acquisition unit, the height data of different drivers are acquired by the driver height acquisition unit, the driver position height data which are adjusted by the corresponding drivers are acquired by the driver position height acquisition unit, and all acquired information is transmitted to the main control platform for data storage.
Further, the automatic monitoring and adjusting module comprises a sitting height analyzing unit, a motion capturing testing unit and a monitoring range adjusting unit, wherein the sitting height analyzing unit judges sitting heights of different drivers according to received heights of the drivers and heights of driving positions, sitting height data are transmitted to the motion capturing testing unit, and the motion capturing testing unit tests whether hands and facial pictures of the drivers can be effectively captured when the drivers hold steering wheels according to an initial monitoring range: if the picture can be captured, monitoring the working state by using the initial monitoring range; and if the picture cannot be captured, adjusting the monitoring angle by using the monitoring range adjusting unit.
Further, the working state analysis module includes a working environment simulation unit and a working state test unit, the working environment simulation unit is used for simulating the working environment of a driver, in the simulation environment, the working state test unit is used for testing the facial expression and the maintenance time of the driver and the relative position of the hands of the driver and the steering wheel, the test result is transmitted to the monitoring linkage module, the passenger state analysis module includes a standing person counting unit and a body inclination measurement unit, the standing person counting unit is used for counting the number of standing persons on the bus in real time during turning, the number of persons data is transmitted to the body inclination measurement unit, the normal relative inclination angle between the body and the ground of the bus during turning is set, and the body inclination angle of the passenger is measured by the body inclination measurement unit and compared with the normal relative inclination angle: if the body inclination angle of the passengers exceeding the proportion is larger than the normal relative inclination angle during turning, judging that the driver makes an abnormality; otherwise, judging that the working state of the driver is normal, transmitting the comparison result to the monitoring linkage module, judging the comprehensive working state of the driver by the monitoring linkage module according to the test and comparison result, and reminding the driver to adjust the working state through the state adjustment prompt module if the comprehensive working state of the driver is abnormal.
Further, the height collection of different drivers is collected by the driver height collection unit to be h= { H 1,h2,...,hn }, the leg length index collection of the mahalanobis trunk of the corresponding driver is X= { X 1,X2,...,Xn }, the adjusted driver height collection of the corresponding driver is collected by the driver height collection unit to be H= { H 1,H2,...,Hn }, wherein n represents the number of drivers of the collected data, and the collected height, index and driver height data are transmitted to the main control platform.
Further, the main control platform transmits the acquired height, index and driving position height data to the sitting height analysis unit, the sitting heights of different drivers are analyzed through the sitting height analysis unit, and the vertical distance d i between the head top point and the ground when one driver sits on the driving position adjusted by the main control platform is calculated according to the following formula:
;
Wherein H i、Xi and H i respectively represent the height of the driver, the leg length index of the mahalanobis trunk and the adjusted height of the driver, the set of the vertical distances between the head top point and the ground when all drivers sit on the driver's adjusted positions is obtained to be d= { d 1,d2,...,dn }, the sitting height of the driver can be accurately judged through the relation between the height data and the leg length index of different drivers, and the vertical distances between the head top point and the ground can be calculated according to the adjusted height of the driver due to different comfortable seat heights of the drivers, so that the relative positions of the monitoring cameras and the drivers can be judged, the accurate adjustment of the monitoring range is facilitated, the invalid monitoring picture is reduced, the set of the distances is transmitted to the motion capture test unit, and the initial monitoring angle taking the head top point of the driver as the boundary is set as the initial monitoring angle The motion capture test unit tests that the horizontal distance between the monitoring camera and the vertex of the driver head is D, the vertical distance set is D '={D1 ',D2 ',...,Dn ', and the effective monitoring angle threshold value which takes the vertex of the driver head as the boundary is calculated according to the following formula:
;
Wherein D i ' represents the vertical distance between the monitoring camera and the top point of the ith driver head, and the obtained effective monitoring angle threshold value set is={,,...,ComparativeAnd: If it isThe hand and face images of the driver can be effectively captured, and the monitoring range is not required to be adjusted; if it isIndicating that the upper body of the driver is not in the effective monitoring range, the hand and face images of the driver can not be effectively captured, and the monitoring range adjusting unit is used for adjustingUp toThe aim of calculating the effective monitoring angle threshold value taking the top point of the head of the driver as the boundary according to the relative positions of the driver and the monitoring camera and the sitting heights of different drivers is to compare with the initial monitoring angle, judge whether the monitoring picture is complete or not, and be favorable for adjusting the monitoring range to obtain a complete and clear monitoring picture.
Further, the working environment simulation unit is used for simulating a working environment of a driver, in the simulated environment, the working state test unit is used for testing that a large maintenance time set of all the driver's mouths in a period from T1 to T2 is T= { T 1,T2,...,Tn }, and if the maintenance time in the set T is greater than or equal to (T2-T1)/2, the large maintenance time of the corresponding driver's mouths is excessively long; the standing person counting unit is used for counting the standing person number set of a random driver on the bus when the driver turns, wherein p= { p 1,p2,...,pm }, and the normal relative inclination angle of the body and the ground of the bus when the driver turns is set to beMeasuring the body inclination angle of the passenger by the body inclination measuring unit, andComparing, the body inclination angle is larger than that when turningThe number of people is p '={p1 ',p2 ',...,pm ', and the body inclination angle is larger than that when turningThe proportion of the number of people standing is set asWhere m represents the number of turns, ifIndicating that the turning radian of the driver is too large in the time period, counting the number of times of the excessive turning radian of the driver as a, ifIndicating that the number of times of overlarge turning radian is greater than or equal to half of the total turning number; otherwise, the number of times of overlarge turning radian is smaller than half of the total turning number, test and comparison results of a and m/2 and the maintaining time and (T2-T1)/2 in the set T are transmitted to the monitoring linkage module, when a driver generates a road noise emotion, the road noise emotion is always in an open cursory state for a long time, the phenomenon that the hands of the driver are separated from the steering wheel possibly occurs, once the driver is not careful, unexpected results are caused, the situation needs to be monitored and early-warned in time, meanwhile, the riding state of the passenger reflects the working state of the driver to a certain extent, and the accuracy of judging the working state of the driver can be improved by combining the riding state of the passenger and the emotion analysis of the driver.
Further, the monitoring linkage module judges the comprehensive working state of the driver according to the test and comparison results: in the presence of a sustain period greater than or equal to (t 2-t 1)/2 orOr when the driver leaves any one of the steering wheels, judging that the driver is abnormal; otherwise, judging that the working state of the driver is normal, if the working state is abnormal, reminding the corresponding driver to adjust the state through the state adjustment prompt module, and timely early warning and reminding the driver to adjust the emotion of the driver when the working of the driver is abnormal, so that the potential safety hazard of traffic is effectively reduced, and the uncomfortable phenomenon of passengers when riding is relieved.
Compared with the prior art, the invention has the following beneficial effects:
1. According to the invention, through simulating the working environment of a driver (bus driver), in a software testing stage, the relative positions of the monitoring cameras in the bus and the driver are judged according to the height data of the driver and the seat height data which are adjusted by the driver, and the effective monitoring angle threshold value which takes the top point of the driver head as the boundary is analyzed according to the relative positions of the driver and the monitoring cameras and the seat heights of different drivers, the effective monitoring angle threshold value is compared with the initial monitoring angle, so that whether a monitoring picture is complete or not is judged, the complete and clear monitoring picture is obtained by adjusting the monitoring range, the invalid picture in monitoring is reduced, and the monitoring efficiency is improved; after the monitoring range is adjusted, a simulated working environment of the driver is established, whether the mouth of the driver is opened or closed, the maintenance time of the mouth of the driver and whether the hands of the driver are separated from the steering wheel or not is monitored, meanwhile, the working state of the driver is analyzed by combining the judgment result of the riding state of the standing passenger in the turning process, and the driver is warned and reminded of adjusting the emotion of the driver in time when the driver works abnormally, so that the potential safety hazard of traffic is effectively reduced, and the uncomfortable phenomenon of the passenger in the riding process is relieved.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
Fig. 1 is a block diagram of a driver operating condition monitoring system based on software development according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Referring to fig. 1, the present invention provides the following technical solutions: a driver work state monitoring system based on software development is characterized in that: the system comprises: the system comprises a client information acquisition module S1, a main control platform S2, a monitoring automatic adjusting module S3, a working state analysis module S4, a passenger state analysis module S5, a monitoring linkage module S6 and a state adjustment prompting module S7;
The client information acquisition module S1 acquires information of different clients to the main control platform S2, including: the method comprises the steps that height information of different drivers and height information of bus drivers after driver adjustment are sent to a monitoring automatic adjusting module S3 by a main control platform S2, the monitoring automatic adjusting module S3 predicts the sitting height of the drivers according to the heights of the drivers and the heights of corresponding drivers, tests whether the upper body is in an effective monitoring range or not under the dynamic state of the drivers according to the sitting heights of the different drivers and the positions of monitoring cameras, automatically adjusts the monitoring range if the upper body is not in the effective monitoring range, and simulates the working state of the drivers through a working state analyzing module S4 after the monitoring range is adjusted: the facial expression and the hand actions of the driver are analyzed, meanwhile, the passenger riding state is judged according to the body inclination proportion of the passenger through the passenger state analysis module S5 when the bus turns, the monitoring linkage module S6 is combined with the passenger riding state to comprehensively analyze the working state of the driver, the analysis result is transmitted to the state adjustment prompt module S7, and the state adjustment prompt module S7 prompts the driver to adjust the state when the work of the driver is abnormal.
The customer information acquisition module S1 comprises a driver height acquisition unit and a driver position height acquisition unit, the driver height acquisition unit is used for acquiring height data of different drivers, the driver position height acquisition unit is used for acquiring the height data of the driver adjusted by the corresponding drivers, and all acquired information is transmitted to the main control platform S2 for data storage.
The monitoring automatic regulating module S3 comprises a sitting height analyzing unit, a motion capturing testing unit and a monitoring range regulating unit, wherein the sitting height analyzing unit judges the sitting heights of different drivers according to the received heights of the drivers and the heights of the drivers, the sitting height data are transmitted to the motion capturing testing unit, and the motion capturing testing unit tests whether the hands and facial pictures of the drivers can be effectively captured when the drivers hold the steering wheel according to the initial monitoring range: if the picture can be captured, monitoring the working state by using the initial monitoring range; if the picture can not be captured, the monitoring angle is adjusted by the monitoring range adjusting unit.
The working state analysis module S4 includes a working environment simulation unit and a working state test unit, the working environment simulation unit is used for simulating the working environment of a driver, in the simulation environment, the working state test unit is used for testing the facial expression and the maintenance time of the driver and the relative position of the hands of the driver and the steering wheel, the test result is transmitted to the monitoring linkage module S6, the passenger state analysis module S5 includes a standing person counting unit and a body inclination measurement unit, the standing person counting unit is used for counting the number of standing persons on the bus in real time during turning, the number of persons data is transmitted to the body inclination measurement unit, the normal relative inclination angle of the body and the ground of the bus during turning is set, and the body inclination angle of the passenger is measured by the body inclination measurement unit and compared with the normal relative inclination angle: if the body inclination angle of the passengers exceeding the proportion is larger than the normal relative inclination angle during turning, judging that the driver makes an abnormality; otherwise, judging that the working state of the driver is normal, transmitting the comparison result to the monitoring linkage module S6, judging the comprehensive working state of the driver by the monitoring linkage module S6 according to the test and comparison result, and reminding the driver to adjust the working state through the state adjustment prompt module S7 if the comprehensive working state is abnormal.
The height collection of different drivers is collected by the driver height collection unit to be h= { H 1,h2,...,hn }, the leg length index collection of the mahalanobis trunk of the corresponding driver is X= { X 1,X2,...,Xn }, the height collection of the driving position which is well adjusted by the corresponding driver is collected by the driving position height collection unit to be H= { H 1,H2,...,Hn }, wherein n represents the number of drivers of the collected data, and the collected height, index and driving position height data are transmitted to the main control platform S2.
The main control platform S2 transmits the collected height, index and driver position height data to the sitting height analysis unit, the sitting heights of different drivers are analyzed through the sitting height analysis unit, and the vertical distance d i between the head top point and the ground when a random driver sits on the driver position adjusted by the driver is calculated according to the following formula:
;
Wherein H i、Xi and H i respectively represent the height of the driver, the leg length index of the mahalanobis trunk and the adjusted height of the driver, the set of the vertical distances between the head top point and the ground when all drivers sit on the driver's adjusted positions is obtained to be d= { d 1,d2,...,dn }, the sitting height of the driver can be accurately judged through the relation between the height data and the leg length index of different drivers, and the vertical distances between the head top point and the ground can be calculated according to the adjusted height of the driver due to different comfortable seat heights of the drivers, so that the relative positions of the monitoring cameras and the drivers can be judged, the monitoring range can be conveniently and accurately adjusted, the invalid monitoring picture can be reduced, the set of the distances is transmitted to the motion capture test unit, and the initial monitoring angle taking the head top point of the driver as the boundary is set The motion capture test unit tests that the horizontal distance between the monitoring camera and the vertex of the driver head is D, the vertical distance set is D '={D1 ',D2 ',...,Dn ', and the effective monitoring angle threshold value which takes one random vertex of the driver head as a boundary is calculated according to the following formula:
;
Wherein D i ' represents the vertical distance between the monitoring camera and the top point of the ith driver head, and the obtained effective monitoring angle threshold value set is={,,...,ComparativeAnd: If it isThe hand and face images of the driver can be effectively captured, and the monitoring range is not required to be adjusted; if it isThe upper body of the driver is not in the effective monitoring range, the hands and the facial pictures of the driver can not be effectively captured, and the monitoring range adjusting unit is used for adjustingUp toThe aim of calculating the effective monitoring angle threshold value taking the head top point of the driver as the boundary according to the relative positions of the driver and the monitoring camera and the sitting heights of different drivers is to compare with the initial monitoring angle, judge whether the monitoring picture is complete or not, and facilitate the adjustment of the monitoring range to obtain a complete and clear monitoring picture.
Simulating a driver working environment by using a working environment simulation unit, in the simulated environment, using a working state test unit to test that a large maintenance time set of all driver mouths in a time period from T1 to T2 is T= { T 1,T2,...,Tn }, and if the maintenance time in the set T is greater than or equal to (T2-T1)/2, indicating that the corresponding large maintenance time of the driver mouths is overlong; the standing people counting unit is used for counting the standing people number set of a random driver on the bus when the driver turns, the standing people number set is p= { p 1,p2,...,pm }, and the normal relative inclination angle between the body and the ground of the bus when the driver turns is set to beMeasuring the body inclination angle of the passenger by using the body inclination measuring unit, andComparing, the body inclination angle is larger than that when turningThe number of people is p '={p1 ',p2 ',...,pm ', and the body inclination angle is larger than that when turningThe proportion of the number of people standing is set asWhere m represents the number of turns, ifIndicating that the turning radian of the driver is too large in the time period, counting the number of times of the excessive turning radian of the driver as a, ifIndicating that the number of times of overlarge turning radian is greater than or equal to half of the total turning number; otherwise, the number of times of overlarge turning radian is smaller than half of the total turning number, test and comparison results of a and m/2 and the maintaining time and (T2-T1)/2 in the set T are transmitted to the monitoring linkage module S6, when a driver generates a road noise emotion, the road noise emotion is always in a long-time open cursory state, the phenomenon that the hands of the driver are separated from the steering wheel possibly occurs, once the driver is not careful, unexpected results are caused, the situation needs to be monitored and early-warned in time, meanwhile, the riding state of the passenger reflects the working state of the driver to a certain extent, and the accuracy of judging the working state of the driver can be improved by combining the riding state of the passenger and emotion analysis of the driver.
The monitoring linkage module S6 judges the comprehensive working state of the driver according to the test and comparison results: in the presence of a sustain period greater than or equal to (t 2-t 1)/2 orOr when the driver leaves any one of the steering wheels, judging that the driver is abnormal; otherwise, judging that the working state of the driver is normal, if the working state is abnormal, reminding the corresponding driver to adjust the state through the state adjustment prompt module S7, and timely early warning and reminding the driver to adjust the emotion of the driver when the work of the driver is abnormal, so that the potential safety hazard of traffic can be effectively reduced, and the uncomfortable phenomenon of passengers when riding can be effectively relieved.
Embodiment one: the height collection unit of the driver collects heights of different drivers to be h= { H 1,h2,h3 } = {180, 170, 175}, the leg length index collection of the mahalanobis trunk of the corresponding driver to be X= { X 1,X2,X3 = {92, 82, 86}, the height collection unit of the driver collects the height collection of the driver adjusted to be H= { H 1,H2,H3 = {40, 34, 36}, the sitting heights of different drivers are analyzed by the sitting height analysis unit, and the sitting heights of the different drivers are calculated according to the formulaObtaining that when all drivers sit on the self-adjusted driving positions, the vertical distance set of the head top points from the ground is d= { d 1,d2,d3 = {133.8, 127.4, 130.1}, transmitting the distance set into the motion capture test unit, and setting the initial monitoring angle taking the head top points of the drivers as the boundary asThe motion capture test unit tests that the horizontal distance set of the monitoring camera and the vertex of the driver head is D=50, the vertical distance set is D '={D1 ',D2 ',D3 ' = {50, 70, 60}, and the formula is based on the following formulaObtaining the effective monitoring angle threshold value set as={,,}={,,},,,The upper body of the driver 1 is not in the effective monitoring range, and the hands and the facial images of the driver cannot be effectively captured and respectively regulated by the monitoring range regulating unitUp to。
Finally, it should be noted that: the foregoing is merely a preferred example of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.