Merge branch 'checkifpink' into 'master'

yeet

See merge request ZeusWPI/rubygoldberg-2019!1
This commit is contained in:
flynn 2019-10-10 20:29:43 +02:00
commit eba345e3c1
10 changed files with 1871 additions and 0 deletions

1
pinkdetector/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.idea/

1
pinkdetector/bee Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,34 @@
from PIL import Image
from urllib3.connectionpool import xrange
listofpinks = [(255,105,180), (255,20,147), (219,112,147), (199,21,133)]
aantal = 0
ja = 0
getalvanjanpieter = 0
getalvanjanpieter = str(getalvanjanpieter)
bee = open('bee', 'r').readlines()
bee = bee[0].split(' ')
shrek = open('shrek', 'r').readlines()
print(shrek)
shrekk = [shrek[n].split for shrek[n] != '\n' and n in range(0, len(shrek))]
print(shrekk)
img = Image.open('test.jpg', 'r')
for pixel in img.getdata():
# print(pixel)
if pixel[0] > 220 and pixel[2] <= 228 and pixel[2] >= 120:
# print("ja")
ja += 1
else:
pass
aantal += 1
procent = (ja / aantal) * 100
if procent > 2:
# print("er is roze in de kelder!")
# bee
pass
else:
print("er is geen roze in de kelder!")

BIN
pinkdetector/eeh.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

7
pinkdetector/example Normal file
View file

@ -0,0 +1,7 @@
75988164966894747974200307809782762084705920897667750218208675113520516842314
http://www.veryabc.cn/movie/uploads/script/Shrek.txt
https://gist.githubusercontent.com/The5heepDev/a15539b297a7862af4f12ce07fee6bb7/raw/7164813a9b8d0a3b2dcffd5b80005f1967887475/entire_bee_movie_script
https://kelder.zeus.ugent.be/webcam/video/mjpg.cgi?profileid=2

BIN
pinkdetector/groen.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View file

@ -0,0 +1,5 @@
#!/bin/bash
ffmpeg -i 'https://kelder.zeus.ugent.be/webcam/video/mjpg.cgi?profileid=2' -frames:v 1 test.jpg -y
echo yeet
# curl 'http://10.1.0.155:5000/link/start/0/6'
# python3 checkifpink.py

BIN
pinkdetector/roze.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

1823
pinkdetector/shrek Normal file

File diff suppressed because it is too large Load diff

BIN
pinkdetector/test.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB