A method and system for identifying user graphical interface elements

By introducing the explicit visual center module and feature pyramid network into GUI element detection, and combining global and local feature processing, the problem of small and dense GUI element detection is solved, and the detection accuracy and comprehensiveness are significantly improved.

CN118038019BActive Publication Date: 2024-09-20ZHONGKE LIANAN (NANJING) TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410107659.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-09-20
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

Existing GUI element detection models are difficult to effectively detect small and dense graphical user interface elements, resulting in frequent missed detections.

Method used

It uses an explicit vision center module, combines the global feature processing channel and the near target area processing channel, captures long-distance and local features through multi-layer perceptrons and neural networks, and combines the feature pyramid network and classification and anchor frame monitoring modules to improve the accuracy of the detection frame. accuracy.

Benefits of technology

It significantly improves the accuracy and comprehensiveness of GUI element detection, reduces the misjudgment rate, and improves the recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118038019B
    Figure CN118038019B
Patent Text Reader

Abstract

The present invention provides a method and system for identifying elements in a user graphical interface. The method comprises the following steps: obtaining an interface image to be detected, inputting the interface image into a first convolution module, the first convolution module outputting a first process vector; inputting the first process vector into an explicit visual center module, the explicit visual center module comprising a global feature processing channel and a near-target area processing channel, the global feature processing channel outputting a global feature vector through a preset multi-layer perceptron, the near-target area processing channel outputting a local feature vector through a preset neural network, and determining a second process vector based on the global feature vector and the local feature vector; the second process vector sequentially passes through a feature pyramid network module and a classification and anchor frame monitoring module, the classification and anchor frame monitoring module determines a detection frame through a classifier and a bounding box regression algorithm, and obtains an interface image marked with a detection frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target detection technology, and in particular to a method and system for identifying user graphical interface elements. Background Art

[0002] In mobile applications, graphical user interfaces (GUIs) provide a convenient way to exchange information with computers using graphical elements such as buttons, text boxes, and windows. Through the integration of graphics, GUIs improve user experience and provide an intuitive and attractive interface for information transmission. Therefore, the detection of GUI elements has become an inevitable challenge in mobile application testing. On the other hand, the explosive growth of mobile platforms has made GUI testing more complicated, highlighting the urgent need for automatic testing technology.

[0003] Due to the development of high-performance computing and the emergence of large-scale data for model training, deep learning-based methods have reshaped the field of object detection. Nevertheless, GUI element detection can still be regarded as a special case of small object detection and is still a frontier that needs to be explored.

[0004] The existing GUI element detection model is mainly trained on the GUI dataset through the target detection model, and is classified into single-stage target detection model and double-stage target detection model. However, since most GUI elements are very small, the very small here means that the length and width of the element itself are very small and the proportion of the overall image is also very small. The arrangement of GUI elements in the software interface is often dense, such as the software download interface, video live broadcast interface and mall interface. These interfaces often contain a lot of information. As a carrier of information, GUI elements often appear in a very compact layout. The small and dense characteristics cause the current target detection algorithm to miss detection when identifying GUI elements in the software interface, that is, the target detection model of the existing technology is difficult to detect all GUI elements. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method for identifying a user graphical interface element to eliminate or improve one or more defects in the prior art.

[0006] One aspect of the present invention provides a method for identifying a user graphical interface element, the method comprising the following steps:

[0007] Acquire an interface image to be detected, and input the interface image into a first convolution module, wherein the first convolution module outputs a first process vector;

[0008] Inputting the first process vector into an explicit visual center module, the explicit visual center module includes a global feature processing channel and a near target area processing channel, the global feature processing channel outputs a global feature vector through a preset multi-layer perceptron, the near target area processing channel outputs a local feature vector through a preset neural network, and determining a second process vector based on the global feature vector and the local feature vector;

[0009] The second process vector sequentially passes through a feature pyramid network module and a classification and anchor frame monitoring module. The classification and anchor frame monitoring module determines a detection frame through a classifier and a bounding box regression algorithm to obtain an interface image marked with a detection frame.

[0010] Compared with other existing user graphical interface element recognition methods, the above scheme is provided with an explicit visual center module, and a global feature processing channel and a near target area processing channel are provided in the explicit visual center module, wherein the global feature processing channel captures long-distance global features through a preset multi-layer perceptron, and the near target area processing channel captures the features of the area surrounding the target through a preset neural network, thereby enabling the scheme to identify features from two aspects, thereby ensuring the comprehensiveness of GUI element detection.

