Re: PoorMan's Camera
Napsal: 28. 03. 2021, 11:35
Složka RasACam musí obsahovat všechny stažené soubory.
Kód: Vybrat vše
astroberry@astroberry:~/RasACam $ dir
als_jobs dcraw image.tiff picraw.sh README.md
Camera_stream.py fan.py install.sh progressbar.py revision.py
Camera_stream_zoom.py foc.sh LICENSE RasACam_logo.gif Video_server.py
cam.py image.jpg pichr.sh rasacam.sh
Kód: Vybrat vše
astroberry@astroberry:~/RasACam $ ./rasacam.sh
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Traceback (most recent call last):
File "progressbar.py", line 41, in <module>
a = c * int(a) # set interval of the bar
NameError: name 'c' is not defined
./rasacam.sh: line 6: 2516 Killed python3 cam.py
Kód: Vybrat vše
astroberry@astroberry:~/Downloads $ dir
als als-0.7-dev-e9dc7de\ (1).tgz RasACam-main
Kód: Vybrat vše
astroberry@astroberry:~/RasACam/als_jobs $ dir
scan work
Kód: Vybrat vše
2021-03-28 13:22:35,784 MainThread __main__ INFO Astro Live Stacker version 0.7-dev-e9dc7de started in 935.080 ms.
2021-03-28 13:22:56,194 MainThread als.logic INFO Starting new session...
2021-03-28 13:22:56,208 MainThread als.logic INFO Input scanner started
2021-03-28 13:22:56,210 MainThread als.logic INFO Session running in mode mean with alignment True
2021-03-28 13:23:23,770 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:23,789 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:23,831 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 40.771 ms
2021-03-28 13:23:23,857 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:23,859 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 0.547 ms
2021-03-28 13:23:23,969 Dummy-5 als.processing INFO Start post-process on Stacking result
2021-03-28 13:23:25,138 Dummy-5 als.processing INFO End post-process on Stacking result in 1168.308 ms
2021-03-28 13:23:25,886 Dummy-6 als.processing INFO Start save on Process result
2021-03-28 13:23:35,634 Dummy-6 als.io.output INFO Image saved : /home/astroberry/RasACam/als_jobs/work/stack_image.jpg
2021-03-28 13:23:35,635 Dummy-6 als.processing INFO End save on Process result in 285.102 ms
2021-03-28 13:23:35,658 Dummy-6 als.processing INFO Start save on Process result
2021-03-28 13:23:35,882 Dummy-6 als.io.output INFO Image saved : /home/astroberry/RasACam/als_jobs/work/web_image.jpg
2021-03-28 13:23:35,882 Dummy-6 als.processing INFO End save on Process result in 223.358 ms
2021-03-28 13:23:47,788 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:52,718 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:52,785 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 65.231 ms
2021-03-28 13:23:52,800 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:53,670 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:23:53,671 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 870.259 ms
2021-03-28 13:24:16,929 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:17,013 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:17,121 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 56.862 ms
2021-03-28 13:24:17,210 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:18,222 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:24:18,223 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 1012.620 ms
2021-03-28 13:24:46,104 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:46,185 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:46,242 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 54.900 ms
2021-03-28 13:24:46,433 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:47,437 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:24:47,438 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 1003.997 ms
2021-03-28 13:23:23,971 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:24,039 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:24,116 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 73.161 ms
2021-03-28 13:23:24,229 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:25,306 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:23:35,350 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 11117.596 ms
2021-03-28 13:23:47,143 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:52,786 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:52,917 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 126.641 ms
2021-03-28 13:23:52,981 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:23:53,966 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:23:53,967 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 985.513 ms
2021-03-28 13:24:17,206 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:17,272 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:17,335 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 62.158 ms
2021-03-28 13:24:17,453 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:18,443 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:24:18,443 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 981.151 ms
2021-03-28 13:24:46,253 Thread-1 als.io.input INFO Successful image read from FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:46,313 Dummy-3 als.processing INFO Start pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:46,375 Dummy-3 als.processing INFO End pre-process on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 59.452 ms
2021-03-28 13:24:46,495 Dummy-4 als.processing INFO Start stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits
2021-03-28 13:24:47,495 Dummy-4 als.stack WARNING Could not stack image FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits : Reference stars in source image are less than the minimum value (3).. Image is DISCARDED
2021-03-28 13:24:47,496 Dummy-4 als.processing INFO End stack on FILE : /home/astroberry/RasACam/als_jobs/scan/image.fits in 934.546 ms
Kód: Vybrat vše
astroberry@astroberry:~/RasACam $ ./rasacam.sh
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Kód: Vybrat vše
astroberry@astroberry:~/RasACam $ ./rasacam.sh
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Traceback (most recent call last):
File "progressbar.py", line 41, in <module>
a = c * int(a) # set interval of the bar
NameError: name 'c' is not defined
Ano, image.fits je správně. Ten stačí přemístit do jiné složky a pak je znovu vložit do složky scan.Heavy píše:Ne v /..RasACam/als_jobs/scan
mám dva soubory
image.fits a image2.fits
To zkontroluji asi zítra. Dnes už to nedám ..Doporucil bych zkontrolovat propojeni/pasek od kamery k Pi.
Kód: Vybrat vše
astroberry@astroberry:~/RasACam $ pip install thinker
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting thinker
Downloading https://files.pythonhosted.org/packages/f9/bc/492c5844b44119f459e1c635ff5657c2e67fde9056b083d0dbfd47cc873a/thinker-1.1.1.tar.gz
Collecting rethinkdb (from thinker)
Downloading https://files.pythonhosted.org/packages/0b/36/7af10e960a4f37c0f0752207b99eb719cb35f058fb03c1c853a15b776a0e/rethinkdb-2.4.8-py2.py3-none-any.whl (160kB)
100% |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 163kB 1.2MB/s
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from rethinkdb->thinker) (1.12.0)
Building wheels for collected packages: thinker
Running setup.py bdist_wheel for thinker ... done
Stored in directory: /home/astroberry/.cache/pip/wheels/ad/4c/a7/3303beb728d26926fb7c9186727f4444998cbd45a814932f87
Successfully built thinker
Installing collected packages: rethinkdb, thinker
The scripts rethinkdb-dump, rethinkdb-export, rethinkdb-import, rethinkdb-index-rebuild, rethinkdb-repl and rethinkdb-restore are installed in '/home/astroberry/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed rethinkdb-2.4.8 thinker-1.1.1
astroberry@astroberry:~/RasACam $ ./rasacam.sh
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Traceback (most recent call last):
File "progressbar.py", line 41, in <module>
a = c * int(a) # set interval of the bar
NameError: name 'c' is not defined
Traceback (most recent call last):
File "progressbar.py", line 41, in <module>
a = c * int(a) # set interval of the bar
NameError: name 'c' is not defined
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
convert-im6.q16: Cannot read TIFF header. `image.tiff' @ error/tiff.c/TIFFErrors/604.
convert-im6.q16: no images defined `image.fits' @ error/convert.c/ConvertImageCommand/3258.
mv: cannot stat 'image.fits': No such file or directory
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
convert-im6.q16: Cannot read TIFF header. `image.tiff' @ error/tiff.c/TIFFErrors/604.
convert-im6.q16: no images defined `image.fits' @ error/convert.c/ConvertImageCommand/3258.
mv: cannot stat 'image.fits': No such file or directory
^CTraceback (most recent call last):
File "cam.py", line 71, in <module>
app.display()
File "/usr/local/lib/python3.7/dist-packages/guizero/App.py", line 74, in display
self.tk.mainloop()
File "/usr/lib/python3.7/tkinter/__init__.py", line 1283, in mainloop
self.tk.mainloop(n)