Application of computer vision techniques for automated road safety analysis and traffic data collection