[0011] In some embodiments of the present invention, the explicit visual center module includes a first full-dimensional dynamic convolution unit, a normalization layer, an activation function layer and a second full-dimensional dynamic convolution unit. When the first process vector is input into the explicit visual center module, the explicit visual center module includes a global feature processing channel and a near-target area processing channel. The global feature processing channel outputs a global feature vector through a preset multi-layer perceptron, and the near-target area processing channel outputs a local feature vector through a preset neural network. In the step of determining the second process vector based on the global feature vector and the local feature vector, the first process vector is sequentially processed by the first full-dimensional dynamic convolution unit, the normalization layer and the activation function layer, and respectively input into the global feature processing channel and the near-target area processing channel, the global feature vector and the local feature vector are spliced ​​and input into the second full-dimensional dynamic convolution unit to obtain the second process vector.

[0012] In some embodiments of the present invention, the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit have the same structure, both including a level pooling layer, a conv2d layer, a batch normalization layer, a relu layer and a parallel convolution unit arranged in sequence, and the parallel convolution unit includes a plurality of sub-channels arranged in parallel, each sub-channel includes a conv2d layer and a sigmid layer arranged in sequence, and the outputs of each sub-channel are added to obtain the output of the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit.

[0013] In some embodiments of the present invention, the global feature processing channel includes a plurality of first processing units arranged in sequence, and each first processing unit includes a group normalization layer, a depth-wise convolution layer, a channel scaling layer and a Droppath layer arranged in sequence.

[0014] In some embodiments of the present invention, the near-target area processing channel includes a convolutional layer, a second processing unit, a codebook calculation unit, a fully connected layer and a one-dimensional convolutional layer arranged in sequence. The codebook calculation unit performs calculations based on the output of the second processing unit through a preset codebook, outputs values ​​of multiple dimensions of the value vector, and combines the values ​​of multiple dimensions of the value vector to obtain a value vector.

[0015] In some embodiments of the present invention, the second processing unit includes a convolution layer, a normalization layer and a relu layer arranged in sequence.

[0016] In some implementations of the present invention, the codebook calculation unit obtains the keyword vector output by the second processing unit, and calculates the value of each dimension in the keyword vector with a preset codebook to obtain a value vector.

[0017] In some embodiments of the present invention, in the step of calculating each keyword vector with a preset codebook to obtain a value vector corresponding to the keyword vector, the value of each dimension of the value vector is calculated based on the following formula:

[0018]

[0019] Among them, e δ represents the value of the δth dimension of the value vector, N represents the number of dimensions of the keyword vector, and s δ and b δ represents two calculation parameters in the parameter group corresponding to the value of the δth dimension of the value vector in the codebook, represents the value of the i-th dimension of the keyword vector, K represents the total number of parameter groups in the codebook, and s j and b j represents the two calculated parameters of the jth parameter group in the codebook.

[0020] In some embodiments of the present invention, the method further includes pre-training a network model including a first convolution module, an explicit visual center module, a feature pyramid network module, and a classification and anchor box monitoring module. In the pre-training step, the normalized West distance between the output of the network model and the label is calculated as a loss function.

[0021] In some embodiments of the present invention, in the step of calculating the normalized West distance between the output of the network model and the label as the loss function, the two-dimensional Gaussian distribution of the detection box and the label box is calculated respectively based on the position, height and width of the detection box and the label box output by the network model, and the loss function is calculated based on the two-dimensional Gaussian distribution of the detection box and the label box.

[0022] In some embodiments of the present invention, in the step of respectively calculating the two-dimensional Gaussian distribution of the detection box and the label box based on the position, length and width of the detection box and the label box output by the network model, the two-dimensional Gaussian distribution is expressed as in C x and C y are the horizontal and vertical coordinates of the center of gravity of the detection box or label box, and w and h represent the width and height of the detection box or label box respectively.

[0023] In some embodiments of the present invention, in the step of calculating the loss function based on the two-dimensional Gaussian distribution of the detection box and the label box, the loss function is calculated based on the following formula:

[0024] Wherein, L indicates that W2 and C are both preset calculation parameters. and Represent the two-dimensional Gaussian distribution of the detection box and label box respectively.

