Final project demo files
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
Oscar Blue 2022-05-28 16:34:46 +01:00
parent a1bd5002ca
commit 01e9656e5c
2 changed files with 9 additions and 2 deletions

View file

@ -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)

View file

@ -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):
@ -119,4 +120,10 @@ def URL2FFT(url):
image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
else:
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