Starting a Vehicle Recognition Code?
1 view (last 30 days)
Show older comments
I'm trying to write a code that recognizes semi trucks from a picture, I was thinking maybe using shape recognition and possibly color recognition, I'm just not sure how to get started or if thats the right way to go about it. Any help is greatly appreciated.
2 Comments
Abolfazl Chaman Motlagh
on 6 Apr 2023
Do you have a dataset? Have think about using machine learning approaches? e.g. CNNs
Answers (1)
Sachin
on 10 Apr 2023
Edited: Sachin
on 10 Apr 2023
Hi
Here are some steps that you could take to get started.
- Collecting a dataset of images containing semi-truck. You can use existing datasets or create your own by taking pictures of semi-trucks in various environment conditions.
- Pre-process the images to enhance features by techniques such as Filtering, Thresholding, Augmentation etc.
- Extract the feature from the images using techniques such as Edge Detection etc. These features can be used to train a machine learning model to recognize semi-trucks.
- Train a machine learning model such as support vector machine (SVM) or a CNN model using extracted features and the labelled images from your dataset.
- Test the trained model on a separate set of images to evaluate the performances of the model.
- Refine the model by tweaking the parameters until you are satisfied with its performance.
Some references that might be helpful to you:
Thanks
Sachin
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!