Wondering if there's any such thing as a pc board camera with a motion detector circuit on board that would give a logic high output anytime motion is detected in the field of view-

I'm thinking that you could focus right in on something, and it would only trigger if there was a change in the scene being viewed, not on anything in the area but not seen by the camera, as a typical motion sensor would do.

An example- focus in on a hole in your baseboard, and if at any time a mouse appears- bingo! a flash goes off or something, triggered by the camera.