Image
This module holds the base class for image data.
FUNCTION | DESCRIPTION |
---|---|
addText |
Add text to the image |
annotate |
Annotate the image to label identified targets |
blur |
Blur the image |
convolve |
Perform convolution on image |
crosshair |
Add crosshair in the middle of image |
process |
Process the image |
removeNoise |
Remove noise from image |
rotate |
Rotate a 2D array of multiples of 90 degrees, clockwise |
addText
Add text to the image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
text
|
text to be added
TYPE:
|
position
|
x,y position of where to place the text
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
annotate
Annotate the image to label identified targets
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
index
|
index of target
TYPE:
|
dimensions
|
list of x,y,w,h
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
blur
Blur the image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
blur_kernel
|
level of blurring, odd numbers only, minimum value of 3. Defaults to 3.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
convolve
Perform convolution on image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
crosshair
Add crosshair in the middle of image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
process
Process the image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
alpha
|
alpha value
TYPE:
|
beta
|
beta value
TYPE:
|
blur_kernel
|
level of blurring, odd numbers only, minimum value of 3. Defaults to 3.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |
removeNoise
Remove noise from image
PARAMETER | DESCRIPTION |
---|---|
frame
|
frame array
TYPE:
|
open_iter
|
opening iteration. Defaults to 0.
TYPE:
|
close_iter
|
closing iteration. Defaults to 0.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
np.ndarray: frame array |