Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices (e.g., smart phones or tablets) with wireless communication functions, computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on.
Referring to fig. 1, fig. 1 is a schematic flow chart of a leave request management and control method according to an embodiment of the present application, as shown in fig. 1, the leave request management and control method includes the following steps:
step 101, receiving a leave request, wherein the leave request comprises: and determining the applicant number according to the leave-asking application, acquiring an applicant and historical leave-asking records corresponding to the applicant number, and acquiring personal data corresponding to the applicant.
Optionally, a leave request is received, where the leave request includes: obtaining a preset first keyword position set by the leave asking reason and the leave asking duration, wherein the first keyword position set comprises: and one or more than one keyword position coordinates, wherein any keyword position in the first keyword position set corresponds to a keyword, and keyword matching is performed on the leave-asking application according to the first keyword position set to obtain the leave-asking reason, the leave-asking duration and the applicant number.
Further, sending an inquiry request to a server, where the inquiry request is used to request to acquire the applicant number from a pre-stored personnel information table in the server, determine an applicant corresponding to the applicant number, and send an acquisition request to the server, where the acquisition request is used to request the server to return a history leave-asking record of the applicant, receive the history leave-asking record returned by the server, and acquire a preset second keyword position set, where the second keyword position set includes: one or more than one keyword position coordinates, wherein any keyword position in the second keyword position set corresponds to a keyword, keyword matching is carried out on the leave-asking application according to the second keyword position set to obtain a plurality of leave-asking durations in the historical leave-asking records, the sum of the leave-asking durations is calculated to obtain a total duration, personal data corresponding to the applicant is obtained, the total duration corresponding to the applicant is obtained according to the personal data, whether the total duration is greater than the total duration is judged, if the total duration is greater than the total duration, the leave-asking application is rejected, and if the total duration is less than the total duration, the leave-asking application is approved.
And 102, if the request application is approved, receiving a plurality of position information returned by the terminal corresponding to the applicant, and generating a motion trail according to the plurality of position information.
In a possible example, thestep 102, receiving a plurality of location information returned by the terminal corresponding to the applicant, further includes:
21. marking the application state of the leave application as application passing, and generating a timer;
22. acquiring the timer time of the timer, judging whether the timer time is equal to or later than the leave-asking time, and if the timer time is equal to or later than the leave-asking time, sending an acquisition positioning instruction to a terminal corresponding to the applicant, wherein the acquisition positioning instruction is used for acquiring the geographic position information of the terminal;
23. acquiring an electronic map, and marking the motion trail on the electronic map;
if the leave-asking application is approved, marking the state of the leave-asking application as application passing, simultaneously generating a timer, setting the initial time of the timer as the current time, monitoring the timer, acquiring the time of the timer in real time, acquiring the leave-asking time in the leave-asking application, acquiring the leave-asking initial time from the leave-asking time, judging whether the time of the timer is equal to or later than the leave-asking initial time, acquiring a terminal corresponding to the applicant if the time of the timer is equal to or later than the leave-asking initial time, and sending an acquisition positioning instruction to the terminal, wherein the acquisition positioning instruction is used for acquiring the geographic position of the terminal; if the timer time is earlier than the leave-asking starting time, the timer is continuously monitored until the timer time is equal to or later than the leave-asking starting time.
Further, receiving a plurality of position information returned by the terminal, acquiring a pre-trained motion trail generation model, and taking the plurality of position information as the input of the motion trail generation model to obtain a motion trail corresponding to the leave-asking application; and acquiring an electronic map, and marking the motion trail on the electronic map.
And 103, judging whether the leave asking activity corresponding to the leave asking application is abnormal or not according to the motion track and the leave asking reason.
In a possible example, thestep 103, determining whether a leave asking activity corresponding to the leave asking application is abnormal according to the motion trajectory and the leave asking reason specifically includes:
a31, obtaining the grade corresponding to the applicant from the personal data, and obtaining the track judgment rule corresponding to the grade;
a32, acquiring a set place set in the trajectory judgment rule, wherein the set place set comprises one or more set places;
a33, obtaining an electronic map, marking the motion trail on the electronic map, obtaining one or more set place positions corresponding to the one or more set places, and marking the one or more set places on the electronic map according to the one or more set place positions;
a34, judging whether an overlapping area exists between the motion track and the one or more set places, and if so, acquiring the moving speed and the staying time corresponding to the overlapping area from the motion track;
a35, acquiring a preset speed threshold, judging whether the moving speed is smaller than the speed threshold, if the moving speed is larger than the speed threshold, determining that the motion track does not meet the track judgment rule, and determining that the leave-asking activity is abnormal;
a36, if the moving speed is not less than the speed threshold, obtaining a preset time threshold, judging whether the stay time is greater than the time threshold, if the stay time is greater than the time threshold, determining that the motion track does not meet the track judgment rule, and determining that the leave-asking activity is abnormal;
and A37, if the stay time is less than or equal to the time threshold, determining that the motion track meets the track judgment rule, and determining that the leave-asking activity is normal.
Wherein, before obtaining the level corresponding to the applicant from the personal data, a history record corresponding to the applicant is obtained, wherein the history record comprises: determining the personal score corresponding to the applicant according to the historical record, determining the score range corresponding to the personal score, acquiring the mapping relation between the preset score range and the grade, determining the grade corresponding to the score range according to the mapping relation between the score range and the grade, and storing the grade into the personal data corresponding to the applicant.
In step a34, determining whether there is an overlapping area between the motion trajectory and the one or more set locations, and if there is an overlapping area, acquiring the moving speed and the staying time corresponding to the overlapping area from the motion trajectory specifically includes: and judging whether a superposed area superposed with the set place set exists in the motion trail or not according to the set place set and the motion trail, if so, acquiring a part of motion trail corresponding to the superposed area, and acquiring the moving speed and the staying time corresponding to the part of motion trail from the motion trail.
The track determination rules corresponding to different levels may be the same or different, and are not limited herein.
The speed threshold may be a default speed threshold, or a speed threshold set by a user, which is not limited herein; the time threshold may be a default time threshold or a time threshold set by a user, and is not limited herein.
In a possible example, after thestep 103 of determining whether the leave asking activity corresponding to the leave asking application is abnormal according to the motion trajectory and the leave asking reason, the method further includes:
b31, determining the grade corresponding to the applicant, acquiring a preset grade threshold value, and judging whether the grade is higher than the grade threshold value;
b32, if the level is higher than the level threshold, determining an abnormal position and an abnormal time point according to the motion track, and sending a monitoring acquisition instruction to the monitoring equipment corresponding to the abnormal position, wherein the monitoring acquisition instruction is used for requesting the monitoring equipment to return to the monitoring image corresponding to the abnormal time point;
b33, receiving the monitoring image returned by the monitoring equipment, acquiring the image data of the applicant, and performing face matching on the monitoring image according to the image data;
b34, if the image data is successfully matched with the monitoring image, executing abnormal marking on the leave request, and if the image data is not successfully matched with the monitoring image, executing suspicious marking on the leave request.
In step B33, receiving the monitoring image returned by the monitoring device, obtaining image data of the applicant, and performing face matching on the monitoring image according to the image data specifically includes: acquiring a plurality of frames of images contained in the monitoring image, acquiring image data of the applicant, and starting from a first frame of the plurality of frames of images, executing a face matching operation on the image data, wherein the face matching operation comprises the following steps: acquiring one or more face images in an ith frame of image, performing feature extraction operation on the one or more face images to obtain one or more face image features corresponding to the one or more face images, performing feature extraction operation on the image data to obtain image features corresponding to the image data, performing feature matching operation on the image features and the one or more face image features, and determining that the image data is successfully matched with the monitoring image if the image features are successfully matched with any one of the one or more face image features; if the image features are not successfully matched with any one of the one or more face image features, making i equal to i +1, and continuing to execute face matching operation; and if the matching of the multi-frame image and the image data is unsuccessful, determining that the matching of the image data and the monitoring image is unsuccessful.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a leave request management and control apparatus according to an embodiment of the present application, and the leave request management and control apparatus shown in fig. 2 includes an obtainingunit 201, agenerating unit 202, and a determiningunit 203, where:
an obtainingunit 201, configured to receive a leave request, where the leave request includes: determining applicant numbers according to the leave-asking applications, acquiring applicant numbers corresponding to the applicant numbers and historical leave-asking records, and acquiring personal data corresponding to the applicant;
the generatingunit 202 is configured to receive, if the leave request application is approved, a plurality of pieces of location information returned by a terminal corresponding to the applicant, and generate a motion trajectory according to the plurality of pieces of location information;
the determiningunit 203 is configured to determine whether a leave asking activity corresponding to the leave asking application is abnormal according to the motion trajectory and the leave asking reason.
In one possible embodiment, the method for receiving a leave-applicant application comprises: leave-asking reasons and leave-asking duration, determining applicant numbers according to the leave-asking applications, acquiring applicant and historical leave-asking records corresponding to the applicant numbers, and acquiring personal data corresponding to the applicant, wherein the acquiring unit 201 is specifically configured to: receiving a leave request, the leave request comprising: obtaining a preset first keyword position set by the leave-asking reason and the leave-asking duration, wherein the first keyword position set comprises: one or more than one keyword position coordinates, wherein any keyword position in the first keyword position set corresponds to a keyword, keyword matching is carried out on the leave-asking application according to the first keyword position set, and the leave-asking reason, the leave-asking duration and the applicant number are obtained; sending a query request to a server, wherein the query request is used for requesting to acquire a prestored personnel information table in the server to query the applicant number, determining an applicant corresponding to the applicant number, sending an acquisition request to the server, the acquisition request is used for requesting the server to return a historical leave-asking record of the applicant, receiving the historical leave-asking record returned by the server, and acquiring a preset second keyword position set, wherein the second keyword position set comprises: one or more than one keyword position coordinates, wherein any keyword position in the second keyword position set corresponds to a keyword, keyword matching is carried out on the leave-asking application according to the second keyword position set to obtain a plurality of leave-asking durations in the historical leave-asking records, the sum of the leave-asking durations is calculated to obtain a total duration, personal data corresponding to the applicant is obtained, the total duration corresponding to the applicant is obtained according to the personal data, whether the total duration is greater than the total duration is judged, if the total duration is greater than the total duration, the leave-asking application is rejected, and if the total duration is less than the total duration, the leave-asking application is approved.
In a possible embodiment, in terms of receiving a plurality of pieces of location information returned by a terminal corresponding to the applicant and generating a motion trajectory according to the plurality of pieces of location information as approved by the applicant application, the generating unit 202 is specifically configured to: if the leave-asking application is approved, marking the state of the leave-asking application as application passing, simultaneously generating a timer, setting the initial time of the timer as the current time, monitoring the timer, acquiring the time of the timer in real time, acquiring the leave-asking time in the leave-asking application, acquiring the leave-asking initial time from the leave-asking time, judging whether the time of the timer is equal to or later than the leave-asking initial time, acquiring a terminal corresponding to the applicant if the time of the timer is equal to or later than the leave-asking initial time, and sending an acquisition positioning instruction to the terminal, wherein the acquisition positioning instruction is used for acquiring the geographic position of the terminal; if the timer time is earlier than the leave-asking starting time, continuously monitoring the timer until the timer time is equal to or later than the leave-asking starting time; and receiving a plurality of position information returned by the terminal, acquiring a pre-trained motion trail generation model, and taking the plurality of position information as the input of the motion trail generation model to obtain a motion trail corresponding to the leave-asking application.
In a possible embodiment, in terms of determining whether an leave-asking activity corresponding to the leave-asking application is abnormal according to the motion trajectory and the leave-asking reason, the determining unit 203 is specifically configured to: acquiring an electronic map, and marking the motion trail on the electronic map; acquiring a grade corresponding to the applicant from personal data corresponding to the applicant, acquiring a track judgment rule corresponding to the grade, and acquiring a set place set corresponding to the track judgment rule, wherein the set place set comprises one or more set places; acquiring an electronic map, marking the set place on the electronic map, judging whether the motion track and the one or more set places have an overlapped area, and acquiring the moving speed and the retention time corresponding to the overlapped area if the motion track and the one or more set places have the overlapped area; acquiring a preset speed threshold, judging whether the moving speed is smaller than the speed threshold, if so, determining that the motion track does not meet the track judgment rule, and determining that the leave-asking activity is abnormal; acquiring a preset level threshold, judging whether the level is higher than the level threshold, determining that a set place contained in the overlapping area is an abnormal position, determining that the applicant is at an abnormal time point corresponding to the abnormal position, sending a monitoring acquisition instruction to monitoring equipment corresponding to the abnormal position, wherein the monitoring acquisition instruction is used for requesting the monitoring equipment to return a monitoring image corresponding to the abnormal time point, receiving the monitoring image returned by the monitoring equipment, acquiring image data of the applicant, performing face matching on the monitoring image according to the image data, and performing abnormal marking on the leave-asking application if the data image is successfully matched with the monitoring image; and if the image data is not matched with the monitoring image successfully, executing suspicious marks on the leave application.
Wherein, this face matching specifically includes: acquiring a plurality of frames of images contained in the monitoring image, acquiring image data of the applicant, and starting from a first frame of the plurality of frames of images, executing a face matching operation on the image data, wherein the face matching operation comprises the following steps: acquiring one or more face images in an ith frame of image, performing feature extraction operation on the one or more face images to obtain one or more face image features corresponding to the one or more face images, performing feature extraction operation on the image data to obtain image features corresponding to the image data, performing feature matching operation on the image features and the one or more face image features, and determining that the image data is successfully matched with the monitoring image if the image features are successfully matched with any one of the one or more face image features; if the image features are not successfully matched with any one of the one or more face image features, making i equal to i +1, and continuing to execute face matching operation; and if the multi-frame image is not successfully matched with the image data, determining that the image data is unsuccessfully matched with the monitoring image.
Further, if the moving speed is not less than the speed threshold, obtaining a preset time threshold, judging whether the staying time is greater than the time threshold, if the staying time is greater than the time threshold, determining that the motion track does not meet the track judgment rule, and determining that the leave-asking activity is abnormal; acquiring a preset level threshold, judging whether the level is higher than the level threshold, determining that a set place contained in the overlapping area is an abnormal position, determining that the applicant is at an abnormal time point corresponding to the abnormal position, sending a monitoring acquisition instruction to monitoring equipment corresponding to the abnormal position, wherein the monitoring acquisition instruction is used for requesting the monitoring equipment to return a monitoring image corresponding to the abnormal time point, receiving the monitoring image returned by the monitoring equipment, acquiring image data of the applicant, performing face matching on the monitoring image according to the image data, and performing abnormal marking on the leave-asking application if the data image is successfully matched with the monitoring image; if the image data is unsuccessfully matched with the monitoring image, suspicious marks are executed on the leave application; if the staying time is less than the time threshold, the motion track is determined to meet the track judgment rule, and the leave-asking activity is determined to be normal.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for determining an exception of a leave-asking activity according to an embodiment of the present application, where as shown in fig. 3, the method includes:
step 301, receiving a leave request, wherein the leave request comprises: determining applicant numbers according to the leave-asking applications, acquiring applicant numbers corresponding to the applicant numbers and historical leave-asking records, and acquiring personal data corresponding to the applicant;
step 302, if the leave request is approved, generating a timer, acquiring the timer time of the timer, and determining whether the timer time is equal to or later than the leave request time, if so, sending an acquisition positioning instruction to a terminal corresponding to the applicant, wherein the acquisition positioning instruction is used for acquiring the geographic position information of the terminal;
step 303, receiving a plurality of position information returned by the terminal corresponding to the applicant, and generating a motion track according to the plurality of position information;
step 304, acquiring an electronic map, and marking the motion trail on the electronic map;
and 305, judging whether the leave asking reason corresponds to the motion trail, and determining that the leave asking activity is abnormal if the leave asking reason does not correspond to the motion trail.
For the detailed description of thesteps 301 to 305, reference may be made to the response step of the leave management and control method described in fig. 1, which is not described herein again.
The method for determining the leave-asking activity abnormity described in the embodiment of the application is applied to electronic equipment, and the geographic position information of the applicant is acquired from the start time of the applicant asking for leave by setting the timer, so that the integrity of the motion trail corresponding to the leave-asking activity is improved; whether the leave asking movement is abnormal is determined by judging whether the movement track corresponds to the leave asking reason, and the reliability of leave asking control is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another method for determining an exception of a leave asking activity according to an embodiment of the present application, where as shown in fig. 4, the method includes:
step 401, receiving a leave request, where the leave request includes: determining applicant numbers according to the leave-asking applications, acquiring applicant numbers corresponding to the applicant numbers and historical leave-asking records, and acquiring personal data corresponding to the applicant;
step 402, if the request application is approved, receiving a plurality of position information returned by the terminal corresponding to the applicant, and generating a motion track according to the plurality of position information;
step 403, acquiring an electronic map, and marking the motion trail on the electronic map;
step 404, obtaining a grade corresponding to the applicant from the personal data, and obtaining a track judgment rule corresponding to the grade;
step 405, acquiring a set place set in the trajectory judgment rule, wherein the set place set comprises one or more set places;
step 406, obtaining an electronic map, marking the motion trajectory on the electronic map, obtaining one or more set places corresponding to the one or more set places, and marking the one or more set places on the electronic map according to the one or more set places;
step 407, judging whether the motion track and the one or more set places have an overlapping area, and if so, acquiring the moving speed and the staying time corresponding to the overlapping area from the motion track;
and 408, acquiring a preset speed threshold, judging whether the moving speed is smaller than the speed threshold, if so, determining that the motion track does not meet the track judgment rule, and determining that the leave-asking activity is abnormal.
For the detailed description of thesteps 401 to 408, reference may be made to the response step of the leave management and control method described in fig. 1, which is not described herein again.
It can be seen that, in the method for determining an exception of a leave-asking activity described in the embodiment of the present application, the motion trajectory is determined according to the trajectory determination rule, if the motion trajectory does not satisfy the trajectory determination rule, the leave-asking activity is determined to be abnormal, and if the motion trajectory satisfies the trajectory determination rule, the leave-asking activity is determined to be normal.
Referring to fig. 5, fig. 5 is a schematic flowchart of a method for determining an exception of a leave-asking application according to an embodiment of the present application, where as shown in fig. 5, the method includes:
step 501, after determining that the leave-asking activity is abnormal, determining a level corresponding to the applicant, acquiring a preset level threshold, and judging whether the level is higher than the level threshold;
step 502, if the level is higher than the level threshold, determining an abnormal position and an abnormal time point according to the motion track, and sending a monitoring acquisition instruction to the monitoring equipment corresponding to the abnormal position, wherein the monitoring acquisition instruction is used for requesting the monitoring equipment to return to the monitoring image corresponding to the abnormal time point;
step 503, receiving a monitoring image returned by the monitoring equipment, acquiring image data of the applicant, and performing face matching on the monitoring image according to the image data;
and step 504, if the image data is successfully matched with the monitoring image, executing abnormal marking on the leave-asking application, and if the image data is not successfully matched with the monitoring image, executing suspicious marking on the leave-asking application.
For the detailed description of thesteps 501 to 504, reference may be made to the response step of the leave management and control method described in fig. 1, and details are not repeated here.
It can be seen that, in the method for determining an exception of a leave-asking application described in the embodiment of the present application, after determining that an activity of the leave-asking application is abnormal, by determining a level of an applicant, when the level of the applicant is greater than a level threshold, determining an abnormal position and an abnormal time point, acquiring a monitoring image acquired by a monitoring device corresponding to the abnormal position at the abnormal time point, acquiring image data of the applicant, performing a face matching operation on the image data and the monitoring image, if the matching is successful, determining that the leave-asking application is abnormal, and if the matching is unsuccessful, determining that the leave-asking application is suspicious, thereby implementing secondary judgment on the leave-asking application after determining that the activity of the leave-asking application is abnormal, and improving accuracy of leave-asking management and control.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.