Skip to content

Upload a timetable image and add your schedules to Google Calendar.

License

Notifications You must be signed in to change notification settings

sk5268/Image-To-Calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Zener.mp4

Image-To-Calendar

Upload a timetable image and add your schedule to Google Calendar

Background

We were given our semester time table in a piece of paper. IN 2024 !! WHO ARE WE KIDDING ??

I spent a lot of time adding all those coures into google calendar. It was time consuming and prone to errors.

So automated adding the courses to the calendar using Google Cloud APIs. Now I just have to take a picture and upload it, the script will take care of the rest.

Requirements

https://console.cloud.google.com/apis/dashboard
https://developers.google.com/calendar/api/guides/overview

Google Calendar API and OAuth 2.0 Setup:

  1. Follow the instructions above to set up a project in the Google Developers Console.
  2. Enable the Google Calendar API for your project.
  3. Download the credentials.json file and place it in the same directory as your script.

OCR.Space API Key:

  1. Sign up at OCR.Space to get an API key.
  2. Replace 'your_ocr_api_key_here' in the ocr_space_file function with your actual API key.

Python Packages:

pip install -r requirements.txt

Run the script.
For the rest, you guys are smart enough to understand it.

Note:

After a lot of experimentation, I found ExtractTable OCR to work best for tabular data.
Also offers APIs to integrate easily into python.
https://www.extracttable.com/

About

Upload a timetable image and add your schedules to Google Calendar.

Resources

License

Stars

Watchers

Forks

Languages