Intelligent asset inventory method for cabinets based on coding recognition

By improving the PSENet network structure and combining OCR annotation and data expansion processing, the problems of high labor cost and low efficiency in data center asset inventory are solved, efficient and accurate asset identification and management are achieved, the work process is simplified, and the information is stored in Cloud database for easy query.

CN112364709BActive Publication Date: 2024-08-23ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011124735.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-08-23
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

Existing technologies have problems such as high labor costs, high error rates, and low efficiency in asset inventory in data centers. Especially in scenarios with a large number of assets, traditional methods such as manual entry and image recognition are difficult to achieve efficient and accurate asset management.

Method used

The transfer learning coding recognition method based on PSENet network is adopted to improve the speed and accuracy of text label detection and recognition by improving the network structure, including feature extraction module, segmentation head module and post-processing module. FPEM and FFM are used to replace the FPN feature pyramid, combined with OCR annotation and data expansion processing enable accurate recognition of curved and small text labels.

Benefits of technology

It achieves efficient and accurate inventory of data center assets, simplifies the work process, improves identification efficiency, can capture multiple identification information at one time, makes the identification results more accurate, and stores the information in a cloud database for easy query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112364709B
    Figure CN112364709B
Patent Text Reader

Abstract

The method for intelligent asset inventory of cabinets based on coding recognition includes: step 1 preprocessing of coding label images; step 2 constructing and improving the PSENet network model, the model includes a feature extraction module, a segmentation head module and a post-processing module; step 3 identifying asset tags with different binary numbers to obtain asset information, wherein before identifying the identification, it is necessary to train the image recognition model through a convolutional neural network to achieve the effect of returning numbers through a given graphic or pattern; step 4 database storage of asset information; step 5 aggregation of asset data, and return of inventory information. The present invention can capture multiple identification information at a time, and there is a unique binary code after identification, which meets the management requirements of the corresponding assets under the label in natural scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of asset inventory, and in particular to a method for intelligent asset inventory based on transfer learning coding recognition of PSENet network for neatly placed hardware in a server cabinet. Background Art

[0002] Today, due to the increasing demand for innovative technology development in the Internet industry, my country's data center application scale has reached the second place in the world. The utilization rate of data center equipment, network cabinets, etc. continues to increase, which also means that the number of fixed assets continues to increase. Improving the efficiency of fixed asset management is an effective way to ensure the utilization rate of fixed assets.

[0003] Traditional data center equipment management methods that rely on manual input or tools such as Access, Excel, or small asset management software often have high labor costs, high error rates, low efficiency, and data is often unavailable. The more mature asset barcode scanning technology can quickly input information by scanning the labels or QR codes on the assets, improving the shortcomings of the manual method and improving work efficiency. However, the one-by-one scanning method will consume a long working time for scenes with a large number of assets. The core of RFID technology that can be automatically identified is the RFID tag, and its instability makes it easy to miss assets. There is also a method of taking inventory through image recognition of assets. Although the information can be entered more accurately, the fixed assets of the data center are usually placed in the cabinet in an orderly manner, and it will be inconvenient to obtain images when the number is large.

[0004] With the continuous development of artificial intelligence, many excellent algorithms are constantly being born in the field of target detection. Most of the algorithms are for the detection of objects and organisms. The targets are relatively large, while the text labels are usually presented in a relatively small form in a picture and are curved. In addition, the original label information is not only a requirement to be detected, but more importantly in actual scenarios, the extraction of label information is more important. In this case, general target detection is obviously not enough. Summary of the invention

[0005] Based on this, in order to address the shortcomings of the above-mentioned prior art, the present invention proposes a cabinet intelligent asset inventory method based on transfer learning coding recognition of the PSENet network. By improving the PSENet network for learning and training, the speed and accuracy of the network's detection and recognition of text labels are improved. The purpose is to provide a more efficient and more accurate intelligent asset inventory method for the assets of the data center.

[0006] In order to achieve the above object, the cabinet intelligent asset inventory method based on coding recognition of the present invention comprises the following steps:

