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
|
||||
Run: python src/autophotographer/autophotographer_main.py -i /datasets/Hannah/overcastjuly/melindwr1/*
|
||||
Explain: ouput from command
|
||||
Explain: output from command
|
||||
|
||||
4. Discuss filters
|
||||
- Brightness (Upper and lower bounds)
|
||||
|
|
|
@ -8,6 +8,7 @@ import numpy as np
|
|||
import random
|
||||
from PIL import Image
|
||||
import requests
|
||||
import json
|
||||
|
||||
# Export's video frames
|
||||
def video_to_frames(path):
|
||||
|
@ -120,3 +121,9 @@ def URL2FFT(url):
|
|||
else:
|
||||
image = PILToNumpy(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