A smart city big data management platform based on intelligent barcode scale
Through the combination of smart barcode scales and remote online management platforms, the AI recognition module is used to process complexly encoded 2D barcodes and digital resources, solving identification problems and data redundancy issues, and realizing efficient product information management and smart city development. Intelligent application of data platform.
Patent Information
- Application Number
- CN202410925598.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-11
AI Technical Summary
It is difficult for existing technology to effectively identify and manage complexly encoded 2D barcodes, especially in high-density and complex environments, and there are problems of data redundancy and low value density in digital resource management.
Through the communication connection between the smart barcode scale and the remote online management platform, combined with the traditional barcode recognition algorithm and AI recognition module, real-time acquisition and processing of product weight and real photos are achieved, and non-linear filtering, edge detection and feature matching technologies are used to perform image processing. Preprocessing and feature extraction to ensure recognition accuracy and data integration.
It improves the accuracy and efficiency of barcode recognition, ensures data authenticity, and realizes efficient management of product information and intelligent application of smart city big data platforms through multi-source heterogeneous integration and automatic identification and printing systems.
Smart Images

Figure CN118469676B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of Internet of Things information technology, and in particular relates to a smart city big data management platform based on an intelligent barcode scale. Background Art
[0002] Barcode recognition technology is widely used. It is one of the core technologies in commodity circulation, logistics management and retail industries. As an important tool for information exchange and management, barcodes can quickly read and identify coded information through machines, thereby improving the efficiency and accuracy of item management. As the types and coding complexity of barcodes increase, traditional recognition algorithms may not be able to meet the requirements for accurate decoding of high-density and complex codes. For example, two-dimensional barcodes (such as QR codes) have higher information density and more complex coding patterns than traditional one-dimensional barcodes, which puts higher requirements on the recognition accuracy and speed of the algorithm. Changes in factors such as barcode printing quality and ambient lighting in different application scenarios will also cause certain interference to the recognition process, thereby affecting recognition accuracy. In terms of application, the existing online shopping methods for fruits and vegetables do not use real photos of the goods, and the authenticity of the goods cannot be guaranteed. In addition, the online consumption of fruits and vegetables is large, and they need to be managed in combination with the smart city big data platform and physical stores. Due to the differences between the current management status of digital resources and user needs, different digital resource systems have different data structures and semantic expressions, and different system developers use different data descriptions and data organization standards, and the data retrieval methods and methods are also different. In terms of quantity, with the advent of the big data era, there are more and more types of data resources. In addition to electronic documents, digital resources such as Web, messages, videos, audio, graphics and images have increased exponentially with the development of the Internet. There is a large amount of redundant information, overlapping and repeated content, low knowledge correlation between digital resources, and real digital resources are distributed in different organizations. These digital resources have low value density and need to be integrated and processed before they can meet the needs of information users. Summary of the invention
[0003] In order to solve the above problems existing in the prior art, the present invention provides a smart city big data management platform based on intelligent barcode scale.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] Establishing a communication connection between the smart barcode scale and the remote online management platform; the remote online management platform includes a shopping module, a merchant management module, a third-party distribution module, and a background data management module; the smart barcode scale includes a storage memory unit, an AI recognition module, and a weighing sensor;
[0006] The remote online management platform receives the commodity weight information, the real commodity photos and the commodity data acquired in real time by the smart barcode scale, and the real commodity photos and the commodity data are photographed and uploaded by the AI recognition module on the smart barcode scale;
[0007] The third-party delivery module receives the delivery task sent by the shopping module, and publishes the delivery task to the delivery personnel scheduling system;
[0008] The merchant management module is used to perform multi-source heterogeneous integration of the data and merchant management information transmitted by the smart barcode scale to the remote online management platform;
[0009] The background data management module is used to store and manage the data information generated by the shopping module, the merchant management module and the third-party delivery module.
[0010] Specifically, the AI recognition module specifically includes:
[0011] Preset commodity category attributes and corresponding standard commodity images, perform nonlinear filtering on the real photos of the commodities to remove image noise and obtain a comparison source image. The calculation formula is:
[0012] ,
[0013] in, f(x,y) To compare the source image, w is the image size, w b is the filter window size, G d is the spatial domain Gaussian filter function, G r is the gray-domain Gaussian filter function, p(x,y) For images f(x,y) The gray value is h 0 Pixels, p 0 (x 0 ,y 0 ) For images f(x,y) The gray value is h Pixels of
[0014] Using an edge detection algorithm to extract edge features of the comparison source image, and obtaining recognition and classification results by classifying the extracted edge features;
[0015] Performing feature detection on the comparison source image and the standard product image to obtain corresponding local feature points, wherein the feature detection discriminates the pixels of the image through a matrix discriminant to obtain the local feature points;
[0016] Constructing a neighborhood circle according to the local feature points, constructing a geometric moment feature model according to the grayscale information of the contrast source image, calculating the geometric moment features within the neighborhood circle through the geometric moment feature model, and integrating the geometric moment features into a local feature vector;
[0017] The Euclidean distance of the feature points of the comparison source image and the standard product image is calculated by using the local feature vector, and a feature similarity threshold is preset. If the Euclidean distance of the feature points is greater than the feature similarity threshold, the recognition and classification result and the real photo of the original product corresponding to the comparison source image are uploaded to the remote online management platform.
[0018] Specifically, the method for obtaining the commodity weight information is as follows: a user connects to a shopping module in the remote online management platform through a mobile terminal, the user selects a merchant and places an order according to personal needs, the remote online management platform generates order information according to the order information, the merchant obtains the order information through the merchant management module in the remote online management platform, and places the commodity on the smart barcode scale according to the order information, the smart barcode scale measures the commodity weight information according to the weighing sensor in the scale body structure, and uploads the commodity weight information to the remote online management platform through the serial communication interface.
[0019] Specifically, the local feature points are determined as follows:
[0020] If the matrix discriminant corresponding to a pixel point of the image is greater than 0, the pixel point is the local feature point, and the matrix discriminant is:
[0021] ,
[0022] in, Det ( H ) is the matrix discriminant result, L xx is the Gaussian scale space pair of the image x The second derivative of the direction, L yy is the Gaussian scale space pair of the image y The second derivative of the direction, L xy is the Gaussian scale space pair of the image x The first-order derivative of the grayscale difference of adjacent pixels in the direction, x , y is the pixel coordinate.
[0023] Specifically, the commodity data includes the unit price, origin, and shelf life of the commodity, which are entered by the merchant and stored in the storage memory unit in the smart barcode scale.
[0024] Specifically, the delivery task includes a delivery address, product information, and a merchant address; the delivery address, product information, and merchant address are obtained according to the order information.
[0025] Specifically, the delivery personnel scheduling system is used to receive the delivery tasks and manage the delivery personnel's working hours, working status, and real-time location information; and perform intelligent scheduling planning based on the delivery tasks and the working hours, working status, and real-time location information.
[0026] Specifically, the multi-source heterogeneous integration method is as follows: the data files of the data transmitted by the smart barcode scale to the remote online management platform and the merchant management information are stored in a temporary storage area; for the data stored in the temporary storage area, the data information content in the data file is parsed into a document tree through a document object model, and the sub-node information in the document tree is read to extract the attributes and values of the data fields; a periodically triggered scheduled task is set and system incremental information is obtained, and the platform database is automatically scanned through the scheduled task; if there is a time dimension attribute in the platform database, the timestamp is used to determine the new data in the system; if there is no time dimension attribute or the timestamp field cannot be obtained, the primary key value of the platform database is used to determine the new data in the system, and the platform database is incrementally updated according to the new data in the system.
[0027] The beneficial effects of the present invention are:
[0028] By combining the traditional barcode recognition algorithm with the AI recognition algorithm, the barcode in the image is preliminarily recognized through the barcode recognition algorithm, the real data of the product and the preset standard image are processed for similarity, and then the recognition result is uploaded, which ensures the true source of the data while improving reliability; by establishing a remote online platform and communicating with the smart barcode scale to connect, a system for automatic recognition of printed barcodes is built to realize automatic recognition and intelligent management of product information, which can efficiently process and analyze a large amount of product information, further promote the application of barcode recognition technology and smart big data management platform in commodity circulation and information management, and promote the digitalization and intelligent development of related industries. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0030] Figure 1It is a structural schematic diagram of a smart city big data management platform based on an intelligent barcode scale according to the present invention. DETAILED DESCRIPTION
[0031] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0032] See also Figure 1 , a smart city big data management platform based on intelligent barcode scale:
[0033] Establishing a communication connection between the smart barcode scale and the remote online management platform; the remote online management platform includes a shopping module, a merchant management module, a third-party distribution module, and a background data management module; the smart barcode scale includes a storage memory unit, an AI recognition module, and a weighing sensor;
[0034] The remote online management platform receives the commodity weight information, the real commodity photos and the commodity data acquired in real time by the smart barcode scale, and the real commodity photos and the commodity data are photographed and uploaded by the AI recognition module on the smart barcode scale;
[0035] The third-party delivery module receives the delivery task sent by the shopping module, and publishes the delivery task to the delivery personnel scheduling system;
[0036] The merchant management module is used to perform multi-source heterogeneous integration of the data and merchant management information transmitted by the smart barcode scale to the remote online management platform;
[0037] The background data management module is used to store and manage the data information generated by the shopping module, the merchant management module and the third-party delivery module.
[0038] Specifically, the AI recognition module specifically includes:
[0039] Preset commodity category attributes and corresponding standard commodity images, perform nonlinear filtering on the real photos of the commodities to remove image noise and obtain a comparison source image. The calculation formula is:
[0040] ,
[0041] in, f(x,y) To compare the source image, w is the image size, w b is the filter window size, G d is the spatial domain Gaussian filter function, G ris the gray-domain Gaussian filter function, p(x,y) For images f(x,y) The gray value is h 0 Pixels, p 0 (x 0 ,y 0 ) For images f(x,y) The gray value is h Pixels of
[0042] Using an edge detection algorithm to extract edge features of the comparison source image, and obtaining recognition and classification results by classifying the extracted edge features;
[0043] Performing feature detection on the comparison source image and the standard product image to obtain corresponding local feature points, wherein the feature detection discriminates the pixels of the image through a matrix discriminant to obtain the local feature points;
[0044] Constructing a neighborhood circle according to the local feature points, constructing a geometric moment feature model according to the grayscale information of the contrast source image, calculating the geometric moment features within the neighborhood circle through the geometric moment feature model, and integrating the geometric moment features into a local feature vector;
[0045] The Euclidean distance of the feature points of the comparison source image and the standard product image is calculated by using the local feature vector, and a feature similarity threshold is preset. If the Euclidean distance of the feature points is greater than the feature similarity threshold, the recognition and classification result and the real photo of the original product corresponding to the comparison source image are uploaded to the remote online management platform.
[0046] In this embodiment, Gaussian filtering is used for noise reduction processing to solve the problems of image preprocessing, feature extraction and matching, error correction, etc. in the process of barcode recognition and feature processing, which effectively reduces the noise interference in the image and improves the clarity of the image. At the same time, adaptive threshold segmentation technology is used for binarization processing to accurately extract the barcode area. The edge detection algorithm is used to process the image to extract the edge features of the barcode. While maintaining the integrity of the edge, it can better suppress noise and achieve the best processing effect on the barcode image. The linear regression model is introduced to correct the verticality of the barcode, which improves the accuracy and stability of feature extraction. Support vector machine is used as a classifier to learn and classify the extracted barcode features. The barcode image is corrected by rotation matrix and affine transformation to ensure that all images are recognized under a unified benchmark.
[0047] Specifically, the method for obtaining the commodity weight information is as follows: a user connects to a shopping module in the remote online management platform through a mobile terminal, the user selects a merchant and places an order according to personal needs, the remote online management platform generates order information according to the order information, the merchant obtains the order information through the merchant management module in the remote online management platform, and places the commodity on the smart barcode scale according to the order information, the smart barcode scale measures the commodity weight information according to the weighing sensor in the scale body structure, and uploads the commodity weight information to the remote online management platform through the serial communication interface.
[0048] Specifically, the local feature points are determined as follows:
[0049] If the matrix discriminant corresponding to a pixel point of the image is greater than 0, the pixel point is the local feature point, and the matrix discriminant is:
[0050] ,
[0051] in, Det ( H ) is the matrix discriminant result, L xx is the Gaussian scale space pair of the image x The second derivative of the direction, L yy is the Gaussian scale space pair of the image y The second derivative of the direction, L xy is the Gaussian scale space pair of the image x The first-order derivative of the grayscale difference of adjacent pixels in the direction, x , y is the pixel coordinate.
[0052] Specifically, the commodity data includes the unit price, origin, and shelf life of the commodity, which are entered by the merchant and stored in the storage memory unit in the smart barcode scale.
[0053] Specifically, the delivery task includes a delivery address, product information, and a merchant address; the delivery address, product information, and merchant address are obtained according to the order information.
[0054] Specifically, the delivery personnel scheduling system is used to receive the delivery tasks and manage the delivery personnel's working hours, working status, and real-time location information; and perform intelligent scheduling planning based on the delivery tasks and the working hours, working status, and real-time location information.
[0055] Specifically, the multi-source heterogeneous integration method is as follows: the data files of the data transmitted by the smart barcode scale to the remote online management platform and the merchant management information are stored in a temporary storage area; for the data stored in the temporary storage area, the data information content in the data file is parsed into a document tree through a document object model, and the sub-node information in the document tree is read to extract the attributes and values of the data fields; a periodically triggered scheduled task is set and system incremental information is obtained, and the platform database is automatically scanned through the scheduled task; if there is a time dimension attribute in the platform database, the timestamp is used to determine the new data in the system; if there is no time dimension attribute or the timestamp field cannot be obtained, the primary key value of the platform database is used to determine the new data in the system, and the platform database is incrementally updated according to the new data in the system.
[0056] In this embodiment, the system adopts a three-tier architecture model, which is divided into a presentation layer, a business logic layer, and a data access layer. The presentation layer is responsible for the interaction between the user and the system, and realizes the construction and interaction of the user interface through the front-end framework Vue.js and the Element UI component library. The business logic layer processes the core logic and functions of the system, uses the Spring Boot framework to simplify the development work, and uses the ZXing open source library for barcode recognition. The data access layer is responsible for interacting with the database and uses SpringData JPA to perform data operations. Specifically, the presentation layer uses a combination of Vue.js and Element UI to achieve a responsive user interface. The business logic layer can quickly build an independently run, Java-based enterprise-level application through Spring Boot. The barcode recognition module uses the ZXing open source library, which is an efficient barcode image processing library that supports the parsing and generation of one-dimensional and two-dimensional barcodes. Combined with custom image preprocessing algorithms, such as grayscale and binarization, the accuracy and speed of barcode recognition can be improved. The data access layer uses a MySQL database and combines Spring Data JPA to achieve data persistence and query. Spring Data JPA provides a convenient Repository interface to perform data addition, deletion, modification and query operations in a simple way. In terms of database design, the barcode information table, device information table and merchant management table are the main table structures. The barcode information table is used to record the basic information of the barcode, such as barcode ID, type, generation time and status; the device information table contains information such as device ID, model and operating status; the merchant management table is used to store the basic information and permission settings of the merchant.
[0057] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0058] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0059] The program code included on the computer readable medium can be transmitted with any appropriate medium, including but not limited to wireless, electric wire, optical cable, RF, etc., or any suitable combination of the above. The computer program code for performing the operation of the present invention can be written in one or more programming languages or their combinations, and the programming language includes object-oriented programming languages-such as Java, Smalltalk, C++, and also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0060] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A smart city big data management platform based on intelligent barcode scale, characterized in that: include: Establishing a communication connection between the smart barcode scale and the remote online management platform; the remote online management platform includes a shopping module, a merchant management module, a third-party distribution module, and a background data management module; the smart barcode scale includes a storage memory unit, an AI recognition module, and a weighing sensor; The remote online management platform receives the commodity weight information, the real commodity photos and the commodity data acquired in real time by the smart barcode scale, and the real commodity photos and the commodity data are photographed and uploaded by the AI recognition module on the smart barcode scale; The AI recognition module specifically includes: S101: Preset commodity category attributes and corresponding standard commodity images, perform nonlinear filtering on the real commodity photos to remove image noise and obtain a comparison source image. The calculation formula is: , in, f(x,y) To compare the source image, w is the image size, w b is the filter window size, G d is the spatial domain Gaussian filter function, G r is the gray-domain Gaussian filter function, p(x,y) For images f(x,y) The gray value is h 0 Pixels, p 0 (x 0 ,y 0 ) For images f(x,y) The gray value is h Pixels of S102: extracting edge features of the comparison source image using an edge detection algorithm, and obtaining recognition and classification results by classifying the extracted edge features; S103: using a matrix discriminant to discriminate pixels of the comparison source image and the standard product image to obtain corresponding local feature points; S104: constructing a neighborhood circle according to the local feature points, constructing a geometric moment feature model according to the grayscale information of the contrast source image, calculating geometric moment features within the neighborhood circle through the geometric moment feature model, and integrating the geometric moment features into a local feature vector; S105: Calculating the Euclidean distance of feature points between the comparison source image and the standard product image through the local feature vector, presetting a feature similarity threshold, and uploading the recognition and classification result and the original product real photo corresponding to the comparison source image to the remote online management platform if the Euclidean distance of the feature points is greater than the feature similarity threshold; The local feature points are determined as follows: If the matrix discriminant corresponding to a pixel point of the image is greater than 0, the pixel point is the local feature point, and the matrix discriminant is: , in, Det ( H ) is the matrix discriminant result, L xx is the Gaussian scale space pair of the image x The second derivative of the direction, L yy is the Gaussian scale space pair of the image y The second derivative of the direction, L xy is the Gaussian scale space pair of the image x The first-order derivative of the grayscale difference of adjacent pixels in the direction, x , y is the pixel coordinate; The third-party delivery module receives the delivery task sent by the shopping module, and publishes the delivery task to the delivery personnel scheduling system; The merchant management module is used to perform multi-source heterogeneous integration of the data and merchant management information transmitted by the smart barcode scale to the remote online management platform; The background data management module is used to store and manage the data information generated by the shopping module, the merchant management module and the third-party delivery module.
2. The smart city big data management platform based on the intelligent barcode scale according to claim 1 is characterized in that: The method for obtaining the commodity weight information is as follows: a user connects to the shopping module in the remote online management platform through a mobile terminal, the user selects a merchant and places an order according to personal needs, the remote online management platform generates order information according to the order information, the merchant obtains the order information through the merchant management module in the remote online management platform, and places the commodity on the smart barcode scale according to the order information, the smart barcode scale measures the commodity weight information according to the weighing sensor in the scale body structure, and uploads the commodity weight information to the remote online management platform through the serial communication interface.
3. The smart city big data management platform based on the intelligent barcode scale according to claim 1 is characterized in that: The commodity data includes the unit price, origin, and shelf life of the commodity, which are entered by the merchant and stored in the storage memory unit in the smart barcode scale.
4. The smart city big data management platform based on the intelligent barcode scale according to claim 2 is characterized in that: The delivery task includes a delivery address, product information, and a merchant address; the delivery address, product information, and merchant address are obtained based on the order information.
5. The smart city big data management platform based on the intelligent barcode scale according to claim 1 is characterized in that: The delivery personnel scheduling system is used to receive the delivery tasks and manage the delivery personnel's working hours, working status, and real-time location information; and perform intelligent scheduling planning based on the delivery tasks and the working hours, working status, and real-time location information.
6. The smart city big data management platform based on the intelligent barcode scale according to claim 1 is characterized in that: The multi-source heterogeneous integration method is as follows: the data files of the data transmitted by the smart barcode scale to the remote online management platform and the merchant management information are stored in a temporary storage area; for the data stored in the temporary storage area, the data information content in the data file is parsed into a document tree through a document object model, and the sub-node information in the document tree is read to extract the attributes and values of the data fields; a periodically triggered scheduled task is set and the system incremental information is obtained, and the platform database is automatically scanned through the scheduled task; if there is a time dimension attribute in the platform database, the timestamp is used to determine the system's newly added data; if there is no time dimension attribute or the timestamp field cannot be obtained, the primary key value of the platform database is used to determine the system's newly added data, and the platform database is incrementally updated according to the system's newly added data.
Citation Information
Patent Citations
Electronic shopping mall system
CN109993626A