[0007] Step 1: Preprocessing of encoded label images;

[0008] The marked text labels obtained by the camera are images with large text, small text, curved text, and rectangular text. The images are annotated using OCR. Each text box contains four coordinates, eight coordinate points (x1, y1, x2, y2, x3, y3, x4, y4) and a label. These are training images used as positive samples, and there are one or more text labels in the images.

[0009] Data expansion processing is performed on the labeled cabinet label images, including randomly rotating the images (in the range of -10° to 10°), randomly cropping and randomly flipping the images; in order to improve the efficiency of network training, all processed images are resized to 640x640.

[0010] Step 2 constructs and improves the PSENet network model, including feature extraction module, segmentation head module and post-processing module;

[0011] Step 2.1 build feature extraction module;

[0012] The backbone of the network is constructed for feature extraction. The convolutional network model resnet18 network is used. The image with text labels is used as input, and the feature map is obtained through the backbone network; resnet18 means an 18-layer network with weights including convolution and fully connected layers, excluding pooling and normalization layers. The network first passes through a convolution layer with 3 channels as input and 64 channels as output. Feature maps of different scales are output through four block structures. The resnet18 network uses two 3x3 convolution Basicblocks, which save the input waiting data and add them after two layers of convolution. Finally, a Relu function is added to make the features more representative; the image is output through the network in four scales and channels, with a span of 4, 8, 16, and 32 pixels relative to the input image. Each scale of the image contains different semantic information. The semantic information at the bottom layer is relatively less, but the target position is accurate. The semantic information at the high level is relatively rich, but the target position is relatively rough.

[0013] Step 2.2 performs transfer learning on the backbone network;

[0014] Perform transfer learning on the resnet18 network; in order to obtain more semantic information about the image, remove the linear layer at the end of the original resnet18 network, perform deconvolution and maximum pooling on the feature map returned by layer3, enlarge the image to the size of the final structural input feature map, and horizontally splice it with the F feature map to obtain a final multi-feature map with richer information, freeze the weights of the pre-trained unchanged layers in the model, and update the weights of the newly added layers during network training.

[0015] Step 2.3: Construct the cutting head module;

[0016] In order to better and faster integrate high-level and low-level semantic information, three FPEMs and one FFM are used to construct an enhanced feature pyramid, replacing the original FPN feature pyramid structure.

[0017] Step 2.3.1 build FPEM module;

[0018] FPEM has a cascade structure and has a smaller computational complexity than FPN. FPEM is a U-shaped module consisting of two stages, namely upscale enhancement and downscale enhancement. Upscale enhancement acts on the input feature pyramid. In this stage, the feature maps of 32, 16, 8, and 4 pixels are iteratively enhanced. In the downscaling stage, the feature pyramid generated by upscale enhancement is input and enhanced from 4 steps to 32 steps. Finally, the feature pyramid output by downscale enhancement is used as the final output of FPEM.

[0019] At the same time, the output feature pyramid of down-scale enhancement is the final output of FPEM; separable convolution is used instead of regular convolution to build the connection part; therefore, FPEM is able to expand the receptive field and deepen the network with less computational overhead.

[0020] Step 2.3.2 build the FFM module;

[0021] The FFM feature fusion module is used to fuse feature pyramids F1, F2, ..., Fn of different depths. First, the corresponding scale feature maps are combined by element superposition, and then the added feature maps are upsampled and concatenated into the final feature map F with only 4×128 channels.

[0022] Step 2.4 builds the post-processing module of the network;

[0023] Step 2.4.1 Generate post-processing module text instance kernel and GroundTruth;

[0024] The post-processing module of the network model processes the feature map F obtained by the segmentation head module. After the feature map F undergoes 3x3 convolution, a normalization layer, and a Relu layer to change the number of channels in the feature layer to 256, it is sent to multiple 1x1 convolution upsampling and finally input into the Sigmod layer to obtain the final 6 pictures S1...S6. The dimension size is [B,C,H,W], where C is the known number of 6 cores required, B indicates how many pictures there are currently, and H and W represent the height and width of the picture respectively; using the breadth-first algorithm from S1 to S6, gradually expanding until the final text instance is obtained, the number of connected domains of S1 has been determined, which is the core area of ​​the target text in the predicted picture.

