Automatic corner event detection