Voter voting control method and system, storage medium and terminal
Facial and fingerprint recognition are used to ensure the validity of the vote, and laser projection and specific repair methods are used to deal with voting machine defects, which solves the problems of tedious voting modifications and short service life, and improves voting security and the service life of the voting machine.
Patent Information
- Application Number
- CN202410997221.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Modifying the voting results of existing voting machines is cumbersome and can easily lead to decision-making errors. The voting machines have a short service life and low defect handling efficiency.
Facial and fingerprint recognition comparisons are used to ensure vote validity, laser projection is used to temporarily display defective areas, and specific repair methods are used for different defect types, including spraying, sanding, glue dispensing and printed repairs.
It improves the safety and accuracy of voting, extends the service life of the voting machine, and enhances the efficiency and accuracy of defect processing.
Smart Images

Figure CN118823920A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voting machines, and in particular to a voting control method, system, storage medium and terminal for voting by voting machines. Background Art
[0002] Currently, voting machines are electronic devices used in meetings or voting situations that allow participants to express their approval, opposition, or abstention on a specific issue by pressing a button. Voting machines are usually able to display voting results instantly and can count and summarize them so that decisions can be made quickly.
[0003] In the prior art, after voting using a voting machine, the voting results are directly recorded, and the voting results are usually not modifiable, but re-voting can be performed and the results can be re-recorded. After the meeting, the voting results can be queried, printed, backed up, and restored and published.
[0004] Regarding the above-mentioned related technologies, when voters make mistakes in voting due to mistakes, it is too cumbersome to withdraw and change the voting results, which may lead to wrong decisions and cause some unnecessary losses, which needs to be improved. Summary of the invention
[0005] In order to improve the security and accuracy of voting, the present invention provides a voting control method, system, storage medium and terminal for voting by a voting machine.
[0006] In a first aspect, the present invention provides a voting control method of a voting machine, which adopts the following technical solution:
[0007] A voting control method for a voting machine, comprising:
[0008] Obtaining detection image information of voters in a preset detection area, number information of voting machines, and key position information of voting machine keys;
[0009] Recognize a facial image from a preset facial recognition library according to the detected image information;
[0010] Determine a reference facial image according to the numbering information;
[0011] Determine, based on the consistency between the facial image and the reference facial image, to prompt an invalid vote or obtain fingerprint information of the keys on the voting machine;
[0012] Determine the reference fingerprint information according to the serial number information and the key position information;
[0013] Determine whether to prompt an invalid vote or record a valid vote based on the consistency between the fingerprint information and the reference fingerprint information;
[0014] After the vote is valid, obtain the modification detection information;
[0015] The completion of voting or the re-acquisition of the voter's detection image information, the voting machine number information and the button position information of the voting machine buttons are determined based on the consistency between the modified detection information and the preset reference modification information.
[0016] By adopting the above technical solution, voting errors can be avoided by comparing the face and fingerprint. After the voting is completed, it is detected whether there is a command to modify the vote. If there is, the face and fingerprint of the person who modified the vote are identified and compared again, which improves the security and accuracy of the voting.
[0017] Optional monitoring methods for modifying voting include:
[0018] Obtain the modified image information of the person who modified the image in the detection area;
[0019] identifying the modified facial image from the facial recognition library according to the modified image information and marking the number of facial images;
[0020] Determining whether the number of facial images is greater than one;
[0021] If it is greater, the detection position is determined according to the number information of the voting machine;
[0022] Determining position parameter information based on detecting the position and modifying the facial image;
[0023] Determine whether the voting machine displays normal content or abnormal content based on the accuracy of the position parameter information;
[0024] If not, modify it and record the pressing time of the voting button;
[0025] The modification is completed or a prompt is given according to the extent to which the pressing time exceeds the preset reference time.
[0026] By adopting the above technical solution, when a command to modify the vote is detected, the modified image information is obtained to detect whether there are multiple people in the modified image information. If there are multiple people, it means that there may be problems of screen peeping or coercing voters to make changes, and the content of the voting machine is displayed by the distance between each person and the voting machine; when there is only one person, it is determined by judging whether the time the voting button is pressed when modifying the vote exceeds the preset reference time to determine whether there are other people outside the modified image information. If it exceeds, it means that there may be unrelated people, making the vote invalid and prompting, thereby reducing voting errors and improving the security and accuracy of voting.
[0027] Optional methods for identifying defect types include:
[0028] Get the overall image information of the voting machine;
[0029] Selecting a button image from a preset button image library according to the overall image information;
[0030] Determine a reference key image and a key position image in the key image according to the key position information;
[0031] According to the reference key image and the key position image, the defective area is analyzed by matching;
[0032] Identify defect types from a preset defect category library based on defect areas;
[0033] Match key processing methods from the preset defect processing library according to the defect type;
[0034] Control the preset processing device to perform repairs according to the defect area and key processing method.
[0035] By adopting the above technical solution, the defective area on the voting machine key is obtained through matching analysis of the key position image and the reference key image, and then the defect type is identified from the defect category library. Different key processing methods are selected and repaired according to different defect types, thereby improving the service life of the voting machine.
[0036] Optionally, the key processing method includes:
[0037] Get the key flatness of the defective area;
[0038] Determine the baseline flatness of the defective area based on the key position information;
[0039] Determine the defect type as attachment or wear based on the size relationship between the key flatness and the reference flatness;
[0040] When the defect type is attachment, a treatment liquid is matched from a preset stain treatment library;
[0041] Obtain the defect area of the defect area;
[0042] Determine the volume of the treatment fluid based on the defect area and the treatment fluid;
[0043] Controlling the preset spraying device to spray the defective area according to the treatment liquid and the treatment liquid volume;
[0044] After spraying, control the scraping device to scrape the defective area;
[0045] When the defect type is wear, obtain the button type of the voting machine;
[0046] According to the key type, a preset repairing device is controlled to repair the defective area with a preset repairing method.
[0047] By adopting the above technical scheme, different treatment methods are used for different defect types. When the defect type is attachment, the attachment area is sprayed with treatment liquid to remove the attachment; when the defect type is wear, different repair methods are used for different button types, thereby further improving the service life of the voting machine.
[0048] Optionally, the repair device includes a grinding device, a glue dripping device, a blowing device, an absorbing device and a printing device, and the repair method includes:
[0049] Controlling a preset illumination device to illuminate the defective area according to the defective area, and obtaining a real-time refraction angle of the defective area;
[0050] Determine whether the real-time refraction angle is greater than a preset reference refraction angle;
[0051] If it is greater than, the key type is defined as a glue key;
[0052] The preset polishing device is controlled by the glue dripping button to polish the defective area to make it smooth;
[0053] After grinding and smoothing, control the preset absorption device to absorb the defective area;
[0054] After absorption, the preset glue dripping device is controlled to drip glue to repair the defective area;
[0055] After the glue repair, the preset blowing device is controlled to blow dry the defective area after the glue repair with a preset blowing force;
[0056] If not, define the button type as a printed button, and obtain the printing position, printing material, and printing area of the printed button;
[0057] Match the dissolving liquid from the preset dissolving database according to the printing material;
[0058] Determine the volume of the dissolving solution according to the printing area and the dissolving solution;
[0059] Controlling the spraying device to spray and dissolve the printing position according to the dissolving liquid and the volume of the dissolving liquid;
[0060] After spraying and dissolving, the absorption device is controlled to absorb the defective area;
[0061] After absorption, a preset printing device is controlled to print and repair the defective area;
[0062] After the printing repair, the blowing device is controlled to blow and dry the defective area after the printing repair with a blowing force.
[0063] By adopting the above technical solution, the key type is judged by irradiating the defective area and obtaining the real-time refraction angle, and the repair method is determined for different key types, thereby improving the key repair efficiency and thereby increasing the service life of the voting machine.
[0064] Optionally, the methods for processing the defective area before repairing include:
[0065] determining whether the number of defective regions is equal to one;
[0066] When it is equal to one, the projection position is determined according to the defect area;
[0067] Determine the projection content according to the key position information and the defect area;
[0068] Identify the button color from a preset color recognition library according to the button image;
[0069] Determine the projection color based on the key color;
[0070] Determine the installation position of the voting machine and the installation height of the preset projection device according to the number information;
[0071] Obtaining real-time location information of the projection device;
[0072] Determine the projection distance based on real-time location information, voting machine installation location and installation height;
[0073] Determine whether the projection distance falls within a preset reference projection range;
[0074] If it falls into the projection area, the projection device is controlled to project according to the projection position, projection content, projection distance and projection color;
[0075] If it does not fall within, the difference between the projection distance and the maximum value of the reference projection interval is calculated and defined as the adjustment distance;
[0076] Control the projection device to move toward the projection position according to the adjustment distance and update the projection distance;
[0077] The projection device is controlled to perform projection according to the projection position, the projection content, the updated projection distance and the projection color.
[0078] By adopting the above technical solution, when a key is damaged, the defective area cannot be repaired at the same time when voting. The defective area can be temporarily projected by laser projection to facilitate voters to determine the voting content of the defective area, thereby improving the accuracy and convenience of voting.
[0079] Optionally, when the defect area is greater than one and the projection device has multiple projection targets, the method for processing the defect area before repairing further includes:
[0080] Determine a projection position interval according to the defect area, where the projection position interval includes at least two projection positions;
[0081] Determine whether there is an intersection interval between reference projection intervals of at least two projection positions within the projection position interval;
[0082] If it exists, the minimum value between the projection device and the intersection interval is calculated and defined as the adjustment distance;
[0083] According to the adjustment distance, the projection device is controlled to move toward the position corresponding to the minimum value and the projection distance is updated;
[0084] Controlling the projection device to perform projection according to the projection position, projection content, updated projection distance, and projection color;
[0085] If it does not exist, the difference between the projection device and the maximum value of the projection position interval is calculated and defined as adding a projection device;
[0086] The number of projection devices is updated according to the additional projection devices.
[0087] By adopting the above technical solution, when there are multiple defective areas on the voting buttons, a projection device is used to project each area at the same time. When a single projection device cannot project all defective areas at the same time, an additional projection device is added to ensure that all voting buttons with defective areas can clearly display the button contents, thereby improving the accuracy and convenience of voting.
[0088] In a second aspect, the present application provides a voting control system, which adopts the following technical solution:
[0089] An acquisition module is used to acquire detection image information, numbering information, key position information, modify detection information, modify image information, overall image information, key flatness, key type, real-time refraction angle, printing position, printing material, printing area and real-time position information;
[0090] A memory for storing a program of a method for controlling voting of a voting machine;
[0091] The program in the memory can be loaded and executed by the processor to implement the voting control method of the voting machine.
[0092] By adopting the above technical solution, voting errors can be avoided by comparing the face and fingerprint. After the voting is completed, it is detected whether there is a command to modify the vote. If there is, the face and fingerprint of the person who modified the vote are identified and compared again, which improves the security and accuracy of the voting.
[0093] In a third aspect, the present application provides a computer storage medium capable of storing corresponding programs, which is characterized by being convenient for implementing a voting control method of a voting machine, and adopts the following technical solution:
[0094] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned voting control methods for a voting machine.
[0095] By adopting the above technical solution, voting errors can be avoided by comparing the face and fingerprint. After the voting is completed, it is detected whether there is a command to modify the vote. If there is, the face and fingerprint of the person who modified the vote are identified and compared again, which improves the security and accuracy of the voting.
[0096] In a fourth aspect, the present application provides an intelligent terminal, which adopts the following technical solution:
[0097] An intelligent terminal comprises a memory and a processor. The memory stores a computer program which can be loaded by the processor and executes a method for controlling voting of a voting machine.
[0098] By adopting the above technical solution, voting errors can be avoided by comparing the face and fingerprint. After the voting is completed, it is detected whether there is a command to modify the vote. If there is, the face and fingerprint of the person who modified the vote are identified and compared again, which improves the security and accuracy of the voting.
[0099] In summary, the present application includes at least one of the following beneficial technical effects:
[0100] 1. Avoid voting errors by comparing the face and fingerprint. If there is a command to modify the vote, the face and fingerprint of the person who modified it will be identified and compared again, which improves the security and accuracy of the voting;
[0101] 2. By adopting different treatment methods for different defect types, the service life of the voting device is improved;
[0102] 3. By means of laser projection, the defective area is temporarily projected to facilitate voters to determine the voting content of the defective area, thereby improving the accuracy and convenience of voting. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] Figure 1 is a method flow chart of a method for controlling voting of a voting machine in an embodiment of the present invention;
[0104] Figure 2 is a method flow chart of a monitoring method for modifying voting in an embodiment of the present invention;
[0105] Figure 3is a method flow chart of a method for identifying defect types in an embodiment of the present invention;
[0106] Figure 4 is a method flow chart of a key processing method in an embodiment of the present invention;
[0107] Figure 5 The method flow of the repair method in the embodiment of the present invention is Figure 1 ;
[0108] Figure 6 The method flow of the repair method in the embodiment of the present invention is Figure 2 ;
[0109] Figure 7 is a method flow chart of a method for processing a defective area before repairing in an embodiment of the present invention;
[0110] Figure 8 It is a method flow chart of another method for processing a defective area before repairing in an embodiment of the present invention. DETAILED DESCRIPTION
[0111] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0112] A voting control method for a voting machine determines the identity of the voter through facial recognition and comparison, and reduces the number of wrong key presses through fingerprint recognition. When the vote needs to be modified after completion, the number of people is judged to make a corresponding modification plan. When the key is not clear, it is pre-used through projection and the key is repaired later.
[0113] Reference Figure 1 , a voting control method of a voting machine, comprising the following steps:
[0114] Step 100: Acquire detection image information of voters in a preset detection area, number information of voting machines, and key position information of voting machine keys.
[0115] The detection area refers to the voting area where the voter is located; the detection image information refers to all image information including the voter in the detection area, and the detection image information is used to detect and identify the facial images in the detection area; the number information refers to the barcode on the voting machine and the number below the barcode; the number information contains the basic information of the voter, and the basic information of the voter can be obtained by scanning the number information with a preset scanner; the button position information refers to the position of each button content on the voting machine. The detection image information and button position information are obtained by taking pictures with a camera.
[0116] Step 101: Recognize a facial image from a preset facial recognition library according to the detected image information.
[0117] The facial image refers to the facial image of the person currently in the detection area. The facial image can be identified from the detection image information through the facial recognition library. The facial recognition library is obtained based on deep learning of the neural network model, which includes the facial images of all people in this voting meeting; the facial recognition library is a manually set database and will not be elaborated here.
[0118] Step 102: Determine a reference facial image according to the serial number information.
[0119] The reference facial image refers to the facial image of the voter corresponding to the number information of the current voting machine. The number information is correlated with the reference facial information of the voter. The reference facial information of the voter can be determined by scanning the number information with a barcode scanner.
[0120] Step 103: Determine, based on the consistency between the facial image and the reference facial image, to prompt an invalid vote or obtain fingerprint information of the buttons on the voting machine.
[0121] Whether the vote is valid is determined by judging whether the facial image is consistent with the reference facial image.
[0122] If the facial image is inconsistent with the reference facial image, it means that the voter in the detection area is incorrect, so the vote is invalid.
[0123] If the facial image is consistent with the reference facial image, it means that the voter in the detection area is correct. After voting, the fingerprint information of each button pressed by the voter is obtained. The fingerprint information is obtained by the fingerprint collector on the button. Fingerprint information refers to the fingerprint collected on the voting button when the voter presses the voting button.
[0124] Step 104: Determine the reference fingerprint information according to the serial number information and the key position information.
[0125] The reference fingerprint information refers to the fingerprint information pre-set on each button, where the reference fingerprint information on different buttons is different. The number information is associated with the voter corresponding to the current voting machine. The voter of the current voting machine can be determined by scanning the number information with a barcode scanner, and the position of each button of the current voting machine can be obtained through the button position information. Finally, the reference fingerprint information pre-set on each button by the current voter can be obtained through the voter and the position of each button of the voting machine.
[0126] Step 105: Determine whether to prompt an invalid vote or record a valid vote based on the consistency between the fingerprint information and the reference fingerprint information.
[0127] Whether the vote is valid is determined by judging whether the fingerprint information is consistent with the reference fingerprint information.
[0128] If the fingerprint information is inconsistent with the reference fingerprint information, the vote will be invalid and a prompt will be given.
[0129] If the fingerprint information is consistent with the reference fingerprint information, the vote is valid and recorded.
[0130] Step 106: After the vote is valid, obtain modification detection information.
[0131] The modification detection information refers to whether the modification button is pressed; through the modification detection information, it can be known whether the vote needs to be modified, and the modification detection information is obtained through the pressure sensor under the button.
[0132] Step 107: Determine whether to complete voting or reacquire the voter's detection image information, voting machine number information, and voting machine button position information based on the consistency between the modified detection information and the preset reference modification information.
[0133] The baseline modification information refers to the information when the modification command appears. By judging whether the modification detection information is consistent with the baseline modification information, it is determined whether the modification vote needs to be made; the baseline modification information is artificially set data and will not be described in detail here.
[0134] If the modification detection information is inconsistent with the baseline modification information, it means that there is no need to modify the vote and the voting round can be completed directly.
[0135] If the modification detection information is consistent with the baseline modification information, it means that the vote needs to be modified, and steps 100 to 105 can be repeated to modify the voting result.
[0136] Reference Figure 2 , the monitoring method for modifying voting includes the following steps:
[0137] Step 200: Obtain the modified image information of the modified person in the detection area.
[0138] Modifying image information means that when a modification command appears, all image information including the modified voter in the detection area is detected, and the modified image information is obtained by taking a photo with a camera.
[0139] Step 201: Identify the modified facial image from the facial recognition library according to the modified image information and mark the number of the facial image.
[0140] The number of facial images refers to the number of facial images existing in the modified image information. The facial images existing in the modified image information can be marked by the facial recognition library and the number of facial images can be recorded through marking.
[0141] Step 202: Determine whether the number of facial images is greater than one.
[0142] By judging whether the number of facial images is greater than one, it is determined whether there are multiple people in the detection area when a modification command appears, so as to judge whether the modification is forced or there is screen peeping.
[0143] Step 2021: If the number of facial images is greater than one, determine the detection position based on the number information of the voting machine.
[0144] If the number of facial images is greater than one, it means that there are multiple people in the detection area, and the vote may be changed under duress or by peeking. Different number information means different camera settings. The detection position is determined by scanning the number information of the voting machine with a barcode scanner. The detection position refers to the position of the camera.
[0145] Step 20211: Determine position parameter information based on the detected position and modified facial image.
[0146] The position parameter information refers to the position of each facial image in the modified facial image within the detection area and the distance between each modified facial image and the detection position. When the detection position is fixed, the smaller the modified facial image is, the farther the distance is. The position parameter information can be marked from the modified facial image through the detection position.
[0147] Step 20212: Determine whether the voting machine displays normal content or abnormal content based on the accuracy of the position parameter information.
[0148] The identity of each modified facial image is determined by judging whether the position parameter information is within the preset reference position parameter, thereby determining the display content on the voting machine. The reference position parameter is a manually set parameter and will not be described in detail here.
[0149] If the position parameter information is within the reference position parameter, it means that the person is the modifying voter and the angle of viewing the display is correct, and the content displayed on the display is consistent with the content voted by the voter.
[0150] If the position parameter information is not within the reference position parameter, it means that the person is an unrelated person and the angle at which the display is viewed has changed. The content displayed on the display changes with the change in angle, thereby misleading unrelated people.
[0151] Step 2022: If the number of facial images is not greater than one, modify and record the pressing time of the voting button.
[0152] If the number of facial images is not greater than one, it means that there is only one person in the detection area. Modification is allowed and the duration of pressing the voting button during modification is recorded to determine whether it is a forced modification.
[0153] Step 20221: Determine whether the modification is completed or a prompt is given based on the excess between the pressing time and the preset reference time.
[0154] The benchmark duration refers to the duration required to hold down the voting button. The benchmark duration is manually set and will not be described in detail here. By judging whether the duration of holding down the voting button exceeds the benchmark duration, it is determined whether there is a forced modification, and thus whether the modification is completed.
[0155] If the pressing time exceeds the benchmark time, it means there is no coercion and the modification can be completed directly.
[0156] If the pressing time does not exceed the benchmark time, it means there may be coercion, which needs to be reported and prompted.
[0157] Reference Figure 3 ,The method for identifying the defect type includes the following steps:
[0158] Step 300: Obtain the overall image information of the voting device.
[0159] The overall image information refers to the image information including the voting device and all the characteristic contents on the voting device. The overall image information is obtained by taking a picture with a camera.
[0160] Step 301: Select a button image from a preset button image library according to the overall image information.
[0161] The key image library can be used to select a key image from the overall image information. The key image library is obtained based on deep learning of a neural network model and contains key images. The key image library is an artificially set database and will not be described in detail here.
[0162] Step 302: Determine a reference key image and a key position image in the key image according to the key position information.
[0163] The reference key image refers to the brand new appearance of each key when it leaves the factory and the content on the key; the key position image refers to the current appearance of each key and the content on the key. The reference key image is obtained by taking a photo of the voting machine when it leaves the factory and recorded in the preset image database; the key position image is obtained by taking a photo of the camera; the content on each key can be determined by the key position information, so as to determine the reference key image and the key position image in the key image.
[0164] Step 303: Analyze and find out the defective area based on the reference key image and the key position image through matching.
[0165] The defective area refers to the position where the defect exists on the key; the defective area is obtained by comparing the appearance and content of the key corresponding to the reference key image and the key position image.
[0166] Step 304: Identify the defect type from a preset defect category library according to the defect area.
[0167] The defect type within the defect area can be identified through the defect category library; the defect category library is obtained based on deep learning of the neural network model, which includes various defect types; the defect category library is an artificially set database and will not be described in detail here.
[0168] Step 305: Match a key processing method from a preset defect processing library according to the defect type.
[0169] The defect processing library can be used to match the key processing method corresponding to the defect type; the defect processing library contains different key processing methods corresponding to different defect types; the defect processing library is a manually set database and will not be described in detail here.
[0170] Step 306: Control the preset processing device to perform repair according to the defective area and the key processing method.
[0171] The processing device is used to repair the defective area; the processing device is controlled to repair the defective area according to the key processing method.
[0172] Reference Figure 4 , the key processing method includes the following steps:
[0173] Step 400: Obtain the key flatness of the defective area.
[0174] The key flatness refers to the flatness of a defective key; the key flatness is obtained by scanning the surface of the key with a preset laser scanning device.
[0175] Step 401: Determine the baseline flatness of the defective area according to the key position information.
[0176] The reference flatness refers to the initial flatness state of the defective key. The key position information includes the reference flatness of each key, and the reference flatness of the defective area can be determined through the key position information.
[0177] Step 402: Determine the defect type as attachment or wear based on the size relationship between the button flatness and the reference flatness.
[0178] The defect type is determined by judging whether the flatness of the key is greater than the reference flatness, wherein the defect type includes attachment and wear.
[0179] If the button flatness is greater than the reference flatness, it means that there is foreign matter on the defective button, and the defect type is defined as attachment.
[0180] If the flatness of the key is less than the reference flatness, it means that there is a dent on the defective key, and the defect type is defined as wear.
[0181] Step 403: When the defect type is an attachment, a treatment liquid is matched from a preset stain treatment library.
[0182] The stain treatment library contains the correspondence between the attachments and the treatment liquid. When the defect type is the attachment, the treatment liquid corresponding to the attachment is matched from the stain treatment library; the stain treatment library is a manually set database and will not be described in detail here.
[0183] Step 404: Obtain the defect area of the defect region.
[0184] The defect area refers to the area of the defect region on the key; the defect area is obtained by laser scanning and measurement.
[0185] Step 405: Determine the volume of the processing liquid according to the defect area and the processing liquid.
[0186] The volume of the treatment liquid refers to the amount of treatment liquid used when treating defects; there is a corresponding relationship between the defect area, the treatment liquid and the volume of the treatment liquid. When the treatment liquid is determined, the larger the defect area, the larger the volume of the treatment liquid.
[0187] Step 406: Control a preset spraying device to spray the defective area according to the treatment liquid and the volume of the treatment liquid.
[0188] The spraying device is used to spray the treatment liquid on the defective area; the spraying device is controlled to determine the good treatment liquid and the treatment liquid volume to spray the defective area so as to make the sticky material on the attachment lose its stickiness.
[0189] Step 407: After spraying, control the scraping device to scrape the defective area.
[0190] The scraping device is used to scrape off the attachments; after the sticky material on the attachments is sprayed and made to lose its stickiness, the scraping device is controlled to scrape off the attachments.
[0191] Step 408: When the defect type is wear, obtain the button type of the voting machine.
[0192] When the defect type is wear, different repair methods are set for different button types. The button type is obtained by scanning the barcode on the voting machine with a preset barcode scanner, where the button type includes glue dripping buttons and printed buttons.
[0193] Step 409: Control a preset repairing device according to the key type to repair the defective area using a preset repairing method.
[0194] The repair device is used to repair the defective area when the defect type is wear; different repair methods are set according to different key types, and the repair device is controlled to repair the defective area based on the repair method; the repair method is introduced in detail in the subsequent steps and will not be repeated here.
[0195] Reference Figure 5 , 6 The repair device includes a grinding device, a glue dripping device, a blowing device, an absorbing device and a printing device, and the repair method includes the following steps:
[0196] Step 500: Control a preset illumination device to illuminate the defective area according to the defective area, and obtain a real-time refraction angle of the defective area.
[0197] The illumination device is used to illuminate the defective area and emit a light beam to obtain a real-time refraction angle; the real-time refraction angle refers to the angle at which light is refracted on the key when the illumination device illuminates the defective area; when the illumination device illuminates the defective area, the real-time refraction angle is obtained through the photosensor on the key.
[0198] Step 501: Determine whether the real-time refraction angle is greater than a preset reference refraction angle.
[0199] The type of the key is determined by judging whether the real-time refraction angle is greater than a preset reference refraction angle. The reference refraction angle is artificially set data and will not be described in detail here.
[0200] Step 5011: If the real-time refraction angle is greater than the reference refraction angle, the key type is defined as a glue dripping key.
[0201] If the real-time refraction angle is greater than the reference refraction angle, it means that the light can be refracted through the material on the button surface, and the button type is defined as a glue button.
[0202] Step 50111: Based on the glue dripping button, the preset polishing device is controlled to polish the defective area to make it smooth.
[0203] The grinding device is used to grind the defective area; when the key type is a glue-dropping key, the grinding device is controlled to grind the defective area until it is flat.
[0204] Step 50112: After polishing, control the preset absorption device to absorb the defective area.
[0205] The absorption device is used to absorb the dust generated during grinding; after grinding and smoothing, the absorption device is controlled to absorb the dust generated by grinding in the defective area.
[0206] Step 50113: After absorption, control the preset glue dripping device to drip glue to repair the defective area.
[0207] The glue dripping device is used to drip glue to repair the keys when the keys have wear defects, based on the key type being a glue dripping key; after the dust is absorbed, the glue dripping device is controlled to drip glue to repair the defective area.
[0208] Step 50114: After the glue repair, control the preset blowing device to dry the defective area after the glue repair with a preset blowing force.
[0209] The blowing device is used to dry the keys after the glue repair to ensure that the keys can be used as soon as possible; after the glue repair, the blowing device is controlled to dry the defective area after the glue repair with a preset blowing force; the blowing force is a manually set data and will not be elaborated here.
[0210] Step 5012: If the real-time refraction angle is not greater than the reference refraction angle, define the button type as a printed button, and obtain the printing position, printing material, and printing area of the printed button.
[0211] If the real-time refraction angle is not greater than the reference refraction angle, it means that the light cannot be refracted through the material on the surface of the key, and the key type is defined as a printed key; the printing position refers to the position where the content of the key is printed on the key; the printing material refers to the material used for the printed content; the printing area refers to the area of the key occupied by the printed content on the key; the printing position and printing area can be obtained by scanning the surface of the key with a preset laser scanner; the printing material can be obtained by scanning the barcode on the voting machine with a preset scanner.
[0212] Step 50121: Match the dissolving liquid from the preset dissolving database according to the printing material.
[0213] The dissolving liquid is used to dissolve the content printed on the printing button; the dissolving database contains the correspondence between the printing material and the dissolving liquid, and the dissolving liquid corresponding to the printing material can be matched through the dissolving database; the dissolving database is a manually set database and will not be described in detail here.
[0214] Step 50122: Determine the volume of the dissolving solution based on the printing area and the dissolving solution.
[0215] The volume of the dissolving liquid refers to the amount of the dissolving liquid used to dissolve the content on the printed key; there is a corresponding relationship between the printing area, the dissolving liquid and the dissolving volume. When the dissolving liquid is determined, the larger the printing area, the larger the volume of the dissolving liquid.
[0216] Step 50123: Control the spraying device to spray and dissolve the printing position according to the dissolving liquid and the volume of the dissolving liquid.
[0217] The spraying device is controlled to spray the printing position with a good dissolving liquid and a dissolving liquid volume to dissolve the printed content printed on the key.
[0218] Step 50124: After the spraying and dissolution, control the absorption device to absorb the defective area.
[0219] After the printed content is dissolved, the absorbing device is controlled to absorb impurities generated after the dissolution in the defective area.
[0220] Step 50125: After absorption, control the preset printing device to print and repair the defective area.
[0221] The printing device is used to print and repair the defective area of the printed key; after absorbing the impurities, the printing device is controlled to print and repair the defective area to dissolve the content on the previous key.
[0222] Step 50126: After the printing repair, control the blowing device to blow dry the defective area after the printing repair with a blowing force.
[0223] After the printing repair, the blowing device is controlled according to the blowing force to dry the defective area after the printing repair.
[0224] Reference Figure 7 , the method for treating the defective area before repairing includes the following steps:
[0225] Step 600: Determine whether the number of defective areas is equal to one.
[0226] The projection method of the projection device is determined by judging whether the number of defective areas is equal to one.
[0227] Step 601: When the number of defect areas is equal to one, determining a projection position according to the defect areas.
[0228] The projection position refers to the position where the projection device projects onto the key; when the number of defective areas is equal to one, it means that the projection device can directly project onto the defective area; the projection device needs to project the projection content onto the defective area so that voters can vote before the defective area is repaired; the defective area is the projection position.
[0229] Step 602: Determine projection content according to the key position information and the defect area.
[0230] The key position information includes the content on each key; the key position information can be used to determine the content on the defective area, thereby determining the projection content.
[0231] Step 603: Identify the button color from a preset color recognition library according to the button image.
[0232] The key color in the key image can be identified through the color recognition library, which is obtained based on deep learning of the neural network model and includes the key color; the color recognition library is an artificially set database and will not be described in detail here.
[0233] Step 604: Determine the projection color according to the button color.
[0234] Since the projection color cannot be close to the button color, in order to avoid voters being unable to recognize the projection content, a color with a more obvious contrast with the button color is selected according to the button color to determine the projection color.
[0235] Step 605: Determine the installation position of the voting machine and the preset installation height of the projection device according to the number information.
[0236] The numbering information includes the installation position of the voting machine on the table and the installation height of the projection device under different numbering information; the installation position of the voting machine and the installation height of the projection device can be obtained through the numbering information.
[0237] Step 606: Acquire the real-time position information of the projection device.
[0238] The projection device is installed on the slide rail and can be moved by the slide rail; the real-time position information refers to the position of the projection device on the slide rail; the real-time position information can be obtained through a pressure sensor arranged on the slide rail.
[0239] Step 607: Determine the projection distance according to the real-time position information, the installation position and the installation height of the voting device.
[0240] Projection distance refers to the distance between the projection device and the voting machine. Since the slide rail is parallel to the installation position of the voting machine, the real-time position information, the installation position of the voting machine and the installation height can be calculated by the formula c = √{(a 2 +b 2 )}, where c is the projection distance, a is the installation height, and b is the distance between the real-time position information and the slide rail directly above the voting machine installation location.
[0241] Step 608: Determine whether the projection distance falls within a preset reference projection interval.
[0242] The reference projection interval is used to ensure that the projection device can clearly project the projection content to the projection position. By judging whether the projection distance falls within the preset reference projection interval, it is determined whether the current projection distance needs to be adjusted. The reference projection interval is manually set data and will not be elaborated here.
[0243] Step 6081: If the projection distance falls within the reference projection range, the projection device is controlled to perform projection according to the projection position, projection content, projection distance and projection color.
[0244] If the projection distance falls within the reference projection range, it means that no adjustment is required, and the projection device can be directly controlled to perform projection according to the projection position, projection content, projection distance, and projection color.
[0245] Step 6082: If it does not fall within, the difference between the projection distance and the maximum value of the reference projection interval is calculated and defined as the adjustment distance.
[0246] If the projection distance does not fall within the reference projection interval, it means that the current projection distance cannot clearly project the projection content to the projection position and needs to be adjusted. A plane coordinate system is established based on any point on the slide rail, where the projection device position is (x, y) and the maximum value of the reference projection interval is (a, b). The calculation formula d = √{(ax) 2 +(by) 2}The adjusted distance can be obtained, where d is the adjusted distance.
[0247] Step 60821: Control the projection device to move toward the projection position according to the adjusted distance and update the projection distance.
[0248] The projection device is controlled to move toward the projection position according to the calculated adjustment distance and the projection distance is updated to ensure that the projection content can be clearly projected to the projection position.
[0249] Step 60822: Control the projection device to perform projection according to the projection position, projection content, updated projection distance, and projection color.
[0250] The projection device is controlled to perform projection according to the projection position, the projection content, the updated projection distance and the projection color.
[0251] Reference Figure 8 When the defect area is greater than one and the projection device has multiple projection targets, the method for processing the defect area before repairing further includes the following steps:
[0252] Step 700: Determine a projection position interval according to the defect area, where the projection position interval includes at least two projection positions.
[0253] The projection position interval refers to a set of projection positions including defective areas on at least two keys; the projection position interval can be obtained according to the number of defective areas.
[0254] Step 701: Determine whether there is an intersection interval between the reference projection intervals of at least two projection positions within the projection position interval.
[0255] A single projection device is provided with a plurality of projection components, and each projection component projects to a projection position independently.
[0256] In order to ensure that the projection device can clearly project the projection content to the projection position when simultaneously projecting multiple defect areas, it is determined whether there is an intersection interval between the reference projection intervals of at least two projection positions within the projection position interval, so as to determine whether a single projection device can simultaneously project at least two projection positions. The intersection interval refers to the overlapped portion between the reference projection intervals of multiple projection positions.
[0257] Step 7011: If the reference projection intervals of at least two projection positions within the projection position interval have an intersection interval, then the minimum value between the projection device and the intersection interval is calculated and defined as the adjustment distance.
[0258] If there is an intersection interval between the reference projection intervals of at least two projection positions within the projection position interval, it means that the projection device can clearly project the projection content to at least two projection positions at the same time; by calculating the formula d = √{(ax) 2 +(by) 2}The adjustment distance can be obtained, where d is the adjustment distance, the position of the projection device is (x, y), and any position on the intersection interval is (a, b).
[0259] Step 70111: Control the projection device to move toward the position corresponding to the minimum value according to the adjusted distance and update the projection distance.
[0260] The projection device is controlled to move in the direction of the position corresponding to the minimum value with the calculated adjustment distance and the projection distance is updated, so as to ensure that the projection content can be clearly projected to at least two projection positions.
[0261] Step 70112: Control the projection device to perform projection according to the projection position, projection content, updated projection distance, and projection color.
[0262] The projection device is controlled to perform clear projection on at least two projection positions according to the projection position, the projection content, the updated projection distance and the projection color.
[0263] Step 7012: If there is no intersection between the reference projection intervals of at least two projection positions within the projection position interval, the difference between the projection device and the maximum value of the projection position interval is calculated and defined as adding a projection device.
[0264] If the reference projection intervals of at least two projection positions within the projection position interval do not have an intersection interval, it means that a single projection device cannot clearly project the at least two projection positions, and the number of projection devices needs to be increased.
[0265] In the absence of an intersection interval, a single projection device can only clearly project a single projection position. The number of projection devices that need to be added is obtained by calculating the maximum value of the projection position interval minus the difference of the projection device, and the difference is defined as the additional projection device.
[0266] Step 70121: Update the number of projection devices according to the additional projection devices.
[0267] In order to ensure that multiple projection positions can be projected clearly, the number of projection devices is updated by adding the original projection devices to the additional projection devices, thereby ensuring that the projection content can be clearly projected to each projection position at the same time.
[0268] Based on the same inventive concept, an embodiment of the present invention provides a voting control system for a voting machine, comprising the following steps:
[0269] The acquisition module is used to obtain detection image information, numbering information, button position information, modify detection information, modify image information, overall image information, button flatness, button type, real-time refraction angle, printing position, printing material, printing area and real-time position information.
[0270] The memory is used to store a program of a method for controlling voting of the voting machine.
[0271] The program in the memory can be loaded and executed by the processor to implement the voting control method of the voting machine.
[0272] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a method for controlling voting of a voting machine.
[0273] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0274] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute a method for controlling voting of a voting machine.
[0275] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A voting control method for a voting machine, characterized in that: include: Obtaining detection image information of voters in a preset detection area, number information of voting machines, and key position information of voting machine keys; Recognize a facial image from a preset facial recognition library according to the detected image information; Determine a reference facial image according to the numbering information; Determine, based on the consistency between the facial image and the reference facial image, to prompt an invalid vote or obtain fingerprint information of the keys on the voting machine; Determine the reference fingerprint information according to the serial number information and the key position information; Determine whether to prompt an invalid vote or record a valid vote based on the consistency between the fingerprint information and the reference fingerprint information; After the vote is valid, obtain the modification detection information; The completion of voting or the re-acquisition of the voter's detection image information, the voting machine number information and the button position information of the voting machine buttons are determined based on the consistency between the modified detection information and the preset reference modification information.
2. A voting control method for a voting machine according to claim 1, characterized in that: Methods for monitoring when amending voting include: Obtain the modified image information of the person who modified the image in the detection area; identifying the modified facial image from the facial recognition library according to the modified image information and marking the number of facial images; Determining whether the number of facial images is greater than one; If it is greater, the detection position is determined according to the number information of the voting machine; Determining position parameter information based on detecting the position and modifying the facial image; Determine whether the voting machine displays normal content or abnormal content based on the accuracy of the position parameter information; If not, modify it and record the pressing time of the voting button; The modification is completed or a prompt is given according to the extent to which the pressing time exceeds the preset reference time.
3. A voting control method for a voting machine according to claim 1, characterized in that: Methods for identifying defect types include: Get the overall image information of the voting machine; Selecting a button image from a preset button image library according to the overall image information; Determine a reference key image and a key position image in the key image according to the key position information; According to the reference key image and the key position image, the defective area is analyzed by matching; Identify defect types from a preset defect category library based on defect areas; Match key processing methods from the preset defect processing library according to the defect type; Control the preset processing device to perform repairs according to the defect area and key processing method.
4. A voting control method of a voting machine according to claim 3, characterized in that: Key processing methods include: Get the key flatness of the defective area; Determine the baseline flatness of the defective area based on the key position information; Determine the defect type as attachment or wear based on the size relationship between the key flatness and the reference flatness; When the defect type is attachment, a treatment liquid is matched from a preset stain treatment library; Obtain the defect area of the defect area; Determine the volume of the treatment fluid based on the defect area and the treatment fluid; Controlling the preset spraying device to spray the defective area according to the treatment liquid and the treatment liquid volume; After spraying, control the scraping device to scrape the defective area; When the defect type is wear, obtain the button type of the voting machine; According to the key type, a preset repairing device is controlled to repair the defective area with a preset repairing method.
5. A voting control method for a voting machine according to claim 4, characterized in that: The repair device includes a grinding device, a glue dripping device, a blowing device, an absorbing device and a printing device, and the repair method includes: Controlling a preset illumination device to illuminate the defective area according to the defective area, and obtaining a real-time refraction angle of the defective area; Determine whether the real-time refraction angle is greater than a preset reference refraction angle; If it is greater than, the key type is defined as a glue key; The preset polishing device is controlled by the glue dripping button to polish the defective area to make it smooth; After grinding and smoothing, control the preset absorption device to absorb the defective area; After absorption, the preset glue dripping device is controlled to drip glue to repair the defective area; After the glue repair, the preset blowing device is controlled to blow dry the defective area after the glue repair with a preset blowing force; If not, define the button type as a printed button, and obtain the printing position, printing material, and printing area of the printed button; Match the dissolving liquid from the preset dissolving database according to the printing material; Determine the volume of the dissolving solution according to the printing area and the dissolving solution; Controlling the spraying device to spray and dissolve the printing position according to the dissolving liquid and the volume of the dissolving liquid; After spraying and dissolving, the absorption device is controlled to absorb the defective area; After absorption, a preset printing device is controlled to print and repair the defective area; After the printing repair, the blowing device is controlled to blow and dry the defective area after the printing repair with a blowing force.
6. A voting control method for a voting machine according to claim 3, characterized in that: Treatment methods for defective areas before repair include: determining whether the number of defective regions is equal to one; When it is equal to one, the projection position is determined according to the defect area; Determine the projection content according to the key position information and the defect area; Identify the button color from a preset color recognition library according to the button image; Determine the projection color based on the key color; Determine the installation position of the voting machine and the installation height of the preset projection device according to the number information; Obtaining real-time location information of the projection device; Determine the projection distance based on real-time location information, voting machine installation location and installation height; Determine whether the projection distance falls within a preset reference projection range; If it falls into the projection area, the projection device is controlled to project according to the projection position, projection content, projection distance and projection color; If it does not fall within, the difference between the projection distance and the maximum value of the reference projection interval is calculated and defined as the adjustment distance; Control the projection device to move toward the projection position according to the adjustment distance and update the projection distance; The projection device is controlled to perform projection according to the projection position, the projection content, the updated projection distance and the projection color.
7. A voting control method of a voting machine according to claim 6, characterized in that: When the defect area is greater than one and the projection device has multiple projection targets, the method for processing the defect area before repairing further includes: Determine a projection position interval according to the defect area, where the projection position interval includes at least two projection positions; Determine whether there is an intersection interval between reference projection intervals of at least two projection positions within the projection position interval; If it exists, the minimum value between the projection device and the intersection interval is calculated and defined as the adjustment distance; According to the adjustment distance, the projection device is controlled to move toward the position corresponding to the minimum value and the projection distance is updated; Controlling the projection device to perform projection according to the projection position, projection content, updated projection distance, and projection color; If it does not exist, the difference between the projection device and the maximum value of the projection position interval is calculated and defined as adding a projection device; The number of projection devices is updated according to the additional projection devices.
8. A voting control system, characterized in that: include: An acquisition module is used to acquire detection image information, numbering information, key position information, modify detection information, modify image information, overall image information, key flatness, key type, real-time refraction angle, printing position, printing material, printing area and real-time position information; A memory for storing a program of a voting control method according to any one of claims 1 to 7; The program in the memory can be loaded and executed by the processor to implement a voting control method of a voting machine as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.
10. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes any one of the methods of claims 1 to 7.
Citation Information
Cited By
Eyebrow pencil refill detection mechanism control method and system and intelligent terminal
CN119860985A
