The autonomous parking of vehicles requires the ability to accurately locate an available parking slot in the vicinity of a vehicle. Since parking slots have a variety of shapes and colors, may be occluded by obstacles, or look different due to surroundings such as lighting, accurately locating them can be a challenging task. In this paper, we propose a context-based parking slot detection method inspired by the process of a human driver finding a parking slot. Our method consists of two deep network modules: a parking context recognizer and parking slot detector. The parking context recognizer identifies the parking environment (type, angle, and availability of a parking slot), whereas the parking slot detector locates the exact position of a parking slot by multiple type-based fine-tuned detectors with rotated anchor boxes and a rotated non-maximal suppression. In addition, we release a realistic parking slot dataset, which comprises 22817 images of parking slots having various attributes and external conditions. We also propose a new evaluation metric for parking slot detection, reflecting whether a vehicle can be parked within the detected parking slot. Through comparison and ablation study in experiments, we demonstrate that our method outperformed the previous deep-learning-based methods, along with having a short operation time.