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
| from google.cloud import vision | |
| import io | |
| import os | |
| import os | |
| os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="/home/devarshi/gcloud.json" | |
| def detect_text(path): | |
| """Detects text in the file.""" | |
| client = vision.ImageAnnotatorClient() |
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 json | |
| import numpy as np | |
| import os | |
| import cv2 | |
| import matplotlib.image as mpimg | |
| current_dir = os.getcwd() | |
| files = os.listdir(current_dir) |
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 random as rand | |
| import shutil | |
| if not os.path.exists('val'): | |
| os.makedirs('val') | |
| if not os.path.exists('test'): | |
| os.makedirs('test') |
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 | |
| from tkinter import * | |
| from tkinter import ttk | |
| import sys | |
| import pandas as pd | |
| from PIL import ImageTk,Image | |
| base = Tk() | |
| base.geometry("500x500") | |
| base.resizable(width = True, height = True) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder