Image recognition method and system based on deep learning
By calculating the preprocessing coefficient of the image and selecting suitable preprocessing strategies and algorithms, the problem of low image preprocessing efficiency in the existing technology is solved, and the image quality and recognition efficiency are improved.
Patent Information
- Application Number
- CN202410859576.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the existing technology, the image preprocessing algorithm needs to be specified in advance and cannot be selected according to the image situation, resulting in limited improvement of poor quality images and low efficiency, and the use of multiple algorithms for high-quality images affects efficiency.
By calculating the preprocessing coefficients of the image, determine the corresponding preprocessing strategy, and select a suitable preprocessing algorithm, such as combining NLM and wavelet noise reduction algorithms to process poor quality images and avoid using multiple algorithms for high quality images.
It improves the efficiency and quality of image preprocessing, ensures the overall efficiency of image recognition, and takes into account the preprocessing effect and efficiency.
Smart Images

Figure CN118736381A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to an image recognition method and system based on deep learning. Background Art
[0002] In the prior art, before using deep learning technology to recognize an image, it is usually necessary to preprocess the image to improve the image quality. When preprocessing an image, only one preprocessing algorithm can be used to process the image, or two preprocessing algorithms can be used to process the image separately, and then the processing results are fused to obtain a preprocessed image. The preprocessed image is input into the deep learning model to obtain the recognition result.
[0003] However, the prior art has the disadvantage that the preprocessing algorithm used needs to be specified in advance and cannot be selected based on the image situation. As a result, it is easy for only one preprocessing algorithm to be used for images of poor quality, resulting in a high probability of limited improvement in image quality. At the same time, multiple preprocessing algorithms may be used for images of good quality, thereby affecting the efficiency of preprocessing and further affecting the overall efficiency of image recognition. Summary of the invention
[0004] The purpose of the present invention is to disclose an image recognition method and system based on deep learning, so as to solve the problem of how to select a preprocessing algorithm based on the actual situation of the image, so as to effectively improve the quality of images with poor quality while improving the overall image preprocessing efficiency.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] In a first aspect, the present invention provides an image recognition method based on deep learning, comprising:
[0007] S1, obtain the image to be recognized;
[0008] S2, calculating the preprocessing coefficients of the image to be recognized;
[0009] S3, determining a preprocessing strategy for the image to be recognized based on the preprocessing coefficient;
[0010] S4, preprocessing the image to be recognized based on the preprocessing strategy to obtain a preprocessed image;
[0011] S5, inputting the preprocessed image into a deep learning-based image recognition model for recognition.
[0012] Preferably, the calculation process of the preprocessing coefficient includes:
[0013] The first step is to grayscale the image to be recognized to obtain a grayscale image;
[0014] The second step is to obtain the calculation area in the grayscale image;
[0015] The third step is to calculate the preprocessing coefficients of the image to be recognized based on the calculation area.
[0016] Preferably, the image to be recognized is grayed to obtain a grayed image, including:
[0017] The weighted average method is used to grayscale the image to be recognized to obtain a grayscale image.
[0018] Preferably, the image to be identified is grayed using a weighted average method to obtain a grayed image, including:
[0019] Use the following formula to calculate each pixel in the image to be recognized to obtain a grayscale image:
[0020] gray b =w1×R b +w2×G b +w3×B b
[0021] gray b Represents the gray value of pixel b, R b , G b and B b They respectively represent the red component, green component and pixel value in the image corresponding to the red component of the pixel point b in the RGB color space, and w1, w2 and w3 are the first weighting coefficient, the second weighting coefficient and the third weighting coefficient respectively.
[0022] Preferably, obtaining the calculation area in the grayscale image includes:
[0023] Divide the image to be recognized into N×N regions of equal area;
[0024] Calculate the region judgment value of each region in order from near to far from the center of the image to be identified. Starting from the third region judgment value, perform the following processing:
[0025] Determine the k+1th region judgment value arejud k+1 Is it satisfied? k+1 >arejud k >arejud k-1 If so, then arejud k+1 The corresponding area is used as the calculation area, and kand arejud k-1 Respectively represent the kth and k-1th area judgment values; k is greater than or equal to 2;
[0026] If not, determine whether k is equal to N 2 If not, continue to calculate the area judgment value of the next area; if so, take the area with the largest area judgment value as the calculation area.
[0027] Preferably, the calculation formula of the area judgment value is:
[0028]
[0029] arejud k represents the kth region judgment value obtained by calculating the kth region, Uk represents the set of pixels in the kth region, nUk represents the total number of pixels in Uk, gray i Represents the grayscale value of pixel i in Uk.
[0030] Preferably, calculating the preprocessing coefficient of the image to be recognized based on the calculation area includes:
[0031] The preprocessing coefficient is calculated using the following formula:
[0032]
[0033] precoef represents the preprocessing coefficient, M1 represents the number of pixels in the calculation area whose grayscale value is greater than the mean grayscale value of the pixels in the calculation area, M2 represents the number of pixels in the image P obtained after the pixels in the calculation area are processed by the NLM algorithm, whose grayscale value is greater than the mean grayscale value of the pixels in P, ma1 represents the maximum grayscale value of the pixels in P, and m j represents the total number of pixels with grayscale value j in P, M3 represents the total number of pixels in P, ma2 represents the maximum grayscale value in the calculation area, and m k represents the number of pixels with gray value k in the calculation area, M4 represents the number of pixels in the calculation area, δ1 and δ2 represent the first weight and the second weight respectively.
[0034] Preferably, determining a preprocessing strategy for an image to be recognized based on the preprocessing coefficient includes:
[0035] If the preprocessing coefficient is greater than a preset coefficient threshold, the first preprocessing method is used as a preprocessing strategy for the image to be identified;
[0036] If the preprocessing coefficient is less than or equal to a preset coefficient threshold, the second preprocessing method is adopted as the preprocessing strategy for the image to be recognized.
[0037] Preferably, the first preprocessing method includes:
[0038] NP is used to represent the image that needs to be preprocessed. For NP, the NLM algorithm and the wavelet denoising algorithm are used to preprocess NP, respectively, to obtain images NP1 and NP2;
[0039] The formula for obtaining the preprocessed image PP is as follows:
[0040] NP b =λ×NP1 b +(1-λ)×NP2 b
[0041] NP b Represents the gray value of pixel b in image PP, NP1 b and NP2 b They respectively represent the grayscale values of the pixels in images NP1 and NP2 with the same coordinates as the pixel b in image PP, and λ represents the set acquisition coefficient, λ∈(0.2,0.8).
[0042] In a second aspect, the present invention provides an image recognition system based on deep learning, comprising an acquisition module, a calculation module, a determination module, a preprocessing module and a recognition module;
[0043] The acquisition module is used to acquire the image that needs to be recognized;
[0044] The calculation module is used to calculate the preprocessing coefficients of the image to be recognized;
[0045] The determination module is used to determine the preprocessing strategy of the image to be recognized based on the preprocessing coefficient;
[0046] The preprocessing module is used to preprocess the image to be recognized based on the preprocessing strategy to obtain a preprocessed image;
[0047] The recognition module is used to input the preprocessed image into the deep learning-based image recognition model for recognition.
[0048] Beneficial effects:
[0049] Compared with the prior art, the present invention does not use only one or two preprocessing algorithms for preprocessing the image input into the deep learning-based image recognition model for recognition, but can select the corresponding preprocessing algorithm for the image based on the actual situation of the image, and use two preprocessing algorithms for preprocessing when the image quality is poor, thereby ensuring the effect of the preprocessing. When processing an image that is already of relatively high quality, it is avoided to use two different preprocessing algorithms for preprocessing, thereby improving the processing efficiency of the image. Therefore, the present invention can achieve a better preprocessing effect while taking into account the preprocessing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0051] Figure 1 A schematic diagram of an image recognition method based on deep learning of the present invention.
[0052] Figure 2 A schematic diagram of an image recognition system based on deep learning of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] like Figure 1 As shown, the present invention provides an image recognition method based on deep learning, comprising:
[0055] S2, calculating the preprocessing coefficients of the image to be recognized;
[0056] S3, determining a preprocessing strategy for the image to be recognized based on the preprocessing coefficient;
[0057] S4, preprocessing the image to be recognized based on the preprocessing strategy to obtain a preprocessed image;
[0058] S5, inputting the preprocessed image into a deep learning-based image recognition model for recognition.
[0059] When preprocessing an image input into an image recognition model based on deep learning for recognition, the above method does not use only one or two preprocessing algorithms for preprocessing, but can select a corresponding preprocessing algorithm for the image based on the actual situation of the image. When the quality of the image is poor, two preprocessing algorithms are used for preprocessing, thereby ensuring the effect of the preprocessing. When processing an image that is already of relatively high quality, it is avoided to use two different preprocessing algorithms for preprocessing, thereby improving the processing efficiency of the image. Therefore, the present invention can achieve a better preprocessing effect while taking into account the preprocessing efficiency.
[0060] Preferably, the calculation process of the preprocessing coefficient includes:
[0061] The first step is to grayscale the image to be recognized to obtain a grayscale image;
[0062] The second step is to obtain the calculation area in the grayscale image;
[0063] The third step is to calculate the preprocessing coefficients of the image to be recognized based on the calculation area.
[0064] By obtaining the calculation area, it is possible to avoid calculating the preprocessing coefficients based on all the pixel points, thereby improving the efficiency of obtaining the preprocessing coefficients.
[0065] Preferably, the image to be recognized is grayed to obtain a grayed image, including:
[0066] The weighted average method is used to grayscale the image to be recognized to obtain a grayscale image.
[0067] Image grayscale is the process of converting a color image into a grayscale image, which is very useful for reducing data dimensions, speeding up image processing, and for certain analysis needs. In addition to the weighted average method, the maximum value method, average value method, etc. can also be used to grayscale the image to be recognized.
[0068] Maximum value method: The maximum value of the three components of R, G, and B of each pixel is used as the grayscale value of the pixel. This method is suitable for situations where you want to retain the details of the brightest part of the image.
[0069] Average value method: directly take the arithmetic average of the three components of R, G, and B of the pixel as the gray value. This method is relatively simple.
[0070] Preferably, the image to be identified is grayed using a weighted average method to obtain a grayed image, including:
[0071] Use the following formula to calculate each pixel in the image to be recognized to obtain a grayscale image:
[0072] gray b =w1×R b +w2×G b +w3×B b
[0073] gray b Represents the gray value of pixel b, R b , G b and B b They respectively represent the red component, green component and pixel value in the image corresponding to the red component of the pixel point b in the RGB color space, and w1, w2 and w3 are the first weighting coefficient, the second weighting coefficient and the third weighting coefficient respectively.
[0074] Preferably, the first weighting coefficient, the second weighting coefficient and the third weighting coefficient are 0.32, 0.56 and 0.12 respectively.
[0075] Preferably, obtaining the calculation area in the grayscale image includes:
[0076] Divide the image to be recognized into N×N regions of equal area;
[0077] Calculate the region judgment value of each region in order from near to far from the center of the image to be identified. Starting from the third region judgment value, perform the following processing:
[0078] Determine the k+1th region judgment value arejud k+1 Is it satisfied? k+1 >arejud k >arejud k-1 If so, then arejud k+1 The corresponding area is used as the calculation area, and k and arejud k-1 Respectively represent the kth and k-1th area judgment values; k is greater than or equal to 2;
[0079] If not, determine whether k is equal to N 2 If not, continue to calculate the area judgment value of the next area; if so, take the area with the largest area judgment value as the calculation area.
[0080] In the process of obtaining the calculation area, the present invention aims at a local area with certain representativeness, that is, an area carrying certain image detail information. Therefore, the present invention divides the image into multiple areas of equal area, and then calculates the area judgment value based on the distance between the area and the center of the image, thereby avoiding using the area that does not contain image details as the calculation area, which is beneficial to improving the effectiveness of the subsequent selection of the preprocessing scheme.
[0081] Specifically, during the sorting process, if the distances between multiple regions and the center of the image are the same, the regions with the same distances are randomly sorted. For example, when the distances between different regions and the center of the image are sorted in ascending order, they are 10, 15, 20, 25, and 30.
[0082] When there is only one area with a distance of 10, the area judgment value is calculated for this area first. Then, if there are three areas with a distance of 15, these three areas are randomly sorted, and the area judgment values are calculated for the three sorted areas first. Then, the area with a distance of 20 is calculated. If there are multiple areas with a distance of 20, the area coefficient is calculated according to the rules for calculating the area judgment for the area with a distance of 15.
[0083] Preferably, the calculation formula of the area judgment value is:
[0084]
[0085] arejud k represents the kth region judgment value obtained by calculating the kth region, Uk represents the set of pixels in the kth region, nUk represents the total number of pixels in Uk, gray i Represents the grayscale value of pixel i in Uk.
[0086] The region judgment value of the present invention is mainly expressed by the fluctuation of the gray value. The greater the fluctuation of the gray value, the more image details are carried in the region, which is conducive to selecting a representative calculation region.
[0087] Preferably, calculating the preprocessing coefficient of the image to be recognized based on the calculation area includes:
[0088] The preprocessing coefficient is calculated using the following formula:
[0089]
[0090] precoef represents the preprocessing coefficient, M1 represents the number of pixels in the calculation area whose grayscale value is greater than the mean grayscale value of the pixels in the calculation area, M2 represents the number of pixels in the image P obtained after the pixels in the calculation area are processed by the NLM algorithm, whose grayscale value is greater than the mean grayscale value of the pixels in P, ma1 represents the maximum grayscale value of the pixels in P, and m j represents the total number of pixels with grayscale value j in P, M3 represents the total number of pixels in P, ma2 represents the maximum grayscale value in the calculation area, and m k represents the number of pixels with gray value k in the calculation area, M4 represents the number of pixels in the calculation area, δ1 and δ2 represent the first weight and the second weight respectively.
[0091] The preprocessing coefficient of the present invention is obtained by comprehensive calculation based on the number of pixels whose pixel values change greatly after the calculation area is processed by the NLM algorithm, and the changes in the image details in the calculation area before and after the processing, so that the preprocessing coefficient can more accurately represent the changes in the calculation area before and after the NLM algorithm is processed. When the preprocessing coefficient is larger, the probability that the quality of the pixels in the calculation area is effectively improved is greater, and at this time, the quality of the original image to be recognized is worse. On the contrary, the probability that the quality of the pixels in the calculation area is effectively improved is smaller, and at this time, the quality of the original image to be recognized is higher. In this way, when the present invention selects the method of preprocessing later, it can be adaptively selected according to the preprocessing coefficient.
[0092] Preferably, the first weight is The second weight is
[0093] Preferably, determining a preprocessing strategy for an image to be recognized based on the preprocessing coefficient includes:
[0094] If the preprocessing coefficient is greater than a preset coefficient threshold, the first preprocessing method is used as a preprocessing strategy for the image to be identified;
[0095] If the preprocessing coefficient is less than or equal to a preset coefficient threshold, the second preprocessing method is adopted as the preprocessing strategy for the image to be recognized.
[0096] Preferably, the preset coefficient threshold is 0.1.
[0097] Preferably, the first preprocessing method includes:
[0098] NP is used to represent the image that needs to be preprocessed. For NP, the NLM algorithm and the wavelet denoising algorithm are used to preprocess NP, respectively, to obtain images NP1 and NP2;
[0099] The formula for obtaining the preprocessed image PP is as follows:
[0100] NP b =λ×NP1 b +(1-λ)×NP2 b
[0101] NP b Represents the gray value of pixel b in image PP, NP1 b and NP2 b They respectively represent the grayscale values of the pixels in images NP1 and NP2 with the same coordinates as the pixel b in image PP, and λ represents the set acquisition coefficient, λ∈(0.2,0.8).
[0102] By processing two denoising results in different processing domains and then fusing the processed results, the quality of the obtained pre-processed image can be significantly improved.
[0103] Wavelet denoising algorithm is a very effective denoising technology in the field of image processing, which is mainly based on the theory of wavelet transform. Wavelet transform can decompose an image into different frequency components, which makes it localized in both time and frequency dimensions, and is very suitable for analyzing and processing non-stationary signals, such as edge and texture features in images. Wavelet transform represents the signal through a series of wavelet basis functions, which are obtained by translating and scaling a mother wavelet function. In image processing, two-dimensional wavelet transform is usually used, that is, the image is decomposed horizontally, vertically and diagonally.
[0104] Wavelet denoising algorithm steps:
[0105] 1. Wavelet decomposition: First, a wavelet transform is applied to the noisy image to decompose it into different frequency subbands. This process is often called multi-resolution analysis because each level of decomposition produces a set of approximation (low frequency) and detail (high frequency) coefficients.
[0106] 2. Threshold processing: Since noise often appears in high-frequency detail coefficients, these noises can be suppressed by setting a threshold.
[0107] There are two main thresholding strategies: hard thresholding and soft thresholding.
[0108] Hard threshold: If the absolute value of the wavelet coefficient is less than the threshold, it is set to zero; otherwise it remains unchanged.
[0109] Soft threshold: If the absolute value of the wavelet coefficient is less than the threshold, it is set to zero; otherwise, the threshold is subtracted. This can smoothly remove noise and avoid the blocking effect that may be caused by the hard threshold.
[0110] 3. Wavelet reconstruction: After threshold processing, the image is reassembled using inverse wavelet transform to obtain a denoised image.
[0111] The wavelet denoising algorithm can better preserve important features of the image such as edges and textures while removing noise, thus achieving good results in both visual and quality assessment.
[0112] Preferably, the acquisition coefficient is set to 0.4.
[0113] Preferably, the second preprocessing method includes:
[0114] NP is used to represent the image that needs to be preprocessed, and the NLM algorithm is directly used to preprocess NP to obtain the preprocessed image.
[0115] Preferably, the image recognition model based on deep learning is a convolutional neural network model.
[0116] Specifically, the convolutional neural network model of the present invention includes a base layer, a pooling layer, a fully connected layer and an output layer.
[0117] Convolutional Layer:
[0118] The convolution kernel (also called filter or feature detector) slides over the image, performing element-wise multiplication and sum operations to extract local features of the image, such as edges, textures, etc.
[0119] Each convolution kernel generates a new feature map, which represents the response intensity of the image in a specific direction or feature.
[0120] Through multiple convolution kernels, the network can learn different types of features.
[0121] Pooling layer:
[0122] It is used to reduce the spatial dimension of the feature map and the amount of computation while maintaining robustness to transformation and rotation.
[0123] The most common pooling method is Max Pooling, which takes the maximum value in the adjacent area of the feature map as the output.
[0124] Activation function:
[0125] For example, the ReLU (Rectified Linear Unit) function is used to introduce nonlinearity, allowing the network to learn more complex features.
[0126] Fully connected layer:
[0127] After feature extraction, there are usually several fully connected layers to integrate the previously extracted features for the final classification task.
[0128] Each neuron in the fully connected layer is connected to all neurons in the previous layer and is responsible for mapping features to categories.
[0129] Output layer:
[0130] The output layer can be a softmax function according to the task requirements, which is used for multi-classification problems to convert the output of the previous layer into the probability distribution of each category.
[0131] Back Propagation and Optimization:
[0132] By comparing the predicted results with the true labels, a loss function (such as cross entropy loss) is calculated.
[0133] The process of updating network parameters using gradient descent or other optimization algorithms to reduce the loss function value is called backpropagation.
[0134] Training and validation:
[0135] The network will iteratively learn on the training set, and use the validation set to evaluate performance and prevent overfitting.
[0136] Over many iterations, the network gradually learns to recognize specific patterns and objects in images.
[0137] Through the above process, CNN can automatically learn and extract useful features from the original image, and recognize and classify the image based on these features.
[0138] like Figure 2 As shown, the present invention provides an image recognition system based on deep learning, including an acquisition module, a calculation module, a determination module, a preprocessing module and a recognition module;
[0139] The acquisition module is used to acquire the image that needs to be recognized;
[0140] The calculation module is used to calculate the preprocessing coefficients of the image to be recognized;
[0141] The determination module is used to determine the preprocessing strategy of the image to be recognized based on the preprocessing coefficient;
[0142] The preprocessing module is used to preprocess the image to be recognized based on the preprocessing strategy to obtain a preprocessed image;
[0143] The recognition module is used to input the preprocessed image into the deep learning-based image recognition model for recognition.
[0144] The basic principles and main features of the present invention and the advantages of the present invention are shown and described above. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention; therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is limited by the attached claims rather than the above description. Therefore, it is intended to include all changes within the meaning and scope of the equivalent elements of the claims in the present invention, and any figure marks in the claims should not be regarded as limiting the claims involved.
[0145] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. An image recognition method based on deep learning, characterized in that: include: S1, obtain the image to be recognized; S2, calculating the preprocessing coefficients of the image to be recognized; S3, determining a preprocessing strategy for the image to be recognized based on the preprocessing coefficient; S4, preprocessing the image to be recognized based on the preprocessing strategy to obtain a preprocessed image; S5, inputting the preprocessed image into a deep learning-based image recognition model for recognition.
2. The image recognition method based on deep learning according to claim 1, characterized in that: The calculation process of the preprocessing coefficient includes: The first step is to grayscale the image to be recognized to obtain a grayscale image; The second step is to obtain the calculation area in the grayscale image; The third step is to calculate the preprocessing coefficients of the image to be recognized based on the calculation area.
3. The image recognition method based on deep learning according to claim 2, characterized in that: Grayscale the image to be recognized to obtain a grayscale image, including: The weighted average method is used to grayscale the image to be recognized to obtain a grayscale image.
4. The image recognition method based on deep learning according to claim 3, characterized in that: Use the weighted average method to grayscale the image to be recognized to obtain a grayscale image, including: Use the following formula to calculate each pixel in the image to be recognized to obtain a grayscale image: gray b =w1×R b +w2×G b +w3×B b gray b Represents the gray value of pixel b, R b , G b and B b They respectively represent the red component, green component and pixel value in the image corresponding to the red component of the pixel point b in the RGB color space, and w1, w2 and w3 are the first weighting coefficient, the second weighting coefficient and the third weighting coefficient respectively.
5. The image recognition method based on deep learning according to claim 2, characterized in that: Get the calculation area in the grayscale image, including: Divide the image to be recognized into N×N regions of equal area; Calculate the region judgment value of each region in order from near to far from the center of the image to be identified. Starting from the third region judgment value, perform the following processing: Determine the k+1th region judgment value arejud k+1 Is it satisfied? k+1 >arejud k >arejud k-1 If so, then arejud k+1 The corresponding area is used as the calculation area, and k and arejud k-1 Respectively represent the kth and k-1th area judgment values; k is greater than or equal to 2; If not, determine whether k is equal to N 2 If not, continue to calculate the area judgment value of the next area; if so, take the area with the largest area judgment value as the calculation area.
6. The image recognition method based on deep learning according to claim 5, characterized in that: The calculation formula of the area judgment value is: arejud k represents the kth region judgment value obtained by calculating the kth region, Uk represents the set of pixels in the kth region, nUk represents the total number of pixels in Uk, and grayi represents the gray value of pixel i in Uk.
7. The image recognition method based on deep learning according to claim 5, characterized in that: The preprocessing coefficients of the image to be recognized are calculated based on the calculation area, including: The preprocessing coefficient is calculated using the following formula: precoef represents the preprocessing coefficient, M1 represents the number of pixels in the calculation area whose grayscale value is greater than the mean grayscale value of the pixels in the calculation area, M2 represents the number of pixels in the image P obtained after the pixels in the calculation area are processed by the NLM algorithm, whose grayscale value is greater than the mean grayscale value of the pixels in P, ma1 represents the maximum grayscale value of the pixels in P, and m j represents the total number of pixels with grayscale value j in P, M3 represents the total number of pixels in P, ma2 represents the maximum grayscale value in the calculation area, and m k represents the number of pixels with gray value k in the calculation area, M4 represents the number of pixels in the calculation area, δ1 and δ2 represent the first weight and the second weight respectively.
8. The image recognition method based on deep learning according to claim 1, characterized in that: The preprocessing strategy of the image to be recognized is determined based on the preprocessing coefficient, including: If the preprocessing coefficient is greater than a preset coefficient threshold, the first preprocessing method is used as a preprocessing strategy for the image to be identified; If the preprocessing coefficient is less than or equal to a preset coefficient threshold, the second preprocessing method is adopted as the preprocessing strategy for the image to be recognized.
9. The image recognition method based on deep learning according to claim 8, characterized in that: The first pre-processing method includes: NP is used to represent the image that needs to be preprocessed. For NP, the NLM algorithm and the wavelet denoising algorithm are used to preprocess NP, respectively, to obtain images NP1 and NP2; The formula for obtaining the preprocessed image PP is as follows: NP b =λ×NP1 b +(1-λ)×NP2 b NP b Represents the gray value of pixel b in image PP, NP1 b and NP2 b They respectively represent the grayscale values of the pixels in images NP1 and NP2 with the same coordinates as the pixel b in image PP, and λ represents the set acquisition coefficient, λ∈(0.2,0.8).
10. An image recognition system based on deep learning, characterized in that: It includes an acquisition module, a calculation module, a determination module, a preprocessing module and an identification module; The acquisition module is used to acquire the image that needs to be recognized; The calculation module is used to calculate the preprocessing coefficients of the image to be recognized; The determination module is used to determine the preprocessing strategy of the image to be recognized based on the preprocessing coefficient; The preprocessing module is used to preprocess the image to be recognized based on the preprocessing strategy to obtain a preprocessed image; The recognition module is used to input the preprocessed image into the deep learning-based image recognition model for recognition.
Citation Information
Patent Citations
Remote sensing image target identification method based on neural network
CN114898210A
Real-time medical image recognition system using deep learning
DE202024100887U1
Image recognition method, storage medium and computer device
WO2019218835A1
Image recognition method and system based on inventory counting of biological assets in shadow area
WO2024119824A1
Cited By
MRI medical image correction method and system based on convolutional neural network, and computer readable storage medium
CN119963681A
