Compare commits
2 commits
263d9b2f49
...
8fadf71b7c
| Author | SHA1 | Date | |
|---|---|---|---|
| 8fadf71b7c | |||
| 3ecbe0b53f |
7 changed files with 20 additions and 2 deletions
BIN
Calculations/laser-img/2026-02-21-231158.jpg
(Stored with Git LFS)
Normal file
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
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
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
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
BIN
Calculations/laser-results/2026-02-22-fiber-beam-02.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Calculations/laser-results/2026-02-22-fiber-beam-multimode.png
(Stored with Git LFS)
Normal file
BIN
Calculations/laser-results/2026-02-22-fiber-beam-multimode.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue