This file contains 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 argparse | |
import requests | |
import json | |
import geopandas as gpd | |
import pandas as pd | |
from shapely import affinity | |
from shapely.geometry import Polygon, Point, MultiPolygon | |
from matplotlib import pyplot as plt | |
import numpy as np | |
from osmtogeojson import osmtogeojson |
This file contains 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 Image | |
import sys | |
import glob | |
import ImageOps | |
# Trim all png images with white background in a folder | |
# Usage "python PNGWhiteTrim.py ../someFolder" | |
try: | |
folderName = sys.argv[1] |