Skip to main content

Depthai-Mock

This tool allows you to record the packets produced by DepthAI device into your disk and then play them back again as they would be produced normally - but without actually running the DepthAI

Installation

python3 -m pip install depthai-mock

Usage

usage: depthai_mock [-h] [-nd] [-t TIME] [-ai] [-b BLOB] [-bc BLOB_CONFIG] [-p PATH] [-s STREAMS [STREAMS ...]]

optional arguments:
  -h, --help            show this help message and exit
  -nd, --no-display     Do not try display the incoming frames
  -t TIME, --time TIME  Limits the max time of the recording. Mandatory whenused with -nd (--no-display) option
  -ai, --enable-ai      Store also the nnet results
  -b BLOB, --blob BLOB  Path to nnet model .blob file
  -bc BLOB_CONFIG, --blob-config BLOB_CONFIG
                        Path to nnet model config .json file
  -p PATH, --path PATH  Path where to store the captured data
  -s STREAMS [STREAMS ...], --streams STREAMS [STREAMS ...]
                        Define which streams to enable Format: stream_name or stream_name,max_fps Example: -s metaout previewout Example: -s metaout previewout,10 depth_sipp,10

Having DepthAI connected, run

depthai_mock -s previewout

then, when data folder is there, you can unplug the DepthAI and run

cd depthai_mock
python3 test.py -p ../data

Metadata

Release files for depthai-mock 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depthai-mock 0.0.3
File Size Uploaded
depthai_mock-0.0.3.tar.gz 10.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for depthai-mock 0.0.3
File Interpreter ABI Platform
depthai_mock-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 MB

Release files / depthai_mock-0.0.3.tar.gz

Download URL depthai_mock-0.0.3.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
0aedc6888038a23a46fdbfc655c59057b98820e2975b18a84e3b0753efd3b783
BLAKE2b-256 checksum
How to use checksums
db77a16beb7ff7d2d610d4e7542ade4f5747fcd11ef27e7a9d67292ea01585b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / depthai_mock-0.0.3-py3-none-any.whl

Download URL depthai_mock-0.0.3-py3-none-any.whl
Size 10.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
141df12e72abb3f8c0d1300f50b15bd2940e7d4f2c36a253f5f3d461ee49b7ca
BLAKE2b-256 checksum
How to use checksums
e2bae30ee344d66a568e4c98e15e147574890b19bc87bf2c8aa647b044b49356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page