[0025] Each kernel needs to be scaled and expanded by a complete text instance to form a corresponding GroundTruth during the expansion process; k i is the ith core, k n is the nth core, d i k i With k n The distance between the edges, in order to obtain the text instance cores from small to large in the figure, the Vatti clipping algorithm is used to reduce the polygon k i pixels, and the reduced polygon k is obtained n , then, each reduced polygon k n is converted into a 0 / 1 binary mask to segment the ground truth region of the label; A(k i ) is the polygon k i The area of ​​P(k i ) is the polygon k i The circumference of n With k i The ratio between i In the calculation formula, x is the reduction ratio, and its value range is (0,1]; y is the number of text segmentation instances, that is, the number of "cores", and the calculation formula is:

[0026]

[0027] Step 2.4.2 expands the text instance kernel;

[0028] For the predicted n segmentation instances S1...S n In order to obtain the final detection result, a progressive scale expansion algorithm is used, where S1 represents the segmentation result of the smallest kernel, and gradually determines whether the pixels adjacent to c are in S2. If so, they are merged into b to obtain the merged result c; the expansion is based on the breadth search algorithm, which starts from the pixels of S1 and then iteratively merges the adjacent GroundTruth text pixels until the largest kernel is found. The principle of dealing with conflicts in practice is that confused pixels can only be merged by a single kernel on a first-come, first-served basis.

[0029] Step 2.4.3 constructs the loss function for network training;

[0030] The loss function of the network training text instance graph can be written as:

[0031] Loss = μLoss c +(1-u)Loss s (3)

[0032] Loss cand Loss s Represent the loss of the complete text instance and the contraction instance respectively. μ is set to 0.7 to balance the values ​​of the two. c S n Represents the largest segmentation area, G n represents the maximum groundtruth, and the value of m is generated by online hard example miniing (OHEM), which is also a 0 / 1 mask. The core idea of ​​the OHEM algorithm is to filter out hard examples based on the loss of the input samples, indicating samples that have a greater impact on classification and detection, and then apply these filtered samples to stochastic gradient descent training. Specifically, in this model, the ratio of negative samples to positive samples is 3, the selected pixel value is 1, and the unselected pixel value is 0; Loss c It is used to determine whether it is a text area or a non-text area.

[0033] Loss c =1-D(S n m,G n ·m) (4)

[0034] From Los s It can be seen that the loss function is related to the area of ​​the scaled text from 1 to n-1, where w x,y Represents S n The mask of the text area, S n,x,y Represents S n The pixel value at (x,y) in .

[0035]

[0036] D stands for dice coefficient. In natural images, text instances usually occupy only a very small area, which makes the network biased towards non-text areas when using binary cross entropy. The definition of dice coefficient is as follows

[0037]

[0038] Where S k,x,y is the value of the pixel (x, y) in the kth prediction instance, G k,x,y is the value of the pixel (x, y) in the label in the kth prediction instance.

[0039] Step 3: Identify asset tags with different binary numbers and obtain asset information;

[0040] Specifically, the identification of the acquired asset is interpreted. The identification of the asset is composed of various graphics or patterns. Different graphics or patterns represent different binary numbers. The identification information is identified, that is, the graphics or patterns in the identification are identified. After successful identification, the corresponding unique binary code can be obtained, and the information of the asset is returned through the code. Before identifying the identification, the image recognition model needs to be trained through the improved network to achieve the effect of returning a number through a given graphic or pattern.

[0041] Step 4: The database stores asset information;

[0042] Specifically, the asset information returned in step 3 is saved in the cloud database corresponding to its identification information and coding information, and the information in the database is updated at the same time; the asset information includes asset name, asset quantity, storage location, department to which it belongs, etc.

[0043] Step 5 summarizes the asset data and returns the inventory information;

[0044] Specifically, according to the specific requirements of the asset inventory, the stored asset data is summarized and the corresponding inventory information is returned.

