SpeckCollect gathers events from a SynSense Speck2fDevKit and generates temporal representations of event streams
Project description
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.
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 SpeckCollect-0.1.1.tar.gz
.
File metadata
- Download URL: SpeckCollect-0.1.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b649b4be2e6d8e7853d62d3ded45b123ec4bbc32d20a3d334adbca662a6bb4 |
|
MD5 | ebcebec18b8d72d9390faf47a0ae5967 |
|
BLAKE2b-256 | c5f1c72684426bc30ebb9171825b21b5696603acb0c1ef6cd73cf401342b9533 |
File details
Details for the file SpeckCollect-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: SpeckCollect-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82fcd1d1549699bf2a9c4727bd6ee4fb3a197dffff708b36cf89c0465e0f120e |
|
MD5 | 158a6537d2eefaea212e5a5e648ff74d |
|
BLAKE2b-256 | 793ab007ee17b7481340b912aa6fe2191455d4f087763471645661df34d58684 |