[0025] The second aspect of the present invention also provides a user graphical interface element recognition system, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the system implements the steps implemented by the method described above.

[0026] The third aspect of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps implemented by the aforementioned user graphical interface element recognition method.

[0027] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention can be specifically pointed out and obtained in the specification and the accompanying drawings.

[0028] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.

[0030] Figure 1 A schematic diagram of an implementation of a method for identifying elements in a user graphical interface according to the present invention;

[0031] Figure 2 A schematic diagram of the structure of the method for identifying elements in a user graphical interface according to the present invention;

[0032] Figure 3 This is a schematic diagram of the architecture of the explicit visual center module;

[0033] Figure 4 Schematic diagram of the ablation experiment results. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0035] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0036] The steps of the present invention specifically include:

[0037] like Figure 1 and 2 As shown, the present invention proposes a method for identifying elements in a user graphical interface, the method comprising the steps of:

[0038] Step S100, obtaining an interface image to be detected, inputting the interface image into a first convolution module, and the first convolution module outputs a first process vector;

[0039] In a specific implementation process, the interface image to be detected is a graphical user interface (GUI), the first convolution module is sequentially provided with a plurality of convolution layers, and the last convolution layer outputs a first process vector.

[0040] Step S200: input the first process vector into an explicit visual center module. Figure 2EVCBlockWith ODConv represents an explicit visual center module, which includes a global feature processing channel and a near target area processing channel. The global feature processing channel outputs a global feature vector through a preset multi-layer perceptron, and the near target area processing channel outputs a local feature vector through a preset neural network. The second process vector is determined based on the global feature vector and the local feature vector.

[0041] In some embodiments of the present invention, a global feature processing channel and a near target area processing channel are provided in the explicit visual center module, wherein the global feature processing channel captures long-distance global features through a preset multi-layer perceptron, and the near target area processing channel captures features of the target surrounding area through a preset neural network.

[0042] In some embodiments of the present invention, the multilayer perceptron (MLP) adopts a feedforward artificial neural network model.

[0043] In some embodiments of the present invention, in the step of determining the second process vector based on the global feature vector and the local feature vector, the global feature vector and the local feature vector are concatenated to obtain the second process vector.

[0044] Step S300, the second process vector sequentially passes through the feature pyramid network module and the classification and anchor frame monitoring module, and the classification and anchor frame monitoring module determines the detection frame through the classifier and the bounding box regression algorithm to obtain an interface image marked with the detection frame.

[0045] In a specific implementation process, the detection frame is used to mark the GUI elements in the interface diagram.

[0046] In some embodiments of the present invention, the feature pyramid network module adopts an FPN network (Feature Pyramid Network). FPN (Feature Pyramid Network) is a deep learning network structure used for target detection and semantic segmentation. By constructing a multi-scale feature pyramid, feature information at different levels is fused together to provide richer and more accurate context information and improve the accuracy of target detection and semantic segmentation.

[0047] In some embodiments of the present invention, the classification and anchor box monitoring module uses a classifier and a bounding box detection algorithm in combination to achieve object detection tasks. For example, in the object detection task, CNN is used as a classifier, and a bounding box regression algorithm (such as the R-CNN series of algorithms) is combined to optimize the position of the bounding box.

[0048] Compared with other existing user graphical interface element recognition methods, the above scheme is provided with an explicit visual center module, and a global feature processing channel and a near target area processing channel are provided in the explicit visual center module, wherein the global feature processing channel captures long-distance global features through a preset multi-layer perceptron, and the near target area processing channel captures the features of the area surrounding the target through a preset neural network, thereby enabling the scheme to identify features from two aspects, thereby ensuring the comprehensiveness of GUI element detection.

[0049] In the specific implementation process, the error rate of GUI element category recognition in the prior art is relatively high: the features between GUI element categories are very similar, such as labels and pictures, texts and text buttons, etc. These very similar GUI elements have similar features, and sometimes even the human eye cannot correctly recognize them. The current target detection algorithm will misjudge the categories of GUI elements when recognizing them, resulting in low recognition accuracy. The present scheme is provided with an explicit visual center module, and a global feature processing channel and a near-target area processing channel are provided in the explicit visual center module, wherein the global feature processing channel captures long-distance global features through a preset multi-layer perceptron, and the near-target area processing channel captures the features of the area surrounding the target through a preset neural network, thereby enabling the present scheme to identify features from two aspects and ensure recognition accuracy.

