Automated vision-based loosened bolt detection using the cascade detector