An embodiment of a semiconductor package apparatus may include technology to pre-process an image to simplify a background of the image, and perform object detection on the pre-processed image with the simplified background. For example, an embodiment of a semiconductor package may include technology to pre-process an image to subtract the background from the image and perform object detection on the pre-processed image with the background subtracted. Other embodiments are disclosed and claimed.