The Digit-Inator allows you to convert your favorite hand drawn digit to text with the latest and greatest in computer vision.
- Web Application Installation
- Run the Application Locally
- Run Tests
- Run the Application in Production Mode
- Web Technology
- Deep Learning Technology
- Number Detection Model Details
- Modify the Number Detection Model
- Reinstate the Server
- Edit the Logo
- Run
yarn dev
at the root of the project to start the application - Navigate to
http://localhost:3000/
to view the application
- Run
yarn test:unit
at the root of the project
- Run
yarn test:integration
at the root of the project - In the Cypress runner, click the test suite you want to run or click "Run all specs"
- Run
yarn build
at the root of the project - Run
yarn start
at the root of the project
- Next.js (React)
- TensorFlow.js
- TypeScript
- SCSS Modules
- Jest
- React Testing Library
- Cypress
- TensorFlow
- Keras
- MNIST dataset
- Convolutional Neural Network (CNN)
Model Accuracy: 99.120%
Python, version between 3.7 and 3.9 exclusive
-
Run
pip install -r number_detection_model/requirements.txt
-
Build the model by running
python number_detection_model/build_model.py
NOTE: Building the model takes around 5 minutes in its current state. It generates a
number_detection_model.h5
file. -
Run
python number_detection_model/test_model.py
NOTE: Creates images for confusion matrices that can be found in the
number_detection_model
directory. -
Convert the
.h5
model into.json
and make it available to the web application by running the following command:
tensorflowjs_converter --input_format=keras --output_format=tfjs_layers_model number_detection_model.h5 ./public/model
The server didn't add much value, increased the complexity of the codebase, and increased the cost of hosting. So, the server was removed.
If you have any ideas pertinent to this project that require a server—feel free to fork this repository and reference the pull request that removed the server to reinstate it.
The server used:
- Node.js
- Express.js
- TypeScript
- MongoDB
- Mongoose
- Jest
Install AdobeXD to build off of the current .xd
file in the design
directory.