general_detector.py