Sumix SMX API and data writing and live display
Project description
Sumix SMX Camera for Python
API in Python that wraps Sumix SMX M8X C API.
Requires:
- Windows (32 or 64 bit)
- Python 32-bit
- Sumix SMX M8X C API
Note:
- Best to run in native Windows instead of virtual machine
- Most people rightly use 64-bit Python. However, here you will need a 32-bit Python install; it doesn't take much hard drive space.
Installation
-
Download Sumix SMX M8X C API
-
Extract ZIP file, run EXE as Administrator
-
install under C:/Sumix/, NOT C:/Program Files (x86)/Sumix
-
plug in your Sumix SMX-M8X(C) camera into a USB 2.0 port
-
be sure the camera is working properly with Sumix's demo program, get familiar with setting exposure, gain, ROI, etc.
-
Setup this program:
pip install -e .
Usage
Live stream images
To see a live demosaiced display:
python sumix_demo.py -p
Note that the default is NOT to show the live preview as the preview is computationally expensive.
Write fixed number of images to file
python sumix_demo.py -n 10 -f test.h5
that is written to HDF5 (viewable with HDFView) HDF5 is a very common format in the science and engineering community and has superceded TIFF and FITS for many applications
sumix_demo.py options
- -p show live preview (for focusing camera)
- -f save multipage TIFF or HDF5 based on the file extension '.tif' '.h5'
- -e set exposure (ms)
- -x set ROI width
- -y set ROI height
- -d decimation (binning)
- -g set image amplifier gain
Troubleshooting
You might have multiple copies of Python installed. For this program be sure you're using the 32-bit Python, perhaps by manually specifying on the Command Line the full path to Python.
File description
File Description
sumix_demo.py Sumix SMX-M8XC camera Python image acquisition and recording test program. test_demosaic.py loads TIFF or HDF5 saved files to playback video on screen (can also use ImageJ) demosaic.py Bayer demosaic for 'grbg' filters. rgb2gray.py RGB to gray, also RGBA to gray (discards alpha channel). sumixapi.py Wraps Sumix C Windows DLL in Python. Not every last function has been implemented or tested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pysumix-0.6.0.tar.gz
.
File metadata
- Download URL: pysumix-0.6.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 177ccb5395d2b90b3df29ae155a4faefb4723fc9526e5b7f5bf5cdd1483f9aba |
|
MD5 | c4dfeaf95c2eb8894a50a2e4a2494bc0 |
|
BLAKE2b-256 | 62e9cb6f124c1583c2c6fe8c5f3709442b05c89ec5e3218fe9f30d5d3d7abbb2 |
File details
Details for the file pysumix-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: pysumix-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ae328c6030352097b14e42897963c3825ea46b706596095a9c949f6603c172 |
|
MD5 | f15969bc6f6af234bd89796e50b391f1 |
|
BLAKE2b-256 | dbd8c2a129bc6f1cb6d09f953d6bde87ebda02608ee52282e00572aca063768c |