Notebook
show_frame_in_notebook
Display a frame in Jupyter Notebook using Matplotlib
Attributes:
Name | Type | Description |
---|---|---|
frame |
ndarray
|
The frame to be displayed. |
size |
Tuple[int, int]
|
The size of the plot. default:(10,10) |
cmap |
str
|
the colormap to use for single channel images. default:gray |
Examples:
>>> from supervision.notebook.utils import show_frame_in_notebook
%matplotlib inline
show_frame_in_notebook(frame, (16, 16))
Source code in supervision/notebook/utils.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|