The chances of recovering photos from a factory reset performed a long time ago diminish over time. It's best to attempt recovery as soon as possible after the factory reset to maximize the likelihood of success.