diff --git a/image.py b/image.py new file mode 100644 index 0000000..14b5434 --- /dev/null +++ b/image.py @@ -0,0 +1,20 @@ +import cv2; + + + +img_color = cv2.imread('media/buildings/roffa6.jpeg') + + +#Displays image inside a window +# cv2.imshow('color image',img_color) + + + +# Custom window +cv2.namedWindow('custom window', cv2.WINDOW_KEEPRATIO) +cv2.imshow('custom window', img_color) +# cv2.resizeWindow('custom window', 200, 200) + +cv2.waitKey(0) +cv2.destroyAllWindows() + diff --git a/input.mp4 b/input.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..6e9fc72 --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +# installation + +run `pip3 install -r requirements.txt` to install the used python packages. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a273c53 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,35 @@ +Adafruit-Blinka==8.43.0 +adafruit-circuitpython-bme280==2.6.24 +adafruit-circuitpython-busdevice==5.2.9 +adafruit-circuitpython-connectionmanager==3.1.0 +adafruit-circuitpython-mpr121==2.1.20 +adafruit-circuitpython-requests==4.0.0 +adafruit-circuitpython-typing==1.10.3 +Adafruit-PlatformDetect==3.69.0 +Adafruit-PureIO==1.1.11 +adafruit-python-shell==1.8.1 +args==0.1.0 +blinker==1.8.2 +click==8.1.7 +clint==0.5.1 +ffmpeg-python==0.2.0 +Flask==3.0.3 +future==1.0.0 +gunicorn==22.0.0 +itsdangerous==2.2.0 +Jinja2==3.1.4 +MarkupSafe==2.1.5 +numpy==1.26.4 +opencv-python==4.10.0.82 +packaging==24.1 +pillow==10.3.0 +pyee==11.1.0 +pyftdi==0.55.4 +pyserial==3.5 +pyusb==1.2.1 +rpi-ws281x==5.0.0 +RPi.GPIO==0.7.1 +simpleaudio==1.0.4 +sysv-ipc==1.1.0 +typing_extensions==4.12.2 +Werkzeug==3.0.3 diff --git a/sensor-test.py b/sensor-test.py new file mode 100644 index 0000000..ad7a112 --- /dev/null +++ b/sensor-test.py @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries +# SPDX-License-Identifier: MIT + +# Simple test of the MPR121 capacitive touch sensor library. +# Will print out a message when any of the 12 capacitive touch inputs of the +# board are touched. Open the serial REPL after running to see the output. +# Author: Tony DiCola +import time +import board +import busio + +# Import MPR121 module. +import adafruit_mpr121 + +# Create I2C bus. +i2c = busio.I2C(board.SCL, board.SDA) + +# Create MPR121 object. +mpr121 = adafruit_mpr121.MPR121(i2c) + +# Note you can optionally change the address of the device: +# mpr121 = adafruit_mpr121.MPR121(i2c, address=0x91) + +# Loop forever testing each input and printing when they're touched. +while True: + # Loop through all 12 inputs (0-11). + for i in range(12): + # Call is_touched and pass it then number of the input. If it's touched + # it will return True, otherwise it will return False. + if mpr121[i].value: + print("Input {} touched!".format(i)) + time.sleep(0.25) # Small delay to keep from spamming output messages. diff --git a/test.py b/test.py new file mode 100644 index 0000000..1f3b877 --- /dev/null +++ b/test.py @@ -0,0 +1,5 @@ +import ffmpeg +stream = ffmpeg.input('input.mp4') +stream = ffmpeg.hflip(stream) +stream = ffmpeg.output(stream, 'output.mp4') +ffmpeg.run(stream)