pyserfilesreader
pyserfilesreader is a library helping you to use SER video files.
SER video files are used in astronomy to provide uncompressed container with header informations
CAUTION : don't read -yet- color (RGB) ser files.
dependencies
LIBRARY :
- numpy
- cv2
pip3 install numpy cv2
GUI :
- pysimplegui-qt
- cv2
- numpy
pip3 install PySimpleGUIQt
capabilities
reading a ser file saving as png saving as fit (another astronomical use file format)
inside the loop
all datas are numpy array
methods
.read() : return a numpy frame and go to the next frame
.getHeader() : return SER file header in a dictionnary
.readFrameAtPos(n:int) : return frame number n.
.getLength() : return number of frame in SER file.
.getWidth() : return width of a frame
.getHeight() : return height of a frame
.getCurrentPosition(): return current cursor value
.setCurrentPosition(n:int) : set the cursor at position n. Return position if OK, -1 if something's wrong.
.saveFit(filename) : save as FIT file filename frame at "cursor". Return (OK_Flag, filename)
.savePng(filename) : save as PNG file filename frame at "cursor". Return (OK_Flag, filename)
.nextFrame() : add 1 to cursor i.e. go to next frame. Return current cursor value. -1 if the end of th video.
.previousFrame() : remove 1 to cursor i.e. go to previous frame. Return current cursor value. -1 if it's from first frame..
.getName() return name of SER file.
Release files for serfilesreader 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serfilesreader-0.0.8.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serfilesreader-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.0 kB
Release files / serfilesreader-0.0.8.tar.gz
| Download URL | serfilesreader-0.0.8.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd6af99e36883f00bef38ef435440e360e7a3015164c387411e082c360c4ca40
|
|
BLAKE2b-256 checksum How to use checksums |
70b556bee503a57f9ea8b96c0775d031b73f578d646522eecc898327d9342baa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / serfilesreader-0.0.8-py3-none-any.whl
| Download URL | serfilesreader-0.0.8-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cb60c668dac622742300b99683a8f175269b742429b761baddd9ebf5b1a6f7f
|
|
BLAKE2b-256 checksum How to use checksums |
1578523947668cc1af6e54940370b63f40911ba92055a2a298ce3d2f95ab9b8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|