The Raspberry Pi boards have a dedicated camera connector and both those and the matching camera are relatively small.
Not exactly cheap, but not crazy prices either..
eg.
https://thepihut.com/products/raspberry-pi-camera-module
The Pi has plenty of CPU power for video processing and can take a suitable micro WiFi module in one of the USB sockets, so it gives you a lot of facilities in one go.
No idea if it would be physically compatible, just something to consider.