[0045] Preferably, the structure of the separable convolution described in step 2.3.1 is a 3×3 depth convolution followed by a 1×1 projection, the receptive field is a 3×3 depth convolution, and the deepened network is a 1×1 convolution.

[0046] The beneficial effects of the present invention are:

[0047] 1. The present invention acquires identification information of equipment in the cabinet by calling a camera, and can capture multiple identification information at one time, thereby simplifying the workflow and increasing efficiency.

[0048] 2. The present invention uses different graphics or patterns for identification, and has a unique binary code after identification, making the asset inventory result more accurate.

[0049] 3. A text label detection based on PSENet network is proposed, and the network structure is improved so that it can achieve better and faster recognition effect and meet the management needs of the corresponding assets under the label in natural scenes.

[0050] 4. The present invention stores information in a cloud database, and asset information can be searched by coding or directly entered. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the overall network framework structure of the present invention;

[0052] Figure 2 It is a schematic diagram of the resnet18 feature extraction network used in the network of the present invention;

[0053] Figure 3 It is a schematic diagram of a new structure of applying transfer learning to resnet18 in the network of the present invention;

[0054] Figure 4 It is a schematic diagram of the FPEM network structure in the network of the present invention;

[0055] Figure 5 is a supplementary illustration of the FPEM network structure of the present invention;

[0056] Figure 6 It is an illustration of the overall architecture flow of FPEM and FFM of the present invention;

[0057] Figure 7 is an example diagram of generating multiple kernels from a text instance of the present invention;

[0058] Figure 8 is a schematic diagram of progressive scale expansion in the present invention;

[0059] Fig. 9 It is a schematic diagram of text label detection of the network of the present invention;

[0060] Fig.10 is a flow chart of the method of the present invention;

[0061] Fig.11 It is a schematic diagram of asset inventory of the present invention. DETAILED DESCRIPTION

[0062] Based on this, in order to address the deficiencies of the above-mentioned prior art, the present invention proposes a cabinet intelligent asset inventory method based on transfer learning coding recognition of the PSENet network, aiming to provide a more efficient and more accurate intelligent asset inventory method for the assets of the data center.

[0063] In order to achieve the above object, the present application provides a cabinet intelligent asset inventory method based on coding recognition, comprising the following steps:

[0064] Step 1: Preprocessing of encoded label images;

[0065] The marked text labels obtained by the camera are images with large text, small text, curved text, and rectangular text. The images are annotated using OCR. Each text box contains four coordinates, eight coordinate points (x1, y1, x2, y2, x3, y3, x4, y4) and a label. These are training images used as positive samples, and there are one or more text labels in the images.

[0066] Data expansion processing is performed on the labeled cabinet label images, including randomly rotating the images (in the range of -10° to 10°), randomly cropping and randomly flipping the images; in order to improve the efficiency of network training, all processed images are resized to 640x640.

[0067] Step 2 builds and improves the PSENet network model, which includes a feature extraction module, a segmentation head module, and a post-processing module (specifically Figure 1 shown);

[0068] Step 2.1 build feature extraction module;

[0069] The backbone of the network is constructed for feature extraction. The present invention uses a convolutional network model resnet18 network. The image with the text label is used as input, and the feature map is obtained through the backbone network; resnet18 represents an 18-layer network with weights including convolution and fully connected layers, excluding pooling layers and normalization layers. The network first passes through a convolution layer with 3 channels as input and 64 channels as output, and outputs feature maps of different scales through four block structures. The resnet18 network uses two 3x3 convolution Basicblocks, saves the input waiting data, and then adds it after two layers of convolution. Finally, a Relu function is added to make the features more representative (the specific structure is as follows Figure 2 ); The network outputs four scale images and channels, which have a span of 4, 8, 16, and 32 pixels relative to the input image. Each scale image contains different semantic information. The bottom layer has less semantic information, but the target position is accurate, and the high-level semantic information is richer, but the target position is rough.

[0070] Step 2.2 performs transfer learning on the backbone network;

