Household door-to-door service anti-cheating method and system, storage medium and computer
By dynamic coding matching and encryption updates in the attendance system for home-based services, combined with monitoring of continuous communication connection time, the problem of clock-in cheating in the existing technology is solved, ensuring the effectiveness and accuracy of attendance.
Patent Information
- Application Number
- CN202510033826.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2045-01-09
AI Technical Summary
The existing home-based attendance system has a risk of cheating. Staff can use copy Bluetooth devices and simulated verification devices to cheat, resulting in the occurrence of absences.
By obtaining the dynamic encoding of the attendance equipment and verification equipment for encoding and matching, we can determine whether the staff has cheated, and encrypted and updated the attendance data after the encoding match is successful. At the same time, the communication connection time between attendance equipment and verification equipment is continuously monitored to ensure that staff work effectively in the service location.
It effectively prevents staff from using copy equipment to punch in and cheat, and ensures accurate recording of working hours, and prevents cheating of leaving after punch in.
Smart Images

Figure CN119477350A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of personnel information management, and in particular to a method, system, storage medium and computer for preventing cheating in home door-to-door service. Background Art
[0002] The existing assessment method for attendance punching in for home service is mainly mobile Bluetooth punching in or QR code punching in, combined with on-site image verification at the service location. The staff connects their own attendance equipment to the on-site verification equipment, and then transmits it to the back-end for consistency assessment. If the verification is passed, the attendance is successful, and then on-site photos of the service location are taken for verification. The staff's attendance is deemed valid through the connection between the attendance equipment and the verification equipment and the on-site photos.
[0003] However, there are many products / tools with cracking properties on the market that can easily copy the Bluetooth beacon data in Bluetooth hardware devices and simulate and copy an identical verification device. The cost of cheating is low. Workers can copy the verification device and punch in anytime and anywhere, and then cheat with several on-site images taken in advance, resulting in a large number of miners absenteeism. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide a method, system, storage medium and computer for preventing cheating in home door-to-door service to solve the technical problems existing in the prior art.
[0005] The present invention provides a method for preventing cheating in home door-to-door service, comprising: In response to the staff member performing an attendance operation, obtaining a first dynamic code in an attendance device corresponding to the staff member and a second dynamic code in a verification device at the service location; Performing code matching on the first dynamic code and the second dynamic code; If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code match fails, it is determined that the staff member has used a copy device to record attendance, which is attendance cheating.
[0006] Optionally, the step of encrypting the attendance data in the attendance device and sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code includes: Conducting a trustworthy identification on the attendance device, and storing the trustworthy identification in the verification device; Define a first shared key for the attendance device to send data to the verification device, a verification key and a second shared key for the verification device to send data to the attendance device; The attendance data is encrypted and interactively synchronized according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code.
[0007] Optionally, the expression of the trusted identifier is: , the expression of the first shared key is , the expression of the verification key is , the expression of the second shared key is ,in, For the Attendance equipment, The number of sessions between the attendance device and the verification device; The step of encrypting and interactively synchronizing the attendance data according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code includes: The attendance device uses the first shared key Encrypt the attendance data and send the trusted identifier and sending the encrypted attendance data to the verification device; The verification device is based on a stored trusted identity Identify the corresponding attendance device based on the corresponding verification key To verify, if , the verification is successful, and the second shared key is updated , and verification key , complete the update of the second dynamic code; The authentication device sends the updated second shared key Encrypt attendance data and feed it back to the attendance device; After receiving the encrypted data, the attendance device uses the first shared key To verify, if , the verification is successful, and the first shared key is updated , complete the update of the first dynamic code.
[0008] Optionally, after the attendance device is communicatively connected with the verification device, the home visit service anti-cheating method further includes: Sending a first shooting instruction to a staff member, wherein the first shooting instruction requires the staff member to shoot a panoramic image of a service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
[0009] Optionally, the step of matching the target image with the partial image within the target area includes: Performing a matching operation on the feature points in the panoramic image and the feature points in the target image, the matching operation comprising: Selecting any matching point in each of the panoramic image and the target image as the center matching point, and selecting two matching points in each of the two images according to a preset circular neighborhood; Based on the two matching points in the circular neighborhood and the center matching point, corresponding triangles are formed in the two images respectively, wherein the triangle in the panoramic image is recorded as a first triangle, and the triangle in the target image is recorded as a second triangle; Determining whether the first triangle and the second triangle are similar; If they are similar, determining that the three matching points on the first triangle match the three matching points on the second triangle; The above matching operation is repeated until all feature points in the partial image within the target area and all feature points in the target image are selected, so as to complete the matching between the target image and the partial image within the target area.
[0010] Optionally, an expression for similarity determination between the first triangle and the second triangle is:
[0011]
[0012] In the formula, is the center matching point in the first triangle, , are the other two matching points in the first triangle except the center matching point, is the center matching point in the second triangle, , are the other two matching points in the second triangle except the center matching point, is the edge ratio difference threshold, is the angle difference threshold.
[0013] The present invention also provides a home door-to-door service anti-cheating system, comprising: A response module, for obtaining, in response to the staff member performing attendance operation, a first dynamic code in the attendance device corresponding to the staff member and a second dynamic code in the verification device at the service location; A first matching module, used for performing code matching between the first dynamic code and the second dynamic code; If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code match fails, it is determined that the staff member has used a copy device to record attendance, which is attendance cheating.
[0014] Preferably, the home service anti-cheating system further includes: A second matching module is used to send a first shooting instruction to the staff, wherein the first shooting instruction requires the staff to shoot a panoramic image of the service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
[0015] The present invention also provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned home door-to-door service anti-cheating method is implemented.
[0016] The present invention also proposes a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned anti-cheating method for home service when executing the computer program.
[0017] The beneficial effects of the present invention compared with the prior art are as follows: the anti-cheating method for home door-to-door service provided by the present application first responds to the staff's attendance operation, obtains the dynamic code of the attendance device and the dynamic code of the service location verification device, performs code matching, and determines whether the staff has cheated in the past based on the matching result; if the match is successful, the dynamic code in the attendance device is encrypted and updated and synchronized to the verification device to facilitate the next clock-in verification, thereby preventing the staff from using a copy device for attendance; further, the connection time between the attendance device and the verification device is continuously obtained, and the working hours of the staff are determined based on the continuous connection time, thereby preventing the staff from leaving the service location immediately after clocking in and cheating in attendance; the anti-cheating method for home door-to-door service provided by the present application can effectively prevent the staff from using a copy device to clock in and cheating in attendance due to insufficient working hours, and is suitable for large-scale promotion.
[0018] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of the anti-cheating method for home door-to-door service in the first embodiment of the present invention; Figure 2 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.
[0020] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0021] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0023] Embodiment 1 See also Figure 1 , which shows the anti-cheating method for home door-to-door service in the first embodiment of the present invention, and the anti-cheating method for home door-to-door service specifically includes steps S10 to S20: S10, in response to the staff member performing an attendance operation, obtaining a first dynamic code in the attendance device corresponding to the staff member and a second dynamic code in the verification device at the service location; In the specific implementation, the staff are equipped with corresponding attendance equipment, and the service recipients have corresponding attendance verification equipment installed in their homes. Since the service recipients do not need to pay for it themselves, they will not pay much attention to the service hours and frequency of the staff, and most of them will not take the initiative to report to the monitoring center. Therefore, there may be a large number of staff members absent from work without the monitoring center knowing.
[0024] Optionally, in this embodiment, in response to the staff performing attendance operations, such as establishing a Bluetooth communication connection, etc., the first dynamic code in the attendance device corresponding to the staff and the second dynamic code in the verification device at the service location are obtained in a timely manner.
[0025] S20, performing code matching on the first dynamic code and the second dynamic code; Optionally, step S20 specifically includes: If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code match fails, it is determined that the staff member has used a copy device to record attendance, which is attendance cheating.
[0026] Optionally, in this embodiment, if the codes of the attendance device and the verification device match, they will automatically connect. Each time the connection is successful, the system will encrypt the attendance data for this time and synchronize the encrypted data to the corresponding verification device. Based on this, if the staff member copies a verification device, when the staff member punches in at a non-service location, the first dynamic code of the attendance device will be automatically updated and synchronized to the copied device. When the staff member punches in at the service location next time or the original verification device is spot-checked, since the verification device at the service location has not been updated, the information written into the staff member's attendance device does not match the verification device information at the service location. It can be inferred that the staff member has committed attendance cheating by using a copied device to punch in.
[0027] Furthermore, when the code is matched successfully and it is determined that the staff has not cheated in the past, it is also necessary to determine whether the staff has left after punching in. Therefore, in this embodiment, the continuous communication connection time between the attendance device and the verification device is obtained. If the continuous communication connection time between the attendance device and the verification device meets the preset requirements, it is considered that the staff has been at the service location, the working hours are qualified, and the attendance is valid, thereby preventing the staff from cheating in attendance by leaving after punching in.
[0028] Optionally, in this embodiment, the step of encrypting the attendance data in the attendance device and sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code includes: Conducting a trustworthy identification on the attendance device, and storing the trustworthy identification in the verification device; Define a first shared key for the attendance device to send data to the verification device, a verification key and a second shared key for the verification device to send data to the attendance device; The attendance data is encrypted and interactively synchronized according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code.
[0029] Furthermore, the expression of the trusted identifier is: , the expression of the first shared key is , the expression of the verification key is , the expression of the second shared key is ,in, For the Attendance equipment, The number of sessions between the attendance device and the verification device; The step of encrypting and interactively synchronizing the attendance data according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code includes: The attendance device uses the first shared key Encrypt the attendance data and send the trusted identifier and sending the encrypted attendance data to the verification device; The verification device is based on a stored trusted identity Identify the corresponding attendance device based on the corresponding verification key To verify, if , the verification is successful, and the second shared key is updated , and verification key , complete the update of the second dynamic code; The authentication device sends the updated second shared key Encrypt attendance data and feed it back to the attendance device; After receiving the encrypted data, the attendance device uses the first shared key To verify, if , the verification is successful, and the first shared key is updated , complete the update of the first dynamic code.
[0030] In this embodiment, a dynamic verification method using a shared key and a verification key combination can be used for rolling iterations. The feature of synchronous updates of two devices can be applied to a one-to-many verification and key negotiation environment to achieve dynamic updates and verifications between devices. It is understandable that there may be personnel mobility at work, and door-to-door services may be provided to different staff members at different times. The corresponding attendance devices are different, but the verification devices are fixed and installed in the homes of the service recipients. The dynamic verification method using a shared key and a verification key combination is particularly suitable for wireless communication targets. The keys in the devices participate in local updates and do not need to be sent, which reduces the update calculation amount and saves protocol resources.
[0031] In some optional embodiments, after the attendance device is communicatively connected with the verification device, the home service anti-cheating method further includes: Sending a first shooting instruction to a staff member, wherein the first shooting instruction requires the staff member to shoot a panoramic image of a service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
[0032] The step of matching the target image with the partial image within the target area comprises: Performing a matching operation on the feature points in the panoramic image and the feature points in the target image, the matching operation comprising: Selecting any matching point in each of the panoramic image and the target image as the center matching point, and selecting two matching points in each of the two images according to a preset circular neighborhood; Based on the two matching points in the circular neighborhood and the center matching point, corresponding triangles are formed in the two images respectively, wherein the triangle in the panoramic image is recorded as a first triangle, and the triangle in the target image is recorded as a second triangle; Determining whether the first triangle and the second triangle are similar; If they are similar, determining that the three matching points on the first triangle match the three matching points on the second triangle; The above matching operation is repeated until all feature points in the partial image within the target area and all feature points in the target image are selected, so as to complete the matching between the target image and the partial image within the target area.
[0033] The similarity determination expression of the first triangle and the second triangle is:
[0034]
[0035] In the formula, is the center matching point in the first triangle, , are the other two matching points in the first triangle except the center matching point, is the center matching point in the second triangle, , are the other two matching points in the second triangle except the center matching point, is the edge ratio difference threshold, is the angle difference threshold.
[0036] Optionally, in order to avoid attendance cheating in which the staff places the attendance device at the home of the service recipient after successfully clocking in and then leaves, the attendance clocking in is successful and the continuous communication connection time also meets the requirements; but in this case the staff still fails to provide effective service time; therefore, after the staff's attendance device is successfully connected to the verification device, a first shooting instruction is sent to the staff, requiring a panoramic image of the service location to be taken, and a second shooting instruction is sent to the staff within a preset time, requiring an image of a partial target area of the service location to be taken; since the preset time and target area can be randomly selected according to the situation, even if the staff has taken images of several service locations in advance, it is difficult to match them with the images required by the shooting instruction; greatly reducing the possibility of attendance cheating.
[0037] In summary, the anti-cheating method for home door-to-door service provided by the present application first responds to the staff's attendance operation, obtains the dynamic code of the attendance device and the dynamic code of the verification device at the service location, performs code matching, and determines whether the staff has cheated in the past based on the matching result. If the match is successful, the dynamic code in the attendance device is encrypted and updated and synchronized to the verification device to facilitate the next clock-in verification, thereby preventing the staff from using a copy device for attendance. Furthermore, the connection time between the attendance device and the verification device is continuously obtained, and the working hours of the staff are determined based on the continuous connection time to prevent the staff from leaving the service location immediately after clocking in and cheating in attendance. The anti-cheating method for home door-to-door service provided by the present application can effectively prevent the staff from using a copy device to clock in and cheating in attendance due to insufficient working hours, and is suitable for large-scale promotion.
[0038] Embodiment 2 This embodiment provides a home door-to-door service anti-cheating system, including: A response module, for obtaining, in response to the staff member performing attendance operation, a first dynamic code in the attendance device corresponding to the staff member and a second dynamic code in the verification device at the service location; A first matching module, used for performing code matching between the first dynamic code and the second dynamic code; If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code match fails, it is determined that the staff member has used a copy device to record attendance, which is attendance cheating.
[0039] The step of encrypting the attendance data in the attendance device and sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code includes: Conducting a trustworthy identification on the attendance device, and storing the trustworthy identification in the verification device; Define a first shared key for the attendance device to send data to the verification device, a verification key and a second shared key for the verification device to send data to the attendance device; The attendance data is encrypted and interactively synchronized according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code.
[0040] The expression of the trusted identifier is: , the expression of the first shared key is , the expression of the verification key is , the expression of the second shared key is ,in, For the Attendance equipment, The number of sessions between the attendance device and the verification device; The step of encrypting and interactively synchronizing the attendance data according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code includes: The attendance device uses the first shared key Encrypt the attendance data and send the trusted identifier and sending the encrypted attendance data to the verification device; The verification device is based on a stored trusted identity Identify the corresponding attendance device based on the corresponding verification key To verify, if , the verification is successful, and the second shared key is updated , and verification key , complete the update of the second dynamic code; The authentication device sends the updated second shared key Encrypt attendance data and feed it back to the attendance device; After receiving the encrypted data, the attendance device uses the first shared key To verify, if , the verification is successful, and the first shared key is updated , complete the update of the first dynamic code.
[0041] A second matching module is used to send a first shooting instruction to the staff, wherein the first shooting instruction requires the staff to shoot a panoramic image of the service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
[0042] Wherein, the step of matching the target image with the partial image within the target area comprises: Performing a matching operation on the feature points in the panoramic image and the feature points in the target image, the matching operation comprising: Selecting any matching point in each of the panoramic image and the target image as the center matching point, and selecting two matching points in each of the two images according to a preset circular neighborhood; Based on the two matching points in the circular neighborhood and the center matching point, corresponding triangles are formed in the two images respectively, wherein the triangle in the panoramic image is recorded as a first triangle, and the triangle in the target image is recorded as a second triangle; Determining whether the first triangle and the second triangle are similar; If they are similar, determining that the three matching points on the first triangle match the three matching points on the second triangle; The above matching operation is repeated until all feature points in the partial image within the target area and all feature points in the target image are selected, so as to complete the matching between the target image and the partial image within the target area.
[0043] The expression for similarity determination between the first triangle and the second triangle is:
[0044]
[0045] In the formula, is the center matching point in the first triangle, , are the other two matching points in the first triangle except the center matching point, is the center matching point in the second triangle, , are the other two matching points in the second triangle except the center matching point, is the edge ratio difference threshold, is the angle difference threshold.
[0046] Embodiment 3 This embodiment provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned anti-cheating method for home door-to-door service is implemented.
[0047] Embodiment 4 The present invention also provides a computer, see Figure 2 , shown is a computer in an embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned home service anti-cheating method is implemented.
[0048] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.
[0049] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.
[0050] It should be pointed out that Figure 2 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0051] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0052] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0053] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0054] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0055] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for preventing cheating in home door-to-door service, characterized in that: include: In response to the staff member performing an attendance operation, obtaining a first dynamic code in an attendance device corresponding to the staff member and a second dynamic code in a verification device at the service location; Performing code matching on the first dynamic code and the second dynamic code; If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code matching fails, it is determined that the staff member has used a copy device to check attendance, which is an attendance cheat; The step of encrypting the attendance data in the attendance device and sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code includes: Conducting a trustworthy identification on the attendance device, and storing the trustworthy identification in the verification device; Define a first shared key for the attendance device to send data to the verification device, a verification key and a second shared key for the verification device to send data to the attendance device; The attendance data is encrypted and interactively synchronized according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code.
2. The anti-cheating method for home door-to-door service according to claim 1, characterized in that: The expression of the trusted identifier is: , the expression of the first shared key is , the expression of the verification key is , the expression of the second shared key is ,in, For the Attendance equipment, The number of sessions between the attendance device and the verification device; The step of encrypting and interactively synchronizing the attendance data according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code includes: The attendance device uses the first shared key Encrypt the attendance data and send the trusted identifier and sending the encrypted attendance data to the verification device; The verification device is based on a stored trusted identity Identify the corresponding attendance device based on the corresponding verification key To verify, if , the verification is successful, and the second shared key is updated , and verification key , complete the update of the second dynamic code; The authentication device sends the updated second shared key Encrypt attendance data and feed it back to the attendance device; After receiving the encrypted data, the attendance device uses the first shared key To verify, if , the verification is successful, and the first shared key is updated , complete the update of the first dynamic code.
3. The anti-cheating method for home door-to-door service according to claim 1, characterized in that: After the attendance device is communicatively connected with the verification device, the home visit service anti-cheating method further includes: Sending a first shooting instruction to a staff member, wherein the first shooting instruction requires the staff member to shoot a panoramic image of a service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
4. The anti-cheating method for home door-to-door service according to claim 3, characterized in that: The step of matching the target image with the partial image within the target area comprises: Performing a matching operation on the feature points in the panoramic image and the feature points in the target image, the matching operation comprising: Selecting any matching point in each of the panoramic image and the target image as the center matching point, and selecting two matching points in each of the two images according to a preset circular neighborhood; Based on the two matching points in the circular neighborhood and the center matching point, corresponding triangles are formed in the two images respectively, wherein the triangle in the panoramic image is recorded as a first triangle, and the triangle in the target image is recorded as a second triangle; Determining whether the first triangle and the second triangle are similar; If they are similar, determining that the three matching points on the first triangle match the three matching points on the second triangle; The above matching operation is repeated until all feature points in the partial image within the target area and all feature points in the target image are selected, so as to complete the matching between the target image and the partial image within the target area.
5. The method for preventing cheating in home door-to-door service according to claim 4, characterized in that: The expression for similarity determination between the first triangle and the second triangle is: In the formula, is the center matching point in the first triangle, , are the other two matching points in the first triangle except the center matching point, is the center matching point in the second triangle, , are the other two matching points in the second triangle except the center matching point, is the edge ratio difference threshold, is the angle difference threshold.
6. A home service anti-cheating system, characterized in that: include: A response module, for obtaining, in response to the staff member performing attendance operation, a first dynamic code in the attendance device corresponding to the staff member and a second dynamic code in the verification device at the service location; A first matching module, used for performing code matching between the first dynamic code and the second dynamic code; If the codes match successfully, it is determined that the staff member has not cheated in attendance in the past, and the attendance device is connected to the verification device for communication; Encrypting the attendance data in the attendance device, and sending the encrypted attendance data to the verification device for interactive synchronization, so as to update the first dynamic code and the second dynamic code; Obtaining the continuous communication connection time between the attendance device and the verification device, and determining whether the continuous communication connection time meets the preset requirements; If the continuous communication connection time meets the preset requirements, the staff member's working hours are recorded as qualified and the attendance is valid. If the continuous communication connection time does not meet the preset requirements, the staff member's working hours are recorded as insufficient and the attendance is invalid. If the code matching fails, it is determined that the staff member has used a copy device to check attendance, which is an attendance cheat; The step of encrypting the attendance data in the attendance device and sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code includes: Conducting a trustworthy identification on the attendance device, and storing the trustworthy identification in the verification device; Define a first shared key for the attendance device to send data to the verification device, a verification key and a second shared key for the verification device to send data to the attendance device; The attendance data is encrypted and interactively synchronized according to the first shared key, the verification key, and the second shared key to update the first dynamic code and the second dynamic code.
7. The anti-cheating system for home door-to-door service according to claim 6, characterized in that: Also includes: A second matching module is used to send a first shooting instruction to the staff, wherein the first shooting instruction requires the staff to shoot a panoramic image of the service location; In response to the acquired panoramic image, randomly selecting a target area to be further photographed in the panoramic image; After a preset time, a second shooting instruction is sent to the staff, wherein the second shooting instruction requires the staff to shoot a target image of the target area; The target image is matched with a partial image in the target area to determine whether the target image photographed by the staff is the image required by the second photographing instruction, and then determine whether the staff's attendance is valid.
8. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the anti-cheating method for home door-to-door service as described in any one of claims 1 to 5 is implemented.
9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the home door-to-door service anti-cheating method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Mobile phone attendance checking system and its realizing method
CN102819876A
Attendance management method and server
CN104050534A
Attendance checking method and device, storage medium and server
CN110992500A
Image registration method based on multi-scale Harris corner detection
CN116681740A
Dynamic sign-in method, dynamic sign-in device, electronic equipment and storage medium
CN117238051A