Software and tools


In 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 PoseSample

>> poseSample = PoseSample("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=poseSample.getRGB(10)

To visualize information of a frame, you can use this code:

import cv2
from ChalearnLAPSample import poseSample

poseSample = PoseSample("Seqxx.zip")
actorid=1
limbid=2

cv2.namedWindow("Seqxx",cv2.WINDOW_NORMAL) 
cv2.namedWindow("Torso",cv2.WINDOW_NORMAL)

for x in range(1, poseSample.getNumFrames()):
img=poseSample.getRGB(x)
   torso=poseSample.getLimb(x,actorid,limbid)

cv2.imshow("Seqxx",img)
   cv2.imshow("Torso",torso)

cv2.waitKey(1)
del poseSample
cv2.destroyAllWindows()

News


There are no news registered in Human Pose (ECCV '14)