- Define the CNN layers using functions like 'convolution2dLayer'
- Set options using 'trainingOptions' function
- Train the network using 'trainNetwork' function
- Use 'classify' function to use the trained network on new Images.
Traitement d'image Cheminée Industrielle
2 views (last 30 days)
Show older comments
Hello,
if anyone can help me on this subject
I'm at engineering school and I'm working on a project where we have to determine the condition of an industrial chimney (presence of rust/cracks). To do this, we capture the chimney and then process the image to determine whether the section photographed has any defects. I tried a first code with different tools:
-Contour detection with Canny Edge
-Segmentation using Thresholding
-Morphological analysis
I didn't have much success, as some of the photos show welds, but it only detects welds and not cracks.
I've started looking into CNNs but I don't know if it's necessary.
I enclose a photo of the chimney
Thanks in advance
0 Comments
Answers (1)
Rahul
on 13 Nov 2024
Edited: Rahul
on 13 Nov 2024
As mentioned, if unable to obtain sufficient results using Contour Detection or Image Thresholding as they are detecting welds instead of cracks, consider using Deep Learning Networks like CNNs.
In this scenario, it is necessary to provide sufficient training and validation labeled data to the network to understand the difference between 'cracks' and 'welds'. Consider using the MATLAB Image Labeler App to label the data appropriately using bounding boxes in regions of interest (ROI).
Further,
Here is an example:
layers = [
imageInputLayer([size(blurredImg, 1), size(blurredImg, 2), 1])
convolution2dLayer(3, 8, 'Padding', 'same')
batchNormalizationLayer
reluLayer
maxPooling2dLayer(2, 'Stride', 2)
fullyConnectedLayer(2)
softmaxLayer
classificationLayer];
options = trainingOptions('sgdm', ...
'MaxEpochs', 10, ...
'ValidationData', validationData, ...
'ValidationFrequency', 30, ...
'Verbose', false, ...
'Plots', 'training-progress');
net = trainnet(trainingData, layers, options);
YPred = classify(net, newImg);
Refer to the following MathWorks documentations to know more:
'Image Labeller App': https://www.mathworks.com/help/releases/R2024a/vision/ref/imagelabeler-app.html
Thanks!
0 Comments
See Also
Categories
Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!