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 cv2 | |
| from itertools import chain | |
| import base64 | |
| import pandas as pd | |
| import requests | |
| import json | |
| def ocr_using_google_api(image_path, request_url): | |
| ''' |
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 sklearn import datasets | |
| import pandas as pd | |
| # load iris dataset | |
| iris = datasets.load_iris() | |
| # Since this is a bunch, create a dataframe | |
| iris_df=pd.DataFrame(iris.data) | |
| iris_df['class']=iris.target | |
| iris_df.columns=['sepal_len', 'sepal_wid', 'petal_len', 'petal_wid', 'class'] |