Skip to content

Instantly share code, notes, and snippets.

View sairamdevarashetty's full-sized avatar
🏠
Working from home

sairam devarashetty sairamdevarashetty

🏠
Working from home
  • Hyderabad, India
View GitHub Profile
import os
import easyocr
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
from PIL import Image
# -----------------------------
# CONFIG
# -----------------------------
IMAGE_FOLDER = "images" # folder containing screenshots
OCR_LANGS = ['ja'] # OCR input language
var url = "http://www.bseindia.com/markets/debt/debt_instruments.aspx?expandable=3";
var http = require("http");
// Utility function that downloads a URL and invokes
// callback with the data.
function download(url, callback) {
http.get(url, function(res) {
var data = "";