SpeckCollect
A simple module that collects events from a SynSense Speck2fDevKit and creates temporal frame representations of the collected events. Users can set the time window to collect events over, essentially the 'framerate'. Simply counts the number of events incurred for each pixel (128x128).
Currently, only considers positive events - functionality to be improved in later iterations to include both positive, negative, only negative, and merged events (v0.2.0).
Usage
Usage is very simple. First, install all the dependencies. Note, that currently samna required python <=3.11 so it's recommended you create a new conda environment to avoid issues with other libraries and dependencies.
# Recommended: create new conda environment
conda create -n speckcollect
conda activate speckcollect
# Install dependencies
pip install speckcollect
Download the repository and navigate to the repository directory.
# Clone repository
git clone git@github.com:AdamDHines/SpeckCollect.git
# Set current working directory
cd ~/SpeckCollect
To run the SpeckCollect module, simply use the main.py script which consists of a few arguments.
- --time_int - sets the time in which to collect events over (default 0.033s or 30fps)
- --directory - set the directory to save the data to (default ./speckcollect/data)
- --exp - set a name for the experiment (default
exp)
# Run the SpeckCollect over a 1s timebin and set the experiment name to TEST001
python main.py --time_int 1 --exp TEST001
The output will include a TEST001.npy file of the raw events collected and a folder TEST001 which contains .png files of frames for the temporal representation of events.
Metadata
Release files for SpeckCollect 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| SpeckCollect-0.1.1.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SpeckCollect-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB
Release files / SpeckCollect-0.1.1.tar.gz
| Download URL | SpeckCollect-0.1.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79b649b4be2e6d8e7853d62d3ded45b123ec4bbc32d20a3d334adbca662a6bb4
|
|
BLAKE2b-256 checksum How to use checksums |
c5f1c72684426bc30ebb9171825b21b5696603acb0c1ef6cd73cf401342b9533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / SpeckCollect-0.1.1-py3-none-any.whl
| Download URL | SpeckCollect-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82fcd1d1549699bf2a9c4727bd6ee4fb3a197dffff708b36cf89c0465e0f120e
|
|
BLAKE2b-256 checksum How to use checksums |
793ab007ee17b7481340b912aa6fe2191455d4f087763471645661df34d58684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|