I'm currently building a lego spectrometer with a pi zero W. Currently the images are being saved to a removable USB drive which I then plug into my laptop and upload to spectral workbench from there. The spectrometer itself is being controlled by a python script which I initiate over SSH.
Is there a way to upload to images direct to spectral workbench? Maybe through an API?
Also it's really exciting to have Python API code. Perhaps if you're interested we could host it as the "official" python API interface for SpectralWorkbench (whatever that means :-P) -- maybe "recommended" is the better word -- and list it for Python folks to use alongside SpectralWorkbench.js. So maybe spectral-workbench.py? Awesome!
I've removed the features that are geared towards my specific spectrometer. I also had a go at tidying it up a little bit. I'm actually a science teacher by trade so my python knowledge is still a work in progress.
I forgot to mention, the response.text is a long html document which looks like it might be spectralworkbench.org/dashboard. Do I need to include my api token? I've attempted it but the response code comes back as 500.
This is amazing!!!! Super great. I'll reply back to the issue in there.
Has anyone tried using computer vision software (openCV) to analyze the spectral data on the Raspberry PI? This may have lots of advantages since you could process spectral data at video frame rates. Anyone interested in collaborating please submit a response. Thank You MaggPI
- Good opencv-install video : https://www.youtube.com/watch?v=j6RD3X94rEA
2)It looks like Mr Warren may be able to add the image sequencer on the Raspberry PI so you may have a non-website solution
3)It still may be worthwhile to use OpenCV for spectra preprocessing. For example, you could adjust camera integration time/white balance by feedback from analyzed spectra. The general approach may be to use a masked histogram but there may be better ways.
Sure, so far I'm just doing test with CFL and halogen bulbs. The spectra I've uploaded do register as a bit dim, so I'm having to tinker with the camera settings in python. Can you use my username to see what I've uploaded?