support
Getting started
install dependence
gcc version: 14
prepare opencv (at least version 4.2.0)
sudo apt-get install libopencv-dev
prepare onnxruntime
visit onnxruntime release and download proper version.
build demo with bash followed
ORT_HOME=${PATH_TO_ONNXRUNTIME}
# Note: Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
# "OpenCV_DIR" to a directory containing one of the following names:
# OpenCVConfig.cmake
# opencv-config.cmake
OPENCV_DIR=${PATH_TO_OPENCV_CMAKE_DIR}
mkdir build && pushd build
cmake .. -DORT_HOME=${ORT_HOME} -DOpenCV_DIR=${OPENCV_DIR} -DCMAKE_BUILD_TYPE=Debug -DTEST=OFF -DDEMO=ON
make install -j`nproc`
popd
# Or with cross compiler:
CROSS_TOOL=${PATH_TO_COMPILER_PREFIX}-
SYSROOT=${PATH_TO_SYSROOT}
cmake .. -DORT_HOME=${ORT_HOME} -DOpenCV_DIR=${OPENCV_DIR} \
-DCMAKE_C_COMPILER=${CROSS_TOOL}gcc -DCMAKE_CXX_COMPILER=${CROSS_TOOL}g++ -DCMAKE_SYSROOT=${SYSROOT}
run demo
./classification_demo <model_file_path> <label_file_path> <image_file_path>
or
./classification_demo <config_file_path> <image_file_path>
./detection_demo <model_file_path> <label_file_path> <image_file_path> <save_img_path>
or
./detection_demo <config_file_path> <image_file_path> <save_img_path>
./detection_stream_demo [-h <resize_height>] [-w <resize_width>] [-f] <model_file_path> <label_file_path> <input>
or
./detection_stream_demo [-h <resize_height>] [-w <resize_width>] [-f] <config_file_path> <input>
./detection_video_demo <model_file_path> <label_file_path> <video_file_path> <dst_file_path> (end with .avi)
or
./detection_video_demo <config_file_path> <video_file_path> <dst_file_path> (end with .avi)
./estimation_demo <det_model_file_path> <det_label_file_path> <pose_model_file_path> <image_file_path> <save_img_path>
or
./estimation_demo <det_config_file_path> <pose_config_file_path> <image_file_path> <save_img_path>
./tracker_stream_demo [-h <resize_height>] [-w <resize_width>] [-f] <det_model_file_path> <det_label_file_path> <pose_model_file_path> <input>
or
./tracker_stream_demo [-h <resize_height>] [-w <resize_width>] [-f] <det_config_file_path> <pose_config_file_path> <input>
Using environment variables to implement functions
| Environment variable name | Remarks |
|---|---|
| SUPPORT_SHOW (stream demo) | -1 means not to display |
| SUPPORT_SHOWFPS (stream demo) | If there is content, fps will be displayed |
| SUPPORT_PROFILING_PROJECTS | Generated profile file address |
| SUPPORT_LOG_LEVEL | The range is 0-4 |
| SUPPORT_GRAPH_OPTIMIZATION_LEVEL | Graph optimization level (ort_disable_all, ort_enable_basic, ort_enable_extended, ort_enable_all) |
| SUPPORT_OPT_MODEL_PATH | Optimized model path |
| SUPPORT_DISABLE_SPACEMIT_EP | 1 means to disable spacemit-ep |
| SUPPORT_OPENCV_THREAD_NUM | The number of threads used by opencv(>= 4.x) |
Description of formats related to label files, configuration files, and model files
Model files format: ONNX(Open Neural Network Exchange)
label files format: using text document, here is a recommended example
configuration files format: using json, the recommended configuration file content is as here
Python Support
See README.md for more details.
Metadata
Release files for bianbuai 1.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 | Provenance | Actions |
|---|---|---|---|---|
| bianbuai-1.1.1.tar.gz | 946.7 kB | Without provenance | Details for bianbuai-1.1.1.tar.gz |
Release files / bianbuai-1.1.1.tar.gz
| Download URL | bianbuai-1.1.1.tar.gz |
|---|---|
| Size | 946.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85f0c4ade24aae58fd87122b0b2a723177afa9526cb15106d0aa7b5435055398
|
|
BLAKE2b-256 checksum How to use checksums |
8ca0823c1fcc8f3945f99072ef26e59906eef23f88b330b6db901800ba3a4051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for bianbuai 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.