[0071] Transfer learning is performed on the resnet18 network. In order to obtain more semantic information about the image, we remove the linear layer at the end of the original resnet18 network and instead perform deconvolution and maximum pooling on the feature map returned by layer3, enlarging the image to the size of the final structural input feature map. Figure 5 The F feature maps are horizontally spliced ​​to obtain the final multi-feature map with richer information. The weights of the pre-trained unchanged layers in the model are frozen. The weights of the newly added layers will be updated during network training. The resnet18 network for transfer learning is as follows Figure 3 shown.

[0072] Step 2.3 build the segmentation head module;

[0073] Construct a segmentation head module, which is also where the present invention improves the PSENet structure; in order to better and faster fuse high-level and low-level semantic information, the present invention will use three FPEMs and one FFM to construct an enhanced feature pyramid, replacing the original FPN feature pyramid structure.

[0074] Step 2.3.1 build FPEM module;

[0075] FPEM has a cascade structure and has a smaller computational complexity than FPN. FPEM is a U-shaped module (the specific structure is as follows Figure 4 As shown in Figure 1, it consists of two stages, namely up-scale enhancement and down-scale enhancement. Up-scale enhancement acts on the input feature pyramid. In this stage, the feature maps of 32, 16, 8, and 4 pixels are iteratively enhanced. In the downscaling stage, the feature pyramid generated by up-scale enhancement is input and enhanced from 4 steps to 32 steps. Finally, the feature pyramid output by down-scale enhancement is used as the final output of FPEM.

[0076] At the same time, the output feature pyramid of the downscale enhancement is the final output of FPEM; we use separable convolution (3×3 depth convolution followed by 1×1 projection) instead of regular convolution to build the connection part; therefore, FPEM can expand the receptive field (3×3 depth convolution) and deepen the network (1×1 convolution) with less computational overhead, as shown in Figure 5 shown.

[0077] Similar to FPN, FPEM can enhance features of different scales by fusing low-level and high-level information. In addition, unlike FPN, FPEM has two advantages. First, FPEM is a cascaded module. As the number of cascades increases, feature maps of different scales are more fully integrated and the receptive field of features becomes larger. Second, FPEM is computationally cheap. FPEM uses a separable convolution method with low computational complexity. The failure rate of FPEM is about 1 / 5 of that of FPN.

[0078] Step 2.3.2 build the FFM module;

[0079] The FFM feature fusion module is used to fuse feature pyramids F1, F2, ..., Fn of different depths. Since both low-level and high-level semantic information are important for semantic segmentation, a direct and effective method to combine these feature pyramids is to upsample and merge them. However, the fused feature map given by this method has a large number of channels, which reduces the final prediction speed. Therefore, the present invention uses another fusion method. We first combine the corresponding scale feature maps by element superposition, and then upsample the added feature maps to form a final feature map F with only 4×128 channels, as shown in FIG. Figure 6 shown.

[0080] Step 2.4 builds the post-processing module of the network;

[0081] Step 2.4.1 Generate post-processing module text instance kernel and GroundTruth;

[0082] The post-processing module of the network model processes the feature map F obtained by the segmentation head module. After the feature map F undergoes 3x3 convolution, a normalization layer, and a Relu layer to change the number of channels in the feature layer to 256, it is sent to multiple 1x1 convolution upsampling and finally input into the Sigmod layer to obtain the final 6 pictures S1...S6. The dimension size is [B,C,H,W], where C is the known number of 6 cores required, B indicates how many pictures there are currently, and H and W represent the height and width of the picture respectively; using the breadth-first algorithm from S1 to S6, gradually expanding until the final text instance is obtained, the number of connected domains of S1 has been determined, which is the core area of ​​the target text in the predicted picture.

[0083] During the expansion process, each core needs to be scaled and expanded by a complete text instance to form a corresponding GroundTruth, which is formed as follows Figure 7 As shown; k i is the ith core, k n is the nth core, d i k i With k n The distance between the edges, in order to obtain the text instance cores from small to large in the figure, the Vatti clipping algorithm is used (Clipper library is a widely used graphics processing library in the field of computer graphics. It can be used to solve polygon simplification, Boolean operations and offset processing of plane two-dimensional graphics. It has relatively important applications in CAD, processing paths and 3D printing) to reduce the polygon k i pixels, and the reduced polygon k is obtained n , then, each reduced polygon k n is converted into a 0 / 1 binary mask to segment the ground truth region of the label; A(k i ) is the polygon k i The area of ​​P(k i ) is the polygon k i The circumference of n With k i The ratio between i In the calculation formula, x is the reduction ratio, and its value range is (0,1]; y is the number of text segmentation instances, that is, the number of "cores", and the calculation formula is:

[0084]

[0085] Step 2.4.2 expands the text instance kernel;

[0086] For the predicted n segmentation instances S1...S n ,In order to obtain the final detection result, we adopted a progressive scale ,expansion algorithm, as follows Figure 8 This is the process of scale expansion in the algorithm, where S1 represents the segmentation result of the smallest kernel. We gradually determine whether the pixels adjacent to c are in S2. If so, they are merged into b to obtain the merged result c. The expansion is based on the breadth search algorithm, which starts from the pixels of S1 and then iteratively merges the adjacent GroundTruth text pixels until the largest kernel is found. The slash box and the mesh box identify different text kernels, and the arrow indicates the direction of expansion. There may be conflicting pixels during the expansion process, as shown in the dotted box in the figure below. The principle of handling conflicts in practice is that confused pixels can only be merged by a single kernel on a first-come, first-served basis.

[0087] Step 2.4.3 constructs the loss function for network training;

[0088] The loss function of the network training text instance graph can be written as:

[0089] Loss = μLoss c +(1-u)Loss s (3)

[0090] Loss c and Loss s Represent the loss of the complete text instance and the contraction instance respectively. μ is set to 0.7 to balance the values ​​of the two. c S n Represents the largest segmentation area, G n represents the maximum groundtruth, and the value of m is generated by online hard example miniing (OHEM), which is also a 0 / 1 mask. The core idea of ​​the OHEM algorithm is to filter out hard examples based on the loss of the input samples, indicating samples that have a greater impact on classification and detection, and then apply these filtered samples to stochastic gradient descent training. Specifically, in this model, the ratio of negative samples to positive samples is 3, the selected pixel value is 1, and the unselected pixel value is 0; Loss c It is used to determine whether it is a text area or a non-text area.

[0091] Loss c =1-D(S n m,G n ·m) (4)

[0092] From Los s It can be seen that the loss function is related to the area of ​​the scaled text from 1 to n-1, where w x,y Represents S n The mask of the text area, S n,x,y Represents S n The pixel value at (x,y) in .

[0093]

[0094] D stands for dice coefficient. In natural images, text instances usually occupy only a very small area, which makes the network biased towards non-text areas when using binary cross entropy. The definition of dice coefficient is as follows

[0095]

[0096] Where S k,x,y is the value of the pixel (x, y) in the kth prediction instance, G k,x,y is the value of the pixel (x, y) in the label in the kth prediction instance.

[0097] Step 3: Identify asset tags with different binary numbers and obtain asset information;

[0098] Specifically, the identification of the acquired asset is interpreted. The identification of the asset is composed of various graphics or patterns. Different graphics or patterns represent different binary numbers. Identifying the identification information means identifying the graphics or patterns in the identification. After successful identification, the corresponding unique binary code can be obtained. The information of the asset can be returned through the code. Before identifying the identification, the improved network training image recognition model is required to achieve the effect of returning a number through a given graphic or pattern, such as Fig. 9 .

[0099] Step 4: The database stores asset information;

[0100] Specifically, the asset information returned in step 3 is saved in the cloud database corresponding to its identification information and coding information, and the information in the database is updated at the same time; the asset information includes asset name, asset quantity, storage location, department to which it belongs, etc.

[0101] Step 5 summarizes the asset data and returns the inventory information;

[0102] Specifically, according to the specific requirements of the asset inventory, the stored asset data is summarized and the corresponding inventory information is returned.

[0103] The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.

Claims

1. A cabinet intelligent asset inventory method based on coding identification includes the following steps: Step 1: Preprocessing of encoded label images; The text labels with labels obtained by the camera are images with large text, small text, curved text, and rectangular text. The images are annotated using OCR. Each text box contains four coordinates, eight coordinate points (x1, y1, x2, y2, x3, y3, x4, y4) and a label. These are used as training images for positive samples, and there are one or more text labels in the images. Perform data expansion processing on the labeled cabinet label images, including randomly rotating the images from -10° to 10°, randomly cropping and randomly flipping the images; in order to improve the efficiency of network training, resize all processed images to 640x640; Step 2: Build and improve the PSENet network, including feature extraction module, segmentation head module and post-processing module; Step 2.1 build feature extraction module; Build the backbone of the network for feature extraction, use the convolutional network model resnet18 network, use the image with text labels as input, and get the feature map through the backbone network; resnet18 means an 18-layer network with weights including convolution and fully connected layers, excluding pooling and normalization layers. The network first passes through a convolution layer with 3 channels as input and 64 channels as output, and outputs feature maps of different scales through four block structures. The resnet18 network uses two 3x3 convolution Basicblocks, which save the input waiting data and add them after two layers of convolution, and finally add a Relu function to make the features more representative; the image outputs four scales of images and channels through the network, with a span of 4, 8, 16, and 32 pixels relative to the input image. Each scale of the image contains different semantic information; the semantic information at the bottom layer is relatively small, but the target position is accurate, and the semantic information at the high level is relatively rich, but the target position is relatively rough; Step 2.2 performs transfer learning on the backbone network; Perform transfer learning on the resnet18 network; in order to obtain more semantic information about the image, remove the linear layer at the end of the original resnet18 network, perform deconvolution and maximum pooling on the feature map returned by layer3, enlarge the image to the size of the final structural input feature map, and horizontally splice it with the F feature map to obtain a multi-feature map with richer information. Freeze the weights of the pre-trained unchanged layers in the model, and update the weights of the newly added layers during network training; Step 2.3: Construct the cutting head module; In order to better and faster integrate high-level and low-level semantic information, three FPEMs and one FFM are used to construct an enhanced feature pyramid, replacing the original FPN feature pyramid structure; Step 2.3.1 build FPEM module; FPEM has a cascade structure and has less computational complexity than FPN. FPEM is a U-shaped module consisting of two stages, namely upscale enhancement and downscale enhancement; Upscale enhancement acts on the input feature pyramid; In this stage, the feature maps of 32, 16, 8, and 4 pixels are iteratively enhanced; In the downscaling stage, the feature pyramid generated by the upscale enhancement is input and enhanced from 4 steps to 32 steps; finally, the feature pyramid output by the downscale enhancement is used as the final output of FPEM; At the same time, the output feature pyramid of the downscale enhancement is the final output of FPEM; separable convolution is used instead of regular convolution to build the connection part; therefore, FPEM can expand the receptive field and deepen the network with less computational overhead; Step 2.3.2 build the FFM module; The FFM feature fusion module is used to fuse feature pyramids F1, F2, ..., Fn of different depths. First, the corresponding scale feature maps are combined by element superposition. Then, the added feature maps are upsampled and concatenated into the final feature map F with only 4×128 channels. Step 2.4 builds the post-processing module of the network; Step 2.4.1 Generate post-processing module text instance kernel and GroundTruth; The post-processing module of the network model processes the feature map F obtained by the segmentation head module. After the feature map F undergoes a 3x3 convolution, a normalization layer, and a Relu layer to change the number of channels in the feature layer to 256, it is then sent to multiple 1x1 convolution upsampling and finally input to the Sigmod layer to obtain the final 6 images S1...S6, with a dimension size of [B,C,H,W], where C is the known number of 6 cores required, B indicates how many images there are currently, and H and W represent the height and width of the image respectively; using the breadth-first algorithm from S1 to S6, gradually expanding until the final text instance is obtained, the number of connected domains of S1 has been determined, which is the core area of ​​the target text in the predicted image; Each kernel needs to be scaled and expanded by a complete text instance to form a corresponding GroundTruth during the expansion process; k i is the ith core, k n is the nth core, d i k i With k n The distance between the edges, in order to obtain the text instance cores from small to large in the figure, the Vatti clipping algorithm is used to reduce the polygon k i pixels, and the reduced polygon k is obtained n , then, each reduced polygon k n is converted into a 0 / 1 binary mask to segment the ground truth region of the label; A(k i ) is the polygon k i The area of ​​P(k i ) is the polygon k i The circumference of n With k i The ratio between i In the calculation formula, x is the reduction ratio, and its value range is (0,1]; y is the number of text segmentation instances, that is, the number of "cores", and the calculation formula is: Step 2.4.2 expands the text instance kernel; For the predicted n segmentation instances S1...S n ,In order to obtain the final detection result, a progressive scale expansion algorithm is ,adopted, where S1 represents the segmentation result of the smallest kernel, and ,gradually judge whether the pixels adjacent to c are in S2. If so, ,they are merged into b, thus obtaining the merged result c; the expansion is based on ,the breadth search algorithm, which starts from the pixels of S1, and then iteratively merges the ,adjacent GroundTruth text pixels until the largest kernel is found. ,The principle of dealing with conflicts in practice is that the ,confused pixels can only be merged by a single kernel on a first-come,first-served basis; Step 2.4.3 constructs the loss function for network training; The loss function of the network training text instance graph can be written as: Loss=μLoss c +(1-u)Loss s (3) Loss c and Loss s They represent the loss of the complete text instance and the contraction instance respectively. μ is set to 0.7 to balance the values ​​of the two. c S n Represents the largest segmentation area, G n represents the maximum ground truth of the expansion, and the value of m is generated by online hard example mining OHEM, which is also a 0 / 1 mask. The core idea of ​​the OHEM algorithm is to filter out hard examples according to the loss of the input samples, indicating the samples with greater influence on classification and detection, and then apply these filtered samples to the stochastic gradient descent training. Specifically, in this model, the ratio of negative samples to positive samples is 3, the selected pixel point is 1, and the unselected pixel point is 0. Loss c It is used to determine whether it is a text area or a non-text area; Loss c =1-D(S n ·m,G n ·m) (4) From Los s It can be seen that the loss function is related to the area of ​​the scaled text from 1 to n-1, where w x,y Represents S n The mask of the text area, S n,x,y Represents S n The pixel value at (x,y) in D stands for dice coefficient. In natural images, text instances usually occupy only a very small area, which makes the network biased towards non-text areas when using binary cross entropy. The definition of dice coefficient is as follows Where S k,x,y is the value of the pixel (x, y) in the kth prediction instance, G k,x,y is the value of the pixel (x, y) in the label of the k-th prediction instance; Step 3: Identify asset tags with different binary numbers and obtain asset information; Specifically, the identification of the acquired asset is interpreted. The identification of the asset is composed of various graphics or patterns. Different graphics or patterns represent different binary numbers. Identifying the identification information means identifying the graphics or patterns in the identification. After successful identification, the corresponding unique binary code can be obtained, and the information of the asset is returned through the code. Before identifying the identification, the image recognition model needs to be trained through the improved network to achieve the effect of returning a number through a given graphic or pattern; Step 4: The database stores asset information; Specifically, the asset information returned in step 3 is saved in the cloud database along with its identification information and coding information, and the information in the database is updated at the same time; the asset information includes the asset name, asset quantity, storage location, and department information; Step 5 summarizes the asset data and returns the inventory information; Specifically, according to the specific requirements of the asset inventory, the stored asset data is summarized and the corresponding inventory information is returned.

2. The method for intelligent cabinet asset inventory based on coding identification according to claim 1, characterized in that: The structure of the separable convolution described in step 2.3.1 is a 3×3 depth convolution followed by a 1×1 projection, the receptive field is a 3×3 depth convolution, and the deepened network is a 1×1 convolution.