Railway crossing detection with IR camera