View Gui
This module contains the view panel for the camera feed.
ATTRIBUTE | DESCRIPTION |
---|---|
BUTTON_HEIGHT |
Button height
TYPE:
|
BUTTON_WIDTH |
Button width
TYPE:
|
CLASS | DESCRIPTION |
---|---|
View |
Protocol for the view panel |
ViewPanel |
View panel for the camera feed |
Documentation last updated: 2025-02-22
ViewPanel
ViewPanel(principal: View | Proxy | None = None)
Bases: Panel
View panel for the camera feed
ATTRIBUTE | DESCRIPTION |
---|---|
fps |
Frames per second
TYPE:
|
size |
Frame size
TYPE:
|
is_connected |
Connection status
TYPE:
|
is_connected_previous |
Previous connection status
TYPE:
|
is_frozen |
Freeze status
TYPE:
|
latest_frame |
Latest frame
TYPE:
|
latest_image |
Latest image as a PIL Image
TYPE:
|
tk_image |
Latest image as a Tkinter image
TYPE:
|
loaded_filename |
Loaded filename
TYPE:
|
last_visited_load_dir |
Last visited directory for loading files
TYPE:
|
last_visited_save_dir |
Last visited directory for saving files
TYPE:
|
button_height |
Button height
TYPE:
|
button_width |
Button width
TYPE:
|
METHOD | DESCRIPTION |
---|---|
updateStream |
Update the stream |
refresh |
Refresh the view |
addTo |
Add the view to the master widget |
getSaveDirectory |
Get the directory to save the image |
save |
Save the current image |
load |
Load an image file |
toggleConnect |
Toggle connection to the feed |
toggleFreeze |
Toggle the freeze state |
connect |
Connect to the feed |
disconnect |
Disconnect from the feed |
getFrame |
Get the next frame |
Initialize the view panel
PARAMETER | DESCRIPTION |
---|---|
principal
|
The principal object for the view panel
TYPE:
|