[0050] like Figure 3 As shown, in some embodiments of the present invention, the explicit visual center module includes a first full-dimensional dynamic convolution unit, a normalization layer, an activation function layer, and a second full-dimensional dynamic convolution unit. When the first process vector is input into the explicit visual center module, the explicit visual center module includes a global feature processing channel and a near-target area processing channel. The global feature processing channel outputs a global feature vector through a preset multi-layer perceptron, and the near-target area processing channel outputs a local feature vector through a preset neural network. Figure 2 In the LVC With ODConv, it represents the near target area processing channel. In the step of determining the second process vector based on the global feature vector and the local feature vector, the first process vector is sequentially processed by the first full-dimensional dynamic convolution unit, the normalization layer, and the activation function layer, and are respectively input into the global feature processing channel and the near target area processing channel. The global feature vector and the local feature vector are concatenated and input into the second full-dimensional dynamic convolution unit to obtain the second process vector.

[0051] like Figure 3As shown, in some embodiments of the present invention, the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit have the same structure, both including a sequentially arranged average pooling layer, a conv2d layer, a batch normalization layer, a relu layer and a parallel convolution unit, and the parallel convolution unit includes a plurality of sub-channels arranged in parallel, each sub-channel includes a sequentially arranged conv2d layer and a sigmid layer, and the outputs of each sub-channel are added to obtain the output of the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit.

[0052] In the specific implementation process, the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit both adopt the ODConv (OMNI-DIMENSIONAL DYNAMIC CONVOLUTION) structure. ODConv is a convolution method that focuses on the dynamics in dimensions such as spatial domain, input channel, and output channel.

[0053] Using the above solution, a full-dimensional dynamic convolution unit is added to the explicit visual center as a substitute for ordinary convolution, which improves the feature expression ability of the model while effectively solving the problem of increased complexity brought to the model by the explicit visual center.

[0054] In some embodiments of the present invention, the global feature processing channel includes a plurality of first processing units arranged in sequence, and each first processing unit includes a group normalization layer, a depth-wise convolution layer, a channel scaling layer and a Droppath layer arranged in sequence.

[0055] In some embodiments of the present invention, the near-target area processing channel includes a convolutional layer, a second processing unit, a codebook calculation unit, a fully connected layer and a one-dimensional convolutional layer arranged in sequence. The codebook calculation unit performs calculations based on the output of the second processing unit through a preset codebook, outputs values ​​of multiple dimensions of the value vector, and combines the values ​​of multiple dimensions of the value vector to obtain a value vector.

[0056] In some embodiments of the present invention, the second processing unit includes a convolution layer, a normalization layer and a relu layer arranged in sequence.

[0057] In some implementations of the present invention, the codebook calculation unit obtains the keyword vector output by the second processing unit, and calculates the value of each dimension in the keyword vector with a preset codebook to obtain a value vector.

[0058] In some embodiments of the present invention, in the step of calculating each keyword vector with a preset codebook to obtain a value vector corresponding to the keyword vector, the value of each dimension of the value vector is calculated based on the following formula:

[0059]

[0060] Among them, e δ represents the value of the δth dimension of the value vector, N represents the number of dimensions of the keyword vector, and s δ and b δ represents two calculation parameters in the parameter group corresponding to the value of the δth dimension of the value vector in the codebook, represents the value of the i-th dimension of the keyword vector, K represents the total number of parameter groups in the codebook, and s j and b j represents the two calculated parameters of the jth parameter group in the codebook.

[0061] In a specific implementation process, the codebook is provided with a parameter group for each dimension of a keyword vector, and the number of dimensions of the keyword vector is the same as the number of dimensions of the value vector.

[0062] In some embodiments of the present invention, the method further includes pre-training a network model including a first convolution module, an explicit visual center module, a feature pyramid network module, and a classification and anchor box monitoring module. In the pre-training step, the normalized West distance between the output of the network model and the label is calculated as a loss function.

[0063] In some embodiments of the present invention, in the step of calculating the normalized West distance between the output of the network model and the label as the loss function, the two-dimensional Gaussian distribution of the detection box and the label box is calculated respectively based on the position, height and width of the detection box and the label box output by the network model, and the loss function is calculated based on the two-dimensional Gaussian distribution of the detection box and the label box.

