Compare commits

...

2 commits

Author SHA1 Message Date
8fadf71b7c Add new laser images 2026-02-22 03:35:24 +01:00
3ecbe0b53f Fix intensity script 2026-02-22 03:29:29 +01:00
7 changed files with 20 additions and 2 deletions

BIN
Calculations/laser-img/2026-02-21-231158.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Calculations/laser-img/2026-02-21-231248.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Calculations/laser-img/2026-02-21-231334.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Calculations/laser-results/2026-02-22-fiber-beam-01.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Calculations/laser-results/2026-02-22-fiber-beam-02.png (Stored with Git LFS) Normal file

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(0) capture = cv2.VideoCapture(2)
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:5.1f}") print(f"\033[H\033[2J{intensity:6.3f}")
cv2.imshow('Camera', frame) cv2.imshow('Camera', frame)