Skip to content

Trying Number recognition with MNIST for the first time

Notifications You must be signed in to change notification settings

Ra00f1/Number-Recognizing-ML-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Recognizing(ML)

A prototype program to test the KNeighborsClassifier model on a live video feed.

Mnist data is used to train the model. The data is shifted by one pixel to add more data to the training set.

The program uses the cv2 library to capture the video feed from the webcam. The video feed is then processed to extract the region of interest (ROI) which is then passed to the model for prediction.

As this is a prototype I did not spend to much time on fine tuning and therefore it sometimes doesn't work well while using the webcam especially if the angle or the processed image is not clear enough for the model.

Sources:

1- Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Book by Geron Aurelien
2- https://towardsdatascience.com/how-to-build-knn-from-scratch-in-python-5e22b8920bd2
3- https://www.ibm.com/topics/knn#:~:text=Next%20steps-,K-Nearest%20Neighbors%20Algorithm,of%20an%20individual%20data%20point.
4- https://machinelearningmastery.com/tutorial-to-implement-k-nearest-neighbors-in-python-from-scratch/
5- https://stathwang.github.io/k-nearest-neighbors-from-scratch-in-python.html
6- https://www.geeksforgeeks.org/k-nearest-neighbours/

Pandas:

7- https://pandas.pydata.org/docs/reference/api/pandas.concat.html

OpenCV:

8- https://stackoverflow.com/questions/17987598/how-can-i-use-imshow-to-display-multiple-images-in-multiple-windows
9- https://stackoverflow.com/questions/64773918/creating-and-capturing-sub-region-on-web-cam-using-opencv

About

Trying Number recognition with MNIST for the first time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages