You need a license if you are flying for any purpose other than hobby or recreation. This includes flying a drone for real estate photography.