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
OPENCV_VERSION=4.1.0 | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y cmake | |
apt-get install -y wget | |
apt-get install -y git | |
apt-get install -y unzip | |
apt-get install -y yasm | |
apt-get install -y pkg-config |
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
# Create new group if it does not exist | |
sudo groupadd docker | |
# Add current user to the group | |
sudo gpasswd -a $USER docker | |
# Reload shell in order to have new group settings applied | |
newgrp docker | |
# Test everything worked | |
docker run hello-world |
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
# run with `sudo ./install_opencv41_py35_linux.sh` | |
OPENCV_VERSION=4.1.0 | |
apt-get install -y build-essential | |
apt-get install -y cmake | |
apt-get install -y wget | |
apt-get install -y git | |
apt-get install -y unzip | |
apt-get install -y yasm | |
apt-get install -y pkg-config |
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 os | |
import wget | |
import zipfile | |
import geopandas as gpd | |
dl_link = 'https://s3.amazonaws.com/metro-extracts.mapzen.com/san-francisco_california.imposm-shapefiles.zip' | |
shapefile_dir = './shapefiles' | |
shapefile_name ='san-francisco_california_osm_buildings.shp' | |
shapefile = os.path.join(shapefile_dir, shapefile_name) |
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
from __future__ import print_function | |
import requests | |
import json | |
import cv2 | |
addr = 'http://localhost:5000' | |
test_url = addr + '/api/test' | |
# prepare headers for http request | |
content_type = 'image/jpeg' |