Ultrafast dynamic machine vision with spatiotemporal photonic computing