A vending machine appearance sticker version identification method and system
By combining a lightweight YOLO with a finely tuned Qwen3-VL multi-model weighted fusion scheme and image quality verification, we have achieved efficient and accurate recognition and dynamic management of sticker versions for vending machines. This solves the problems of low efficiency and high misjudgment rate in existing technologies and adapts to the needs of complex environments and large-scale operations.
Patent Information
- Application Number
- CN202611217890.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for vending machine sticker version recognition suffer from low efficiency, susceptibility to misjudgment, inability to distinguish seven types of subtle differences, poor robustness, and lack of an edge-cloud collaborative architecture, making them unsuitable for complex environments and large-scale operation needs.
A lightweight YOLO and fine-tuned Qwen3-VL multi-model weighted fusion scheme is adopted, combined with the Tenengrad image quality verification mechanism, and automatic identification and alarm of sticker versions are achieved through lightweight inference on the edge side, large model inference framework on the edge side, and business rule engine on the cloud side.
It achieves accurate recognition of 7 types of stickers with similar appearances, adapts to complex environments, reduces the false recognition rate, supports large-scale operation and maintenance of tens of thousands of devices, provides dynamic management and security control, and ensures brand image and compliant operation.
Smart Images

Figure CN123181900A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence machine vision and edge computing technology, specifically to a method and system for recognizing the version of the exterior sticker on an automatic vending machine. Background Technology
[0002] Today, vending machines offering a variety of products, including ambient temperature, refrigerated, and fresh produce, are widely deployed in campuses, communities, transportation hubs, and office buildings. The stickers on the machines serve to showcase brands, convey operational information, and display compliance information. These stickers need to be updated regularly as brands upgrade, operational strategies adjust, and compliance requirements change. There are seven different sticker versions in the industry, with significant differences in the appearance details of stickers between different models and batches, necessitating automated identification and control measures.
[0003] Currently, sticker version inspection and update management still rely on manual operation, and all existing technologies have significant shortcomings. First, manual inspection is inefficient, requiring maintenance personnel to check and manually record the version on each device, which is difficult to support large-scale inspection of tens of thousands of devices. Humans are susceptible to visual fatigue and subjective judgment, leading to misjudgments, missed detections of damaged or detached stickers, and the lack of a unified version traceability led to chaotic sticker version management. Second, general target detection technology can only locate sticker areas and cannot distinguish subtle color and marking differences between the seven sticker versions, resulting in low accuracy. Furthermore, it is not adapted to vending machine maintenance scenarios and lacks low-latency processing capabilities for edge-side and side-side collaboration. Third, traditional pixel-comparison image recognition algorithms are sensitive to interference from strong outdoor light, low light, stains, wrinkles, and viewing angle shifts, exhibiting poor robustness and a high likelihood of misidentification and missed identification. Fourth, a few AI detection systems for vending machines on the market are only developed for dirty machines and damaged shells, without being specifically optimized for sticker version recognition. They do not have the ability to identify 7 different versions and have not built an integrated operation and maintenance logic for identification, judgment, alarm and handling, which cannot meet the needs of large-scale brand standardized operation and compliance management.
[0004] In summary, existing technologies suffer from shortcomings such as insufficient recognition accuracy, lack of ability to distinguish between multiple versions, single processing architecture, and weak adaptability to complex environments. The industry urgently needs new recognition solutions to address these pain points. Summary of the Invention
[0005] To address these issues, this invention provides a method and system for identifying different versions of stickers on vending machines. This system solves the problems of low efficiency and susceptibility to misjudgment due to manual inspection of vending machine stickers; difficulty in distinguishing subtle differences between seven types of stickers using conventional image models; poor stability in complex outdoor scenes; lack of an edge-cloud collaborative architecture; absence of operational logic; and lack of security control mechanisms for models and data.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for identifying the version of an exterior sticker on an automatic vending machine, comprising:
[0007] S1. Load the standard template of the sticker version on the cloud side, configure the anomaly judgment rules, inspection frequency, alarm strategy parameters, load the image quality verification algorithm and YOLO positioning model on the end side, load the version recognition fine-tuning model and inference framework on the edge side, and establish the end-edge-cloud communication link.
[0008] S2. The end-side uses a built-in camera to collect raw images at a preset inspection frequency / remote command, and performs preprocessing operations on the raw images;
[0009] S3. Calculate the image sharpness score, and verify the sharpness, exposure status, and viewpoint compliance of the preprocessed image. Filter out images that do not meet the quality standards and trigger the image re-acquisition operation.
[0010] S4. The edge side uses a lightweight model to locate all sticker areas in the image, extracts the preliminary appearance features of the stickers, cuts out the effective sticker areas, and encrypts and uploads them to the edge side server.
[0011] S5. The side uses the inference framework and the sticker version template to perform version matching and recognition on the uploaded image. The weighted average method is used to fuse the YOLO model's location reliability and the version recognition model's matching degree to output the structured recognition result.
[0012] S6. The cloud-side, combined with the business rule engine, performs sticker version information fusion and status determination on the structured recognition results, generates a sticker status snapshot, classifies abnormal levels, and triggers the push of local alarms and remote operation and maintenance alarms on the terminal side.
[0013] S7. The cloud side persistently stores the identification results, status judgment information, and alarm records to the database, persistently stores all identification and alarm data, outputs standardized structured results to external systems, and re-executes identification verification after the operation and maintenance is completed.
[0014] As a preferred embodiment of the method for identifying the version of the vending machine's exterior sticker, in S1, the sticker version includes white-orange version, platinum version, white version, diamond version, collaboration version, and new version;
[0015] The standard template includes the color, pattern, and size characteristics of each version.
[0016] As a preferred method for identifying the version of the vending machine's exterior sticker, in S2, the preset inspection frequency is no less than once a day;
[0017] The preprocessing includes converting the original image into OpenCV format and performing resizing, distortion correction, and cache management.
[0018] As a preferred method for identifying the version of the vending machine's exterior sticker, in S3, the formula for calculating the image clarity score is:
[0019]
[0020] In the formula, Rate the image sharpness. , These are the horizontal and vertical gradients of the Sobel operator, respectively. , These are the height and width of the image, respectively;
[0021] When the image sharpness score Less than the preset resolution threshold If the image is determined to be blurry, the terminal side is triggered to re-acquire the image.
[0022] As a preferred solution for the method of identifying the version of the appearance sticker of the vending machine, in S4, the edge NPU runs a lightweight YOLOv11n-pruned model and outputs the coordinate frame, sticker type label and the preliminary appearance features of color, outline and key identification class for each sticker area; the sticker type label includes brand sticker, promotional sticker and compliance sticker.
[0023] Determine the degree of occlusion or damage of the stickers, filter out non-sticker areas and severely occluded images, and encrypt and upload the valid sticker areas.
[0024] As a preferred solution for the method of identifying the version of the appearance sticker of an automatic vending machine, in S5, the edge server calls the Qwen3-VL-Chat fine-tuning model through the vLLM inference framework, inputs the cropped sticker image uploaded by the edge, the sticker type label, and the preliminary feature information, performs feature matching with the cloud-side sticker version template, and outputs the structured recognition result including sticker version category, version matching degree, version timeliness, and abnormal prompts.
[0025] As a preferred method for identifying the version of the vending machine's exterior sticker, in S5, the weighted average calculation formula is as follows:
[0026]
[0027] In the formula, Positional reliability of stickers for YOLOv11n-pruned models To determine the model matching degree for version identification, , These are the corresponding weighting coefficients.
[0028] As a preferred method for identifying the version of the vending machine's exterior sticker, in S6, the abnormality level is divided into WARNING level and CRITICAL level;
[0029] The WARNING level includes stickers that are outdated, slightly damaged, or slightly obscured, but do not affect the display of information.
[0030] The CRITICAL rating includes sticker peeling, severe damage, severe obstruction, and misplacement, which affect brand image / compliance operations;
[0031] The local alarms include the WARNING level triggering the yellow LED on the device to flash at a frequency of 1Hz, and the screen displaying a version update prompt; the CRITICAL level triggering the red LED on the device to stay on, and the screen displaying an abnormality prompt.
[0032] The remote operation and maintenance alarm push includes the cloud-side operation and maintenance platform pushing alarm information and structured data of the corresponding level.
[0033] As a preferred solution for the method of identifying the version of the vending machine's exterior sticker, in S7, the cloud side uses Redis to cache hotspot version templates and device online status;
[0034] The structured recognition results in JSON format are output to the operation and maintenance management backend, equipment management platform, and work order system via RESTful API. The structured recognition results include equipment ID, equipment model, sticker type, specific version, version matching degree, anomaly level, recognition time, and image link field.
[0035] After the maintenance personnel complete the sticker update / repair, the system re-executes the image acquisition and status determination steps to verify whether the updated version meets the requirements. Once the requirements are met, the work order is completed and the device version record is updated.
[0036] This invention also provides a vending machine exterior sticker version recognition system, employing the aforementioned vending machine exterior sticker version recognition method, comprising:
[0037] System initialization and version library loading module: Used to load standard templates for sticker versions on the cloud side, configure anomaly judgment rules, inspection frequency, alarm strategy parameters, load image quality verification algorithm and YOLO positioning model on the edge side, load version recognition fine-tuning model and inference framework on the edge side, and establish end-edge-cloud communication link;
[0038] Image acquisition and preprocessing module: used by the end side to acquire raw images through the built-in camera at a preset inspection frequency / remote command, and to perform preprocessing operations on the raw images;
[0039] Image quality verification and invalid filtering module: used to calculate image sharpness score, verify the sharpness, exposure status and viewpoint compliance of the preprocessed image, filter images that do not meet the quality standards and trigger the re-acquisition of images;
[0040] Sticker region localization and feature extraction module: used by the edge to locate all sticker regions in the image using a lightweight model, extract preliminary appearance features of the stickers, crop the effective sticker regions and encrypt and upload them to the edge server;
[0041] Sticker version recognition module: It is used to perform version matching and recognition of uploaded images by combining the inference framework with sticker version templates, and adopts the weighted average method to fuse the YOLO model's location reliability and the version recognition model's matching degree to output structured recognition results.
[0042] Status determination and anomaly alarm module: used by the cloud side to combine with the business rule engine to perform sticker version information fusion and status determination on the structured recognition results, generate sticker status snapshot, classify anomaly levels and trigger the push of local alarms and remote operation and maintenance alarms on the end side.
[0043] The result output and operation and maintenance logic module is used to persistently store the identification results, status judgment information, and alarm records to the database on the cloud side, persistently store all identification and alarm data, output standardized structured results to external systems, and re-execute identification verification after the operation and maintenance is completed.
[0044] The present invention has the following advantages:
[0045] First, this invention uses a lightweight YOLO and fine-tuned Qwen3-VL multi-model weighted fusion scheme to distinguish seven types of vending machine sticker versions with highly similar appearances; combined with the Tenengrad image quality verification mechanism to filter out invalid images that are blurry, abnormally exposed, or severely occluded, it is adaptable to complex deployment scenarios such as strong outdoor light, low light, stains, and wrinkles, and has excellent robustness, effectively reducing the probability of misidentification and missed identification.
[0046] Secondly, the invention utilizes the RK3588NPU on the end side to perform lightweight inference, uploading only the cropped small-sized sticker area, effectively saving transmission bandwidth; on the edge side, it accelerates large model computation based on the vLLM inference framework and containerized deployment, and a single edge node can support multiple devices for concurrent identification tasks, with end-to-end identification latency meeting real-time operation and maintenance response requirements.
[0047] Third, this invention replaces the manual on-site inspection mode of checking each device individually, supports timed data collection and remote triggering identification, is suitable for large-scale operation and maintenance scenarios with tens of thousands of devices, and avoids the problems of missed detection caused by human visual fatigue and subjective bias; it is equipped with a dynamically manageable sticker version library, combined with a two-level hierarchical alarm, work order dispatch, and automatic re-inspection mechanism after repair, to achieve full life-cycle traceability of sticker versions and solve the pain point of chaotic version management.
[0048] Fourth, all AI models in this invention are stored using AES encryption and are equipped with a secure OTA upgrade solution that features signature verification, breakpoint resume, and upgrade rollback capabilities. The system is deployed in a private intranet to ensure the security of image and recognition data. New sticker versions or device models can be adapted simply by updating the version template, without requiring large-scale modifications to the underlying code.
[0049] Fifth, this invention can identify old and incorrectly applied stickers on existing equipment in batches, promoting the standardization of the visual appearance of offline equipment; ensuring that compliant labels and stickers are fully and effectively displayed, reducing the operational risks caused by non-compliant labels, and maintaining a standardized brand image in the long term. Attached Figure Description
[0050] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.
[0051] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.
[0052] Figure 1 This is a schematic diagram of a method for identifying the version of an exterior sticker on a vending machine, as provided in Embodiment 1 of the present invention.
[0053] Figure 2 This is a technical roadmap for a method for identifying the version of an exterior sticker on a vending machine, as provided in Embodiment 1 of the present invention.
[0054] Figure 3 This is a schematic diagram of a multi-model collaborative recognition method for identifying the version of an automatic vending machine's exterior sticker, as provided in Embodiment 1 of the present invention.
[0055] Figure 4 This is an overall architecture diagram of an automatic vending machine appearance sticker version recognition system provided in Embodiment 1 of the present invention;
[0056] Figure 5 This is a schematic diagram of the architecture of an automatic vending machine appearance sticker version recognition system provided in Embodiment 1 of the present invention. Detailed Implementation
[0057] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0058] Example 1
[0059] See Figure 1 , Figure 2 and Figure 3 This invention provides a method for identifying the version of an exterior sticker on a vending machine, comprising:
[0060] S1. Load the standard template of the sticker version on the cloud side, configure the anomaly judgment rules, inspection frequency, alarm strategy parameters, load the image quality verification algorithm and YOLO positioning model on the end side, load the version recognition fine-tuning model and inference framework on the edge side, and establish the end-edge-cloud communication link.
[0061] Specifically, a three-tier distributed architecture (edge-cloud) is adopted for system initialization. Computing tasks are deployed in layers according to computing power requirements and real-time requirements. The cloud side has centralized management capabilities and is responsible for the unified distribution of global versions and business rules to ensure consistent recognition standards across the entire network. Lightweight algorithms and models are deployed on the edge side to adapt to the limited computing power of devices and meet the requirements for low-latency preprocessing and positioning. A large model inference framework is deployed on the edge side to undertake high-precision recognition tasks, balancing computing power density and low-latency transmission within the region. A dedicated communication link is established to realize three-layer data synchronization and command issuance, avoiding the problems of high bandwidth pressure and high latency in a single centralized architecture, or insufficient computing power and low recognition accuracy on the pure edge side.
[0062] S2. The end-side uses a built-in camera to collect raw images at a preset inspection frequency / remote command, and performs preprocessing operations on the raw images;
[0063] Specifically, image acquisition is achieved based on an edge-embedded vision acquisition system. The MIPI interface camera features low power consumption, high frame rate, and compatibility with embedded main control, making it suitable for long-term unattended operation scenarios of vending machines. Preset inspection frequency enables unmanned inspection, and remote commands support maintenance personnel to conduct spot checks as needed. Two triggering modes cater to both routine maintenance and emergency troubleshooting needs. Preprocessing operations eliminate differences in image format and lens optical distortion under different acquisition conditions by unifying image format and correcting optical distortion, providing standardized input for quality verification and model inference, and avoiding recognition errors caused by inconsistent image formats and distortion.
[0064] S3. Calculate the image sharpness score, and verify the sharpness, exposure status, and viewpoint compliance of the preprocessed image. Filter out images that do not meet the quality standards and trigger the image re-acquisition operation.
[0065] Specifically, a quality assessment mechanism based on image gradient features is used to pre-filter invalid images. The Tenengrad algorithm extracts the gray-level gradients in the horizontal and vertical directions of the image using the Sobel operator. The clearer the image, the larger the edge gradient value and the higher the mean of the gradient squared sum. Conversely, the blurred image has smooth edges and a lower gradient value. The blurry image is determined by quantifying the sharpness score. At the same time, combined with exposure value statistics and viewpoint shift detection, invalid samples with overexposure, underexposure, or excessive shooting angle deviation are eliminated. Pre-filtering can avoid low-quality images from consuming bandwidth and prevent invalid images from being input into the recognition model, thus ensuring the recognition accuracy from the input side.
[0066] S4. The edge side uses a lightweight model to locate all sticker areas in the image, extracts the preliminary appearance features of the stickers, cuts out the effective sticker areas, and encrypts and uploads them to the edge side server.
[0067] Specifically, a lightweight target detection algorithm enables rapid localization of sticker areas on the device side. The YOLO series single-stage detection model features end-to-end and fast inference speed. The pruned and optimized YOLOv11n-pruned model has significantly reduced parameters and computational load, making it compatible with the computing power of the device-side NPU and enabling real-time sticker localization. The model simultaneously outputs the sticker's coordinates, category, and preliminary appearance features, achieving parallel processing of target localization and primary feature extraction. Cropping the effective area can remove irrelevant pixels such as those from the device body and background environment, significantly compressing the image file size and reducing uplink bandwidth consumption. Encrypted transmission ensures the data security of the device appearance image and prevents the leakage of operational visual information.
[0068] S5. The side uses the inference framework and the sticker version template to perform version matching and recognition on the uploaded image. The weighted average method is used to fuse the YOLO model's location reliability and the version recognition model's matching degree to output the structured recognition result.
[0069] Specifically, high-precision version differentiation is achieved based on edge-side large model inference and multi-model fusion mechanism. The vLLM inference framework optimizes the inference throughput of large model through techniques such as pagination attention, improving recognition efficiency under multi-device concurrency. The multimodal visual large model has fine-grained feature extraction capabilities, which can capture subtle differences in color, pattern, and logo between different versions of stickers, and achieve classification of multiple versions by combining standard template matching. The weighted average fusion method calculates the location confidence of the edge detection model and the matching degree of the edge recognition model by weight, and uses the reliability of the location results to correct the final recognition confidence, avoiding single-model recognition bias and further improving the reliability of the overall recognition results.
[0070] S6. The cloud-side, combined with the business rule engine, performs sticker version information fusion and status determination on the structured recognition results, generates a sticker status snapshot, classifies abnormal levels, and triggers the push of local alarms and remote operation and maintenance alarms on the terminal side.
[0071] Specifically, a hierarchical judgment mechanism based on the rule engine enables hierarchical response to anomalies. The business rule engine transforms operation and maintenance business rules into executable judgment logic, and combines the identified version information and damage / obstruction status to comprehensively evaluate the overall status of the sticker. Alarms are divided into two levels according to the degree of impact of the anomaly, realizing differentiated priority division of handling and avoiding the waste of operation and maintenance resources caused by handling all anomalies equally. In the dual-channel alarm mechanism, local alarms can provide real-time on-site prompts, and remote push can be synchronized to the operation and maintenance management terminal, ensuring that anomaly information reaches the handling personnel as soon as possible and shortening the anomaly response cycle.
[0072] S7. The cloud side persistently stores the identification results, status judgment information, and alarm records to the database, persistently stores all identification and alarm data, outputs standardized structured results to external systems, and re-executes identification verification after the operation and maintenance is completed.
[0073] Specifically, based on data persistence and logical verification mechanisms, the entire process of operation and maintenance management is achieved. The MySQL relational database supports persistent storage and multi-dimensional retrieval of structured data, can retain all identification history and alarm records, and supports version traceability and statistical analysis. Standardized API output enables seamless integration with existing operation and maintenance and work order systems, breaking down data silos. Post-handling re-verification confirms the handling effect through secondary identification, ensuring that the sticker version is updated or repaired in accordance with the standard, forming a complete logic of "identification-alarm-handling-verification", avoiding the recurrence of problems caused by the lack of verification after abnormal handling.
[0074] In one possible embodiment, in S1, the sticker versions include a white-orange version, a platinum version, a white version, a diamond version, a collaboration version, and a new version;
[0075] The standard template includes the color, pattern, and size characteristics of each version.
[0076] Specifically, the seven mainstream sticker versions developed through actual iterations in the vending machine industry are standardized and categorized, covering all scenarios including regular iteration versions, customized versions, and collaborative versions. The standard template extracts three quantifiable features: color, pattern, and size, providing a clear matching benchmark for the visual model and ensuring that the recognition standards are consistent across different devices and regions. At the same time, it provides a standardized template structure for the dynamic updates of the subsequent version library. When adding a new version, features can be added according to the same dimensions to complete the adaptation.
[0077] In one possible embodiment, in S2, the preset inspection frequency is no less than once a day;
[0078] The preprocessing includes converting the original images into OpenCV format and performing resizing, distortion correction, and cache management.
[0079] Specifically, a daily inspection frequency of at least once ensures granular monitoring of sticker status, promptly identifying sticker peeling, damage, and outdated versions; uniform conversion to OpenCV format is to adapt to the input requirements of subsequent image processing algorithms such as image quality verification and cropping, avoiding algorithm compatibility issues caused by differences in output formats from different cameras; size adjustment normalizes images to a fixed resolution, ensuring consistent input size for subsequent model inference; distortion correction corrects barrel distortion from wide-angle cameras, restoring the true shape and proportions of the stickers; cache management temporarily stores captured images, preventing data loss during network fluctuations and improving system stability.
[0080] In one possible embodiment, in S3, the image sharpness score calculation formula is:
[0081]
[0082] In the formula, Rate the image sharpness. , These are the horizontal and vertical gradients of the Sobel operator, respectively. , These are the height and width of the image, respectively;
[0083] When the image sharpness score Less than the preset resolution threshold If the image is determined to be blurry, the terminal side is triggered to re-acquire the image.
[0084] Specifically, the Sobel operator uses a 3×3 convolution kernel to perform edge detection in the horizontal and vertical directions of the image, obtaining the gradient magnitude of each pixel. The average of the squared gradients of all pixels in the image is then summed to obtain the quantified value T for the overall image sharpness. Sharp images have many sharp edges, resulting in high gradient values and correspondingly larger T values; blurry images have smoothed edges, resulting in low gradient values and smaller T values. A preset threshold is used for binarization; images below the threshold are considered blurry and trigger a re-encoder. This quantified metric replaces subjective human judgment, ensuring consistent image input quality.
[0085] In one possible embodiment, in S4, the edge NPU runs a lightweight YOLOv11n-pruned model and outputs the coordinate frame, sticker type label, and preliminary appearance features of each sticker area, including color, outline, and key identifiers; the sticker type label includes brand stickers, promotional stickers, and compliance stickers.
[0086] Determine the degree of occlusion or damage of the stickers, filter out non-sticker areas and severely occluded images, and encrypt and upload the valid sticker areas.
[0087] Specifically, the dedicated NPU computing unit can accelerate neural network inference in parallel, significantly improving the inference speed of the YOLO model compared to the CPU, while reducing power consumption on the device side; stickers are divided into three categories: brand stickers, promotional stickers, and compliance stickers, and corresponding version templates and judgment rules can be matched for different types of stickers to improve the targeting of recognition; preliminary features such as color and outline are extracted simultaneously and occlusion and damage are judged, and preliminary status screening can be completed on the device side in advance to filter severely occluded and unrecognizable images and avoid invalid uploads; the 300KB single image size limit can compress the amount of transmitted data to the maximum extent while ensuring the details required for recognition, reducing bandwidth costs and transmission latency, and adapting to the narrowband network environment commonly used in vending machines.
[0088] In one possible embodiment, in S5, the edge server calls the Qwen3-VL-Chat fine-tuning model through the vLLM inference framework, inputs the cropped sticker image uploaded from the edge, the sticker type label, and preliminary feature information, performs feature matching with the cloud-side sticker version template, and outputs the structured recognition result including sticker version category, version matching degree, version timeliness, and anomaly prompt.
[0089] Specifically, the Qwen3-VL multimodal large model possesses powerful fine-grained visual understanding capabilities. After LoRA fine-tuning, it can specifically learn the subtle feature differences of 7 sticker versions, solving the problem of insufficient differentiation of similar versions by general models. The input side integrates prior information such as sticker type and preliminary features, which can guide the model to focus on the corresponding category template, improving recognition speed and accuracy. Feature matching is performed with the standard template synchronized with the cloud side to ensure that the recognition benchmark is consistent with the global management standard. The output is a multi-field structured result that can be directly connected to business systems without secondary parsing, improving data flow efficiency.
[0090] In one possible embodiment, in S5, the weighted average calculation formula is:
[0091]
[0092] In the formula, Positional reliability of stickers for YOLOv11n-pruned models To determine the model matching degree for version identification, , These are the corresponding weighting coefficients.
[0093] Specifically, location reliability reflects the certainty that the detected region is indeed a sticker, while version matching reflects the similarity between the region and the target version. Both represent the reliability of the recognition results from different dimensions. Adjustable weights are assigned... , The weighting of the two model results can be adjusted according to the actual deployment scenario. For example, the weight of location confidence can be increased in complex scenarios, and the weight of version matching can be increased in simple scenarios. The constraint that the weight sum is 1 ensures that the final score is in the normalized range, which facilitates the unified threshold judgment. The final output comprehensive confidence is more stable and has a lower misjudgment rate than the single model result.
[0094] In one possible embodiment, in S6, the abnormality level is divided into a WARNING level and a CRITICAL level;
[0095] The WARNING level includes stickers that are outdated, slightly damaged, or slightly obscured, but do not affect the display of information.
[0096] The CRITICAL rating includes sticker peeling, severe damage, severe obstruction, and misplacement, which affect brand image / compliance operations;
[0097] The local alarms include the WARNING level triggering the yellow LED on the device to flash at a frequency of 1Hz, and the screen displaying a version update prompt; the CRITICAL level triggering the red LED on the device to stay on, and the screen displaying an abnormality prompt.
[0098] The remote operation and maintenance alarm push includes the cloud-side operation and maintenance platform pushing alarm information and structured data of the corresponding level.
[0099] Specifically, WARNING level anomalies have a relatively small impact on brand and compliance, and are considered routine maintenance matters. They are addressed with low-intensity alarms using low-frequency flashing and general prompts to avoid excessive disruption to on-site operations. CRITICAL level anomalies directly affect brand image and compliance requirements, and are high-priority faults. They are addressed with strong prompts using high-brightness constant illumination and pop-up windows to ensure that on-site personnel can quickly identify them. Structured data of the corresponding level is pushed remotely to facilitate the maintenance system in dispatching tasks according to priority, prioritizing the handling of critical anomalies, rationally allocating maintenance resources, and improving overall maintenance efficiency.
[0100] In one possible embodiment, in S7, the cloud side uses Redis to cache hotspot version templates and device online status;
[0101] The structured recognition results in JSON format are output to the operation and maintenance management backend, equipment management platform, and work order system via RESTful API. The structured recognition results include equipment ID, equipment model, sticker type, specific version, version matching degree, anomaly level, recognition time, and image link field.
[0102] After the maintenance personnel complete the sticker update / repair, the system re-executes the image acquisition and status determination steps to verify whether the updated version meets the requirements. Once the requirements are met, the work order is completed and the device version record is updated.
[0103] Specifically, the Redis in-memory database boasts extremely high read speeds, and caching hot version templates and device status can significantly reduce the read pressure on the MySQL database, improving the response speed of cloud services. The RESTful API uses the universal HTTP protocol and JSON format, ensuring excellent compatibility and enabling rapid integration with various third-party operation and maintenance systems for data interoperability. The fully structured results cover all dimensions of information, including device, sticker, status, and time, meeting the data needs of multiple scenarios such as work order generation, statistical analysis, and version tracing. The post-handling review mechanism verifies the effectiveness of operation and maintenance, ensuring that problems are effectively resolved, while automatically updating device version files to ensure consistency between the ledger data and the actual on-site status.
[0104] See Figure 3This diagram illustrates the multi-model collaborative workflow for vending machine sticker version recognition. The process begins with the original sticker image as input, first fed into the YOLOv11n-pruned lightweight detection model. This model simultaneously performs two parallel processing paths: one path detects and locates the sticker area, outputting the sticker's coordinate boundaries in the original image; the other path extracts preliminary appearance features such as color, outline, and key identifiers. The localization results and preliminary features are combined into the effective region cropping stage. Based on the localization coordinates, redundant pixels such as the background and machine body are cropped, retaining only the effective sticker area. Simultaneously, severely occluded invalid areas are filtered based on the preliminary features, reducing the amount of data transmitted and computed in subsequent steps. The cropped sticker image undergoes a data encryption upload stage, securely transmitted from the edge computing node to the edge computing node. Upon arrival at the edge, the image is connected to the vLLM inference framework, which schedules hardware computing power and calls the Qwen3-VL-Chat fine-tuning model for fine-grained visual recognition. The model combines a standard sticker version library to perform version template matching, comparing the input image with standard templates for seven sticker versions one by one, outputting preliminary version classification and matching results. The next step involves multi-model fusion optimization. A weighted fusion algorithm is used to combine the location reliability of the YOLO model with the matching degree of the version recognition model, correcting potential recognition biases in individual models and improving the overall reliability of the final result. After fusion optimization, the output is a structured recognition result including fields such as sticker version category, matching degree, and anomaly alerts. The dotted line on the right side of the diagram constitutes the logical optimization link. The version matching result can be fed back to the front-end detection and recognition models for continuous iterative optimization of feature extraction and matching accuracy, adapting to more sticker versions and complex deployment scenarios.
[0105] See Figure 4 The diagram illustrates the edge-cloud three-tier collaborative architecture of the AI recognition system for vending machine exterior stickers. The top layer is the edge unit deployed on the vending machine itself, using a MIPI camera as the visual acquisition entry point. The captured images of the device's exterior are first sent to the image preprocessing module for basic processing such as format unification and distortion correction. Then, they enter the image quality verification module, which integrates the Tenengrad algorithm, to perform quantitative evaluation of sharpness and exposure status, filtering out invalid images. Images that meet the standards are sent to the RK3588 NPU computing unit, where the YOLOv11n-pruned model is run to complete sticker area localization and preliminary feature extraction. The model output is divided into two paths: one path is directly sent to the device's main control board, triggering local feedback such as LED light alarms and screen prompts; the other path is encrypted by the data encryption module and transmitted to the edge unit of the regional edge server via the network.
[0106] The middle layer consists of edge units deployed in the regional data center, using NVIDIA 5060ti GPUs as the computing power base. After receiving encrypted sticker images uploaded from the edge, it schedules the Qwen3-VL-Chat fine-tuning model through the vLLM inference framework to complete accurate matching and recognition of 7 sticker versions. The recognition results are fed into the multi-model fusion optimization module, which performs weighted fusion correction by combining the location reliability of the edge YOLO model, and outputs the final structured recognition results. After the final results are cached by the result temporary storage and push module, they are uniformly uploaded to the cloud-side unit of the company's intranet cloud platform. At the same time, the edge can feed back the recognition status and control commands to the edge.
[0107] The lowest layer is the cloud-side unit deployed on the company's intranet. The status service module receives the recognition results uploaded from the edge device, performs anomaly judgment and business rule fusion, and generates a unified sticker status snapshot. The status service links to four functional modules: first, a 7-category sticker version library management, responsible for maintaining the standard templates of all sticker versions and synchronizing the matching benchmark to the edge device; second, a MySQL database, which completes the persistent storage of all recognition data, alarm records, and operation and maintenance logs; third, a Redis cache, which caches hot data such as version templates and device online status to improve the response speed of the cloud device; and fourth, an operation and maintenance management backend, which undertakes the functions of work order generation, model OTA upgrade, and operation and maintenance scheduling. The operation and maintenance management backend further connects to the API gateway to achieve data interoperability with third-party device management and work order systems. At the same time, the cloud device can send alarm commands and configuration parameters down to drive the edge device and the terminal device to perform corresponding operations, forming a complete logic of collection, recognition, judgment, alarm, and operation and maintenance.
[0108] The application scenarios of this invention are as follows:
[0109] Standardized Operation and Maintenance Scenarios for Commercial Chain Vending Machines: Applicable to nationwide chain vending machine brands and on-site maintenance teams, covering all business processes including regular sticker inspections at multiple city locations, version compliance verification, issuance of work orders for replacing old stickers, and unified brand image management. With a large number of offline locations, manually checking each of the seven sticker versions on-site is time-consuming and prone to errors and omissions. The lack of a unified sticker version ledger results in a mix of old and new versions, and the long-term retention of incorrectly applied or damaged stickers undermines brand visual consistency. This solution leverages an edge-cloud collaborative architecture to achieve automatic photo recognition of devices, accurately distinguishing the seven sticker versions through multi-model fusion, tiered push of abnormal work orders, automatic generation of a statistical ledger of sticker version distribution across the entire region, and unified appearance standards for all offline equipment, significantly reducing the workload of manual on-site inspections.
[0110] Routine Inspection of Compliance Labels for Vending Machines in High-Speed Rail / Metro Station Transportation Hubs: Applicable to rail transit operators and in-station vending machine service providers, covering routine verification of compliance stickers on in-station vending machines, emergency handling of damaged or detached stickers, and compliance verification of operational qualification labels. Hubs are characterized by high passenger flow and dispersed equipment locations, making manual inspections infrequent and prone to overlooking issues such as missing or expired compliance labels. Non-compliant stickers pose a risk of operational regulatory penalties, and manual verification is difficult in complex lighting conditions, such as strong light or backlighting. This solution utilizes Tenengrad image quality verification to filter invalid images in poor lighting conditions, automatically identifies the status of compliance stickers, distinguishes between two levels of anomalies, and remotely pushes alarms, quickly locating non-compliant equipment locations and reducing offline operational compliance risks.
[0111] Long-term appearance management for vending machines in schools and communities: Applicable to property management companies, school logistics managers, and vending machine operators, covering unattended daily inspections of community / campus locations, routine checks for minor sticker damage / outdated versions, and batch updates of old stickers. In schools and communities where equipment is scattered and unattended for extended periods, regular manual inspections are costly and time-consuming. Minor sticker issues can accumulate into serious damage if not detected promptly. This solution supports daily automatic image recognition by the equipment, dynamic cloud-based management of the sticker version library, and automatic generation of regional sticker update schedules, eliminating the need for frequent on-site inspections and achieving unattended long-term management.
[0112] Multi-category vending machine sticker version batch iteration update scenario: Applicable to manufacturers and operators of all types of vending machines, as well as regional operation and maintenance centers, covering the business processes of sticker adaptation verification for new machines, batch investigation of sticker versions on existing equipment, and overall coordination of new version sticker replacement across the entire region; There are differences in sticker layout for ambient temperature, refrigerated, and fresh food models, and manually distinguishing models to match corresponding sticker versions is prone to confusion. After the release of a new version, it is impossible to quickly count the number of old version stickers on existing equipment, resulting in low efficiency in overall replacement. This solution uses a lightweight YOLO model to identify sticker types and equipment models, accurately match the corresponding 7 types of sticker templates, and batch compile a list of old version equipment in each region, assisting the operation and maintenance team in coordinating sticker replacement schedules and adapting to the differentiated sticker recognition needs of multiple models.
[0113] Regular verification of compliance labeling for vending machines in government and enterprise parks and office buildings: Applicable to park property management, government and enterprise logistics, and vending machine operators, covering monthly verification of compliance labeling inside vending machines in office areas, rectification of incorrectly applied stickers, and standardized management of brand promotional stickers. Government and enterprise venues have strict standards for the appearance and compliance labeling of equipment. Manual monthly verification of each machine is labor-intensive, and it is difficult to quickly identify incorrectly applied or non-official customized stickers. This solution uses a private intranet deployment to ensure that the image data inside the venue is not leaked. AI automatically distinguishes between cooperative versions, customized versions, and official standard stickers, automatically marks incorrectly applied and non-compliant stickers, and generates rectification work orders, meeting the dual requirements of safety and standardized management for government and enterprises.
[0114] It should be noted that the method of this embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this embodiment, and the multiple devices will interact with each other to complete the vending machine appearance sticker version recognition method.
[0115] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0116] Example 2
[0117] See Figure 4 and Figure 5 Embodiment 2 of the present invention also provides a vending machine exterior sticker version recognition system, which adopts the above-described vending machine exterior sticker version recognition method, including:
[0118] System initialization and version library loading module 100: Used for loading standard templates of sticker versions on the cloud side, configuring anomaly judgment rules, inspection frequency, alarm strategy parameters, loading image quality verification algorithm and YOLO positioning model on the edge side, loading version recognition fine-tuning model and inference framework on the edge side, and establishing end-edge-cloud communication link.
[0119] Image acquisition and preprocessing module 200: used by the end side to acquire raw images through the built-in camera at a preset inspection frequency / remote command, and to perform preprocessing operations on the raw images;
[0120] Image quality verification and invalid filtering module 300: used to calculate image sharpness score, verify the sharpness, exposure status and viewpoint compliance of the preprocessed image, filter images that do not meet the quality standards and trigger the re-acquisition of images;
[0121] Sticker region localization and feature extraction module 400: used by the end side to locate all sticker regions in the image using a lightweight model, extract preliminary appearance features of the stickers, crop the effective sticker regions and encrypt and upload them to the side-side server.
[0122] Sticker version recognition module 500: It is used to perform version matching and recognition of the uploaded image by combining the sticker version template through the inference framework on the side, and to use the weighted average method to fuse the YOLO model location reliability and the version recognition model matching degree to output the structured recognition result;
[0123] Status determination and anomaly alarm module 600: used by the cloud side to combine with the business rule engine to perform sticker version information fusion and status determination on the structured recognition results, generate sticker status snapshot, classify anomaly levels and trigger the push of local alarms and remote operation and maintenance alarms on the end side.
[0124] The result output and operation and maintenance logic module 700 is used to persistently store the identification results, status judgment information, and alarm records to the database on the cloud side, persistently store all identification and alarm data, output standardized structured results to external systems, and re-execute identification verification after the operation and maintenance is completed.
[0125] It should be noted that the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the method embodiment in Embodiment 1 of this application, and the resulting technical effects are the same as those in the method embodiment of this application. For details, please refer to the description in the method embodiment shown above in this application, and it will not be repeated here.
[0126] Example 3
[0127] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium storing program code for a method of identifying the version of an automatic vending machine exterior sticker. The program code includes instructions for executing the method of identifying the version of an automatic vending machine exterior sticker as described in Embodiment 1 or any possible implementation thereof.
[0128] Computer-readable storage media can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
[0129] Example 4
[0130] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0131] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor can execute the vending machine appearance sticker version identification method of Embodiment 1 or any possible implementation thereof by calling the program instructions.
[0132] Specifically, a processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory. This memory can be integrated into the processor or located outside the processor and exist independently.
[0133] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0134] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0135] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A method for identifying the version of an exterior sticker on an automatic vending machine, characterized in that, include: S1. Load the standard template of the sticker version on the cloud side, configure the anomaly judgment rules, inspection frequency, alarm strategy parameters, load the image quality verification algorithm and YOLO positioning model on the end side, load the version recognition fine-tuning model and inference framework on the edge side, and establish the end-edge-cloud communication link. S2. The end-side uses a built-in camera to collect raw images at a preset inspection frequency / remote command, and performs preprocessing operations on the raw images; S3. Calculate the image sharpness score, and verify the sharpness, exposure status, and viewpoint compliance of the preprocessed image. Filter out images that do not meet the quality standards and trigger the image re-acquisition operation. S4. The edge side uses a lightweight model to locate all sticker areas in the image, extracts the preliminary appearance features of the stickers, cuts out the effective sticker areas, and encrypts and uploads them to the edge side server. S5. The side uses the inference framework and the sticker version template to perform version matching and recognition on the uploaded image. The weighted average method is used to fuse the YOLO model's location reliability and the version recognition model's matching degree to output the structured recognition result. S6. The cloud-side, combined with the business rule engine, performs sticker version information fusion and status determination on the structured recognition results, generates a sticker status snapshot, classifies abnormal levels, and triggers the push of local alarms and remote operation and maintenance alarms on the terminal side. S7. The cloud side persistently stores the identification results, status judgment information, and alarm records to the database, persistently stores all identification and alarm data, outputs standardized structured results to external systems, and re-executes identification verification after the operation and maintenance is completed.
2. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S1, the sticker versions include white-orange version, platinum version, white version, diamond version, collaboration version, and new version; The standard template includes the color, pattern, and size characteristics of each version.
3. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S2, the preset inspection frequency is no less than once a day; The preprocessing includes converting the original image into OpenCV format and performing resizing, distortion correction, and cache management.
4. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S3, the formula for calculating the image sharpness score is: In the formula, Rate the image sharpness. , These are the horizontal and vertical gradients of the Sobel operator, respectively. , These are the height and width of the image, respectively; When the image sharpness score Less than the preset resolution threshold If the image is determined to be blurry, the terminal side is triggered to re-acquire the image.
5. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S4, the edge NPU runs a lightweight YOLOv11n-pruned model and outputs the coordinate frame, sticker type label, and preliminary appearance features of each sticker area, including color, outline, and key identifiers; the sticker type label includes brand stickers, promotional stickers, and compliance stickers. Determine the degree of occlusion or damage of the stickers, filter out non-sticker areas and severely occluded images, and encrypt and upload the valid sticker areas.
6. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S5, the edge server uses the vLLM inference framework to call the Qwen3-VL-Chat fine-tuning model, inputs the cropped sticker image uploaded from the edge, the sticker type label, and preliminary feature information, performs feature matching with the cloud-side sticker version template, and outputs the structured recognition result including sticker version category, version matching degree, version timeliness, and anomaly prompt.
7. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 6, characterized in that, In S5, the weighted average calculation formula is as follows: In the formula, Positional reliability of stickers for YOLOv11n-pruned models To determine the model matching degree for version identification, , These are the corresponding weighting coefficients.
8. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S6, the abnormality level is divided into WARNING level and CRITICAL level; The WARNING level includes stickers that are outdated, slightly damaged, or slightly obscured, but do not affect the display of information. The CRITICAL rating includes sticker peeling, severe damage, severe obstruction, and misplacement, which affect brand image / compliance operations; The local alarm includes the WARNING level triggering the yellow LED on the device side to flash at a frequency of 1Hz, and the screen displays a version update prompt; The CRITICAL level triggers the red LED on the end side to stay on, and an abnormal error message pops up on the screen. The remote operation and maintenance alarm push includes the cloud-side operation and maintenance platform pushing alarm information and structured data of the corresponding level.
9. The method for identifying the version of the exterior sticker on an automatic vending machine according to claim 1, characterized in that, In S7, the cloud side uses Redis to cache hotspot version templates and device online status; The structured recognition results in JSON format are output to the operation and maintenance management backend, equipment management platform, and work order system via RESTful API. The structured recognition results include equipment ID, equipment model, sticker type, specific version, version matching degree, anomaly level, recognition time, and image link field. After the maintenance personnel complete the sticker update / repair, the system re-executes the image acquisition and status determination steps to verify whether the updated version meets the requirements. Once the requirements are met, the work order is completed and the device version record is updated.
10. A vending machine exterior sticker version recognition system, employing the vending machine exterior sticker version recognition method according to any one of claims 1-9, characterized in that, include: System initialization and version library loading module: Used to load standard templates for sticker versions on the cloud side, configure anomaly judgment rules, inspection frequency, alarm strategy parameters, load image quality verification algorithm and YOLO positioning model on the edge side, load version recognition fine-tuning model and inference framework on the edge side, and establish end-edge-cloud communication link; Image acquisition and preprocessing module: used by the end side to acquire raw images through the built-in camera at a preset inspection frequency / remote command, and to perform preprocessing operations on the raw images; Image quality verification and invalid filtering module: used to calculate image sharpness score, verify the sharpness, exposure status and viewpoint compliance of the preprocessed image, filter images that do not meet the quality standards and trigger the re-acquisition of images; Sticker region localization and feature extraction module: used by the edge to locate all sticker regions in the image using a lightweight model, extract preliminary appearance features of the stickers, crop the effective sticker regions and encrypt and upload them to the edge server; Sticker version recognition module: It is used to perform version matching and recognition of uploaded images by combining the inference framework with sticker version templates, and adopts the weighted average method to fuse the YOLO model's location reliability and the version recognition model's matching degree to output structured recognition results. Status determination and anomaly alarm module: used by the cloud side to combine with the business rule engine to perform sticker version information fusion and status determination on the structured recognition results, generate sticker status snapshot, classify anomaly levels and trigger the push of local alarms and remote operation and maintenance alarms on the end side. The result output and operation and maintenance logic module is used to persistently store the identification results, status judgment information, and alarm records to the database on the cloud side, persistently store all identification and alarm data, output standardized structured results to external systems, and re-execute identification verification after the operation and maintenance is completed.
