yeet
This commit is contained in:
parent
111b5c975e
commit
d89f37c663
14 changed files with 1967 additions and 0 deletions
11
pinkdetector/.idea/Ruby_codenight.iml
Normal file
11
pinkdetector/.idea/Ruby_codenight.iml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
<component name="TestRunnerService">
|
||||||
|
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
4
pinkdetector/.idea/misc.xml
Normal file
4
pinkdetector/.idea/misc.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
8
pinkdetector/.idea/modules.xml
Normal file
8
pinkdetector/.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Ruby_codenight.iml" filepath="$PROJECT_DIR$/.idea/Ruby_codenight.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
68
pinkdetector/.idea/workspace.xml
Normal file
68
pinkdetector/.idea/workspace.xml
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="40c9b626-c6e4-49e7-b54d-4a9d130fdc6c" name="Default Changelist" comment="" />
|
||||||
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectId" id="1RvrnUVhTm8mIznXYPMlsUDxwQE" />
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="RunDashboard">
|
||||||
|
<option name="ruleStates">
|
||||||
|
<list>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="StatusDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager">
|
||||||
|
<configuration name="checkifpink" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||||
|
<module name="Ruby_codenight" />
|
||||||
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
|
<option name="PARENT_ENVS" value="true" />
|
||||||
|
<envs>
|
||||||
|
<env name="PYTHONUNBUFFERED" value="1" />
|
||||||
|
</envs>
|
||||||
|
<option name="SDK_HOME" value="" />
|
||||||
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||||
|
<option name="IS_MODULE_SDK" value="true" />
|
||||||
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||||
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/checkifpink.py" />
|
||||||
|
<option name="PARAMETERS" value="" />
|
||||||
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
|
<option name="EMULATE_TERMINAL" value="false" />
|
||||||
|
<option name="MODULE_MODE" value="false" />
|
||||||
|
<option name="REDIRECT_INPUT" value="false" />
|
||||||
|
<option name="INPUT_FILE" value="" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<recent_temporary>
|
||||||
|
<list>
|
||||||
|
<item itemvalue="Python.checkifpink" />
|
||||||
|
</list>
|
||||||
|
</recent_temporary>
|
||||||
|
</component>
|
||||||
|
<component name="SvnConfiguration">
|
||||||
|
<configuration />
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="40c9b626-c6e4-49e7-b54d-4a9d130fdc6c" name="Default Changelist" comment="" />
|
||||||
|
<created>1570558577061</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1570558577061</updated>
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
</project>
|
1
pinkdetector/bee
Normal file
1
pinkdetector/bee
Normal file
File diff suppressed because one or more lines are too long
34
pinkdetector/checkifpink.py
Normal file
34
pinkdetector/checkifpink.py
Normal 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
BIN
pinkdetector/eeh.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 341 KiB |
7
pinkdetector/example
Normal file
7
pinkdetector/example
Normal 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
BIN
pinkdetector/groen.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 KiB |
5
pinkdetector/iserrozeindekelder.sh
Executable file
5
pinkdetector/iserrozeindekelder.sh
Executable 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
BIN
pinkdetector/roze.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
1823
pinkdetector/shrek
Normal file
1823
pinkdetector/shrek
Normal file
File diff suppressed because it is too large
Load diff
BIN
pinkdetector/test.jpg
Normal file
BIN
pinkdetector/test.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Loading…
Reference in a new issue