CN110782228A - Working duration obtaining method and device, electronic equipment and storage medium - Google Patents

Working duration obtaining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110782228A
CN110782228A CN201911027673.5A CN201911027673A CN110782228A CN 110782228 A CN110782228 A CN 110782228A CN 201911027673 A CN201911027673 A CN 201911027673A CN 110782228 A CN110782228 A CN 110782228A
Authority
CN
China
Prior art keywords
image
employee
time
preset
attendance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911027673.5A
Other languages
Chinese (zh)
Inventor
苟品德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yanxi Software Information Technology Co Ltd
Original Assignee
Shanghai Yanxi Software Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yanxi Software Information Technology Co Ltd filed Critical Shanghai Yanxi Software Information Technology Co Ltd
Priority to CN201911027673.5A priority Critical patent/CN110782228A/en
Publication of CN110782228A publication Critical patent/CN110782228A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1091Recording time for administrative or management purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity

Abstract

The application provides a working duration obtaining method and device, electronic equipment and a storage medium, which are used for solving the problem that an attendance information table cannot truly reflect the working duration of attendance of an employee. The method comprises the following steps: judging whether the similarity between the obtained face image and a preset image is greater than a preset threshold value or not; if so, searching the employee identification corresponding to the preset image, and storing the employee identification and attendance time into an attendance information table, wherein the attendance time is any time from the acquisition time of the panoramic image to the searching of the employee identification corresponding to the preset image; and calculating according to the employee identification and the attendance information table to obtain the working time length of the employee corresponding to the employee identification. In the implementation process, the attendance time of the employee is stored in the attendance information table through the face recognition technology, so that the attendance information table truly records the attendance time of the employee, and the attendance information table truly reflects the working time of the employee during attendance.

Description

