converted to opencv because pygame video capture doesnt work in windows