Complicated Shapes Estimation Method for Objects Analysis in Video Surveillance Systems