A computer can compute that the maximum expected velocity of that child-looking object on the sidewalk is min(hardcoded maximum velocity of a human, maximum observed velocity), and use that in order to quickly calculate whether or not it will have enough time to break, assuming the child-like object suddenly starts moving straight towards the road with maximum velocity.
Unless you expect rocket-propelled children being launched from the sidewalk, that's pretty much it.
(Of course the actual implementation within the entire system will be more complicated, but my point is - a computer can precisely compute what a human tends to intuit.)