leswright1977 / PySpectrometer

Raspberry Pi Spectrometer
Apache License 2.0
662 stars 105 forks source link

Allow video_index, resolution and fps to be specified on commandline #19

Open bobek opened 3 years ago

bobek commented 3 years ago

This will allow for use on different computers and with weird USB cameras.

My USB camera is aliexpress breed, which is quite picky about resolution+fps combinations. Also as I am using notebook as a device for doing analysis, the video0 is typically internal camera.

I came across https://github.com/leswright1977/PySpectrometer/pull/13 only after introducing these changes, but approach seems to be quite compatible. I would also like to second @rafl question about code organization and suggest having just one file pyspectrometer.py and use git tags for version tracking.