c# - Getting the total number of frames to write it into BVH file while recording with kinect -


i'm trying write skeleton data bvh file, need total number of frames , write before joints data hierarchy of bvh file is. function sensorskeletonframeready allows me have frame number i'm using function extract joints data of each frame , write directly bvh file.

can me, please?

bvh files have total number of frames represented in file. impossible know number until done recording.

using skeletonframeready event could:

  1. save data list (or other array type structure)
  2. stop recording , count number of frames (i.e., list items)
  3. write file, total frames

... or ...

  1. output file in real-time (as indicate in question), keeping running total of frame count
  2. stop recording , close file best can
  3. re-open file, seek "frames" line , enter appropriate value you've stored

... or ...

  1. output skeleton tracking data in real-time
  2. keep seeking point in file frames defined , keep updating it, seek end write next frame.

i'm not taking last 1 seriously. comes down fact you don't know number of frames until done! have complete recording first, before output line in file.

unless recording really long sessions, storing data in list , writing data file once you've stopped straight forward means. in opinion.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -