In today's age, as everything has come online, everything that can be automated should be automated. Educational institutes use online LMS to automate most of their day to day activities. One of them includes assignment submission and checking. It's very seamless to create a MCQ based exam and get it automatically evaluated. But the problem occurs when the requirement is of having questions/assignments based on Diagrams.
The above problem can be solved with the help of Deep Learning & Computer Vision. This repository contains a Custom Object Detector made with the Yolov4 object detection model and Darknet.
- Python
- OpenCV
- Yolov4
- Darknet
- Google Collab
- Labelimg
- 50 images were manually labelled using LabelImg and used as the training dataset for the model.
- One class called as 'object' was used to identify the diagrams in a particular image.
- The model was trained on Google Collab, here is the File.
- The configuration and setup related to the training of the model are specified within the Collab File linked above.
- The trained model was tested on these 7 images which were not part of the training dataset.
No detection.
- Skewed images.
This can be solved with the help of the Open CV library. - Low resolution images.
- Shadows on partial/full part of the image.
The above two issues could be solved with having a better training dataset with more images. This may still not solve some very edge cases. For only these cases application can be used for manual intervention. - Cut-out text as the labels on the image.
A different class can be created for specifically detecting this case, in order to not consider that while evaluating.