Anti-cheating method, system, storage medium and computer for home visit service
By obtaining and matching the dynamic encoding of attendance equipment and verification equipment in the home-based service system, encrypting and syncing and monitoring the communication connection time, the problem of cheating in the replication equipment is solved, and the effectiveness and accuracy of attendance are achieved.
Patent Information
- Application Number
- CN202510033826.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-01-09
AI Technical Summary
The existing home-based attendance system is prone to cheating by copy equipment, resulting in serious absences, and it is difficult for the existing technology to effectively prevent cheating.
Match by obtaining dynamic encoding of attendance equipment and verification equipment, encrypting and synchronizing if the match is successful, and continuously monitoring the communication connection time, judging the working hours of staff members, and preventing cheating.
It effectively prevents staff from using copy equipment to cheat at the attendance, ensures accurate recording of work hours, and reduces absences.
Smart Images

Figure CN119477350B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of personnel information management, and particularly relates to an anti-cheating method, system, storage medium and computer for home visit services. Background Art
[0002] The existing assessment methods for attendance check-in of home visit services mainly include mobile Bluetooth check-in or QR code check-in, combined with on-site image verification at the service location. The staff connects the attendance device they are equipped with to the on-site verification device, and then transmits it to the backend for consistency assessment. If the verification is passed, the attendance is successful, and then the on-site photo of the service location is taken for verification; through the connection between the attendance device and the verification device and the on-site photo, it is determined that the staff's attendance is valid for this time.
[0003] However, there are many products / tools with cracking attributes on the market that can easily copy the Bluetooth beacon data in the Bluetooth hardware device, and simulate and copy an identical verification device. The cheating cost is low. The staff can copy the verification device and check in anytime and anywhere, and then cooperate with several pre-shot on-site images to cheat, resulting in a large number of absenteeism phenomena. Summary of the Invention
[0004] Based on this, the purpose of the present invention is to provide an anti-cheating method, system, storage medium and computer for home visit services to solve the technical problems existing in the prior art.
[0005] The present invention proposes an anti-cheating method for home visit services, including:
[0006] In response to the staff's attendance operation, obtain the first dynamic code in the staff's corresponding attendance device and the second dynamic code in the verification device at the service location;
[0007] Perform code matching on the first dynamic code and the second dynamic code;
[0008] If the code matching is successful, it is determined that the staff has no previous attendance cheating behavior, and the attendance device is communicatively connected to the verification device;
[0009] Encrypt the attendance data in the attendance device, and send the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code;
[0010] Obtain the continuous communication connection time between the attendance device and the verification device, and determine whether the continuous communication connection time meets the preset requirements;
[0011] If the continuous communication connection time meets the preset requirements, record that the working hours of the staff this time are qualified and the attendance this time is valid. If the continuous communication connection time does not meet the preset requirements, record that the working hours of the staff this time are insufficient and the attendance this time is invalid;
[0012] If the encoding does not match successfully, it is determined that the staff has used a copying device for attendance, and there is an attendance cheating behavior.
[0013] Optionally, the step of encrypting the attendance data in the attendance device, sending the encrypted attendance data to the verification device for interactive synchronization, and updating the first dynamic code and the second dynamic code includes:
[0014] Mark the attendance device as trustworthy and store the trustworthy identifier in the verification device;
[0015] 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;
[0016] Encrypt and interactively synchronize 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.
[0017] Optionally, the expression of the trustworthy 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 , where is the th attendance device, is the number of sessions between the attendance device and the verification device;
[0018] 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:
[0019] The attendance device uses the first shared key to encrypt the attendance data, and sends the trustworthy identifier and the encrypted attendance data to the verification device;
[0020] The verification device identifies the corresponding attendance device based on the stored trustworthy identifier , verifies based on the corresponding verification key , if , the verification passes, and the second shared key is updated and a verification key to complete the update of the second dynamic code;
[0021] The verification device sends the updated second shared key to encrypt the attendance data and feedback it to the attendance device;
[0022] After receiving the encrypted data, the attendance device uses the first shared key for verification. If the verification is passed, the first shared key is updated to complete the update of the first dynamic code.
[0023] Optionally, after communicatively connecting the attendance device with the verification device, the anti-cheating method for home visit services further includes:
[0024] Sending a first shooting instruction to the staff, where the first shooting instruction requires the staff to shoot a panoramic image of the service location;
[0025] In response to the obtained panoramic image, randomly select a target area to be further shot in the panoramic image;
[0026] After a preset time, send a second shooting instruction to the staff, where the second shooting instruction requires the staff to shoot a target image of the target area;
[0027] Match the target image with a partial image within the target area to determine whether the target image shot by the staff is the image required by the second shooting instruction, and further determine whether the attendance of the staff is valid.
[0028] Optionally, the step of matching the target image with a partial image within the target area includes:
[0029] Performing a matching operation on the feature points in the panoramic image and the feature points in the target image, where the matching operation includes:
[0030] Arbitrarily select a matching point in each of the panoramic image and the target image as its center matching point, and respectively select two matching points in the two images according to a preset circular neighborhood;
[0031] Based on the two matching points and the center matching point within the circular neighborhood, respectively form corresponding triangles in the two images, where the triangle in the panoramic image is denoted as the first triangle and the triangle in the target image is denoted as the second triangle;
[0032] Determine whether the first triangle and the second triangle are similar;
[0033] If they are similar, determine that the three matching points on the first triangle match the three matching points on the second triangle;
[0034] Repeat the above matching operation until all the feature points in the partial image within the target area and all the feature points in the target image have been selected, so as to complete the matching of the target image and the partial image within the target area.
[0035] Optionally, the expression for determining similarity between the first triangle and the second triangle is:
[0036]
[0037]
[0038] 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 threshold of the ratio difference of opposite sides, is the threshold of the angle difference.
[0039] The present invention also proposes an anti-cheating system for home visit services, including;
[0040] A response module, configured to obtain a first dynamic code in an attendance device corresponding to a staff member and a second dynamic code in a verification device at a service location in response to the staff member performing an attendance operation;
[0041] A first matching module, configured to perform code matching on the first dynamic code and the second dynamic code;
[0042] If the code matching is successful, determine that the staff member has never committed an attendance cheating behavior, and communicatively connect the attendance device to the verification device;
[0043] Encrypt the attendance data in the attendance device, and send the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code;
[0044] Obtain the continuous communication connection time between the attendance device and the verification device, and determine whether the continuous communication connection time meets a preset requirement;
[0045] If the duration of the continuous communication connection meets the preset requirements, it is recorded that the working hours of the staff for this time are qualified and the attendance for this time is valid. If the duration of the continuous communication connection does not meet the preset requirements, it is recorded that the working hours of the staff for this time are insufficient and the attendance for this time is invalid;
[0046] If the coding does not match successfully, it is determined that the staff has used a copying device for attendance and there is an attendance cheating behavior.
[0047] Preferably, the home visit service anti-cheating system further includes:
[0048] A second matching module for sending a first shooting instruction to the staff, and the first shooting instruction requires the staff to shoot a panoramic image of the service location;
[0049] In response to the obtained panoramic image, randomly select a target area to be further shot in the panoramic image;
[0050] After a preset time, send a second shooting instruction to the staff, and the second shooting instruction requires the staff to shoot a target image of the target area;
[0051] Match the target image and a partial image within the target area to determine whether the target image shot by the staff is the image required by the second shooting instruction, and further determine whether the attendance of the staff is valid.
[0052] The present invention also proposes a storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned home visit service anti-cheating method is implemented.
[0053] The present invention also proposes a computer, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned home visit service anti-cheating method is implemented.
[0054] The beneficial effects of the present invention compared with the prior art are as follows: The anti-cheating method for home visit services provided by this application first responds to the attendance operation of the staff, obtains the dynamic code of the attendance device and the dynamic code of the service location verification device correspondingly, performs code matching, and judges whether there has been any attendance cheating behavior by the staff in the past according to the matching result. If the matching is successful, the dynamic code in the attendance device is encrypted and updated and synchronized to the verification device for the next check-in verification, preventing the staff from using a replicated device for attendance. Further, continuously obtain the connection time between the attendance device and the verification device, and judge the working hours of the staff according to the continuous connection time, preventing the staff from leaving the service location immediately after checking in and committing attendance cheating. The anti-cheating method for home visit services provided by this application can effectively prevent the staff from using a replicated device for check-in and attendance cheating behavior with insufficient working hours, and is suitable for large-scale promotion.
[0055] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flowchart of the anti-cheating method for home visit services in the first embodiment of the present invention;
[0057] Figure 2 is a structural block diagram of a computer in the fourth embodiment of the present invention.
[0058] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0059] To facilitate the understanding of the present invention, the present invention will be described more comprehensively 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, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used in the description of the present invention herein 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.
[0061] Embodiment 1
[0062] Please refer to Figure 1, shown is the anti-cheating method for home visit services in the first embodiment of the present invention. The anti-cheating method for home visit services specifically includes steps S10 to S20:
[0063] S10, in response to the staff's attendance operation, obtain the first dynamic code in the corresponding attendance device of the staff and the second dynamic code in the verification device at the service location;
[0064] In specific implementation, the staff is equipped with corresponding attendance devices, and the homes of the serviced objects are installed with corresponding attendance verification devices; since the serviced objects do not need to pay themselves, they do not pay much attention to the service duration, service frequency, etc. of the staff, and most of them do not actively feedback to the monitoring center. Therefore, there may be a large number of situations where the staff is absent or absent from work and the monitoring center is unaware.
[0065] Optionally, in this embodiment, when responding to the staff's attendance operation, such as performing Bluetooth communication connection, etc., timely obtain the first dynamic code in the corresponding attendance device of the staff and the second dynamic code in the verification device at the service location.
[0066] S20, perform code matching on the first dynamic code and the second dynamic code;
[0067] Optionally, step S20 specifically includes:
[0068] If the code matching is successful, it is determined that the staff has no previous attendance cheating behavior, and the attendance device is communicatively connected to the verification device;
[0069] Encrypt the attendance data in the attendance device, and send the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code;
[0070] Obtain the continuous communication connection time between the attendance device and the verification device, and determine whether the continuous communication connection time meets the preset requirements;
[0071] If the continuous communication connection time meets the preset requirements, record that the staff's current working hours are qualified and the current attendance is valid. If the continuous communication connection time does not meet the preset requirements, record that the staff's current working hours are insufficient and the current attendance is invalid;
[0072] If the code matching is unsuccessful, it is determined that the staff has used a copying device for attendance and there is an attendance cheating behavior.
[0073] Optionally, in this embodiment, if the attendance device and the verification device have matching codes, they will be automatically connected. 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 a 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. The next time the staff member punches in at the service location or the original verification device is randomly inspected, since the verification device at the service location has not been updated, the information written by the staff member's attendance device does not match the information of the verification device at the service location, and it can be inferred that the staff member has committed an attendance cheating act of using a copied device to punch in.
[0074] Further, after it is determined that the staff member has not committed any attendance cheating acts in the past when the code matching is successful, it is also necessary to determine whether the staff member leaves immediately 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 member has been at the service location all the time, the working hours for this time are qualified, and the attendance for this time is valid, preventing the attendance cheating act of the staff member leaving immediately after punching in.
[0075] Optionally, in this embodiment, the step of encrypting the attendance data in the attendance device, sending the encrypted attendance data to the verification device for interactive synchronization, and updating the first dynamic code and the second dynamic code includes:
[0076] Mark the attendance device as trustworthy and store the trust mark in the verification device;
[0077] 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;
[0078] Encrypt and interactively synchronize 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.
[0079] Further, the expression of the trust mark is , the expression of the first shared key is , the expression of the verification key is , the expression of the second shared key is , where is the th attendance device, is the number of sessions between the attendance device and the verification device;
[0080] The step of encrypting, interacting and 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:
[0081] The attendance device uses the first shared key to encrypt the attendance data, and sends the trusted identifier and the encrypted attendance data to the verification device;
[0082] The verification device identifies the corresponding attendance device based on the stored trusted identifier and verifies based on the corresponding verification key If , the verification passes, the second shared key is updated , and the verification key is updated to complete the update of the second dynamic code;
[0083] The verification device sends the updated second shared key to encrypt the attendance data and feedback it to the attendance device;
[0084] After receiving the encrypted data, the attendance device uses the first shared key to verify. If , the verification passes, the first shared key is updated to complete the update of the first dynamic code.
[0085] In this embodiment, a combined verification dynamic method using a shared key and a verification key can be iterated scrollingly, and the characteristics of synchronous update of two devices can be applied to an environment of one-to-many verification and key negotiation to achieve dynamic update and verification between devices; it can be understood that there may be personnel flow during work, and door-to-door services may be provided for different staff at different times, and the corresponding attendance devices are different, but the verification device is fixed and installed in the home of the service recipient; the combined verification dynamic method using a shared key and a verification key is particularly suitable for wireless communication targets; the key in the device participates in local updates and does not need to be sent, reducing the update calculation amount and saving protocol resources.
[0086] In some alternative embodiments, after communicatively connecting the attendance device and the verification device, the anti-cheating method for home door-to-door services further includes:
[0087] Sending a first shooting instruction to the staff, where the first shooting instruction requires the staff to shoot a panoramic image of the service location;
[0088] In response to the obtained panoramic image, randomly select a target area to be further photographed in the panoramic image;
[0089] Send a second shooting instruction to the staff after a preset time, where the second shooting instruction requires the staff to shoot a target image of the target area;
[0090] Match the target image with a partial image within the target area to determine whether the target image shot by the staff is the image required by the second shooting instruction, and further determine whether the attendance of the staff is valid.
[0091] The step of matching the target image with a partial image within the target area includes:
[0092] Perform a matching operation on the feature points in the panoramic image and the feature points in the target image. The matching operation includes:
[0093] Optionally select a matching point in each of the panoramic image and the target image as the center matching point, and respectively select two matching points in the two images according to a preset circular neighborhood;
[0094] Based on the two matching points and the center matching point within the circular neighborhood, form corresponding triangles in the two images respectively. Among them, the triangle in the panoramic image is denoted as the first triangle, and the triangle in the target image is denoted as the second triangle;
[0095] Determine whether the first triangle and the second triangle are similar;
[0096] If they are similar, determine that the three matching points on the first triangle match the three matching points on the second triangle;
[0097] Repeat the above matching operation until all feature points in the partial image within the target area and all feature points in the target image have been selected, so as to complete the matching of the target image and the partial image within the target area.
[0098] The expression for determining the similarity of the first triangle and the second triangle is:
[0099]
[0100]
[0101] 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 threshold value of the opposite side ratio difference is the threshold value of the angle difference
[0102] Optionally, in order to prevent the staff from performing attendance cheating operations where, after successfully punching the card, they immediately place the attendance device at the home of the service recipient and then leave. At this time, the attendance card punching is successful and the continuous communication connection time also meets the requirements; however, in this case, the staff still does not provide effective service duration. Therefore, after the attendance device of the staff is successfully connected to the verification device, a first shooting instruction is sent to the staff, requiring to shoot a panoramic image of the service location. A second shooting instruction is sent to the staff within a preset time to shoot an image of a partial target area of the service location; since the preset time and the target area can be randomly selected according to the situation, even if the staff pre-shoots several images of the service location, it is difficult to match the images required by the shooting instruction; greatly reducing the possibility of attendance cheating.
[0103] In summary, the anti-cheating method for home visit services provided by this 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 correspondingly, performs code matching, and judges whether the staff has ever had attendance cheating behavior based on the matching result. If the matching is successful, the dynamic code in the attendance device is encrypted and updated and synchronized to the verification device for the next card punching verification to prevent the staff from using a replicated device for attendance. Further, continuously obtain the connection time between the attendance device and the verification device, and judge the working hours of the staff according to the continuous connection time to prevent the staff from leaving the service location immediately after punching the card and performing attendance cheating; the anti-cheating method for home visit services provided by this application can effectively prevent the staff from using a replicated device for punching the card and attendance cheating behavior with insufficient working hours, and is suitable for large-scale promotion.
[0104] Embodiment 2
[0105] This embodiment provides an anti-cheating system for home visit services, including:
[0106] A response module, configured to respond to the staff's attendance operation, and obtain a first dynamic code in the attendance device corresponding to the staff and a second dynamic code in the verification device of the service location;
[0107] A first matching module, configured to perform code matching on the first dynamic code and the second dynamic code;
[0108] If the code matching is successful, it is determined that the staff has never had attendance cheating behavior, and the attendance device is communicatively connected to the verification device;
[0109] Encrypt the attendance data in the attendance device, and send the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code;
[0110] Obtain the continuous communication connection time between the attendance device and the verification device, and determine whether the continuous communication connection time meets the preset requirements;
[0111] If the continuous communication connection time meets the preset requirements, record that the working hours of the staff are qualified this time and the attendance this time is valid. If the continuous communication connection time does not meet the preset requirements, record that the working hours of the staff are insufficient this time and the attendance this time is invalid;
[0112] If the code matching is unsuccessful, it is determined that the staff used a copying device for attendance, and there is an attendance cheating behavior.
[0113] Among them, the steps of encrypting the attendance data in the attendance device, sending the encrypted attendance data to the verification device for interactive synchronization to update the first dynamic code and the second dynamic code include:
[0114] Perform a trusted identification on the attendance device and store the trusted identification in the verification device;
[0115] 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;
[0116] Encrypt and interactively synchronize 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.
[0117] The expression of the trusted identification is The expression of the first shared key is The expression of the verification key is The expression of the second shared key is Among them, is the th attendance device, is the number of sessions between the attendance device and the verification device;
[0118] The steps 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 include:
[0119] The attendance device uses the first shared key Encrypt the attendance data and send the trusted identifier and the encrypted attendance data to the verification device;
[0120] The verification device identifies the corresponding attendance device based on the stored trusted identifier and verifies based on the corresponding verification key If , the verification passes, update the second shared key , and the verification key , and complete the update of the second dynamic code;
[0121] The verification device sends the updated second shared key to encrypt the attendance data and feedback it to the attendance device;
[0122] After receiving the encrypted data, the attendance device uses the first shared key for verification. If , the verification passes, update the first shared key , and complete the update of the first dynamic code.
[0123] The second matching module is used to send a first shooting instruction to the staff, and the first shooting instruction requires the staff to shoot a panoramic image of the service location;
[0124] In response to the obtained panoramic image, randomly select a target area to be further photographed in the panoramic image;
[0125] After a preset time, send a second shooting instruction to the staff, and the second shooting instruction requires the staff to shoot a target image of the target area;
[0126] Match the target image with a partial image in the target area to determine whether the target image taken by the staff is the image required by the second shooting instruction, and further determine whether the attendance of the staff is valid.
[0127] Among them, the step of matching the target image with a partial image in the target area includes:
[0128] Perform a matching operation on the feature points in the panoramic image and the feature points in the target image. The matching operation includes:
[0129] Arbitrarily select a matching point in each of the panoramic image and the target image as its center matching point, and respectively select two matching points in the two images according to the preset circular neighborhood;
[0130] Based on two matching points within a circular neighborhood and the center matching point, corresponding triangles are formed in the two images respectively. Among them, the triangle in the panoramic image is denoted as the first triangle, and the triangle in the target image is denoted as the second triangle;
[0131] Determine whether the first triangle and the second triangle are similar;
[0132] If they are similar, determine that the three matching points on the first triangle match the three matching points on the second triangle;
[0133] Repeat the above matching operation until all feature points in the partial image within the target area and all feature points in the target image have been selected, so as to complete the matching of the target image and the partial image within the target area.
[0134] The expression for determining similarity between the first triangle and the second triangle is:
[0135]
[0136]
[0137] 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 threshold of the ratio difference of opposite sides, is the threshold of the angle difference.
[0138] Embodiment III
[0139] This embodiment proposes 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 visit services is implemented.
[0140] Embodiment IV
[0141] The present invention also proposes a computer. Please refer to Figure 2 , as shown in the computer in the embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored on the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned anti-cheating method for home visit services is implemented.
[0142] Among them, the memory 10 includes at least one type of storage medium, and the storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. The memory 10 can be an internal storage unit of a computer in some embodiments, such as the hard disk of the computer. The memory 10 can also be an external storage device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory 10 can also include both an internal storage unit of a computer and an external storage device. The memory 10 can be used not only to store application software installed in the computer and various types of data, but also to temporarily store data that has been output or will be output.
[0143] Among them, the processor 20 can be an Electronic Control Unit (ECU, also known as a vehicle computer), a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments, and is used to run program codes stored in the memory 10 or process data, such as executing an access restriction program, etc.
[0144] It should be noted 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 have different component arrangements.
[0145] Those skilled in the art can understand that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions), or used in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.
[0146] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.
[0147] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above 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, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0148] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as within the scope described in this specification.
[0149] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, 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 appended 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; 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; 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.
2. 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.
3. The anti-cheating method for home door-to-door service according to claim 2, 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.
4. The anti-cheating method for home door-to-door service according to claim 3, 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.
5. 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; 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; 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.
6. The anti-cheating system for home door-to-door service according to claim 5, 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.
7. 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 4 is implemented.
8. 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 4 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