Compare commits

..

No commits in common. "8fadf71b7c3070bd46779f3b1235232d698bb997" and "263d9b2f4972db14c9c255c6c763ba5da2ad7ff3" have entirely different histories.

7 changed files with 2 additions and 20 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -2,7 +2,7 @@ import cv2
import numpy as np import numpy as np
def main(): def main():
capture = cv2.VideoCapture(2) capture = cv2.VideoCapture(0)
cv2.namedWindow("Camera", cv2.WINDOW_AUTOSIZE) cv2.namedWindow("Camera", cv2.WINDOW_AUTOSIZE)
while True: while True:
@ -11,7 +11,7 @@ def main():
frame_mono = np.mean(frame, axis=2) frame_mono = np.mean(frame, axis=2)
intensity = np.mean(frame_mono) intensity = np.mean(frame_mono)
print(f"\033[H\033[2J{intensity:6.3f}") print(f"\033[H\033[2J{intensity:5.1f}")
cv2.imshow('Camera', frame) cv2.imshow('Camera', frame)