[0064] In some embodiments of the present invention, in the step of respectively calculating the two-dimensional Gaussian distribution of the detection box and the label box based on the position, length and width of the detection box and the label box output by the network model, the two-dimensional Gaussian distribution is expressed as in C x and C y are the horizontal and vertical coordinates of the center of gravity of the detection box or label box, and w and h represent the width and height of the detection box or label box respectively.

[0065] In some embodiments of the present invention, in the step of calculating the loss function based on the two-dimensional Gaussian distribution of the detection box and the label box, the loss function is calculated based on the following formula:

[0066]

[0067] Wherein, L indicates that W2 and C are both preset calculation parameters. and Represent the two-dimensional Gaussian distribution of the detection box and label box respectively.

[0068] Experimental Example 1:

[0069] Experimental Example 1 selected 6 relatively classic or the latest target detection models in the industry for comparison, including faster R-CNN, RetinaNet, rfla, Sparse R-CNN, SQR and YOLOx. Among them, faster R-CNN is a two-stage target detection model, RetinaNet is a single-stage detection model but the principle is quite different from that of yolov5, the principle of SparseR-CNN is different from both the single-stage and two-stage target detection algorithms, rfla is a target detector launched for small target detection, and SQR is a SOTA model in the field of target detection. YOLOx is the most successful evolution model of YOLOv5, and the present invention also uses it as a model for comparative experiments.

[0070] In this experimental example 1, the proposed improved method is transplanted into Faster R-CNN, RetinaNet and Sparse R-CNN as a plug-and-play module to verify the universality of the above modules in improving the performance of the object detection model, and further prove that the module can capture the characteristics of user graphic elements more comprehensively and accurately.

[0071] Experimental results: Table 1 shows the comparison results of the algorithm proposed in the present invention with the baseline model and the above-mentioned models on various mAP parameters. The "*" after the Method indicates that the display visual center module (EVCBlock with ODCOnv) and the normalized West distance loss function (NWD Loss) proposed in the present invention, which include full-dimensional dynamic convolution, are added to the original model. It can be seen that the various indicators of the algorithm proposed in the present invention are on par with SQR, and are tied for first place. Although the algorithm proposed in the present invention has a very slight difference in accuracy with SQR, it has an order of magnitude difference in the number of parameters compared with SQR. It can be said that the algorithm proposed in the present invention has great advantages over other comparison models in terms of various accuracies and model parameter quantities; secondly, other models improved by the module proposed in the present invention have improved mAP indicators compared with their original models, and the increase in the number of parameters is also controllable and small. It can be seen that the improvement method proposed in the present invention has universal significance for the improvement of target detection models.

[0072] Table 1

[0073] Model mAP50:95 mAP50 mAP75 Param.(M) YOLOv5 75.1 85.3 81.7 7.26 Solution of the present invention 87.9 95.8 94.3 11.60 RetinaNet 79.6 89.2 86.1 36.33 RetinaNet* 81.9 92.7 88.5 40.89 Sparse R-CNN 81.8 87.4 86.1 105.96 Sparse R-CNN* 83.6 89.5 87.7 110.52 Faster R-CNN 78.1 90.1 87.1 41.18 Faster R-CNN* 79.4 92.3 89.1 45.74 RFLA 82.0 94.0 91.3 41.18 SQR 91.6 96.0 94.8 134.46 YOLOx 84.8 92.0 90.1 8.94

[0074] Experimental Example 2:

[0075] Evaluation index: FLOPs refers to the number of floating point operations, which can be understood as the amount of calculation. It can be used to measure the complexity of the algorithm / model. GFLOPs (1GFLOPs = 10^9FLOPs) is commonly used in models.

[0076] Experimental results: Figure 4 The results of the ablation experiment are shown. It can be seen that although the explicit visual center module (EVC) has a significant improvement in model accuracy, the increase in the amount of computation caused by the model is also very obvious, which will significantly increase the training time and inference time of the model. As a substitute for IoU Loss, NWD Loss improves the accuracy of the model without increasing the number of additional neurons and weights, and naturally does not increase the amount of computation. Through the ablation experiment, it is obvious that the full-dimensional dynamic convolution has a significant effect on the model. Its effect is mainly manifested in that as a substitute for the ordinary convolution kernel, it can offset the significant increase in the amount of computation brought to the model by the explicit visual center (EVC).

[0077] An embodiment of the present invention also provides a user graphical interface element recognition system, which includes a computer device, wherein the computer device includes a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps implemented by the method described above.

