Brand logo quality detection method based on whole vehicle character, medium and equipment
By employing a multi-stage collaborative method for vehicle character detection, and utilizing instance segmentation models and adaptive boundary extension techniques, the problems of pose adaptability, reflective background interference, and aspect ratio inconsistency in vehicle rear character detection are solved, achieving high-precision and stable quality detection.
Patent Information
- Application Number
- CN202611368061.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies for character detection at the rear of automobiles suffer from problems such as poor positional adaptability, strong reflective background interference, low character detection accuracy due to inconsistent aspect ratios, low cycle efficiency, and insufficient compatibility with multiple vehicle models.
A multi-stage collaborative detection method is adopted. Character instance region maps are extracted through instance segmentation model. Adaptive boundary extension is performed by combining character category, instance confidence and mask to generate standardized feature maps. Character sequence template matching is then performed to achieve adaptive correction and noise removal in the spatial domain and feature domain.
It improves the accuracy and robustness of vehicle rear character detection, reduces false alarm rate, ensures multi-vehicle adaptation and production line detection stability, and enhances detection efficiency and quality.
Smart Images

Figure CN123142199A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of quality inspection technology, and in particular to a method, medium, and equipment for quality inspection of brand logos based on vehicle characters. Background Technology
[0002] In the field of automotive manufacturing and quality inspection, automated visual inspection of rear-end characters (including but not limited to model identification, engine displacement identification, and brand logos) is one of the key processes to ensure the compliance of vehicle appearance before leaving the factory. With the widespread application of deep learning technology in industrial visual inspection, mainstream automotive manufacturers currently adopt the following two main technical approaches for the recognition and defect determination of rear-end characters: The first category is single-stage end-to-end detection methods. These methods typically employ a one-stage object detection network (such as the YOLO series, SSD, etc.) to perform end-to-end inference on the global image of the rear of the vehicle, attempting to simultaneously output the location information, category confidence, and defect judgment results of the character target during a single forward propagation. The underlying principle is to use a deep convolutional neural network to extract multi-scale features from the entire rear image and directly regress the coordinate offset and classification probability of the target bounding box on the deep feature map. However, this type of method couples character localization and character recognition into the same network architecture. The bounding box regression target is usually based on the minimum bounding rectangle of the character's outer contour. In scenarios where the vehicle exhibits posture deviations, the edges of the regressed box are highly prone to misalignment with the actual character contour.
[0003] The second category is the fixed-coordinate-based cropping method. This method does not rely on the adaptive localization capabilities of deep learning. Instead, it pre-determines a set of fixed pixel coordinates as the cropping window on a rear-end image under standard parking conditions through mechanical calibration or manual teaching. During production line operation, the system directly crops a rectangular region of interest (ROI) from the panoramic image based on these fixed coordinates. The ROI image is then scaled to a fixed size and fed into a two-stage defect classification network or character recognition network for further processing. This method decouples spatial localization from content recognition, but the coordinate parameters of the cropping window remain unchanged once calibrated, making dynamic adjustment based on the vehicle's actual parking position impossible.
[0004] In addition, some manufacturers have also attempted to use traditional digital image processing techniques for character localization, such as template matching, edge detection, threshold segmentation, or morphological operations to extract character regions, and then connecting them to an optical character recognition (OCR) engine to complete character decoding. However, such methods rely on manually designed low-level feature operators, and their generalization ability and robustness are relatively limited in industrial scenarios such as complex lighting changes, multi-model mixed production lines, and high-gloss metallic paint reflections.
[0005] When the above-mentioned existing technical solutions were deployed on actual automobile mass production lines, the inventors discovered that they had the following insurmountable structural defects: First, the fixed-coordinate cropping process suffers from poor pose adaptability, leading to incomplete edge trimming of characters. Both fixed-coordinate cropping schemes and single-stage target detection schemes assume a "standard parking position" or "close to the outer contour." However, in actual production, vehicles exhibit uncontrollable random deviations in their parking positions on conveyor belts or lifts (including lateral translation, yaw rotation, and pitch changes). Fixed-coordinate cropping schemes cannot compensate for this pose deviation, resulting in a systematic offset between the cropping window and the actual spatial distribution of characters. While single-stage detection schemes possess some adaptive capability, their output bounding boxes typically adhere strictly to the character's outer contour, lacking necessary contextual redundancy at edge characters. Both processes are prone to cutting off a corner or even an entire column of characters when directly cropping the region of interest, resulting in incomplete character contours and broken strokes. This edge defect will further lead to systematic false alarms in the subsequent character presence / absence determination process. Moreover, with the increase in vehicle models and the accumulation of parking space deviations, the false alarm rate shows a significant upward trend, seriously affecting the production line inspection cycle and first-pass yield.
[0006] Secondly, the strong reflectivity of the car body and the complex background texture cannot be effectively separated, resulting in insufficient noise resistance in the recognition process. The surface of a car tailgate is often covered with high-gloss metallic paint, and combined with structural features such as chrome lettering, license plate frames, reinforcing ribs, and bumper seams, it easily creates specular reflections and highlights of varying directions and intensities under production line lighting conditions. Existing one-stage large-image recognition processes include characters and background in the same receptive field for global feature extraction, and fixed-cropping processes also include highlight areas and character areas in the ROI. Neither of these methods can effectively isolate non-character features from the character itself in the spatial domain. The direct consequence is that the recognition model misjudges highlights and rib shadows as character strokes, or superimposes a large number of false edges on the character edge contours, severely reducing the signal-to-noise ratio of the recognition process and becoming one of the main causes of character misidentification and missed identification.
[0007] Third, inconsistent aspect ratios lead to character stretching distortion, which in turn causes misalignment in character arrangement. When characters are attached to the tailgate of a vehicle, slight pitch and lateral offsets are unavoidable during the installation phase. Furthermore, the character combinations for different vehicle models exhibit significant differences in aspect ratio. Existing fixed-cutting or direct scaling processes typically feed regions of interest with arbitrary aspect ratios into a uniform scaling module to conform to the fixed input dimensions of the subsequent classification network. This process generates significant non-uniform stretching along the long side, causing a relative drift in the horizontal geometric center point of the characters. If subsequent inspection processes use the horizontal geometric center of each character for sorting and comparison, the stretched center point sequence will be severely misaligned with the actual character attachment order, directly causing missed detection of critical defects such as misplaced or reversed characters, posing a significant risk to the quality of the finished product.
[0008] In summary, existing technical solutions have structural shortcomings in areas such as adaptability to large posture deviations, suppression of complex backgrounds with strong reflections, cross-vehicle aspect ratio compatibility, and robustness for continuous operation at the production line level. These shortcomings make it difficult to simultaneously meet the stringent requirements of character detection accuracy, cycle time efficiency, and flexible adaptation across multiple vehicle models in mass automotive manufacturing. Therefore, there is an urgent need for a vehicle character detection solution that utilizes multi-stage process collaboration and can simultaneously perform adaptive correction and noise stripping in both the spatial and feature domains to systematically address the aforementioned technical problems. Summary of the Invention
[0009] Based on this, the purpose of this application is to provide a method, medium, and device for quality inspection of brand logos based on the characters of a whole vehicle, so as to solve at least one of the technical problems mentioned in the background art above.
[0010] Firstly, this application provides a method for quality inspection of brand logos based on the characters of a complete vehicle, including: Capture a panoramic image of the rear of the vehicle, identify the current vehicle model, and obtain the character sequence template of the current vehicle model; Input the panoramic image of the rear of the vehicle into the constructed and trained instance segmentation model to obtain several character instance region maps, as well as their character categories, instance confidence, bounding boxes, and instance masks; Based on character category and instance confidence, the region map of each character instance is filtered to obtain several candidate character instances; Based on the distance between the bounding box of each candidate character instance and the instance mask, as well as the target safety margin, the instance mask is adaptively extended to obtain a standardized feature map. Extract individual characters from each standardized feature map and match them according to the character sequence template of the corresponding vehicle model to obtain the quality inspection results.
[0011] Furthermore, the instance segmentation model comprises an input layer, a feature extraction layer, a multi-task inference layer, and an output layer connected in sequence: The input layer is used to receive panoramic images of the rear of the vehicle. The feature extraction layer is used to extract multi-scale features from the panoramic image of the rear of the vehicle and fuse them to obtain a multi-scale shared feature map. The multi-task inference layer includes a detection branch and an instance mask branch, which are used to segment the multi-scale shared feature map to obtain several character instance region maps. The character instance region maps are then input into the detection branch and the instance mask branch in parallel for collaborative inference to obtain the character category, instance confidence, bounding box and instance mask of each character instance region map. The output layer is used to output the region map of each character instance, as well as its character category, instance confidence, bounding box, and instance mask.
[0012] Furthermore, the multi-task inference layer includes: The region partitioning unit is used to divide the multi-scale shared feature map into several character instance region maps; The detection branch, connected to the region segmentation unit, includes a category recognition unit, a confidence calculation unit, and a bounding box calculation unit arranged in parallel. The category recognition unit is used to predict the category of the character instance region map and output the character category identifier. The confidence calculation unit is used to calculate the probability that a character instance region map belongs to the corresponding character category and outputs the instance confidence score. The bounding box calculation unit is used to predict the geometric extent of the character instance region map in the model input coordinate system and outputs the vertex coordinates and side length parameters of the bounding box. The instance mask branch, connected to the region segmentation unit, is used to extract the contours of the character instance region map and perform polygon approximation fitting, outputting the instance mask.
[0013] Further, the instance mask branch includes: The contour extraction unit is used to extract the sequence of character outer contour points based on the character instance region map. The mask generation unit, connected to the contour extraction unit, is used to perform polygon approximation fitting on the sequence of character outer contour points. It iteratively compresses redundant contour points by setting a distance threshold to generate an instance mask.
[0014] Furthermore, the steps of filtering each character instance region map based on character category and instance confidence to obtain several candidate character instances include: Get the set of character categories contained in the current vehicle model; Determine whether the character category corresponding to each character instance region map belongs to the character category set. If yes, retain the corresponding character instance region map; otherwise, remove the corresponding character instance region map to obtain several pre-selected character instance region maps. Determine whether the confidence level of each pre-selected character instance region map is greater than the set confidence level threshold. If so, retain the corresponding pre-selected character instance region map; otherwise, remove the corresponding pre-selected character instance region map to obtain several candidate character instance region maps.
[0015] Furthermore, the step of adaptively extending the boundary of the instance mask to obtain a standardized feature map based on the distance between the bounding box of each candidate character instance and the instance mask, and the target safety margin, includes: Extract the valid foreground contour of the instance mask and fill the holes inside the contour to form a closed foreground mask; Determine the boundary extreme points of the closed foreground mask in the set direction to obtain the actual mask boundaries of the target in each direction, so as to obtain the distance between the bounding box of each candidate character instance and the instance mask; Determine the base expansion in each direction based on the width, height, mask area, and target safety margin of the outer frame; Based on the basic extension in each direction, construct the corresponding morphological structural elements, perform directional extension operations on the closed foreground mask, and obtain the extended instance mask. Obtain the extended bounding box of the extended instance mask and truncate it according to the boundary of the character instance region map to obtain the standardized feature map.
[0016] Furthermore, after obtaining the standardized feature map, the process also includes: Perform pixel-level inversion on the expanded instance mask to generate a non-label mask; By using non-label masks as mask channels, the pixel features of non-label background regions are forced to be set to zero-value background, resulting in a high signal-to-noise ratio feature map. Based on the extended instance mask, a source point set and a target point set are constructed. The high signal-to-noise ratio feature map is then subjected to perspective geometric transformation based on the source point set and the target point set to obtain the corrected feature map. Perform a whitespace filling operation of a set size on the corrected feature map, and extend the pixels in the short side of the corrected feature map to be equal to the long side to obtain the optimized standardized feature map.
[0017] Further steps include extracting individual characters from each standardized feature map and matching them with the character sequence template of the corresponding vehicle model to obtain the quality inspection result, including: Each standardized feature map is sequentially input into the trained character extraction model to obtain the independent characters in each standardized feature map; The current character sequence is determined based on the coordinates of the feature points of each individual character; Obtain the overlap between the current character sequence and the character sequence template of the corresponding vehicle model, and determine whether it is greater than the overlap threshold. If it is, the quality is deemed acceptable; otherwise, the quality is deemed unacceptable, and the quality inspection is completed.
[0018] Secondly, this application also provides a computer storage medium storing executable program code; the executable program code is used to execute the brand identification quality detection method based on whole vehicle characters as described in any one of the first aspects.
[0019] Thirdly, this application also provides a terminal device, including a memory and a processor; the memory stores program code executable by the processor; the program code is used to execute the brand identification quality detection method based on whole vehicle characters as described in any one of the first aspects.
[0020] This application provides a method, medium, and device for quality inspection of brand logos based on vehicle characters. The method involves acquiring a panoramic image of the rear of the vehicle, identifying the current vehicle model, and obtaining a character sequence template for that model. The panoramic image is then input into a pre-built and trained instance segmentation model to obtain several character instance region maps, along with their character categories, instance confidence scores, bounding boxes, and instance masks. Each character instance region map is filtered based on its character category and instance confidence score to obtain several candidate character instances. Based on the distance between the bounding boxes and instance masks of each candidate character instance, and the target safety margin, the instance masks are adaptively extended to obtain standardized feature maps. Independent characters are extracted from each standardized feature map and matched against the corresponding vehicle model's character sequence template to obtain the quality inspection result. This provides a vehicle character detection scheme that utilizes a multi-stage collaborative process to simultaneously perform adaptive correction and noise stripping in both the spatial and feature domains. Attached Figure Description
[0021] Figure 1 This is a flowchart of an embodiment of the brand logo quality inspection method based on vehicle characters according to the present invention; Figure 2 This is a schematic diagram of the segmentation model structure of the brand logo quality detection method based on whole vehicle characters according to the present invention. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0023] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., these directional indications are only used to explain the relative positional relationships and movement of the components in a specific posture. If the specific posture changes, the directional indications will also change accordingly. Furthermore, if the embodiments of the present invention involve descriptions such as "first," "second," "S1," "S2," "step one," "step two," etc., these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance, or implicitly indicating the number of technical features indicated or the execution order of the method. Those skilled in the art will understand that anything that does not violate the inventive concept should be included within the scope of protection of the present invention.
[0024] like Figure 1 As shown, this invention provides a method for quality inspection of brand logos based on vehicle characters, including: S1: Acquire a panoramic image of the rear of the vehicle, identify the current vehicle model, and obtain the character sequence template of the current vehicle model; Specifically, optional but not limited to deploying high-resolution wide-angle / panoramic imaging equipment at the vehicle assembly line or inspection station, a one-time panoramic image of the rear of the vehicle is captured. The vehicle model identification and measurement point identification are obtained from the production line control system, vehicle manufacturing execution system, barcode scanning equipment, or upper-level inspection system to identify the current vehicle model. A pre-stored or preset character sequence template database is then called to obtain the standard character sequence template for that vehicle model. By using panoramic image capture of the rear of the vehicle instead of local close-up shooting, a complete record of the brand identification area and its surrounding assembly environment at the rear of the vehicle is achieved. This avoids problems such as character truncation, edge loss, or loss of relative position information caused by insufficient field of view, significantly improving the global context integrity of subsequent character positioning and quality assessment. Furthermore, by introducing a vehicle model recognition step as a pre-trigger condition for template calling, a dynamic mapping mechanism of "vehicle model-template" is established. This allows the inspection system to adaptively load the corresponding standard reference template according to the differences in character configuration of different vehicle models (such as character content, character category, arrangement, and font specifications), avoiding the risk of adaptation failure and misjudgment of a single general template in multi-vehicle mixed-line production scenarios.
[0025] S2: Input the panoramic image of the rear of the vehicle into the constructed and trained instance segmentation model to obtain several character instance region maps, as well as their character categories, instance confidence, bounding boxes and instance masks; Specifically, since the number of brand identifiers may vary across different car models, regions with a higher number of characters can be selected as the same character instance region map. This map acquires multi-dimensional information such as character category, instance confidence, bounding box, and instance mask. Character category provides semantic identity, instance confidence quantifies the determinism of model inference, the bounding box provides the macroscopic geometric occupancy of the character in the image coordinate system, and the instance mask provides pixel-level fine contour representation. These four elements work together to provide a complete, consistent, and mutually verified information foundation for subsequent filtering, extension, and matching steps, effectively improving the input quality and decision reliability of subsequent processing steps. Preferably, since the character instance region only occupies a small portion of the parking space panoramic image, a priori region of interest (ROI) for each car model can be pre-configured. Then, before inputting the instance segmentation model, the parking space panoramic image is pre-segmented using the priori ROI to reduce the amount of data processing in subsequent steps.
[0026] In a preferred embodiment, such as Figure 2 As shown, the instance segmentation model comprises an input layer, a feature extraction layer, a multi-task inference layer, and an output layer connected in sequence: The input layer is used to receive panoramic images of the rear of the vehicle. The feature extraction layer is used to extract multi-scale features from the panoramic image of the rear of the vehicle and fuse them to obtain a multi-scale shared feature map. The multi-task inference layer includes a detection branch and an instance mask branch, which are used to segment the multi-scale shared feature map to obtain several character instance region maps. The character instance region maps are then input into the detection branch and the instance mask branch in parallel for collaborative inference to obtain the character category, instance confidence, bounding box and instance mask of each character instance region map. The output layer is used to output the region map of each character instance, as well as its character category, instance confidence, bounding box, and instance mask.
[0027] Specifically, the process can optionally, but is not limited to, receiving a panoramic image of the rear of the vehicle through a sequentially connected input layer, extracting and fusing multi-scale features through a feature extraction layer to obtain a multi-scale shared feature map, and then performing parallel collaborative inference on the segmented character instance region map through the detection branch and instance mask branch in the multi-task inference layer. Finally, the output layer outputs the character instance region map along with its character category, instance confidence, bounding box, and instance mask. By adopting a modular cascaded architecture of input layer-feature extraction layer-multi-task inference layer-output layer, the process achieves layered decoupling of the panoramic image of the rear of the vehicle from raw pixels to structured instance information, avoiding gradient conflicts and weakened feature representation caused by a single-layer network simultaneously handling feature extraction and multi-task inference. Through the deep fusion of multi-scale features by the feature extraction layer, the model can simultaneously capture the local stroke details of characters and... The global layout significantly enhances the perception capability of subsequent segmentation and detection tasks for multi-scale character targets. Through parallel collaborative reasoning of the detection branch and instance mask branch in the multi-task inference layer, the synchronous generation and mutual verification of character category, confidence, bounding box, and instance mask are achieved, avoiding the risk of subsequent failure caused by the accumulation of errors in the previous stage in the step-by-step serial processing. The standardized output of multi-dimensional instance information by the output layer provides a unified data interface and information carrier for subsequent filtering, extension, and matching steps. Through the organic combination of modular network architecture and multi-task parallel reasoning, an instance segmentation model with both feature reuse efficiency and task collaboration accuracy is constructed, providing end-to-end deep learning support for high-confidence extraction of character instances and refined mask generation, effectively improving the robustness and generalization ability of brand logo detection in complex vehicle rear scenarios.
[0028] In a preferred embodiment, the multi-task inference layer includes: The region partitioning unit is used to divide the multi-scale shared feature map into several character instance region maps; The detection branch, connected to the region segmentation unit, includes a category recognition unit, a confidence calculation unit, and a bounding box calculation unit arranged in parallel. The category recognition unit is used to predict the category of the character instance region map and output the character category identifier. The confidence calculation unit is used to calculate the probability that a character instance region map belongs to the corresponding character category and outputs the instance confidence score. The bounding box calculation unit is used to predict the geometric extent of the character instance region map in the model input coordinate system and outputs the vertex coordinates and side length parameters of the bounding box. The instance mask branch, connected to the region segmentation unit, is used to extract the contours of the character instance region map and perform polygon approximation fitting, outputting the instance mask.
[0029] Specifically, optional but not limited to dividing the multi-scale shared feature map into several character instance region maps using a region segmentation unit, and then inputting each character instance region map in parallel into the detection branch and the instance mask branch, the detection branch outputs the character category identifier, instance confidence, and vertex coordinates and side length parameters of the bounding box through parallel class recognition unit, confidence calculation unit, and bounding box calculation unit, respectively. The instance mask branch outputs the instance mask. By segmenting the multi-scale shared feature map into regions through the region segmentation unit, the centralized extraction of candidate regions for character instances and the decoupled input of subsequent branches are achieved, avoiding background noise interference and computational redundancy caused by full-image-level inference. By setting up the three units of class recognition, confidence calculation, and bounding box calculation in parallel in the detection branch, the semantic and geometric attributes of character instances are estimated in parallel, which significantly improves the information throughput efficiency of the detection branch. Regarding inference speed, the instance mask branch performs independent contour-level parsing of the character instance region map, forming semantic-geometric complementarity with the detection branch. This allows the instance mask to freely approximate the true character contour without being constrained by the accuracy of the detection box, significantly improving the fineness of the mask boundary. By inputting the character instance region map into the two branches in parallel instead of serially, the synchronous generation and mutual constraint of detection information and mask information are achieved, avoiding the error propagation problem of subsequent segmentation inaccuracies caused by the positioning deviation of the previous stage in single-branch sequential inference. By synchronously outputting four-dimensional information of semantic category, confidence probability, geometric bounding box and pixel mask, a multi-attribute three-dimensional description system of character instances is constructed. This provides a complete and consistent input foundation for subsequent category-based and confidence-based filtering and extension operations based on bounding box and mask, significantly improving the usability and decision support capability of instance segmentation results in downstream quality inspection tasks.
[0030] In a preferred embodiment, the instance mask branch includes: The contour extraction unit is used to extract the sequence of character outer contour points based on the character instance region map. The mask generation unit, connected to the contour extraction unit, is used to perform polygon approximation fitting on the sequence of character outer contour points. It iteratively compresses redundant contour points by setting a distance threshold to generate an instance mask.
[0031] Specifically, optional but not limited to extracting the character outer contour point sequence from the character instance region map using the contour extraction unit, followed by the mask generation unit performing polygon approximation fitting on the character outer contour point sequence, and iteratively compressing redundant contour points by setting a distance threshold to generate an instance mask; the extraction of the outer contour point sequence from the character instance region map by the contour extraction unit realizes the structured transformation from a discrete set of region pixels to an ordered contour boundary, providing a topologically continuous geometric basis for subsequent mask generation; the polygon approximation fitting of the contour point sequence by the mask generation unit, while preserving the key morphological features of the character, discretizes the continuous contour into a finite set of vertices, significantly reducing the storage overhead and subsequent processing complexity of the mask data; iteratively compressing redundant contour points by setting a distance threshold... The system differentiates between smooth and detailed contour segments, filtering out redundant points introduced by image noise or segmentation glitch while retaining key vertices at character stroke transitions, significantly improving the mask's accuracy in approximating the true geometric shape of the character. By replacing pixel-by-pixel mask representation with polygon approximation fitting, the instance mask maintains boundary accuracy while possessing a clear geometric analytical expression, facilitating subsequent calculation of the distance between the bounding box and the mask, as well as performing morphological extension operations. Through a progressive mask generation mechanism of "contour extraction - polygon approximation - redundancy compression," a lightweight and high-precision instance mask representation system is constructed, providing a mask input with both geometric interpretability and computational efficiency for subsequent adaptive boundary extension, effectively suppressing the adverse effects of mask redundancy on distance measurement accuracy and extension operation stability.
[0032] In a preferred embodiment, the instance segmentation model is connected to the outputs of the detection branch and the instance mask branch, and the instance result association module is connected to the input of the output module. This module is used to associate the character category, instance confidence, bounding box, and instance mask of each character instance region map. By binding the corresponding data, the character category, instance confidence, bounding box, and instance mask of different character instance region maps can be avoided from becoming confused in subsequent processing steps.
[0033] S3: Filter the region map of each character instance based on the character category and instance confidence to obtain several candidate character instances; Specifically, when acquiring panoramic images of the rear of the vehicle, the paint on the rear of the vehicle may reflect ambient light, causing text or symbols existing in other devices or the environment to be mapped onto the rear of the vehicle. Alternatively, the manufacturing process may result in dirt on the rear of the vehicle, causing the instance segmentation model to misidentify it as a marker existing on the rear of the vehicle itself. Therefore, it is possible, but not limited to, comparing the character category corresponding to each character instance region map obtained in step S2 with the character category set of the current vehicle model, eliminating instance region maps corresponding to non-target character categories, and then comparing the instance confidence corresponding to the retained pre-selected character instance region maps with a set confidence threshold to eliminate low-reliability instances with confidence below the threshold, ultimately obtaining several candidate character instances.
[0034] In a preferred embodiment, the step of filtering each character instance region map according to character category and instance confidence to obtain several candidate character instances includes: S31: Get the set of character categories contained in the current vehicle model; S32: Determine whether the character category corresponding to each character instance region map belongs to the character category set. If yes, retain the corresponding character instance region map; otherwise, remove the corresponding character instance region map to obtain several pre-selected character instance region maps. S33: Determine whether the confidence level of each pre-selected character instance region map is greater than the set confidence level threshold. If yes, retain the corresponding pre-selected character instance region map; otherwise, remove the corresponding pre-selected character instance region map to obtain several candidate character instance region maps.
[0035] Specifically, this can be optionally, but not limited to, obtaining the set of character categories contained in the current vehicle model, and then introducing character category filtering as the first filtering mechanism. This fully utilizes prior knowledge of the vehicle model to constrain the semantic space of the characters, effectively eliminating potential environmental noise, interfering text, temporary stickers, or non-brand identifier characters in the rear background. This significantly improves the category relevance and target purity of candidate character instances. Furthermore, by prioritizing character category filtering, the semantic range of the candidate set is narrowed before confidence determination, avoiding interference from irrelevant category instances on the statistical distribution of the confidence threshold. This ensures that the confidence threshold maintains stable differentiation across the confidence distribution of the target characters. This capability significantly improves the accuracy of the second-level filtering and the robustness of threshold setting. By setting a confidence threshold to perform secondary filtering on pre-selected character instances, it achieves quantitative suppression of uncertainty in model inference, effectively eliminating low-confidence false detection instances caused by image blurring, partial occlusion, surface reflection, or unclear segmentation boundaries. This significantly improves the detection reliability of candidate character instances, thereby refining character instances through a dual-screening mechanism. This provides a low-noise, low-ambiguity, and high-reliability set of candidate character instances for subsequent adaptive boundary extension and template matching, effectively suppressing the risks of invalid computation, matching bias, and quality misjudgment introduced by category mismatch and false detection.
[0036] S4: Based on the distance between the bounding box of each candidate character instance and the instance mask, as well as the target safety margin, adaptively extend the boundary of the instance mask to obtain a standardized feature map; Specifically, the method can, but is not limited to, quantifying the degree of shrinkage / offset of the mask relative to the outer frame by calculating the boundary distance between the bounding box and the instance mask in a set direction for each candidate character instance. Then, combined with a target safety margin (which can be a set value, or a safety extension dynamically determined based on character size, mask area, or bounding box aspect ratio), adaptive boundary extension operations are performed on the instance mask. This ultimately yields a standardized feature map containing the complete character shape and with regular geometry, providing a high-fidelity, geometrically regular, and complete image input foundation for the accurate extraction and recognition of subsequent independent characters. This effectively suppresses character extraction failures and decreased recognition accuracy caused by mask shrinkage, inconsistent scales, or background interference. Preferably, the target safety margin can be, for example, 5 to 20 pixels; or, the horizontal safety extension is 5% to 10% of the bounding box width, and the vertical safety extension is 5% to 15% of the bounding box height; it can also be dynamically determined based on the instance mask area, for example, using 3% to 8% of the square root of the instance mask area as the safety extension. For example, when the outer frame size is 100×160 pixels, it can be expanded horizontally by 5-10 pixels and vertically by 8-24 pixels. It's important to note that this step is for illustrative purposes only and is not a limitation.
[0037] In a preferred embodiment, the step of adaptively extending the boundary of the instance mask to obtain a standardized feature map based on the distance between the bounding box of each candidate character instance and the instance mask, and the target safety margin, includes: S41: Extract the valid foreground contour of the instance mask and fill the holes inside the contour to form a closed foreground mask; S42: Determine the boundary extreme points of the closed foreground mask in the set direction, obtain the actual mask boundaries of the target in each direction, and obtain the distance between the bounding box of each candidate character instance and the instance mask; S43: Determine the basic expansion amount in each direction based on the width, height, mask area, and target safety margin of the outer frame; S44: Based on the basic extension in each direction, construct the corresponding morphological structural elements, perform directional extension operations on the closed foreground mask, and obtain the extended instance mask; S45: Obtain the extended bounding box of the extended instance mask and truncate it according to the boundary of the character instance region map to obtain the standardized feature map.
[0038] Specifically, this can be optionally, but is not limited to, forming a closed foreground mask by filling the internal holes of the outline, eliminating the interference of gaps or segmentation holes inside character strokes on the extraction of boundary extrema points, significantly improving the accuracy and topological integrity of mask boundary positioning; by determining the boundary extrema points in a set direction, quantifiable measurement of the distance between the bounding box and the instance mask can be achieved, providing a precise geometric basis for subsequent adaptive expansion; by comprehensively determining the basic expansion amount by combining the width and height of the bounding box, the mask area, and the safety margin, the extension range can be adaptively adjusted according to the size and shape characteristics of the character itself, avoiding the problem of excessive background intrusion on large characters and truncation of stroke details on small characters with a fixed expansion amount, significantly improving the scale adaptability and content preservation capability of the extension strategy; by constructing shape The morphological structuring element performs directional extrapolation operations, enabling fine-grained control over the differentiated expansion of the mask in different directions, facilitating directional compensation for differences in character aspect ratios. Through the truncation operation of the extended bounding box, it ensures that the standardized feature map is always constrained within the boundary of the original character instance region map, avoiding the introduction of irrelevant background regions caused by extrapolation overflow. A five-step closed-loop processing of "hole filling - boundary extremum extraction - adaptive extrapolation - directional extrapolation - boundary truncation" constructs a standardized feature map generation mechanism that balances character integrity preservation and background noise suppression. This provides a geometrically regular, content-complete, and signal-to-noise ratio-efficient image input foundation for subsequent independent character extraction and template matching, significantly improving the robustness of quality detection in character morphological variations and complex background scenarios. For example, let the width of the bounding box be W, the height be H, and the area of the instance mask be A. The basic extrapolation amount in the left and right directions can be determined as αW, and the basic extrapolation amount in the up and down directions as βH, where α and β can be 3% to 10%; or, ... As a basic expansion factor, γ can be taken as 2% to 8%.
[0039] In a preferred embodiment, after obtaining the standardized feature map, the method further includes: S46: Perform pixel-level inversion on the expanded instance mask to generate a non-label mask; S47: Using non-label masks as mask channels, the pixel features of non-label background areas are forced to be set to zero-value background, resulting in a high signal-to-noise ratio feature map. S48: Based on the extended instance mask, construct the source point set and the target point set, and perform perspective geometric transformation on the high signal-to-noise ratio feature map according to the source point set and the target point set to obtain the corrected feature map; S49: Perform a whitespace filling operation of a set size on the corrected feature map, and extend the pixels in the short side direction of the corrected feature map to be equal to the long side, to obtain the optimized standardized feature map.
[0040] Specifically, optional but not limited to generating non-character mask by pixel-level inversion and forcing the background to zero, this achieves hard segmentation of the character and background regions, and uniformly sets non-character pixel features to zero, significantly improving the target-background contrast and signal-to-noise ratio of the feature map, and avoiding interference from background texture and noise on subsequent character extraction models; by constructing source and target point sets based on the extended instance mask and performing perspective geometric transformation, this achieves inverse correction of character perspective deformation caused by shooting angle, lens distortion, or vehicle rear curved surfaces, significantly improving the regularity of character shape and geometric consistency of subsequent template matching; then, by using a white space filling operation of a set size, a standardized contextual blank area is reserved around the character, avoiding character... The feature extraction boundary truncation problem caused by edge-fitting significantly improves the processing stability of the character extraction model. By extending the pixels in the short side direction to be equal to the long side, the size normalization and shape standardization of the feature map in two-dimensional space are achieved, so that character instances with different aspect ratios can be unified into square inputs of a fixed scale, which significantly improves the input consistency between the subsequent character extraction model and the template matching process. This step constructs a complete quality enhancement process from the original instance mask to the optimized and standardized feature map, providing a high signal-to-noise ratio, geometric correction, and size-uniform image input foundation for subsequent independent character extraction and accurate template matching, effectively suppressing the decrease in recognition accuracy and matching deviation caused by perspective distortion, background interference, and size inconsistencies. For example, the contour of the extended instance mask can be optionally extracted, and polygon approximation is performed on the contour. The top left, top right, bottom right, and bottom left vertices of the fitted quadrilateral are used as the source point set in sequence. The width and height of the target rectangle are determined according to the side lengths between the source points, and the top left, top right, bottom right, and bottom left vertices of the target rectangle are used as the target point set in sequence.
[0041] S5: Extract the independent characters from each standardized feature map and match them according to the character sequence template of the corresponding vehicle model to obtain the quality inspection results.
[0042] Specifically, the process can be optionally, but is not limited to, sequentially inputting each standardized feature map into a trained character extraction model (any existing model can be used) to extract independent characters and their feature point coordinates (feature point coordinates can be the geometric center point or corner point of each character). Then, the independent characters are sorted according to their feature point coordinates to obtain the current character sequence of the current vehicle model. The current character sequence of the current vehicle model is then matched with a character sequence template to obtain the overlap ratio between the two (optionally set as the ratio of the number of characters successfully matched at the same position in the current character sequence and the character sequence template to the total number of characters. For example, if the current character sequence contains ten sequentially arranged characters, the overlap ratio is 100% if the characters at those ten positions are the same in both the current character sequence and the character sequence template, and 0% if they are not the same). This overlap ratio is then compared with a set overlap ratio threshold. If it is greater than the threshold, the quality is deemed acceptable; otherwise, the quality is deemed unacceptable, and the quality inspection is completed.
[0043] In a preferred embodiment, after extracting the independent characters from each standardized feature map, due to factors such as different car models having different versions or having multiple different types of brand logos (such as English, Chinese, Japanese, Pinyin, etc.), it is impossible to determine which brand logo the current vehicle is using during the brand logo quality inspection process. Optionally, a character mapping table can be set to first map all types of independent characters to characters of the same type as the character sequence template, and then proceed with subsequent steps such as sorting and matching. If the extracted independent character does not exist in the character mapping table and cannot be mapped, it can be directly determined that the independent character has a process defect or other problems, or the subsequent steps can be directly proceeded without mapping.
[0044] In a preferred embodiment, the step of extracting independent characters from each standardized feature map and matching them according to the character sequence template of the corresponding vehicle model to obtain the quality inspection result includes: S51: Input each standardized feature map into the trained character extraction model in sequence to obtain the independent characters in each standardized feature map; S52: Determine the current character sequence based on the feature point coordinates of each independent character; S53: Obtain the overlap between the current character sequence and the character sequence template of the corresponding vehicle model, and determine whether it is greater than the overlap threshold. If yes, the quality is deemed qualified; otherwise, the quality is deemed unqualified, and the quality inspection is completed.
[0045] Specifically, optional but not limited to using a trained character extraction model to extract individual characters from standardized feature maps, this achieves refined segmentation and single-character recognition of connected characters or tightly arranged characters, avoiding the problem of global failure due to local defects when directly matching the entire string. This significantly improves the defect location accuracy and granularity of quality inspection. Then, the current string is matched sequentially with the characters at corresponding positions in the corresponding vehicle model character sequence template to determine whether they are consistent, thereby obtaining the overlap / consistency between the current string and the corresponding vehicle model character sequence template. This transforms quality inspection into a quantifiable overlap comparison, avoiding inconsistencies and fatigue errors in subjective visual judgment, and significantly improving the objectivity and repeatability of the inspection standard. Through one-by-one matching and overlap evaluation at the independent character level, multi-point and refined diagnosis of brand logo assembly quality is achieved, making it easier to locate specific defective characters or offset positions in non-conformance judgment. This provides a high-precision, quantifiable, and fully traceable inspection method for brand logo assembly quality control before the vehicle leaves the factory, effectively suppressing the brand logo quality risk caused by subjective differences and missed detections in manual visual inspection.
[0046] For example, if the current character sequence is determined to be "A", "C", "B" based on the feature point coordinates of each individual character, and the corresponding vehicle model's character sequence template is "A", "B", "C", then based on the order of each character sequence, it can be found that the second and third characters of the current character sequence are inconsistent with the character sequence template, which may be due to process issues such as pasting errors. If the character at any position fails to match, it is determined to be of substandard quality. This method can determine the quality inspection results and also locate specific defective characters.
[0047] This invention provides a brand logo quality detection method based on whole vehicle characters. Compared with traditional experience-based judgment methods based on fixed templates, whole string recognition, or manual visual inspection, it has unique technical advantages such as strong vehicle model adaptability, detailed instance analysis, high candidate purity, deep feature standardization, and objective and quantifiable quality judgment. Specifically, these advantages include: 1. Panoramic data acquisition and vehicle model-template prior alignment enable multi-vehicle adaptive and precise template matching for brand identification detection: Traditional brand logo quality inspection methods typically employ fixed single templates or rely on manual selection of templates corresponding to specific car models. These methods are ill-suited to the complex scenarios of modern mixed-model automotive production lines with multiple models and configurations operating concurrently. This leads to template mismatches or frequent interruptions in the inspection process, severely limiting the automation level and production line compatibility of the inspection system. This invention addresses this issue by acquiring a panoramic image of the rear of the vehicle and identifying the current car model. It then dynamically obtains a character sequence template uniquely corresponding to that model, using the model identification result as a priori index for template retrieval, thus achieving automatic mapping from physical car models to digital templates. The panoramic image acquisition preserves the complete spatial context and relative positional relationships of the rear character areas, avoiding character loss or positional information loss caused by partial cropping. This panoramic acquisition and car model-template prior alignment mechanism enables the inspection system to automatically adapt to corresponding inspection standards in multi-model mixed-model production environments. It can accurately retrieve the target character sequence template without manual intervention. Even in actual production line scenarios with frequent model changes, significant differences in tailgate styling, and varied character layouts, it maintains the correctness of template matching and the continuity of the inspection process, significantly improving the production line compatibility and automation level of brand logo quality inspection.
[0048] 2. Instance segmentation and multi-attribute collaborative reasoning enable pixel-level accurate parsing of character instances and synchronous output of multi-dimensional information: Traditional character detection methods typically employ general object detection or optical character recognition (OCR) techniques, outputting only the character bounding box or the overall string recognition result. These methods cannot handle complex situations such as character overlap, stroke overlap, background interference, and surface reflections, leading to blurred character boundaries, overlapping of adjacent characters, and insufficient positioning accuracy, severely impacting the reliability of subsequent quality assessment. This invention constructs an instance segmentation model comprising an input layer, a feature extraction layer, a multi-task inference layer, and an output layer to perform pixel-level character instance parsing on panoramic images of the vehicle rear. Through multi-scale feature fusion in the feature extraction layer, it simultaneously captures local stroke details and global layout relationships of characters. Through parallel collaborative inference of the detection branch and the instance mask branch in the multi-task inference layer, it simultaneously outputs multi-dimensional attribute information such as character category, instance confidence, bounding box vertex coordinates and side length parameters, and instance mask. This instance segmentation and multi-attribute collaborative reasoning mechanism enables the model to perform pixel-level precise localization and contour extraction for each character instance in complex vehicle rear scenes. It effectively decouples the spatial aliasing of connected characters, significantly improves the precision and completeness of character instance parsing, and provides a high-fidelity, multi-dimensional structured data foundation for subsequent filtering and matching.
[0049] 3. Dual screening and candidate instance purification achieve high-purity construction of candidate character sets and effective suppression of false detection risk: Traditional character detection methods typically use a single confidence threshold for result filtering, lacking consideration of semantic constraints related to vehicle model configuration. This easily leads to misclassification of decorative text, nameplate information, or environmental glare in the rear background as brand identifiers, resulting in a large number of non-target instances mixed into the candidate set. This significantly increases the computational burden and risk of misjudgment in subsequent matching. This invention introduces the set of character categories included in the current vehicle model as a priori semantic constraint to perform an initial screening of the character categories output by instance segmentation, eliminating non-brand identifiers unrelated to the target vehicle model configuration. Then, a second filtering is performed on the pre-selected character instances by setting a confidence threshold, eliminating low-confidence false detection instances caused by segmentation ambiguity, partial occlusion, or glare. This dual screening mechanism, based on vehicle model semantic prior and model reasoning determinism, constructs a two-level filtering barrier from the semantic space to the probability space. This ensures that the final candidate character instances simultaneously satisfy both the vehicle model configuration consistency and model reasoning determinism constraints, significantly improving the purity and reliability of the candidate character set. It effectively suppresses the interference of non-target characters and low-confidence false detections on the subsequent matching stage, providing a low-noise and low-ambiguity input basis for adaptive boundary extension and template matching.
[0050] 4. Adaptive boundary extension and standardized feature map generation to achieve geometric normalization and signal-to-noise ratio optimization of character regions: Traditional character image preprocessing methods typically employ fixed-size cropping or directly using detection bounding boxes to extract character regions. These methods fail to adaptively adjust based on the actual character shape and background distribution, leading to excessive background intrusion in large character regions, stroke truncation in small character regions, or systematic deviations between mask boundaries and the actual character contours. This severely impacts the accuracy of subsequent character extraction and matching. This invention calculates the distance between the bounding box of candidate character instances and the instance mask, combines this with a target safety margin to determine the basic extension amount in each direction, and then constructs corresponding morphological structural elements to perform directional extension operations on the closed foreground mask. This achieves adaptive adjustment of the extension amplitude based on the character's size, morphological features, and the mask-bounding box gap. Furthermore, by generating a non-character mask through pixel-level inversion and forcibly setting the background to zero, the target-background contrast is significantly improved. Finally, through perspective geometric transformation and size normalization based on the extended instance mask, inverse correction of shooting angle distortion and standardization of input dimensions are achieved. This adaptive boundary extension and standardized feature map generation mechanism ensures that each input character image has the characteristics of geometric regularity, complete content, excellent signal-to-noise ratio, and uniform size. This significantly improves the adaptability of the subsequent character extraction model to complex imaging conditions and the stability of feature extraction, providing a high-fidelity and standardized image input foundation for independent character recognition and accurate template matching.
[0051] 5. Independent character extraction and template overlap matching enable refined, objective, and traceable assessment of brand identity quality: Traditional brand logo quality inspection usually relies on manual visual inspection or direct comparison of the whole string image. Manual visual inspection has inherent defects such as strong subjectivity, poor consistency, and easy fatigue and missed detection. On the other hand, whole string matching cannot locate specific defective characters. Once there is a local offset, missing or deformed, it will cause the global matching to fail. The defect diagnosis granularity is coarse and the process feedback value is low. This invention obtains independent characters by inputting standardized feature maps into a trained character extraction model. Then, it sorts these independent characters based on their feature point coordinates to obtain the current string for the current vehicle model. The current string is then matched sequentially with characters at corresponding positions in the corresponding vehicle model's character sequence template to determine consistency. This results in the overlap / consistency between the current string and the corresponding vehicle model's character sequence template. This independent character extraction and template overlap matching mechanism enables multi-point, refined diagnosis of brand logo assembly quality. It can accurately locate specific defective characters or offset positions in non-conformance judgments, significantly improving the objectivity, repeatability, and defect traceability of quality assessments. By transforming subjective visual judgment into objective consistency measurement, it effectively suppresses judgment fluctuations and missed detection risks caused by differences in manual visual inspection. This provides a high-precision, quantifiable, and fully traceable automated detection method for brand logo assembly quality control before vehicle delivery.
[0052] On the other hand, the present invention also provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned brand identification quality detection methods based on vehicle characters.
[0053] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores program code that can be executed by the processor; the program code is used to execute any of the above-mentioned brand identification quality detection methods based on vehicle characters.
[0054] For example, the program code can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the program code in the terminal device.
[0055] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the terminal device may also include input / output devices, network access devices, buses, etc.
[0056] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0057] The memory can be an internal storage unit of the terminal device, such as a hard drive or RAM. The memory can also be an external storage device of the terminal device, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory can include both internal and external storage units of the terminal device. The memory is used to store the program code and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or will be output.
[0058] The aforementioned computer storage medium and terminal equipment are created based on the aforementioned brand identification quality inspection method based on vehicle characters. Their technical functions and beneficial effects will not be elaborated here. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0059] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. A method for quality inspection of brand logos based on vehicle character sets, characterized in that, include: Capture a panoramic image of the rear of the vehicle, identify the current vehicle model, and obtain the character sequence template of the current vehicle model; Input the panoramic image of the rear of the vehicle into the constructed and trained instance segmentation model to obtain several character instance region maps, as well as their character categories, instance confidence, bounding boxes, and instance masks; Based on character category and instance confidence, the region map of each character instance is filtered to obtain several candidate character instances; Based on the distance between the bounding box of each candidate character instance and the instance mask, as well as the target safety margin, the instance mask is adaptively extended to obtain a standardized feature map. Extract individual characters from each standardized feature map and match them according to the character sequence template of the corresponding vehicle model to obtain the quality inspection results.
2. The method according to claim 1, characterized in that, The instance segmentation model consists of an input layer, a feature extraction layer, a multi-task inference layer, and an output layer connected in sequence: The input layer is used to receive panoramic images of the rear of the vehicle. The feature extraction layer is used to extract multi-scale features from the panoramic image of the rear of the vehicle and fuse them to obtain a multi-scale shared feature map. The multi-task inference layer includes a detection branch and an instance mask branch, which are used to segment the multi-scale shared feature map to obtain several character instance region maps. The character instance region maps are then input into the detection branch and the instance mask branch in parallel for collaborative inference to obtain the character category, instance confidence, bounding box and instance mask of each character instance region map. The output layer is used to output the region map of each character instance, as well as its character category, instance confidence, bounding box, and instance mask.
3. The method according to claim 2, characterized in that, The multi-task inference layer includes: The region partitioning unit is used to divide the multi-scale shared feature map into several character instance region maps; The detection branch, connected to the region segmentation unit, includes a category recognition unit, a confidence calculation unit, and a bounding box calculation unit arranged in parallel. The category recognition unit is used to predict the category of the character instance region map and output the character category identifier. The confidence calculation unit is used to calculate the probability that a character instance region map belongs to the corresponding character category and outputs the instance confidence score. The bounding box calculation unit is used to predict the geometric extent of the character instance region map in the model input coordinate system and outputs the vertex coordinates and side length parameters of the bounding box. The instance mask branch, connected to the region segmentation unit, is used to extract the contours of the character instance region map and perform polygon approximation fitting, outputting the instance mask.
4. The method according to claim 3, characterized in that, Instance mask branches include: The contour extraction unit is used to extract the sequence of character outer contour points based on the character instance region map. The mask generation unit, connected to the contour extraction unit, is used to perform polygon approximation fitting on the sequence of character outer contour points. It iteratively compresses redundant contour points by setting a distance threshold to generate an instance mask.
5. The method according to claim 1, characterized in that, The steps for filtering character instance region maps based on character category and instance confidence to obtain several candidate character instances include: Get the set of character categories contained in the current vehicle model; Determine whether the character category corresponding to each character instance region map belongs to the character category set. If yes, retain the corresponding character instance region map; otherwise, remove the corresponding character instance region map to obtain several pre-selected character instance region maps. Determine whether the confidence level of each pre-selected character instance region map is greater than the set confidence level threshold. If so, retain the corresponding pre-selected character instance region map; otherwise, remove the corresponding pre-selected character instance region map to obtain several candidate character instance region maps.
6. The method according to claim 1, characterized in that, The steps for adaptively extending the instance mask to obtain a standardized feature map based on the distance between the bounding box and the instance mask of each candidate character instance and the target safety margin include: Extract the valid foreground contour of the instance mask and fill the holes inside the contour to form a closed foreground mask; Determine the boundary extreme points of the closed foreground mask in the set direction to obtain the actual mask boundaries of the target in each direction, so as to obtain the distance between the bounding box of each candidate character instance and the instance mask; Determine the base expansion in each direction based on the width, height, mask area, and target safety margin of the outer frame; Based on the basic extension in each direction, construct the corresponding morphological structural elements, perform directional extension operations on the closed foreground mask, and obtain the extended instance mask. Obtain the extended bounding box of the extended instance mask and truncate it according to the boundary of the character instance region map to obtain the standardized feature map.
7. The method according to claim 6, characterized in that, After obtaining the standardized feature map, the following is also included: Perform pixel-level inversion on the expanded instance mask to generate a non-label mask; By using non-label masks as mask channels, the pixel features of non-label background regions are forced to be set to zero-value background, resulting in a high signal-to-noise ratio feature map. Based on the extended instance mask, a source point set and a target point set are constructed. The high signal-to-noise ratio feature map is then subjected to perspective geometric transformation based on the source point set and the target point set to obtain the corrected feature map. Perform a whitespace filling operation of a set size on the corrected feature map, and extend the pixels in the short side of the corrected feature map to be equal to the long side to obtain the optimized standardized feature map.
8. The method according to claim 1, characterized in that, The steps for extracting individual characters from each standardized feature map and matching them with the character sequence template of the corresponding vehicle model to obtain the quality inspection result include: Each standardized feature map is sequentially input into the trained character extraction model to obtain the independent characters in each standardized feature map; The current character sequence is determined based on the coordinates of the feature points of each individual character; Obtain the overlap between the current character sequence and the character sequence template of the corresponding vehicle model, and determine whether it is greater than the overlap threshold. If it is, the quality is deemed acceptable; otherwise, the quality is deemed unacceptable, and the quality inspection is completed.
9. A computer storage medium, characterized in that, It stores executable program code; the executable program code is used to execute the brand identification quality detection method based on vehicle characters as described in any one of claims 1 to 8.
10. A terminal device, characterized in that, It includes a memory and a processor; the memory stores program code that can be executed by the processor; the program code is used to execute the brand identification quality inspection method based on vehicle characters as described in any one of claims 1 to 8.
