Control and verification method and device, electronic equipment, storage medium and program product
The automatic dialing system's image recognition and control module enables automatic dialing and verification of printed securities, solving the problem of low efficiency in manual dialing and improving production efficiency and print quality.
Patent Information
- Application Number
- CN202511653163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-12
- Publication Date
- 2026-02-27
AI Technical Summary
In the current technology, printing securities requires manual dialing and number verification, which results in high labor intensity and low production efficiency.
An automatic dialing system is adopted, which acquires image information of the dialer through an image recognition device, and uses a control module and dialing device to automatically dial and verify numbers, including comparing the first and last characters and comparing each character, and generating operation or correction instructions to ensure that the numbers are consistent.
It enables automatic dialing and verification, reducing the workload of staff, improving production efficiency, and ensuring the accuracy and quality of printed numbers.
Smart Images

Figure CN121582908A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of printing equipment, in particular to a control and verification method and device, electronic equipment, a storage medium and a program product. BACKGROUND
[0002] In related technologies, when printing and producing valuable securities, a manual number machine starting operation is needed, that is, manually dialing the printing number of the number machine to the starting number, and then manually checking the number to ensure the correctness of the starting number. This way, the labor intensity of the workers is large, and the production efficiency is low.
[0003] Therefore, how to provide a control and verification method or device to replace manual dialing and verification is a problem to be solved at present. SUMMARY
[0004] In order to solve or improve the technical problems of manual dialing and checking in related technologies, large labor intensity and low production efficiency, one purpose of the present application is to provide a control and verification method.
[0005] Another purpose of the present application is to provide a control and verification device.
[0006] Another purpose of the present application is to provide an electronic device.
[0007] Another purpose of the present application is to provide a readable storage medium.
[0008] Another purpose of the present application is to provide a computer program product.
[0009] To achieve the above purpose, the first aspect of the present application provides a control and verification method for an automatic dialing system, the automatic dialing system comprising a control module, an image recognition device and a dialing device, the control module being electrically connected with the image recognition device, and the control module being electrically connected with the dialing device.
[0010] The steps of the control and verification method include:
[0011] First, determine an expected number string, the expected number string comprising a plurality of expected numbers.
[0012] Second, acquire first image information about the number machine through the image recognition device.
[0013] Third, determine an actual number string of the number machine according to the first image information, the actual number string comprising a plurality of actual numbers.
[0014] In the fourth step, the actual number string and the expected number string are compared in terms of the first and last characters to determine whether the starting number of the actual number string is consistent with the starting number of the expected number string and whether the ending number of the actual number string is consistent with the ending number of the expected number string.
[0015] In the fifth step, in the case that the starting number of the actual number string is inconsistent with the starting number of the expected number string and / or the ending number of the actual number string is inconsistent with the ending number of the expected number string, the actual number string and the expected number string are compared character by character to determine the absolute value of the difference between each actual number and the corresponding expected number.
[0016] In the sixth step, the operation instruction is generated according to the absolute value.
[0017] In the seventh step, the dialing device is controlled to perform the dialing operation on the number machine according to the operation instruction.
[0018] In the eighth step, the second image information about the number machine is obtained by the image recognition device.
[0019] In the ninth step, the current number string of the number machine is determined according to the second image information, and the current number string and the expected number string are compared character by character.
[0020] In the tenth step, the correction instruction is generated in the case that the current number string is inconsistent with the expected number string.
[0021] In the eleventh step, the dialing device is controlled to perform the dialing operation on the number machine according to the correction instruction, so that the current number string is consistent with the expected number string.
[0022] The present application aims to provide a control and verification method, which determines whether the actual number string is consistent with the expected number string by means of string comparison, generates an operation instruction or a correction instruction, and controls the dialing device to perform the dialing operation on the number machine so that the current number string is consistent with the expected number string. This method can replace manual dialing and verification, which is beneficial to reduce the labor intensity of workers and significantly improve the production efficiency.
[0023] In addition, in the process of string comparison, the actual number string and the expected number string are compared in terms of the first and last characters and then compared character by character, which is beneficial to reduce the amount of data processing and improve the work efficiency, and also beneficial to ensure the accuracy of the final printed number, reduce the waste rate, and improve the quality of the printed matter.
[0024] Optionally, the operation instruction is generated according to the absolute value, and the operation instruction includes a number of movements of the dialing device.
[0025] In the technical solution, the abstract number difference is converted into an executable mechanical action parameter, errors caused by manual estimation or experience parameters are avoided, the number of movements of the dialing device is accurately controlled, and the accuracy of the dialing operation is significantly improved.
[0026] Optionally, the dialing device includes a lifting driving element, a horizontal driving element, and a dialing claw; the horizontal driving element is connected with the dialing claw, and the horizontal driving element is used to drive the dialing claw to move in a first direction; the lifting driving element is connected with the dialing claw, and the lifting driving element is used to drive the dialing claw to move in a second direction; the first direction is perpendicular to the second direction; and the operation instruction includes a number of movements of the lifting driving element and a number of movements of the horizontal driving element.
[0027] In the technical solution, the number of movements of the lifting driving element determines the number of times that the dialing claw is aligned with the target wheel piece in the vertical direction, and the number of movements of the horizontal driving element determines the number of times that the dialing claw contacts the wheel piece in the horizontal direction. This data processing manner ensures that the dialing claw can accurately dial the target wheel piece, and improves the accuracy of number adjustment.
[0028] Optionally, the correction instruction is generated when the current number string is inconsistent with the expected number string, and the correction instruction includes a number of movements of the dialing device.
[0029] In the technical solution, the abstract number difference is converted into an executable mechanical action parameter, errors caused by manual estimation or experience parameters are avoided, the number of movements of the dialing device is accurately controlled, and the accuracy of the dialing operation is significantly improved.
[0030] Optionally, the control and verification method further includes: after the operation instruction is generated according to the absolute value, third image information about the dialing device is acquired through an image recognition device; and the dialing device is controlled to perform a dialing operation on the number machine according to the operation instruction, including: the dialing device is controlled to perform a dialing operation on the number machine based on the operation instruction and the third image information.
[0031] In the technical solution, the third image information acquired through the image recognition device can reflect the actual state of the dialing device in real time. During the execution of the operation instruction, the positions and actions of the dialing claw, the lifting driving element, and the horizontal driving element are monitored in real time according to the third image information.
[0032] The dialing device is controlled in combination with the operation instruction and the third image information, so that the control precision is improved, and the accuracy and reliability of the dialing operation are improved.
[0033] Optionally, according to the correction instruction, the dialing device is controlled to perform a dialing operation on the number machine, so that the current number string is consistent with the expected number string, including: based on the correction instruction and the third image information, the dialing device is controlled to perform a dialing operation on the number machine, so that the current number string is consistent with the expected number string.
[0034] In the technical scheme, the third image information acquired by the image recognition device can reflect the actual state of the dialing device in real time. During execution of the operation instruction, the positions, actions and the like of the dialing claw, the lifting driving member and the horizontal driving member are monitored in real time according to the third image information.
[0035] The dialing device is controlled in combination with the correction instruction and the third image information, so that the control precision is improved, and the accuracy and reliability of the dialing operation are improved.
[0036] The second aspect of the present application provides a control and verification device, including a first information extraction unit, a first information acquisition unit, a second information extraction unit, a first string comparison unit, a second string comparison unit, an operation instruction generation unit, a first control unit, a second information acquisition unit, a third string comparison unit, a correction instruction generation unit and a second control unit.
[0037] The first information extraction unit is used to determine an expected number string, and the expected number string includes a plurality of expected numbers.
[0038] The first information acquisition unit is used to acquire first image information about the number machine.
[0039] The second information extraction unit is used to determine an actual number string of the number machine according to the first image information, and the actual number string includes a plurality of actual numbers.
[0040] The first string comparison unit is used to compare the actual number string with the expected number string from the beginning and the end, to determine whether the starting number of the actual number string is consistent with the starting number of the expected number string, and whether the ending number of the actual number string is consistent with the ending number of the expected number string.
[0041] The second string comparison unit is used to compare the actual number string with the expected number string character by character in a case where the starting number of the actual number string is not consistent with the starting number of the expected number string, and / or the ending number of the actual number string is not consistent with the ending number of the expected number string, to determine the absolute value of the difference between each actual number and the corresponding expected number.
[0042] The operation instruction generation unit is used to generate operation instructions based on absolute values.
[0043] The first control unit is used to control the dialing device to perform dialing operations on the number machine according to the operation instructions.
[0044] The second information acquisition unit is used to acquire second image information about the number machine.
[0045] The third string comparison unit is used to determine the current number string of the number machine based on the second image information, and compare the current number string with the expected number string character by character.
[0046] The correction instruction generation unit is used to generate a correction instruction when the current number string is inconsistent with the expected number string.
[0047] The second control unit is used to control the dialing device to perform dialing operations on the number machine according to the correction instruction, so that the current number string is consistent with the expected number string.
[0048] This invention aims to provide a control and verification device that determines whether the actual number string matches the expected number string through string comparison, and generates operation instructions or correction instructions to control the dialing device to perform a dialing operation to ensure that the current number string matches the expected number string. This method can replace manual dialing and verification, reducing the labor intensity of workers and significantly improving production efficiency.
[0049] In addition, during the string comparison process, two comparison methods are used: comparing the first and last characters and comparing each character individually, to determine whether the actual number string matches the expected number string. On the one hand, this helps reduce the workload of data processing and improve work efficiency; on the other hand, multiple verifications and comparisons help ensure the accuracy of the final printed number, reduce the scrap rate, and improve the quality of printed materials.
[0050] A third aspect of the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a program or instructions executable on the processor, and the processor, when executing the program or instructions, implements the steps of the control and verification methods in any of the above-described technical solutions. The electronic device possesses the beneficial effects of any of the above-described technical solutions, which will not be elaborated further here.
[0051] A fourth aspect of the present invention provides a readable storage medium storing a program or instructions, which, when executed by a processor, implement the steps of the control and verification methods described in any of the above-described technical solutions. The readable storage medium possesses the beneficial effects of any of the above-described technical solutions, which will not be elaborated further here.
[0052] The fifth aspect of the present application provides a computer program product, which comprises a computer program, and the computer program realizes the steps of the control and verification method in any of the above technical solutions when executed by a processor. The computer program product has the beneficial effects of any of the above technical solutions, which will not be repeated here.
[0053] Additional aspects and advantages of the technical solutions of the present application will become apparent in the description below, or can be learned by practice of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0054] Figure 1 A flow chart of a control and verification method according to one embodiment of the present application is shown;
[0055] Figure 2 A flow chart of a control and verification method according to another embodiment of the present application is shown;
[0056] Figure 3 A flow chart of a control and verification method according to another embodiment of the present application is shown;
[0057] Figure 4 A flow chart of a control and verification method according to another embodiment of the present application is shown;
[0058] Figure 5 A flow chart of a control and verification method according to another embodiment of the present application is shown;
[0059] Figure 6 A flow chart of a control and verification method according to another embodiment of the present application is shown;
[0060] Figure 7 A structural block diagram of a control and verification device according to one embodiment of the present application is shown;
[0061] Figure 8 A structural block diagram of an electronic device according to one embodiment of the present application is shown;
[0062] Figure 9 A schematic diagram of an automatic dialing system according to one embodiment of the present application is shown;
[0063] Figure 10 A schematic diagram of an automatic dialing system according to another embodiment of the present application is shown;
[0064] Figure 11 A schematic diagram of an automatic dialing system according to another embodiment of the present application is shown;
[0065] Figure 12 A schematic diagram of a dialing device according to another embodiment of the present application is shown.
[0066] wherein, Figures 1 to 12 The correspondence between the reference signs and the component names is as follows:
[0067] 200: control and verification device; 202: first information extraction unit; 204: first information acquisition unit; 206: second information extraction unit; 208: first string comparison unit; 210: second string comparison unit; 212: operation instruction generation unit; 214: first control unit; 216: second information acquisition unit; 218: third string comparison unit; 220: correction instruction generation unit; 222: second control unit; 300: electronic device; 310: memory; 320: processor; 400: automatic dialing system; 410: control module; 420: image recognition device; 430: dialing device; 431: lifting driving member; 432: horizontal driving member; 433: dialing claw; 440: number machine; 441: support frame body; 442: wheel piece; 4421: side surface; 4422: dialing groove; 450: number roller; a: first direction; b: second direction. DETAILED DESCRIPTION
[0068] In order to enable a more clear understanding of the above-mentioned purposes, features and advantages of the embodiments of the present application, the embodiments of the present application are further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0069] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present application, however, the embodiments of the present application can also be implemented in other manners different from those described herein, and therefore, the protection scope of the present application is not limited to the specific embodiments disclosed below.
[0070] The following description refers to the accompanying drawings that show embodiments of the present application. Figures 1 to 12 The control and verification method, device, electronic device, storage medium and program product provided according to some embodiments of the present application are described.
[0071] In one embodiment of the present application, as shown in Figure 9 The control and verification method is used in an automatic dialing system 400. The automatic dialing system 400 includes a control module 410, an image recognition device 420 and a dialing device 430, the control module 410 is electrically connected with the image recognition device 420, and the control module 410 is electrically connected with the dialing device 430.
[0072] The image recognition device 420 has the functions of image acquisition and image recognition. The image recognition device 420 is used to acquire image information. The dialing device 430 is used to dial the wheel piece 442 of the number machine 440 to rotate, so as to adjust the printed number.
[0073] Optionally, the image recognition device 420 is configured to acquire image information of the number machine 440. The image recognition device 420 is also configured to acquire image information of the dialing device 430.
[0074] By acquiring the image information of the number machine 440 and the image information of the dialing device 430, the dialing device 430 can be precisely controlled to dial the number machine 440.
[0075] In an embodiment, optionally, as shown in Figure 10 , Figure 11 the number machine 440 comprises a support frame 441 and a plurality of wheel segments 442. The plurality of wheel segments 442 are rotatably arranged on the support frame 441. Each wheel segment 442 is independently rotatable relative to the support frame 441.
[0076] The wheel segment 442 has a plurality of side surfaces 4421, each of which is provided with a protrusion. The outer wall of the wheel segment 442 is inwardly recessed to form a plurality of equally spaced dialing grooves 4422, which are arranged between two adjacent side surfaces 4421.
[0077] The equally spaced dialing grooves 4422 and the regularly distributed protrusions on the side surfaces 4421 facilitate mold design and processing, which is conducive to reducing manufacturing costs. The equally spaced dialing grooves 4422 between adjacent side surfaces 4421 provide precise dialing positions for the dialing pawl 433 of the dialing device 430.
[0078] The plurality of side surfaces 4421 of the wheel segment 442 are each provided with a protrusion, which can be in the shape of a number, a letter, or other specific identification, so that a single wheel segment 442 can carry multiple number information. During the printing process, the protrusions on different side surfaces 4421 are sequentially presented by rotating the wheel segment 442, meeting the diversified numbering needs of printed matter, such as the numbering of different number or letter combinations in security printing, which is conducive to increasing the complexity and diversity of numbering and improving the anti-counterfeiting performance.
[0079] The dialing device 430 can dial at least one of the plurality of wheel segments 442 in the number machine 440 to adjust the number order in the number machine 440.
[0080] In an embodiment, optionally, as shown in Figure 10 , Figure 11 and Figure 12As shown, the dialing device 430 includes a lifting driving member 431, a horizontal driving member 432, and a dialing claw 433. The horizontal driving member 432 is connected with the dialing claw 433, and the horizontal driving member 432 is configured to drive the dialing claw 433 to move along a first direction a. The lifting driving member 431 is connected with the dialing claw 433, and the lifting driving member 431 is configured to drive the dialing claw 433 to move along a second direction b. The first direction a is perpendicular to the second direction b.
[0081] By controlling the lifting driving member 431 and the horizontal driving member 432, the position of the dialing claw 433 is accurately controlled, so that the dialing claw 433 can be accurately clamped into the dialing groove 4422 of the outer wall of the wheel piece 442, and the dialing operation is completed.
[0082] Optionally, the first direction a is the length direction of the horizontal driving member 432, and the second direction b is the length direction of the lifting driving member 431.
[0083] In a specific embodiment, the first direction a is a horizontal direction, and the second direction b is a vertical direction.
[0084] In a specific embodiment, the lifting driving member 431 is a lifting cylinder, and the horizontal driving member 432 is a horizontal telescopic cylinder.
[0085] In an embodiment, optionally, the dialing device 430 further includes a first frame body and a second frame body. One end of the lifting driving member 431 is connected with the first frame body, and the other end of the lifting driving member 431 is connected with the second frame body. One end of the horizontal driving member 432 is connected with the second frame body, and the other end of the horizontal driving member 432 is connected with the dialing claw 433.
[0086] The lifting driving member 431 is configured to drive the second frame body to lift or lower, so that the second frame body is away from or close to the first frame body. By changing the relative position between the second frame body and the first frame body, the relative position between the dialing claw 433 and the number machine 440 is adjusted.
[0087] The horizontal driving member 432 is configured to drive the dialing claw 433 to translate, so that the dialing claw 433 is away from or close to the second frame body. By changing the relative position between the dialing claw 433 and the second frame body, the relative position between the dialing claw 433 and the number machine 440 is adjusted.
[0088] Optionally, the control module 410 is electrically connected with the lifting driving member 431, and the control module 410 is electrically connected with the horizontal driving member 432.
[0089] The control module 410 changes the relative position between the first frame body and the second frame body through the lifting driving member 431, and changes the relative position between the dialing claw 433 and the second frame body through the horizontal driving member 432, so as to accurately control the position of the dialing claw 433.
[0090] In an embodiment, the automatic dialing system 400 further comprises a mounting frame and a number roller 450. The number roller 450 is rotatably arranged on the mounting frame, and the number roller 450 is capable of rotating relative to the mounting frame. The number machines 440 are multiple in number, and the multiple number machines 440 are distributed on the number roller 450.
[0091] Optionally, the dialing device 430 is arranged on the mounting frame. Optionally, the first frame of the dialing device 430 is connected with the mounting frame.
[0092] In an embodiment, optionally, as shown in Figure 1 The steps of the control and verification method comprise:
[0093] S102, determining an expected number string, the expected number string comprising multiple expected numbers.
[0094] Optionally, the expected number string is determined based on a production number sheet.
[0095] The production number sheet information is obtained through a standardized data interface connected with an enterprise production management system, the numbering rule in the production number sheet is automatically parsed, and the expected number string is determined.
[0096] Optionally, the standardized data interface is an API (Application Programming Interface, application programming interface) for enabling different software systems to communicate and interact with each other.
[0097] Optionally, the enterprise production management system is an ERP (Enterprise Resource Planning, an integrated management information system). Alternatively, the enterprise production management system is an MES (Manufacturing Execution System, manufacturing execution system).
[0098] It should be noted that the numbering rule in the production number sheet includes but is not limited to the number format, the starting number and the ending number. The expected number string comprises multiple expected numbers, the starting number of the expected number string is the first number in the multiple expected numbers, and the ending number of the expected number string is the last number in the multiple expected numbers.
[0099] Each expected number is any one of the numbers 0 to 9.
[0100] S104, obtaining first image information about the number machine through an image recognition device.
[0101] The first image information about the number machine is obtained through multi-angle high-definition shooting of the number machine by the image recognition device.
[0102] Optionally, the image recognition device comprises one or a combination of the following: a camera and a camera head. The camera is used to acquire the first image information by means of shooting. The camera head is used to acquire the first image information by means of recording a video.
[0103] The control module acquires image information through the image recognition device, thereby grasping the current state of the number machine and the position state of the dialing device.
[0104] Optionally, the image recognition device further comprises a light source. The light source is used to irradiate the number cylinder and the number machine.
[0105] Under the complex light conditions in the printing workshop, whether it is the change of natural light or the interference of other light sources around the equipment, the light source can always provide a stable lighting environment for the number cylinder and the number machine, so that the details of the number cylinder and the number machine are fully presented, which is conducive to improving the accuracy of image recognition and effectively avoiding misjudgment or recognition difficulty caused by poor light.
[0106] S106, determining an actual number string of the number machine according to the first image information, the actual number string comprising a plurality of actual numbers.
[0107] The first image information is subjected to image preprocessing and feature extraction to obtain the actual number string.
[0108] The image preprocessing mode includes but is not limited to grayscale conversion and noise removal.
[0109] It should be noted that grayscale conversion refers to converting a color image into a grayscale image (single channel), which is conducive to significantly reducing the data volume and thus reducing the calculation amount of the subsequent image recognition algorithm, so as to meet the real-time requirement in the high-speed production scene. In addition, grayscale conversion of the first image information can also enhance the contrast and make the number edge profile clearer, which is conducive to improving the accuracy of image recognition.
[0110] Optionally, a median filter or a Gaussian filter algorithm is used to remove noise, which is conducive to improving the image quality and providing a reliable data basis for subsequent character recognition, comparison and verification.
[0111] Based on the OCR (Optical Character Recognition) technology or the CNN (Convolutional Neural Network), the first image information subjected to image preprocessing is subjected to character recognition for feature extraction.
[0112] It should be noted that the actual number string comprises a plurality of actual numbers, the starting number of the actual number string is the first number in the plurality of actual numbers, and the terminal number of the actual number string is the last number in the plurality of actual numbers.
[0113] Each actual number is any one of the numbers 0 to 9.
[0114] S108, the actual number string and the expected number string are compared by the first and last characters, to determine whether the starting number of the actual number string is consistent with the starting number of the expected number string, and whether the ending number of the actual number string is consistent with the ending number of the expected number string.
[0115] It should be noted that the actual number string and the expected number string are compared by the first and last characters, which means that the starting numbers of the two groups of strings are compared separately, and the ending numbers of the two groups of strings are compared separately.
[0116] This data processing method can quickly filter obviously abnormal number states, thereby reducing unnecessary consumption of computing resources.
[0117] In an embodiment, optionally, it is determined whether the starting number of the actual number string is consistent with the starting number of the expected number string, to generate a first determination result; if the first determination result is yes, it indicates that the starting numbers of the two groups of strings (the actual number string and the expected number string) are consistent, and it is further determined whether the ending number of the actual number string is consistent with the ending number of the expected number string, to generate a second determination result; if the first determination result is no, it indicates that the starting numbers of the two groups of strings are inconsistent, and in this case, it is determined that the number machine needs to be dialed.
[0118] If the second determination result is yes, it indicates that the ending numbers of the two groups of strings are consistent, and in this case (when the starting numbers and the ending numbers of the two groups of strings are consistent), it is preliminarily determined that the actual number string is consistent with the expected number string (the subsequent step will again verify that the current number string and the expected number string are compared character by character); if the second determination result is no, it indicates that the ending numbers of the two groups of strings are inconsistent, and in this case, it is determined that the number machine needs to be dialed.
[0119] S110, in the case that the starting number of the actual number string is inconsistent with the starting number of the expected number string, and / or the ending number of the actual number string is inconsistent with the ending number of the expected number string, the actual number string and the expected number string are compared character by character, to determine the absolute value of the difference between each actual number and the corresponding expected number.
[0120] In the case that the first and last character comparison is inconsistent, the two groups of strings (the actual number string and the expected number string) are compared position by position.
[0121] Before the actual number string and the expected number string are compared character by character, the two sets of strings are positionally aligned; the i-th number in the actual number string is one-to-one corresponding to the i-th number in the expected number string in the order of the strings (i represents the number of digits).
[0122] S112, generating an operation instruction according to the absolute value.
[0123] The absolute value corresponds to the number of movements of the dialing device. For example, if the difference between the actual number and the corresponding expected number is 2, the dialing device (including the lifting driving member and the horizontal driving member) corresponding to the position is driven to complete the cycle of “lifting → horizontal dialing → descending → resetting” for 2 times.
[0124] S114, controlling the dialing device to dial the number machine according to the operation instruction.
[0125] Optionally, the operation instruction includes but is not limited to the action sequence and time interval of the lifting driving member and the horizontal driving member, to ensure the synchronization or sequence adjustment of multiple numbers and avoid mechanical interference.
[0126] S116, acquiring second image information about the number machine by the image recognition device.
[0127] The purpose of this step is to acquire image information of the number machine again to check the number.
[0128] The process of collecting the second image information is consistent with the process of collecting the first image information, to ensure that the environmental parameters (light source, focal length, shooting angle) of the two image acquisitions are consistent, and to avoid recognition errors caused by changes in external conditions.
[0129] S118, determining a current number string of the number machine according to the second image information, and comparing the current number string with the expected number string character by character.
[0130] The second image information is preprocessed and features are extracted to obtain the current number string.
[0131] The image preprocessing method includes but is not limited to grayscale conversion and noise removal.
[0132] It should be noted that the grayscale conversion refers to converting a color image into a grayscale image (single channel), which is conducive to significantly reducing the data volume and thus reducing the calculation amount of the subsequent image recognition algorithm, to meet the real-time requirement in the high-speed production scene. In addition, the grayscale conversion of the second image information can also enhance the contrast and make the number edge profile clearer, which is conducive to improving the accuracy of image recognition.
[0133] Optionally, a median filter or Gaussian filter algorithm is used to remove noise, which is conducive to improving image quality and providing reliable data basis for subsequent character recognition, comparison and verification.
[0134] Based on an OCR (Optical Character Recognition) technology or a convolutional neural network (CNN), character recognition is performed on the second image information after image preprocessing, so as to perform feature extraction.
[0135] The current number string and the expected number string are compared character by character (full character bit-by-bit comparison), so as to generate a correction instruction.
[0136] S120, in the case that the current number string and the expected number string are inconsistent, a correction instruction is generated.
[0137] The current number string includes a plurality of current numbers.
[0138] In the case that the two groups of strings (the current number string and the expected number string) are inconsistent, the i-th bit number in the current number string and the i-th bit number in the expected number string are corresponded one by one according to the order of the strings (i represents the number of bits), and the absolute value of the difference between the current number and the expected number is calculated.
[0139] According to the absolute value of the difference between the current number and the expected number, a correction instruction is generated.
[0140] S122, according to the correction instruction, the dialing device is controlled to perform a dialing operation on the number machine, so that the current number string and the expected number string are consistent.
[0141] Optionally, the correction instruction includes but is not limited to the action sequence and time interval of the lifting drive and the horizontal drive, so as to ensure the synchronous or sequential adjustment of multiple numbers and avoid mechanical interference.
[0142] After the dialing device performs the secondary adjustment according to the correction instruction, S116 to S120 are automatically repeated, so as to form a closed-loop control of "collection-comparison-adjustment-verification", until the current number string and the expected number string are completely consistent. The entire process supports at most N times (which can be set to 5 times) of correction attempts, and if the threshold is still not consistent, manual intervention is triggered.
[0143] The application aims to provide a control and verification method, which determines whether the actual number string and the expected number string are consistent through string comparison, and generates an operation instruction or a correction instruction to control the dialing device to dial the number machine to make the current number string consistent with the expected number string. This method can replace manual dialing and verification, reduce the labor intensity of workers, and significantly improve production efficiency.
[0144] In addition, in the process of string comparison, the consistency of the actual number string and the expected number string is determined through two comparison methods of head-to-tail character comparison and character-by-character comparison. On the one hand, this is conducive to reducing the amount of data processing and improving work efficiency. On the other hand, through multiple verification and comparison, the accuracy of the final printed number can be ensured, the waste rate can be reduced, and the quality of the printed matter can be improved.
[0145] In an embodiment, optionally, the principle of the control and verification method is as follows: the expected number string is sent to the control module through the network (or manually input); the control module determines the actual number string of the number machine by capturing an image; the actual number string and the expected number string are compared, and the absolute value of the difference between the actual number and the expected number is calculated. For example, if the detected actual number is 7 and the expected number is 9, then |7-9|=2, so dialing 2 times can make the number machine reach the expected number; the control module drives the horizontal drive and the lifting drive of the dialing device to move 2 times; then the current number string of the number machine is determined again by capturing an image; the current number string and the expected number string are compared, and if they are consistent, a correct signal is sent; otherwise, the absolute value of the difference between the current number and the expected number is calculated again, and the dialing device is driven to move until the current number string and the expected number string are consistent.
[0146] In an embodiment, optionally, as shown in Figure 2 S112 (generating an operation instruction according to the absolute value) includes:
[0147] S1122, generating an operation instruction for controlling the dialing device based on the absolute value, the operation instruction including the number of movements of the dialing device.
[0148] For example, if the difference between the actual number and the corresponding expected number is 2, then the dialing device (including the lifting drive and the horizontal drive) corresponding to the position is driven to complete the cycle of “lifting → horizontal dialing → descending → resetting” twice.
[0149] The main purpose of this step is to convert the abstract number difference into executable mechanical action parameters.
[0150] The data processing method establishes a linear mapping relationship of "detection value→calculation value→execution value", avoids errors caused by manual estimation or experience parameters, and is beneficial to accurately control the movement times of the dialing device and significantly improve the accuracy of dialing operation.
[0151] In an embodiment, as shown in Figure 10 、 Figure 11 and Figure 12 , the dialing device 430 includes a lifting driving member 431, a horizontal driving member 432, and a dialing claw 433. The horizontal driving member 432 is connected with the dialing claw 433, and the horizontal driving member 432 is used to drive the dialing claw 433 to move along a first direction a; the lifting driving member 431 is connected with the dialing claw 433, and the lifting driving member 431 is used to drive the dialing claw 433 to move along a second direction b. The first direction a is perpendicular to the second direction b.
[0152] By controlling the lifting driving member 431 and the horizontal driving member 432, the position of the dialing claw 433 is accurately controlled, so that the dialing claw 433 can be accurately clamped into the dialing groove 4422 of the outer wall of the wheel piece 442 and complete the dialing operation.
[0153] Optionally, the first direction a is the length direction of the horizontal driving member 432; and the second direction b is the length direction of the lifting driving member 431.
[0154] In a specific embodiment, the first direction a is a horizontal direction, and the second direction b is a vertical direction.
[0155] In a specific embodiment, the lifting driving member 431 is a lifting cylinder; and the horizontal driving member 432 is a horizontal telescopic cylinder.
[0156] The lifting driving member 431 is used to drive the second frame to lift, so that the second frame is away from or close to the first frame. By changing the relative position between the second frame and the first frame, the relative position between the dialing claw 433 and the number machine 440 is adjusted.
[0157] The horizontal driving member 432 is used to drive the dialing claw 433 to translate, so that the dialing claw 433 is away from or close to the second frame. By changing the relative position between the dialing claw 433 and the second frame, the relative position between the dialing claw 433 and the number machine 440 is adjusted.
[0158] The operation instruction includes the movement times of the lifting driving member 431 and the movement times of the horizontal driving member 432.
[0159] By controlling the number of movements of the lifting driving member 431 and the horizontal driving member 432 respectively, the pawl 433 can be accurately positioned on the wheel segment 442 of the numberer 440. For example, the number of movements of the lifting driving member 431 determines the number of times the pawl 433 is aligned with the target wheel segment 442 in the vertical direction, and the number of movements of the horizontal driving member 432 determines the number of times the pawl 433 contacts the wheel segment 442 in the horizontal direction. This data processing method ensures that the pawl 433 can accurately dial the target wheel segment 442, improving the accuracy of number adjustment.
[0160] The lifting driving member 431 and the horizontal driving member 432 can move independently and sequentially according to their respective instructions, without interfering with each other, ensuring the normal operation of the dialing device 430. For example, during the lifting or lowering of the lifting driving member 431, the horizontal driving member 432 does not simultaneously perform horizontal movement, avoiding equipment damage or number adjustment errors caused by movement conflicts.
[0161] In an embodiment, as shown in FIG. 1, S120 (generating a correction instruction in the case that the current number string does not match the expected number string) includes: Figure 3
[0162] S1202, in the case that the current number string does not match the expected number string, generating a correction instruction for controlling the dialing device, the correction instruction including the number of movements of the dialing device.
[0163] The current number string includes a plurality of current numbers.
[0164] In the case that the two groups of strings (the current number string and the expected number string) do not match, the i-th number in the current number string is one-to-one corresponding to the i-th number in the expected number string according to the order of the strings (i represents the number of digits), and the absolute value of the difference between the current number and the expected number is calculated.
[0165] According to the absolute value of the difference between the current number and the expected number, a correction instruction is generated.
[0166] For example, if the difference between the current number and the corresponding expected number is 2, the dialing device (including the lifting driving member and the horizontal driving member) corresponding to the position is driven to complete the cycle of “lifting → horizontal dialing → lowering → resetting” twice.
[0167] The main purpose of this step is to convert abstract number differences into executable mechanical action parameters.
[0168] The data processing method establishes a linear mapping relationship of "detection value → calculation value → execution value", avoids errors caused by manual estimation or empirical parameters, and is beneficial to accurately control the number of movements of the dialing device and significantly improve the accuracy of dialing operation.
[0169] By respectively controlling the number of movements of the lifting driving member and the horizontal driving member, the pawl can be accurately positioned on the wheel of the numberer. For example, the number of movements of the lifting driving member determines the number of times the pawl is aligned with the target wheel in the vertical direction, and the number of movements of the horizontal driving member determines the number of times the pawl contacts the wheel in the horizontal direction. This data processing method ensures that the pawl can accurately dial the target wheel and improves the accuracy of number adjustment.
[0170] In an embodiment, as shown in FIG. 11B, after S112 (generating operation instructions according to absolute values), the steps of the control and verification method further include: Figure 4
[0171] S113, acquiring third image information about the dialing device through the image recognition device.
[0172] The third image information about the dialing device is acquired through multi-angle high-definition shooting of the dialing device by the image recognition device.
[0173] The third image information acquired by the image recognition device can reflect the actual state of the dialing device in real time. During the execution of the operation instructions, the positions and actions of the pawl, the lifting driving member and the horizontal driving member are monitored in real time according to the third image information. If a deviation is found between the actual state and the expected state of the operation instructions, dynamic adjustment can be made in time. For example, if the horizontal driving member deviates during movement, the subsequent movement parameters are adjusted according to the third image information to ensure that the pawl can accurately act on the target wheel of the numberer, thereby improving the accuracy of number adjustment.
[0174] S114 (controlling the dialing device to dial the numberer according to the operation instructions) includes:
[0175] S1142, controlling the dialing device to dial the numberer based on the operation instructions and the third image information.
[0176] The running state of the dialing device is determined according to the third image information. If the pawl stalls during movement or the driving member moves abnormally according to the third image information, a fault warning can be issued in advance and the dialing operation can be paused to avoid further deterioration of the fault. The type and position of the fault can also be determined according to the third image information to provide accurate fault information for maintenance personnel to handle in a timely manner.
[0177] The dialing device is controlled in combination with the operation instruction and the third image information, so that the control precision is improved, and the accuracy and reliability of the dialing operation are improved.
[0178] In an embodiment, as shown in FIG. 1, Figure 5 S122 (controlling the dialing device to perform a dialing operation on the number machine according to the correction instruction, so that the current number string is consistent with the expected number string) includes:
[0179] S1222, controlling the dialing device to perform a dialing operation on the number machine based on the correction instruction and the third image information, so that the current number string is consistent with the expected number string.
[0180] The third image information obtained by the image recognition device can reflect the actual state of the dialing device in real time. During the execution of the operation instruction, the positions, actions, etc. of the dialing claw, the lifting driving member and the horizontal driving member are monitored in real time according to the third image information. If it is found that the actual state deviates from the state expected by the operation instruction, dynamic adjustment can be made in time. For example, if the horizontal driving member deviates in position during movement, the subsequent motion parameters are adjusted according to the third image information to ensure that the dialing claw can accurately act on the target disc of the number machine, thereby improving the accuracy of number adjustment.
[0181] The running state of the dialing device is determined according to the third image information. If it is determined according to the third image information that the dialing claw stalls during movement, the driving member moves at an abnormal speed, etc., a fault warning can be given in advance, and the dialing operation is paused to avoid further deterioration of the fault. The type and position of the fault can also be determined according to the third image information to provide accurate fault information for maintenance personnel to process in time.
[0182] The dialing device is controlled in combination with the correction instruction and the third image information, so that the control precision is improved, and the accuracy and reliability of the dialing operation are improved.
[0183] In an embodiment, as shown in FIG. 1, Figure 6 S102 (determining an expected number string, the expected number string including a plurality of expected numbers) includes:
[0184] S1022, obtaining production order information, and determining an expected number string according to the production order information, the expected number string including a plurality of expected numbers.
[0185] The production order information is obtained through a standardized data interface connected with an enterprise production management system, the numbering rule in the production order is automatically parsed, and the expected number string is determined.
[0186] Optionally, the standardized data interface is an API (Application Programming Interface), which is used for mutual communication and interaction between different software systems.
[0187] Optionally, the enterprise production management system is an ERP (Enterprise Resource Planning).
[0188] It should be noted that the numbering rules in the production order sheet include but are not limited to the number format, the starting number and the ending number. The expected number string includes a plurality of expected numbers, the starting number of the expected number string is the first number in the plurality of expected numbers, and the ending number of the expected number string is the last number in the plurality of expected numbers.
[0189] Each expected number is any one of the numbers 0 to 9.
[0190] The production order sheet information is automatically acquired and the expected number string is determined, which reduces the manual input of the expected number, and is conducive to reducing the complexity and error probability of manual operation. Meanwhile, the process can be seamlessly integrated into the automatic production process, so that the continuity and efficiency of production are realized.
[0191] In an embodiment of the present application, as shown in Figure 7 The control and verification device 200 includes a first information extraction unit 202, a first information acquisition unit 204, a second information extraction unit 206, a first string comparison unit 208, a second string comparison unit 210, an operation instruction generation unit 212, a first control unit 214, a second information acquisition unit 216, a third string comparison unit 218, a correction instruction generation unit 220 and a second control unit 222.
[0192] The first information extraction unit 202 is used to determine an expected number string, and the expected number string includes a plurality of expected numbers.
[0193] Optionally, the expected number string is determined based on the production order sheet.
[0194] The production order sheet information is acquired through the standardized data interface and the enterprise production management system, the numbering rules in the production order sheet are automatically analyzed, and the expected number string is determined.
[0195] It should be noted that the numbering rules in the production number list include but are not limited to number format, starting number and ending number. The expected number string includes a plurality of expected numbers, the starting number of the expected number string is the first number in the plurality of expected numbers, and the ending number of the expected number string is the last number in the plurality of expected numbers.
[0196] Each expected number is any one of the numbers 0 to 9.
[0197] The first information acquisition unit 204 is configured to acquire first image information about the number machine 440.
[0198] The current state of the number machine 440 and the position state of the dialing device 430 are grasped through the image information.
[0199] The second information extraction unit 206 is configured to determine an actual number string of the number machine 440 according to the first image information, the actual number string including a plurality of actual numbers.
[0200] The first image information is pre-processed and features are extracted to obtain the actual number string.
[0201] The pre-processing manner of the image includes but is not limited to grayscale conversion and noise removal.
[0202] It should be noted that the grayscale conversion refers to converting a color image into a grayscale image (single channel), which is conducive to significantly reducing the data amount and thus reducing the calculation amount of subsequent image recognition algorithms, so as to meet the real-time requirement in a high-speed production scene. In addition, the grayscale conversion of the first image information can also enhance the contrast and make the number edge profile clearer, which is conducive to improving the accuracy of image recognition.
[0203] Optionally, a median filter or a Gaussian filter algorithm is used to remove noise, which is conducive to improving the image quality and providing a reliable data basis for subsequent character recognition, comparison and verification.
[0204] Based on an OCR (Optical Character Recognition) technology or a convolutional neural network (CNN), character recognition is performed on the first image information that has been pre-processed, so as to extract features.
[0205] It should be noted that the actual number string includes a plurality of actual numbers, the starting number of the actual number string is the first number in the plurality of actual numbers, and the ending number of the actual number string is the last number in the plurality of actual numbers.
[0206] Each actual number is any one of the numbers 0 to 9.
[0207] The first string comparison unit 208 is configured to compare the actual number string with the expected number string in terms of the first and last characters, and determine whether the starting number of the actual number string is consistent with the starting number of the expected number string, and whether the ending number of the actual number string is consistent with the ending number of the expected number string.
[0208] It should be noted that the comparison of the actual number string with the expected number string in terms of the first and last characters refers to the comparison of the starting number of the two groups of strings and the comparison of the ending number of the two groups of strings.
[0209] In this way, the number state of obvious abnormality can be quickly filtered, so as to reduce unnecessary consumption of computing resources.
[0210] The second string comparison unit 210 is configured to compare the actual number string with the expected number string in terms of each character, and determine the absolute value of the difference between each actual number and the corresponding expected number, when the starting number of the actual number string is inconsistent with the starting number of the expected number string, and / or the ending number of the actual number string is inconsistent with the ending number of the expected number string.
[0211] In the case of inconsistency in the comparison of the first and last characters, the two groups of strings (the actual number string and the expected number string) are compared in terms of each position.
[0212] Before the comparison of the actual number string with the expected number string in terms of each character, the two groups of strings are aligned in terms of position; and the i-th number in the actual number string and the i-th number in the expected number string are one-to-one corresponding in terms of the order of the strings (i represents the number of bits).
[0213] The operation instruction generation unit 212 is configured to generate an operation instruction according to the absolute value.
[0214] The absolute value corresponds to the number of movements of the dialing device 430. For example, if the difference between the actual number and the corresponding expected number is 2, the dialing device 430 (including the lifting driving member 431 and the horizontal driving member 432) corresponding to the position is driven to complete the cycle of “lifting → horizontal dialing → descending → resetting” for 2 times.
[0215] The first control unit 214 is configured to control the dialing device 430 to dial the number machine 440 according to the operation instruction.
[0216] Optionally, the operation instruction includes, but is not limited to, the action sequence and time interval of the lifting driving member 431 and the horizontal driving member 432, so as to ensure the synchronous or sequential adjustment of multiple numbers and avoid mechanical interference.
[0217] The second information acquisition unit 216 is configured to acquire second image information of the numberer 440.
[0218] The number is checked by acquiring the image information of the numberer 440 again.
[0219] The process of acquiring the second image information is consistent with the process of acquiring the first image information, and the environmental parameters (light source, focal length, shooting angle) of the two image acquisitions are consistent, so as to avoid recognition errors caused by changes in external conditions.
[0220] The third string comparison unit 218 is configured to determine a current number string of the numberer 440 according to the second image information, and compare the current number string with an expected number string character by character.
[0221] The second image information is preprocessed and features are extracted to obtain the current number string.
[0222] The image preprocessing method includes but is not limited to grayscale conversion and noise removal.
[0223] It should be noted that the grayscale conversion refers to converting a color image into a grayscale image (single channel), which is conducive to significantly reducing the data amount and thus reducing the calculation amount of the subsequent image recognition algorithm, so as to meet the real-time requirement in the high-speed production scene. In addition, the grayscale conversion of the second image information can also enhance the contrast and make the number edge profile clearer, which is conducive to improving the accuracy of image recognition.
[0224] Optionally, a median filter or a Gaussian filter algorithm is used to remove noise, which is conducive to improving the image quality and providing a reliable data basis for subsequent character recognition, comparison and checking.
[0225] Based on the OCR (Optical Character Recognition) technology or the convolutional neural network (CNN, Convolutional Neural Network), the character recognition is performed on the second image information subjected to the image preprocessing, so as to extract features.
[0226] The current number string is compared with the expected number string character by character (full character bit-by-bit comparison), so as to generate a correction instruction.
[0227] The correction instruction generation unit 220 is configured to generate a correction instruction when the current number string is inconsistent with the expected number string.
[0228] The current number string includes a plurality of current numbers.
[0229] In the case that the two groups of strings (the current number string and the expected number string) are inconsistent, the i-th number in the current number string is corresponded to the i-th number in the expected number string in sequence (i represents the number of digits), and the absolute value of the difference between the current number and the expected number is calculated.
[0230] The correction instruction is generated according to the absolute value of the difference between the current number and the expected number.
[0231] The second control unit 222 is configured to control the dialing device 430 to dial the number machine 440 according to the correction instruction, so that the current number string is consistent with the expected number string.
[0232] Optionally, the correction instruction includes, but is not limited to, the action sequence and time interval of the lifting driving member 431 and the horizontal driving member 432, so as to ensure the synchronization or sequence adjustment of multiple numbers and avoid mechanical interference.
[0233] After the dialing device 430 performs the secondary adjustment according to the correction instruction, the repeated verification is automatically performed until the current number string is completely consistent with the expected number string.
[0234] The present application aims to provide a control and verification device 200, which determines whether the actual number string is consistent with the expected number string by string comparison, generates an operation instruction or a correction instruction, and controls the dialing device 430 to dial the number machine 440, so that the current number string is consistent with the expected number string. This method can replace manual dialing and verification, which is beneficial to reduce the labor intensity of workers and significantly improve the production efficiency.
[0235] In addition, in the process of string comparison, the consistency between the actual number string and the expected number string is determined by the head-to-tail character comparison and the character-by-character comparison, which is beneficial to reduce the data processing task and improve the work efficiency, and is also beneficial to ensure the accuracy of the final printed number, reduce the waste rate, and improve the quality of the printed matter.
[0236] In an embodiment, the operation instruction generation unit 212 is configured to generate an operation instruction according to the absolute value, and the operation instruction includes:
[0237] The operation instruction generation unit 212 is configured to generate an operation instruction for controlling the dialing device 430 based on the absolute value, and the operation instruction includes the number of movements of the dialing device 430.
[0238] In an embodiment, the correction instruction generation unit 220 is configured to generate a correction instruction in the case that the current number string is inconsistent with the expected number string, and the correction instruction includes:
[0239] The correction instruction generation unit 220 is configured to generate a correction instruction for controlling the dialing device 430 in a case where the current number string is inconsistent with the expected number string, and the correction instruction comprises a number of movements of the dialing device 430.
[0240] In an embodiment, optionally, the first information acquisition unit 204 is further configured to acquire third image information about the dialing device 430.
[0241] In an embodiment, optionally, the first control unit 214 is configured to control the dialing device 430 to perform the dialing operation on the number machine 440 according to the operation instruction, and specifically comprises:
[0242] The first control unit 214 is configured to control the dialing device 430 to perform the dialing operation on the number machine 440 based on the operation instruction and the third image information.
[0243] In an embodiment, optionally, the second control unit 222 is configured to control the dialing device 430 to perform the dialing operation on the number machine 440 according to the correction instruction, so as to make the current number string consistent with the expected number string, and specifically comprises:
[0244] The second control unit 222 is configured to control the dialing device 430 to perform the dialing operation on the number machine 440 based on the correction instruction and the third image information, so as to make the current number string consistent with the expected number string.
[0245] In an embodiment, optionally, the first information extraction unit 202 is configured to determine the expected number string, and the expected number string comprises a plurality of expected numbers, and specifically comprises:
[0246] The first information extraction unit 202 is configured to acquire the production order information, and determine the expected number string according to the production order information, and the expected number string comprises a plurality of expected numbers.
[0247] In an embodiment of the present application, as shown in Figure 8 The electronic device 300 comprises a memory 310 and a processor 320. The memory 310 stores programs or instructions executable on the processor 320, and the processor 320 implements the steps of the control and verification method in any of the above embodiments when executing the programs or instructions. The electronic device 300 has the beneficial effects of any of the above embodiments, which will not be repeated here.
[0248] In an embodiment of the present application, the readable storage medium stores programs or instructions, and the steps of the control and verification method in any of the above embodiments are implemented when the programs or instructions are executed by the processor. The readable storage medium has the beneficial effects of any of the above embodiments, which will not be repeated here.
[0249] In one embodiment of the present application, the computer program product comprises a computer program which, when executed by the processor, implements the steps of the control and verification method in any of the above embodiments. The computer program product has the beneficial effects of any of the above embodiments, which will not be repeated here.
[0250] In the present application, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance; the term "multiple" refers to two or more, unless otherwise explicitly limited. The terms "mounting", "connecting", "connecting", "fixing" and the like should be broadly understood, for example, "connecting" can be fixed connection, can also be detachable connection, or integrally connected; "connected" can be directly connected, or indirectly connected through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0251] In the description of the present application, it should be understood that the terms "upper", "lower", "left", "right", "front", "back" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the devices or units referred to must have a particular direction, be constructed and operated in a particular orientation, therefore, cannot be understood as a limitation on the present application.
[0252] In the description of the present application, the description of the terms "one embodiment", "some embodiments", "a specific embodiment" and the like means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0253] The above is only the preferred embodiment of the present application, and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control and verification method, characterized in that, For an automatic dialing system, the automatic dialing system includes a control module, an image recognition device, and a dialing device, wherein the control module is electrically connected to the image recognition device and the dialing device; The control and verification methods include: Determine the expected number string, which includes multiple expected numbers; The image recognition device acquires first image information about the number machine. The actual number string of the numbering machine is determined based on the first image information, and the actual number string includes multiple actual numbers; The first and last characters of the actual number string are compared with those of the expected number string to determine whether the starting number of the actual number string is the same as the starting number of the expected number string, and whether the ending number of the actual number string is the same as the ending number of the expected number string. If the starting number of the actual number string is inconsistent with the starting number of the expected number string, and / or the ending number of the actual number string is inconsistent with the ending number of the expected number string, the actual number string and the expected number string are compared character by character to determine the absolute value of the difference between each actual number and the corresponding expected number. Based on the absolute value, an operation instruction is generated; According to the operation instructions, control the dialing device to perform dialing operations on the number machine; The image recognition device acquires second image information about the number machine. The current number string of the numbering machine is determined based on the second image information, and the current number string is compared character by character with the expected number string; If the current number string does not match the expected number string, a correction instruction is generated; According to the correction instruction, the dialing device is controlled to dial the number machine so that the current number string is consistent with the expected number string.
2. The control and verification method according to claim 1, characterized in that, The step of generating operation instructions based on the absolute value includes: Based on the absolute value, an operation instruction is generated to control the dialing device, the operation instruction including the number of times the dialing device moves.
3. The control and verification method according to claim 2, characterized in that, The dialing device includes a lifting drive, a horizontal drive, and a dial pawl; the horizontal drive is connected to the dial pawl and is used to drive the dial pawl to move along a first direction; the lifting drive is connected to the dial pawl and is used to drive the dial pawl to move along a second direction; the first direction is perpendicular to the second direction. The operation instructions include the number of movements of the lifting drive component and the number of movements of the horizontal drive component.
4. The control and verification method according to any one of claims 1 to 3, characterized in that, The step of generating a correction instruction when the current number string is inconsistent with the expected number string includes: If the current number string is inconsistent with the expected number string, a correction instruction is generated to control the dialing device, the correction instruction including the number of times the dialing device is moved.
5. The control and verification method according to any one of claims 1 to 3, characterized in that, Also includes: After generating the operation command based on the absolute value, the image recognition device obtains third image information about the dialing device. The step of controlling the dialing device to perform dialing operations on the number machine according to the operation instructions includes: Based on the operation instructions and the third image information, the dialing device is controlled to perform dialing operations on the number machine.
6. The control and verification method according to claim 5, characterized in that, The step of controlling the dialing device to perform a dialing operation on the number machine according to the correction instruction, so that the current number string is consistent with the expected number string, includes: Based on the correction instruction and the third image information, the dialing device is controlled to dial the number machine so that the current number string is consistent with the expected number string.
7. A control and verification device, characterized in that, include: The first information extraction unit is used to determine the expected number string, wherein the expected number string includes multiple expected numbers; The first information acquisition unit is used to acquire first image information about the number machine; The second information extraction unit is used to determine the actual number string of the number machine based on the first image information, wherein the actual number string includes multiple actual numbers; The first string comparison unit is used to compare the first and last characters of the actual number string with the expected number string, and to determine whether the starting number of the actual number string is consistent with the starting number of the expected number string, and whether the ending number of the actual number string is consistent with the ending number of the expected number string. The second string comparison unit is used to compare the actual number string and the expected number string character by character when the starting number of the actual number string is inconsistent with the starting number of the expected number string, and / or the ending number of the actual number string is inconsistent with the ending number of the expected number string, and to determine the absolute value of the difference between each actual number and the corresponding expected number. An operation instruction generation unit is used to generate operation instructions based on the absolute value; The first control unit is used to control the dialing device to perform dialing operations on the number machine according to the operation instructions; The second information acquisition unit is used to acquire second image information about the number machine; The third string comparison unit is used to determine the current number string of the number machine based on the second image information, and compare the current number string with the expected number string character by character; A correction instruction generation unit is used to generate a correction instruction when the current number string is inconsistent with the expected number string; The second control unit is configured to control the dialing device to perform a dialing operation on the number machine according to the correction instruction, so that the current number string is consistent with the expected number string.
8. An electronic device, characterized in that, include: A memory and a processor, wherein the memory stores a program or instructions executable on the processor, and the processor, when executing the program or instructions, implements the steps of the control and verification method as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the control and verification method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the control and verification method as described in any one of claims 1 to 6.