This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Qdded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = ""; |