I would recommend to start with classification and then progress to detection.
This is both for learning (classification with CNN is the “hello world” of deep learning for a reason) and implementation (many detection algorithms use feature extractors trained on classification).
Best regards
Thomas