-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject3.py
More file actions
40 lines (25 loc) · 802 Bytes
/
Copy pathproject3.py
File metadata and controls
40 lines (25 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 20 18:28:19 2020
@author: Ryan
"""
import train, proj3
import numpy as np
from sklearn.metrics import confusion_matrix
from scipy.spatial.distance import cdist
from skimage.measure import label, regionprops, moments, moments_central, moments_normalized, moments_hu
from skimage import io, exposure
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
import pickle
from scipy import ndimage
from PIL import Image
from scipy import signal
from scipy import misc
i = 0
pkl_file = open("test_gt_py3.pkl", "rb")
mydict = pickle.load(pkl_file)
pkl_file.close()
classes = mydict[b'classes']
locations = mydict[b'locations']
proj3.project3("test.bmp", classes, locations)