Skip to main content

Opencv implementations of the operators and tensor of aidge framework

Project description

Aidge backend OpenCV library

You can find in this folder the library that implements :

  • Computer vision databases
  • The OpenCV tensor, operators and stimulis

So far be sure to have the correct requirements to use this library

[TOC]

Quick Start

ℹ️ First, make sure to go through installation instructions required for every module.

Dependencies

Make sure to install the following tools:

[!TIP] On Windows at least, make sure to add the following environment variables:

  • OpenCV_DIR - It should be set to OpenCV build's folder, e.g. opencv-X.Y.Z\build
  • OPENCV_DLL_DIR - It should be set to OpenCV dll's folder, e.g. opencv-X.Y.Z\build\x64\vc16\bin

Aidge dependencies

  • aidge_core
  • aidge_backend_cpu
    • Only needed for tests.
# On Windows, from aidge/
# ----------[ C++ development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests

# ----------[ Python development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests -Python
# On Unix, from aidge/
# ----------[ C++ development]----------
./setup.sh -m core -m backend_cpu --clean --tests

# ----------[ Python development]----------
./setup.sh -m core -m backend_cpu --clean --tests --python

Using setup.ps1

[!NOTE] Windows only* *Unless you installed powershell on your system

# ----------[ C++ development]----------
# From aidge/
setup.ps1 -Modules backend_opencv -Clean -Tests

# ----------[ Python development]----------
# From aidge/
setup.ps1 -Modules backend_opencv -Clean -Tests -Python

[!TIP] Run Get-Help setup.ps1 --Full to display documentation

Using setup.sh

[!NOTE] Unix only*

# ----------[ C++ development]----------
# From aidge/
./setup.sh -m backend_opencv --clean --tests

# ----------[ Python development]----------
# From aidge/
./setup.sh -m backend_opencv --clean --tests --python

[!TIP] Run setup.sh -h to display documentation

Using pip

[!NOTE] If using virtual environment, make sure to use the same for every installation !

# ----------[ Python development]----------
# only in aidge/aidge/aidge_backend_opencv/
pip install . -v

# If you want to install test, do this instead
pip install .[test] -v

# Launch tests using pytest
pytest

[!TIP] -v is to enable verbose mode !

Development mode install

[!WARNING] Experimental Untested & experimental feature, see https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html#editable-installs.

pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve.

Using CMake

[!NOTE] Only for C++ development Don't use this method, if you wish to create a pip package Use pip instead.

A CMakePreset.json is available.

# Configure
cmake --preset clang-debug
# Build
cmake --build --preset clang-debug
# Install
cmake --install
# Test
ctest --test-dir build/

Feel free to create your own presets in CMakeUsersPresets.json by inheriting the ones available in CMakePresets.json.

FAQ

For windows set this env variables: OPENCV_DLL_DIR so that python can load OpenCV DLL. (This is not needed for C++)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aidge_backend_opencv-0.9.0-cp312-cp312-win_amd64.whl (42.0 MB view details)

Uploaded CPython 3.12Windows x86-64

aidge_backend_opencv-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (36.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

aidge_backend_opencv-0.9.0-cp311-cp311-win_amd64.whl (41.9 MB view details)

Uploaded CPython 3.11Windows x86-64

aidge_backend_opencv-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (36.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

aidge_backend_opencv-0.9.0-cp310-cp310-win_amd64.whl (41.9 MB view details)

Uploaded CPython 3.10Windows x86-64

aidge_backend_opencv-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (36.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file aidge_backend_opencv-0.9.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ca65718dc9ef24d9d59b2c86b37c037e9f1edfd41d93db10e5f52e9e686cad2
MD5 16a3692dc1b2ebbda0d97b404626f07c
BLAKE2b-256 00d36cce0e04a9ae56783469da2da12100f31f23da892ecc03c00858c884e142

See more details on using hashes here.

File details

Details for the file aidge_backend_opencv-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c57b11ffd6547a165daf6308a0abfee57d0b53f005647562cbae2129cb31a187
MD5 d52caa5bbfc9f9b7c19232e10f422ac5
BLAKE2b-256 d29a768160770befffd36f22eb77d92d981c516c535f1f1834e791691fc7f67d

See more details on using hashes here.

File details

Details for the file aidge_backend_opencv-0.9.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0746386c03c09e76a1cec34535378ac28aac2f9009616d6565433aa7bd33ec68
MD5 b263812acf638ff779511c936bbc1ab9
BLAKE2b-256 8f179e4c776c5370feb09aa36010c6e2a2a9839447afd1ac4bb282d7403e6874

See more details on using hashes here.

File details

Details for the file aidge_backend_opencv-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8f6e1df9ad27d6ae5a13b767d0918f096bab0ee834a767b213376be6179a3c4d
MD5 619efdb8e416b3c964f4e235d3e82f86
BLAKE2b-256 1cd290c9d65269db2fff2351e41368a5d6b7baf8f85bd99b326847b7574f79d1

See more details on using hashes here.

File details

Details for the file aidge_backend_opencv-0.9.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb4d9555bebf16c5c700219f889a8b0739b552ee4ec1d5e849bf02d4f37c6de4
MD5 d36b0a16864348d1fa3f9a9e2e74d90d
BLAKE2b-256 d0de70c244e00caa2f4fab2e12525cf13631241c20a89b7721da3e7dad36b1ab

See more details on using hashes here.

File details

Details for the file aidge_backend_opencv-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_opencv-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f23ed45b26b10e392947b5ae53156862ac1af6468c823a49ea355c5fadb8c61a
MD5 2a3b62c990db8f11960abad52c430238
BLAKE2b-256 6f597cd8514525ab3ab69f39a134ae77ec480d2b6ab0712e4f49aad9934fdeeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page