Disclosure of Invention
The embodiment of the invention aims to provide a work management method, a work management device and a computer readable storage medium, which can remind employees of returning borrowed materials actively, so that the materials can be used reasonably.
In order to solve the above technical problem, an embodiment of the present invention provides a work management method, including the following steps: acquiring identity information of a borrower; acquiring task information of the borrower according to the identity information, wherein the task information at least comprises task execution duration of the borrower; judging whether the task information contains material information of the borrowing object or not; when the material information exists in the task information, the state of the borrowed object is identified as a borrowed state; detecting whether the borrowing time of the borrowing object in the borrowing state exceeds the task execution time in real time; and sending first alarm information when the borrowing time exceeds the task execution time.
An embodiment of the present invention further provides a job management apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described job management method.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the work management method described above.
Compared with the prior art, the method and the device have the advantages that by acquiring the identity information of the borrower, acquiring the task information of the borrower according to the identity information, and identifying the state of the borrowed object as the borrowing state when the material information exists in the task information, the method and the device can know the material of the borrowed material and the specific identity of the borrower borrowing the material, and can ensure that the borrower can only borrow the material corresponding to the material information, so that the borrowing of the material is more reasonable and orderly, and then detect whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in real time, and because the judgment on whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time is real-time detection, the method and the device can accurately know whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in the first time, when the borrowing time exceeds the task execution time, sending first alarm information to remind a borrower of returning borrowed materials, wherein the task execution time is the longest borrowing time of the borrowed object, when the borrowing time exceeds the task execution time, the borrower is indicated not to return the borrowed object in time, and the borrower is reminded of returning the borrowed object by sending the first alarm information, so that the borrower can know that the time of the borrowed materials is overtime after receiving the first alarm information, the borrower can return the borrowed object in time, the condition that the borrowed object is not returned in time is effectively avoided, and the use of materials is more reasonable.
In addition, the detecting whether the time length of the borrowing object in the borrowing state exceeds the task execution time length in real time specifically includes: the real-time induction is used for representing first characteristic information that the borrowed object is being borrowed, and detecting whether the borrowing time exceeds the task execution time in real time according to the first characteristic information, wherein the borrowing time is the time when the first characteristic information is induced.
In addition, the task information also comprises the work area information of the borrower; when the task information includes material information of a borrowed object, before identifying that the state of the borrowed object is a borrowed state, the method further includes: defining N working areas, wherein N is a constant greater than 1; before the determining whether the material information of the borrowing object exists in the task information, the method further includes: judging whether the borrower has the authority to enter the current working area or not according to the working area information; and if the borrower has the authority to enter the current working area, judging whether the task information contains the material information of the borrowed object. When the material information of the borrowed object exists in the task information, before the state of the borrowed object is marked as the borrowing state, whether the borrower has the authority to enter the current working area is judged, it is ensured that not all people can enter any area in the greenhouse, the worker can only enter the working area corresponding to the authority of the worker, and the material in the working area is borrowed, so that the borrowing of the material and the management of the worker are more reasonable and ordered.
In addition, after the borrower has the right to enter the current working area and judges that the material information exists in the task information, the method further comprises the following steps: judging whether the borrower has the authority to borrow the materials in the current working area; and if the materials in the current working area are allowed to be borrowed, then performing real-time induction to represent the first characteristic information of the borrowed object being borrowed, and detecting whether the borrowing time length exceeds the task execution time length in real time.
In addition, after the first alarm information is sent when the borrowing time exceeds the task execution time, the method further includes: acquiring second characteristic information for representing the specific position of the borrowed object; and recording the specific position of the borrowing object according to the second characteristic information.
In addition, when the borrowing time length does not exceed the task execution time length, the method further includes: acquiring image information of the borrowing object; performing feature extraction and identification on the image information to acquire real-time feature data for representing the current state of the borrowed object; judging whether the real-time characteristic data is matched with preset characteristic data or not; and if the real-time characteristic data is not matched with the preset characteristic data, sending second alarm information. When the real-time characteristic data is not matched with the preset characteristic data, second alarm information is sent, so that the state of the borrowed object after the borrowed object is used can be known at the first time, and the influence on the next use of the borrowed object due to the fact that the borrowed object is not damaged and found in time is avoided.
In addition, the performing feature extraction and identification on the image information specifically includes: positioning and dividing the image information according to gray mathematical morphology; and denoising according to corrosion operation, and performing contour enhancement according to expansion operation.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present invention in its various embodiments. However, the technical solution claimed in the present invention can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a work management method, and the specific flow is shown in fig. 1.
S101: and acquiring the identity information of the borrower.
Specifically, in step S101, each material has unique material information, such as a two-dimensional code, a barcode, and the like, when the employee needs to borrow the material, the employee can scan the two-dimensional code of the material through the mobile terminal carried by the employee, and after the scanning is successful, the mobile terminal sends the material information of the borrowed material and the identity information of the borrower to the system.
It can be understood that, since the purpose of this step is to know who needs to borrow what materials, a card reader can be arranged beside the materials, and the staff can take the needed materials by swiping their ID cards, only the system needs to be able to finally obtain the material information of the borrowed materials and the identity information of the borrower.
S102: and acquiring the task information of the borrower according to the identity information.
Specifically, in step S102, the task information at least includes the task execution duration of the borrower, so that the subsequent step can send the first alarm information when the borrowing duration exceeds the task execution duration.
S103: and when the material information of the borrowing object exists in the task information, marking the state of the borrowing object as the borrowing state.
Specifically, in step S103, it is determined that the borrowing person has the right to borrow the borrowing object, i.e., the borrowing person has the material information of the borrowing object in the task information.
S104: and detecting whether the borrowing time of the borrowing object in the borrowing state exceeds the task execution time or not in real time, and sending first alarm information when the borrowing time exceeds the task execution time.
Specifically, in step S104, the task execution duration may be set according to actual requirements, and is preferably set to be the longest borrowing duration of each material.
It should be noted that, in this embodiment, each material is provided with a normally closed infrared switch, and the infrared switch is called a pyroelectric infrared induction switch. Any object in nature always emits infrared radiation outwards as long as the temperature is higher than absolute zero (-273 ℃), and the higher the temperature of the object is, the smaller the peak wavelength of the infrared radiation emitted by the object is, and the larger the energy of the emitted infrared radiation is. When a person enters the sensing range, the pyroelectric infrared sensor detects the change of the infrared spectrum of the human body, the load is automatically switched on, and the person is continuously switched on without leaving the sensing range; after the person leaves, the load is automatically closed in a delayed mode. The main device of the infrared sensing switch is a pyroelectric infrared sensor, a human body has a certain body temperature which is generally 36-37 ℃, so that infrared rays with specific wavelength can be emitted, 9.5um infrared rays emitted by the human body are enhanced and gathered on the infrared sensing source through a Fresnel lens, the infrared sensing source generally adopts the pyroelectric infrared sensor, the element loses charge balance when receiving the change of the infrared radiation temperature of the human body, charges are released outwards, and a follow-up circuit can trigger the switch action after detection and treatment. Therefore, when a borrower borrows materials, the infrared switch is opened, a radiation signal is sent outwards, the system starts timing after detecting the radiation signal, if the radiation signal can still be detected within the task execution time, the borrower does not return in time, and the borrowed person can know that the time for borrowing the borrowed materials is overtime after receiving the alarm information by sending the alarm information to remind the borrower to return the borrowed materials, so that the borrowed materials can be returned in time.
It is worth mentioning that, in this embodiment, after sending the first alarm information to remind the person to return the borrowed material, the method further includes obtaining second feature information used for representing a specific position of the borrowed object, and recording the specific position of the borrowed object according to the second feature information. By the method, the system can accurately know the specific position of the material, if the borrower still does not return the borrowed object after receiving the alarm information, and other people need to borrow the material, the borrowed object can be found through the specific position of the borrowed object, and therefore unnecessary loss caused by the fact that the borrowed object is not returned timely is avoided.
In addition, other information such as the number of times of sending alarm information on the same day, the number of times of accumulatively sending the alarm information and the like can be made into a table shown in the table 1, so that the problems that the materials are not returned in time can be found and solved in time.
| Region numbering | Quantity of material | Alarm type | Day alarm | Cumulative alerts | Safety problem |
| QX001 | X | X | X | X | X |
| QX002 | X | X | X | X | X |
TABLE 1
Preferably, when the borrowing time length does not exceed the task execution time length, that is, the borrower returns the borrowed object in time, the method further includes: acquiring image information of the borrowing object; performing feature extraction and identification on the image information to acquire real-time feature data for representing the current state of the borrowed object; judging whether the real-time characteristic data is matched with preset characteristic data or not; and if the real-time characteristic data is not matched with the preset characteristic data, sending second alarm information. When the real-time characteristic data is not matched with the preset characteristic data, second alarm information is sent, so that the state of the borrowed object after the borrowed object is used can be known at the first time, and the influence on the next use of the borrowed object due to the fact that the borrowed object is not damaged and found in time is avoided.
It can be understood that, in this embodiment, the control center is preset with a feature database and a backup database, the feature database stores feature samples and parameters of the monitored object, and the backup database stores video information sent by each monitoring camera and processing results of the control center; the control center captures real-time video information from each monitoring camera according to a set interval to obtain each image information, performs feature extraction and identification on each image information to obtain each real-time feature data, compares each real-time feature data with the feature sample, and sends corresponding monitored object information, real-time feature data and the unmatched condition to the display center for alarm display if the real-time feature data is unmatched with the feature sample.
Specifically, the feature extraction and identification of the image information specifically includes: according to the gray-scale mathematical morphology operation, f (x, y) is taken as an input image, b (x, y) is taken as a structural element, and the erosion operation and the expansion operation of the input image by the structural element b are respectively defined as follows:
wherein Df and Db are the definition domains of f and b respectively; (s, t) represents pixel coordinate values in x and y directions; min is a minimum function, and max is a maximum function; and f is subjected to an open operation by b, which is defined as:
the function of the on operation is to remove small particle noise, break the boundaries between objects that are stuck, smooth larger objects, but doWithout significantly changing its area.
Compared with the prior art, the method and the device have the advantages that by acquiring the identity information of the borrower, acquiring the task information of the borrower according to the identity information, and identifying the state of the borrowed object as the borrowing state when the material information exists in the task information, the method and the device can know the material of the borrowed material and the specific identity of the borrower borrowing the material, and can ensure that the borrower can only borrow the material corresponding to the material information, so that the borrowing of the material is more reasonable and orderly, and then detect whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in real time, and because the judgment on whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time is real-time detection, the method and the device can accurately know whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in the first time, when the borrowing time exceeds the task execution time, sending first alarm information to remind a borrower of returning borrowed materials, wherein the task execution time is the longest borrowing time of the borrowed object, when the borrowing time exceeds the task execution time, the borrower is indicated not to return the borrowed object in time, and the borrower is reminded of returning the borrowed object by sending the first alarm information, so that the borrower can know that the time of the borrowed materials is overtime after receiving the first alarm information, the borrower can return the borrowed object in time, the condition that the borrowed object is not returned in time is effectively avoided, and the use of materials is more reasonable.
A second embodiment of the invention relates to a method of work management. The second embodiment is a further improvement of the first embodiment, and the specific improvements are as follows: in a second embodiment of the present invention, the task information further includes work area information of the borrower; when the task information includes material information of a borrowed object, before identifying that the state of the borrowed object is a borrowed state, the method further includes: defining N working areas, wherein N is a constant greater than 1; before the determining whether the material information of the borrowing object exists in the task information, the method further includes: judging whether the borrower has the authority to enter the current working area or not according to the working area information; and if the borrower has the authority to enter the current working area, judging whether the task information contains the material information of the borrowed object. When the material information of the borrowed object exists in the task information, before the state of the borrowed object is marked as the borrowing state, whether the borrower has the authority to enter the current working area is judged, it is ensured that not all people can enter any area in the greenhouse, the worker can only enter the working area corresponding to the authority of the worker, and the material in the working area is borrowed, so that the borrowing of the material and the management of the worker are more reasonable and ordered.
As shown in fig. 2, the work management method in this embodiment specifically includes:
s201: n working areas are defined.
Specifically, in step S201, N is a constant greater than 1, and a working area can be defined by an infrared correlation device, which is called an "Active infrared intrusion detector" (Active infrared detectors) and has a basic structure including a transmitting end, a receiving end, a beam intensity indicator, an optical lens, and the like. The detection principle is that infrared rays emitted by an infrared light emitting diode are focused by an optical lens, so that the rays are transmitted to a long distance, and finally the rays are received by a photosensitive transistor at a receiving end. When an object blocks the infrared ray emitted by the emitting end, the receiving end can not receive the infrared ray, so that an alarm can be given. Infrared is an invisible light and is diffused and, after being projected, forms a cone beam in the initial path, the ideal intensity of which decays inversely square with the distance of emission as the distance of emission increases. When an object crosses its detection zone, the infrared beam is intercepted, causing an alarm.
It is worth mentioning that the greenhouse can cancel framing in the system, close infrared sensing, or expand, reduce the working area, merge the working area, the system can transmit the selected instruction to the relevant maintenance personnel according to the final selection, adjust the infrared sensing range of the hardware, and the front-end display automatically updates the mapping area according to the selection.
S202: and acquiring the identity information of the borrower.
S203: and acquiring the task information of the borrower according to the identity information.
Specifically, in step S203, the task information at least includes the task execution time length of the borrower and the work area information of the borrower.
S204: and judging whether the material information of the borrowed object exists in the task information or not when judging that the borrower has the authority to enter the current working area according to the working area information.
Specifically, in step S204, each worker has corresponding permissions, for example, the workers in the planting area can only borrow the materials in the planting area but cannot borrow the materials in the transportation area, so that anyone can not borrow all the materials in the greenhouse, and the workers can only borrow the materials corresponding to the permissions, thereby borrowing the materials more reasonably and orderly.
S205: when the material information of the borrowed object exists in the task information, sensing first characteristic information used for representing the borrowed object in real time, and detecting whether the borrowing time length exceeds the task execution time length in real time.
Specifically, in step S205, the borrowed material generally refers to a production tool in an agricultural system, and the production tool is also called a labor tool, and is an object used by people to directly process a labor object in a production process. It is used between the laborer and the laborer to conduct the laborer. Is the basic and main part of labor data, and is the mechanical labor data. From the original stone axe and the bow and arrow to the modern various machines, tools, technical equipment and the like, the machine also plays a role of conducting labor, and belongs to production tools.
S206: and when the borrowing time exceeds the task execution time, sending alarm information to remind the borrower to return the borrowed materials.
Steps S202 and S206 in this embodiment are similar to steps S101 and S104 in the first embodiment, and are not described here again to avoid redundancy.
It is worth mentioning that, in this embodiment, after the borrower has the right to enter the current work area and determines that the material information exists in the task information, the method further includes: judging whether the borrower has the authority to borrow the materials in the current working area; and if the materials in the current working area are allowed to be borrowed, then performing real-time induction to represent the first characteristic information of the borrowed object being borrowed, and detecting whether the borrowing time length exceeds the task execution time length in real time. By the method, the borrower can only borrow the materials in the specific working area, so that the materials are managed more orderly.
Compared with the prior art, the method and the device have the advantages that by acquiring the identity information of the borrower, acquiring the task information of the borrower according to the identity information, and identifying the state of the borrowed object as the borrowing state when the material information exists in the task information, the method and the device can know the material of the borrowed material and the specific identity of the borrower borrowing the material, and can ensure that the borrower can only borrow the material corresponding to the material information, so that the borrowing of the material is more reasonable and orderly, and then detect whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in real time, and because the judgment on whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time is real-time detection, the method and the device can accurately know whether the borrowing time of the borrowed object in the borrowing state exceeds the task execution time in the first time, when the borrowing time exceeds the task execution time, sending first alarm information to remind a borrower of returning borrowed materials, wherein the task execution time is the longest borrowing time of the borrowed object, when the borrowing time exceeds the task execution time, the borrower is indicated not to return the borrowed object in time, and the borrower is reminded of returning the borrowed object by sending the first alarm information, so that the borrower can know that the time of the borrowed materials is overtime after receiving the first alarm information, the borrower can return the borrowed object in time, the condition that the borrowed object is not returned in time is effectively avoided, and the use of materials is more reasonable.
A third embodiment of the present invention relates to a work management apparatus, as shown in fig. 3, including:
at least oneprocessor 301; and the number of the first and second groups,
amemory 302 communicatively coupled to the at least oneprocessor 301; wherein,
thememory 302 stores instructions executable by the at least oneprocessor 301, the instructions being executable by the at least oneprocessor 301 to enable the at least oneprocessor 301 to perform a work management method as in the first or second embodiment.
Where thememory 302 and theprocessor 301 are coupled in a bus, the bus may comprise any number of interconnected buses and bridges, the buses coupling one or more of the various circuits of theprocessor 301 and thememory 302. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by theprocessor 301 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to theprocessor 301.
Theprocessor 301 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Andmemory 302 may be used to store data used byprocessor 301 in performing operations.
A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.