Google Docs for Service Account setup
- Service account looks like [email protected]
- Send the access of sheet to this
- Add key first in your service account.
- Download the credentials.json and upload it to drive or the location from where you are accessing in code.
- I am running this script on google colab so add credentials.json in keys of Colab and name it GEMINI_API
- From the link of google sheets you can take id of sheet and add in keys of Google Colab and name it sheet_id.
- Create images folder and put your cropped image containing column of roll numbers marked manually (handwritten).
I am running this script on google colab.
- Ctrl+F9 for running all cells
- if running locally:
python ezsheet.py