By doing it. Decide on a small project, like tracking your cat, detecting food items in your fridge, then take it step by step.
Then do a slightly more ambitious project. Start with something very simple.
It also heavily depends on what you already know regarding programming, image processing etc.