Working duration obtaining method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of data processing, and in particular, to a method and an apparatus for obtaining a working duration, an electronic device, and a storage medium.
Background
In the prior art, people entering and exiting a park (such as a software park or a logistics park) are authenticated and checked, and generally, after an attendance information table (or an entry and exit registration table) is obtained in two ways, the effective working time of an employee is calculated from the attendance information table. Two ways here are for example: in the first mode, the attendance information table is obtained through a handwriting registration mode, wherein the handwriting registration refers to the need of checking and registering the identity certificate or the work certificate of an entering person or an exiting person when the entering person or the exiting person enters a park or exits the park so as to authenticate and check the attendance of the entering person or the exiting person. And in the second mode, the attendance information table is obtained by a card swiping registration mode, wherein the card swiping registration refers to that the information of the staff is recorded on the entity card of the electronic chip in advance, and when the electronic chip enters the park or goes out of the park, the authentication and attendance can be realized only by swiping the card on the card punching machine to read the information of the staff on the entity card and recording the card swiping time.
In the practice of the two methods, the first method and the second method are found to have some special cases, such as: the unclear handwriting during the handwritten registration results in the loss of some access records, the fact that some persons familiar with security enter or leave the park without registration, the fact that some employees help other employees to swipe cards, or the fact that the employees go to the park to register or swipe cards after going out in the middle of work and the like. When the special condition occurs, the obtained attendance information table cannot truly reflect the working time of the attendance of the staff.
Disclosure of Invention
An object of the embodiments of the present application is to provide a working duration obtaining method, an apparatus, an electronic device, and a storage medium, which are used to solve the problem that an attendance information table cannot truly reflect the working duration of an employee during attendance.
The embodiment of the application provides a method for obtaining working duration, which comprises the following steps: judging whether the similarity between an obtained face image and a preset image is greater than a preset threshold value or not, wherein the face image is obtained by processing a panoramic image sent by an image acquisition device, the image acquisition device is aligned to a garden entrance passage, and the preset image is an image of a face of a staff, which is stored in advance and corresponds to a staff identification; if so, searching the employee identification corresponding to the preset image, and storing the employee identification and attendance time into an attendance information table, wherein the attendance time is any time from the acquisition time of the panoramic image to the searching of the employee identification corresponding to the preset image; and calculating according to the employee identification and the attendance information table to obtain the working duration of the employee corresponding to the employee identification. In the implementation process, the preset image prestored by the employee is compared with the face image obtained by processing of the image acquisition device, if the similarity of the two images is greater than the preset threshold value, the attendance time of the employee entering or leaving the park can be obtained, the attendance time is any time from the acquisition time of the panoramic image to the finding of the employee identifier, namely, the attendance time of the employee is stored in the attendance information table through the face recognition technology, so that the attendance time of the employee is truly recorded by the attendance information table, and the attendance information table truly reflects the work time of the employee during attendance.
Optionally, in this embodiment of the application, before the determining whether the similarity between the obtained face image and the preset image is greater than a preset threshold, the method further includes: receiving a panoramic image sent by the image acquisition device; judging whether a human face is detected from the panoramic image; and if so, intercepting the face image from the panoramic image. In the implementation process, the face image is obtained by intercepting the panoramic image sent by the image acquisition device, so that the accuracy of face identification is increased when the face image is identified.
Optionally, in this embodiment of the application, the calculating according to the employee identifier and the attendance information table to obtain the working hours of the employees corresponding to the employee identifier includes: searching the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table; and subtracting the earliest attendance time from the latest attendance time to obtain the working duration. In the implementation process, the accuracy of obtaining the working time length is effectively improved by subtracting the earliest attendance time from the latest attendance time of the employee corresponding to the employee identification in the attendance information table, so that the attendance information table truly reflects the working time length of the employee during attendance.
Optionally, in this embodiment of the application, subtracting the earliest attendance time from the latest attendance time to obtain the working duration includes: subtracting the earliest attendance time from the latest attendance time to obtain the residence time; and subtracting a preset rest time length from the residence time length to obtain the working time length. In the implementation process, the resident time is obtained by subtracting the earliest attendance time from the latest attendance time of the employee corresponding to the employee identifier in the attendance information table, and the preset rest time is subtracted from the obtained resident time, so that the accuracy of obtaining the working time is effectively improved, and the attendance information table truly reflects the working time of the employee during attendance.
Optionally, in this embodiment of the application, after obtaining the working time of the employee corresponding to the employee identifier, the method further includes: if the working duration is less than a first preset duration, the working duration and the employee identification are sent to a first preset device, and the first preset device is a device of a direct superior responsible person of the employee corresponding to the employee identification. In the implementation process, the working duration and the employee identification are sent to the first preset device, so that a direct superior responsible person of the employee corresponding to the employee identification can timely obtain the information of the working duration of the employee, and the employee can be correspondingly processed timely.
Optionally, in this embodiment of the application, after the sending the working duration and the face image to the first preset device, the method further includes: and if the confirmation message of the first preset device is not received within a second preset time, the working time and the employee identification are sent to a second preset device, wherein the second preset device is a device of a higher-level responsible person of a direct higher-level responsible person of the employee corresponding to the employee identification. In the implementation process, the working duration and the employee identification are sent to the second preset device, so that the higher-level responsible person of the direct higher-level responsible person of the employee can timely acquire the working duration information of the employee under the condition that the direct higher-level responsible person of the employee corresponding to the employee identification does not timely process the working duration information, and the employee can be timely and correspondingly processed.
The embodiment of the present application further provides a device for obtaining the working duration, including: the system comprises a first judgment module, a second judgment module and a third judgment module, wherein the first judgment module is used for judging whether the similarity between an obtained face image and a preset image is greater than a preset threshold value, the face image is obtained by processing a panoramic image sent by an image acquisition device, the image acquisition device is aligned to a park entrance and exit passage, and the preset image is an image of a face of an employee, which is stored in advance and corresponds to an employee identifier; the system comprises a first recording module, a second recording module and a third recording module, wherein the first recording module is used for searching a staff identification corresponding to a preset image if the similarity between an obtained face image and the preset image is greater than a preset threshold value, and storing the staff identification and attendance time into an attendance information table, wherein the attendance time is any time from the acquisition time of the panoramic image to the searching of the staff identification corresponding to the preset image; and the first obtaining module is used for calculating according to the employee identification and the attendance information table to obtain the working duration of the employee corresponding to the employee identification. In the implementation process, the preset image prestored by the employee is compared with the face image obtained by processing of the image acquisition device, if the similarity of the two images is greater than the preset threshold value, the attendance time of the employee entering or leaving the park can be obtained, the attendance time is any time from the acquisition time of the panoramic image to the finding of the employee identifier, namely, the attendance time of the employee is stored in the attendance information table through the face recognition technology, so that the attendance time of the employee is truly recorded by the attendance information table, and the attendance information table truly reflects the work time of the employee during attendance.
Optionally, in an embodiment of the present application, the method further includes: the image receiving module is used for receiving the panoramic image sent by the image acquisition device; a second judgment module for judging whether a face is detected from the panoramic image; and the image intercepting module is used for intercepting the face image from the panoramic image if the face is detected from the panoramic image.
Optionally, in an embodiment of the present application, the first obtaining module includes: the time searching module is used for searching the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table; and the second obtaining module is used for subtracting the earliest attendance time from the latest attendance time to obtain the working duration.
Optionally, in an embodiment of the present application, the method further includes: the third obtaining module is used for subtracting the earliest attendance time from the latest attendance time to obtain the residence time; and the fourth obtaining module is used for subtracting the preset rest duration from the residence duration to obtain the working duration.
Optionally, in an embodiment of the present application, the method further includes: the first sending module is used for sending the working duration and the employee identification to first preset equipment if the working duration is less than a first preset duration, wherein the first preset equipment is equipment of a direct superior responsible person of the employee corresponding to the employee identification.
Optionally, in an embodiment of the present application, the method further includes: and the second sending module is used for sending the working time length and the employee identification to second preset equipment if the confirmation message of the first preset equipment is not received within second preset time length, wherein the second preset equipment is equipment of a higher-level responsible person of a direct higher-level responsible person of the employee corresponding to the employee identification.
An embodiment of the present application further provides an electronic device, including: a processor and a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the method as described above.
The embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic front view of a first possible implementation manner of a working duration obtaining system according to an embodiment of the present application;
FIG. 2 is a schematic side view of a first possible implementation of a duration of operation acquisition system provided by an embodiment of the present application;
FIG. 3 is a schematic side view of a second possible implementation of the working duration obtaining system according to the embodiment of the present application;
fig. 4 is a schematic front view of a second possible implementation manner of the working duration obtaining system according to the embodiment of the present application;
fig. 5 is a schematic flow chart illustrating a method for capturing a face image from a panoramic image according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a working duration obtaining method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an operating duration obtaining apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Icon: 100-a working duration obtaining device; 101-an electronic device; 102-a processor; 103-a memory; 104-a storage medium; 110-a first judgment module; 111-working duration obtaining system; 112-an image acquisition device; 113-a channel; 114-a wall; 115-person; 116-a gate; 120-a first recording module; 130-first obtaining module.
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
First embodiment
Referring to fig. 1 and fig. 2, fig. 1 is a front schematic view of a first possible implementation manner of an operating duration obtaining system provided by an embodiment of the present application, and fig. 2 is a side schematic view of the first possible implementation manner of the operating duration obtaining system provided by the embodiment of the present application; the operation duration obtaining system 111 in the figure includes: an image capture device 112; this image acquisition device 112 sets up on the ceiling at top, can set up one or two according to actual demand, for example when setting up to two, personnel's 115 image that gets into garden passageway 113 is gathered to a camera, and the image that personnel gone out from garden passageway 113 is gathered to a camera. The image acquisition device 112 can be aligned with the gates 116 and the passage 113 to acquire images, the adjacent gates 116 are provided with the flap plates which are arranged oppositely, and when the flap plates which are arranged oppositely can sense that a person 115 passes through the inductor, the flap plates are contracted into the gates 116, so that the persons 115 at the two sides can pass through the passage 113; the extreme gates 116 are positioned immediately adjacent to the wall 114 so that personnel 115 can only pass through the passageway 113 in the middle of the gates 116.
Referring to fig. 3 and 4, fig. 3 is a side schematic view of a second possible implementation manner of the working duration obtaining system provided by the embodiment of the present application, and fig. 4 is a front schematic view of the second possible implementation manner of the working duration obtaining system provided by the embodiment of the present application; the description of the duration acquisition system is similar to that described above with respect to fig. 1 and 2, except that gate 116 is not shown, but rather doorway 113. The operation duration obtaining system 111 includes: an image capture device 112; the image capturing device 112 is disposed on the wall 114, where the image capturing device 112 is, for example, a wide-angle camera, and the image capturing device 112 captures panoramic images of the entering person 115 and the exiting person 115, but of course, the image capturing device 112 for capturing images of the entering person 115 may be disposed only in this way according to actual requirements, and the image capturing device 112 for capturing images of the exiting person 115 may be disposed in the way of the gate machine.
Referring to a flowchart of a method for clipping a face image from a panoramic image, which is provided in an embodiment of the present application and shown in fig. 5, it should be noted that the method for clipping a face image from a panoramic image and the method for obtaining an operating duration to be described later may be executed by an electronic device, where the electronic device may refer to a device terminal having a function of executing a computer program, and the device terminal may be, for example: personal computers, network switches, network routers, or desktop hosts, etc.; of course, the electronic device herein may also be a server, and the server refers to a device that provides computing services through a network, and the server includes: x86 server and non-x 86 server, non-x 86 server includes: mainframe, minicomputer, and UNIX server. The image acquisition device can be connected with the electronic equipment or not; when the image acquisition device is connected with the electronic equipment through a wired network or a wireless network, the method is executed by the server; when the image capturing device is not connected to the electronic device through a wired network or a wireless network, the method is performed by a device terminal provided inside the image capturing device, where the device terminal includes: a monitoring camera having an image capturing function and having a function of executing a computer program, and the like.
The method for intercepting the face image from the panoramic image comprises the following steps:
step S100: and receiving the panoramic image sent by the image acquisition device.
Image acquisition device refers to the image or video equipment when can referring to the collection staff and passing through the floodgate machine, for example fisheye camera or wide angle panorama camera etc, specifically, a fisheye camera or two fisheye cameras, when setting up two fisheye cameras, a fisheye camera sets up the entrance at the garden passageway, a fisheye camera sets up the exit at the garden passageway, of course, in specific implementation process, the entrance and the exit of garden passageway can be same place, also can set up a plurality of cameras in same place.
The panoramic image, also called a panoramic image, may refer to an image that represents the surrounding environment as much as possible by a wide-angle representation means in the embodiment of the present application.
The panoramic image acquisition mode has two modes in the embodiment of the application, wherein the first mode can be used for acquiring the panoramic image through shooting by a fisheye camera; in the second mode, a plurality of images can be obtained through shooting by a plurality of cameras, and a panoramic image can be obtained after splicing.
Step S200: it is determined whether a face is detected from the panoramic image.
The face detection means that for any given image, a certain strategy is adopted to search the image to determine whether the image contains a face, and if so, the position, size and posture of the face are returned. The manner of determining whether or not a face is detected from the panoramic image is, for example: whether the panoramic image comprises the human face and the position frame of the human face are detected from the panoramic image by using related technologies such as target recognition, a convolutional neural network and a region candidate neural network model.
Step S300: and if the face is detected from the panoramic image, intercepting a face image from the panoramic image.
The manner of capturing the face image from the panoramic image is, for example: and obtaining the position frame of the face through the related technologies such as the convolutional neural network model and the regional candidate neural network model, and intercepting the face image from the panoramic image according to the position frame of the face.
In the implementation process, the face image is obtained by intercepting the panoramic image sent by the image acquisition device, so that the accuracy of face identification is increased when the face image is identified.
Referring to fig. 6, a schematic flow chart of a method for obtaining a working duration according to an embodiment of the present application is shown, where the method includes the following steps:
step S400: and judging whether the similarity between the obtained face image and the preset image is greater than a preset threshold value or not.
It is understood that the face image is obtained by performing the clipping process on the panoramic image sent by the image capturing device in step S300.
The preset image refers to a pre-stored employee face feature image, for example: the method includes the steps of storing preset images stored in an image database in advance or preset images stored in a file system in advance, and specifically storing face feature images of all employees in a company into the image database or the distributed file system.
In a specific implementation process, the manner of determining whether the similarity between the obtained face image and the preset image is greater than a preset threshold value is, for example: whether the face image exists or not is searched in the image database or the employee face feature image in the distributed file system, or whether the employee face feature image with the similarity larger than a preset threshold value with the face image exists or not is searched in the image database or the employee face feature image in the distributed file system.
Step S500: and if the similarity between the obtained face image and the preset image is greater than a preset threshold value, searching the employee identification corresponding to the preset image, and storing the employee identification and the attendance time into an attendance information table.
The employee identifier refers to unique identification information that can identify employees within a certain range, where the unique identification information includes, for example: employee number (also called employee Identification), employee name, employee phone, employee Identification number or employee social security account number, etc.
The attendance checking time refers to any time from the acquisition time of the panoramic image to the time when the employee identifier is found, for example: the moment when the image acquisition device acquires the panoramic image, the moment when the image acquisition device transmits the panoramic image to the terminal equipment or the server, the moment when the terminal equipment or the server receives the panoramic image transmitted by the image acquisition device, the moment when the panoramic image is intercepted or the moment when a human face is detected from the panoramic image. Certainly, in a specific implementation process, there are more options for checking in at any moment, for example: the time of judging the similarity between the face image and the preset image, the time of searching the employee identification corresponding to the preset image, the time of storing the employee identification in the attendance information table and the like. In the embodiment of the application, any time from the acquisition time of the panoramic image to the time when the employee identification is found is determined as the attendance time, so that the time when the employee passes through the passage, namely, the time when the employee enters the park or goes out of the park can be approached, the accuracy of data in the attendance information table is increased, and the attendance information table truly reflects the working time of the employee during attendance.
The attendance information table refers to an entity table or an electronic table which is required to be recorded when the employee enters or leaves a work park, the entity table or the electronic table records the entry and exit information of the employee when the employee enters or leaves the work park, and the entry and exit information includes, for example: time of entry or departure, entry or departure event, employee identification, employee name, employee phone, employee identification number, or employee social security account number, and the like.
Step S600: and calculating according to the employee identification and the attendance information table to obtain the working time length of the employee corresponding to the employee identification.
In the implementation process, the preset image prestored by the employee is compared with the face image obtained by processing of the image acquisition device, if the similarity of the two images is greater than the preset threshold value, the attendance time of the employee entering or leaving the park can be obtained, the attendance time is any time from the acquisition time of the panoramic image to the finding of the employee identifier, namely, the attendance time of the employee is stored in the attendance information table through the face recognition technology, so that the attendance time of the employee is truly recorded by the attendance information table, and the attendance information table truly reflects the work time of the employee during attendance. It is understood that step S600 may include the following steps:
step S610: and searching the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table.
Certainly, look for the specific moment of the earliest attendance moment and the latest attendance moment of the staff corresponding to the staff identification from the attendance information table, can set up according to specific actual conditions, for example: this step is performed at any time from work off every day to early morning on the next day, specifically, this method step is performed at 11 pm every day, or this method step is performed at 11 pm half a day, and therefore, the specific times of looking up the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table should not be construed as a limitation to the embodiment of the present application.
The specific implementation manner of looking up the earliest attendance time and the latest attendance time of the employee corresponding to the employee identifier from the attendance information table is, for example: the earliest attendance time of the employee corresponding to the employee identification is searched from the attendance information table and is 8:11, and the latest attendance time of the employee corresponding to the employee identification is searched from the attendance information table and is 18: 11.
Step S620: and subtracting the earliest attendance time from the latest attendance time to obtain the working duration.
Continuing with the above example, the earliest attendance time of the employee corresponding to the employee identifier is searched for from the attendance information table to be 8:11, the latest attendance time of the employee corresponding to the employee identifier is searched for from the attendance information table to be 18:11, and the latest attendance time 18:11 is subtracted from the earliest attendance time 8:11, so that the working time is 10 hours.
In the implementation process, the accuracy of obtaining the working time length is effectively improved by subtracting the earliest attendance time from the latest attendance time of the employee corresponding to the employee identification in the attendance information table, so that the attendance information table truly reflects the working time length of the employee during attendance. It is understood that step S620 may include the following steps:
step S621: and subtracting the earliest attendance time from the latest attendance time to obtain the residence time.
Continuing with the above example, the latest attendance time 18:11 minus the earliest attendance time 8:11 yields a dwell time of 10 hours.
Step S622: and subtracting the preset rest time length from the residence time length to obtain the working time length.
Continuing with the above example, if the preset rest duration is, for example, 1.5 hours, and the obtained dwell duration is 10 hours, then the preset rest duration is subtracted from the 10 hours to obtain the working duration of 8.5 hours.
In the implementation process, the resident time is obtained by subtracting the earliest attendance time from the latest attendance time of the employee corresponding to the employee identifier in the attendance information table, and the preset rest time is subtracted from the obtained resident time, so that the accuracy of obtaining the working time is effectively improved, and the attendance information table truly reflects the working time of the employee during attendance.
Optionally, in this embodiment of the application, after step S600, the following step may also be included:
step S700: and if the working time is less than the first preset time, sending the working time and the employee identification to the first preset device.
The first preset device is a device of a direct superior responsible person of the employee, and the employee identification corresponds to the first preset device. In the implementation process, the working duration and the employee identification are sent to the first preset device, so that a direct superior responsible person of the employee corresponding to the employee identification can timely obtain the information of the working duration of the employee, and the employee can be correspondingly processed timely.
Step S800: and if the confirmation message of the first preset device is not received within the second preset time, sending the working time and the employee identification to the second preset device.
The second preset device is a device of a superior responsible person of a direct superior responsible person of the employee. In the implementation process, the working duration and the employee identification are sent to the second preset device, so that the higher-level responsible person of the direct higher-level responsible person of the employee can timely acquire the working duration information of the employee under the condition that the direct higher-level responsible person of the employee corresponding to the employee identification does not timely process the working duration information, and the employee can be timely and correspondingly processed.
Second embodiment
Referring to fig. 7, a schematic structural diagram of an operating duration obtaining apparatus provided in the embodiment of the present application is shown, and the embodiment of the present application provides an operating duration obtaining apparatus 100, including:
the first determining module 110 is configured to determine whether a similarity between an obtained face image and a preset image is greater than a preset threshold, where the face image is obtained by processing a panoramic image sent by an image acquisition device.
The first recording module 120 is configured to search for an employee identifier corresponding to the preset image if the similarity between the obtained face image and the preset image is greater than a preset threshold, and store the employee identifier and an attendance time into an attendance information table, where the attendance time is any time from the acquisition time of the panoramic image to the search for the employee identifier corresponding to the preset image.
The first obtaining module 130 is configured to perform calculation according to the employee identifier and the attendance information table, and obtain the working duration of the employee corresponding to the employee identifier.
In the implementation process, the preset image prestored by the employee is compared with the face image obtained by processing of the image acquisition device, if the similarity of the two images is greater than the preset threshold value, the attendance time when the employee enters or leaves the park can be obtained, the attendance time is any time from the acquisition time of the panoramic image to the time when the employee identification is found, namely, the attendance time of the employee is stored in the attendance information table through the face recognition technology, so that the attendance time of the employee is truly recorded by the attendance information table, and the attendance information table truly reflects the work time when the employee goes on duty.
Optionally, in an embodiment of the present application, the apparatus further includes:
and the image receiving module is used for receiving the panoramic image sent by the image acquisition device.
And the second judgment module is used for judging whether the face is detected from the panoramic image.
And the image intercepting module is used for intercepting a face image from the panoramic image if the face is detected from the panoramic image.
Optionally, in an embodiment of the present application, the first obtaining module includes:
and the time searching module is used for searching the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table.
And the second obtaining module is used for subtracting the earliest attendance time from the latest attendance time to obtain the working duration.
Optionally, in this embodiment of the present application, the apparatus may further include:
and the third obtaining module is used for subtracting the earliest attendance time from the latest attendance time to obtain the residence time.
And the fourth obtaining module is used for subtracting the preset rest duration from the residence duration to obtain the working duration.
Optionally, in an embodiment of the present application, the apparatus further includes:
the first sending module is used for sending the working duration and the employee identification to first preset equipment if the working duration is less than a first preset duration, and the first preset equipment is equipment of a direct superior responsible person of the employee corresponding to the employee identification.
Optionally, in this embodiment of the present application, the apparatus may further include:
and the second sending module is used for sending the working time length and the employee identification to second preset equipment if the confirmation message of the first preset equipment is not received within the second preset time length, wherein the second preset equipment is equipment of a superior responsible person of a direct superior responsible person of the employee.
It should be understood that the apparatus corresponds to the above method embodiment, and can perform the steps related to the above method embodiment, the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 8 for a schematic structural diagram of an electronic device according to an embodiment of the present application. An electronic device 101 provided in an embodiment of the present application includes: a processor 102 and a memory 103, the memory 103 storing machine readable instructions executable by the processor 102, the machine readable instructions when executed by the processor 102 performing the method as above.
The embodiment of the present application further provides a storage medium 104, where the storage medium 104 stores thereon a computer program, and the computer program is executed by the processor 102 to perform the method as above.
The storage medium 104 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application.

