Final project demo files
This commit is contained in:
parent
a1bd5002ca
commit
01e9656e5c
2 changed files with 9 additions and 2 deletions
|
@ -17,7 +17,7 @@ Explain: why frames are exported seperate to images
|
||||||
|
|
||||||
3. Show a successful run
|
3. Show a successful run
|
||||||
Run: python src/autophotographer/autophotographer_main.py -i /datasets/Hannah/overcastjuly/melindwr1/*
|
Run: python src/autophotographer/autophotographer_main.py -i /datasets/Hannah/overcastjuly/melindwr1/*
|
||||||
Explain: ouput from command
|
Explain: output from command
|
||||||
|
|
||||||
4. Discuss filters
|
4. Discuss filters
|
||||||
- Brightness (Upper and lower bounds)
|
- Brightness (Upper and lower bounds)
|
||||||
|
|
|
@ -8,6 +8,7 @@ import numpy as np
|
||||||
import random
|
import random
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import requests
|
import requests
|
||||||
|
import json
|
||||||
|
|
||||||
# Export's video frames
|
# Export's video frames
|
||||||
def video_to_frames(path):
|
def video_to_frames(path):
|
||||||
|
@ -119,4 +120,10 @@ def URL2FFT(url):
|
||||||
image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
|
image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
|
||||||
else:
|
else:
|
||||||
image = PILToNumpy(image)
|
image = PILToNumpy(image)
|
||||||
showDiscreteFFT(image)
|
showDiscreteFFT(image)
|
||||||
|
|
||||||
|
def fileToList(path):
|
||||||
|
with open(path) as f:
|
||||||
|
contents = f.read().rstrip()
|
||||||
|
paths = contents.strip('][').replace("'", "").split(', ')
|
||||||
|
return paths
|
Reference in a new issue