maxbbraun / pisight

Apple iSight with a Raspberry Pi inside
https://pisight.camera
MIT License
416 stars 20 forks source link

Field of view issues #5

Open samnunn opened 3 years ago

samnunn commented 3 years ago

Hi Max!

Awesome project mate. I've bought a second-hand iSight and I'm in the throes of recreating this setup for myself. One question though: why did you switch down to 720p?

I used Dave's original 1080 setup and I noticed that the field of view was quiet a lot narrower than expected. Is this related? I haven't actually gotten your fork working yet, so I'm yet to compare the pair.

Many thanks.

Sam

maxbbraun commented 3 years ago

Hi Sam!

Yeah, I had some issues with the original uvc-gadget implementation and I think field of view was part of it. Overall, it felt like the code was written for 720p anyway (e.g. this), so I reverted it to that and never got back to trying to get 1080p or more to work. I'm not sure if anything would be fundamentally in the way of that though.

Let me know how it goes! Max

John-K commented 3 years ago

Per https://www.raspberrypi.org/documentation/raspbian/applications/camera.md the Camera Module image It would appear that 1640x922 would be the sweet-spot with full FOV and 2x2 pixel binning.

samnunn commented 3 years ago

Awesome notes folks! I'm a little lost about how I would implement 1640x922 successfully, though. Any pointers?

iliesaya commented 3 years ago

I agree that it would be nice to have the full field of view of the camera

muffinresearch commented 3 years ago

I had similar issues with zoom randomly switching to a higher resolution (which showed as very zoomed in) during conf calls using showmewebcam v1.70. Following some helpful directions from @htruong who mentioned a way of enabling github actions on the fork to enable image builds there, I patched the list of available resolutions to fix it to 1280x720 here. The built images from that PR are available by clicking details on the relevant build and looking at the artifacts dropdown. Hopefully at some point more control for resolutions will be exposed to users without the need to create a new image restricting resolutions.

FWIW: I found getting the sd card out to re-flash it was possible without removing the camera module by unscrewing the zero and carefully hinging the sd card end to be able to get to it. At some point showmewebcam will probably facilitate updates via usb. See https://github.com/showmewebcam/showmewebcam/issues/54