Claims (10)

1. A method for obtaining a duration of operation, comprising:
judging whether the similarity between an obtained face image and a preset image is greater than a preset threshold value or not, wherein the face image is obtained by processing a panoramic image sent by an image acquisition device, the image acquisition device is aligned to a garden entrance passage, and the preset image is an image of a face of a staff, which is stored in advance and corresponds to a staff identification;
if so, searching the employee identification corresponding to the preset image, and storing the employee identification and attendance time into an attendance information table, wherein the attendance time is any time from the acquisition time of the panoramic image to the searching of the employee identification corresponding to the preset image;
and calculating according to the employee identification and the attendance information table to obtain the working duration of the employee corresponding to the employee identification.
2. The method according to claim 1, before the determining whether the similarity between the obtained face image and the preset image is greater than a preset threshold, further comprising:
receiving a panoramic image sent by the image acquisition device;
judging whether a human face is detected from the panoramic image;
and if so, intercepting the face image from the panoramic image.
3. The method of claim 1, wherein the calculating according to the employee identifier and the attendance information table to obtain the working time length of the employee corresponding to the employee identifier comprises:
searching the earliest attendance time and the latest attendance time of the employee corresponding to the employee identification from the attendance information table;
and subtracting the earliest attendance time from the latest attendance time to obtain the working duration.
4. The method of claim 3, wherein subtracting the earliest attendance time from the latest attendance time to obtain the work duration comprises:
subtracting the earliest attendance time from the latest attendance time to obtain the residence time;
and subtracting a preset rest time length from the residence time length to obtain the working time length.
5. The method of any one of claims 1-4, wherein after obtaining the work hours for the employee identified by the employee, further comprising:
if the working duration is less than a first preset duration, the working duration and the employee identification are sent to a first preset device, and the first preset device is a device of a direct superior responsible person of the employee corresponding to the employee identification.
6. The method according to claim 5, wherein after the sending the working duration and the face image to the first preset device, the method further comprises:
and if the confirmation message of the first preset device is not received within a second preset time, the working time and the employee identification are sent to a second preset device, wherein the second preset device is a device of a higher-level responsible person of a direct higher-level responsible person of the employee corresponding to the employee identification.
7. An operating time length obtaining apparatus, comprising:
the system comprises a first judgment module, a second judgment module and a third judgment module, wherein the first judgment module is used for judging whether the similarity between an obtained face image and a preset image is greater than a preset threshold value, the face image is obtained by processing a panoramic image sent by an image acquisition device, the image acquisition device is aligned to a park entrance and exit passage, and the preset image is an image of a face of an employee, which is stored in advance and corresponds to an employee identifier;
the system comprises a first recording module, a second recording module and a third recording module, wherein the first recording module is used for searching a staff identification corresponding to a preset image if the similarity between an obtained face image and the preset image is greater than a preset threshold value, and storing the staff identification and attendance time into an attendance information table, wherein the attendance time is any time from the acquisition time of the panoramic image to the searching of the staff identification corresponding to the preset image;
and the first obtaining module is used for calculating according to the employee identification and the attendance information table to obtain the working duration of the employee corresponding to the employee identification.
8. The apparatus of claim 7, further comprising:
the image receiving module is used for receiving the panoramic image sent by the image acquisition device;
a second judgment module for judging whether a face is detected from the panoramic image;
and the image intercepting module is used for intercepting the face image from the panoramic image if the face is detected from the panoramic image.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1-6.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201911027673.5A 2019-10-25 2019-10-25 Working duration obtaining method and device, electronic equipment and storage medium Pending CN110782228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911027673.5A CN110782228A (en) 2019-10-25 2019-10-25 Working duration obtaining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911027673.5A CN110782228A (en) 2019-10-25 2019-10-25 Working duration obtaining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110782228A true CN110782228A (en) 2020-02-11

