I was reading a company in Ukraine has completed a functioning drone that does just this. Basically permits it to fire-and-forget as it has basic optimal image recognition built into a chip. Crazy.
Alternatively if you knew the target’s static location, you could bypass GPS and controller jamming by utilizing good 'ol fashioned orienteering principles with an accelerometer, compass, and provided coordinates.