Pop.Util
Pop.Util is an easy and fast training library for robot control.
Function imshow¶
The code to use the imshow method :
from pop.Util import imshow
Initialization
imshow(title, image, width=300, height=300, mode='BGR') : display image
Params
title : image title
image : image file name
width : width for show
height : height for show
mode : mode for show. ('BGR' or 'rgb')
Function enable_imshow¶
The code to use the enable_imshow method :
from pop.Util import enable_imshow
Initialization
enable_imshow() : enable imshow method
Function toMFCC¶
The code to use the toMFCC method :
from pop.Util import toMFCC
Initialization
toMFCC(file_path, duration=1., rate=8000) : Convert to MFCC data
Params
file_path : Path of the file that convert to MFCC data
duration : Duration of the file
rate : Rate of the file
Function one_hot¶
The code to use the one_hot method :
from pop.Util import one_hot
Initialization
one_hot(num, maxlen) : one-hot encoding
Params
num : A Tensor of indices.
maxlen : A scalar defining the depth of the one hot dimension
Function gstrmer¶
The code to use the gstrmer method :
from pop.Util import gstrmer
Initialization
gstrmer(width=640, height=480, fps=30, flip=0) : Framework used to access the camera
Params
width : camera width. default 640
height : camera height. default 480
fps : frame per second. default 30
flip : image flip method. default 0
Function createIMG¶
The code to use the createIMG method :
from pop.Util import createIMG
Initialization
createIMG(filename="img") : Create image file
Params
filename : Name of the file