Family

ID=69386850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911027673.5A Pending CN110782228A (en) 2019-10-25 2019-10-25 Working duration obtaining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110782228A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832541A (en) * 2020-08-10 2020-10-27 北京灵汐科技有限公司 Working time length determining system, method and storage medium
CN112183945A (en) * 2020-09-04 2021-01-05 康佳集团股份有限公司 Station control method, terminal, station control system and storage medium
CN112633749A (en) * 2020-12-31 2021-04-09 河南橡树智能科技有限公司 Staff working time counting method, system and medium based on face recognition
CN113159415A (en) * 2021-04-19 2021-07-23 武汉亿融信科科技有限公司 Intelligent tourist attraction route recommendation method based on mobile internet and big data analysis
CN116824724A (en) * 2023-08-30 2023-09-29 深圳市永兴元科技股份有限公司 Network card punching timing management method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368317A (en) * 2011-11-01 2012-03-07 苏州万戈软件科技有限公司 Employee attendance checking method based on offline client computer time correction
JP2016105261A (en) * 2014-12-01 2016-06-09 株式会社DSi Attendance monitor device, attendance management method, attendance management system and program
CN108346191A (en) * 2018-02-06 2018-07-31 中国平安人寿保险股份有限公司 Work attendance method, device, computer equipment and storage medium
CN108876276A (en) * 2017-06-02 2018-11-23 北京旷视科技有限公司 Automatic Work attendance method and device based on recognition of face
CN109389357A (en) * 2017-08-11 2019-02-26 钉钉控股(开曼)有限公司 Attendance setting method and device
CN109741476A (en) * 2018-12-27 2019-05-10 北京金山安全软件有限公司 Attendance system
CN109934949A (en) * 2019-03-12 2019-06-25 上海商汤智能科技有限公司 Work attendance method and device, equipment, storage medium
CN110059604A (en) * 2019-04-10 2019-07-26 清华大学 The network training method and device that uniform depth face characteristic extracts
CN110189111A (en) * 2019-06-06 2019-08-30 名创优品(横琴)企业管理有限公司 Work attendance method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368317A (en) * 2011-11-01 2012-03-07 苏州万戈软件科技有限公司 Employee attendance checking method based on offline client computer time correction
JP2016105261A (en) * 2014-12-01 2016-06-09 株式会社DSi Attendance monitor device, attendance management method, attendance management system and program
CN108876276A (en) * 2017-06-02 2018-11-23 北京旷视科技有限公司 Automatic Work attendance method and device based on recognition of face
CN109389357A (en) * 2017-08-11 2019-02-26 钉钉控股(开曼)有限公司 Attendance setting method and device
CN108346191A (en) * 2018-02-06 2018-07-31 中国平安人寿保险股份有限公司 Work attendance method, device, computer equipment and storage medium
CN109741476A (en) * 2018-12-27 2019-05-10 北京金山安全软件有限公司 Attendance system
CN109934949A (en) * 2019-03-12 2019-06-25 上海商汤智能科技有限公司 Work attendance method and device, equipment, storage medium
CN110059604A (en) * 2019-04-10 2019-07-26 清华大学 The network training method and device that uniform depth face characteristic extracts
CN110189111A (en) * 2019-06-06 2019-08-30 名创优品(横琴)企业管理有限公司 Work attendance method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832541A (en) * 2020-08-10 2020-10-27 北京灵汐科技有限公司 Working time length determining system, method and storage medium
CN112183945A (en) * 2020-09-04 2021-01-05 康佳集团股份有限公司 Station control method, terminal, station control system and storage medium
CN112633749A (en) * 2020-12-31 2021-04-09 河南橡树智能科技有限公司 Staff working time counting method, system and medium based on face recognition
CN113159415A (en) * 2021-04-19 2021-07-23 武汉亿融信科科技有限公司 Intelligent tourist attraction route recommendation method based on mobile internet and big data analysis
CN116824724A (en) * 2023-08-30 2023-09-29 深圳市永兴元科技股份有限公司 Network card punching timing management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110782228A (en) Working duration obtaining method and device, electronic equipment and storage medium
WO2019134346A1 (en) Face recognition method, application server, and computer-readable storage medium
WO2019091012A1 (en) Security check method based on facial recognition, application server, and computer readable storage medium
US8634601B2 (en) Surveillance-based high-resolution facial recognition
JP6406246B2 (en) Object identification device, object identification method, and object identification program
KR102177235B1 (en) An attendance check system using deep learning based face recognition
JP2006221355A (en) Monitoring device and monitoring system
CN113837030B (en) Personnel intelligent management and control method and system for epidemic situation prevention and control and computer equipment
CN109784231B (en) Security information management method, device and storage medium
CN110738178A (en) Garden construction safety detection method and device, computer equipment and storage medium
CN111860152A (en) Method, system, equipment and computer equipment for detecting personnel state
US10970953B2 (en) Face authentication based smart access control system
KR101534808B1 (en) Method and System for managing Electronic Album using the Facial Recognition
JP2007328572A (en) Face authentication device and face authentication method
JP2013069155A (en) Face authentication database construction method, face authentication device, and face authentication program
CN113343913A (en) Target determination method, target determination device, storage medium and computer equipment
CN111259813A (en) Face detection tracking method and device, computer equipment and storage medium
CN110930566A (en) Safe rechecking method, system and device for vehicles to and from prisons and storable medium
CN109359609B (en) Face recognition training sample acquisition method and device
JP2002304651A (en) Device and method for managing entering/leaving room, program for executing the same method and recording medium with the same execution program recorded thereon
JP5745790B2 (en) Entrance / exit management system
JP5877678B2 (en) Face authentication database management method, face authentication database management apparatus, and face authentication database management program
JP2009087033A (en) Person tracking system
CN112687044A (en) Method, system, medium, and apparatus for managing staying person
CN110674775A (en) Gate control method, device and system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200211