-
Notifications
You must be signed in to change notification settings - Fork 0
Code Documentation
Our model deals with storing the application data into the database. We store the event details into our database. When the user edits or deletes an event, we perform update or delete function over these values. The Model accepts and supplies the data to the Controller. Event Model
The data is fetched from the database and loaded into the event model, which in turn is inflated to the elements in the view layer. Event Controller
It contains the layout, elements and resources that are used for rendering. For example, the XML files used are fragment_event_page, save_event etc. These views are further consumed by the controller. View
Initially, extracting the date from the OCR output string was a challenge. We tried using many regex and library and was not satisfied with the date extraction. We then came across the natural language-based date extraction library called [joestelmach-natty] (https://github.com/sharmilathirumalai/Notify/blob/master/app/src/main/java/com/example/notify/SaveEvent.java#L256).
The time delay to capture the image, saving the image and converting the image to text takes nearly 2 to 3 seconds. When we try performing this in the main thread, we couldn't give proper progress bar immediately to the user (as per the Neilson heuristics, "Visibility of system status"). We tried doing it using AsyncTask so that the app is responsive, and we will show a progress bar until the OCR extraction is completed.
This functionality was implemented in Phase 2. There were some difficulties in extracting complete address. So, we did try some regex to accomplish the task in the final phase. But in the testing phase, we found that it increased the complexity and the accuracy wasn’t up to the mark. Hence, this functionality has been moved to future enhancements as it requires a lot of different formats of data to generalize.