-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d380c7
commit 457d930
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Dinolite microscope camera intrinsics | ||
|
||
[image] | ||
|
||
width | ||
640 | ||
|
||
height | ||
480 | ||
|
||
[dinolite] | ||
|
||
camera matrix | ||
0.00000 0.00000 0.00000 | ||
0.00000 0.00000 0.00000 | ||
0.00000 0.00000 0.00000 | ||
|
||
distortion | ||
-0.41527 0.31874 -0.00197 0.00071 0.00000 | ||
|
||
rectification | ||
1.00000 0.00000 0.00000 | ||
0.00000 1.00000 0.00000 | ||
0.00000 0.00000 1.00000 | ||
|
||
projection | ||
0.00000 0.00000 0.00000 0.00000 | ||
0.00000 0.00000 0.00000 0.00000 | ||
0.00000 0.00000 0.00000 0.00000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Script for testing webcam connection to opencv.""" | ||
|
||
import cv2 | ||
|
||
# 0 is default index of webcam | ||
vid = cv2.VideoCapture(0) | ||
|
||
while(True): | ||
# read frame | ||
ret, frame = vid.read() | ||
# display frame | ||
cv2.imshow('frame', frame) | ||
|
||
# press q to quit | ||
if cv2.waitKey(1) & 0xFF == ord('q'): | ||
break | ||
|
||
vid.release() | ||
cv2.destroyAllWindows() |
Binary file not shown.