eric4note / worksampling

Towards efficient and objective work sampling: recognizing workers' activities in site surveillance with two-stream convnets
MIT License
2 stars 0 forks source link

How to extract the optical flow images? #2

Open xldagger opened 5 years ago

xldagger commented 5 years ago

Hi, Firstly thanks for your job!

I'm try to extract the optical flow with x-direction and y-direction by flownet2, using your video clips. But the x,y optical flow looks difference with your optical flow images,

my postprocess method is as follows: (u is x-direction flow, v is y-direction flow)

 u = (u-minu)/(maxu-minu)*255
 v = (v-minv)/(maxv-minv)*255

also, i tried another method to postprocess:

 u[u>thredhold_max] = thredhold_max
 v[v<thredhold_min] = thredhold_min
 u = (u-minu)/(maxu-minu)*255
 v = (v-minv)/(maxv-minv)*255

anything wrong with my process method? Thx for your response!