diff --git a/EVM ohne Buffer/__pycache__/eulerian.cpython-311.pyc b/EVM ohne Buffer/__pycache__/eulerian.cpython-311.pyc new file mode 100644 index 0000000..daf98eb Binary files /dev/null and b/EVM ohne Buffer/__pycache__/eulerian.cpython-311.pyc differ diff --git a/EVM ohne Buffer/__pycache__/heartrate.cpython-311.pyc b/EVM ohne Buffer/__pycache__/heartrate.cpython-311.pyc new file mode 100644 index 0000000..75180c7 Binary files /dev/null and b/EVM ohne Buffer/__pycache__/heartrate.cpython-311.pyc differ diff --git a/EVM ohne Buffer/__pycache__/preprocessing.cpython-311.pyc b/EVM ohne Buffer/__pycache__/preprocessing.cpython-311.pyc new file mode 100644 index 0000000..90b9e43 Binary files /dev/null and b/EVM ohne Buffer/__pycache__/preprocessing.cpython-311.pyc differ diff --git a/EVM ohne Buffer/__pycache__/pyramids.cpython-311.pyc b/EVM ohne Buffer/__pycache__/pyramids.cpython-311.pyc new file mode 100644 index 0000000..339945d Binary files /dev/null and b/EVM ohne Buffer/__pycache__/pyramids.cpython-311.pyc differ diff --git a/test.py b/test.py index e8b615d..9a0e17e 100644 --- a/test.py +++ b/test.py @@ -1,2 +1,32 @@ +""" +This File tests if a camera is connected and working +It should display a live stream in grayscale +""" + print("Hallo, Welt!") -print("Hallo, Welt 2 !") \ No newline at end of file + + + + +import numpy as np +import cv2 as cv +cap = cv.VideoCapture(0) +if not cap.isOpened(): + print("Cannot open camera") + exit() +while True: + # Capture frame-by-frame + ret, frame = cap.read() + # if frame is read correctly ret is True + if not ret: + print("Can't receive frame (stream end?). Exiting ...") + break + # Our operations on the frame come here + gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY) + # Display the resulting frame + cv.imshow('frame', gray) + if cv.waitKey(1) == ord('q'): + break +# When everything done, release the capture +cap.release() +cv.destroyAllWindows() \ No newline at end of file