Stránka 9 z 10

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 11:35
od Psion
Složka RasACam musí obsahovat všechny stažené soubory.

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 12:31
od Heavy
Tyto soubory jsem měl v Downloads/RasACam-main, překopíroval jsem je tedy do /home/astroberry/RasACam.
Přejmenoval jsem als na als_jobs, upravil v als cesty, ale stejně to neběhá.. Omlovám se, asi jsem na tohle tupoun :oops:

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
Nemůže to být tím, že to zkouším "bez objektivu"?

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 12:54
od Psion
Objektiv není potřeba.

Základní předpoklad pro funkčnost je, aby celý software ALS (jeho složka) byl ve složce /home/Astroberry/Downloads.
Snímek obrazovky 2021-03-28 v 12.52.19.png
Snímek obrazovky 2021-03-28 v 12.52.19.png (43.87 KiB) Zobrazeno 1407 x
Druhá podmínka je, že se vytvoří v adresáři RasACam složka als_jobs a ta obsahuje dva adresáře scan a work, se kterými program ALS pracuje.
Snímek obrazovky 2021-03-28 v 12.50.01.png
Snímek obrazovky 2021-03-28 v 12.50.01.png (29.69 KiB) Zobrazeno 1407 x

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 13:20
od Heavy

Kód: Vybrat vše

astroberry@astroberry:~/Downloads $ dir
als  als-0.7-dev-e9dc7de\ (1).tgz  RasACam-main
To tam mám.

Kód: Vybrat vše

astroberry@astroberry:~/RasACam/als_jobs $ dir
scan  work
Nemusí se po tom přesunu soborů z Downloads\RasACam-main do \RasACam opravit "nějaké oprávnění", co se dělalo na začátku?

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 13:27
od Heavy
Přikládám ALS log

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

Re: PoorMan's Camera

Napsal: 28. 03. 2021, 14:44
od Psion
Ještě je potřeba mrknout do složky als, pokud tam je program (soubor als-0.7-dev-e9dc7de), ten je potřeba přejmenovat na als, ale to už máš, protože to evidentně funguje. Oprávnění by mělo být u spouštěných skriptů nastaveno po instalaci, ale to by hned hlásilo, pokud by chyběly práva ke spuštění (nastavuje se pomoci chmod +x skript.sh). Samozřejmě ALS bez hvězd není možné použít v Stacking modu (funkce Align), tedy je nutné přes stiknutím START odškrnout volbu Align pod tlačítkem.

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 20:25
od Heavy
Zdravím, ještě tam mám nějaké chyby.

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
I když nemám zaškrtnuto Align, tak se mi po skončení sekvence nic nezobrazí. Ani v ALS a nespustí se vlc.
Kamerka taky vykazuje chyby v obraze, pomocí příkazu raspistill -o ...
Někdy je obrázek OK, někdy vodorovná čára a někdy takhle...
Bohužel se tomu teď mohu věnovat jen pár minut denně. :cry:
Kdyby to bylo v každém obrázku, tak bych řekl, že je po ní..., ale takhle nevím.
Děkuji za rady ;)

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 20:47
od Psion
Těch úvodních chyb si nemusíš všímat, je to nastavením rozlišení, odstranit to rozumně nejde.

Podívejt se do složky /RasACam/als_jobs/scan zda tam je obrázek picture.fits. Pokud je spuštěno ALS tl. START, tak by na konci expozice mělo v okně logs ukazovat průběh načtení souboru FITS. Vyzkoušet se to dá i bez expozice, tedy do složky /RasACam/als_jobs/scan ručně zkopírovat obrázek picture.fits. Chyby v obraze jsem nezaznamenal, v čem je obrázek otevřený?

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:07
od zdenek
Jak na ten obrazek koukam silne mi to pripomina problem, ketry jsem mel pred casem s jinou kamerou. Obcas dala obrazek dobry, obcas byl velmi podobne "postizen" chybou prenosu. Nakonec byl problem v konektoru. Doporucil bych zkontrolovat propojeni/pasek od kamery k Pi.

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:10
od Heavy
Ne v /..RasACam/als_jobs/scan
mám dva soubory
image.fits a image2.fits
picture.fits nikde nevidím.. Nevím kde bych sehnal obrázek ve formatu fits. Šlo by to pomocí příkazu raspistill?
Obrázek je otevřen v prohlížeči obrázků w10, ale stejně jsem to i viděl napřímo na Rpi na monitoru.
--
Pokud kliknu Make picture (JPEG).. zobrazí jen chybu viz výše (asi to rozlišení..)
Make picture (RAW)...

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

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:13
od Psion
Heavy píše:Ne v /..RasACam/als_jobs/scan
mám dva soubory
image.fits a image2.fits
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.

Zkus ještě instalovat toto, zadej v terminálu příkaz: pip install thinker (raspberry musí být připojeno k internetu)

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:16
od Heavy
A mám ho přejmenovat na picture.fits?

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:17
od Psion
ne, tenhle název používá program, spletl jsem název, nejsem u raspberry.

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:18
od Heavy
Doporucil bych zkontrolovat propojeni/pasek od kamery k Pi.
To zkontroluji asi zítra. Dnes už to nedám ..:)
Děkuji

Re: PoorMan's Camera

Napsal: 30. 03. 2021, 21:36
od Heavy

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)
Jestli to chapu spravne, tak ma problem se spojit s kamerou..
Mozna to bude opravdu tim paskem, zitra vecer rozeberu a uvidim.
Dekuji za rady