Lottery ticket sorting system and method based on dual detection of vision and weight
By combining visual and weight detection methods, and integrating visual features with calibrated weight information, the problem of low efficiency and poor accuracy in lottery sorting in existing technologies has been solved, achieving efficient and reliable lottery sorting results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG CAIHUI INTELLIGENT TECH CO LTD
- Filing Date
- 2026-05-15
- Publication Date
- 2026-08-04
AI Technical Summary
Existing lottery sorting technologies mainly rely on a single detection method, resulting in low efficiency and poor accuracy. This makes it difficult to meet the automation requirements of modern lottery printing and sorting, and it cannot fully cover quality risk points, leading to a high rate of missed detections.
A dual-detection method based on vision and weight is adopted, which combines visual detection and weight detection to evaluate the quality of lottery tickets from multiple dimensions. The qualification of lottery tickets is judged by visual features and calibrated weight information, and sorting control instructions are generated.
It improves the accuracy and reliability of detection, effectively distinguishes between genuine and abnormal lottery tickets, reduces the false negative rate, improves sorting efficiency, and has better adaptability and flexibility.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This application relates to the field of automated sorting and inspection technology, and in particular to a lottery sorting system and method based on both visual and weight detection. Background Technology
[0002] With the rapid development of the lottery industry and increasingly stringent market regulations, quality control in lottery production and distribution has become crucial for ensuring the industry's healthy development. Traditional lottery sorting technology mainly relies on single inspection methods (such as manual visual inspection or basic mechanical sorting), which suffers from low efficiency, poor accuracy, and susceptibility to human error, making it difficult to meet the automation requirements of modern lottery printing and sorting.
[0003] Existing systems typically rely on a single method, either visual inspection (such as pattern recognition) or weight detection, to determine the authenticity and integrity of lottery tickets. However, lottery ticket quality is affected by multiple factors: printing defects (such as ink smudging or misaligned patterns) may be detected visually, but weight anomalies (such as uneven paper thickness or counterfeit interlayering) require precise weighing technology for identification. A single detection method cannot comprehensively cover all quality risk points, resulting in a high rate of missed detections. Summary of the Invention
[0004] This application provides a lottery sorting method and system based on dual visual and weight detection. By combining visual and weight detection, the quality of lottery tickets is evaluated from multiple dimensions, which improves the accuracy and reliability of detection and effectively distinguishes between genuine and abnormal lottery tickets.
[0005] To achieve the above objectives, this application adopts the following technical solution: Firstly, a lottery sorting system based on both visual and weight detection is provided, including: The conveyor unit is used to carry and transport lottery tickets to be sorted. A visual inspection unit is used to acquire images of the lottery tickets to be sorted and extract visual features, including ticket appearance features and coding information; A weight detection unit is located on the conveying path of the conveying unit and is used to collect the weight data of the lottery tickets to be sorted and perform calibration processing to obtain calibrated weight information. The main control unit is communicatively connected to the vision inspection unit, weight inspection unit, and conveying unit. The main control unit has preset vision and weight qualification conditions. The main control unit is used for: Based on the visual features, determine whether the lottery ticket to be sorted meets the visual qualification condition, and output the visual detection result; Based on the calibrated weight information, determine whether the lottery ticket to be sorted meets the weight qualification condition, and output the weight detection result; The sorting control instructions are generated by combining the visual inspection results and the weight inspection results.
[0006] Secondly, a lottery ticket sorting method based on both visual and weight detection is provided, including: Collect images of lottery tickets to be sorted and extract visual features from the lottery ticket images, including ticket appearance features and coding information; The weight data of the lottery tickets to be sorted is collected and calibrated to obtain calibrated weight information; Based on the visual features, determine whether the lottery ticket to be sorted meets the visual qualification condition, and output the visual detection result; Based on the calibrated weight information, determine whether the lottery ticket to be sorted meets the weight qualification condition, and output the weight detection result; The sorting control instructions are generated by combining the visual inspection results and the weight inspection results.
[0007] This system combines visual inspection and weight detection to assess lottery ticket quality from multiple dimensions, improving the accuracy and reliability of inspection and effectively distinguishing genuine from defective tickets. The calibration module of the weight detection unit dynamically compensates for weight data based on environmental parameters and transport status, making the weight detection results more accurate under different environments. Through the interactive unit, users can view inspection data and anomaly information in real time and update inspection standards according to actual conditions, giving the system better adaptability and flexibility. Simultaneously, the main control unit supports data interaction with external systems, which helps to further optimize inspection standards. Based on the comprehensive inspection results, sorting control instructions are generated, and the sorting execution unit automatically completes the classification and sorting operations, improving sorting efficiency and reducing manual intervention.
[0008] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0009] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a structural block diagram of a lottery sorting system based on dual vision and weight detection provided in an embodiment of this application; Figure 2This is a flowchart illustrating the lottery sorting method based on dual visual and weight detection provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0010] The embodiments of the technical solutions of this application will now be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of this application, and are therefore merely examples and should not be used to limit the scope of protection of this application. When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a specific order. Furthermore, for clarity and conciseness, descriptions of features known in the art may be omitted.
[0011] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0012] See Figure 1 This is a schematic diagram of the lottery sorting system based on dual vision and weight detection provided in the first embodiment of this application. Figure 1 As shown, the lottery sorting system 100 based on both visual and weight detection may include: Conveying unit 110 is used to carry and transport lottery tickets to be sorted; The visual inspection unit 120 is used to acquire images of lottery tickets to be sorted and extract visual features, including ticket appearance features and coding information. The weight detection unit 130 is located on the conveying path of the conveying unit and is used to collect the weight data of the lottery tickets to be sorted and perform calibration processing to obtain the calibrated weight information. The main control unit 140 is communicatively connected to the vision inspection unit, weight inspection unit, and conveying unit. The main control unit has preset vision and weight acceptance conditions. The main control unit is used for: Based on visual features, determine whether the lottery tickets to be sorted meet the visual qualification conditions and output the visual detection results; Based on the calibrated weight information, determine whether the lottery tickets to be sorted meet the weight qualification conditions and output the weight detection results; The sorting control instructions are generated by combining the visual inspection results and the weight inspection results.
[0013] Among them, visual features refer to the key information of lottery tickets extracted through image acquisition and processing, including physical features such as the integrity of the pattern, the clarity of printing, and the consistency of color, as well as coding information such as lottery number, QR code, barcode, and other character / graphic codes used for identification. Among them, the calibrated weight information is the accurate weight data after the weight detection unit collects the original weight data, and then compensates and corrects it by combining environmental parameters (temperature, humidity) and transportation status (transportation speed, vibration interference), and eliminates errors. It can truly reflect the actual weight attributes of the lottery ticket. Among them, the visual qualification criteria are preset standards for judging the visual characteristics of lottery tickets, including the threshold for pattern integrity, the upper limit for the area of printing defects, and the requirement for code recognition accuracy, which are used to quantitatively judge whether the appearance of the ticket and the code information meet the specifications of genuine products. The weight qualification condition is a weight range threshold (such as standard weight ± allowable deviation) set based on the weight distribution pattern of genuine lottery tickets. It is used to screen lottery tickets with abnormal paper thickness, foreign objects, or inconsistent materials. Among them, the sorting control instruction is an action control signal generated by the main control unit based on the dual detection results, which is used to instruct the sorting execution unit to complete the classification and separation operation of genuine and abnormal lottery tickets. Among them, the abnormality type is the category of lottery ticket non-compliance based on the test results, including visual abnormalities (such as blurred codes, incomplete patterns, and printing ghosting), weight abnormalities (such as overweight or underweight), and double abnormalities (both visual and weight are non-compliant).
[0014] Specifically, the conveyor unit, acting as the physical transport carrier, carries the lottery tickets to be sorted and transports them smoothly at a preset speed, sequentially passing through the visual inspection area and the weight inspection area, and finally delivering them to the sorting execution area, ensuring the continuity of inspection and sorting. It provides a stable inspection environment for subsequent dual inspections, avoiding inspection errors caused by overlapping or offset lottery tickets, and is the fundamental support for the efficient operation of the system.
[0015] The visual inspection unit acquires clear images of lottery tickets through image acquisition equipment and extracts two types of visual features from the images: ticket appearance features (such as pattern integrity and printing quality); and encoded information (such as lottery number and QR code / barcode). It identifies the compliance of the lottery ticket's appearance and identity information, providing the first layer of data support for qualification judgment and accurately screening out anomalies such as damaged appearance and blurred encoding.
[0016] The weight detection unit is deployed along the conveyor path to collect raw weight data of lottery tickets in real time. Through calibration processing (combining environmental parameters and conveyor condition compensation) to eliminate errors, it outputs accurate calibrated weight information. This verifies the compliance of lottery ticket weight and complements visual inspection, effectively identifying problems that are difficult to detect visually, such as material abnormalities, foreign objects, and inconsistent paper thickness.
[0017] The main control unit receives the visual features from the visual inspection unit and the calibrated weight information from the weight inspection unit. Based on preset visual qualification conditions (such as pattern integrity threshold and code verification standard) and weight qualification conditions (such as standard weight ± deviation range), it outputs visual inspection results (qualified / unqualified) and weight inspection results (qualified / unqualified) respectively. Combining the two inspection results, it generates sorting control instructions (such as release of genuine products and rejection of abnormal products).
[0018] The conveyor unit, as the core carrier of the physical transport of lottery tickets, is responsible for smoothly and continuously transporting the tickets to be sorted to the visual inspection area, weight inspection area, and sorting execution area at a preset speed, ensuring the continuity of the inspection process and the stability of the inspection results. It adopts a belt conveyor mechanism, with the belt material made of anti-static food-grade PU material. The width is adjustable from 50-200mm to accommodate different specifications of lottery tickets (such as welfare lottery tickets, sports lottery tickets, etc.). It integrates an infrared beam sensor and a single-sheet separation device to achieve orderly single-sheet transport of lottery tickets, with the spacing between adjacent tickets controlled at 5-10cm to avoid image overlap or weight interference during inspection.
[0019] Optionally, the system also includes a sorting execution unit, which is communicatively connected to the main control unit. The sorting execution unit is used to perform sorting operations on the lottery tickets to be sorted according to the sorting control instructions; The main control unit supports local data processing and storage, and can interact with external systems to optimize testing standards.
[0020] The sorting execution unit communicates with the main control unit. Its function is to perform sorting operations on the lottery tickets to be sorted according to the sorting control instructions generated by the main control unit. For example, when the main control unit determines that a lottery ticket is a genuine lottery ticket, the sorting execution unit will sort it to the genuine lottery ticket storage area; if it is determined to be an abnormal lottery ticket, it will sort it to the corresponding abnormal lottery ticket storage area according to the type of abnormality, thus achieving accurate classification of lottery tickets.
[0021] In addition to the basic functions described in claim 1, the main control unit also supports local data processing and storage. It can locally store information such as visual features, weight data, inspection results, and sorting control instructions acquired during the inspection process for subsequent data retrieval, analysis, and traceability. Simultaneously, the main control unit can interact with external systems, such as communicating with the server of a lottery production management system, uploading inspection data to the server, and receiving instructions from the server to optimize inspection standards. Through data interaction with external systems, the main control unit can continuously optimize visual and weight qualification conditions based on actual production conditions and historical data, improving the system's inspection accuracy and adaptability.
[0022] Optionally, the visual inspection unit includes an image acquisition device and an image processing module. Image acquisition equipment is used to acquire images of lottery tickets to be sorted; The image processing module is used to preprocess and extract features from the lottery images to be sorted. The appearance features of the lottery tickets include pattern integrity and printing features.
[0023] The visual inspection unit consists of two parts: an image acquisition device and an image processing module. The image acquisition device is the source for obtaining lottery ticket images and typically uses a high-resolution, high-sensitivity camera to quickly and accurately capture image information of the lottery tickets to be sorted. These cameras can be mounted above or to the side of the conveyor unit to ensure comprehensive and clear acquisition of the lottery ticket images.
[0024] The image processing module is responsible for preprocessing and feature extraction of the acquired lottery images. Preprocessing includes image denoising and correction, removing noise interference (such as light interference and equipment noise) and correcting geometric distortions (such as perspective distortion and rotation) to improve image quality and clarity, providing a good foundation for subsequent feature extraction. In the feature extraction stage, the image processing module extracts ticket appearance features and coded information from the preprocessed image according to preset algorithms and rules. Ticket appearance features mainly focus on the integrity of the lottery design, such as checking for damage or missing parts; printing features include printing clarity and color accuracy, which can be analyzed to determine if the lottery's printing quality meets standards. The coded information serves as the unique identifier of the lottery ticket; specific decoding algorithms can extract key information for lottery tracing and identification.
[0025] Preferably, the weight detection unit includes a weighing sensor and a calibration module. The calibration module is used to compensate and correct the weight data of the lottery tickets to be sorted based on the current environmental parameters and conveying status.
[0026] The weight detection unit mainly consists of a load cell and a calibration module. The load cell is the core component of weight detection; it accurately senses the pressure applied to the lottery tickets to be sorted and converts it into a corresponding electrical signal, thereby measuring the weight of the tickets. The accuracy and stability of the load cell directly affect the accuracy of weight detection; therefore, high-precision and high-reliability sensors are typically selected.
[0027] The calibration module is designed to ensure the accuracy of weight measurement results under different environmental conditions and transport states. In practical applications, changes in environmental parameters (such as temperature and humidity) and transport states (such as transport speed) can affect the measurement results of the weighing sensor. For example, increased temperature may cause thermal expansion of the sensor material, thus affecting its measurement accuracy; excessively high transport speed may cause the weight to remain on the weighing sensor for too short a time, leading to inaccurate measurements. The calibration module compensates and corrects the weight data collected by the weighing sensor based on the current environmental parameters and transport state. It uses built-in algorithms and models, combined with pre-determined influence patterns of environmental factors and transport states on weight measurement, to adjust the original weight data, thereby obtaining more accurate calibrated weight information.
[0028] Preferably, the main control unit is specifically used to: if both the visual inspection result and the weight inspection result are qualified, then it is determined to be a genuine lottery ticket; if either inspection result is unqualified, then it is determined to be an abnormal lottery ticket, and a sorting control instruction is generated according to the abnormality type of the abnormal lottery ticket.
[0029] After acquiring the visual inspection and weight inspection results, the main control unit will make a judgment according to the following logic. If both the visual inspection and weight inspection results show as qualified, that is, the visual characteristics of the lottery ticket to be sorted meet the visual qualification conditions, and the weight information after calibration meets the weight qualification conditions, then the main control unit will determine that the lottery ticket is a genuine lottery ticket. In this case, it means that the lottery ticket meets the standard requirements in terms of appearance, coding information, and weight, and can enter the circulation channels of genuine lottery tickets.
[0030] Conversely, if either the visual inspection result or the weight inspection result is unqualified—that is, the visual characteristics of the lottery ticket to be sorted do not meet the visual qualification criteria, or the calibrated weight information does not meet the weight qualification criteria—the main control unit will determine that the lottery ticket is an abnormal ticket. For abnormal tickets, the main control unit will further generate corresponding sorting control instructions based on the type of abnormality. For example, if the visual inspection result shows that the lottery ticket pattern is damaged, but the weight inspection result is qualified, then the main control unit will generate an instruction to sort the lottery ticket to the pattern damage abnormality area; if the weight inspection result shows that the lottery ticket weight exceeds the standard range, but the visual inspection result is qualified, then the main control unit will generate an instruction to sort the lottery ticket to the weight abnormality area. In this way, accurate classification and processing of abnormal tickets can be achieved.
[0031] Preferably, the system also includes an interactive unit, which is communicatively connected to the main control unit, for displaying detection data, abnormal information, and receiving parameter configuration instructions to update visual compliance conditions and weight compliance conditions.
[0032] The interactive unit communicates with the main control unit and serves as a crucial interface for information exchange between the system and the user. It possesses multiple functions, primarily displaying detection data and anomaly information. During system operation, the interactive unit presents the visual detection results, weight detection results, and sorting control commands processed by the main control unit to the user in an intuitive manner, such as through a display screen displaying charts and text. Simultaneously, when the system detects an abnormal lottery ticket, the interactive unit promptly displays anomaly information, including the anomaly type (e.g., visual anomaly, weight anomaly) and the abnormal lottery ticket number, allowing the user to quickly understand the system's operational status and lottery ticket detection results.
[0033] In addition, the interactive unit also has the function of receiving parameter configuration commands. Users can input configuration commands through the interactive unit to update the visual and weight acceptance criteria in the system. For example, according to different lottery production batches or quality requirements, users can adjust the specific standards for pattern integrity and printing features in the visual acceptance criteria, and the setting of the lottery weight range in the weight acceptance criteria. In this way, users can flexibly adjust the system's inspection standards according to actual needs, improving the system's applicability and flexibility.
[0034] This system combines visual inspection and weight detection to assess lottery ticket quality from multiple dimensions, improving the accuracy and reliability of inspection and effectively distinguishing genuine from defective tickets. The calibration module of the weight detection unit dynamically compensates for weight data based on environmental parameters and transport status, making the weight detection results more accurate under different environments. Through the interactive unit, users can view inspection data and anomaly information in real time and update inspection standards according to actual conditions, giving the system better adaptability and flexibility. Simultaneously, the main control unit supports data interaction with external systems, which helps to further optimize inspection standards. Based on the comprehensive inspection results, sorting control instructions are generated, and the sorting execution unit automatically completes the classification and sorting operations, improving sorting efficiency and reducing manual intervention.
[0035] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a lottery ticket sorting method based on both visual and weight detection. The method includes: S1: Collect images of the lottery tickets to be sorted and extract the visual features of the lottery ticket images, including the appearance features of the ticket and the coding information.
[0036] Specifically, images of the lottery tickets to be sorted are acquired, and visual features are extracted from the images. This step utilizes image acquisition equipment (such as a camera) to obtain image information of the lottery tickets, and then uses image processing technology to preprocess and extract features from the images, obtaining visual features including ticket appearance features (such as pattern integrity and printing features) and coding information. These visual features can reflect the quality of the lottery tickets in terms of appearance and markings.
[0037] S2: Collect the weight data of the lottery tickets to be sorted and perform calibration processing to obtain the calibrated weight information.
[0038] Specifically, the weight data of the lottery tickets to be sorted is collected and calibrated to obtain calibrated weight information. The raw weight data of the lottery tickets is collected using a weighing sensor, but due to environmental factors and conveying conditions, this raw weight data may contain errors. Therefore, the calibration module dynamically compensates for the weight data based on current ambient temperature, humidity, and conveying speed parameters, thereby obtaining more accurate calibrated weight information that reflects the actual weight of the lottery tickets.
[0039] S3: Determine whether the lottery tickets to be sorted meet the visual qualification conditions based on visual features, and output the visual detection results.
[0040] Specifically, based on the extracted visual features, the system determines whether the lottery tickets to be sorted meet the visual acceptance criteria and outputs the visual inspection results. The visual features are compared and analyzed with pre-set visual acceptance criteria. If the visual features meet the standard requirements, the visual inspection result is output as qualified; otherwise, the visual inspection result is output as unqualified.
[0041] S4: Based on the calibrated weight information, determine whether the lottery tickets to be sorted meet the weight qualification conditions and output the weight detection results.
[0042] Specifically, based on the calibrated weight information, it determines whether the lottery tickets to be sorted meet the weight qualification conditions and outputs the weight detection result. The calibrated weight information is compared with the pre-set weight qualification conditions. If the weight is within the standard range, the weight detection result is output as qualified; if it exceeds the standard range, the weight detection result is output as unqualified.
[0043] S5: Generate sorting control instructions by combining visual inspection results and weight inspection results.
[0044] Specifically, sorting control instructions are generated by combining visual inspection results and weight inspection results. Based on the combination of the two inspection results, corresponding sorting control instructions are generated according to preset rules to guide subsequent lottery ticket sorting operations, such as sorting genuine lottery tickets and abnormal lottery tickets into different areas.
[0045] Optionally, visual features of the lottery image can be extracted, including: performing noise reduction and correction processing on the lottery image, and extracting the appearance features and coding information of the lottery ticket as visual features.
[0046] Specifically, in the process of extracting visual features from lottery images, the first step is to denoise the acquired lottery images. During actual acquisition, images may be subject to various noise interferences, such as light flicker and electronic noise from equipment, which can affect image quality and feature accuracy. Therefore, denoising algorithms are used to process the images, removing noise interference and improving image clarity and purity. Next, correction processing is performed to correct any geometric distortions that may exist in the image. For example, during image acquisition, factors such as camera installation angle and lottery ticket placement may cause perspective distortion and rotation in the image. Correction algorithms are used to geometrically correct the image, restoring it to a normal state for more accurate feature extraction. After denoising and correction processing, the ticket appearance features and coded information are extracted from the preprocessed image as visual features. The extraction of ticket appearance features mainly focuses on the integrity of the lottery design, analyzing the edges and contours of the design to determine if there is any damage or missing parts. The extraction of printing features includes printing clarity and color accuracy, evaluating printing quality by calculating indicators such as image contrast and color saturation. The extraction of encoded information involves using specific decoding algorithms to obtain the unique identification information of the lottery ticket from the encoded areas such as barcodes and QR codes in the image, which is used for lottery ticket tracing and identification.
[0047] Optionally, the calibration process includes: dynamically compensating the weight data based on the current ambient temperature, humidity, and conveying speed parameters to obtain calibrated weight information.
[0048] Specifically, after collecting the weight data of the lottery tickets to be sorted, calibration is performed to eliminate the influence of environmental factors and conveying conditions on weight measurement, obtaining more accurate calibrated weight information. Environmental parameters such as temperature and humidity affect the performance of the weighing sensor. For example, increased temperature may cause thermal expansion of the sensor material, thus altering the sensor's sensitivity and measurement accuracy; humidity changes may cause condensation on the sensor surface, affecting the transmission of electrical signals. Therefore, during calibration, the collected weight data needs to be compensated and adjusted according to the current ambient temperature and humidity parameters. Using a pre-established model of temperature-humidity and weight measurement error, the corresponding compensation amount is calculated based on real-time temperature and humidity values to correct the original weight data. The conveying speed also affects weight measurement. If the conveying speed is too fast, the lottery ticket's residence time on the weighing sensor is too short, which may cause the sensor to fail to accurately sense the ticket's weight; unstable conveying speed may also introduce measurement errors. Therefore, the calibration module dynamically compensates for the weight data based on the current conveying speed parameters. By analyzing the relationship between conveying speed and weight measurement error, a corresponding compensation algorithm is established. The original weight data is adjusted according to the real-time conveying speed value, thereby obtaining more accurate calibrated weight information.
[0049] Optionally, the detection data and anomaly information of the lottery image can be displayed through the interactive unit, and configuration instructions input by the user can be received to update the visual compliance conditions and weight compliance conditions.
[0050] In the lottery sorting method based on both visual and weight detection, in addition to the basic steps of image acquisition, feature extraction, weight data acquisition and calibration, detection result judgment, and sorting control instruction generation, an interactive unit is used to display information and configure parameters. The interactive unit can display the detection data and anomaly information of the lottery image. During system operation, the interactive unit presents visual detection results, weight detection results, and sorting control instructions to the user in an intuitive way. For example, the display screen shows the visual feature analysis results, weight measurement value, and whether the lottery ticket is qualified for each ticket; when an abnormal lottery ticket is detected, detailed information such as the anomaly type and the abnormal lottery ticket number is displayed in a timely manner, allowing users to understand the system's operation and the lottery ticket detection results in real time. Simultaneously, the interactive unit also has the function of receiving configuration instructions input by the user. Users can update the visual and weight qualification conditions in the system through the interactive unit according to actual needs. For example, in different lottery production batches, due to differences in production processes or quality requirements, it may be necessary to adjust the specific standards for pattern integrity and printing features in the visual qualification conditions, as well as the setting of the lottery ticket weight range in the weight qualification conditions. Users can input corresponding configuration commands through the interactive unit. After receiving the commands, the system will update the preset qualification conditions, so that the system can better adapt to different production scenarios and quality requirements, and improve the system's flexibility and applicability.
[0051] This method combines visual inspection and weight inspection to assess lottery ticket quality from multiple dimensions, improving the accuracy and reliability of inspection and effectively distinguishing genuine from defective tickets. The calibration module of the weight inspection unit can dynamically compensate for weight data based on environmental parameters and transport status, making the weight inspection results more accurate under different environments. Through the interactive unit, users can view inspection data and anomaly information in real time and update inspection standards according to actual conditions, giving the system better adaptability and flexibility. Simultaneously, the main control unit supports data interaction with external systems, which helps to further optimize inspection standards. Based on the comprehensive inspection results, sorting control instructions are generated, and the sorting execution unit automatically completes the classification and sorting operations, improving sorting efficiency and reducing manual intervention.
[0052] Figure 3 This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... Figure 3 As shown, the electronic device 5 of this embodiment includes: at least one processor 50 ( Figure 3 (Only one is shown in the diagram) a processor, a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, wherein the processor 50 executes the computer program 52 to implement the steps in any of the above embodiments of the lottery sorting method based on dual vision and weight detection.
[0053] The electronic device may be a desktop computer, laptop, handheld computer, or cloud server, etc. This electronic device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that... Figure 3 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0054] The processor 50 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0055] In some embodiments, the memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. In other embodiments, the memory 51 may be an external storage device of the electronic device 5, such as a plug-in hard disk, SmartMediaCard (SMC), SecureDigital (SD) card, or FlashCard equipped on the electronic device 5. Furthermore, the memory 51 may include both internal and external storage units of the electronic device 5. The memory 51 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0056] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.
[0057] This application provides a computer program product that, when run on an electronic device, enables the electronic device to implement the steps described in the various method embodiments above.
[0058] If the integrated unit is implemented as a software functional unit and used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0059] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0060] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0061] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0062] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0064] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0065] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0066] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0067] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0068] In the description of the embodiments of this application, the technical terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing the embodiments of this application and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.
[0069] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0070] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A lottery ticket sorting system based on both visual and weight detection, characterized in that, include: The conveyor unit is used to carry and transport lottery tickets to be sorted. A visual inspection unit is used to acquire images of the lottery tickets to be sorted and extract visual features, including ticket appearance features and coding information; A weight detection unit is located on the conveying path of the conveying unit and is used to collect the weight data of the lottery tickets to be sorted and perform calibration processing to obtain calibrated weight information. The main control unit is communicatively connected to the vision inspection unit, weight inspection unit, and conveying unit. The main control unit has preset vision and weight qualification conditions. The main control unit is used for: Based on the visual features, determine whether the lottery ticket to be sorted meets the visual qualification condition, and output the visual detection result; Based on the calibrated weight information, determine whether the lottery ticket to be sorted meets the weight qualification condition, and output the weight detection result; The sorting control instructions are generated by combining the visual inspection results and the weight inspection results.
2. The system according to claim 1, characterized in that, It also includes a sorting execution unit, which is communicatively connected to the main control unit. The sorting execution unit is used to perform classification and sorting operations on the lottery tickets to be sorted according to the sorting control instructions; The main control unit supports local data processing and storage, and can interact with external systems to optimize detection standards.
3. The system according to claim 1, characterized in that, The visual inspection unit includes an image acquisition device and an image processing module. The image acquisition device is used to acquire images of the lottery tickets to be sorted; The image processing module is used to preprocess and extract features from the lottery images of the lottery tickets to be sorted. The appearance features of the tickets include pattern integrity and printing features.
4. The system according to claim 1, characterized in that, The weight detection unit includes a weighing sensor and a calibration module. The calibration module is used to compensate and correct the weight data of the lottery tickets to be sorted according to the current environmental parameters and conveying status.
5. The system according to claim 1, characterized in that, The main control unit is specifically used to: if both the visual detection result and the weight detection result are qualified, then it is determined to be a genuine lottery ticket; if either detection result is unqualified, then it is determined to be an abnormal lottery ticket, and a sorting control instruction is generated according to the abnormality type of the abnormal lottery ticket.
6. The system according to claim 1, characterized in that, It also includes an interaction unit, which is communicatively connected to the main control unit, for displaying detection data, abnormal information and receiving parameter configuration instructions to update the visual qualification conditions and the weight qualification conditions.
7. A lottery ticket sorting method based on dual visual and weight detection, characterized in that, Includes the following steps: Collect images of lottery tickets to be sorted and extract visual features from the lottery ticket images, including ticket appearance features and coding information; The weight data of the lottery tickets to be sorted is collected and calibrated to obtain calibrated weight information; Based on the visual features, determine whether the lottery ticket to be sorted meets the visual qualification condition, and output the visual detection result; Based on the calibrated weight information, determine whether the lottery ticket to be sorted meets the weight qualification condition, and output the weight detection result; The sorting control instructions are generated by combining the visual inspection results and the weight inspection results.
8. The method according to claim 7, characterized in that, The step of extracting the visual features of the lottery image includes: performing noise reduction and correction processing on the lottery image, and extracting the appearance features and encoding information of the lottery ticket as visual features.
9. The method according to claim 7, characterized in that, The calibration process includes: dynamically compensating the weight data based on the current ambient temperature, humidity, and conveying speed parameters to obtain the calibrated weight information.
10. The method according to claim 7, characterized in that, Also includes: The interactive unit displays the detection data and anomaly information of the lottery image and receives configuration instructions input by the user to update the visual qualification conditions and weight qualification conditions.