Logo Detection in Document Images with Complex Backgrounds