[0078] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps implemented by the aforementioned user graphical interface element recognition method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0079] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0080] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0081] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for identifying elements in a user graphical interface, characterized in that: The steps of the method include: Acquire an interface image to be detected, and input the interface image into a first convolution module, wherein the first convolution module outputs a first process vector; The first process vector is input into an explicit visual center module, the explicit visual center module includes a global feature processing channel and a near target area processing channel, the global feature processing channel outputs a global feature vector through a preset multi-layer perceptron, the near target area processing channel outputs a local feature vector through a preset neural network, and a second process vector is determined based on the global feature vector and the local feature vector. The explicit visual center module includes a first full-dimensional dynamic convolution unit, a normalization layer, an activation function layer, and a second full-dimensional dynamic convolution unit. The first process vector is processed sequentially by the first full-dimensional dynamic convolution unit, the normalization layer, and the activation function layer, and is respectively input into the full-dimensional dynamic convolution unit, the normalization layer, and the activation function layer. A local feature processing channel and a near-target area processing channel, concatenating the global feature vector and the local feature vector, and inputting them into a second full-dimensional dynamic convolution unit to obtain a second process vector, wherein the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit have the same structure, and both include a local pooling layer, a conv2d layer, a batch normalization layer, a relu layer, and a parallel convolution unit arranged in sequence, wherein the parallel convolution unit includes a plurality of sub-channels arranged in parallel, and each sub-channel includes a conv2d layer and a sigmid layer arranged in sequence, and the outputs of the sub-channels are added to obtain the outputs of the first full-dimensional dynamic convolution unit and the second full-dimensional dynamic convolution unit; The second process vector sequentially passes through a feature pyramid network module and a classification and anchor frame monitoring module. The classification and anchor frame monitoring module determines a detection frame through a classifier and a bounding box regression algorithm to obtain an interface image marked with a detection frame.

2. The method for identifying user graphical interface elements according to claim 1, characterized in that: The global feature processing channel includes a plurality of first processing units arranged in sequence, and each first processing unit includes a group normalization layer, a depth-wise convolution layer, a channel scaling layer and a Droppath layer arranged in sequence.

3. The method for identifying user graphical interface elements according to claim 1, characterized in that: The near-target area processing channel includes a convolution layer, a second processing unit, a codebook calculation unit, a fully connected layer and a one-dimensional convolution layer which are arranged in sequence, and the codebook calculation unit outputs a value vector to the fully connected layer.

4. The method for identifying user graphical interface elements according to claim 3, characterized in that: The second processing unit includes a convolution layer, a normalization layer and a relu layer which are arranged in sequence.

5. The method for identifying user graphical interface elements according to claim 3, characterized in that: The codebook calculation unit obtains the keyword vector output by the second processing unit, and calculates the value of each dimension in the keyword vector with a preset codebook to obtain a value vector.

6. The method for identifying user graphical interface elements according to claim 5, characterized in that: In the step of calculating each keyword vector with a preset codebook to obtain a value vector corresponding to the keyword vector, the value of each dimension of the value vector is calculated based on the following formula: Among them, e δ represents the value of the δth dimension of the value vector, N represents the number of dimensions of the keyword vector, and s δ and b δ represents two calculation parameters in the parameter group corresponding to the value of the δth dimension of the value vector in the codebook, represents the value of the i-th dimension of the keyword vector, K represents the total number of parameter groups in the codebook, and s j and b j represents the two calculated parameters of the jth parameter group in the codebook.

7. The method for identifying user graphical interface elements according to claim 1, characterized in that: The method also includes pre-training a network model including a first convolution module, an explicit visual center module, a feature pyramid network module, and a classification and anchor box monitoring module. In the pre-training step, the normalized West distance between the output of the network model and the label is calculated as a loss function.

8. A user graphical interface element recognition system, characterized in that: The system includes a computer device, which includes a processor and a memory. The memory stores computer instructions. The processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps implemented by the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image classification method and device and personalized recommendation method and device

    CN108304847A

  • Target detection device and method combining global and local features, and storage medium

    CN113554125A

  • Multi-target garbage detection method based on improved YOLOv5 model

    CN116452950A

  • Flame detection method based on MPGD-YOLO network

    CN116758393A

  • Method and apparatus for training a neural network classifier to classify an image depicting one or more objects of a biological sample

    US20210264130A1