WriteAIr
Inspiration
During this pandemic, several professors have had to teach virtually without access to a blackboard. Digital pens can be costly and writing on paper is difficult to record and stream. Thus, we have come up with a way for professors (and anyone else who wants to write and share their work) to write on AIR! Not only will this help professors who have gone virtual over the pandemic, but it also allows people to share their written work easily, no matter where they are!
What it does
WriteAIr is a website which allows users to stream their writing. It uses HSV masking to detect a pen which the user writes with. Plus, users can select a wide range of options through hand gestures! The notes created can then be saved as images and uploaded on the server.
How we built it
- Django was used to create the website.
- HSV masking was used to detect the marker of some specific colour.
- A machine learning model was trained by us to detect hand gestures.
- The machine learning model was trained on landmarks data of MediaPipe Hands calculated for images in our dataset which was saved as a CSV file.
Challenges we ran into
- Converting images to PDF.
- Figuring out how to create and train the model was quite the task.
- Lack of existing dataset according to our needs. We had to create our own dataset of images.
- Setting the sensitivity of the HSV masking so that background objects aren't detected.
Accomplishments that we're proud of
- We created our own dataset completely on our own!
- We actually managed to train a model which had surprisingly good accuracy.
- Integrated OpenCV with the gesture recognition model.
- Hosted the project on a website using Django.
What we learned
- Most of us were completely new to machine learning, so we learnt a lot about how to create datasets, convert them into a proper .csv file (since that's what we trained it on), train the model and save it in a .h5 file.
- Building a full-fledged website using Django.
- We also learnt how to use the MediaPipe API.
- Several Computer Vision concepts like OpenCV.
What's next for WriteAIr
- Adding the project as a Google Meet extension or an alternative to Google Meet using sockets.
- Increasing the accuracy of the pen detection code.
- The code currently works for only right-handed users. An option to provide the service to left-handed users as well.
- Integrating the website with the OpenCV part.