add files
This commit is contained in:
parent
31e24d6e7f
commit
4b62520aca
15 changed files with 37 additions and 0 deletions
0
DCIM/.gitkeep
Normal file
0
DCIM/.gitkeep
Normal file
BIN
DCIM/foobar.jpg
Normal file
BIN
DCIM/foobar.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
|
|
@ -0,0 +1 @@
|
|||
none readme now
|
||||
BIN
cam.jpg
Normal file
BIN
cam.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
2
effects/Gotham.sh
Executable file
2
effects/Gotham.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
convert /home/pi/cam.jpg -modulate 120,10,100 -fill '#222b6d' -colorize 20 -gamma 0.5 /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
3
effects/Lomo.sh
Executable file
3
effects/Lomo.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
convert /home/pi/cam.jpg -channel R -level 33% -channel G -level 33% /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
|
||||
2
effects/Nashville.sh
Executable file
2
effects/Nashville.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
convert -set colorspace RGB /home/pi/cam.jpg \( -clone 0 -fill '#222b6d' -colorize 100% \) \( -clone 0 -colorspace gray -negate \) -compose blend -define compose:args=100,0 -composite /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
2
effects/Redstone.sh
Executable file
2
effects/Redstone.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
convert -set colorspace RGB /home/pi/cam.jpg \( -clone 0 -fill '#a159d3' -colorize 30% \) \( -clone 0 -colorspace gray -negate \) -compose blend -define compose:args=100,0 -composite /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
2
effects/Toaster.sh
Executable file
2
effects/Toaster.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
convert -set colorspace RGB /home/pi/cam.jpg \( -clone 0 -fill '#330000' -colorize 100% \) \( -clone 0 -colorspace gray -negate \) -compose blend -define compose:args=100,0 -composite /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
2
effects/Vignette-1.sh
Executable file
2
effects/Vignette-1.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
composite -gravity center -resize 3908x2602 grad_vignette_1.png /home/pi/cam.jpg /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
2
effects/Vignette-2.sh
Executable file
2
effects/Vignette-2.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
composite -gravity center -resize 3908x2602 grad_vignette_2.png /home/pi/cam.jpg /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
3
effects/Vintage.sh
Executable file
3
effects/Vintage.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
convert -set colorspace RGB ../cam.jpg -channel R -level 33% \( -clone 0 -fill '#a159d3' -colorize 30% \) \( -clone 0 -colorspace gray -negate \) -compose blend -define compose:args=100,0 -composite ../DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
|
||||
|
||||
BIN
effects/grad_vignette_1.png
Normal file
BIN
effects/grad_vignette_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 566 KiB |
BIN
effects/grad_vignette_2.png
Normal file
BIN
effects/grad_vignette_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 562 KiB |
18
switch.py
Normal file
18
switch.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
import subprocess
|
||||
import os
|
||||
import random
|
||||
|
||||
shell_list = ['/home/pi/effects/Gotham.sh', '/home/pi/effects/Lomo.sh', '/home/pi/effects/Lomo-vignette.sh', '/home/pi/effects/Nashville.sh', '/home/pi/effects/Redstone.sh', '/home/pi/effects/Toaster.sh', '/home/pi/effects/Vignette-1.sh', '/home/pi/effects/Vignette-2.sh', '/home/pi/effects/Vintage.sh']
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
|
||||
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||
|
||||
while True:
|
||||
input_state = GPIO.input(18)
|
||||
if input_state == False:
|
||||
subprocess.call(["raspistill", "-w", "1251", "-h", "1039", "-vf", "-hf", "-ISO", "200", "-t", "1","-o", "cam.jpg"])
|
||||
os.system(random.choice(shell_list))
|
||||
time.sleep(0.2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue