Intelligent recognition system for recognizing dirty area
By designing an intelligent identification system including image acquisition, image processing and cleaning parameter output modules, the problems of low stain recognition efficiency and poor cleaning path planning in existing stain cleaning systems are solved, efficient and accurate stain recognition and cleaning are achieved, and the adaptability and robustness of the system are improved.
Patent Information
- Application Number
- CN202510549800.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-29
AI Technical Summary
In the existing stain cleaning system, the stain area identification efficiency is low and the cleaning path planning is poor, resulting in a long cleaning cycle, large resource consumption, and inaccurate stain identification, which is prone to misjudgment or misjudgment.
An intelligent identification system for stain area recognition is designed, including an image acquisition module, an image processing module and a cleaning parameter output module. Through multi-view global image acquisition and parallel noise reduction processing, combined with image chunking processing and Gaussian hybrid model, edge point density is dynamically adjusted, stain boundary features are extracted, and cleaning parameters are dynamically adjusted according to different material characteristics.
It significantly improves the accuracy and efficiency of stain recognition, reduces the number of cleanings and repeated operations, shortens the cleaning cycle, and achieves efficient and accurate cleaning on surfaces of different materials, improving the adaptability and robustness of the system.
Smart Images

Figure CN120070874A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and is an intelligent recognition system for stain area recognition. Background Art
[0002] In the existing stain cleaning system, there are the following technical problems: First, the cleaning efficiency is low. Due to the lack of effective stain area recognition and cleaning path planning, the existing system often needs to repeat operations multiple times during the cleaning process, resulting in a long cleaning cycle and high resource consumption. Second, the stain recognition is not accurate enough. When the existing image processing technology recognizes the stain types and boundaries, it is often interfered by factors such as environmental light and image noise, resulting in frequent misjudgment or missed judgment. In addition, the existing system has poor adaptability to different materials of the ground and cannot dynamically adjust the cleaning parameters according to the characteristics of the ground material, which affects the cleaning effect; at the same time, the technology for extracting and enhancing the edge features of stains is relatively weak, the features of the stain boundary area are not obvious, and it is difficult to accurately divide the stain area, thus affecting the determination of the cleaning range and the cleaning effect. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to address the problem in the prior art that due to the complex and uneven texture features of the stain area, the stain recognition process requires a large amount of computing power resources, resulting in low recognition efficiency, and proposes an intelligent recognition system for stain area recognition.
[0004] To achieve the above object, an intelligent recognition system for stain area recognition of the present invention includes: An image acquisition module, an image processing module, and a cleaning parameter output module; The image acquisition module is used to capture multi-view global images of the stain area and perform noise reduction and grayscale processing on the multi-view global images through parallel technology; The image processing module is used to perform image block processing on the processed multi-view global images to obtain a first image block set and a second image block set, confirm the stain types through the first image block set; establish a historical object surface texture library, and confirm the object surface where each second image block in the second image block set is located, and enhance the local edge features of the second image blocks to obtain the stain boundary; The cleaning parameter output module is used to import the stain types and the enhanced stain boundary into the cleaning parameter calculation strategy and output the cleaning parameters.
[0005] Specifically, the image acquisition module is configured with the following strategy: S11: Arrange 5 high-resolution RGB cameras at the four corners and the top of the stain area. Simultaneously turn on all the high-resolution RGB cameras to take pictures of the stain area to obtain multi-view global images. Among them, the multi-view global images include: 4 corner images and 1 top image; S12: Remove the noise in the multi-view global images through the median filtering algorithm, and at the same time convert the multi-view global images into grayscale images.
[0006] Specifically, the image processing module includes: an image block processing unit; The image block processing unit configures the following strategy: S21: Use the edge detection algorithm to identify the initial edge points of the stain area in the top image; S22: Construct a Gaussian mixture model, represent the initial edge points as a mixture of multiple Gaussian distributions, and dynamically adjust the weights of each Gaussian distribution according to the edge curvature to calculate the edge point density of each pixel point; Preferably, by dynamically adjusting the density, the density of edge points is higher in the area with larger curvature, thereby improving the image block accuracy; Preferably, the calculation strategy of the edge point density is: ;
[0007] Among them, represents the edge point density of the pixel point with coordinates ; K is the number of Gaussian distributions in the Gaussian mixture model, and k is the index of the Gaussian distribution; is the weight of the k-th Gaussian distribution, indicating the contribution ratio of the k-th Gaussian distribution in all edge point distributions; is the probability density function of the k-th Gaussian distribution, is the mean vector of the k-th Gaussian distribution; is the covariance matrix of the k-th Gaussian distribution; represents the edge curvature weight at the pixel point with coordinates ; S23: Extract the image gradient information, and determine whether to add the next pixel point to the current area according to the edge point density, image gradient information, and edge curvature to guide the direction of region growth. Traverse all pixel points to obtain the first image block;
[0008] It should be noted that by guiding the direction of region growth according to the edge point density, image gradient information, and edge curvature, the growth of each region in the image block process is more inclined to proceed along the edge or texture direction.
[0009] Preferably, determining whether to add the next pixel to the current region specifically includes: ; Among them, represents a judgment value indicating whether to add the pixel point with coordinates to the current region. When , the pixel point with coordinates is added to the current region; otherwise, it is not added; represents the gradient information of the pixel change of the pixel point with coordinates ; is the edge curvature of the pixel point with coordinates ; is the region growth judgment function; S24: Extract the edge curvature of each edge point on the edge line of the first image block, preset an edge curvature threshold, and filter out the edge points greater than the edge curvature threshold as segmentation points; S25: Construct a segmentation line fitting model, input the filtered segmentation points into the segmentation line fitting model, fit and generate a segmentation line, and divide the edge region into multiple second image blocks according to the segmentation line to form a second image block set.
[0010] Specifically, the image processing module further includes: a stain type confirmation unit; The stain type confirmation unit configures the following strategy: S31: Use the SIFT (Scale-Invariant Feature Transform) algorithm to detect key pixel points in the multi-view global image, calculate the descriptors of all key pixel points, use the nearest neighbor matching to find matching point pairs, and apply the bidirectional matching algorithm to remove incorrect matches; S32: Obtain the internal and external parameters of the camera through a calibration board, use the matching point pairs in the multi-view global image and the internal and external parameters of the camera, calculate the spatial positions of each group of matching point pairs according to the triangulation algorithm, combine the three-dimensional coordinates of all matching point pairs into point cloud data, and generate a three-dimensional surface model of the stain; S33: By extracting geometric features, texture features, and color features, compare the geometric features, texture features, and color features with the historical stain features in the historical stain dataset, calculate the similarity, select the historical stain type with the highest similarity as the alternative stain type, and output the alternative stain type and the historical cleaning record of the alternative stain type.
[0011] Specifically, the image processing module further includes: an image block enhancement unit; The image block enhancement unit includes a judgment subunit, and the judgment subunit is configured with the following strategy: S41: Based on the coordinate position of the second image block in the global image, construct a feature vector using the feature information of the surrounding pixels; S42: Construct a support vector machine classifier, and determine the environmental background of the second image block through the support vector machine classifier to determine the ground attribute, where the ground attribute includes: wood, metal, and plastic; S43: If the confidence of the support vector machine classifier is lower than the preset classification threshold, the ground attribute judgment is uncertain. Extract the texture features of a larger area around the second image block, calculate the contrast, correlation, and energy of the texture using the gray-level co-occurrence matrix, and make a judgment again; S43: Calculate the information entropy of the stain image, and at the same time calculate the gradient difference between the stain image and the surrounding background image. Preset the information entropy threshold and the gradient difference threshold. When the information entropy is less than the information entropy threshold and the gradient difference is less than the gradient difference threshold, the second image block needs to be enhanced to enhance the stain features and boundary clarity.
[0012] Specifically, the image block enhancement unit further includes an enhancement subunit, and the enhancement subunit is configured with the following strategy: S44: After determining the ground attribute of the second image block, extract the corresponding texture template from the pre-established historical object surface texture library; S45: Use the cross-correlation algorithm for texture matching; Preferably, the cross-correlation algorithm is specifically: ; where, represents the cross-correlation coefficient, w is the window size; i and j respectively represent the offsets in the horizontal and vertical directions, ; I is the second image block, represents the pixel value of the second image block at the pixel point with coordinates ; represents the pixel value of the texture template at the pixel point with coordinates ; are the means of the second image block and the texture template respectively; S46: According to the matching result, adjust the contrast and brightness of the image through the adaptive histogram equalization algorithm. In the adaptive histogram equalization algorithm, the image is divided into multiple sub-blocks, and histogram equalization is performed on each sub-block image; Preferably, the transformation function in the adaptive histogram equalization algorithm is: , where, is the transformed gray value, is the number of pixels with a gray value of q, n is the total number of pixels in the sub-block, and Q is the total number of gray values; S47: During the matching process, if a texture part similar to the stain feature is found, the local contrast enhancement algorithm is used to highlight the stain feature and suppress the interference of the background texture.
[0013] Specifically, the image block enhancement unit further includes a material compensation subunit, and the material compensation subunit is configured with a metal compensation strategy, a wood compensation strategy, and a plastic compensation strategy; The metal compensation strategy includes: by analyzing the brightness distribution of the image , using the local illumination correction algorithm, first calculating the average brightness of the local area , and then correcting the brightness of each pixel through the correction formula to compensate for the brightness difference caused by reflection, making the stain feature clearer and more distinguishable; The correction formula is: , is the corrected pixel brightness, is the expected value of the pixel brightness; It should be noted that the reflection on the metal surface will affect the recognition of the stain feature. Through the local illumination correction algorithm, the brightness difference caused by reflection can be compensated, making the stain feature clearer and more distinguishable, eliminating the influence of the reflection on the metal surface on the stain feature, and enhancing the visibility of the stain on the metal surface.
[0014] The wood compensation strategy includes: using the Gabor filter bank to filter the image to highlight the texture features related to the stain, and at the same time using morphological operations to dilate the stain boundary; Specifically, the Gabor filter is a filter with direction selectivity and frequency selectivity. Its kernel function combines the Gaussian function and the cosine function. By adjusting the filter parameters, including wavelength, direction, phase, bandwidth, and aspect ratio, the texture features in different directions and frequencies are filtered. The wood surface has directional and periodic texture features. The Gabor filter can filter the image according to these features to highlight the texture features related to the stain, effectively extract the texture features of the wood surface, and enhance the texture information related to the stain.
[0015] The plastic compensation strategy includes: adopting an image diffusion model based on partial differential equations, adapting the adjustment according to the image gradient, and enhancing the boundary of the stain area through the diffusion process.
[0016] It should be noted that the image diffusion model, based on partial differential equations, describes the diffusion process of an image over time. During the diffusion process, the smooth regions of the image diffuse faster, while the edge regions diffuse slower. According to the adsorption characteristics of plastics to stains, using this model can enhance the boundaries of the stain regions while maintaining the smoothness of the image, avoiding image distortion caused by over-enhancement, making the stain features clearer and not affecting the image quality.
[0017] Specifically, the cleaning parameter output module includes: a cleaning curve fitting unit; The cleaning curve fitting unit is configured with a cleaning parameter calculation strategy, specifically including: S51: Select the midpoint of the curve connecting the first image block and the second image block as the target point, and screen the point farthest from the target point from the points on the stain boundary in the enhanced second image block as the representative point. Traverse the set of second image blocks to obtain a set of representative points, where the total number of representative points in the set of representative points is B, and b is the representative point index; S52: Set the circular domain equation, solve for the center coordinates and radius, and calculate the sum of the squared circular domain errors of each representative point in the set of representative points with respect to the obtained circle; Preferably, in order to find the center of the circle, it is necessary to minimize the total squared distance from the representative points to the center of the circle, that is, to minimize the following objective function: , where, are the abscissa and ordinate of the representative point with index b in the set of representative points, are the center coordinates of the circle; The circular domain equation is specifically: ; where, is the sum of the x coordinates of all representative points; is the sum of the y coordinates of all representative points; is the sum of the squared x coordinates of the representative points; is the sum of the squared y coordinates of the representative points; The sum of the products of the x coordinates and y coordinates of all representative points; S is the sum of the squared x coordinates and squared y coordinates of all representative points; Solve the circular domain equation by Gaussian elimination or matrix inversion to obtain the center coordinates ; The first equation is obtained based on the minimization of The second set of equations: To account for symmetry and skewness in the distribution of points, is introduced; The formula for calculating the radius is: , where r is the radius, is the abscissa and ordinate of the representative point with index b in the set of representative points; The sum of squared errors of the circular region The calculation formula is: ; S53: Set the elliptical region equation, solve for the coordinates of the ellipse center, the major axis radius, and the minor axis radius, and calculate the sum of squared errors of the elliptical region for each representative point in the set of representative points with respect to the obtained ellipse; Preferably, the elliptical region equation is specifically: ; Wherein, is the ellipse center; The calculation formulas for the major axis radius a and the minor axis radius z are: ; The sum of squared errors of the elliptical region The calculation formula is: ; S54: Compare the sum of squared errors of the circular region with the sum of squared errors of the elliptical region. When the sum of squared errors of the circular region is less than the sum of squared errors of the elliptical region, select the obtained circular curve as the cleaning curve; otherwise, select the obtained elliptical curve as the cleaning curve.
[0018] Compared with the prior art, the technical effects of the present invention are as follows: 1. The present invention intelligently plans the cleaning curve, reduces the number of cleaning times and repetitive operations, significantly improves the cleaning efficiency, and shortens the cleaning cycle.
[0019] 2. The present invention utilizes multi-view image acquisition, image block processing, and feature extraction technologies to accurately identify the types and boundaries of stains, reduce misjudgment and missed judgment phenomena, and improve the cleaning effect.
[0020] 3. The present invention dynamically adjusts the cleaning parameters according to the characteristics of different materials, optimizes the cleaning strategy, and ensures efficient and accurate cleaning on the surfaces of different materials, improving the adaptability and robustness of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following described drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. Among them: Figure 1 is a schematic structural diagram of an intelligent recognition system for stain area recognition of the present invention; Figure 2 Schematic diagram of the structure of an image processing module according to the present invention; Figure 3 Schematic diagram of the principle of region growing according to the present invention; Figure 4 Schematic diagram of a scenario where an image processing module processes multi - perspective global images of stains according to the present invention. Detailed implementation manners
[0022] In order to make the above - mentioned objects, features and advantages of the present invention more obvious and understandable, the following will describe the detailed implementation manners of the present invention in conjunction with the accompanying drawings of the specification.
[0023] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.
[0024] Secondly, the so - called "one embodiment" or "embodiment" herein refers to a specific feature, structure or characteristic that can be included in at least one implementation manner of the present invention. The "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selectively exclusive embodiment from other embodiments.
[0025] Embodiment 1: As Figures 1 - 4 shown, an intelligent recognition system for stain area recognition according to an embodiment of the present invention, as Figure 1 shown, includes the following modules: An image acquisition module, an image processing module, and a cleaning parameter output module; The image acquisition module is used to capture multi - perspective global images of the stain area and perform noise reduction and grayscale processing on the multi - perspective global images through parallel technology; The image acquisition module is configured with the following strategy: S11: Arrange 5 high - resolution RGB cameras at the four corners and the top of the stain area, and simultaneously turn on all high - resolution RGB cameras to take pictures of the stain area to obtain multi - perspective global images, where the multi - perspective global images include: 4 top - corner images and 1 top image; S12: Remove the noise in the multi - perspective global images through a median filtering algorithm, and at the same time convert the multi - perspective global images into grayscale images.
[0026] The image processing module is used to perform image block processing on the processed multi-view global image to obtain a first image block set and a second image block set, confirm the stain types through the first image block set; establish a historical object surface texture library, and confirm the object surface where each second image block in the second image block set is located, enhance the local edge features of the second image blocks to obtain the stain boundaries; The image processing module includes: an image block processing unit; The image block processing unit configures the following strategy: S21: Use an edge detection algorithm to identify the initial edge points of the stain area in the top image; S22: Construct a Gaussian mixture model, represent the initial edge points as a mixture of multiple Gaussian distributions, and dynamically adjust the weights of each Gaussian distribution according to the edge curvature to calculate the edge point density of each pixel point; Preferably, by dynamically adjusting the density, the density of edge points is higher in areas with larger curvature, thereby improving the image block accuracy; Preferably, the calculation strategy of the edge point density is: ; Among them, represents the edge point density of the pixel point with coordinates ; K is the number of Gaussian distributions in the Gaussian mixture model, and k is the index of the Gaussian distribution; is the weight of the k-th Gaussian distribution, indicating the contribution ratio of the k-th Gaussian distribution in the distribution of all edge points; is the probability density function of the k-th Gaussian distribution, is the mean vector of the k-th Gaussian distribution; is the covariance matrix of the k-th Gaussian distribution; represents the edge curvature weight at the pixel point with coordinates ; Exemplarily, in this embodiment, , among which, is the edge curvature of the pixel point with coordinates ;
[0027] S23: Extract the image gradient information, guide the direction of region growth according to the edge point density, image gradient information and edge curvature, decide whether to add the next pixel point to the current region, traverse all pixel points, and obtain the first image block; It should be noted that by guiding the direction of region growth according to the edge point density, image gradient information, and edge curvature, the growth of each region during image segmentation is more inclined to proceed along the edge or texture direction.
[0028] Preferably, determining whether to add the next pixel to the current region specifically includes: ; Wherein, represents the judgment value for whether to add the pixel point with coordinates to the current region. When , the pixel point with coordinates is added to the current region; otherwise, it is not added. represents the gradient information of the pixel change of the pixel point with coordinates ; is the edge curvature of the pixel point with coordinates ; is the region growth judgment function; Exemplarily, in this embodiment, A, B, and C are respectively three judgment quantities in the region growth judgment function; ; Wherein, represents the dynamic threshold, which is a linear combination of the gradient information and the edge curvature. are respectively the proportion coefficients of the gradient information and the edge curvature. By adjusting the value of , the influence degree of the gradient and the curvature on the threshold can be controlled. In this way, the region growth process can be dynamically adjusted according to the local features of the image, which is more flexible and robust than the existing region growth algorithms and can handle complex stain images corresponding to more types of stain types.
[0029] S24: Extract the edge curvature of each edge point on the edge line of the first image block, preset an edge curvature threshold, and screen the edge points greater than the edge curvature threshold as segmentation points; S25: Construct a segmentation line fitting model, input the screened segmentation points into the segmentation line fitting model, fit and generate a segmentation line, and divide the edge region into multiple second image blocks according to the segmentation line to form a second image block set.
[0030] The image processing module further includes: a stain type confirmation unit; The stain type confirmation unit is configured with the following strategy: S31: Detect key pixel points in the multi-view global image using the SIFT (Scale-Invariant Feature Transform) algorithm, calculate the descriptors of all key pixel points, find the matching point pairs using nearest neighbor matching, and apply a bidirectional matching algorithm to remove incorrect matches; S32: Obtain the internal and external parameters of the camera through a calibration board. Use the matching point pairs in the multi-view global image and the internal and external parameters of the camera to calculate the spatial positions of each group of matching point pairs according to the triangulation algorithm. Combine the three-dimensional coordinates of all matching point pairs into point cloud data to generate a three-dimensional surface model of the stain; S33: By extracting geometric features, texture features, and color features, compare the geometric features, texture features, and color features with the historical stain features in the historical stain dataset, calculate the similarity, select the historical stain type with the highest similarity as the alternative stain type, and output the alternative stain type and the historical cleaning record of the alternative stain type.
[0031] The image processing module further includes: an image block enhancement unit; The image block enhancement unit includes a judgment sub-unit, and the judgment sub-unit is configured with the following strategy: S41: Based on the coordinate position of the second image block in the global image, construct a feature vector using the feature information of the surrounding pixels; S42: Construct a support vector machine classifier, and determine the ground property by judging the environment background where the second image block is located through the support vector machine classifier. The ground property includes: wood, metal, and plastic; S43: If the confidence level of the support vector machine classifier is lower than the preset classification threshold, the judgment of the ground property is uncertain. Extract the texture features of a larger area around the second image block, calculate the contrast, correlation, and energy of the texture using the gray-level co-occurrence matrix, and make a judgment again; S43: Calculate the information entropy of the stain image, and at the same time calculate the gradient difference between the stain image and the surrounding background image. Preset the information entropy threshold and the gradient difference threshold. When the information entropy is less than the information entropy threshold and the gradient difference is less than the gradient difference threshold, the second image block needs to be enhanced to enhance the stain features and boundary clarity.
[0032] The image block enhancement unit further includes an enhancement sub-unit, and the enhancement sub-unit is configured with the following strategy: S44: After determining the ground property where the second image block is located, extract the corresponding texture template from the pre-established historical object surface texture library; S45: Use the cross-correlation algorithm for texture matching; Preferably, the cross-correlation algorithm is specifically: ; Among them, represents the cross - correlation coefficient, w is the window size; i and j respectively represent the offsets in the horizontal and vertical directions, ; I is the second image block, represents the pixel value of the second image block at the pixel point with coordinates ; represents the pixel value of the texture template at the pixel point with coordinates ; are the means of the second image block and the texture template respectively; S46: According to the matching result, adjust the contrast and brightness of the image through the adaptive histogram equalization algorithm. In the adaptive histogram equalization algorithm, the image is divided into multiple sub - blocks, and histogram equalization is performed on each sub - block image; Preferably, the transformation function in the adaptive histogram equalization algorithm is: , where is the transformed gray - level value, is the number of pixels with gray - level q, n is the total number of pixels in the sub - block, and Q is the total number of gray - levels; S47: During the matching process, if a texture part similar to the stain feature is found, adopt the local contrast enhancement algorithm to highlight the stain feature and suppress the interference of the background texture.
[0033] Exemplarily, in this embodiment, the local contrast enhancement algorithm is specifically: , is the enhancement coefficient, is the mean value of the neighborhood pixels; are the pixels of the second image block before and after enhancement respectively; The image block enhancement unit further includes a material compensation sub - unit, and the material compensation sub - unit is configured with a metal compensation strategy, a wood compensation strategy, and a plastic compensation strategy; The metal compensation strategy includes: by analyzing the brightness distribution of the image , adopt the local illumination correction algorithm. First, calculate the average brightness of the local area , and then correct the brightness of each pixel through the correction formula to compensate for the brightness difference caused by reflection, making the stain feature more clearly distinguishable; The correction formula is: , is the corrected pixel brightness, is the expected value of the pixel brightness.
[0034] It should be noted that the reflection on the metal surface will affect the recognition of stain features. Through the local illumination correction algorithm, the brightness difference caused by reflection can be compensated, making the stain features clearer and more distinguishable, eliminating the influence of the metal surface reflection on the stain features, and enhancing the visibility of the stains on the metal surface.
[0035] The described wood compensation strategy includes: filtering the image using a Gabor filter bank to highlight the texture features related to the stains, and at the same time using morphological operations to dilate the stain boundaries. Specifically, the Gabor filter is a filter with direction selectivity and frequency selectivity. Its kernel function combines a Gaussian function and a cosine function. By adjusting the filter parameters, including wavelength, direction, phase, bandwidth, and aspect ratio, it filters the texture features in different directions and frequencies. The wood surface has directional and periodic texture features, and the Gabor filter can filter the image according to these features, highlighting the texture features related to the stains, effectively extracting the texture features of the wood surface, and enhancing the texture information related to the stains.
[0036] The described plastic compensation strategy includes: adopting an image diffusion model based on partial differential equations, adaptively adjusting according to the image gradient, and enhancing the boundaries of the stain areas through the diffusion process.
[0037] Exemplarily, in this embodiment, the image diffusion model based on partial differential equations is specifically: , where N represents the image function, which is a function of spatial coordinates and time t, describing the pixel values at each position of the image at different times; represents the partial derivative of the image function N with respect to time t, is the gradient operator, is the divergence operator, used to calculate the divergence of the vector field , which is used to control the direction and intensity of image diffusion; is the diffusion coefficient; It should be noted that the image diffusion model, based on partial differential equations, describes the diffusion process of the image over time. During the diffusion process, the smooth areas of the image diffuse faster, and the edge areas diffuse slower. According to the adsorption characteristics of plastics to stains, using this model can enhance the boundaries of the stain areas while maintaining the smoothness of the image, avoiding image distortion caused by over-enhancement, making the stain features clearer and not affecting the image quality.
[0038] The cleaning parameter output module is used to import the stain types and the enhanced stain boundaries into the cleaning parameter calculation strategy and output the cleaning parameters.
[0039] The cleaning parameter output module includes: a cleaning curve fitting unit; The cleaning curve fitting unit is configured with a cleaning parameter calculation strategy, specifically including: S51: Select the midpoint of the curve connecting the first image block and the second image block as the target point, and screen the point farthest from the target point from the points on the stain boundary in the enhanced second image block as the representative point. Traverse the set of second image blocks to obtain a set of representative points, where the total number of representative points in the set of representative points is B, and b is the representative point index; S52: Set the circular domain equation, solve the center coordinates and radius, and calculate the sum of the squared circular domain errors of each representative point in the set of representative points and the obtained circle; Preferably, in order to find the center of the circle, it is necessary to minimize the total squared distance from the representative points to the center of the circle, that is, to minimize the following objective function: , where, is the abscissa and ordinate of the representative point with index b in the set of representative points, is the center coordinate of the circle; The circular domain equation is specifically: ; where, is the sum of the x coordinates of all representative points; is the sum of the y coordinates of all representative points; is the sum of the squared x coordinates of the representative points; is the sum of the squared y coordinates of the representative points; The sum of the products of the x coordinates and y coordinates of all representative points; S is the sum of the squared x coordinates and squared y coordinates of all representative points; Solve the circular domain equation by Gaussian elimination or matrix inversion to obtain the center coordinate of the circle ; The first equation is obtained based on the minimization of , and the second set of equations: In order to consider the symmetry and inclination in the distribution of points, is introduced; The calculation formula for the radius is: , where r is the radius, is the abscissa and ordinate of the representative point with index b in the set of representative points; The sum of the squared circular domain errors is calculated as: ; S53: Set the elliptical domain equation, solve the elliptical center coordinate, major axis radius, and minor axis radius, and calculate the sum of the squared elliptical domain errors of each representative point in the set of representative points and the obtained ellipse; Preferably, the elliptical domain equation is specifically: ; Among them, is the center of the ellipse; The calculation formulas for the major axis radius a and the minor axis radius z are: ; The sum of squared errors of the elliptical domain The calculation formula is: ; S54: Compare the sum of squared errors of the circular domain with the sum of squared errors of the elliptical domain. When the sum of squared errors of the circular domain is less than the sum of squared errors of the elliptical domain, select the obtained circular curve as the cleaning curve; otherwise, select the obtained elliptical curve as the cleaning curve.
[0040] Those of ordinary skill in the art can realize that, combining the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the present invention, can be implemented by means of electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0041] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0042] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only one type, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces. The indirect coupling or communication connection of devices or units can be in an electrical, mechanical, or other form.
[0043] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0044] In addition, in each embodiment of the present invention, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0045] In the description of this specification, the descriptions with reference to terms such as "one embodiment", "example", "specific example", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.
[0046] In summary of the above embodiments, the technical effects of the present invention are as follows: 1. By intelligently planning the cleaning curve, the present invention reduces the number of cleanings and repeated operations, significantly improves the cleaning efficiency, and shortens the cleaning cycle.
[0047] 2. By using multi-view image acquisition, image block processing and feature extraction technologies, the present invention realizes the accurate identification of the types and boundaries of stains, reduces misjudgment and missed judgment phenomena, and improves the cleaning effect.
[0048] 3. According to the characteristics of different materials, the present invention dynamically adjusts the cleaning parameters, optimizes the cleaning strategy, ensures efficient and accurate cleaning on the surfaces of different materials, and improves the adaptability and robustness of the system.
[0049] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and the descriptions in the specification only illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and these changes and improvements all fall within the scope of the present invention claimed. The scope of protection claimed by the present invention is defined by the appended claims and their equivalents.
Claims
1. An intelligent identification system for stain area identification, characterized in that: The intelligent recognition system comprises: Image acquisition module, image processing module and cleaning parameter output module; The image acquisition module is used to capture a multi-view global image of the stain area, and perform noise reduction and grayscale processing on the multi-view global image through parallel technology; The image processing module is used to perform image block processing on the processed multi-view global image to obtain a first image block set and a second image block set, and to confirm the type of stains through the first image block set; to establish a historical object surface texture library, and to confirm the object surface where each second image block in the second image block set is located, and to enhance the local edge features of the second image block to obtain the stain boundary; The cleaning parameter output module is used to import the stain type and the enhanced stain boundary into the cleaning parameter calculation strategy and output the cleaning parameters.
2. The intelligent identification system for stain area identification according to claim 1, characterized in that: The image acquisition module is configured with the following strategy: S11: arranging five high-resolution RGB cameras distributed at the four corners and the top of the stain area, and simultaneously turning on all high-resolution RGB cameras to shoot the stain area to obtain a multi-view global image, wherein the multi-view global image includes: four corner images and one top image; S12: removing noise from the multi-view global image by a median filtering algorithm, and converting the multi-view global image into a grayscale image.
3. The intelligent identification system for stain area identification according to claim 2, characterized in that: The image processing module comprises: an image block processing unit; The image block processing unit is configured with the following strategy: S21: using edge detection algorithm to identify the initial edge points of the stain area in the top image; S22: Construct a Gaussian mixture model to represent the initial edge point as a mixture of multiple Gaussian distributions. According to the edge curvature, dynamically adjust the weight of each Gaussian distribution to calculate the edge point density of each pixel. S23: extracting image gradient information, guiding the direction of region growth according to edge point density, image gradient information and edge curvature, deciding whether to add the next pixel point to the current region, traversing all pixel points, and obtaining a first image block; S24: extracting the edge curvature of each edge point on the edge line of the first image block, presetting an edge curvature threshold, and selecting edge points greater than the edge curvature threshold as segmentation points; S25: constructing a segmentation line fitting model, inputting the segmentation points obtained by screening into the segmentation line fitting model, fitting and generating segmentation lines, and dividing the edge area into a plurality of second image blocks according to the segmentation lines to form a second image block set.
4. The intelligent identification system for stain area identification according to claim 3, characterized in that: The image processing module further includes: a stain type confirmation unit; The stain type confirmation unit is configured with the following strategy: S31: Use SIFT algorithm to detect key pixels in multi-view global images, calculate the descriptors of all key pixels, use nearest neighbor matching to find matching point pairs, and apply bidirectional matching algorithm to remove false matches; S32: obtaining the intrinsic parameters and extrinsic parameters of the camera through the calibration plate, using the matching point pairs in the multi-view global image and the intrinsic parameters and extrinsic parameters of the camera, calculating the spatial position of each group of matching point pairs according to a triangulation algorithm, combining the three-dimensional coordinates of all matching point pairs into point cloud data, and generating a three-dimensional surface model of the stain; S33: By extracting geometric features, texture features and color features, the geometric features, texture features and color features are compared with the historical stain features in the historical stain data set, the similarity is calculated, the historical stain type with the highest similarity is selected as the alternative stain type, and the alternative stain type and the historical cleaning record of the alternative stain type are output.
5. The intelligent identification system for stain area identification according to claim 4, characterized in that: The image processing module further includes: an image block enhancement unit; The image block enhancement unit includes a judgment subunit, and the judgment subunit is configured with the following strategy: S41: constructing a feature vector based on the coordinate position of the second image block in the global image and using feature information of surrounding pixels; S42: constructing a support vector machine classifier, and judging the environmental background of the second image block by the support vector machine classifier to determine the ground attributes, where the ground attributes include: wood, metal and plastic; S43: If the confidence of the support vector machine classifier is lower than the preset classification threshold, the ground attribute judgment is uncertain, and the texture features of a larger area around the second image block are extracted. The contrast, correlation and energy of the texture are calculated using the gray level co-occurrence matrix, and the judgment is made again; S43: Calculate the information entropy of the stain image, and simultaneously calculate the gradient difference between the stain image and the surrounding background image, preset an information entropy threshold and a gradient difference threshold, and when the information entropy is less than the information entropy threshold and the gradient difference is less than the gradient difference threshold, perform a second image block enhancement to enhance the stain features and boundary clarity.
6. The intelligent identification system for stain area identification according to claim 5, characterized in that: The image block enhancement unit further includes an enhancement subunit, and the enhancement subunit is configured with the following strategy: S44: after determining the ground property where the second image block is located, extracting a corresponding texture template from a pre-established historical object surface texture library; S45: Texture matching using cross-correlation algorithm; S46: adjusting the contrast and brightness of the image by using an adaptive histogram equalization algorithm according to the matching result, wherein the image is divided into a plurality of sub-blocks and histogram equalization is performed on each sub-block image; S47: During the matching process, if a texture part similar to the stain feature is found, a local contrast enhancement algorithm is used to highlight the stain feature.
7. The intelligent identification system for stain area identification according to claim 6, characterized in that: The image block enhancement unit further includes a material compensation subunit, wherein the material compensation subunit is configured with a metal compensation strategy, a wood compensation strategy, and a plastic compensation strategy; The metal compensation strategy includes: analyzing the brightness distribution of the image , using the local illumination correction algorithm, first calculate the average brightness of the local area , and then correct the brightness of each pixel through the correction formula; The wood compensation strategy includes: filtering the image using a Gabor filter bank and dilating the stain boundary using a morphological operation; The plastic compensation strategy includes: using an image diffusion model based on partial differential equations, adaptively adjusting according to image gradients, and enhancing the boundary of the stain area through a diffusion process.
8. The intelligent identification system for stain area identification according to claim 7, characterized in that: The cleaning parameter output module includes: a cleaning curve fitting unit; The cleaning curve fitting unit is configured with a cleaning parameter calculation strategy, specifically including: S51: Select the midpoint of the curve connecting the first image block and the second image block as the target point, select the point farthest from the target point from the points on the stain boundary in the enhanced second image block as the representative point, traverse the second image block set, and obtain a representative point set; S52: setting a circle domain equation, solving the coordinates of the circle center and the radius, and calculating the sum of squares of circle domain errors between each representative point in the representative point set and the circle obtained by solving the equation; S53: setting an ellipse domain equation, solving the ellipse center coordinates, major axis radius and minor axis radius, and calculating the sum of squares of the ellipse domain errors between each representative point in the representative point set and the ellipse obtained by the solution; S54: Compare the sum of squares of the circular domain errors with the sum of squares of the elliptical domain errors. When the sum of squares of the circular domain errors is smaller than the sum of squares of the elliptical domain errors, select the circular curve obtained by solving as the cleaning curve. Otherwise, select the elliptical curve obtained by solving as the cleaning curve.
Citation Information
Patent Citations
Ground cleaning method and device, intelligent cleaning equipment and storage medium
CN111543902A
Cleaning equipment control method and device, storage medium, controller and equipment
CN118924195A
Contamination discrimination method of cleaning object surface and cleaning method
JP2014054414A
Cited By
Cleaning application and data processing system suitable for unmanned aerial vehicle
CN120370716A
Bar cleaning path self-adaption method and system based on sensor
CN120563492A
Stain identification and detection system based on image processing
CN120689574A
Hand-held scrubber control method and system based on time sequence behavior and vision
CN121890914A
Visual system for carrier platform of grille decontamination machine and decontamination method
CN122172728A