Software and tools


On the file ChalearnLAPSample.py there is a class ActionSample that allows to access all information from a sample. In order to open a sample file, use the constructor with the ZIP file you want to use:

>> from ChalearnLAPSample import ActionSample

>> actionSample = ActionSample("SeqXX.zip")

With the given object you can access to the sample general information. For instance, get the number of frames, the fps or the max depth value:

>> numFrames=actionSample.getNumFrames()

Additionaly we can access to any information of any frame. For instance, to access the RGB information for the 10th frame, we use:

>> rgb=actionSample.getRGB(10)

To visualize all the information of a sample, you can use this code:import cv2
from ChalearnLAPSample import ActionSample

actionSample = ActionSample("Seqxx.zip")
cv2.namedWindow("Seqxx",cv2.WINDOW_NORMAL) 
for x in range(1, actionSample.getNumFrames()-1):
img=actionSample.getRGB(x)
cv2.imshow("Seqxx",img)
cv2.waitKey(1)
del actionSample
cv2.destroyAllWindows()

News


There are no news registered in Action/Interaction Recognition (ECCV '14, CVPR '15)