No actual ghosts were used in the making of this device.
That is exactly what this Raspberry Pi object detection project demonstrates. You can build a fully working object detection ...