Fabric pattern matching method and system based on color diagram and vector diagram
A matching method and vector graphics technology, applied in the field of image processing, can solve the problems of matching result matching failure, low efficiency, slow speed, etc., and achieve the effect of improving matching accuracy, reducing labor costs, and improving matching efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] refer to figure 1 , the present embodiment provides a fabric pattern matching method based on a color map and a vector diagram, comprising steps:
[0060] S1, input template graph, and template graph is preprocessed, to obtain the preprocessing template graph A (refer to figure 2 As shown, it is a fabric diagram);
[0061] S2. Input the picture to be matched, and remove the number of color channels of the picture to be matched to convert the picture to be matched into grayscale picture B;
[0062] S3. Calculate the offset angle θ of the largest circumscribed ellipse of the grayscale picture B relative to the horizontal axis, and keep the grayscale picture B horizontal through the affine transformation matrix;
[0063] S4. Randomly select the ROI region S in the gray-scale image B, crop the region S and extract the contour to obtain the contour map L;
[0064] S5. Remove the interference features in the contour map L to obtain the template map M to be matched;
[00...
Embodiment 2
[0096] The difference between this embodiment and Embodiment 1 is that
[0097] Step S6 specifically includes the following steps:
[0098] S6.1, using the 5-layer image pyramid algorithm to locate the corresponding position of the template map M to be matched on the preprocessing template map A;
[0099] S6.2. Calculate the similarity measure Sk between the first k pixels in the template graph M to be matched and the preprocessed template graph A;
[0100] S6.3. Set the matching similarities of the remaining pixels in the template map M to be matched to 1, and set the threshold Smin;
[0101] S6.4, when When , the matching ends early and the output result is a matching failure. If Then execute step S6.5;
[0102] S6.5, when k
[0103] Among them, n represents the number of pixels in the template map M to be matched, λ=(1-g·s min ) / (1-g), g represents th...
Embodiment 3
[0106] refer to Figure 5 , the present embodiment provides a fabric pattern matching system based on a color image and a vector diagram, including: a preprocessing module, a grayscale module, a correction module, an outline extraction module, an interference removal module and a matching module, wherein the grayscale module, the correction module The module, the contour extraction module, the de-interference module and the matching module are connected in sequence, and the preprocessing module is connected with the matching module;
[0107] A preprocessing module, configured to preprocess the template graph to obtain a preprocessed template graph A suitable for the size of the picture to be matched;
[0108] The grayscale module is used to remove the number of color channels of the picture to be matched to convert the picture to be matched into a grayscale picture B;
[0109] The correction module is used to calculate the offset angle θ of the largest circumscribed ellipse o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com