diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml
new file mode 100755
index 00000000..72110019
--- /dev/null
+++ b/.github/workflows/build_linux.yml
@@ -0,0 +1,63 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Build test for Linux
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [ main, dev ]
+ pull_request:
+ branches: [ main, dev ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# permissions: write-all
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # Only run job for specific repository
+ if: github.repository == 'sipeed/MaixCDK'
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.11"] # MaixCAM use 3.11
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Build MaixCDK Examples
+ run: |
+ echo "-- Check python version must python 3.11 --"
+ python3 -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ python -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ whereis python
+ whereis python3
+ # export PATH=~/.local/bin/:$PATH
+ echo "--------------------------------"
+ echo "-- Install requirements first --"
+ echo "--------------------------------"
+ python -m pip install -r requirements.txt
+ echo "--------------------------------"
+ echo "-- Build Test for Linux now --"
+ echo "--------------------------------"
+ cd test/test_examples
+ chmod +x test_cases.sh
+ ./test_cases.sh linux 0
+
+ - name: Build doc
+ run: |
+ pip3 install teedoc
+ cd docs
+ echo "== install plugins =="
+ teedoc install
+ echo "== start build =="
+ teedoc build
+ echo "== build complete =="
diff --git a/.github/workflows/build_maixcam.yml b/.github/workflows/build_maixcam.yml
new file mode 100755
index 00000000..c1913273
--- /dev/null
+++ b/.github/workflows/build_maixcam.yml
@@ -0,0 +1,69 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Build test for MaixCAM
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [ main, dev ]
+ pull_request:
+ branches: [ main, dev ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# permissions: write-all
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # Only run job for specific repository
+ if: github.repository == 'sipeed/MaixCDK'
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.11"] # MaixCAM use 3.11
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Build MaixCDK Examples
+ run: |
+ echo "-- Check python version must python 3.11 --"
+ python3 -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ python -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ whereis python
+ whereis python3
+ # export PATH=~/.local/bin/:$PATH
+ echo "--------------------------------"
+ echo "-- Install requirements first --"
+ echo "--------------------------------"
+ python -m pip install -r requirements.txt
+ echo "--------------------------------"
+ echo "-- Build Test for MaixCAM now --"
+ echo "--------------------------------"
+ cd test/test_examples
+ chmod +x test_cases.sh
+ ./test_cases.sh maixcam 0
+ echo "------------------------------------"
+ echo "-- Build Projects for MaixCAM now --"
+ echo "------------------------------------"
+ cd ../../projects
+ chmod +x build_all.sh
+ ./build_all.sh
+
+ - name: Build doc
+ run: |
+ pip3 install teedoc
+ cd docs
+ echo "== install plugins =="
+ teedoc install
+ echo "== start build =="
+ teedoc build
+ echo "== build complete =="
diff --git a/.github/workflows/build_maixcam_pulish_doc.yml b/.github/workflows/build_maixcam_pulish_doc.yml
new file mode 100755
index 00000000..62e7210f
--- /dev/null
+++ b/.github/workflows/build_maixcam_pulish_doc.yml
@@ -0,0 +1,83 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Build and publish docs for MaixCAM
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [ main ]
+ # pull_request:
+ # branches: [ main ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+permissions: write-all
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # Only run job for specific repository
+ if: github.repository == 'sipeed/MaixCDK'
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.11"] # MaixCAM use 3.11
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Build MaixCDK API doc
+ run: |
+ echo "-- Check python version must python 3.11 --"
+ python3 -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ python -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)'
+ whereis python
+ whereis python3
+ # export PATH=~/.local/bin/:$PATH
+ echo "--------------------------------"
+ echo "-- Install requirements first --"
+ echo "--------------------------------"
+ python -m pip install -r requirements.txt
+ echo "--------------------------------"
+ echo "-- Build API DOC for MaixCAM now --"
+ echo "--------------------------------"
+ cd examples/nn_yolov5
+ maixcdk distclean
+ maixcdk build -p maixcam
+
+ - name: Push doc to github pages
+ run: |
+ pip3 install teedoc
+ cd docs
+ echo "== install plugins =="
+ teedoc install
+ echo "== start build =="
+ teedoc build
+ echo "== build complete =="
+ remote_addr=`git remote get-url --push origin`
+ remote_addr=`echo $remote_addr| awk -F'://' '{print $2}'`
+ user_name=`git log -1 --pretty=format:'%an'`
+ user_email=`git log -1 --pretty=format:'%ae'`
+ echo "== checkout gh-pages branch =="
+ cd out
+ cp -r ../../.github .
+ git config --global init.defaultBranch gh-pages
+ git init
+ git config user.name "${user_name}"
+ git config user.email ${user_email}
+ remote_addr="https://Neutree:${{ secrets.DISPATCH_PAT }}@${remote_addr}"
+ echo "-- user ${user_name}"
+ echo "-- remote addr: ${remote_addr}"
+ git remote add origin "${remote_addr}"
+ echo "== add web files =="
+ git add -A
+ git commit -m "Rebuild MaixCDK doc by commit $GITHUB_REF"
+ git push origin HEAD:gh-pages --force
+ echo "== push complete =="
diff --git a/.github/workflows/sync_gitee.yml b/.github/workflows/sync_gitee.yml
new file mode 100644
index 00000000..13998a99
--- /dev/null
+++ b/.github/workflows/sync_gitee.yml
@@ -0,0 +1,48 @@
+# This is a basic workflow to help you get started with Actions
+
+name: sync code to gitee
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+# on:
+# push:
+# branches: [ master ]
+# pull_request:
+# branches: [ master ]
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [ main ]
+ # pull_request:
+ # branches: [ main ]
+
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ sync_gitee:
+ name: sync repo to gitee
+ # Only run job for specific repository
+ if: github.repository == 'sipeed/MaixCDK'
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - name: checkout code from github
+ uses: actions/checkout@v2
+
+ # Runs a set of commands using the runners shell
+ - name: sync shell cmd
+ run: |
+ GITEE_GIT_ADDR="git@gitee.com:Sipeed/MaixCDK.git"
+ git fetch --unshallow
+ SSHPATH="$HOME/.ssh"
+ rm -rf "$SSHPATH"
+ mkdir -p "$SSHPATH"
+ echo "${{ secrets.GITEE_SYNC_ACCESSS_KEY }}" > "$SSHPATH/id_rsa"
+ chmod 600 "$SSHPATH/id_rsa"
+ sudo sh -c "echo StrictHostKeyChecking no >>/etc/ssh/ssh_config"
+ git remote add upstream $GITEE_GIT_ADDR
+ git push upstream main:main --force
diff --git a/.github/workflows/trigger_wiki.yml b/.github/workflows/trigger_wiki.yml
new file mode 100755
index 00000000..a5888170
--- /dev/null
+++ b/.github/workflows/trigger_wiki.yml
@@ -0,0 +1,45 @@
+# This is a basic workflow to help you get started with Actions
+
+name: trigger wiki
+
+# Controls when the action will run.
+on:
+ push:
+ branches:
+ - gh-pages
+ pull_request:
+ branches:
+ - gh-pages
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+permissions: write-all
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ trigger_wiki:
+ name: trigger sipeed_wiki
+ # Only run job for specific repository
+ # if: github.repository == 'sipeed/MaixPy'
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+ # strategy:
+ # matrix:
+ # python-version: [3.8]
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ - name: trigger sipeed wiki request
+ uses: actions/github-script@v6
+ with:
+ github-token: ${{ secrets.DISPATCH_PAT }}
+ script: |
+ const result = await github.rest.repos.createDispatchEvent({
+ owner: 'sipeed',
+ repo: 'sipeed_wiki',
+ event_type: 'update_maixcdk_doc',
+ client_payload: {"key": "value"}
+ })
+ console.log(result);
diff --git a/maixcdk/404.html b/maixcdk/404.html
new file mode 100644
index 00000000..d7658820
--- /dev/null
+++ b/maixcdk/404.html
@@ -0,0 +1,220 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/maixcdk/api/api.json b/maixcdk/api/api.json
new file mode 100644
index 00000000..4dfe5957
--- /dev/null
+++ b/maixcdk/api/api.json
@@ -0,0 +1,36568 @@
+{
+ "type": "top_module",
+ "members": {
+ "maix": {
+ "type": "module",
+ "doc": {
+ "breif": "MaixPy C/C++ API from MaixCDK"
+ },
+ "members": {
+ "image": {
+ "type": "module",
+ "doc": {
+ "brief": "maix.image module, image related definition and functions",
+ "maixpy": "maix.image",
+ "py_doc": "maix.image module, image related definition and functions"
+ },
+ "members": {
+ "QRCodeDetector": {
+ "type": "class",
+ "name": "QRCodeDetector",
+ "doc": {
+ "brief": "QRCodeDetector class",
+ "maixpy": "maix.image.QRCodeDetector",
+ "py_doc": "QRCodeDetector class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "QRCodeDetector",
+ "doc": {
+ "brief": "QRCodeDetector constructor.\\nUse npu to accelerate the speed of QR code scanning, note that this object will occupy npu resources",
+ "maixpy": "maix.image.QRCodeDetector.__init__",
+ "py_doc": "QRCodeDetector constructor.\nUse npu to accelerate the speed of QR code scanning, note that this object will occupy npu resources"
+ },
+ "args": [],
+ "ret_type": null,
+ "static": false,
+ "def": "QRCodeDetector()"
+ },
+ "detect": {
+ "type": "func",
+ "name": "detect",
+ "doc": {
+ "brief": "Finds all qrcodes in the image.",
+ "param": {
+ "img": "The image to find qrcodes.",
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "decoder_type": "Select the QR code decoding method. Choosing QRCODE_DECODER_TYPE_QUIRC allows for retrieving QR code version, ECC level, mask, data type, and other details,\nthough it may decode slower at lower resolutions. Opting for QRCODE_DECODER_TYPE_ZBAR enables faster decoding at lower resolutions but may slow down at higher resolutions,\nproviding only the QR code content and position information. default is QRCODE_DECODER_TYPE_ZBAR."
+ },
+ "return": "Returns the qrcodes of the image",
+ "maixpy": "maix.image.QRCodeDetector.detect",
+ "py_doc": "Finds all qrcodes in the image.\n\nArgs:\n - img: The image to find qrcodes.\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - decoder_type: Select the QR code decoding method. Choosing QRCODE_DECODER_TYPE_QUIRC allows for retrieving QR code version, ECC level, mask, data type, and other details,\nthough it may decode slower at lower resolutions. Opting for QRCODE_DECODER_TYPE_ZBAR enables faster decoding at lower resolutions but may slow down at higher resolutions,\nproviding only the QR code content and position information. default is QRCODE_DECODER_TYPE_ZBAR.\n\n\nReturns: Returns the qrcodes of the image\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "img",
+ null
+ ],
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "image::QRCodeDecoderType",
+ "decoder_type",
+ "image::QRCodeDecoderType::QRCODE_DECODER_TYPE_ZBAR"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector detect(image::Image *img, std::vector roi = std::vector(), image::QRCodeDecoderType decoder_type = image::QRCodeDecoderType::QRCODE_DECODER_TYPE_ZBAR)"
+ }
+ },
+ "def": "class QRCodeDetector"
+ },
+ "Format": {
+ "type": "enum",
+ "name": "Format",
+ "doc": {
+ "brief": "Image formats",
+ "attention": "for MaixPy firmware developers, update this enum will also need to update the fmt_size and fmt_names too !!!",
+ "maixpy": "maix.image.Format",
+ "py_doc": "Image formats"
+ },
+ "values": [
+ [
+ "FMT_RGB888",
+ "0",
+ "RGBRGB...RGB, R at the lowest address"
+ ],
+ [
+ "FMT_BGR888",
+ "",
+ "BGRBGR...BGR, B at the lowest address"
+ ],
+ [
+ "FMT_RGBA8888",
+ "",
+ "RGBARGBA...RGBA, R at the lowest address"
+ ],
+ [
+ "FMT_BGRA8888",
+ "",
+ "BGRABGRA...BGRA, B at the lowest address"
+ ],
+ [
+ "FMT_RGB565",
+ "",
+ ""
+ ],
+ [
+ "FMT_BGR565",
+ "",
+ ""
+ ],
+ [
+ "FMT_YUV422SP",
+ "",
+ "YYY...UVUVUV...UVUV"
+ ],
+ [
+ "FMT_YUV422P",
+ "",
+ "YYY...UUU...VVV"
+ ],
+ [
+ "FMT_YVU420SP",
+ "",
+ "YYY...VUVUVU...VUVU, NV21"
+ ],
+ [
+ "FMT_YUV420SP",
+ "",
+ "YYY...UVUVUV...UVUV, NV12"
+ ],
+ [
+ "FMT_YVU420P",
+ "",
+ "YYY...VVV...UUU"
+ ],
+ [
+ "FMT_YUV420P",
+ "",
+ "YYY...UUU...VVV"
+ ],
+ [
+ "FMT_GRAYSCALE",
+ "",
+ ""
+ ],
+ [
+ "FMT_BGGR6",
+ "",
+ "6-bit Bayer format with a BGGR pattern."
+ ],
+ [
+ "FMT_GBRG6",
+ "",
+ "6-bit Bayer format with a GBRG pattern."
+ ],
+ [
+ "FMT_GRBG6",
+ "",
+ "6-bit Bayer format with a GRBG pattern."
+ ],
+ [
+ "FMT_RGGB6",
+ "",
+ "6-bit Bayer format with a RGGB pattern."
+ ],
+ [
+ "FMT_BGGR8",
+ "",
+ "8-bit Bayer format with a BGGR pattern."
+ ],
+ [
+ "FMT_GBRG8",
+ "",
+ "8-bit Bayer format with a GBRG pattern."
+ ],
+ [
+ "FMT_GRBG8",
+ "",
+ "8-bit Bayer format with a GRBG pattern."
+ ],
+ [
+ "FMT_RGGB8",
+ "",
+ "8-bit Bayer format with a RGGB pattern."
+ ],
+ [
+ "FMT_BGGR10",
+ "",
+ "10-bit Bayer format with a BGGR pattern."
+ ],
+ [
+ "FMT_GBRG10",
+ "",
+ "10-bit Bayer format with a GBRG pattern."
+ ],
+ [
+ "FMT_GRBG10",
+ "",
+ "10-bit Bayer format with a GRBG pattern."
+ ],
+ [
+ "FMT_RGGB10",
+ "",
+ "10-bit Bayer format with a RGGB pattern."
+ ],
+ [
+ "FMT_BGGR12",
+ "",
+ "12-bit Bayer format with a BGGR pattern."
+ ],
+ [
+ "FMT_GBRG12",
+ "",
+ "12-bit Bayer format with a GBRG pattern."
+ ],
+ [
+ "FMT_GRBG12",
+ "",
+ "12-bit Bayer format with a GRBG pattern."
+ ],
+ [
+ "FMT_RGGB12",
+ "",
+ "12-bit Bayer format with a RGGB pattern."
+ ],
+ [
+ "FMT_UNCOMPRESSED_MAX",
+ "",
+ ""
+ ],
+ [
+ "FMT_COMPRESSED_MIN",
+ "",
+ ""
+ ],
+ [
+ "FMT_JPEG",
+ "",
+ ""
+ ],
+ [
+ "FMT_PNG",
+ "",
+ ""
+ ],
+ [
+ "FMT_COMPRESSED_MAX",
+ "",
+ ""
+ ],
+ [
+ "FMT_INVALID",
+ "0xFF",
+ "format not valid"
+ ]
+ ],
+ "def": "enum Format\n {\n FMT_RGB888 = 0, // RGBRGB...RGB, R at the lowest address\n FMT_BGR888, // BGRBGR...BGR, B at the lowest address\n FMT_RGBA8888, // RGBARGBA...RGBA, R at the lowest address\n FMT_BGRA8888, // BGRABGRA...BGRA, B at the lowest address\n FMT_RGB565,\n FMT_BGR565,\n FMT_YUV422SP, // YYY...UVUVUV...UVUV\n FMT_YUV422P, // YYY...UUU...VVV\n FMT_YVU420SP, // YYY...VUVUVU...VUVU, NV21\n FMT_YUV420SP, // YYY...UVUVUV...UVUV, NV12\n FMT_YVU420P, // YYY...VVV...UUU\n FMT_YUV420P, // YYY...UUU...VVV\n FMT_GRAYSCALE,\n FMT_BGGR6, // 6-bit Bayer format with a BGGR pattern.\n FMT_GBRG6, // 6-bit Bayer format with a GBRG pattern.\n FMT_GRBG6, // 6-bit Bayer format with a GRBG pattern.\n FMT_RGGB6, // 6-bit Bayer format with a RGGB pattern.\n FMT_BGGR8, // 8-bit Bayer format with a BGGR pattern.\n FMT_GBRG8, // 8-bit Bayer format with a GBRG pattern.\n FMT_GRBG8, // 8-bit Bayer format with a GRBG pattern.\n FMT_RGGB8, // 8-bit Bayer format with a RGGB pattern.\n FMT_BGGR10, // 10-bit Bayer format with a BGGR pattern.\n FMT_GBRG10, // 10-bit Bayer format with a GBRG pattern.\n FMT_GRBG10, // 10-bit Bayer format with a GRBG pattern.\n FMT_RGGB10, // 10-bit Bayer format with a RGGB pattern.\n FMT_BGGR12, // 12-bit Bayer format with a BGGR pattern.\n FMT_GBRG12, // 12-bit Bayer format with a GBRG pattern.\n FMT_GRBG12, // 12-bit Bayer format with a GRBG pattern.\n FMT_RGGB12, // 12-bit Bayer format with a RGGB pattern.\n FMT_UNCOMPRESSED_MAX,\n\n // compressed format below, not compressed should define upper\n FMT_COMPRESSED_MIN,\n FMT_JPEG,\n FMT_PNG,\n FMT_COMPRESSED_MAX,\n\n FMT_INVALID = 0xFF // format not valid\n }"
+ },
+ "fmt_size": {
+ "type": "var",
+ "name": "",
+ "doc": {
+ "brief": "Image format size in bytes",
+ "attention": "It's a copy of this variable in MaixPy,\nso change it in C++ (e.g. update var in hello function) will not take effect the var inMaixPy.\nSo we add const for this var to avoid this mistake.",
+ "maixpy": "maix.image.fmt_size",
+ "py_doc": "Image format size in bytes"
+ },
+ "value": "{\n 3,\n 3,\n 4,\n 4,\n 2,\n 2,\n 2,\n 2,\n 1.5,\n 1.5,\n 1.5,\n 1.5,\n 1, // grayscale\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 0, // uncompereed_max\n 0, // compressed_min\n 1, // jpeg\n 1, // png\n 0, // compressed_max\n 0 // invalid\n }",
+ "static": false,
+ "readonly": true,
+ "def": "const std::vector fmt_size = {\n 3,\n 3,\n 4,\n 4,\n 2,\n 2,\n 2,\n 2,\n 1.5,\n 1.5,\n 1.5,\n 1.5,\n 1, // grayscale\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 0.75, // 6-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1, // 8-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.25, // 10-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 1.5, // 12-bit Bayer format\n 0, // uncompereed_max\n 0, // compressed_min\n 1, // jpeg\n 1, // png\n 0, // compressed_max\n 0 // invalid\n }"
+ },
+ "fmt_names": {
+ "type": "var",
+ "name": "",
+ "doc": {
+ "brief": "Image format string",
+ "maixpy": "maix.image.fmt_names",
+ "py_doc": "Image format string"
+ },
+ "value": "{\n \"RGB888\",\n \"BGR888\",\n \"RGBA8888\",\n \"BGRA8888\",\n \"RGB565\",\n \"BGR565\",\n \"YUV422SP\",\n \"YUV422P\",\n \"YVU420SP\",\n \"YUV420SP\",\n \"YVU420P\",\n \"YUV420P\",\n \"GRAYSCALE\",\n \"BGGR6\",\n \"GBRG6\",\n \"GRBG6\",\n \"RG6B6\",\n \"BGGR8\",\n \"GBRG8\",\n \"GRBG8\",\n \"RG6B8\",\n \"BGGR10\",\n \"GBRG10\",\n \"GRBG10\",\n \"RG6B10\",\n \"BGGR12\",\n \"GBRG12\",\n \"GRBG12\",\n \"RG6B12\",\n \"UNCOMPRESSED_MAX\",\n \"COMPRESSED_MIN\",\n \"JPEG\",\n \"PNG\",\n \"COMPRESSED_MAX\",\n \"INVALID\"\n }",
+ "static": false,
+ "readonly": true,
+ "def": "const std::vector fmt_names = {\n \"RGB888\",\n \"BGR888\",\n \"RGBA8888\",\n \"BGRA8888\",\n \"RGB565\",\n \"BGR565\",\n \"YUV422SP\",\n \"YUV422P\",\n \"YVU420SP\",\n \"YUV420SP\",\n \"YVU420P\",\n \"YUV420P\",\n \"GRAYSCALE\",\n \"BGGR6\",\n \"GBRG6\",\n \"GRBG6\",\n \"RG6B6\",\n \"BGGR8\",\n \"GBRG8\",\n \"GRBG8\",\n \"RG6B8\",\n \"BGGR10\",\n \"GBRG10\",\n \"GRBG10\",\n \"RG6B10\",\n \"BGGR12\",\n \"GBRG12\",\n \"GRBG12\",\n \"RG6B12\",\n \"UNCOMPRESSED_MAX\",\n \"COMPRESSED_MIN\",\n \"JPEG\",\n \"PNG\",\n \"COMPRESSED_MAX\",\n \"INVALID\"\n }"
+ },
+ "Size": {
+ "type": "class",
+ "name": "Size",
+ "doc": {
+ "brief": "Image size type",
+ "maixpy": "maix.image.Size",
+ "py_doc": "Image size type"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Size",
+ "doc": {
+ "brief": "Construct a new Size object",
+ "param": {
+ "width": "image width",
+ "height": "image height"
+ },
+ "maixpy": "maix.image.Size.__init__",
+ "py_doc": "Construct a new Size object\n\nArgs:\n - width: image width\n - height: image height\n"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ "0"
+ ],
+ [
+ "int",
+ "height",
+ "0"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Size(int width = 0, int height = 0)"
+ },
+ "width": {
+ "type": "func",
+ "name": "width",
+ "doc": {
+ "brief": "width of size",
+ "param": {
+ "width": "set new width, if not set, only return current width"
+ },
+ "maixpy": "maix.image.Size.width",
+ "py_doc": "width of size\n\nArgs:\n - width: set new width, if not set, only return current width\n"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ "-1"
+ ]
+ ],
+ "ret_type": "int",
+ "static": false,
+ "def": "int width(int width = -1)"
+ },
+ "height": {
+ "type": "func",
+ "name": "height",
+ "doc": {
+ "brief": "height of size",
+ "param": {
+ "height": "set new height, if not set, only return current height"
+ },
+ "maixpy": "maix.image.Size.height",
+ "py_doc": "height of size\n\nArgs:\n - height: set new height, if not set, only return current height\n"
+ },
+ "args": [
+ [
+ "int",
+ "height",
+ "-1"
+ ]
+ ],
+ "ret_type": "int",
+ "static": false,
+ "def": "int height(int height = -1)"
+ },
+ "[]": {
+ "type": "func",
+ "name": "operator[]",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "0 for width, 1 for height"
+ },
+ "return": "int& width or height",
+ "maixpy": "maix.image.Size.__getitem__",
+ "maixcdk": "maix.image.Size.[]",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: 0 for width, 1 for height\n\n\nReturns: int& width or height\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &operator[](int index)"
+ },
+ "__str__": {
+ "type": "func",
+ "name": "__str__",
+ "doc": {
+ "brief": "to string",
+ "maixpy": "maix.image.Size.__str__",
+ "py_doc": "to string"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string __str__()"
+ }
+ },
+ "def": "class Size"
+ },
+ "Fit": {
+ "type": "enum",
+ "name": "Fit",
+ "doc": {
+ "brief": "Object fit method",
+ "maixpy": "maix.image.Fit",
+ "py_doc": "Object fit method"
+ },
+ "values": [
+ [
+ "FIT_NONE",
+ "-1",
+ "no object fit, keep original"
+ ],
+ [
+ "FIT_FILL",
+ "0",
+ "width to new width, height to new height, may be stretch"
+ ],
+ [
+ "FIT_CONTAIN",
+ "",
+ "keep aspect ratio, fill blank area with black color"
+ ],
+ [
+ "FIT_COVER",
+ "",
+ "keep aspect ratio, crop image to fit new size"
+ ],
+ [
+ "FIT_MAX",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum Fit\n {\n FIT_NONE = -1, // no object fit, keep original\n FIT_FILL = 0, // width to new width, height to new height, may be stretch\n FIT_CONTAIN, // keep aspect ratio, fill blank area with black color\n FIT_COVER, // keep aspect ratio, crop image to fit new size\n FIT_MAX\n }"
+ },
+ "ResizeMethod": {
+ "type": "enum",
+ "name": "ResizeMethod",
+ "doc": {
+ "brief": "Resize method",
+ "maixpy": "maix.image.ResizeMethod",
+ "py_doc": "Resize method"
+ },
+ "values": [
+ [
+ "NEAREST",
+ "0",
+ ""
+ ],
+ [
+ "BILINEAR",
+ "",
+ ""
+ ],
+ [
+ "BICUBIC",
+ "",
+ ""
+ ],
+ [
+ "AREA",
+ "",
+ ""
+ ],
+ [
+ "LANCZOS",
+ "",
+ ""
+ ],
+ [
+ "HAMMING",
+ "",
+ ""
+ ],
+ [
+ "RESIZE_METHOD_MAX",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum ResizeMethod\n {\n NEAREST = 0,\n BILINEAR,\n BICUBIC,\n AREA,\n LANCZOS,\n HAMMING,\n RESIZE_METHOD_MAX\n }"
+ },
+ "ApriltagFamilies": {
+ "type": "enum",
+ "name": "ApriltagFamilies",
+ "doc": {
+ "brief": "Family of apriltag",
+ "maixpy": "maix.image.ApriltagFamilies",
+ "py_doc": "Family of apriltag"
+ },
+ "values": [
+ [
+ "TAG16H5",
+ "1",
+ ""
+ ],
+ [
+ "TAG25H7",
+ "2",
+ ""
+ ],
+ [
+ "TAG25H9",
+ "4",
+ ""
+ ],
+ [
+ "TAG36H10",
+ "8",
+ ""
+ ],
+ [
+ "TAG36H11",
+ "16",
+ ""
+ ],
+ [
+ "ARTOOLKIT",
+ "32",
+ ""
+ ]
+ ],
+ "def": "enum ApriltagFamilies\n {\n TAG16H5 = 1,\n TAG25H7 = 2,\n TAG25H9 = 4,\n TAG36H10 = 8,\n TAG36H11 = 16,\n ARTOOLKIT = 32\n }"
+ },
+ "TemplateMatch": {
+ "type": "enum",
+ "name": "TemplateMatch",
+ "doc": {
+ "brief": "Template match method",
+ "maixpy": "maix.image.TemplateMatch",
+ "py_doc": "Template match method"
+ },
+ "values": [
+ [
+ "SEARCH_EX",
+ "",
+ "Exhaustive search"
+ ],
+ [
+ "SEARCH_DS",
+ "",
+ "Diamond search"
+ ]
+ ],
+ "def": "enum TemplateMatch\n {\n SEARCH_EX, // Exhaustive search\n SEARCH_DS, // Diamond search\n }"
+ },
+ "CornerDetector": {
+ "type": "enum",
+ "name": "CornerDetector",
+ "doc": {
+ "brief": "CornerDetector class",
+ "maixpy": "maix.image.CornerDetector",
+ "py_doc": "CornerDetector class"
+ },
+ "values": [
+ [
+ "CORNER_FAST",
+ "",
+ ""
+ ],
+ [
+ "CORNER_AGAST",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum CornerDetector\n {\n CORNER_FAST,\n CORNER_AGAST\n }"
+ },
+ "EdgeDetector": {
+ "type": "enum",
+ "name": "EdgeDetector",
+ "doc": {
+ "brief": "EdgeDetector class",
+ "maixpy": "maix.image.EdgeDetector",
+ "py_doc": "EdgeDetector class"
+ },
+ "values": [
+ [
+ "EDGE_CANNY",
+ "",
+ ""
+ ],
+ [
+ "EDGE_SIMPLE",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum EdgeDetector\n {\n EDGE_CANNY,\n EDGE_SIMPLE,\n }"
+ },
+ "FlipDir": {
+ "type": "enum",
+ "name": "class",
+ "doc": {
+ "brief": "FlipDir",
+ "maixpy": "maix.image.FlipDir",
+ "py_doc": "FlipDir"
+ },
+ "values": [
+ [
+ "X",
+ "",
+ ""
+ ],
+ [
+ "Y",
+ "",
+ ""
+ ],
+ [
+ "XY",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum class FlipDir\n {\n X,\n Y,\n XY\n }"
+ },
+ "Line": {
+ "type": "class",
+ "name": "Line",
+ "doc": {
+ "brief": "Line class",
+ "maixpy": "maix.image.Line",
+ "py_doc": "Line class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Line",
+ "doc": {
+ "brief": "Line constructor",
+ "param": {
+ "x1": "coordinate x1 of the straight line",
+ "y1": "coordinate y1 of the straight line",
+ "x2": "coordinate x2 of the straight line",
+ "y2": "coordinate y2 of the straight line",
+ "magnitude": "magnitude of the straight line after Hough transformation",
+ "theta": "angle of the straight line after Hough transformation",
+ "rho": "p-value of the straight line after Hough transformation"
+ },
+ "maixpy": "maix.image.Line.__init__",
+ "py_doc": "Line constructor\n\nArgs:\n - x1: coordinate x1 of the straight line\n - y1: coordinate y1 of the straight line\n - x2: coordinate x2 of the straight line\n - y2: coordinate y2 of the straight line\n - magnitude: magnitude of the straight line after Hough transformation\n - theta: angle of the straight line after Hough transformation\n - rho: p-value of the straight line after Hough transformation\n"
+ },
+ "args": [
+ [
+ "int",
+ "x1",
+ null
+ ],
+ [
+ "int",
+ "y1",
+ null
+ ],
+ [
+ "int",
+ "x2",
+ null
+ ],
+ [
+ "int",
+ "y2",
+ null
+ ],
+ [
+ "int",
+ "magnitude",
+ "0"
+ ],
+ [
+ "int",
+ "theta",
+ "0"
+ ],
+ [
+ "int",
+ "rho",
+ "0"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Line(int x1, int y1, int x2, int y2, int magnitude = 0, int theta = 0, int rho = 0)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] get x1 of line\n[1] get y1 of line\n[2] get x2 of line\n[3] get y2 of line\n[4] get length of line\n[5] get magnitude of the straight line after Hough transformation\n[6] get angle of the straight line after Hough transformation (0-179 degrees)\n[7] get p-value of the straight line after Hough transformation"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.Line.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] get x1 of line\n[1] get y1 of line\n[2] get x2 of line\n[3] get y2 of line\n[4] get length of line\n[5] get magnitude of the straight line after Hough transformation\n[6] get angle of the straight line after Hough transformation (0-179 degrees)\n[7] get p-value of the straight line after Hough transformation\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "x1": {
+ "type": "func",
+ "name": "x1",
+ "doc": {
+ "brief": "get x1 of line",
+ "return": "return x1 of the line, type is int",
+ "maixpy": "maix.image.Line.x1",
+ "py_doc": "get x1 of line\n\nReturns: return x1 of the line, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x1()"
+ },
+ "y1": {
+ "type": "func",
+ "name": "y1",
+ "doc": {
+ "brief": "get y1 of line",
+ "return": "return y1 of the line, type is int",
+ "maixpy": "maix.image.Line.y1",
+ "py_doc": "get y1 of line\n\nReturns: return y1 of the line, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y1()"
+ },
+ "x2": {
+ "type": "func",
+ "name": "x2",
+ "doc": {
+ "brief": "get x2 of line",
+ "return": "return x2 of the line, type is int",
+ "maixpy": "maix.image.Line.x2",
+ "py_doc": "get x2 of line\n\nReturns: return x2 of the line, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x2()"
+ },
+ "y2": {
+ "type": "func",
+ "name": "y2",
+ "doc": {
+ "brief": "get y2 of line",
+ "return": "return y2 of the line, type is int",
+ "maixpy": "maix.image.Line.y2",
+ "py_doc": "get y2 of line\n\nReturns: return y2 of the line, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y2()"
+ },
+ "length": {
+ "type": "func",
+ "name": "length",
+ "doc": {
+ "brief": "get length of line",
+ "return": "return length of the line, type is int",
+ "maixpy": "maix.image.Line.length",
+ "py_doc": "get length of line\n\nReturns: return length of the line, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int length()"
+ },
+ "magnitude": {
+ "type": "func",
+ "name": "magnitude",
+ "doc": {
+ "brief": "get magnitude of the straight line after Hough transformation",
+ "return": "return magnitude, type is int",
+ "maixpy": "maix.image.Line.magnitude",
+ "py_doc": "get magnitude of the straight line after Hough transformation\n\nReturns: return magnitude, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int magnitude()"
+ },
+ "theta": {
+ "type": "func",
+ "name": "theta",
+ "doc": {
+ "brief": "get angle of the straight line after Hough transformation (0-179 degrees)",
+ "return": "return angle, type is int",
+ "maixpy": "maix.image.Line.theta",
+ "py_doc": "get angle of the straight line after Hough transformation (0-179 degrees)\n\nReturns: return angle, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int theta()"
+ },
+ "rho": {
+ "type": "func",
+ "name": "rho",
+ "doc": {
+ "brief": "get p-value of the straight line after Hough transformation",
+ "return": "return p-value, type is int",
+ "maixpy": "maix.image.Line.rho",
+ "py_doc": "get p-value of the straight line after Hough transformation\n\nReturns: return p-value, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int rho()"
+ }
+ },
+ "def": "class Line"
+ },
+ "Rect": {
+ "type": "class",
+ "name": "Rect",
+ "doc": {
+ "brief": "Rect class",
+ "maixpy": "maix.image.Rect",
+ "py_doc": "Rect class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Rect",
+ "doc": {
+ "brief": "Rect constructor",
+ "param": {
+ "corners": "corners of rect",
+ "x": "coordinate x of the straight line",
+ "y": "coordinate y of the straight line",
+ "w": "coordinate w of the straight line",
+ "h": "coordinate h of the straight line",
+ "magnitude": "magnitude of the straight line after Hough transformation"
+ },
+ "maixpy": "maix.image.Rect.__init__",
+ "py_doc": "Rect constructor\n\nArgs:\n - corners: corners of rect\n - x: coordinate x of the straight line\n - y: coordinate y of the straight line\n - w: coordinate w of the straight line\n - h: coordinate h of the straight line\n - magnitude: magnitude of the straight line after Hough transformation\n"
+ },
+ "args": [
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ null
+ ],
+ [
+ "int",
+ "h",
+ null
+ ],
+ [
+ "int",
+ "magnitude",
+ "0"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Rect(std::vector> &corners, int x, int y, int w, int h, int magnitude = 0)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] get x of rect\n[1] get y of rect\n[2] get w of rect\n[3] get h of rect\n[4] get magnitude of the straight line after Hough transformation"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.Rect.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] get x of rect\n[1] get y of rect\n[2] get w of rect\n[3] get h of rect\n[4] get magnitude of the straight line after Hough transformation\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get corners of rect",
+ "return": "return the coordinate of the rect.",
+ "maixpy": "maix.image.Rect.corners",
+ "py_doc": "get corners of rect\n\nReturns: return the coordinate of the rect.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get rectangle of rect",
+ "return": "return the rectangle of the rect. format is {x, y, w, h}, type is std::vector",
+ "maixpy": "maix.image.Rect.rect",
+ "py_doc": "get rectangle of rect\n\nReturns: return the rectangle of the rect. format is {x, y, w, h}, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of rect",
+ "return": "return x of the rect, type is int",
+ "maixpy": "maix.image.Rect.x",
+ "py_doc": "get x of rect\n\nReturns: return x of the rect, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of rect",
+ "return": "return y of the rect, type is int",
+ "maixpy": "maix.image.Rect.y",
+ "py_doc": "get y of rect\n\nReturns: return y of the rect, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get w of rect",
+ "return": "return w of the rect, type is int",
+ "maixpy": "maix.image.Rect.w",
+ "py_doc": "get w of rect\n\nReturns: return w of the rect, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get h of rect",
+ "return": "return h of the rect, type is int",
+ "maixpy": "maix.image.Rect.h",
+ "py_doc": "get h of rect\n\nReturns: return h of the rect, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "magnitude": {
+ "type": "func",
+ "name": "magnitude",
+ "doc": {
+ "brief": "get magnitude of the straight line after Hough transformation",
+ "return": "return magnitude, type is int",
+ "maixpy": "maix.image.Rect.magnitude",
+ "py_doc": "get magnitude of the straight line after Hough transformation\n\nReturns: return magnitude, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int magnitude()"
+ }
+ },
+ "def": "class Rect"
+ },
+ "Circle": {
+ "type": "class",
+ "name": "Circle",
+ "doc": {
+ "brief": "circle class",
+ "maixpy": "maix.image.Circle",
+ "py_doc": "circle class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Circle",
+ "doc": {
+ "brief": "Circle constructor",
+ "param": {
+ "x": "coordinate x of the circle",
+ "y": "coordinate y of the circle",
+ "r": "coordinate r of the circle",
+ "magnitude": "coordinate y2 of the straight line"
+ },
+ "maixpy": "maix.image.Circle.__init__",
+ "py_doc": "Circle constructor\n\nArgs:\n - x: coordinate x of the circle\n - y: coordinate y of the circle\n - r: coordinate r of the circle\n - magnitude: coordinate y2 of the straight line\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "r",
+ null
+ ],
+ [
+ "int",
+ "magnitude",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Circle(int x, int y, int r, int magnitude)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] get x of circle\n[1] get y of circle\n[2] get r of circle\n[3] get magnitude of the circle after Hough transformation"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.Circle.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] get x of circle\n[1] get y of circle\n[2] get r of circle\n[3] get magnitude of the circle after Hough transformation\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of circle",
+ "return": "return x of the circle, type is int",
+ "maixpy": "maix.image.Circle.x",
+ "py_doc": "get x of circle\n\nReturns: return x of the circle, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of circle",
+ "return": "return y of the circle, type is int",
+ "maixpy": "maix.image.Circle.y",
+ "py_doc": "get y of circle\n\nReturns: return y of the circle, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "r": {
+ "type": "func",
+ "name": "r",
+ "doc": {
+ "brief": "get r of circle",
+ "return": "return r of the circle, type is int",
+ "maixpy": "maix.image.Circle.r",
+ "py_doc": "get r of circle\n\nReturns: return r of the circle, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int r()"
+ },
+ "magnitude": {
+ "type": "func",
+ "name": "magnitude",
+ "doc": {
+ "brief": "get magnitude of the circle after Hough transformation",
+ "return": "return magnitude, type is int",
+ "maixpy": "maix.image.Circle.magnitude",
+ "py_doc": "get magnitude of the circle after Hough transformation\n\nReturns: return magnitude, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int magnitude()"
+ }
+ },
+ "def": "class Circle"
+ },
+ "Blob": {
+ "type": "class",
+ "name": "Blob",
+ "doc": {
+ "brief": "Blob class",
+ "maixpy": "maix.image.Blob",
+ "py_doc": "Blob class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Blob",
+ "doc": {
+ "brief": "Blob constructor",
+ "param": {
+ "rect": "blob rect, type is std::vector",
+ "corners": "blob corners, type is std::vector>",
+ "mini_corners": "blob mini_corners, type is std::vector>",
+ "cx": "blob center x, type is float",
+ "cy": "blob center y, type is float",
+ "pixels": "blob pixels, type is int",
+ "rotation": "blob rotation, type is float",
+ "code": "blob code, type is int",
+ "count": "blob count, type is int",
+ "perimeter": "blob perimeter, type is int",
+ "roundness": "blob roundness, type is float",
+ "x_hist_bins": "blob x_hist_bins, type is std::vector",
+ "y_hist_bins": "blob y_hist_bins, type is std::vector"
+ },
+ "maixpy": "maix.image.Blob.__init__",
+ "py_doc": "Blob constructor\n\nArgs:\n - rect: blob rect, type is std::vector\n - corners: blob corners, type is std::vector>\n - mini_corners: blob mini_corners, type is std::vector>\n - cx: blob center x, type is float\n - cy: blob center y, type is float\n - pixels: blob pixels, type is int\n - rotation: blob rotation, type is float\n - code: blob code, type is int\n - count: blob count, type is int\n - perimeter: blob perimeter, type is int\n - roundness: blob roundness, type is float\n - x_hist_bins: blob x_hist_bins, type is std::vector\n - y_hist_bins: blob y_hist_bins, type is std::vector\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "rect",
+ null
+ ],
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "std::vector> &",
+ "mini_corners",
+ null
+ ],
+ [
+ "float",
+ "cx",
+ null
+ ],
+ [
+ "float",
+ "cy",
+ null
+ ],
+ [
+ "int",
+ "pixels",
+ null
+ ],
+ [
+ "float",
+ "rotation",
+ null
+ ],
+ [
+ "int",
+ "code",
+ null
+ ],
+ [
+ "int",
+ "count",
+ null
+ ],
+ [
+ "int",
+ "perimeter",
+ null
+ ],
+ [
+ "float",
+ "roundness",
+ null
+ ],
+ [
+ "std::vector &",
+ "x_hist_bins",
+ null
+ ],
+ [
+ "std::vector &",
+ "y_hist_bins",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Blob(std::vector &rect, std::vector> &corners, std::vector> &mini_corners,float cx, float cy, int pixels, float rotation, int code, int count, int perimeter, float roundness, std::vector &x_hist_bins, std::vector &y_hist_bins)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] Returns the blob\u2019s bounding box x coordinate\n[1] Returns the blob\u2019s bounding box y coordinate\n[2] Returns the blob\u2019s bounding box w coordinate\n[3] Returns the blob\u2019s bounding box h coordinate\n[4] Returns the number of pixels that are part of this blob\n[5] Returns the centroid x position of the blob\n[6] Returns the centroid y position of the blob"
+ },
+ "return": "int& width or height",
+ "maixpy": "maix.image.Blob.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] Returns the blob\u2019s bounding box x coordinate\n[1] Returns the blob\u2019s bounding box y coordinate\n[2] Returns the blob\u2019s bounding box w coordinate\n[3] Returns the blob\u2019s bounding box h coordinate\n[4] Returns the number of pixels that are part of this blob\n[5] Returns the centroid x position of the blob\n[6] Returns the centroid y position of the blob\n\n\nReturns: int& width or height\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get blob corners",
+ "return": "Returns a list of 4 (x,y) tuples of the 4 corners of the object.\n(x0, y0)___________(x1, y1)\n| |\n| |\n| |\n|___________|\n(x3, y3) (x2, y2)\nnote: the order of corners may change",
+ "maixpy": "maix.image.Blob.corners",
+ "py_doc": "get blob corners\n\nReturns: Returns a list of 4 (x,y) tuples of the 4 corners of the object.\n(x0, y0)___________(x1, y1)\n| |\n| |\n| |\n|___________|\n(x3, y3) (x2, y2)\nnote: the order of corners may change\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "mini_corners": {
+ "type": "func",
+ "name": "mini_corners",
+ "doc": {
+ "brief": "get blob mini corners",
+ "return": "Returns a list of 4 (x,y) tuples of the 4 corners than bound the min area rectangle of the blob.\n(x0, y0)___________(x1, y1)\n| |\n| |\n| |\n|___________|\n(x3, y3) (x2, y2)\nnote: the order of corners may change",
+ "maixpy": "maix.image.Blob.mini_corners",
+ "py_doc": "get blob mini corners\n\nReturns: Returns a list of 4 (x,y) tuples of the 4 corners than bound the min area rectangle of the blob.\n(x0, y0)___________(x1, y1)\n| |\n| |\n| |\n|___________|\n(x3, y3) (x2, y2)\nnote: the order of corners may change\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> mini_corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get blob rect",
+ "return": "Returns the center coordinates and width and height of the rectangle. format is (x, y, w, h)\nw\n(x, y) ___________\n| |\n| | h\n| |\n|___________|",
+ "maixpy": "maix.image.Blob.rect",
+ "py_doc": "get blob rect\n\nReturns: Returns the center coordinates and width and height of the rectangle. format is (x, y, w, h)\nw\n(x, y) ___________\n| |\n| | h\n| |\n|___________|\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get blob x of the upper left coordinate",
+ "return": "Returns the x coordinate of the upper left corner of the rectangle.",
+ "maixpy": "maix.image.Blob.x",
+ "py_doc": "get blob x of the upper left coordinate\n\nReturns: Returns the x coordinate of the upper left corner of the rectangle.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get blob y of the upper left coordinate",
+ "return": "Returns the y coordinate of the upper left corner of the rectangle.",
+ "maixpy": "maix.image.Blob.y",
+ "py_doc": "get blob y of the upper left coordinate\n\nReturns: Returns the y coordinate of the upper left corner of the rectangle.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get blob width",
+ "return": "Returns the blob\u2019s bounding box w coordinate",
+ "maixpy": "maix.image.Blob.w",
+ "py_doc": "get blob width\n\nReturns: Returns the blob\u2019s bounding box w coordinate\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get blob height",
+ "return": "Returns the blob\u2019s bounding box h coordinate",
+ "maixpy": "maix.image.Blob.h",
+ "py_doc": "get blob height\n\nReturns: Returns the blob\u2019s bounding box h coordinate\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "pixels": {
+ "type": "func",
+ "name": "pixels",
+ "doc": {
+ "brief": "get blob pixels",
+ "return": "Returns the number of pixels that are part of this blob.",
+ "maixpy": "maix.image.Blob.pixels",
+ "py_doc": "get blob pixels\n\nReturns: Returns the number of pixels that are part of this blob.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int pixels()"
+ },
+ "cx": {
+ "type": "func",
+ "name": "cx",
+ "doc": {
+ "brief": "get blob center x",
+ "return": "Returns the centroid x position of the blob",
+ "maixpy": "maix.image.Blob.cx",
+ "py_doc": "get blob center x\n\nReturns: Returns the centroid x position of the blob\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int cx()"
+ },
+ "cy": {
+ "type": "func",
+ "name": "cy",
+ "doc": {
+ "brief": "get blob center y",
+ "return": "Returns the centroid y position of the blob",
+ "maixpy": "maix.image.Blob.cy",
+ "py_doc": "get blob center y\n\nReturns: Returns the centroid y position of the blob\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int cy()"
+ },
+ "cxf": {
+ "type": "func",
+ "name": "cxf",
+ "doc": {
+ "brief": "get blob center x",
+ "return": "Returns the centroid x position of the blob",
+ "maixpy": "maix.image.Blob.cxf",
+ "py_doc": "get blob center x\n\nReturns: Returns the centroid x position of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float cxf()"
+ },
+ "cyf": {
+ "type": "func",
+ "name": "cyf",
+ "doc": {
+ "brief": "get blob center y",
+ "return": "Returns the centroid y position of the blob",
+ "maixpy": "maix.image.Blob.cyf",
+ "py_doc": "get blob center y\n\nReturns: Returns the centroid y position of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float cyf()"
+ },
+ "rotation": {
+ "type": "func",
+ "name": "rotation",
+ "doc": {
+ "brief": "get blob rotation",
+ "return": "Returns the rotation of the blob in radians (float). If the blob is like a pencil or pen this value will be unique for 0-180 degrees.",
+ "maixpy": "maix.image.Blob.rotation",
+ "py_doc": "get blob rotation\n\nReturns: Returns the rotation of the blob in radians (float). If the blob is like a pencil or pen this value will be unique for 0-180 degrees.\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation()"
+ },
+ "rotation_rad": {
+ "type": "func",
+ "name": "rotation_rad",
+ "doc": {
+ "brief": "get blob rotation_rad",
+ "return": "Returns the rotation of the blob in radians",
+ "maixpy": "maix.image.Blob.rotation_rad",
+ "py_doc": "get blob rotation_rad\n\nReturns: Returns the rotation of the blob in radians\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation_rad()"
+ },
+ "rotation_deg": {
+ "type": "func",
+ "name": "rotation_deg",
+ "doc": {
+ "brief": "get blob rotation_deg",
+ "return": "Returns the rotation of the blob in degrees.",
+ "maixpy": "maix.image.Blob.rotation_deg",
+ "py_doc": "get blob rotation_deg\n\nReturns: Returns the rotation of the blob in degrees.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int rotation_deg()"
+ },
+ "code": {
+ "type": "func",
+ "name": "code",
+ "doc": {
+ "brief": "get blob code",
+ "return": "Returns a 32-bit binary number with a bit set in it for each color threshold that\u2019s part of this blob",
+ "maixpy": "maix.image.Blob.code",
+ "py_doc": "get blob code\n\nReturns: Returns a 32-bit binary number with a bit set in it for each color threshold that\u2019s part of this blob\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int code()"
+ },
+ "count": {
+ "type": "func",
+ "name": "count",
+ "doc": {
+ "brief": "get blob count",
+ "return": "Returns the number of blobs merged into this blob.",
+ "maixpy": "maix.image.Blob.count",
+ "py_doc": "get blob count\n\nReturns: Returns the number of blobs merged into this blob.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int count()"
+ },
+ "perimeter": {
+ "type": "func",
+ "name": "perimeter",
+ "doc": {
+ "brief": "get blob merge_cnt",
+ "return": "Returns the number of pixels on this blob\u2019s perimeter.",
+ "maixpy": "maix.image.Blob.perimeter",
+ "py_doc": "get blob merge_cnt\n\nReturns: Returns the number of pixels on this blob\u2019s perimeter.\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int perimeter()"
+ },
+ "roundness": {
+ "type": "func",
+ "name": "roundness",
+ "doc": {
+ "brief": "get blob roundness",
+ "return": "Returns a value between 0 and 1 representing how round the object is",
+ "maixpy": "maix.image.Blob.roundness",
+ "py_doc": "get blob roundness\n\nReturns: Returns a value between 0 and 1 representing how round the object is\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float roundness()"
+ },
+ "elongation": {
+ "type": "func",
+ "name": "elongation",
+ "doc": {
+ "brief": "get blob elongation",
+ "returnReturns": "a value between 0 and 1 representing how long (not round) the object is",
+ "maixpy": "maix.image.Blob.elongation",
+ "py_doc": "get blob elongation"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float elongation()"
+ },
+ "area": {
+ "type": "func",
+ "name": "area",
+ "doc": {
+ "brief": "get blob area",
+ "return": "Returns the area of the bounding box around the blob",
+ "maixpy": "maix.image.Blob.area",
+ "py_doc": "get blob area\n\nReturns: Returns the area of the bounding box around the blob\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int area()"
+ },
+ "density": {
+ "type": "func",
+ "name": "density",
+ "doc": {
+ "brief": "get blob density",
+ "return": "Returns the density ratio of the blob",
+ "maixpy": "maix.image.Blob.density",
+ "py_doc": "get blob density\n\nReturns: Returns the density ratio of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float density()"
+ },
+ "extent": {
+ "type": "func",
+ "name": "extent",
+ "doc": {
+ "brief": "Alias for blob.density()",
+ "return": "Returns the density ratio of the blob",
+ "maixpy": "maix.image.Blob.extent",
+ "py_doc": "Alias for blob.density()\n\nReturns: Returns the density ratio of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float extent()"
+ },
+ "compactness": {
+ "type": "func",
+ "name": "compactness",
+ "doc": {
+ "brief": "get blob compactness",
+ "return": "Returns the compactness ratio of the blob",
+ "maixpy": "maix.image.Blob.compactness",
+ "py_doc": "get blob compactness\n\nReturns: Returns the compactness ratio of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float compactness()"
+ },
+ "solidity": {
+ "type": "func",
+ "name": "solidity",
+ "doc": {
+ "brief": "get blob solidity",
+ "return": "Returns the solidity ratio of the blob",
+ "maixpy": "maix.image.Blob.solidity",
+ "py_doc": "get blob solidity\n\nReturns: Returns the solidity ratio of the blob\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float solidity()"
+ },
+ "convexity": {
+ "type": "func",
+ "name": "convexity",
+ "doc": {
+ "brief": "get blob convexity",
+ "return": "Returns a value between 0 and 1 representing how convex the object is",
+ "maixpy": "maix.image.Blob.convexity",
+ "py_doc": "get blob convexity\n\nReturns: Returns a value between 0 and 1 representing how convex the object is\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float convexity()"
+ },
+ "x_hist_bins": {
+ "type": "func",
+ "name": "x_hist_bins",
+ "doc": {
+ "brief": "get blob x_hist_bins",
+ "return": "Returns the x_hist_bins of the blob",
+ "maixpy": "maix.image.Blob.x_hist_bins",
+ "py_doc": "get blob x_hist_bins\n\nReturns: Returns the x_hist_bins of the blob\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector x_hist_bins()"
+ },
+ "y_hist_bins": {
+ "type": "func",
+ "name": "y_hist_bins",
+ "doc": {
+ "brief": "get blob y_hist_bins",
+ "return": "Returns the y_hist_bins of the blob",
+ "maixpy": "maix.image.Blob.y_hist_bins",
+ "py_doc": "get blob y_hist_bins\n\nReturns: Returns the y_hist_bins of the blob\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector y_hist_bins()"
+ },
+ "major_axis_line": {
+ "type": "func",
+ "name": "major_axis_line",
+ "doc": {
+ "brief": "get blob major_axis_line",
+ "return": "Returns a line tuple (x1, y1, x2, y2) of the minor axis of the blob.",
+ "maixpy": "maix.image.Blob.major_axis_line",
+ "py_doc": "get blob major_axis_line\n\nReturns: Returns a line tuple (x1, y1, x2, y2) of the minor axis of the blob.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector major_axis_line()"
+ },
+ "minor_axis_line": {
+ "type": "func",
+ "name": "minor_axis_line",
+ "doc": {
+ "brief": "get blob minor_axis_line",
+ "return": "Returns a line tuple (x1, y1, x2, y2) of the minor axis of the blob.",
+ "maixpy": "maix.image.Blob.minor_axis_line",
+ "py_doc": "get blob minor_axis_line\n\nReturns: Returns a line tuple (x1, y1, x2, y2) of the minor axis of the blob.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector minor_axis_line()"
+ },
+ "enclosing_circle": {
+ "type": "func",
+ "name": "enclosing_circle",
+ "doc": {
+ "brief": "get blob enclosing_circle",
+ "return": "Returns a circle tuple (x, y, r) of the circle that encloses the min area rectangle of a blob.",
+ "maixpy": "maix.image.Blob.enclosing_circle",
+ "py_doc": "get blob enclosing_circle\n\nReturns: Returns a circle tuple (x, y, r) of the circle that encloses the min area rectangle of a blob.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector enclosing_circle()"
+ },
+ "enclosed_ellipse": {
+ "type": "func",
+ "name": "enclosed_ellipse",
+ "doc": {
+ "brief": "get blob enclosed_ellipse",
+ "return": "Returns an ellipse tuple (x, y, rx, ry, rotation) of the ellipse that fits inside of the min area rectangle of a blob.",
+ "maixpy": "maix.image.Blob.enclosed_ellipse",
+ "py_doc": "get blob enclosed_ellipse\n\nReturns: Returns an ellipse tuple (x, y, rx, ry, rotation) of the ellipse that fits inside of the min area rectangle of a blob.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector enclosed_ellipse()"
+ }
+ },
+ "def": "class Blob"
+ },
+ "QRCodeDecoderType": {
+ "type": "enum",
+ "name": "class",
+ "doc": {
+ "brief": "QRCode decode type class",
+ "maixpy": "maix.image.QRCodeDecoderType",
+ "py_doc": "QRCode decode type class"
+ },
+ "values": [
+ [
+ "QRCODE_DECODER_TYPE_ZBAR",
+ "",
+ ""
+ ],
+ [
+ "QRCODE_DECODER_TYPE_QUIRC",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum class QRCodeDecoderType {\n QRCODE_DECODER_TYPE_ZBAR,\n QRCODE_DECODER_TYPE_QUIRC\n }"
+ },
+ "QRCode": {
+ "type": "class",
+ "name": "QRCode",
+ "doc": {
+ "brief": "QRCode class",
+ "maixpy": "maix.image.QRCode",
+ "py_doc": "QRCode class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "QRCode",
+ "doc": {
+ "brief": "QRCode constructor",
+ "param": {
+ "rect": "rect of corners, type is std::vector",
+ "corners": "corners of QRCode",
+ "payload": "payload of the QRCode",
+ "version": "version of the QRCode",
+ "ecc_level": "ecc_level of the QRCode",
+ "mask": "mask of the QRCode",
+ "data_type": "data_type of the QRCode",
+ "eci": "eci of the QRCode"
+ },
+ "maixpy": "maix.image.QRCode.__init__",
+ "py_doc": "QRCode constructor\n\nArgs:\n - rect: rect of corners, type is std::vector\n - corners: corners of QRCode\n - payload: payload of the QRCode\n - version: version of the QRCode\n - ecc_level: ecc_level of the QRCode\n - mask: mask of the QRCode\n - data_type: data_type of the QRCode\n - eci: eci of the QRCode\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "rect",
+ null
+ ],
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "std::string &",
+ "payload",
+ null
+ ],
+ [
+ "int",
+ "version",
+ null
+ ],
+ [
+ "int",
+ "ecc_level",
+ null
+ ],
+ [
+ "int",
+ "mask",
+ null
+ ],
+ [
+ "int",
+ "data_type",
+ null
+ ],
+ [
+ "int",
+ "eci",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "QRCode(std::vector &rect, std::vector> &corners, std::string &payload, int version, int ecc_level, int mask, int data_type, int eci)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] Returns the qrcode\u2019s bounding box x coordinate\n[1] Returns the qrcode\u2019s bounding box y coordinate\n[2] Returns the qrcode\u2019s bounding box w coordinate\n[3] Returns the qrcode\u2019s bounding box h coordinate\n[4] Not support this index, try to use payload() method\n[5] Returns the version of qrcode\n[6] Returns the error correction level of qrcode\n[7] Returns the mask of qrcode\n[8] Returns the datatype of qrcode\n[9] Returns the eci of qrcode"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.QRCode.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] Returns the qrcode\u2019s bounding box x coordinate\n[1] Returns the qrcode\u2019s bounding box y coordinate\n[2] Returns the qrcode\u2019s bounding box w coordinate\n[3] Returns the qrcode\u2019s bounding box h coordinate\n[4] Not support this index, try to use payload() method\n[5] Returns the version of qrcode\n[6] Returns the error correction level of qrcode\n[7] Returns the mask of qrcode\n[8] Returns the datatype of qrcode\n[9] Returns the eci of qrcode\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get coordinate of QRCode",
+ "return": "return the coordinate of the QRCode.",
+ "maixpy": "maix.image.QRCode.corners",
+ "py_doc": "get coordinate of QRCode\n\nReturns: return the coordinate of the QRCode.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get rectangle of QRCode",
+ "return": "return the rectangle of the QRCode. format is {x, y, w, h}, type is std::vector",
+ "maixpy": "maix.image.QRCode.rect",
+ "py_doc": "get rectangle of QRCode\n\nReturns: return the rectangle of the QRCode. format is {x, y, w, h}, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of QRCode",
+ "return": "return x of the QRCode, type is int",
+ "maixpy": "maix.image.QRCode.x",
+ "py_doc": "get x of QRCode\n\nReturns: return x of the QRCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of QRCode",
+ "return": "return y of the QRCode, type is int",
+ "maixpy": "maix.image.QRCode.y",
+ "py_doc": "get y of QRCode\n\nReturns: return y of the QRCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get w of QRCode",
+ "return": "return w of the QRCode, type is int",
+ "maixpy": "maix.image.QRCode.w",
+ "py_doc": "get w of QRCode\n\nReturns: return w of the QRCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get h of QRCode",
+ "return": "return h of the QRCode, type is int",
+ "maixpy": "maix.image.QRCode.h",
+ "py_doc": "get h of QRCode\n\nReturns: return h of the QRCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "payload": {
+ "type": "func",
+ "name": "payload",
+ "doc": {
+ "brief": "get QRCode payload",
+ "return": "return area of the QRCode",
+ "maixpy": "maix.image.QRCode.payload",
+ "py_doc": "get QRCode payload\n\nReturns: return area of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string payload()"
+ },
+ "version": {
+ "type": "func",
+ "name": "version",
+ "doc": {
+ "brief": "get QRCode version",
+ "return": "return version of the QRCode",
+ "maixpy": "maix.image.QRCode.version",
+ "py_doc": "get QRCode version\n\nReturns: return version of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int version()"
+ },
+ "ecc_level": {
+ "type": "func",
+ "name": "ecc_level",
+ "doc": {
+ "brief": "get QRCode error correction level",
+ "return": "return error correction level of the QRCode",
+ "maixpy": "maix.image.QRCode.ecc_level",
+ "py_doc": "get QRCode error correction level\n\nReturns: return error correction level of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int ecc_level()"
+ },
+ "mask": {
+ "type": "func",
+ "name": "mask",
+ "doc": {
+ "brief": "get QRCode mask",
+ "return": "return mask of the QRCode",
+ "maixpy": "maix.image.QRCode.mask",
+ "py_doc": "get QRCode mask\n\nReturns: return mask of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int mask()"
+ },
+ "data_type": {
+ "type": "func",
+ "name": "data_type",
+ "doc": {
+ "brief": "get QRCode dataType",
+ "return": "return mask of the QRCode",
+ "maixpy": "maix.image.QRCode.data_type",
+ "py_doc": "get QRCode dataType\n\nReturns: return mask of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int data_type()"
+ },
+ "eci": {
+ "type": "func",
+ "name": "eci",
+ "doc": {
+ "brief": "get QRCode eci",
+ "return": "return data of the QRCode",
+ "maixpy": "maix.image.QRCode.eci",
+ "py_doc": "get QRCode eci\n\nReturns: return data of the QRCode\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int eci()"
+ },
+ "is_numeric": {
+ "type": "func",
+ "name": "is_numeric",
+ "doc": {
+ "brief": "check QRCode is numeric",
+ "return": "return true if the result type of the QRCode is numeric",
+ "maixpy": "maix.image.QRCode.is_numeric",
+ "py_doc": "check QRCode is numeric\n\nReturns: return true if the result type of the QRCode is numeric\n"
+ },
+ "args": [],
+ "ret_type": "bool",
+ "static": false,
+ "def": "bool is_numeric()"
+ },
+ "is_alphanumeric": {
+ "type": "func",
+ "name": "is_alphanumeric",
+ "doc": {
+ "brief": "check QRCode is alphanumeric",
+ "return": "return true if the result type of the QRCode is alphanumeric",
+ "maixpy": "maix.image.QRCode.is_alphanumeric",
+ "py_doc": "check QRCode is alphanumeric\n\nReturns: return true if the result type of the QRCode is alphanumeric\n"
+ },
+ "args": [],
+ "ret_type": "bool",
+ "static": false,
+ "def": "bool is_alphanumeric()"
+ },
+ "is_binary": {
+ "type": "func",
+ "name": "is_binary",
+ "doc": {
+ "brief": "check QRCode is binary",
+ "return": "return true if the result type of the QRCode is binary",
+ "maixpy": "maix.image.QRCode.is_binary",
+ "py_doc": "check QRCode is binary\n\nReturns: return true if the result type of the QRCode is binary\n"
+ },
+ "args": [],
+ "ret_type": "bool",
+ "static": false,
+ "def": "bool is_binary()"
+ },
+ "is_kanji": {
+ "type": "func",
+ "name": "is_kanji",
+ "doc": {
+ "brief": "check QRCode is kanji",
+ "return": "return true if the result type of the QRCode is kanji",
+ "maixpy": "maix.image.QRCode.is_kanji",
+ "py_doc": "check QRCode is kanji\n\nReturns: return true if the result type of the QRCode is kanji\n"
+ },
+ "args": [],
+ "ret_type": "bool",
+ "static": false,
+ "def": "bool is_kanji()"
+ }
+ },
+ "def": "class QRCode"
+ },
+ "AprilTag": {
+ "type": "class",
+ "name": "AprilTag",
+ "doc": {
+ "brief": "AprilTag class",
+ "maixpy": "maix.image.AprilTag",
+ "py_doc": "AprilTag class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "AprilTag",
+ "doc": {
+ "brief": "AprilTag constructor",
+ "param": {
+ "rect": "Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector",
+ "corners": "Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>",
+ "id": "The id of the AprilTag",
+ "famliy": "The family of the AprilTag",
+ "centroid_x": "The x coordinate of the center of the AprilTag",
+ "centroid_y": "The y coordinate of the center of the AprilTag",
+ "rotation": "The rotation of the AprilTag",
+ "decision_margin": "The decision_margin of the AprilTag",
+ "hamming": "The hamming of the AprilTag",
+ "goodness": "The goodness of the AprilTag",
+ "x_translation": "The x_translation of the AprilTag",
+ "y_translation": "The y_translation of the AprilTag",
+ "z_translation": "The z_translation of the AprilTag",
+ "x_rotation": "The x_rotation of the AprilTag",
+ "y_rotation": "The y_rotation of the AprilTag",
+ "z_rotation": "The z_rotation of the AprilTag"
+ },
+ "maixpy": "maix.image.AprilTag.__init__",
+ "py_doc": "AprilTag constructor\n\nArgs:\n - rect: Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector\n - corners: Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>\n - id: The id of the AprilTag\n - famliy: The family of the AprilTag\n - centroid_x: The x coordinate of the center of the AprilTag\n - centroid_y: The y coordinate of the center of the AprilTag\n - rotation: The rotation of the AprilTag\n - decision_margin: The decision_margin of the AprilTag\n - hamming: The hamming of the AprilTag\n - goodness: The goodness of the AprilTag\n - x_translation: The x_translation of the AprilTag\n - y_translation: The y_translation of the AprilTag\n - z_translation: The z_translation of the AprilTag\n - x_rotation: The x_rotation of the AprilTag\n - y_rotation: The y_rotation of the AprilTag\n - z_rotation: The z_rotation of the AprilTag\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "rect",
+ null
+ ],
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "int",
+ "id",
+ null
+ ],
+ [
+ "int",
+ "famliy",
+ null
+ ],
+ [
+ "float",
+ "centroid_x",
+ null
+ ],
+ [
+ "float",
+ "centroid_y",
+ null
+ ],
+ [
+ "float",
+ "rotation",
+ null
+ ],
+ [
+ "float",
+ "decision_margin",
+ null
+ ],
+ [
+ "int",
+ "hamming",
+ null
+ ],
+ [
+ "float",
+ "goodness",
+ null
+ ],
+ [
+ "float",
+ "x_translation",
+ null
+ ],
+ [
+ "float",
+ "y_translation",
+ null
+ ],
+ [
+ "float",
+ "z_translation",
+ null
+ ],
+ [
+ "float",
+ "x_rotation",
+ null
+ ],
+ [
+ "float",
+ "y_rotation",
+ null
+ ],
+ [
+ "float",
+ "z_rotation",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "AprilTag(std::vector &rect, std::vector> &corners, int id, int famliy, float centroid_x, float centroid_y, float rotation, float decision_margin, int hamming, float goodness, float x_translation, float y_translation, float z_translation, float x_rotation, float y_rotation, float z_rotation)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] Returns the apriltag\u2019s bounding box x coordinate\n[1] Returns the apriltag\u2019s bounding box y coordinate\n[2] Returns the apriltag\u2019s bounding box w coordinate\n[3] Returns the apriltag\u2019s bounding box h coordinate\n[4] Returns the apriltag\u2019s id\n[5] Returns the apriltag\u2019s family\n[6] Not support\n[7] Not support\n[8] Not support\n[9] Not support\n[10] Returns the apriltag\u2019s hamming\n[11] Not support\n[12] Not support\n[13] Not support\n[14] Not support\n[15] Not support\n[16] Not support\n[17] Not support"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.AprilTag.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] Returns the apriltag\u2019s bounding box x coordinate\n[1] Returns the apriltag\u2019s bounding box y coordinate\n[2] Returns the apriltag\u2019s bounding box w coordinate\n[3] Returns the apriltag\u2019s bounding box h coordinate\n[4] Returns the apriltag\u2019s id\n[5] Returns the apriltag\u2019s family\n[6] Not support\n[7] Not support\n[8] Not support\n[9] Not support\n[10] Returns the apriltag\u2019s hamming\n[11] Not support\n[12] Not support\n[13] Not support\n[14] Not support\n[15] Not support\n[16] Not support\n[17] Not support\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get coordinate of AprilTag",
+ "return": "return the coordinate of the AprilTag.",
+ "maixpy": "maix.image.AprilTag.corners",
+ "py_doc": "get coordinate of AprilTag\n\nReturns: return the coordinate of the AprilTag.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get rectangle of AprilTag",
+ "return": "return the rectangle of the AprilTag. format is {x, y, w, h}, type is std::vector",
+ "maixpy": "maix.image.AprilTag.rect",
+ "py_doc": "get rectangle of AprilTag\n\nReturns: return the rectangle of the AprilTag. format is {x, y, w, h}, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of AprilTag",
+ "return": "return x of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.x",
+ "py_doc": "get x of AprilTag\n\nReturns: return x of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of AprilTag",
+ "return": "return y of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.y",
+ "py_doc": "get y of AprilTag\n\nReturns: return y of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get w of AprilTag",
+ "return": "return w of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.w",
+ "py_doc": "get w of AprilTag\n\nReturns: return w of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get h of AprilTag",
+ "return": "return h of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.h",
+ "py_doc": "get h of AprilTag\n\nReturns: return h of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "id": {
+ "type": "func",
+ "name": "id",
+ "doc": {
+ "brief": "get id of AprilTag",
+ "return": "return id of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.id",
+ "py_doc": "get id of AprilTag\n\nReturns: return id of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int id()"
+ },
+ "family": {
+ "type": "func",
+ "name": "family",
+ "doc": {
+ "brief": "get family of AprilTag",
+ "return": "return family of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.family",
+ "py_doc": "get family of AprilTag\n\nReturns: return family of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int family()"
+ },
+ "cx": {
+ "type": "func",
+ "name": "cx",
+ "doc": {
+ "brief": "get cx of AprilTag",
+ "return": "return cx of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.cx",
+ "py_doc": "get cx of AprilTag\n\nReturns: return cx of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int cx()"
+ },
+ "cxf": {
+ "type": "func",
+ "name": "cxf",
+ "doc": {
+ "brief": "get cxf of AprilTag",
+ "return": "return cxf of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.cxf",
+ "py_doc": "get cxf of AprilTag\n\nReturns: return cxf of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float cxf()"
+ },
+ "cy": {
+ "type": "func",
+ "name": "cy",
+ "doc": {
+ "brief": "get cy of AprilTag",
+ "return": "return cy of the AprilTag, type is int",
+ "maixpy": "maix.image.AprilTag.cy",
+ "py_doc": "get cy of AprilTag\n\nReturns: return cy of the AprilTag, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int cy()"
+ },
+ "cyf": {
+ "type": "func",
+ "name": "cyf",
+ "doc": {
+ "brief": "get cyf of AprilTag",
+ "return": "return cyf of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.cyf",
+ "py_doc": "get cyf of AprilTag\n\nReturns: return cyf of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float cyf()"
+ },
+ "rotation": {
+ "type": "func",
+ "name": "rotation",
+ "doc": {
+ "brief": "get rotation of AprilTag",
+ "return": "return rotation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.rotation",
+ "py_doc": "get rotation of AprilTag\n\nReturns: return rotation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation()"
+ },
+ "decision_margin": {
+ "type": "func",
+ "name": "decision_margin",
+ "doc": {
+ "brief": "Get decision_margin of AprilTag",
+ "return": "Returns the quality of the apriltag match (0.0 - 1.0) where 1.0 is the best.",
+ "maixpy": "maix.image.AprilTag.decision_margin",
+ "py_doc": "Get decision_margin of AprilTag\n\nReturns: Returns the quality of the apriltag match (0.0 - 1.0) where 1.0 is the best.\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float decision_margin()"
+ },
+ "hamming": {
+ "type": "func",
+ "name": "hamming",
+ "doc": {
+ "brief": "get hamming of AprilTag",
+ "return": "Returns the number of accepted bit errors for this tag.\nreturn 0, means 0 bit errors will be accepted.\n1 is TAG25H7, means up to 1 bit error may be accepted\n2 is TAG25H9, means up to 3 bit errors may be accepted\n3 is TAG36H10, means up to 3 bit errors may be accepted\n4 is TAG36H11, means up to 4 bit errors may be accepted\n5 is ARTOOLKIT, means 0 bit errors will be accepted",
+ "maixpy": "maix.image.AprilTag.hamming",
+ "py_doc": "get hamming of AprilTag\n\nReturns: Returns the number of accepted bit errors for this tag.\nreturn 0, means 0 bit errors will be accepted.\n1 is TAG25H7, means up to 1 bit error may be accepted\n2 is TAG25H9, means up to 3 bit errors may be accepted\n3 is TAG36H10, means up to 3 bit errors may be accepted\n4 is TAG36H11, means up to 4 bit errors may be accepted\n5 is ARTOOLKIT, means 0 bit errors will be accepted\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int hamming()"
+ },
+ "goodness": {
+ "type": "func",
+ "name": "goodness",
+ "doc": {
+ "brief": "get goodness of AprilTag",
+ "return": "return goodness of the AprilTag, type is float\nNote: This value is always 0.0 for now.",
+ "maixpy": "maix.image.AprilTag.goodness",
+ "py_doc": "get goodness of AprilTag\n\nReturns: return goodness of the AprilTag, type is float\nNote: This value is always 0.0 for now.\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float goodness()"
+ },
+ "x_translation": {
+ "type": "func",
+ "name": "x_translation",
+ "doc": {
+ "brief": "get x_translation of AprilTag",
+ "return": "return x_translation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.x_translation",
+ "py_doc": "get x_translation of AprilTag\n\nReturns: return x_translation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float x_translation()"
+ },
+ "y_translation": {
+ "type": "func",
+ "name": "y_translation",
+ "doc": {
+ "brief": "get y_translation of AprilTag",
+ "return": "return y_translation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.y_translation",
+ "py_doc": "get y_translation of AprilTag\n\nReturns: return y_translation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float y_translation()"
+ },
+ "z_translation": {
+ "type": "func",
+ "name": "z_translation",
+ "doc": {
+ "brief": "get z_translation of AprilTag",
+ "return": "return z_translation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.z_translation",
+ "py_doc": "get z_translation of AprilTag\n\nReturns: return z_translation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float z_translation()"
+ },
+ "x_rotation": {
+ "type": "func",
+ "name": "x_rotation",
+ "doc": {
+ "brief": "get x_rotation of AprilTag",
+ "return": "return x_rotation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.x_rotation",
+ "py_doc": "get x_rotation of AprilTag\n\nReturns: return x_rotation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float x_rotation()"
+ },
+ "y_rotation": {
+ "type": "func",
+ "name": "y_rotation",
+ "doc": {
+ "brief": "get y_rotation of AprilTag",
+ "return": "return y_rotation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.y_rotation",
+ "py_doc": "get y_rotation of AprilTag\n\nReturns: return y_rotation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float y_rotation()"
+ },
+ "z_rotation": {
+ "type": "func",
+ "name": "z_rotation",
+ "doc": {
+ "brief": "get z_rotation of AprilTag",
+ "return": "return z_rotation of the AprilTag, type is float",
+ "maixpy": "maix.image.AprilTag.z_rotation",
+ "py_doc": "get z_rotation of AprilTag\n\nReturns: return z_rotation of the AprilTag, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float z_rotation()"
+ }
+ },
+ "def": "class AprilTag"
+ },
+ "DataMatrix": {
+ "type": "class",
+ "name": "DataMatrix",
+ "doc": {
+ "brief": "DataMatrix class",
+ "maixpy": "maix.image.DataMatrix",
+ "py_doc": "DataMatrix class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "DataMatrix",
+ "doc": {
+ "brief": "DataMatrix constructor",
+ "param": {
+ "rect": "Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector",
+ "corners": "Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>",
+ "payload": "The payload of the DataMatrix",
+ "rotation": "The rotation of the DataMatrix",
+ "rows": "The rows of the DataMatrix",
+ "columns": "The columns of the DataMatrix",
+ "capacity": "The capacity of the DataMatrix",
+ "padding": "The padding of the DataMatrix"
+ },
+ "maixpy": "maix.image.DataMatrix.__init__",
+ "py_doc": "DataMatrix constructor\n\nArgs:\n - rect: Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector\n - corners: Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>\n - payload: The payload of the DataMatrix\n - rotation: The rotation of the DataMatrix\n - rows: The rows of the DataMatrix\n - columns: The columns of the DataMatrix\n - capacity: The capacity of the DataMatrix\n - padding: The padding of the DataMatrix\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "rect",
+ null
+ ],
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "std::string &",
+ "payload",
+ null
+ ],
+ [
+ "float",
+ "rotation",
+ null
+ ],
+ [
+ "int",
+ "rows",
+ null
+ ],
+ [
+ "int",
+ "columns",
+ null
+ ],
+ [
+ "int",
+ "capacity",
+ null
+ ],
+ [
+ "int",
+ "padding",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "DataMatrix(std::vector &rect, std::vector> &corners, std::string &payload, float rotation, int rows, int columns, int capacity, int padding)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] get x of DataMatrix\n[1] get y of DataMatrix\n[2] get w of DataMatrix\n[3] get h of DataMatrix\n[4] Not support this index, try to use payload() method\n[5] Not support this index, try to use rotation() method\n[6] get rows of DataMatrix\n[7] get columns of DataMatrix\n[8] get capacity of DataMatrix\n[9] get padding of DataMatrix"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.DataMatrix.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] get x of DataMatrix\n[1] get y of DataMatrix\n[2] get w of DataMatrix\n[3] get h of DataMatrix\n[4] Not support this index, try to use payload() method\n[5] Not support this index, try to use rotation() method\n[6] get rows of DataMatrix\n[7] get columns of DataMatrix\n[8] get capacity of DataMatrix\n[9] get padding of DataMatrix\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get coordinate of DataMatrix",
+ "return": "return the coordinate of the DataMatrix.",
+ "maixpy": "maix.image.DataMatrix.corners",
+ "py_doc": "get coordinate of DataMatrix\n\nReturns: return the coordinate of the DataMatrix.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get rectangle of DataMatrix",
+ "return": "return the rectangle of the DataMatrix. format is {x, y, w, h}, type is std::vector",
+ "maixpy": "maix.image.DataMatrix.rect",
+ "py_doc": "get rectangle of DataMatrix\n\nReturns: return the rectangle of the DataMatrix. format is {x, y, w, h}, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of DataMatrix",
+ "return": "return x of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.x",
+ "py_doc": "get x of DataMatrix\n\nReturns: return x of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of DataMatrix",
+ "return": "return y of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.y",
+ "py_doc": "get y of DataMatrix\n\nReturns: return y of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get w of DataMatrix",
+ "return": "return w of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.w",
+ "py_doc": "get w of DataMatrix\n\nReturns: return w of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get h of DataMatrix",
+ "return": "return h of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.h",
+ "py_doc": "get h of DataMatrix\n\nReturns: return h of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "payload": {
+ "type": "func",
+ "name": "payload",
+ "doc": {
+ "brief": "get payload of DataMatrix",
+ "return": "return payload of the DataMatrix, type is std::string",
+ "maixpy": "maix.image.DataMatrix.payload",
+ "py_doc": "get payload of DataMatrix\n\nReturns: return payload of the DataMatrix, type is std::string\n"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string payload()"
+ },
+ "rotation": {
+ "type": "func",
+ "name": "rotation",
+ "doc": {
+ "brief": "get rotation of DataMatrix",
+ "return": "return rotation of the DataMatrix, type is float",
+ "maixpy": "maix.image.DataMatrix.rotation",
+ "py_doc": "get rotation of DataMatrix\n\nReturns: return rotation of the DataMatrix, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation()"
+ },
+ "rows": {
+ "type": "func",
+ "name": "rows",
+ "doc": {
+ "brief": "get rows of DataMatrix",
+ "return": "return rows of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.rows",
+ "py_doc": "get rows of DataMatrix\n\nReturns: return rows of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int rows()"
+ },
+ "columns": {
+ "type": "func",
+ "name": "columns",
+ "doc": {
+ "brief": "get columns of DataMatrix",
+ "return": "return columns of the DataMatrix, type is int",
+ "maixpy": "maix.image.DataMatrix.columns",
+ "py_doc": "get columns of DataMatrix\n\nReturns: return columns of the DataMatrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int columns()"
+ },
+ "capacity": {
+ "type": "func",
+ "name": "capacity",
+ "doc": {
+ "brief": "get capacity of DataMatrix",
+ "return": "returns how many characters could fit in this data matrix, type is int",
+ "maixpy": "maix.image.DataMatrix.capacity",
+ "py_doc": "get capacity of DataMatrix\n\nReturns: returns how many characters could fit in this data matrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int capacity()"
+ },
+ "padding": {
+ "type": "func",
+ "name": "padding",
+ "doc": {
+ "brief": "get padding of DataMatrix",
+ "return": "returns how many unused characters are in this data matrix, type is int",
+ "maixpy": "maix.image.DataMatrix.padding",
+ "py_doc": "get padding of DataMatrix\n\nReturns: returns how many unused characters are in this data matrix, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int padding()"
+ }
+ },
+ "def": "class DataMatrix"
+ },
+ "BarCode": {
+ "type": "class",
+ "name": "BarCode",
+ "doc": {
+ "brief": "BarCode class",
+ "maixpy": "maix.image.BarCode",
+ "py_doc": "BarCode class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "BarCode",
+ "doc": {
+ "brief": "BarCode constructor",
+ "param": {
+ "rect": "Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector",
+ "corners": "Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>",
+ "payload": "The payload of the BarCode",
+ "type": "The type of the BarCode",
+ "rotation": "The rotation of the BarCode",
+ "quality": "The quality of the BarCode"
+ },
+ "maixpy": "maix.image.BarCode.__init__",
+ "py_doc": "BarCode constructor\n\nArgs:\n - rect: Inlucdes the top-left corner and the width and height of the rectangle. format is {x, y, w, h}, type is std::vector\n - corners: Includes the four corners of the rectangle. format is {{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}}, type is std::vector>\n - payload: The payload of the BarCode\n - type: The type of the BarCode\n - rotation: The rotation of the BarCode\n - quality: The quality of the BarCode\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "rect",
+ null
+ ],
+ [
+ "std::vector> &",
+ "corners",
+ null
+ ],
+ [
+ "std::string &",
+ "payload",
+ null
+ ],
+ [
+ "int",
+ "type",
+ null
+ ],
+ [
+ "float",
+ "rotation",
+ null
+ ],
+ [
+ "int",
+ "quality",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "BarCode(std::vector &rect, std::vector> &corners, std::string &payload, int type, float rotation, int quality)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "[0] get x of BarCode\n[1] get y of BarCode\n[2] get w of BarCode\n[3] get h of BarCode\n[4] Not support this index, try to use payload() method\n[5] get type of BarCode\n[6] Not support this index, try to use rotation() method\n[7] get quality of BarCode"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.BarCode.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: [0] get x of BarCode\n[1] get y of BarCode\n[2] get w of BarCode\n[3] get h of BarCode\n[4] Not support this index, try to use payload() method\n[5] get type of BarCode\n[6] Not support this index, try to use rotation() method\n[7] get quality of BarCode\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "corners": {
+ "type": "func",
+ "name": "corners",
+ "doc": {
+ "brief": "get coordinate of BarCode",
+ "return": "return the coordinate of the BarCode.",
+ "maixpy": "maix.image.BarCode.corners",
+ "py_doc": "get coordinate of BarCode\n\nReturns: return the coordinate of the BarCode.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>",
+ "static": false,
+ "def": "std::vector> corners()"
+ },
+ "rect": {
+ "type": "func",
+ "name": "rect",
+ "doc": {
+ "brief": "get rectangle of BarCode",
+ "return": "return the rectangle of the BarCode. format is {x, y, w, h}, type is std::vector",
+ "maixpy": "maix.image.BarCode.rect",
+ "py_doc": "get rectangle of BarCode\n\nReturns: return the rectangle of the BarCode. format is {x, y, w, h}, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector rect()"
+ },
+ "x": {
+ "type": "func",
+ "name": "x",
+ "doc": {
+ "brief": "get x of BarCode",
+ "return": "return x of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.x",
+ "py_doc": "get x of BarCode\n\nReturns: return x of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int x()"
+ },
+ "y": {
+ "type": "func",
+ "name": "y",
+ "doc": {
+ "brief": "get y of BarCode",
+ "return": "return y of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.y",
+ "py_doc": "get y of BarCode\n\nReturns: return y of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int y()"
+ },
+ "w": {
+ "type": "func",
+ "name": "w",
+ "doc": {
+ "brief": "get w of BarCode",
+ "return": "return w of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.w",
+ "py_doc": "get w of BarCode\n\nReturns: return w of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int w()"
+ },
+ "h": {
+ "type": "func",
+ "name": "h",
+ "doc": {
+ "brief": "get h of BarCode",
+ "return": "return h of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.h",
+ "py_doc": "get h of BarCode\n\nReturns: return h of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int h()"
+ },
+ "payload": {
+ "type": "func",
+ "name": "payload",
+ "doc": {
+ "brief": "get payload of BarCode",
+ "return": "return payload of the BarCode, type is std::string",
+ "maixpy": "maix.image.BarCode.payload",
+ "py_doc": "get payload of BarCode\n\nReturns: return payload of the BarCode, type is std::string\n"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string payload()"
+ },
+ "type": {
+ "type": "func",
+ "name": "type",
+ "doc": {
+ "brief": "get type of BarCode",
+ "return": "return type of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.type",
+ "py_doc": "get type of BarCode\n\nReturns: return type of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int type()"
+ },
+ "rotation": {
+ "type": "func",
+ "name": "rotation",
+ "doc": {
+ "brief": "get rotation of BarCode",
+ "return": "return rotation of the BarCode, type is float. FIXME: always return 0.0",
+ "maixpy": "maix.image.BarCode.rotation",
+ "py_doc": "get rotation of BarCode\n\nReturns: return rotation of the BarCode, type is float. FIXME: always return 0.0\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation()"
+ },
+ "quality": {
+ "type": "func",
+ "name": "quality",
+ "doc": {
+ "brief": "get quality of BarCode",
+ "return": "return quality of the BarCode, type is int",
+ "maixpy": "maix.image.BarCode.quality",
+ "py_doc": "get quality of BarCode\n\nReturns: return quality of the BarCode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int quality()"
+ }
+ },
+ "def": "class BarCode"
+ },
+ "Statistics": {
+ "type": "class",
+ "name": "Statistics",
+ "doc": {
+ "brief": "Statistics class",
+ "maixpy": "maix.image.Statistics",
+ "py_doc": "Statistics class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Statistics",
+ "doc": {
+ "brief": "Statistics constructor",
+ "param": {
+ "format": "The statistics source image format",
+ "l_statistics": "The statistics of the L channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector",
+ "a_statistics": "The statistics of the A channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector",
+ "b_statistics": "The statistics of the B channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector"
+ },
+ "maixpy": "maix.image.Statistics.__init__",
+ "py_doc": "Statistics constructor\n\nArgs:\n - format: The statistics source image format\n - l_statistics: The statistics of the L channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector\n - a_statistics: The statistics of the A channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector\n - b_statistics: The statistics of the B channel. format is {mean, median, mode, std_dev, min, max, lq, uq}, type is std::vector\n"
+ },
+ "args": [
+ [
+ "image::Format",
+ "format",
+ null
+ ],
+ [
+ "std::vector &",
+ "l_statistics",
+ null
+ ],
+ [
+ "std::vector &",
+ "a_statistics",
+ null
+ ],
+ [
+ "std::vector &",
+ "b_statistics",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Statistics(image::Format format, std::vector &l_statistics, std::vector &a_statistics, std::vector &b_statistics)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "array index"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.Statistics.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: array index\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "format": {
+ "type": "func",
+ "name": "format",
+ "doc": {
+ "brief": "get format of Statistics source image",
+ "return": "return format of the Statistics source image, type is image::Format",
+ "maixpy": "maix.image.Statistics.format",
+ "py_doc": "get format of Statistics source image\n\nReturns: return format of the Statistics source image, type is image::Format\n"
+ },
+ "args": [],
+ "ret_type": "image::Format",
+ "static": false,
+ "def": "image::Format format()"
+ },
+ "l_mean": {
+ "type": "func",
+ "name": "l_mean",
+ "doc": {
+ "brief": "get L channel mean",
+ "return": "return L channel mean, type is int",
+ "maixpy": "maix.image.Statistics.l_mean",
+ "py_doc": "get L channel mean\n\nReturns: return L channel mean, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_mean()"
+ },
+ "l_median": {
+ "type": "func",
+ "name": "l_median",
+ "doc": {
+ "brief": "get L channel median",
+ "return": "return L channel median, type is int",
+ "maixpy": "maix.image.Statistics.l_median",
+ "py_doc": "get L channel median\n\nReturns: return L channel median, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_median()"
+ },
+ "l_mode": {
+ "type": "func",
+ "name": "l_mode",
+ "doc": {
+ "brief": "get L channel mode",
+ "return": "return L channel mode, type is int",
+ "maixpy": "maix.image.Statistics.l_mode",
+ "py_doc": "get L channel mode\n\nReturns: return L channel mode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_mode()"
+ },
+ "l_std_dev": {
+ "type": "func",
+ "name": "l_std_dev",
+ "doc": {
+ "brief": "get L channel std_dev",
+ "return": "return L channel std_dev, type is int",
+ "maixpy": "maix.image.Statistics.l_std_dev",
+ "py_doc": "get L channel std_dev\n\nReturns: return L channel std_dev, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_std_dev()"
+ },
+ "l_min": {
+ "type": "func",
+ "name": "l_min",
+ "doc": {
+ "brief": "get L channel min",
+ "return": "return L channel min, type is int",
+ "maixpy": "maix.image.Statistics.l_min",
+ "py_doc": "get L channel min\n\nReturns: return L channel min, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_min()"
+ },
+ "l_max": {
+ "type": "func",
+ "name": "l_max",
+ "doc": {
+ "brief": "get L channel max",
+ "return": "return L channel max, type is int",
+ "maixpy": "maix.image.Statistics.l_max",
+ "py_doc": "get L channel max\n\nReturns: return L channel max, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_max()"
+ },
+ "l_lq": {
+ "type": "func",
+ "name": "l_lq",
+ "doc": {
+ "brief": "get L channel lq",
+ "return": "return L channel lq, type is int",
+ "maixpy": "maix.image.Statistics.l_lq",
+ "py_doc": "get L channel lq\n\nReturns: return L channel lq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_lq()"
+ },
+ "l_uq": {
+ "type": "func",
+ "name": "l_uq",
+ "doc": {
+ "brief": "get L channel uq",
+ "return": "return L channel uq, type is int",
+ "maixpy": "maix.image.Statistics.l_uq",
+ "py_doc": "get L channel uq\n\nReturns: return L channel uq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_uq()"
+ },
+ "a_mean": {
+ "type": "func",
+ "name": "a_mean",
+ "doc": {
+ "brief": "get A channel mean",
+ "return": "return A channel mean, type is int",
+ "maixpy": "maix.image.Statistics.a_mean",
+ "py_doc": "get A channel mean\n\nReturns: return A channel mean, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_mean()"
+ },
+ "a_median": {
+ "type": "func",
+ "name": "a_median",
+ "doc": {
+ "brief": "get A channea median",
+ "return": "return A channel median, type is int",
+ "maixpy": "maix.image.Statistics.a_median",
+ "py_doc": "get A channea median\n\nReturns: return A channel median, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_median()"
+ },
+ "a_mode": {
+ "type": "func",
+ "name": "a_mode",
+ "doc": {
+ "brief": "get A channel mode",
+ "return": "return A channel mode, type is int",
+ "maixpy": "maix.image.Statistics.a_mode",
+ "py_doc": "get A channel mode\n\nReturns: return A channel mode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_mode()"
+ },
+ "a_std_dev": {
+ "type": "func",
+ "name": "a_std_dev",
+ "doc": {
+ "brief": "get A channel std_dev",
+ "return": "return A channel std_dev, type is int",
+ "maixpy": "maix.image.Statistics.a_std_dev",
+ "py_doc": "get A channel std_dev\n\nReturns: return A channel std_dev, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_std_dev()"
+ },
+ "a_min": {
+ "type": "func",
+ "name": "a_min",
+ "doc": {
+ "brief": "get A channel min",
+ "return": "return A channel min, type is int",
+ "maixpy": "maix.image.Statistics.a_min",
+ "py_doc": "get A channel min\n\nReturns: return A channel min, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_min()"
+ },
+ "a_max": {
+ "type": "func",
+ "name": "a_max",
+ "doc": {
+ "brief": "get A channel max",
+ "return": "return A channel max, type is int",
+ "maixpy": "maix.image.Statistics.a_max",
+ "py_doc": "get A channel max\n\nReturns: return A channel max, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_max()"
+ },
+ "a_lq": {
+ "type": "func",
+ "name": "a_lq",
+ "doc": {
+ "brief": "get A channel lq",
+ "return": "return A channel lq, type is int",
+ "maixpy": "maix.image.Statistics.a_lq",
+ "py_doc": "get A channel lq\n\nReturns: return A channel lq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_lq()"
+ },
+ "a_uq": {
+ "type": "func",
+ "name": "a_uq",
+ "doc": {
+ "brief": "get A channel uq",
+ "return": "return A channel uq, type is int",
+ "maixpy": "maix.image.Statistics.a_uq",
+ "py_doc": "get A channel uq\n\nReturns: return A channel uq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_uq()"
+ },
+ "b_mean": {
+ "type": "func",
+ "name": "b_mean",
+ "doc": {
+ "brief": "get B channel mean",
+ "return": "return B channel mean, type is int",
+ "maixpy": "maix.image.Statistics.b_mean",
+ "py_doc": "get B channel mean\n\nReturns: return B channel mean, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_mean()"
+ },
+ "b_median": {
+ "type": "func",
+ "name": "b_median",
+ "doc": {
+ "brief": "get B channea median",
+ "return": "return B channel median, type is int",
+ "maixpy": "maix.image.Statistics.b_median",
+ "py_doc": "get B channea median\n\nReturns: return B channel median, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_median()"
+ },
+ "b_mode": {
+ "type": "func",
+ "name": "b_mode",
+ "doc": {
+ "brief": "get B channel mode",
+ "return": "return B channel mode, type is int",
+ "maixpy": "maix.image.Statistics.b_mode",
+ "py_doc": "get B channel mode\n\nReturns: return B channel mode, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_mode()"
+ },
+ "b_std_dev": {
+ "type": "func",
+ "name": "b_std_dev",
+ "doc": {
+ "brief": "get B channel std_dev",
+ "return": "return B channel std_dev, type is int",
+ "maixpy": "maix.image.Statistics.b_std_dev",
+ "py_doc": "get B channel std_dev\n\nReturns: return B channel std_dev, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_std_dev()"
+ },
+ "b_min": {
+ "type": "func",
+ "name": "b_min",
+ "doc": {
+ "brief": "get B channel min",
+ "return": "return B channel min, type is int",
+ "maixpy": "maix.image.Statistics.b_min",
+ "py_doc": "get B channel min\n\nReturns: return B channel min, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_min()"
+ },
+ "b_max": {
+ "type": "func",
+ "name": "b_max",
+ "doc": {
+ "brief": "get B channel max",
+ "return": "return B channel max, type is int",
+ "maixpy": "maix.image.Statistics.b_max",
+ "py_doc": "get B channel max\n\nReturns: return B channel max, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_max()"
+ },
+ "b_lq": {
+ "type": "func",
+ "name": "b_lq",
+ "doc": {
+ "brief": "get B channel lq",
+ "return": "return B channel lq, type is int",
+ "maixpy": "maix.image.Statistics.b_lq",
+ "py_doc": "get B channel lq\n\nReturns: return B channel lq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_lq()"
+ },
+ "b_uq": {
+ "type": "func",
+ "name": "b_uq",
+ "doc": {
+ "brief": "get B channel uq",
+ "return": "return B channel uq, type is int",
+ "maixpy": "maix.image.Statistics.b_uq",
+ "py_doc": "get B channel uq\n\nReturns: return B channel uq, type is int\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_uq()"
+ }
+ },
+ "def": "class Statistics"
+ },
+ "Displacement": {
+ "type": "class",
+ "name": "Displacement",
+ "doc": {
+ "brief": "Displacement class",
+ "maixpy": "maix.image.Displacement",
+ "py_doc": "Displacement class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Displacement",
+ "doc": {
+ "brief": "Displacement constructor",
+ "param": {
+ "x_translation": "The x_translation of the Displacement",
+ "y_translation": "The y_translation of the Displacement",
+ "rotation": "The rotation of the Displacement",
+ "scale": "The scale of the Displacement",
+ "response": "The response of the Displacement"
+ },
+ "maixpy": "maix.image.Displacement.__init__",
+ "py_doc": "Displacement constructor\n\nArgs:\n - x_translation: The x_translation of the Displacement\n - y_translation: The y_translation of the Displacement\n - rotation: The rotation of the Displacement\n - scale: The scale of the Displacement\n - response: The response of the Displacement\n"
+ },
+ "args": [
+ [
+ "float",
+ "x_translation",
+ null
+ ],
+ [
+ "float",
+ "y_translation",
+ null
+ ],
+ [
+ "float",
+ "rotation",
+ null
+ ],
+ [
+ "float",
+ "scale",
+ null
+ ],
+ [
+ "float",
+ "response",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Displacement(float x_translation, float y_translation, float rotation, float scale, float response)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "param": {
+ "index": "array index"
+ },
+ "return": "int&",
+ "maixpy": "maix.image.Displacement.__getitem__",
+ "py_doc": "Subscript operator\n\nArgs:\n - index: array index\n\n\nReturns: int&\n"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "x_translation": {
+ "type": "func",
+ "name": "x_translation",
+ "doc": {
+ "brief": "get x_translation of Displacement",
+ "return": "return x_translation of the Displacement, type is float",
+ "maixpy": "maix.image.Displacement.x_translation",
+ "py_doc": "get x_translation of Displacement\n\nReturns: return x_translation of the Displacement, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float x_translation()"
+ },
+ "y_translation": {
+ "type": "func",
+ "name": "y_translation",
+ "doc": {
+ "brief": "get y_translation of Displacement",
+ "return": "return y_translation of the Displacement, type is float",
+ "maixpy": "maix.image.Displacement.y_translation",
+ "py_doc": "get y_translation of Displacement\n\nReturns: return y_translation of the Displacement, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float y_translation()"
+ },
+ "rotation": {
+ "type": "func",
+ "name": "rotation",
+ "doc": {
+ "brief": "get rotation of Displacement",
+ "return": "return rotation of the Displacement, type is float",
+ "maixpy": "maix.image.Displacement.rotation",
+ "py_doc": "get rotation of Displacement\n\nReturns: return rotation of the Displacement, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float rotation()"
+ },
+ "scale": {
+ "type": "func",
+ "name": "scale",
+ "doc": {
+ "brief": "get scale of Displacement",
+ "return": "return scale of the Displacement, type is float",
+ "maixpy": "maix.image.Displacement.scale",
+ "py_doc": "get scale of Displacement\n\nReturns: return scale of the Displacement, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float scale()"
+ },
+ "response": {
+ "type": "func",
+ "name": "response",
+ "doc": {
+ "brief": "get response of Displacement",
+ "return": "return response of the Displacement, type is float",
+ "maixpy": "maix.image.Displacement.response",
+ "py_doc": "get response of Displacement\n\nReturns: return response of the Displacement, type is float\n"
+ },
+ "args": [],
+ "ret_type": "float",
+ "static": false,
+ "def": "float response()"
+ }
+ },
+ "def": "class Displacement"
+ },
+ "Percentile": {
+ "type": "class",
+ "name": "Percentile",
+ "doc": {
+ "brief": "Percentile class",
+ "maixpy": "maix.image.Percentile",
+ "py_doc": "Percentile class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Percentile",
+ "doc": {
+ "brief": "Percentile constructor",
+ "param": {
+ "l_value": "for grayscale image, it is grayscale percentile value (between 0 and 255).\nfor rgb888 image, it is l channel percentile value of lab (between 0 and 100).",
+ "a_value": "for rgb888 image, it is a channel percentile value of lab format(between -128 and 127).",
+ "b_value": "for rgb888 image, it is b channel percentile value of lab format(between -128 and 127)."
+ },
+ "maixpy": "maix.image.Percentile.__init__",
+ "py_doc": "Percentile constructor\n\nArgs:\n - l_value: for grayscale image, it is grayscale percentile value (between 0 and 255).\nfor rgb888 image, it is l channel percentile value of lab (between 0 and 100).\n - a_value: for rgb888 image, it is a channel percentile value of lab format(between -128 and 127).\n - b_value: for rgb888 image, it is b channel percentile value of lab format(between -128 and 127).\n"
+ },
+ "args": [
+ [
+ "int",
+ "l_value",
+ null
+ ],
+ [
+ "int",
+ "a_value",
+ "0"
+ ],
+ [
+ "int",
+ "b_value",
+ "0"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Percentile(int l_value, int a_value = 0, int b_value = 0)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "maixpy": "maix.image.Percentile.__getitem__",
+ "py_doc": "Subscript operator"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "value": {
+ "type": "func",
+ "name": "value",
+ "doc": {
+ "brief": "Return the grayscale percentile value (between 0 and 255).",
+ "return": "returns grayscale percentile value",
+ "maixpy": "maix.image.Percentile.value",
+ "py_doc": "Return the grayscale percentile value (between 0 and 255).\n\nReturns: returns grayscale percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int value()"
+ },
+ "l_value": {
+ "type": "func",
+ "name": "l_value",
+ "doc": {
+ "brief": "Return the l channel percentile value of lab format (between 0 and 100).",
+ "return": "returns l channel percentile value",
+ "maixpy": "maix.image.Percentile.l_value",
+ "py_doc": "Return the l channel percentile value of lab format (between 0 and 100).\n\nReturns: returns l channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_value()"
+ },
+ "a_value": {
+ "type": "func",
+ "name": "a_value",
+ "doc": {
+ "brief": "Return the a channel percentile value of lab format (between -128 and 127).",
+ "return": "returns a channel percentile value",
+ "maixpy": "maix.image.Percentile.a_value",
+ "py_doc": "Return the a channel percentile value of lab format (between -128 and 127).\n\nReturns: returns a channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_value()"
+ },
+ "b_value": {
+ "type": "func",
+ "name": "b_value",
+ "doc": {
+ "brief": "Return the b channel percentile value of lab format (between -128 and 127).",
+ "return": "returns b channel percentile value",
+ "maixpy": "maix.image.Percentile.b_value",
+ "py_doc": "Return the b channel percentile value of lab format (between -128 and 127).\n\nReturns: returns b channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_value()"
+ }
+ },
+ "def": "class Percentile"
+ },
+ "Threshold": {
+ "type": "class",
+ "name": "Threshold",
+ "doc": {
+ "brief": "Threshold class",
+ "maixpy": "maix.image.Threshold",
+ "py_doc": "Threshold class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Threshold",
+ "doc": {
+ "brief": "Threshold constructor",
+ "param": {
+ "l_value": "for grayscale image, it is grayscale threshold value (between 0 and 255).\nfor rgb888 image, it is l channel threshold value of lab (between 0 and 100).",
+ "a_value": "for rgb888 image, it is a channel threshold value of lab format(between -128 and 127).",
+ "b_value": "for rgb888 image, it is b channel threshold value of lab format(between -128 and 127)."
+ },
+ "maixpy": "maix.image.Threshold.__init__",
+ "py_doc": "Threshold constructor\n\nArgs:\n - l_value: for grayscale image, it is grayscale threshold value (between 0 and 255).\nfor rgb888 image, it is l channel threshold value of lab (between 0 and 100).\n - a_value: for rgb888 image, it is a channel threshold value of lab format(between -128 and 127).\n - b_value: for rgb888 image, it is b channel threshold value of lab format(between -128 and 127).\n"
+ },
+ "args": [
+ [
+ "int",
+ "l_value",
+ null
+ ],
+ [
+ "int",
+ "a_value",
+ "0"
+ ],
+ [
+ "int",
+ "b_value",
+ "0"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Threshold(int l_value, int a_value = 0, int b_value = 0)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "maixpy": "maix.image.Threshold.__getitem__",
+ "py_doc": "Subscript operator"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "value": {
+ "type": "func",
+ "name": "value",
+ "doc": {
+ "brief": "Return the grayscale threshold value (between 0 and 255).",
+ "return": "returns grayscale threshold value",
+ "maixpy": "maix.image.Threshold.value",
+ "py_doc": "Return the grayscale threshold value (between 0 and 255).\n\nReturns: returns grayscale threshold value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int value()"
+ },
+ "l_value": {
+ "type": "func",
+ "name": "l_value",
+ "doc": {
+ "brief": "Return the l channel threshold value of lab format (between 0 and 100).",
+ "return": "returns l channel percentile value",
+ "maixpy": "maix.image.Threshold.l_value",
+ "py_doc": "Return the l channel threshold value of lab format (between 0 and 100).\n\nReturns: returns l channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int l_value()"
+ },
+ "a_value": {
+ "type": "func",
+ "name": "a_value",
+ "doc": {
+ "brief": "Return the a channel threshold value of lab format (between -128 and 127).",
+ "return": "returns a channel percentile value",
+ "maixpy": "maix.image.Threshold.a_value",
+ "py_doc": "Return the a channel threshold value of lab format (between -128 and 127).\n\nReturns: returns a channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int a_value()"
+ },
+ "b_value": {
+ "type": "func",
+ "name": "b_value",
+ "doc": {
+ "brief": "Return the b channel threshold value of lab format (between -128 and 127).",
+ "return": "returns b channel percentile value",
+ "maixpy": "maix.image.Threshold.b_value",
+ "py_doc": "Return the b channel threshold value of lab format (between -128 and 127).\n\nReturns: returns b channel percentile value\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int b_value()"
+ }
+ },
+ "def": "class Threshold"
+ },
+ "Histogram": {
+ "type": "class",
+ "name": "Histogram",
+ "doc": {
+ "brief": "Histogram class",
+ "maixpy": "maix.image.Histogram",
+ "py_doc": "Histogram class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "Histogram",
+ "doc": {
+ "brief": "Histogram constructor",
+ "param": {
+ "l_value": "for grayscale image, it is grayscale threshold value list (the range of element values in the list is 0 and 255).\nfor rgb888 image, it is l channel threshold value list of lab (the range of element values in the list is 0 and 100).",
+ "a_value": "for rgb888 image, it is a channel threshold value list of lab format(the range of element values in the list is -128 and 127).",
+ "b_value": "for rgb888 image, it is b channel threshold value list of lab format(the range of element values in the list is -128 and 127).",
+ "format": "format of the source image"
+ },
+ "maixpy": "maix.image.Histogram.__init__",
+ "py_doc": "Histogram constructor\n\nArgs:\n - l_value: for grayscale image, it is grayscale threshold value list (the range of element values in the list is 0 and 255).\nfor rgb888 image, it is l channel threshold value list of lab (the range of element values in the list is 0 and 100).\n - a_value: for rgb888 image, it is a channel threshold value list of lab format(the range of element values in the list is -128 and 127).\n - b_value: for rgb888 image, it is b channel threshold value list of lab format(the range of element values in the list is -128 and 127).\n - format: format of the source image\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "l_bin",
+ null
+ ],
+ [
+ "std::vector",
+ "a_bin",
+ null
+ ],
+ [
+ "std::vector",
+ "b_bin",
+ null
+ ],
+ [
+ "image::Format",
+ "format",
+ "image::Format::FMT_RGB888"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Histogram(std::vector l_bin, std::vector a_bin, std::vector b_bin, image::Format format = image::Format::FMT_RGB888)"
+ },
+ "__getitem__": {
+ "type": "func",
+ "name": "__getitem__",
+ "doc": {
+ "brief": "Subscript operator",
+ "maixpy": "maix.image.Histogram.__getitem__",
+ "py_doc": "Subscript operator"
+ },
+ "args": [
+ [
+ "int",
+ "index",
+ null
+ ]
+ ],
+ "ret_type": "int&",
+ "static": false,
+ "def": "int &__getitem__(int index)"
+ },
+ "bins": {
+ "type": "func",
+ "name": "bins",
+ "doc": {
+ "brief": "Returns a list of floats for the grayscale histogram.",
+ "maixpy": "maix.image.Histogram.bins",
+ "py_doc": "Returns a list of floats for the grayscale histogram."
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector bins()"
+ },
+ "l_bins": {
+ "type": "func",
+ "name": "l_bins",
+ "doc": {
+ "brief": "Returns a list of floats for the RGB565 histogram LAB L channel.",
+ "maixpy": "maix.image.Histogram.l_bins",
+ "py_doc": "Returns a list of floats for the RGB565 histogram LAB L channel."
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector l_bins()"
+ },
+ "a_bins": {
+ "type": "func",
+ "name": "a_bins",
+ "doc": {
+ "brief": "Returns a list of floats for the RGB565 histogram LAB A channel.",
+ "maixpy": "maix.image.Histogram.a_bins",
+ "py_doc": "Returns a list of floats for the RGB565 histogram LAB A channel."
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector a_bins()"
+ },
+ "b_bins": {
+ "type": "func",
+ "name": "b_bins",
+ "doc": {
+ "brief": "Returns a list of floats for the RGB565 histogram LAB B channel.",
+ "maixpy": "maix.image.Histogram.b_bins",
+ "py_doc": "Returns a list of floats for the RGB565 histogram LAB B channel."
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector b_bins()"
+ },
+ "get_percentile": {
+ "type": "func",
+ "name": "get_percentile",
+ "doc": {
+ "brief": "Computes the CDF of the histogram channels and returns a image::Percentile object",
+ "param": {
+ "percentile": "the values of the histogram at the passed in percentile (0.0 - 1.0) (float).\nSo, if you pass in 0.1 this method will tell you (going from left-to-right in the histogram)\nwhat bin when summed into an accumulator caused the accumulator to cross 0.1. This is useful\nto determine min (with 0.1) and max (with 0.9) of a color distribution without outlier effects\nruining your results for adaptive color tracking."
+ },
+ "return": "image::Percentile object",
+ "maixpy": "maix.image.Histogram.get_percentile",
+ "py_doc": "Computes the CDF of the histogram channels and returns a image::Percentile object\n\nArgs:\n - percentile: the values of the histogram at the passed in percentile (0.0 - 1.0) (float).\nSo, if you pass in 0.1 this method will tell you (going from left-to-right in the histogram)\nwhat bin when summed into an accumulator caused the accumulator to cross 0.1. This is useful\nto determine min (with 0.1) and max (with 0.9) of a color distribution without outlier effects\nruining your results for adaptive color tracking.\n\n\nReturns: image::Percentile object\n"
+ },
+ "args": [
+ [
+ "float",
+ "percentile",
+ null
+ ]
+ ],
+ "ret_type": "image::Percentile",
+ "static": false,
+ "def": "image::Percentile get_percentile(float percentile)"
+ },
+ "get_threshold": {
+ "type": "func",
+ "name": "get_threshold",
+ "doc": {
+ "brief": "Uses Otsu\u2019s Method to compute the optimal threshold values that split the histogram into two halves for each channel of the histogram and returns a image::Threshold object.",
+ "return": "image::Threshold object",
+ "maixpy": "maix.image.Histogram.get_threshold",
+ "py_doc": "Uses Otsu\u2019s Method to compute the optimal threshold values that split the histogram into two halves for each channel of the histogram and returns a image::Threshold object.\n\nReturns: image::Threshold object\n"
+ },
+ "args": [],
+ "ret_type": "image::Threshold",
+ "static": false,
+ "def": "image::Threshold get_threshold()"
+ },
+ "get_statistics": {
+ "type": "func",
+ "name": "get_statistics",
+ "doc": {
+ "brief": "Computes the mean, median, mode, standard deviation, min, max, lower quartile, and upper quartile of each color channel in the histogram and returns a image::Statistics object.",
+ "return": "image::Statistics object",
+ "maixpy": "maix.image.Histogram.get_statistics",
+ "py_doc": "Computes the mean, median, mode, standard deviation, min, max, lower quartile, and upper quartile of each color channel in the histogram and returns a image::Statistics object.\n\nReturns: image::Statistics object\n"
+ },
+ "args": [],
+ "ret_type": "image::Statistics",
+ "static": false,
+ "def": "image::Statistics get_statistics()"
+ }
+ },
+ "def": "class Histogram"
+ },
+ "LBPKeyPoint": {
+ "type": "class",
+ "name": "LBPKeyPoint",
+ "doc": {
+ "brief": "LBPKeyPoint class",
+ "maixpy": "maix.image.LBPKeyPoint",
+ "py_doc": "LBPKeyPoint class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "LBPKeyPoint",
+ "doc": {
+ "brief": "LBPKeyPoint constructor",
+ "param": {
+ "data": "The data of the LBPKeyPoint"
+ },
+ "maixpy": "maix.image.LBPKeyPoint.__init__",
+ "py_doc": "LBPKeyPoint constructor\n\nArgs:\n - data: The data of the LBPKeyPoint\n"
+ },
+ "args": [
+ [
+ "std::valarray &",
+ "data",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "LBPKeyPoint(std::valarray &data)"
+ }
+ },
+ "def": "class LBPKeyPoint"
+ },
+ "KeyPoint": {
+ "type": "class",
+ "name": "KeyPoint",
+ "doc": {
+ "brief": "KeyPoint class",
+ "maixpy": "maix.image.KeyPoint",
+ "py_doc": "KeyPoint class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "KeyPoint",
+ "doc": {
+ "brief": "KeyPoint constructor",
+ "param": {
+ "x": "The x of the KeyPoint",
+ "y": "The y of the KeyPoint",
+ "score": "The score of the KeyPoint",
+ "octave": "The octave of the KeyPoint",
+ "angle": "The angle of the KeyPoint",
+ "matched": "The matched of the KeyPoint",
+ "desc": "The desc of the KeyPoint"
+ },
+ "maixpy": "maix.image.KeyPoint.__init__",
+ "py_doc": "KeyPoint constructor\n\nArgs:\n - x: The x of the KeyPoint\n - y: The y of the KeyPoint\n - score: The score of the KeyPoint\n - octave: The octave of the KeyPoint\n - angle: The angle of the KeyPoint\n - matched: The matched of the KeyPoint\n - desc: The desc of the KeyPoint\n"
+ },
+ "args": [
+ [
+ "uint16_t",
+ "x",
+ null
+ ],
+ [
+ "uint16_t",
+ "y",
+ null
+ ],
+ [
+ "uint16_t",
+ "score",
+ null
+ ],
+ [
+ "uint16_t",
+ "octave",
+ null
+ ],
+ [
+ "uint16_t",
+ "angle",
+ null
+ ],
+ [
+ "uint16_t",
+ "matched",
+ null
+ ],
+ [
+ "std::vector &",
+ "desc",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "KeyPoint(uint16_t x, uint16_t y, uint16_t score, uint16_t octave, uint16_t angle, uint16_t matched, std::vector &desc)"
+ }
+ },
+ "def": "class KeyPoint"
+ },
+ "KPTMatch": {
+ "type": "class",
+ "name": "KPTMatch",
+ "doc": {
+ "brief": "KPTMatch class",
+ "maixpy": "maix.image.KPTMatch",
+ "py_doc": "KPTMatch class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "KPTMatch",
+ "doc": {
+ "brief": "KPTMatch constructor",
+ "param": {
+ "cx": "The cx of the KPTMatch",
+ "cy": "The cy of the KPTMatch",
+ "x": "The x of the KPTMatch",
+ "y": "The y of the KPTMatch",
+ "w": "The w of the KPTMatch",
+ "h": "The h of the KPTMatch",
+ "score": "The score of the KPTMatch",
+ "theta": "The theta of the KPTMatch",
+ "match": "The match of the KPTMatch"
+ },
+ "maixpy": "maix.image.KPTMatch.__init__",
+ "py_doc": "KPTMatch constructor\n\nArgs:\n - cx: The cx of the KPTMatch\n - cy: The cy of the KPTMatch\n - x: The x of the KPTMatch\n - y: The y of the KPTMatch\n - w: The w of the KPTMatch\n - h: The h of the KPTMatch\n - score: The score of the KPTMatch\n - theta: The theta of the KPTMatch\n - match: The match of the KPTMatch\n"
+ },
+ "args": [
+ [
+ "int",
+ "cx",
+ null
+ ],
+ [
+ "int",
+ "cy",
+ null
+ ],
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ null
+ ],
+ [
+ "int",
+ "h",
+ null
+ ],
+ [
+ "int",
+ "score",
+ null
+ ],
+ [
+ "int",
+ "theta",
+ null
+ ],
+ [
+ "int",
+ "match",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "KPTMatch(int cx, int cy, int x, int y, int w, int h, int score, int theta, int match)"
+ }
+ },
+ "def": "class KPTMatch"
+ },
+ "ORBKeyPoint": {
+ "type": "class",
+ "name": "ORBKeyPoint",
+ "doc": {
+ "brief": "ORBKeyPoint class",
+ "maixpy": "maix.image.ORBKeyPoint",
+ "py_doc": "ORBKeyPoint class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "ORBKeyPoint",
+ "doc": {
+ "brief": "ORBKeyPoint constructor",
+ "param": {
+ "data": "The data of the ORBKeyPoint",
+ "threshold": "The threshold of the ORBKeyPoint",
+ "normalized": "The normalized of the ORBKeyPoint"
+ },
+ "maixpy": "maix.image.ORBKeyPoint.__init__",
+ "py_doc": "ORBKeyPoint constructor\n\nArgs:\n - data: The data of the ORBKeyPoint\n - threshold: The threshold of the ORBKeyPoint\n - normalized: The normalized of the ORBKeyPoint\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "data",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ null
+ ],
+ [
+ "bool",
+ "normalized",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "ORBKeyPoint(std::vector &data, int threshold, bool normalized)"
+ },
+ "get_data": {
+ "type": "func",
+ "name": "get_data",
+ "doc": {
+ "brief": "get data of ORBKeyPoint",
+ "return": "return data of the ORBKeyPoint, type is std::vector",
+ "maixpy": "maix.image.ORBKeyPoint.get_data",
+ "py_doc": "get data of ORBKeyPoint\n\nReturns: return data of the ORBKeyPoint, type is std::vector\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector get_data()"
+ }
+ },
+ "def": "class ORBKeyPoint"
+ },
+ "HaarCascade": {
+ "type": "class",
+ "name": "HaarCascade",
+ "doc": {
+ "brief": "HaarCascade class",
+ "maixpy": "maix.image.HaarCascade",
+ "py_doc": "HaarCascade class"
+ },
+ "members": {
+ "__init__": {
+ "type": "func",
+ "name": "HaarCascade",
+ "doc": {
+ "brief": "HaarCascade constructor",
+ "param": {
+ "data": "The data of the HaarCascade",
+ "threshold": "The threshold of the HaarCascade",
+ "normalized": "The normalized of the HaarCascade"
+ },
+ "maixpy": "maix.image.HaarCascade.__init__",
+ "py_doc": "HaarCascade constructor\n\nArgs:\n - data: The data of the HaarCascade\n - threshold: The threshold of the HaarCascade\n - normalized: The normalized of the HaarCascade\n"
+ },
+ "args": [],
+ "ret_type": null,
+ "static": false,
+ "def": "HaarCascade()",
+ "overload": [
+ {
+ "type": "func",
+ "name": "LineGroup",
+ "doc": {
+ "brief": "LineGroup constructor",
+ "param": {
+ "id": "The id of line",
+ "type": "The line list type, @see image::LineType",
+ "lines": "The line list",
+ "points": "Point sets of line"
+ },
+ "maixpy": "maix.image.HaarCascade.__init__",
+ "py_doc": "LineGroup constructor\n\nArgs:\n - id: The id of line\n - type: The line list type, @see image::LineType\n - lines: The line list\n - points: Point sets of line\n"
+ },
+ "args": [
+ [
+ "int",
+ "id",
+ null
+ ],
+ [
+ "image::LineType",
+ "type",
+ null
+ ],
+ [
+ "std::vector",
+ "lines",
+ null
+ ],
+ [
+ "std::vector>>",
+ "points",
+ "std::vector>>()"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "LineGroup(int id, image::LineType type, std::vector lines, std::vector>> points = std::vector>>())"
+ }
+ ]
+ }
+ },
+ "def": "class HaarCascade"
+ },
+ "LineType": {
+ "type": "enum",
+ "name": "class",
+ "doc": {
+ "brief": "Line type class",
+ "maixpy": "maix.image.LineType",
+ "py_doc": "Line type class"
+ },
+ "values": [
+ [
+ "LINE_NORMAL",
+ "",
+ ""
+ ],
+ [
+ "LINE_CROSS",
+ "",
+ ""
+ ],
+ [
+ "LINE_T",
+ "",
+ ""
+ ],
+ [
+ "LINE_L",
+ "",
+ ""
+ ]
+ ],
+ "def": "enum class LineType {\n LINE_NORMAL,\n LINE_CROSS,\n LINE_T,\n LINE_L,\n }"
+ },
+ "LineGroup": {
+ "type": "class",
+ "name": "LineGroup",
+ "doc": {
+ "brief": "LineGroup class",
+ "maixpy": "maix.image.LineGroup",
+ "py_doc": "LineGroup class"
+ },
+ "members": {
+ "id": {
+ "type": "func",
+ "name": "id",
+ "doc": {
+ "brief": "Get the line id of group, first id is 0.",
+ "return": "return id",
+ "maixpy": "maix.image.LineGroup.id",
+ "py_doc": "Get the line id of group, first id is 0.\n\nReturns: return id\n"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int id()"
+ },
+ "type": {
+ "type": "func",
+ "name": "type",
+ "doc": {
+ "brief": "Get the line type of group",
+ "return": "returns line type. @see LineType",
+ "maixpy": "maix.image.LineGroup.type",
+ "py_doc": "Get the line type of group\n\nReturns: returns line type. @see LineType\n"
+ },
+ "args": [],
+ "ret_type": "image::LineType",
+ "static": false,
+ "def": "image::LineType type()"
+ },
+ "lines": {
+ "type": "func",
+ "name": "lines",
+ "doc": {
+ "brief": "Get a list of line",
+ "return": "returns a list composed of Line objects",
+ "maixpy": "maix.image.LineGroup.lines",
+ "py_doc": "Get a list of line\n\nReturns: returns a list composed of Line objects\n"
+ },
+ "args": [],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector lines()"
+ },
+ "points": {
+ "type": "func",
+ "name": "points",
+ "doc": {
+ "brief": "Get the key points of line",
+ "return": "returns a list composed of (x,y) coordnates.",
+ "maixpy": "maix.image.LineGroup.points",
+ "py_doc": "Get the key points of line\n\nReturns: returns a list composed of (x,y) coordnates.\n"
+ },
+ "args": [],
+ "ret_type": "std::vector>>",
+ "static": false,
+ "def": "std::vector>> points()"
+ }
+ },
+ "def": "class LineGroup"
+ },
+ "resize_map_pos": {
+ "type": "func",
+ "name": "resize_map_pos",
+ "doc": {
+ "brief": "map point position or rectangle position from one image size to another image size(resize)",
+ "param": {
+ "int": "h_out target image height",
+ "fit": "resize method, see maix.image.Fit",
+ "x": "original point x, or rectagle left-top point's x",
+ "y": "original point y, or rectagle left-top point's y",
+ "w": "original rectagle width, can be -1 if not use this arg, default -1.",
+ "h": "original rectagle height, can be -1 if not use this arg, default -1."
+ },
+ "return": "list type, [x, y] if map point, [x, y, w, h] if resize rectangle.",
+ "maixpy": "maix.image.resize_map_pos",
+ "py_doc": "map point position or rectangle position from one image size to another image size(resize)\n\nArgs:\n - int: h_out target image height\n - fit: resize method, see maix.image.Fit\n - x: original point x, or rectagle left-top point's x\n - y: original point y, or rectagle left-top point's y\n - w: original rectagle width, can be -1 if not use this arg, default -1.\n - h: original rectagle height, can be -1 if not use this arg, default -1.\n\n\nReturns: list type, [x, y] if map point, [x, y, w, h] if resize rectangle.\n"
+ },
+ "args": [
+ [
+ "int",
+ "w_in",
+ null
+ ],
+ [
+ "int",
+ "h_in",
+ null
+ ],
+ [
+ "int",
+ "w_out",
+ null
+ ],
+ [
+ "int",
+ "h_out",
+ null
+ ],
+ [
+ "image::Fit",
+ "fit",
+ null
+ ],
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ "-1"
+ ],
+ [
+ "int",
+ "h",
+ "-1"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector resize_map_pos(int w_in, int h_in, int w_out, int h_out, image::Fit fit, int x, int y, int w = -1, int h = -1)",
+ "overload": [
+ {
+ "type": "func",
+ "name": "resize_map_pos",
+ "doc": {
+ "brief": "map point position or rectangle position from this image size to another image size(resize)",
+ "param": {
+ "int": "h_out target image height",
+ "fit": "resize method, see maix.image.Fit",
+ "x": "original point x, or rectagle left-top point's x",
+ "y": "original point y, or rectagle left-top point's y",
+ "w": "original rectagle width, can be -1 if not use this arg, default -1.",
+ "h": "original rectagle height, can be -1 if not use this arg, default -1."
+ },
+ "return": "list type, [x, y] if map point, [x, y, w, h] if resize rectangle.",
+ "maixpy": "maix.image.resize_map_pos",
+ "py_doc": "map point position or rectangle position from this image size to another image size(resize)\n\nArgs:\n - int: h_out target image height\n - fit: resize method, see maix.image.Fit\n - x: original point x, or rectagle left-top point's x\n - y: original point y, or rectagle left-top point's y\n - w: original rectagle width, can be -1 if not use this arg, default -1.\n - h: original rectagle height, can be -1 if not use this arg, default -1.\n\n\nReturns: list type, [x, y] if map point, [x, y, w, h] if resize rectangle.\n"
+ },
+ "args": [
+ [
+ "int",
+ "w_out",
+ null
+ ],
+ [
+ "int",
+ "h_out",
+ null
+ ],
+ [
+ "image::Fit",
+ "fit",
+ null
+ ],
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ "-1"
+ ],
+ [
+ "int",
+ "h",
+ "-1"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector resize_map_pos(int w_out, int h_out, image::Fit fit, int x, int y, int w = -1, int h = -1)"
+ }
+ ]
+ },
+ "resize_map_pos_reverse": {
+ "type": "func",
+ "name": "resize_map_pos_reverse",
+ "doc": {
+ "brief": "reverse resize_map_pos method, when we call image.resize method resiz image 'a' to image 'b', we want to known the original position on 'a' whith a knew point on 'b'",
+ "param": {
+ "int": "h_out image height after resized",
+ "fit": "resize method, see maix.image.Fit",
+ "x": "point on resized image x, or rectagle left-top point's x",
+ "y": "original point y, or rectagle left-top point's y",
+ "w": "original rectagle width, can be -1 if not use this arg, default -1.",
+ "h": "original rectagle height, can be -1 if not use this arg, default -1."
+ },
+ "return": "list type, [x, y] if map point, [x, y, w, h] if resize rectangle.",
+ "maixpy": "maix.image.resize_map_pos_reverse",
+ "py_doc": "reverse resize_map_pos method, when we call image.resize method resiz image 'a' to image 'b', we want to known the original position on 'a' whith a knew point on 'b'\n\nArgs:\n - int: h_out image height after resized\n - fit: resize method, see maix.image.Fit\n - x: point on resized image x, or rectagle left-top point's x\n - y: original point y, or rectagle left-top point's y\n - w: original rectagle width, can be -1 if not use this arg, default -1.\n - h: original rectagle height, can be -1 if not use this arg, default -1.\n\n\nReturns: list type, [x, y] if map point, [x, y, w, h] if resize rectangle.\n"
+ },
+ "args": [
+ [
+ "int",
+ "w_in",
+ null
+ ],
+ [
+ "int",
+ "h_in",
+ null
+ ],
+ [
+ "int",
+ "w_out",
+ null
+ ],
+ [
+ "int",
+ "h_out",
+ null
+ ],
+ [
+ "image::Fit",
+ "fit",
+ null
+ ],
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ "-1"
+ ],
+ [
+ "int",
+ "h",
+ "-1"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector resize_map_pos_reverse(int w_in, int h_in, int w_out, int h_out, image::Fit fit, int x, int y, int w = -1, int h = -1)"
+ },
+ "Image": {
+ "type": "class",
+ "name": "Image",
+ "doc": {
+ "brief": "Image class",
+ "maixpy": "maix.image.Image",
+ "py_doc": "Image class"
+ },
+ "members": {
+ "Image": {
+ "type": "func",
+ "name": "Image",
+ "doc": {
+ "brief": "Image constructor",
+ "param": {
+ "width": "image width, should > 0",
+ "height": "image height, should > 0",
+ "format": "image format @see image::Format"
+ },
+ "maixpy": "maix.image.Image.__init__",
+ "maixcdk": "maix.image.Image.Image",
+ "py_doc": "Image constructor\n\nArgs:\n - width: image width, should > 0\n - height: image height, should > 0\n - format: image format @see image::Format\n"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ null
+ ],
+ [
+ "int",
+ "height",
+ null
+ ],
+ [
+ "image::Format",
+ "format",
+ "image::Format::FMT_RGB888"
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Image(int width, int height, image::Format format = image::Format::FMT_RGB888)",
+ "overload": [
+ {
+ "type": "func",
+ "name": "Image",
+ "doc": {
+ "brief": "Image constructor",
+ "param": {
+ "width": "image width, should > 0",
+ "height": "image height, should > 0",
+ "format": "image format @see image::Format",
+ "data": "image data, if data is nullptr, will malloc memory for image data\nIf the image is in jpeg format, data must be filled in.",
+ "data_size": "image data size, only for compressed format like jpeg png, data_size must be filled in, or should be -1, default is -1.",
+ "copy": "if true and data is not nullptr, will copy data to new buffer, else will use data directly. default is true to avoid memory leak."
+ },
+ "maixcdk": "maix.image.Image.Image",
+ "py_doc": "Image constructor\n\nArgs:\n - width: image width, should > 0\n - height: image height, should > 0\n - format: image format @see image::Format\n - data: image data, if data is nullptr, will malloc memory for image data\nIf the image is in jpeg format, data must be filled in.\n - data_size: image data size, only for compressed format like jpeg png, data_size must be filled in, or should be -1, default is -1.\n - copy: if true and data is not nullptr, will copy data to new buffer, else will use data directly. default is true to avoid memory leak.\n"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ null
+ ],
+ [
+ "int",
+ "height",
+ null
+ ],
+ [
+ "image::Format",
+ "format",
+ null
+ ],
+ [
+ "uint8_t *",
+ "data",
+ null
+ ],
+ [
+ "int",
+ "data_size",
+ null
+ ],
+ [
+ "bool",
+ "copy",
+ null
+ ]
+ ],
+ "ret_type": null,
+ "static": false,
+ "def": "Image(int width, int height, image::Format format, uint8_t *data, int data_size, bool copy)"
+ }
+ ]
+ },
+ "update": {
+ "type": "func",
+ "name": "update",
+ "doc": {
+ "brief": "set image",
+ "maixcdk": "maix.image.Image.update",
+ "py_doc": "set image"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ null
+ ],
+ [
+ "int",
+ "height",
+ null
+ ],
+ [
+ "image::Format",
+ "format",
+ null
+ ],
+ [
+ "uint8_t *",
+ "data",
+ "NULL"
+ ],
+ [
+ "int",
+ "data_size",
+ "0"
+ ],
+ [
+ "bool",
+ "copy",
+ "true"
+ ]
+ ],
+ "ret_type": "err::Err",
+ "static": false,
+ "def": "err::Err update(int width, int height, image::Format format, uint8_t *data = NULL, int data_size = 0, bool copy = true)"
+ },
+ "format": {
+ "type": "func",
+ "name": "format",
+ "doc": {
+ "brief": "Get image's format",
+ "see": "image.Format",
+ "maixpy": "maix.image.Image.format",
+ "py_doc": "Get image's format"
+ },
+ "args": [],
+ "ret_type": "image::Format",
+ "static": false,
+ "def": "image::Format format()"
+ },
+ "size": {
+ "type": "func",
+ "name": "size",
+ "doc": {
+ "brief": "Get image's size, [width, height]",
+ "maixpy": "maix.image.Image.size",
+ "py_doc": "Get image's size, [width, height]"
+ },
+ "args": [],
+ "ret_type": "image::Size",
+ "static": false,
+ "def": "image::Size size()"
+ },
+ "data_size": {
+ "type": "func",
+ "name": "data_size",
+ "doc": {
+ "brief": "Get image's data size",
+ "maixpy": "maix.image.Image.data_size",
+ "py_doc": "Get image's data size"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int data_size()"
+ },
+ "width": {
+ "type": "func",
+ "name": "width",
+ "doc": {
+ "brief": "Get image's width",
+ "maixpy": "maix.image.Image.width",
+ "py_doc": "Get image's width"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int width()"
+ },
+ "height": {
+ "type": "func",
+ "name": "height",
+ "doc": {
+ "brief": "Get image's height",
+ "maixpy": "maix.image.Image.height",
+ "py_doc": "Get image's height"
+ },
+ "args": [],
+ "ret_type": "int",
+ "static": false,
+ "def": "int height()"
+ },
+ "data": {
+ "type": "func",
+ "name": "data",
+ "doc": {
+ "brief": "Get image's data pointer.\\nIn MaixPy is capsule object.",
+ "maixcdk": "maix.image.Image.data",
+ "py_doc": "Get image's data pointer.\nIn MaixPy is capsule object."
+ },
+ "args": [],
+ "ret_type": "void*",
+ "static": false,
+ "def": "void *data()"
+ },
+ "__str__": {
+ "type": "func",
+ "name": "__str__",
+ "doc": {
+ "brief": "To string method",
+ "maixpy": "maix.image.Image.__str__",
+ "py_doc": "To string method"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string __str__()"
+ },
+ "to_str": {
+ "type": "func",
+ "name": "to_str",
+ "doc": {
+ "brief": "To string method",
+ "maixpy": "maix.image.Image.to_str",
+ "py_doc": "To string method"
+ },
+ "args": [],
+ "ret_type": "std::string",
+ "static": false,
+ "def": "std::string to_str()"
+ },
+ "get_pixel": {
+ "type": "func",
+ "name": "get_pixel",
+ "doc": {
+ "brief": "Get pixel of image",
+ "param": {
+ "x": "pixel's coordinate x. x must less than image's width",
+ "y": "pixel's coordinate y. y must less than image's height",
+ "rgbtuple": "switch return value method. rgbtuple decides whether to split the return or not. default is false."
+ },
+ "return": "pixel value,\nAccording to image format and rgbtuple, return different value:\nformat is FMT_RGB888, rgbtuple is true, return [R, G, B]; rgbtuple is false, return [RGB]\nforamt is FMT_BGR888, rgbtuple is true, return [B, G, R]; rgbtuple is false, return [BGR]\nformat is FMT_GRAYSCALE, return [GRAY];",
+ "maixpy": "maix.image.Image.get_pixel",
+ "py_doc": "Get pixel of image\n\nArgs:\n - x: pixel's coordinate x. x must less than image's width\n - y: pixel's coordinate y. y must less than image's height\n - rgbtuple: switch return value method. rgbtuple decides whether to split the return or not. default is false.\n\n\nReturns: pixel value,\nAccording to image format and rgbtuple, return different value:\nformat is FMT_RGB888, rgbtuple is true, return [R, G, B]; rgbtuple is false, return [RGB]\nforamt is FMT_BGR888, rgbtuple is true, return [B, G, R]; rgbtuple is false, return [BGR]\nformat is FMT_GRAYSCALE, return [GRAY];\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "bool",
+ "rgbtuple",
+ "false"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector get_pixel(int x, int y, bool rgbtuple = false)"
+ },
+ "set_pixel": {
+ "type": "func",
+ "name": "set_pixel",
+ "doc": {
+ "brief": "Set pixel of image",
+ "param": {
+ "x": "pixel's coordinate x. x must less than image's width",
+ "y": "pixel's coordinate y. y must less than image's height",
+ "pixel": "pixel value, according to image format and size of pixel, has different operation:\nformat is FMT_RGB888, pixel size must be 1 or 3, if size is 1, will split pixel[0] to [R, G, B]; if size is 3, will use pixel directly\nformat is FMT_BGR888, pixel size must be 1 or 3, if size is 1, will split pixel[0] to [B, G, R]; if size is 3, will use pixel directly\nformat is FMT_GRAYSCALE, pixel size must be 1, will use pixel directly"
+ },
+ "return": "error code, Err::ERR_NONE is ok, other is error",
+ "maixpy": "maix.image.Image.set_pixel",
+ "py_doc": "Set pixel of image\n\nArgs:\n - x: pixel's coordinate x. x must less than image's width\n - y: pixel's coordinate y. y must less than image's height\n - pixel: pixel value, according to image format and size of pixel, has different operation:\nformat is FMT_RGB888, pixel size must be 1 or 3, if size is 1, will split pixel[0] to [R, G, B]; if size is 3, will use pixel directly\nformat is FMT_BGR888, pixel size must be 1 or 3, if size is 1, will split pixel[0] to [B, G, R]; if size is 3, will use pixel directly\nformat is FMT_GRAYSCALE, pixel size must be 1, will use pixel directly\n\n\nReturns: error code, Err::ERR_NONE is ok, other is error\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "std::vector",
+ "pixel",
+ null
+ ]
+ ],
+ "ret_type": "err::Err",
+ "static": false,
+ "def": "err::Err set_pixel(int x, int y, std::vector pixel)"
+ },
+ "to_tensor": {
+ "type": "func",
+ "name": "to_tensor",
+ "doc": {
+ "brief": "Convert Image object to tensor::Tensor object",
+ "param": {
+ "chw": "if true, the shape of tensor is [C, H, W], else [H, W, C]",
+ "copy": "if true, will alloc memory for tensor data, else will use the memory of Image object"
+ },
+ "return": "tensor::Tensor object pointer, an allocated tensor object",
+ "maixpy": "maix.image.Image.to_tensor",
+ "py_doc": "Convert Image object to tensor::Tensor object\n\nArgs:\n - chw: if true, the shape of tensor is [C, H, W], else [H, W, C]\n - copy: if true, will alloc memory for tensor data, else will use the memory of Image object\n\n\nReturns: tensor::Tensor object pointer, an allocated tensor object\n"
+ },
+ "args": [
+ [
+ "bool",
+ "chw",
+ "false"
+ ],
+ [
+ "bool",
+ "copy",
+ "true"
+ ]
+ ],
+ "ret_type": "tensor::Tensor*",
+ "static": false,
+ "def": "tensor::Tensor *to_tensor(bool chw = false, bool copy = true)"
+ },
+ "to_bytes": {
+ "type": "func",
+ "name": "to_bytes",
+ "doc": {
+ "brief": "Get image's data and convert to array bytes",
+ "param": {
+ "copy": "if true, will alloc memory and copy data to new buffer,\nelse will use the memory of Image object, delete bytes object will not affect Image object\uff0c\nbut delete Image object will make bytes object invalid, it may cause program crash !!!!\nSo use this param carefully."
+ },
+ "return": "image's data bytes, need be delete by caller in C++.",
+ "maixpy": "maix.image.Image.to_bytes",
+ "py_doc": "Get image's data and convert to array bytes\n\nArgs:\n - copy: if true, will alloc memory and copy data to new buffer,\nelse will use the memory of Image object, delete bytes object will not affect Image object\uff0c\nbut delete Image object will make bytes object invalid, it may cause program crash !!!!\nSo use this param carefully.\n\n\nReturns: image's data bytes, need be delete by caller in C++.\n"
+ },
+ "args": [
+ [
+ "bool",
+ "copy",
+ "true"
+ ]
+ ],
+ "ret_type": "Bytes*",
+ "static": false,
+ "def": "Bytes *to_bytes(bool copy = true)"
+ },
+ "to_format": {
+ "type": "func",
+ "name": "to_format",
+ "doc": {
+ "brief": "Convert image to specific format",
+ "param": {
+ "format": "format want to convert to, @see image::Format, only support RGB888, BGR888, RGBA8888, BGRA8888, GRAYSCALE, JPEG."
+ },
+ "return": "new image object. Need be delete by caller in C++.",
+ "throw": "err.Exception, if two images' format not support, **or already the format**, will raise exception",
+ "maixpy": "maix.image.Image.to_format",
+ "py_doc": "Convert image to specific format\n\nArgs:\n - format: format want to convert to, @see image::Format, only support RGB888, BGR888, RGBA8888, BGRA8888, GRAYSCALE, JPEG.\n\n\nReturns: new image object. Need be delete by caller in C++.\n"
+ },
+ "args": [
+ [
+ "const image::Format &",
+ "format",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *to_format(const image::Format &format)",
+ "overload": [
+ {
+ "type": "func",
+ "name": "to_format",
+ "doc": {
+ "brief": "Convert image to specific format",
+ "param": {
+ "format": "format want to convert to, @see image::Format, only support RGB888, BGR888, RGBA8888, BGRA8888, GRAYSCALE, JPEG.",
+ "buff": "user's buffer, if buff is nullptr, will malloc memory for new image data, else will use buff directly"
+ },
+ "return": "new image object. Need be delete by caller in C++.",
+ "throw": "err.Exception, if two images' format not support, **or already the format**, will raise exception",
+ "maixcdk": "maix.image.Image.to_format",
+ "py_doc": "Convert image to specific format\n\nArgs:\n - format: format want to convert to, @see image::Format, only support RGB888, BGR888, RGBA8888, BGRA8888, GRAYSCALE, JPEG.\n - buff: user's buffer, if buff is nullptr, will malloc memory for new image data, else will use buff directly\n\n\nReturns: new image object. Need be delete by caller in C++.\n"
+ },
+ "args": [
+ [
+ "const image::Format &",
+ "format",
+ null
+ ],
+ [
+ "void *",
+ "buff",
+ null
+ ],
+ [
+ "size_t",
+ "buff_size",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *to_format(const image::Format &format, void *buff, size_t buff_size)"
+ }
+ ]
+ },
+ "to_jpeg": {
+ "type": "func",
+ "name": "to_jpeg",
+ "doc": {
+ "brief": "Convert image to jpeg",
+ "param": {
+ "quality": "the quality of jpg, default is 95. For MaixCAM supported range is (50, 100], if <= 50 will be fixed to 51."
+ },
+ "return": "new image object. Need be delete by caller in C++.",
+ "throw": "err.Exception, if two images' format not support, **or already the format**, will raise exception",
+ "maixpy": "maix.image.Image.to_jpeg",
+ "py_doc": "Convert image to jpeg\n\nArgs:\n - quality: the quality of jpg, default is 95. For MaixCAM supported range is (50, 100], if <= 50 will be fixed to 51.\n\n\nReturns: new image object. Need be delete by caller in C++.\n"
+ },
+ "args": [
+ [
+ "int",
+ "quality",
+ "95"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *to_jpeg(int quality = 95)"
+ },
+ "draw_image": {
+ "type": "func",
+ "name": "draw_image",
+ "doc": {
+ "brief": "Draw image on this image",
+ "param": {
+ "x": "left top corner of image point's coordinate x",
+ "y": "left top corner of image point's coordinate y",
+ "img": "image object to draw, the caller's channel must <= the args' channel,\ne.g. caller is RGB888, args is RGBA8888, will throw exception, but caller is RGBA8888, args is RGB888 or RGBA8888 is ok"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_image",
+ "py_doc": "Draw image on this image\n\nArgs:\n - x: left top corner of image point's coordinate x\n - y: left top corner of image point's coordinate y\n - img: image object to draw, the caller's channel must <= the args' channel,\ne.g. caller is RGB888, args is RGBA8888, will throw exception, but caller is RGBA8888, args is RGB888 or RGBA8888 is ok\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "image::Image &",
+ "img",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_image(int x, int y, image::Image &img)"
+ },
+ "draw_rect": {
+ "type": "func",
+ "name": "draw_rect",
+ "doc": {
+ "brief": "Fill rectangle color to image",
+ "param": {
+ "x": "left top corner of rectangle point's coordinate x",
+ "y": "left top corner of rectangle point's coordinate y",
+ "w": "rectangle width",
+ "h": "rectangle height",
+ "color": "rectangle color",
+ "thickness": "rectangle thickness(line width), by default(value is 1), -1 means fill rectangle"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_rect",
+ "py_doc": "Fill rectangle color to image\n\nArgs:\n - x: left top corner of rectangle point's coordinate x\n - y: left top corner of rectangle point's coordinate y\n - w: rectangle width\n - h: rectangle height\n - color: rectangle color\n - thickness: rectangle thickness(line width), by default(value is 1), -1 means fill rectangle\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ null
+ ],
+ [
+ "int",
+ "h",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_rect(int x, int y, int w, int h, const image::Color &color, int thickness = 1)"
+ },
+ "draw_line": {
+ "type": "func",
+ "name": "draw_line",
+ "doc": {
+ "brief": "Draw line on image",
+ "param": {
+ "x1": "start point's coordinate x",
+ "y1": "start point's coordinate y",
+ "x2": "end point's coordinate x",
+ "y2": "end point's coordinate y",
+ "color": "line color @see image::Color",
+ "thickness": "line thickness(line width), by default(value is 1)"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_line",
+ "py_doc": "Draw line on image\n\nArgs:\n - x1: start point's coordinate x\n - y1: start point's coordinate y\n - x2: end point's coordinate x\n - y2: end point's coordinate y\n - color: line color @see image::Color\n - thickness: line thickness(line width), by default(value is 1)\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x1",
+ null
+ ],
+ [
+ "int",
+ "y1",
+ null
+ ],
+ [
+ "int",
+ "x2",
+ null
+ ],
+ [
+ "int",
+ "y2",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_line(int x1, int y1, int x2, int y2, const image::Color &color, int thickness = 1)"
+ },
+ "draw_circle": {
+ "type": "func",
+ "name": "draw_circle",
+ "doc": {
+ "brief": "Draw circle on image",
+ "param": {
+ "x": "circle center point's coordinate x",
+ "y": "circle center point's coordinate y",
+ "radius": "circle radius",
+ "color": "circle color @see image::Color",
+ "thickness": "circle thickness(line width), default -1 means fill circle"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_circle",
+ "py_doc": "Draw circle on image\n\nArgs:\n - x: circle center point's coordinate x\n - y: circle center point's coordinate y\n - radius: circle radius\n - color: circle color @see image::Color\n - thickness: circle thickness(line width), default -1 means fill circle\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "radius",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_circle(int x, int y, int radius, const image::Color &color, int thickness = 1)"
+ },
+ "draw_ellipse": {
+ "type": "func",
+ "name": "draw_ellipse",
+ "doc": {
+ "brief": "Draw ellipse on image",
+ "param": {
+ "x": "ellipse center point's coordinate x",
+ "y": "ellipse center point's coordinate y",
+ "a": "ellipse major axis length",
+ "b": "ellipse minor axis length",
+ "angle": "ellipse rotation angle",
+ "start_angle": "ellipse start angle",
+ "end_angle": "ellipse end angle",
+ "color": "ellipse color @see image::Color",
+ "thickness": "ellipse thickness(line width), by default(value is 1), -1 means fill ellipse"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_ellipse",
+ "py_doc": "Draw ellipse on image\n\nArgs:\n - x: ellipse center point's coordinate x\n - y: ellipse center point's coordinate y\n - a: ellipse major axis length\n - b: ellipse minor axis length\n - angle: ellipse rotation angle\n - start_angle: ellipse start angle\n - end_angle: ellipse end angle\n - color: ellipse color @see image::Color\n - thickness: ellipse thickness(line width), by default(value is 1), -1 means fill ellipse\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "a",
+ null
+ ],
+ [
+ "int",
+ "b",
+ null
+ ],
+ [
+ "float",
+ "angle",
+ null
+ ],
+ [
+ "float",
+ "start_angle",
+ null
+ ],
+ [
+ "float",
+ "end_angle",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_ellipse(int x, int y, int a, int b, float angle, float start_angle, float end_angle, const image::Color &color, int thickness = 1)"
+ },
+ "draw_string": {
+ "type": "func",
+ "name": "draw_string",
+ "doc": {
+ "brief": "Draw text on image",
+ "param": {
+ "x": "text left top point's coordinate x",
+ "y": "text left top point's coordinate y",
+ "string": "text content",
+ "color": "text color @see image::Color, default is white",
+ "scale": "font scale, by default(value is 1)",
+ "thickness": "text thickness(line width), if negative, the glyph is filled, by default(value is -1)",
+ "wrap": "if true, will auto wrap text to next line if text width > image width, by default(value is true)"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_string",
+ "py_doc": "Draw text on image\n\nArgs:\n - x: text left top point's coordinate x\n - y: text left top point's coordinate y\n - string: text content\n - color: text color @see image::Color, default is white\n - scale: font scale, by default(value is 1)\n - thickness: text thickness(line width), if negative, the glyph is filled, by default(value is -1)\n - wrap: if true, will auto wrap text to next line if text width > image width, by default(value is true)\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "const std::string &",
+ "textstring",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ "image::COLOR_WHITE"
+ ],
+ [
+ "float",
+ "scale",
+ "1"
+ ],
+ [
+ "int",
+ "thickness",
+ "-1"
+ ],
+ [
+ "bool",
+ "wrap",
+ "true"
+ ],
+ [
+ "int",
+ "wrap_space",
+ "4"
+ ],
+ [
+ "const std::string &",
+ "font",
+ "\"\""
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_string(int x, int y, const std::string &textstring, const image::Color &color = image::COLOR_WHITE, float scale = 1, int thickness = -1,\n bool wrap = true, int wrap_space = 4, const std::string &font = \"\")"
+ },
+ "draw_cross": {
+ "type": "func",
+ "name": "draw_cross",
+ "doc": {
+ "brief": "Draw cross on image",
+ "param": {
+ "x": "cross center point's coordinate x",
+ "y": "cross center point's coordinate y",
+ "color": "cross color @see image::Color",
+ "size": "how long the lines of the cross extend, by default(value is 5). So the line length is `2 * size + thickness`",
+ "thickness": "cross thickness(line width), by default(value is 1)"
+ },
+ "maixpy": "maix.image.Image.draw_cross",
+ "py_doc": "Draw cross on image\n\nArgs:\n - x: cross center point's coordinate x\n - y: cross center point's coordinate y\n - color: cross color @see image::Color\n - size: how long the lines of the cross extend, by default(value is 5). So the line length is `2 * size + thickness`\n - thickness: cross thickness(line width), by default(value is 1)\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "size",
+ "5"
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_cross(int x, int y, const image::Color &color, int size = 5, int thickness = 1)"
+ },
+ "draw_arrow": {
+ "type": "func",
+ "name": "draw_arrow",
+ "doc": {
+ "brief": "Draw arrow on image",
+ "param": {
+ "x0": "start coordinate of the arrow x0",
+ "y0": "start coordinate of the arrow y0",
+ "x1": "end coordinate of the arrow x1",
+ "y1": "end coordinate of the arrow y1",
+ "color": "cross color @see image::Color",
+ "thickness": "cross thickness(line width), by default(value is 1)"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_arrow",
+ "py_doc": "Draw arrow on image\n\nArgs:\n - x0: start coordinate of the arrow x0\n - y0: start coordinate of the arrow y0\n - x1: end coordinate of the arrow x1\n - y1: end coordinate of the arrow y1\n - color: cross color @see image::Color\n - thickness: cross thickness(line width), by default(value is 1)\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "int",
+ "x0",
+ null
+ ],
+ [
+ "int",
+ "y0",
+ null
+ ],
+ [
+ "int",
+ "x1",
+ null
+ ],
+ [
+ "int",
+ "y1",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_arrow(int x0, int y0, int x1, int y1, const image::Color &color, int thickness = 1)"
+ },
+ "draw_edges": {
+ "type": "func",
+ "name": "draw_edges",
+ "doc": {
+ "brief": "Draw edges on image",
+ "param": {
+ "corners": "edges, [[x0, y0], [x1, y1], [x2, y2], [x3, y3]]",
+ "color": "edges color @see image::Color",
+ "size": "the circle of radius size. TODO: support in the feature",
+ "thickness": "edges thickness(line width), by default(value is 1)",
+ "fill": "if true, will fill edges, by default(value is false)"
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_edges",
+ "py_doc": "Draw edges on image\n\nArgs:\n - corners: edges, [[x0, y0], [x1, y1], [x2, y2], [x3, y3]]\n - color: edges color @see image::Color\n - size: the circle of radius size. TODO: support in the feature\n - thickness: edges thickness(line width), by default(value is 1)\n - fill: if true, will fill edges, by default(value is false)\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "corners",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "size",
+ "0"
+ ],
+ [
+ "int",
+ "thickness",
+ "1"
+ ],
+ [
+ "bool",
+ "fill",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_edges(std::vector> corners, const image::Color &color, int size = 0, int thickness = 1, bool fill = false)"
+ },
+ "draw_keypoints": {
+ "type": "func",
+ "name": "draw_keypoints",
+ "doc": {
+ "brief": "Draw keypoints on image",
+ "param": {
+ "keypoints": "keypoints, [x1, y1, x2, y2...] or [x, y, rotation_andle_in_degrees, x2, y2, rotation_andle_in_degrees2](TODO: rotation_andle_in_degrees support in the feature)",
+ "color": "keypoints color @see image::Color",
+ "size": "size of keypoints(radius)",
+ "thickness": "keypoints thickness(line width), by default(value is -1 means fill circle)",
+ "line_thickness": "line thickness, default 0 means not draw lines, > 0 will draw lines connect points."
+ },
+ "return": "this image object self",
+ "maixpy": "maix.image.Image.draw_keypoints",
+ "py_doc": "Draw keypoints on image\n\nArgs:\n - keypoints: keypoints, [x1, y1, x2, y2...] or [x, y, rotation_andle_in_degrees, x2, y2, rotation_andle_in_degrees2](TODO: rotation_andle_in_degrees support in the feature)\n - color: keypoints color @see image::Color\n - size: size of keypoints(radius)\n - thickness: keypoints thickness(line width), by default(value is -1 means fill circle)\n - line_thickness: line thickness, default 0 means not draw lines, > 0 will draw lines connect points.\n\n\nReturns: this image object self\n"
+ },
+ "args": [
+ [
+ "const std::vector &",
+ "keypoints",
+ null
+ ],
+ [
+ "const image::Color &",
+ "color",
+ null
+ ],
+ [
+ "int",
+ "size",
+ "4"
+ ],
+ [
+ "int",
+ "thickness",
+ "-1"
+ ],
+ [
+ "int",
+ "line_thickness",
+ "0"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *draw_keypoints(const std::vector &keypoints, const image::Color &color, int size = 4, int thickness = -1, int line_thickness = 0)"
+ },
+ "resize": {
+ "type": "func",
+ "name": "resize",
+ "doc": {
+ "brief": "Resize image, will create a new resized image object",
+ "param": {
+ "width": "new width, if value is -1, will use height to calculate aspect ratio",
+ "height": "new height, if value is -1, will use width to calculate aspect ratio",
+ "object_fit": "fill, contain, cover, by default is fill",
+ "method": "resize method, by default is NEAREST"
+ },
+ "return": "Always return a new resized image object even size not change, So in C++ you should take care of the return value to avoid memory leak.\nAnd it's better to judge whether the size has changed before calling this function to make the program more efficient.\ne.g.\nif img->width() != width || img->height() != height:\nimg = img->resize(width, height);",
+ "maixpy": "maix.image.Image.resize",
+ "py_doc": "Resize image, will create a new resized image object\n\nArgs:\n - width: new width, if value is -1, will use height to calculate aspect ratio\n - height: new height, if value is -1, will use width to calculate aspect ratio\n - object_fit: fill, contain, cover, by default is fill\n - method: resize method, by default is NEAREST\n\n\nReturns: Always return a new resized image object even size not change, So in C++ you should take care of the return value to avoid memory leak.\nAnd it's better to judge whether the size has changed before calling this function to make the program more efficient.\ne.g.\nif img->width() != width || img->height() != height:\nimg = img->resize(width, height);\n"
+ },
+ "args": [
+ [
+ "int",
+ "width",
+ null
+ ],
+ [
+ "int",
+ "height",
+ null
+ ],
+ [
+ "image::Fit",
+ "object_fit",
+ "image::Fit::FIT_FILL"
+ ],
+ [
+ "image::ResizeMethod",
+ "method",
+ "image::ResizeMethod::NEAREST"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *resize(int width, int height, image::Fit object_fit = image::Fit::FIT_FILL, image::ResizeMethod method = image::ResizeMethod::NEAREST)"
+ },
+ "affine": {
+ "type": "func",
+ "name": "affine",
+ "doc": {
+ "brief": "Affine transform image, will create a new transformed image object, need 3 points.",
+ "param": {
+ "src_points": "three source points, [x1, y1, x2, y2, x3, y3]",
+ "dst_points": "three destination points, [x1, y1, x2, y2, x3, y3]",
+ "width": "new width, if value is -1, will use height to calculate aspect ratio",
+ "height": "new height, if value is -1, will use width to calculate aspect ratio",
+ "method": "resize method, by default is bilinear"
+ },
+ "return": "new transformed image object",
+ "maixpy": "maix.image.Image.affine",
+ "py_doc": "Affine transform image, will create a new transformed image object, need 3 points.\n\nArgs:\n - src_points: three source points, [x1, y1, x2, y2, x3, y3]\n - dst_points: three destination points, [x1, y1, x2, y2, x3, y3]\n - width: new width, if value is -1, will use height to calculate aspect ratio\n - height: new height, if value is -1, will use width to calculate aspect ratio\n - method: resize method, by default is bilinear\n\n\nReturns: new transformed image object\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "src_points",
+ null
+ ],
+ [
+ "std::vector",
+ "dst_points",
+ null
+ ],
+ [
+ "int",
+ "width",
+ "-1"
+ ],
+ [
+ "int",
+ "height",
+ "-1"
+ ],
+ [
+ "image::ResizeMethod",
+ "method",
+ "image::ResizeMethod::BILINEAR"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *affine(std::vector src_points, std::vector dst_points, int width = -1, int height = -1, image::ResizeMethod method = image::ResizeMethod::BILINEAR)",
+ "overload": [
+ {
+ "type": "func",
+ "name": "perspective",
+ "doc": {
+ "brief": "Perspective transform image, will create a new transformed image object, need 4 points.",
+ "param": {
+ "src_points": "three source points, [x1, y1, x2, y2, x3, y3, x4, y4]",
+ "dst_points": "three destination points, [x1, y1, x2, y2, x3, y3, x4, y4]",
+ "width": "new width, if value is -1, will use height to calculate aspect ratio",
+ "height": "new height, if value is -1, will use width to calculate aspect ratio",
+ "method": "resize method, by default is bilinear"
+ },
+ "return": "new transformed image object",
+ "maixpy": "maix.image.Image.affine",
+ "py_doc": "Perspective transform image, will create a new transformed image object, need 4 points.\n\nArgs:\n - src_points: three source points, [x1, y1, x2, y2, x3, y3, x4, y4]\n - dst_points: three destination points, [x1, y1, x2, y2, x3, y3, x4, y4]\n - width: new width, if value is -1, will use height to calculate aspect ratio\n - height: new height, if value is -1, will use width to calculate aspect ratio\n - method: resize method, by default is bilinear\n\n\nReturns: new transformed image object\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "src_points",
+ null
+ ],
+ [
+ "std::vector",
+ "dst_points",
+ null
+ ],
+ [
+ "int",
+ "width",
+ "-1"
+ ],
+ [
+ "int",
+ "height",
+ "-1"
+ ],
+ [
+ "image::ResizeMethod",
+ "method",
+ "image::ResizeMethod::BILINEAR"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image* perspective(std::vector src_points, std::vector dst_points, int width = -1, int height = -1, image::ResizeMethod method = image::ResizeMethod::BILINEAR)"
+ }
+ ]
+ },
+ "copy": {
+ "type": "func",
+ "name": "copy",
+ "doc": {
+ "brief": "Copy image, will create a new copied image object",
+ "return": "new copied image object",
+ "maixpy": "maix.image.Image.copy",
+ "py_doc": "Copy image, will create a new copied image object\n\nReturns: new copied image object\n"
+ },
+ "args": [],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *copy()"
+ },
+ "crop": {
+ "type": "func",
+ "name": "crop",
+ "doc": {
+ "brief": "Crop image, will create a new cropped image object",
+ "param": {
+ "x": "left top corner of crop rectangle point's coordinate x",
+ "y": "left top corner of crop rectangle point's coordinate y",
+ "w": "crop rectangle width",
+ "h": "crop rectangle height"
+ },
+ "return": "new cropped image object",
+ "maixpy": "maix.image.Image.crop",
+ "py_doc": "Crop image, will create a new cropped image object\n\nArgs:\n - x: left top corner of crop rectangle point's coordinate x\n - y: left top corner of crop rectangle point's coordinate y\n - w: crop rectangle width\n - h: crop rectangle height\n\n\nReturns: new cropped image object\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "int",
+ "w",
+ null
+ ],
+ [
+ "int",
+ "h",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *crop(int x, int y, int w, int h)"
+ },
+ "rotate": {
+ "type": "func",
+ "name": "rotate",
+ "doc": {
+ "brief": "Rotate image, will create a new rotated image object",
+ "param": {
+ "angle": "anti-clock wise rotate angle, if angle is 90 or 270, and width or height is -1, will swap width and height, or will throw exception",
+ "width": "new width, if value is -1, will use height to calculate aspect ratio",
+ "height": "new height, if value is -1, will use width to calculate aspect ratio",
+ "method": "resize method, by default is bilinear"
+ },
+ "return": "new rotated image object",
+ "maixpy": "maix.image.Image.rotate",
+ "py_doc": "Rotate image, will create a new rotated image object\n\nArgs:\n - angle: anti-clock wise rotate angle, if angle is 90 or 270, and width or height is -1, will swap width and height, or will throw exception\n - width: new width, if value is -1, will use height to calculate aspect ratio\n - height: new height, if value is -1, will use width to calculate aspect ratio\n - method: resize method, by default is bilinear\n\n\nReturns: new rotated image object\n"
+ },
+ "args": [
+ [
+ "float",
+ "angle",
+ null
+ ],
+ [
+ "int",
+ "width",
+ "-1"
+ ],
+ [
+ "int",
+ "height",
+ "-1"
+ ],
+ [
+ "image::ResizeMethod",
+ "method",
+ "image::ResizeMethod::BILINEAR"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *rotate(float angle, int width = -1, int height = -1, image::ResizeMethod method = image::ResizeMethod::BILINEAR)"
+ },
+ "flip": {
+ "type": "func",
+ "name": "flip",
+ "doc": {
+ "brief": "Vertical flip image, and return a new image.",
+ "param": {
+ "dir": "flip dir, see image.FlipDir, e.g. image.FlipDir.X is vertical flip."
+ },
+ "return": "new flipped image.",
+ "throw": "When arg error, will throw out err.Err exception.",
+ "maixpy": "maix.image.Image.flip",
+ "py_doc": "Vertical flip image, and return a new image.\n\nArgs:\n - dir: flip dir, see image.FlipDir, e.g. image.FlipDir.X is vertical flip.\n\n\nReturns: new flipped image.\n"
+ },
+ "args": [
+ [
+ "const image::FlipDir",
+ "dir",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *flip(const image::FlipDir dir)"
+ },
+ "mean_pool": {
+ "type": "func",
+ "name": "mean_pool",
+ "doc": {
+ "brief": "Finds the mean of x_div * y_div squares in the image and returns the modified image composed of the mean of each square.",
+ "param": {
+ "x_div": "The width of the squares.",
+ "y_div": "The height of the squares.",
+ "copy": "Select whether to return a new image or modify the original image. default is false.\nIf true, returns a new image composed of the mean of each square; If false, returns the modified image composed of the mean of each square."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mean_pool",
+ "py_doc": "Finds the mean of x_div * y_div squares in the image and returns the modified image composed of the mean of each square.\n\nArgs:\n - x_div: The width of the squares.\n - y_div: The height of the squares.\n - copy: Select whether to return a new image or modify the original image. default is false.\nIf true, returns a new image composed of the mean of each square; If false, returns the modified image composed of the mean of each square.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x_div",
+ null
+ ],
+ [
+ "int",
+ "y_div",
+ null
+ ],
+ [
+ "bool",
+ "copy",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mean_pool(int x_div, int y_div, bool copy = false)"
+ },
+ "midpoint_pool": {
+ "type": "func",
+ "name": "midpoint_pool",
+ "doc": {
+ "brief": "Finds the midpoint of x_div * y_div squares in the image and returns the modified image composed of the mean of each square.",
+ "param": {
+ "x_div": "The width of the squares.",
+ "y_div": "The height of the squares.",
+ "bias": "The bias of the midpoint. default is 0.5.\nmidpoint value is equal to (max * bias + min * (1 - bias))",
+ "copy": "Select whether to return a new image or modify the original image. default is false.\nIf true, returns a new image composed of the midpoint of each square; If false, returns the modified image composed of the midpoint of each square."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.midpoint_pool",
+ "py_doc": "Finds the midpoint of x_div * y_div squares in the image and returns the modified image composed of the mean of each square.\n\nArgs:\n - x_div: The width of the squares.\n - y_div: The height of the squares.\n - bias: The bias of the midpoint. default is 0.5.\nmidpoint value is equal to (max * bias + min * (1 - bias))\n - copy: Select whether to return a new image or modify the original image. default is false.\nIf true, returns a new image composed of the midpoint of each square; If false, returns the modified image composed of the midpoint of each square.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x_div",
+ null
+ ],
+ [
+ "int",
+ "y_div",
+ null
+ ],
+ [
+ "double",
+ "bias",
+ "0.5"
+ ],
+ [
+ "bool",
+ "copy",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *midpoint_pool(int x_div, int y_div, double bias = 0.5, bool copy = false)"
+ },
+ "compress": {
+ "type": "func",
+ "name": "compress",
+ "doc": {
+ "brief": "JPEG compresses the image in place, the same as to_jpeg functioin, it's recommend to use to_jpeg instead.",
+ "param": {
+ "quality": "The quality of the compressed image. default is 95."
+ },
+ "return": "Returns the compressed JPEG image",
+ "maixpy": "maix.image.Image.compress",
+ "py_doc": "JPEG compresses the image in place, the same as to_jpeg functioin, it's recommend to use to_jpeg instead.\n\nArgs:\n - quality: The quality of the compressed image. default is 95.\n\n\nReturns: Returns the compressed JPEG image\n"
+ },
+ "args": [
+ [
+ "int",
+ "quality",
+ "95"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *compress(int quality = 95)"
+ },
+ "clear": {
+ "type": "func",
+ "name": "clear",
+ "doc": {
+ "brief": "Sets all pixels in the image to zero",
+ "param": {
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.clear",
+ "py_doc": "Sets all pixels in the image to zero\n\nArgs:\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *clear(image::Image *mask = nullptr)"
+ },
+ "mask_rectange": {
+ "type": "func",
+ "name": "mask_rectange",
+ "doc": {
+ "brief": "Zeros a rectangular part of the image. If no arguments are supplied this method zeros the center of the image.",
+ "param": {
+ "x": "The x coordinate of the top left corner of the rectangle.",
+ "y": "The y coordinate of the top left corner of the rectangle.",
+ "w": "The width of the rectangle.",
+ "h": "The height of the rectangle."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mask_rectange",
+ "py_doc": "Zeros a rectangular part of the image. If no arguments are supplied this method zeros the center of the image.\n\nArgs:\n - x: The x coordinate of the top left corner of the rectangle.\n - y: The y coordinate of the top left corner of the rectangle.\n - w: The width of the rectangle.\n - h: The height of the rectangle.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ "-1"
+ ],
+ [
+ "int",
+ "y",
+ "-1"
+ ],
+ [
+ "int",
+ "w",
+ "-1"
+ ],
+ [
+ "int",
+ "h",
+ "-1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mask_rectange(int x = -1, int y = -1, int w = -1, int h = -1)"
+ },
+ "mask_circle": {
+ "type": "func",
+ "name": "mask_circle",
+ "doc": {
+ "brief": "Zeros a circular part of the image. If no arguments are supplied this method zeros the center of the image.",
+ "param": {
+ "x": "The x coordinate of the center of the circle.",
+ "y": "The y coordinate of the center of the circle.",
+ "radius": "The radius of the circle."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mask_circle",
+ "py_doc": "Zeros a circular part of the image. If no arguments are supplied this method zeros the center of the image.\n\nArgs:\n - x: The x coordinate of the center of the circle.\n - y: The y coordinate of the center of the circle.\n - radius: The radius of the circle.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ "-1"
+ ],
+ [
+ "int",
+ "y",
+ "-1"
+ ],
+ [
+ "int",
+ "radius",
+ "-1"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mask_circle(int x = -1, int y = -1, int radius = -1)"
+ },
+ "mask_ellipse": {
+ "type": "func",
+ "name": "mask_ellipse",
+ "doc": {
+ "brief": "Zeros a ellipse part of the image. If no arguments are supplied this method zeros the center of the image.",
+ "param": {
+ "x": "The x coordinate of the center of the ellipse.",
+ "y": "The y coordinate of the center of the ellipse.",
+ "radius_x": "The radius of the ellipse in the x direction.",
+ "radius_y": "The radius of the ellipse in the y direction.",
+ "rotation_angle_in_degrees": "The rotation angle of the ellipse in degrees."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mask_ellipse",
+ "py_doc": "Zeros a ellipse part of the image. If no arguments are supplied this method zeros the center of the image.\n\nArgs:\n - x: The x coordinate of the center of the ellipse.\n - y: The y coordinate of the center of the ellipse.\n - radius_x: The radius of the ellipse in the x direction.\n - radius_y: The radius of the ellipse in the y direction.\n - rotation_angle_in_degrees: The rotation angle of the ellipse in degrees.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ "-1"
+ ],
+ [
+ "int",
+ "y",
+ "-1"
+ ],
+ [
+ "int",
+ "radius_x",
+ "-1"
+ ],
+ [
+ "int",
+ "radius_y",
+ "-1"
+ ],
+ [
+ "float",
+ "rotation_angle_in_degrees",
+ "0"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mask_ellipse(int x = -1, int y = -1, int radius_x = -1, int radius_y = -1, float rotation_angle_in_degrees = 0)"
+ },
+ "binary": {
+ "type": "func",
+ "name": "binary",
+ "doc": {
+ "brief": "Sets all pixels in the image to black or white depending on if the pixel is inside of a threshold in the threshold list thresholds or not.",
+ "note": "For GRAYSCALE format, Lmin and Lmax range is [0, 255]. For RGB888 format, Lmin and Lmax range is [0, 100].",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "invert": "If true, the thresholds will be inverted before the operation. default is false.",
+ "zero": "If zero is true, the image will be set the pixels within the threshold to 0, other pixels remain unchanged. If zero is false, the image will be set to black or white. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.",
+ "to_bitmap": "If true, the image will be converted to a bitmap image before thresholding. default is false. TODO: support in the feature",
+ "copy": "Select whether to return a new image or modify the original image. default is false."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.binary",
+ "py_doc": "Sets all pixels in the image to black or white depending on if the pixel is inside of a threshold in the threshold list thresholds or not.\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - invert: If true, the thresholds will be inverted before the operation. default is false.\n - zero: If zero is true, the image will be set the pixels within the threshold to 0, other pixels remain unchanged. If zero is false, the image will be set to black or white. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n - to_bitmap: If true, the image will be converted to a bitmap image before thresholding. default is false. TODO: support in the feature\n - copy: Select whether to return a new image or modify the original image. default is false.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "bool",
+ "zero",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ],
+ [
+ "bool",
+ "to_bitmap",
+ "false"
+ ],
+ [
+ "bool",
+ "copy",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *binary(std::vector> thresholds = std::vector>(), bool invert = false, bool zero = false, image::Image *mask = nullptr, bool to_bitmap = false, bool copy = false)"
+ },
+ "invert": {
+ "type": "func",
+ "name": "invert",
+ "doc": {
+ "brief": "Inverts the image in place.",
+ "return": "Returns the image after the operation is completed",
+ "maixpy": "maix.image.Image.invert",
+ "py_doc": "Inverts the image in place.\n\nReturns: Returns the image after the operation is completed\n"
+ },
+ "args": [],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *invert()"
+ },
+ "b_and": {
+ "type": "func",
+ "name": "b_and",
+ "doc": {
+ "brief": "Performs a bitwise and operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_and",
+ "py_doc": "Performs a bitwise and operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_and(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "b_nand": {
+ "type": "func",
+ "name": "b_nand",
+ "doc": {
+ "brief": "Performs a bitwise nand operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_nand",
+ "py_doc": "Performs a bitwise nand operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_nand(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "b_or": {
+ "type": "func",
+ "name": "b_or",
+ "doc": {
+ "brief": "Performs a bitwise or operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_or",
+ "py_doc": "Performs a bitwise or operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_or(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "b_nor": {
+ "type": "func",
+ "name": "b_nor",
+ "doc": {
+ "brief": "Performs a bitwise nor operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_nor",
+ "py_doc": "Performs a bitwise nor operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_nor(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "b_xor": {
+ "type": "func",
+ "name": "b_xor",
+ "doc": {
+ "brief": "Performs a bitwise xor operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_xor",
+ "py_doc": "Performs a bitwise xor operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_xor(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "b_xnor": {
+ "type": "func",
+ "name": "b_xnor",
+ "doc": {
+ "brief": "Performs a bitwise xnor operation between the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.b_xnor",
+ "py_doc": "Performs a bitwise xnor operation between the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *b_xnor(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "awb": {
+ "type": "func",
+ "name": "awb",
+ "doc": {
+ "brief": "Performs an auto white balance operation on the image. TODO: support in the feature",
+ "param": {
+ "max": "if True uses the white-patch algorithm instead. default is false."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.awb",
+ "py_doc": "Performs an auto white balance operation on the image. TODO: support in the feature\n\nArgs:\n - max: if True uses the white-patch algorithm instead. default is false.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "bool",
+ "max",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *awb(bool max = false)"
+ },
+ "ccm": {
+ "type": "func",
+ "name": "ccm",
+ "doc": {
+ "brief": "Multiples the passed (3x3) or (4x3) floating-point color-correction-matrix with the image.\\nnote: Grayscale format is not support.",
+ "param": {
+ "matrix": "The color correction matrix to use. 3x3 or 4x3 matrix.\nWeights may either be positive or negative, and the sum of each column in the 3x3 matrix should generally be 1.\nexample:\n{\n1, 0, 0,\n0, 1, 0,\n0, 0, 1,\n}\nWhere the last row of the 4x3 matrix is an offset per color channel. If you add an offset you may wish to make the\nweights sum to less than 1 to account for the offset.\nexample:\n{\n1, 0, 0,\n0, 1, 0,\n0, 0, 1,\n0, 0, 0,\n}"
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.ccm",
+ "py_doc": "Multiples the passed (3x3) or (4x3) floating-point color-correction-matrix with the image.\nnote: Grayscale format is not support.\n\nArgs:\n - matrix: The color correction matrix to use. 3x3 or 4x3 matrix.\nWeights may either be positive or negative, and the sum of each column in the 3x3 matrix should generally be 1.\nexample:\n{\n1, 0, 0,\n0, 1, 0,\n0, 0, 1,\n}\nWhere the last row of the 4x3 matrix is an offset per color channel. If you add an offset you may wish to make the\nweights sum to less than 1 to account for the offset.\nexample:\n{\n1, 0, 0,\n0, 1, 0,\n0, 0, 1,\n0, 0, 0,\n}\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "std::vector &",
+ "matrix",
+ null
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *ccm(std::vector &matrix)"
+ },
+ "gamma": {
+ "type": "func",
+ "name": "gamma",
+ "doc": {
+ "brief": "Quickly changes the image gamma, contrast, and brightness. Create a array whose size is usually 255,\\nand use the parameters gamma, contrast, and brightness to calculate the value of the array, and then map the\\nimage pixel value through the value of the array.\\nThe calculation method for array is: array[array_idx] = (powf((array_idx / 255.0), (1 / gamma)) * contrast + brightness) * scale,\\n`powf` is a function used to calculate floating point power.\\n`array` is the array used for mapping.\\n`array_idx` is the index of the array, the maximum value is determined according to the image format, usually 255.\\n`scale` is a constant, the value is determined by the image format, usually 255.\\nMapping method:\\nAssume that a pixel value in the image is 128, then map the pixel value to the value of array[128]\\nUsers can adjust the value of the array through the gamma, contrast, and brightness parameters.",
+ "param": {
+ "gamma": "The contrast gamma greater than 1.0 makes the image darker in a non-linear manner while less than 1.0 makes the image brighter. default is 1.0.",
+ "contrast": "The contrast value greater than 1.0 makes the image brighter in a linear manner while less than 1.0 makes the image darker. default is 1.0.",
+ "brightness": "The brightness value greater than 0.0 makes the image brighter in a constant manner while less than 0.0 makes the image darker. default is 0.0."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.gamma",
+ "py_doc": "Quickly changes the image gamma, contrast, and brightness. Create a array whose size is usually 255,\nand use the parameters gamma, contrast, and brightness to calculate the value of the array, and then map the\nimage pixel value through the value of the array.\nThe calculation method for array is: array[array_idx] = (powf((array_idx / 255.0), (1 / gamma)) * contrast + brightness) * scale,\n`powf` is a function used to calculate floating point power.\n`array` is the array used for mapping.\n`array_idx` is the index of the array, the maximum value is determined according to the image format, usually 255.\n`scale` is a constant, the value is determined by the image format, usually 255.\nMapping method:\nAssume that a pixel value in the image is 128, then map the pixel value to the value of array[128]\nUsers can adjust the value of the array through the gamma, contrast, and brightness parameters.\n\nArgs:\n - gamma: The contrast gamma greater than 1.0 makes the image darker in a non-linear manner while less than 1.0 makes the image brighter. default is 1.0.\n - contrast: The contrast value greater than 1.0 makes the image brighter in a linear manner while less than 1.0 makes the image darker. default is 1.0.\n - brightness: The brightness value greater than 0.0 makes the image brighter in a constant manner while less than 0.0 makes the image darker. default is 0.0.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "double",
+ "gamma",
+ "1.0"
+ ],
+ [
+ "double",
+ "contrast",
+ "1.0"
+ ],
+ [
+ "double",
+ "brightness",
+ "0.0"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *gamma(double gamma = 1.0, double contrast = 1.0, double brightness = 0.0)"
+ },
+ "gamma_corr": {
+ "type": "func",
+ "name": "gamma_corr",
+ "doc": {
+ "brief": "Alias for Image.gamma.",
+ "param": {
+ "gamma": "The contrast gamma greater than 1.0 makes the image darker in a non-linear manner while less than 1.0 makes the image brighter. default is 1.0.",
+ "contrast": "The contrast value greater than 1.0 makes the image brighter in a linear manner while less than 1.0 makes the image darker. default is 1.0.",
+ "brightness": "The brightness value greater than 0.0 makes the image brighter in a constant manner while less than 0.0 makes the image darker. default is 0.0."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.gamma_corr",
+ "py_doc": "Alias for Image.gamma.\n\nArgs:\n - gamma: The contrast gamma greater than 1.0 makes the image darker in a non-linear manner while less than 1.0 makes the image brighter. default is 1.0.\n - contrast: The contrast value greater than 1.0 makes the image brighter in a linear manner while less than 1.0 makes the image darker. default is 1.0.\n - brightness: The brightness value greater than 0.0 makes the image brighter in a constant manner while less than 0.0 makes the image darker. default is 0.0.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "double",
+ "gamma",
+ null
+ ],
+ [
+ "double",
+ "contrast",
+ "1.0"
+ ],
+ [
+ "double",
+ "brightness",
+ "0.0"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *gamma_corr(double gamma, double contrast = 1.0, double brightness = 0.0)"
+ },
+ "negate": {
+ "type": "func",
+ "name": "negate",
+ "doc": {
+ "brief": "Flips (numerically inverts) all pixels values in an image",
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.negate",
+ "py_doc": "Flips (numerically inverts) all pixels values in an image\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *negate()"
+ },
+ "replace": {
+ "type": "func",
+ "name": "replace",
+ "doc": {
+ "brief": "Replaces all pixels in the image with the corresponding pixels in the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "hmirror": "If true, the image will be horizontally mirrored before the operation. default is false.",
+ "vflip": "If true, the image will be vertically flipped before the operation. default is false.",
+ "transpose": "If true, the image can be used to rotate 90 degrees or 270 degrees.\nhmirror = false, vflip = false, transpose = false, the image will not be rotated.\nhmirror = false, vflip = true, transpose = true, the image will be rotated 90 degrees.\nhmirror = true, vflip = true, transpose = false, the image will be rotated 180 degrees.\nhmirror = true, vflip = false, transpose = true, the image will be rotated 270 degrees.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.replace",
+ "py_doc": "Replaces all pixels in the image with the corresponding pixels in the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - hmirror: If true, the image will be horizontally mirrored before the operation. default is false.\n - vflip: If true, the image will be vertically flipped before the operation. default is false.\n - transpose: If true, the image can be used to rotate 90 degrees or 270 degrees.\nhmirror = false, vflip = false, transpose = false, the image will not be rotated.\nhmirror = false, vflip = true, transpose = true, the image will be rotated 90 degrees.\nhmirror = true, vflip = true, transpose = false, the image will be rotated 180 degrees.\nhmirror = true, vflip = false, transpose = true, the image will be rotated 270 degrees.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ "nullptr"
+ ],
+ [
+ "bool",
+ "hmirror",
+ "false"
+ ],
+ [
+ "bool",
+ "vflip",
+ "false"
+ ],
+ [
+ "bool",
+ "transpose",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *replace(image::Image *other = nullptr, bool hmirror = false, bool vflip = false, bool transpose = false, image::Image *mask = nullptr)"
+ },
+ "set": {
+ "type": "func",
+ "name": "set",
+ "doc": {
+ "brief": "Alias for Image::replace.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "hmirror": "If true, the image will be horizontally mirrored before the operation. default is false.",
+ "vflip": "If true, the image will be vertically flipped before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.set",
+ "py_doc": "Alias for Image::replace.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - hmirror: If true, the image will be horizontally mirrored before the operation. default is false.\n - vflip: If true, the image will be vertically flipped before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "bool",
+ "hmirror",
+ "false"
+ ],
+ [
+ "bool",
+ "vflip",
+ "false"
+ ],
+ [
+ "bool",
+ "transpose",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *set(image::Image *other, bool hmirror = false, bool vflip = false, bool transpose = false, image::Image *mask = nullptr)"
+ },
+ "add": {
+ "type": "func",
+ "name": "add",
+ "doc": {
+ "brief": "Adds the other image to the image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.add",
+ "py_doc": "Adds the other image to the image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *add(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "sub": {
+ "type": "func",
+ "name": "sub",
+ "doc": {
+ "brief": "Subtracts the other image from the image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "reverse": "If true, the image will be reversed before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.sub",
+ "py_doc": "Subtracts the other image from the image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - reverse: If true, the image will be reversed before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "bool",
+ "reverse",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *sub(image::Image *other, bool reverse = false, image::Image *mask = nullptr)"
+ },
+ "mul": {
+ "type": "func",
+ "name": "mul",
+ "doc": {
+ "brief": "Multiplies the image by the other image.\\nNote: This method is meant for image blending and cannot multiply the pixels in the image by a scalar like 2.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "invert": "If true, the image will be change the multiplication operation from a*b to 1/((1/a)*(1/b)).\nIn particular, this lightens the image instead of darkening it (e.g. multiply versus burn operations). default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mul",
+ "py_doc": "Multiplies the image by the other image.\nNote: This method is meant for image blending and cannot multiply the pixels in the image by a scalar like 2.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - invert: If true, the image will be change the multiplication operation from a*b to 1/((1/a)*(1/b)).\nIn particular, this lightens the image instead of darkening it (e.g. multiply versus burn operations). default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mul(image::Image *other, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "div": {
+ "type": "func",
+ "name": "div",
+ "doc": {
+ "brief": "Divides the image by the other image.\\nThis method is meant for image blending and cannot divide the pixels in the image by a scalar like 2.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on. TODO: support path?",
+ "invert": "If true, the image will be change the division direction from a/b to b/a. default is false.",
+ "mod": "If true, the image will be change the division operation to the modulus operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.div",
+ "py_doc": "Divides the image by the other image.\nThis method is meant for image blending and cannot divide the pixels in the image by a scalar like 2.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on. TODO: support path?\n - invert: If true, the image will be change the division direction from a/b to b/a. default is false.\n - mod: If true, the image will be change the division operation to the modulus operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "bool",
+ "mod",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *div(image::Image *other, bool invert = false, bool mod = false, image::Image *mask = nullptr)"
+ },
+ "min": {
+ "type": "func",
+ "name": "min",
+ "doc": {
+ "brief": "Caculate the minimum of each pixel in the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.min",
+ "py_doc": "Caculate the minimum of each pixel in the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *min(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "max": {
+ "type": "func",
+ "name": "max",
+ "doc": {
+ "brief": "Caculate the maximum of each pixel in the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.max",
+ "py_doc": "Caculate the maximum of each pixel in the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *max(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "difference": {
+ "type": "func",
+ "name": "difference",
+ "doc": {
+ "brief": "Caculate the absolute value of the difference between each pixel in the image and the other image.",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.difference",
+ "py_doc": "Caculate the absolute value of the difference between each pixel in the image and the other image.\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *difference(image::Image *other, image::Image *mask = nullptr)"
+ },
+ "blend": {
+ "type": "func",
+ "name": "blend",
+ "doc": {
+ "brief": "Blends the image with the other image.\\nres = alpha * this_img / 256 + (256 - alpha) * other_img / 256",
+ "param": {
+ "other": "The other image should be an image and should be the same size as the image being operated on.",
+ "alpha": "The alpha value of the blend, the value range is [0, 256],default is 128.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.blend",
+ "py_doc": "Blends the image with the other image.\nres = alpha * this_img / 256 + (256 - alpha) * other_img / 256\n\nArgs:\n - other: The other image should be an image and should be the same size as the image being operated on.\n - alpha: The alpha value of the blend, the value range is [0, 256],default is 128.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "image::Image *",
+ "other",
+ null
+ ],
+ [
+ "int",
+ "alpha",
+ "128"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *blend(image::Image *other, int alpha = 128, image::Image *mask = nullptr)"
+ },
+ "histeq": {
+ "type": "func",
+ "name": "histeq",
+ "doc": {
+ "brief": "Runs the histogram equalization algorithm on the image.",
+ "param": {
+ "adaptive": "If true, an adaptive histogram equalization method will be run on the image instead which as generally better results than non-adaptive histogram qualization but a longer run time. default is false.",
+ "clip_limit": "Provides a way to limit the contrast of the adaptive histogram qualization. Use a small value for this, like 10, to produce good histogram equalized contrast limited images. default is -1.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.histeq",
+ "py_doc": "Runs the histogram equalization algorithm on the image.\n\nArgs:\n - adaptive: If true, an adaptive histogram equalization method will be run on the image instead which as generally better results than non-adaptive histogram qualization but a longer run time. default is false.\n - clip_limit: Provides a way to limit the contrast of the adaptive histogram qualization. Use a small value for this, like 10, to produce good histogram equalized contrast limited images. default is -1.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "bool",
+ "adaptive",
+ "false"
+ ],
+ [
+ "int",
+ "clip_limit",
+ "-1"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *histeq(bool adaptive = false, int clip_limit = -1, image::Image *mask = nullptr)"
+ },
+ "mean": {
+ "type": "func",
+ "name": "mean",
+ "doc": {
+ "brief": "Standard mean blurring filter using a box filter.\\nThe parameters offset and invert are valid when threshold is True.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mean",
+ "py_doc": "Standard mean blurring filter using a box filter.\nThe parameters offset and invert are valid when threshold is True.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mean(int size, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "median": {
+ "type": "func",
+ "name": "median",
+ "doc": {
+ "brief": "Runs the median filter on the image. The median filter is the best filter for smoothing surfaces while preserving edges but it is very slow.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "percentile": "This parameter controls the percentile of the value used in the kernel. You can set this to 0 for a min filter, 0.25 for a lower quartile filter, 0.75 for an upper quartile filter, and 1.0 for a max filter. default is 0.5.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.median",
+ "py_doc": "Runs the median filter on the image. The median filter is the best filter for smoothing surfaces while preserving edges but it is very slow.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - percentile: This parameter controls the percentile of the value used in the kernel. You can set this to 0 for a min filter, 0.25 for a lower quartile filter, 0.75 for an upper quartile filter, and 1.0 for a max filter. default is 0.5.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "double",
+ "percentile",
+ "0.5"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *median(int size, double percentile = 0.5, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "mode": {
+ "type": "func",
+ "name": "mode",
+ "doc": {
+ "brief": "Runs the mode filter on the image by replacing each pixel with the mode of their neighbors.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.mode",
+ "py_doc": "Runs the mode filter on the image by replacing each pixel with the mode of their neighbors.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *mode(int size, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "midpoint": {
+ "type": "func",
+ "name": "midpoint",
+ "doc": {
+ "brief": "Runs the midpoint filter on the image.This filter finds the midpoint (max * bias + min * (1 - bias)) of each pixel neighborhood in the image.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "bias": "The bias of the midpoint. default is 0.5.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.midpoint",
+ "py_doc": "Runs the midpoint filter on the image.This filter finds the midpoint (max * bias + min * (1 - bias)) of each pixel neighborhood in the image.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - bias: The bias of the midpoint. default is 0.5.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "double",
+ "bias",
+ "0.5"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *midpoint(int size, double bias = 0.5, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "morph": {
+ "type": "func",
+ "name": "morph",
+ "doc": {
+ "brief": "Convolves the image by a filter kernel. This allows you to do general purpose convolutions on an image.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "kernel": "The kernel used for convolution. The kernel should be a list of lists of numbers. The kernel should be the same size as the actual kernel size.",
+ "mul": "This parameter is used to multiply the convolved pixel results. default is auto.",
+ "add": "This parameter is the value to be added to each convolution pixel result. default is 0.0.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.morph",
+ "py_doc": "Convolves the image by a filter kernel. This allows you to do general purpose convolutions on an image.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - kernel: The kernel used for convolution. The kernel should be a list of lists of numbers. The kernel should be the same size as the actual kernel size.\n - mul: This parameter is used to multiply the convolved pixel results. default is auto.\n - add: This parameter is the value to be added to each convolution pixel result. default is 0.0.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "std::vector",
+ "kernel",
+ null
+ ],
+ [
+ "float",
+ "mul",
+ "-1"
+ ],
+ [
+ "float",
+ "add",
+ "0.0"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *morph(int size, std::vector kernel, float mul = -1, float add = 0.0, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "gaussian": {
+ "type": "func",
+ "name": "gaussian",
+ "doc": {
+ "brief": "Convolves the image by a smoothing guassian kernel.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "unsharp": "If true, this method will perform an unsharp mask operation instead of gaussian filtering operation, this improves the clarity of image edges. default is false.",
+ "mul": "This parameter is used to multiply the convolved pixel results. default is auto.",
+ "add": "This parameter is the value to be added to each convolution pixel result. default is 0.0.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.gaussian",
+ "py_doc": "Convolves the image by a smoothing guassian kernel.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - unsharp: If true, this method will perform an unsharp mask operation instead of gaussian filtering operation, this improves the clarity of image edges. default is false.\n - mul: This parameter is used to multiply the convolved pixel results. default is auto.\n - add: This parameter is the value to be added to each convolution pixel result. default is 0.0.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "bool",
+ "unsharp",
+ "false"
+ ],
+ [
+ "float",
+ "mul",
+ "-1"
+ ],
+ [
+ "float",
+ "add",
+ "0.0"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *gaussian(int size, bool unsharp = false, float mul = -1, float add = 0.0, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "laplacian": {
+ "type": "func",
+ "name": "laplacian",
+ "doc": {
+ "brief": "Convolves the image by a edge detecting laplacian kernel.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "sharpen": "If True, this method will sharpen the image instead of an unthresholded edge detection image. Then increase the kernel size to improve image clarity. default is false.",
+ "mul": "This parameter is used to multiply the convolved pixel results. default is auto.",
+ "add": "This parameter is the value to be added to each convolution pixel result. default is 0.0.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.laplacian",
+ "py_doc": "Convolves the image by a edge detecting laplacian kernel.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - sharpen: If True, this method will sharpen the image instead of an unthresholded edge detection image. Then increase the kernel size to improve image clarity. default is false.\n - mul: This parameter is used to multiply the convolved pixel results. default is auto.\n - add: This parameter is the value to be added to each convolution pixel result. default is 0.0.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "bool",
+ "sharpen",
+ "false"
+ ],
+ [
+ "float",
+ "mul",
+ "-1"
+ ],
+ [
+ "float",
+ "add",
+ "0.0"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *laplacian(int size, bool sharpen = false, float mul = -1, float add = 0.0, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "bilateral": {
+ "type": "func",
+ "name": "bilateral",
+ "doc": {
+ "brief": "Convolves the image by a bilateral filter.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "color_sigma": "Controls how closely colors are matched using the bilateral filter. default is 0.1.",
+ "space_sigma": "Controls how closely pixels space-wise are blurred with each other. default is 1.",
+ "threshold": "If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.",
+ "offset": "The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.bilateral",
+ "py_doc": "Convolves the image by a bilateral filter.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - color_sigma: Controls how closely colors are matched using the bilateral filter. default is 0.1.\n - space_sigma: Controls how closely pixels space-wise are blurred with each other. default is 1.\n - threshold: If true, which will enable adaptive thresholding of the image which sets pixels to white or black based on a pixel\u2019s brightness in relation to the brightness of the kernel of pixels around them.\ndefault is false.\n - offset: The larger the offset value, the lower brightness pixels on the original image will be set to white. default is 0.\n - invert: If true, the image will be inverted before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "double",
+ "color_sigma",
+ "0.1"
+ ],
+ [
+ "double",
+ "space_sigma",
+ "1"
+ ],
+ [
+ "bool",
+ "threshold",
+ "false"
+ ],
+ [
+ "int",
+ "offset",
+ "0"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *bilateral(int size, double color_sigma = 0.1, double space_sigma = 1, bool threshold = false, int offset = 0, bool invert = false, image::Image *mask = nullptr)"
+ },
+ "linpolar": {
+ "type": "func",
+ "name": "linpolar",
+ "doc": {
+ "brief": "Re-project\u2019s and image from cartessian coordinates to linear polar coordinates.",
+ "param": {
+ "reverse": "If true, the image will be reverse polar transformed. default is false."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.linpolar",
+ "py_doc": "Re-project\u2019s and image from cartessian coordinates to linear polar coordinates.\n\nArgs:\n - reverse: If true, the image will be reverse polar transformed. default is false.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "bool",
+ "reverse",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *linpolar(bool reverse = false)"
+ },
+ "logpolar": {
+ "type": "func",
+ "name": "logpolar",
+ "doc": {
+ "brief": "Re-project\u2019s and image from cartessian coordinates to log polar coordinates.",
+ "param": {
+ "reverse": "If true, the image will be reverse polar transformed. default is false."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.logpolar",
+ "py_doc": "Re-project\u2019s and image from cartessian coordinates to log polar coordinates.\n\nArgs:\n - reverse: If true, the image will be reverse polar transformed. default is false.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "bool",
+ "reverse",
+ "false"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *logpolar(bool reverse = false)"
+ },
+ "lens_corr": {
+ "type": "func",
+ "name": "lens_corr",
+ "doc": {
+ "brief": "Performs a lens correction operation on the image. TODO: support in the feature",
+ "param": {
+ "strength": "The strength of the lens correction. default is 1.8.",
+ "zoom": "The zoom of the lens correction. default is 1.0.",
+ "x_corr": "The x correction of the lens correction. default is 0.0.",
+ "y_corr": "The y correction of the lens correction. default is 0.0."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.lens_corr",
+ "py_doc": "Performs a lens correction operation on the image. TODO: support in the feature\n\nArgs:\n - strength: The strength of the lens correction. default is 1.8.\n - zoom: The zoom of the lens correction. default is 1.0.\n - x_corr: The x correction of the lens correction. default is 0.0.\n - y_corr: The y correction of the lens correction. default is 0.0.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "double",
+ "strength",
+ "1.8"
+ ],
+ [
+ "double",
+ "zoom",
+ "1.0"
+ ],
+ [
+ "double",
+ "x_corr",
+ "0.0"
+ ],
+ [
+ "double",
+ "y_corr",
+ "0.0"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *lens_corr(double strength = 1.8, double zoom = 1.0, double x_corr = 0.0, double y_corr = 0.0)"
+ },
+ "rotation_corr": {
+ "type": "func",
+ "name": "rotation_corr",
+ "doc": {
+ "brief": "Performs a rotation correction operation on the image. TODO: support in the feature",
+ "param": {
+ "x_rotation": "The x rotation of the rotation correction. default is 0.0.",
+ "y_rotation": "The y rotation of the rotation correction. default is 0.0.",
+ "z_rotation": "The z rotation of the rotation correction. default is 0.0.",
+ "x_translation": "The x translation of the rotation correction. default is 0.0.",
+ "y_translation": "The y translation of the rotation correction. default is 0.0.",
+ "zoom": "The zoom of the rotation correction. default is 1.0.",
+ "fov": "The fov of the rotation correction. default is 60.0.",
+ "corners": "The corners of the rotation correction. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.rotation_corr",
+ "py_doc": "Performs a rotation correction operation on the image. TODO: support in the feature\n\nArgs:\n - x_rotation: The x rotation of the rotation correction. default is 0.0.\n - y_rotation: The y rotation of the rotation correction. default is 0.0.\n - z_rotation: The z rotation of the rotation correction. default is 0.0.\n - x_translation: The x translation of the rotation correction. default is 0.0.\n - y_translation: The y translation of the rotation correction. default is 0.0.\n - zoom: The zoom of the rotation correction. default is 1.0.\n - fov: The fov of the rotation correction. default is 60.0.\n - corners: The corners of the rotation correction. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "double",
+ "x_rotation",
+ "0.0"
+ ],
+ [
+ "double",
+ "y_rotation",
+ "0.0"
+ ],
+ [
+ "double",
+ "z_rotation",
+ "0.0"
+ ],
+ [
+ "double",
+ "x_translation",
+ "0.0"
+ ],
+ [
+ "double",
+ "y_translation",
+ "0.0"
+ ],
+ [
+ "double",
+ "zoom",
+ "1.0"
+ ],
+ [
+ "double",
+ "fov",
+ "60.0"
+ ],
+ [
+ "std::vector",
+ "corners",
+ "std::vector()"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *rotation_corr(double x_rotation = 0.0, double y_rotation = 0.0, double z_rotation = 0.0, double x_translation = 0.0, double y_translation = 0.0, double zoom = 1.0, double fov = 60.0, std::vector corners = std::vector())"
+ },
+ "get_histogram": {
+ "type": "func",
+ "name": "get_histogram",
+ "doc": {
+ "brief": "Computes the normalized histogram on all color channels and returns a image::Histogram object.",
+ "note": "For GRAYSCALE format, Lmin and Lmax range is [0, 255]. For RGB888 format, Lmin and Lmax range is [0, 100].",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "invert": "If true, the thresholds will be inverted before the operation. default is false.",
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "bins": "The number of bins to use for the histogram.\nIn GRAYSCALE format, setting range is [2, 256], default is 100.\nIn RGB888 format, setting range is [2, 100], default is 100.",
+ "l_bins": "The number of bins to use for the l channel of the histogram. Only valid in RGB888 format.\nIf an invalid value is set, bins will be used instead. The setting range is [2, 100], default is 100.",
+ "a_bins": "The number of bins to use for the a channel of the histogram.\nOnly valid in RGB888 format.The setting range is [2, 256], default is 256.",
+ "b_bins": "The number of bins to use for the b channel of the histogram.\nOnly valid in RGB888 format. The setting range is [2, 256], default is 256.",
+ "difference": "difference may be set to an image object to cause this method to operate on the difference image between the current image and the difference image object.\ndefault is None."
+ },
+ "return": "Returns image::Histogram object",
+ "maixpy": "maix.image.Image.get_histogram",
+ "py_doc": "Computes the normalized histogram on all color channels and returns a image::Histogram object.\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - invert: If true, the thresholds will be inverted before the operation. default is false.\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - bins: The number of bins to use for the histogram.\nIn GRAYSCALE format, setting range is [2, 256], default is 100.\nIn RGB888 format, setting range is [2, 100], default is 100.\n - l_bins: The number of bins to use for the l channel of the histogram. Only valid in RGB888 format.\nIf an invalid value is set, bins will be used instead. The setting range is [2, 100], default is 100.\n - a_bins: The number of bins to use for the a channel of the histogram.\nOnly valid in RGB888 format.The setting range is [2, 256], default is 256.\n - b_bins: The number of bins to use for the b channel of the histogram.\nOnly valid in RGB888 format. The setting range is [2, 256], default is 256.\n - difference: difference may be set to an image object to cause this method to operate on the difference image between the current image and the difference image object.\ndefault is None.\n\n\nReturns: Returns image::Histogram object\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "bins",
+ "-1"
+ ],
+ [
+ "int",
+ "l_bins",
+ "100"
+ ],
+ [
+ "int",
+ "a_bins",
+ "256"
+ ],
+ [
+ "int",
+ "b_bins",
+ "256"
+ ],
+ [
+ "image::Image *",
+ "difference",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Histogram",
+ "static": false,
+ "def": "image::Histogram get_histogram(std::vector> thresholds = std::vector>(), bool invert = false, std::vector roi = std::vector(), int bins = -1, int l_bins = 100, int a_bins = 256, int b_bins = 256, image::Image *difference = nullptr)"
+ },
+ "get_statistics": {
+ "type": "func",
+ "name": "get_statistics",
+ "doc": {
+ "brief": "Gets the statistics of the image. TODO: support in the feature",
+ "note": "For GRAYSCALE format, Lmin and Lmax range is [0, 255]. For RGB888 format, Lmin and Lmax range is [0, 100].",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "bins": "The number of bins to use for the statistics. default is -1.",
+ "l_bins": "The number of bins to use for the l channel of the statistics. default is -1.",
+ "a_bins": "The number of bins to use for the a channel of the statistics. default is -1.",
+ "b_bins": "The number of bins to use for the b channel of the statistics. default is -1.",
+ "difference": "The difference image to use for the statistics. default is None."
+ },
+ "return": "Returns the statistics of the image",
+ "maixpy": "maix.image.Image.get_statistics",
+ "py_doc": "Gets the statistics of the image. TODO: support in the feature\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - invert: If true, the image will be inverted before the operation. default is false.\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - bins: The number of bins to use for the statistics. default is -1.\n - l_bins: The number of bins to use for the l channel of the statistics. default is -1.\n - a_bins: The number of bins to use for the a channel of the statistics. default is -1.\n - b_bins: The number of bins to use for the b channel of the statistics. default is -1.\n - difference: The difference image to use for the statistics. default is None.\n\n\nReturns: Returns the statistics of the image\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "bins",
+ "-1"
+ ],
+ [
+ "int",
+ "l_bins",
+ "-1"
+ ],
+ [
+ "int",
+ "a_bins",
+ "-1"
+ ],
+ [
+ "int",
+ "b_bins",
+ "-1"
+ ],
+ [
+ "image::Image *",
+ "difference",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Statistics",
+ "static": false,
+ "def": "image::Statistics get_statistics(std::vector> thresholds = std::vector>(), bool invert = false, std::vector roi = std::vector(), int bins = -1, int l_bins = -1, int a_bins = -1, int b_bins = -1, image::Image *difference = nullptr)"
+ },
+ "get_regression": {
+ "type": "func",
+ "name": "get_regression",
+ "doc": {
+ "brief": "Gets the regression of the image.",
+ "note": "For GRAYSCALE format, Lmin and Lmax range is [0, 255]. For RGB888 format, Lmin and Lmax range is [0, 100].",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "x_stride": "The x stride to use for the regression. default is 2.",
+ "y_stride": "The y stride to use for the regression. default is 1.",
+ "area_threshold": "The area threshold to use for the regression. default is 10.",
+ "pixels_threshold": "The pixels threshold to use for the regression. default is 10.",
+ "robust": "If true, the regression will be robust. default is false."
+ },
+ "return": "Returns the regression of the image",
+ "maixpy": "maix.image.Image.get_regression",
+ "py_doc": "Gets the regression of the image.\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - invert: If true, the image will be inverted before the operation. default is false.\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - x_stride: The x stride to use for the regression. default is 2.\n - y_stride: The y stride to use for the regression. default is 1.\n - area_threshold: The area threshold to use for the regression. default is 10.\n - pixels_threshold: The pixels threshold to use for the regression. default is 10.\n - robust: If true, the regression will be robust. default is false.\n\n\nReturns: Returns the regression of the image\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "x_stride",
+ "2"
+ ],
+ [
+ "int",
+ "y_stride",
+ "1"
+ ],
+ [
+ "int",
+ "area_threshold",
+ "10"
+ ],
+ [
+ "int",
+ "pixels_threshold",
+ "10"
+ ],
+ [
+ "bool",
+ "robust",
+ "false"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector get_regression(std::vector> thresholds = std::vector>(), bool invert = false, std::vector roi = std::vector(), int x_stride = 2, int y_stride = 1, int area_threshold = 10, int pixels_threshold = 10, bool robust = false)"
+ },
+ "save": {
+ "type": "func",
+ "name": "save",
+ "doc": {
+ "brief": "Save image to file",
+ "param": {
+ "path": "file path",
+ "quality": "image quality, by default(value is 95), support jpeg and png format"
+ },
+ "return": "error code, err::ERR_NONE is ok, other is error",
+ "maixpy": "maix.image.Image.save",
+ "py_doc": "Save image to file\n\nArgs:\n - path: file path\n - quality: image quality, by default(value is 95), support jpeg and png format\n\n\nReturns: error code, err::ERR_NONE is ok, other is error\n"
+ },
+ "args": [
+ [
+ "const char *",
+ "path",
+ null
+ ],
+ [
+ "int",
+ "quality",
+ "95"
+ ]
+ ],
+ "ret_type": "err::Err",
+ "static": false,
+ "def": "err::Err save(const char *path, int quality = 95)"
+ },
+ "flood_fill": {
+ "type": "func",
+ "name": "flood_fill",
+ "doc": {
+ "brief": "Flood fills a region of the image starting from location x, y.",
+ "param": {
+ "x": "The x coordinate of the seed point.",
+ "y": "The y coordinate of the seed point.",
+ "seed_threshold": "The seed_threshold value controls how different any pixel in the fill area may be from the original starting pixel. default is 0.05.",
+ "floating_threshold": "The floating_threshold value controls how different any pixel in the fill area may be from any neighbor pixels. default is 0.05.",
+ "color": "The color to fill the region with. default is white.",
+ "invert": "If true, the image will be inverted before the operation. default is false.",
+ "clear_background": "If true, the background will be cleared before the operation. default is false.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None. FIXME: the mask image works abnormally"
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.flood_fill",
+ "py_doc": "Flood fills a region of the image starting from location x, y.\n\nArgs:\n - x: The x coordinate of the seed point.\n - y: The y coordinate of the seed point.\n - seed_threshold: The seed_threshold value controls how different any pixel in the fill area may be from the original starting pixel. default is 0.05.\n - floating_threshold: The floating_threshold value controls how different any pixel in the fill area may be from any neighbor pixels. default is 0.05.\n - color: The color to fill the region with. default is white.\n - invert: If true, the image will be inverted before the operation. default is false.\n - clear_background: If true, the background will be cleared before the operation. default is false.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None. FIXME: the mask image works abnormally\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "x",
+ null
+ ],
+ [
+ "int",
+ "y",
+ null
+ ],
+ [
+ "float",
+ "seed_threshold",
+ "0.05"
+ ],
+ [
+ "float",
+ "floating_threshold",
+ "0.05"
+ ],
+ [
+ "image::Color",
+ "color",
+ "image::COLOR_WHITE"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "bool",
+ "clear_background",
+ "false"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *flood_fill(int x, int y, float seed_threshold = 0.05, float floating_threshold = 0.05, image::Color color = image::COLOR_WHITE, bool invert = false, bool clear_background = false, image::Image *mask = nullptr)"
+ },
+ "erode": {
+ "type": "func",
+ "name": "erode",
+ "doc": {
+ "brief": "Erodes the image in place.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "The number of pixels in the kernel that are not 0. If it is less than or equal to the threshold, set the center pixel to black. default is (kernel_size - 1).",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.erode",
+ "py_doc": "Erodes the image in place.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: The number of pixels in the kernel that are not 0. If it is less than or equal to the threshold, set the center pixel to black. default is (kernel_size - 1).\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "-1"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *erode(int size, int threshold = -1, image::Image *mask = nullptr)"
+ },
+ "dilate": {
+ "type": "func",
+ "name": "dilate",
+ "doc": {
+ "brief": "Dilates the image in place.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "The number of pixels in the kernel that are not 0. If it is greater than or equal to the threshold, set the center pixel to white. default is 0.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.dilate",
+ "py_doc": "Dilates the image in place.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: The number of pixels in the kernel that are not 0. If it is greater than or equal to the threshold, set the center pixel to white. default is 0.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "0"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *dilate(int size, int threshold = 0, image::Image *mask = nullptr)"
+ },
+ "open": {
+ "type": "func",
+ "name": "open",
+ "doc": {
+ "brief": "Performs erosion and dilation on an image in order.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "As the threshold for erosion and dilation, the actual threshold for erosion is (kernel_size - 1 - threshold), the actual threshold for dialation is threshold. default is 0.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.open",
+ "py_doc": "Performs erosion and dilation on an image in order.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: As the threshold for erosion and dilation, the actual threshold for erosion is (kernel_size - 1 - threshold), the actual threshold for dialation is threshold. default is 0.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "0"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *open(int size, int threshold = 0, image::Image *mask = nullptr)"
+ },
+ "close": {
+ "type": "func",
+ "name": "close",
+ "doc": {
+ "brief": "Performs dilation and erosion on an image in order.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "As the threshold for erosion and dilation, the actual threshold for erosion is (kernel_size - 1 - threshold), the actual threshold for dialation is threshold. default is 0.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.close",
+ "py_doc": "Performs dilation and erosion on an image in order.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: As the threshold for erosion and dilation, the actual threshold for erosion is (kernel_size - 1 - threshold), the actual threshold for dialation is threshold. default is 0.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "0"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *close(int size, int threshold = 0, image::Image *mask = nullptr)"
+ },
+ "top_hat": {
+ "type": "func",
+ "name": "top_hat",
+ "doc": {
+ "brief": "Returns the image difference of the image and Image.open()\u2019ed image.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "As the threshold for open method. default is 0.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.top_hat",
+ "py_doc": "Returns the image difference of the image and Image.open()\u2019ed image.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: As the threshold for open method. default is 0.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "0"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *top_hat(int size, int threshold = 0, image::Image *mask = nullptr)"
+ },
+ "black_hat": {
+ "type": "func",
+ "name": "black_hat",
+ "doc": {
+ "brief": "Returns the image difference of the image and Image.close()\u2019ed image.",
+ "param": {
+ "size": "Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).",
+ "threshold": "As the threshold for close method. default is 0.",
+ "mask": "Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None."
+ },
+ "return": "Returns the image after the operation is completed.",
+ "maixpy": "maix.image.Image.black_hat",
+ "py_doc": "Returns the image difference of the image and Image.close()\u2019ed image.\n\nArgs:\n - size: Kernel size. The actual kernel size is ((size * 2) + 1) * ((size * 2) + 1). Use 1(3x3 kernel), 2(5x5 kernel).\n - threshold: As the threshold for close method. default is 0.\n - mask: Mask is another image to use as a pixel level mask for the operation. The mask should be an image with just black or white pixels and should be the same size as the image being operated on.\nOnly pixels set in the mask are modified. default is None.\n\n\nReturns: Returns the image after the operation is completed.\n"
+ },
+ "args": [
+ [
+ "int",
+ "size",
+ null
+ ],
+ [
+ "int",
+ "threshold",
+ "0"
+ ],
+ [
+ "image::Image *",
+ "mask",
+ "nullptr"
+ ]
+ ],
+ "ret_type": "image::Image*",
+ "static": false,
+ "def": "image::Image *black_hat(int size, int threshold = 0, image::Image *mask = nullptr)"
+ },
+ "find_blobs": {
+ "type": "func",
+ "name": "find_blobs",
+ "doc": {
+ "brief": "Finds all blobs in the image and returns a list of image.Blob class which describe each Blob.\\nPlease see the image.Blob object more more information.",
+ "note": "For GRAYSCALE format, Lmin and Lmax range is [0, 255]. For RGB888 format, Lmin and Lmax range is [0, 100].",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "invert": "if true, will invert thresholds before find blobs, default is false",
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "x_stride": "x stride is the number of x pixels to skip when doing the hough transform. default is 2",
+ "y_stride": "y_stride is the number of y pixels to skip when doing the hough transform. default is 1",
+ "area_threshold": "area threshold, if the blob area is smaller than area_threshold, the blob is not returned, default is 10",
+ "pixels_threshold": "pixels threshold, if the blob pixels is smaller than area_threshold, the blob is not returned,, default is 10.\nwhen x_stride and y_stride is equal to 1, pixels_threshold is equivalent to area_threshold",
+ "merge": "if True merges all not filtered out blobs whos bounding rectangles intersect each other. default is false",
+ "margin": "margin can be used to increase or decrease the size of the bounding rectangles for blobs during the intersection test.\nFor example, with a margin of 1 blobs whos bounding rectangles are 1 pixel away from each other will be merged. default is 0",
+ "x_hist_bins_max": "if set to non-zero populates a histogram buffer in each blob object with an x_histogram projection of all columns in the object. This value then sets the number of bins for that projection.",
+ "y_hist_bins_max": "if set to non-zero populates a histogram buffer in each blob object with an y_histogram projection of all rows in the object. This value then sets the number of bins for that projection."
+ },
+ "return": "Return the blob when found blobs, format is (blob1, blob2, ...), you can use blob class methods to do more operations.",
+ "maixpy": "maix.image.Image.find_blobs",
+ "py_doc": "Finds all blobs in the image and returns a list of image.Blob class which describe each Blob.\nPlease see the image.Blob object more more information.\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - invert: if true, will invert thresholds before find blobs, default is false\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - x_stride: x stride is the number of x pixels to skip when doing the hough transform. default is 2\n - y_stride: y_stride is the number of y pixels to skip when doing the hough transform. default is 1\n - area_threshold: area threshold, if the blob area is smaller than area_threshold, the blob is not returned, default is 10\n - pixels_threshold: pixels threshold, if the blob pixels is smaller than area_threshold, the blob is not returned,, default is 10.\nwhen x_stride and y_stride is equal to 1, pixels_threshold is equivalent to area_threshold\n - merge: if True merges all not filtered out blobs whos bounding rectangles intersect each other. default is false\n - margin: margin can be used to increase or decrease the size of the bounding rectangles for blobs during the intersection test.\nFor example, with a margin of 1 blobs whos bounding rectangles are 1 pixel away from each other will be merged. default is 0\n - x_hist_bins_max: if set to non-zero populates a histogram buffer in each blob object with an x_histogram projection of all columns in the object. This value then sets the number of bins for that projection.\n - y_hist_bins_max: if set to non-zero populates a histogram buffer in each blob object with an y_histogram projection of all rows in the object. This value then sets the number of bins for that projection.\n\n\nReturns: Return the blob when found blobs, format is (blob1, blob2, ...), you can use blob class methods to do more operations.\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "bool",
+ "invert",
+ "false"
+ ],
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "x_stride",
+ "2"
+ ],
+ [
+ "int",
+ "y_stride",
+ "1"
+ ],
+ [
+ "int",
+ "area_threshold",
+ "10"
+ ],
+ [
+ "int",
+ "pixels_threshold",
+ "10"
+ ],
+ [
+ "bool",
+ "merge",
+ "false"
+ ],
+ [
+ "int",
+ "margin",
+ "0"
+ ],
+ [
+ "int",
+ "x_hist_bins_max",
+ "0"
+ ],
+ [
+ "int",
+ "y_hist_bins_max",
+ "0"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector find_blobs(std::vector> thresholds = std::vector>(), bool invert = false, std::vector roi = std::vector(), int x_stride = 2, int y_stride = 1, int area_threshold = 10, int pixels_threshold = 10, bool merge = false, int margin = 0, int x_hist_bins_max = 0, int y_hist_bins_max = 0)"
+ },
+ "find_lines": {
+ "type": "func",
+ "name": "find_lines",
+ "doc": {
+ "brief": "Find lines in image",
+ "param": {
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "x_stride": "x stride is the number of x pixels to skip when doing the hough transform. default is 2",
+ "y_stride": "y_stride is the number of y pixels to skip when doing the hough transform. default is 1",
+ "threshold": "threshold threshold controls what lines are detected from the hough transform. Only lines with a magnitude greater than or equal to threshold are returned.\nThe right value of threshold for your application is image dependent. default is 1000.",
+ "theta_margin": "theta_margin controls the merging of detected lines. default is 25.",
+ "rho_margin": "rho_margin controls the merging of detected lines. default is 25."
+ },
+ "return": "Return the line when found lines, format is (line1, line2, ...), you can use line class methods to do more operations",
+ "maixpy": "maix.image.Image.find_lines",
+ "py_doc": "Find lines in image\n\nArgs:\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - x_stride: x stride is the number of x pixels to skip when doing the hough transform. default is 2\n - y_stride: y_stride is the number of y pixels to skip when doing the hough transform. default is 1\n - threshold: threshold threshold controls what lines are detected from the hough transform. Only lines with a magnitude greater than or equal to threshold are returned.\nThe right value of threshold for your application is image dependent. default is 1000.\n - theta_margin: theta_margin controls the merging of detected lines. default is 25.\n - rho_margin: rho_margin controls the merging of detected lines. default is 25.\n\n\nReturns: Return the line when found lines, format is (line1, line2, ...), you can use line class methods to do more operations\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "x_stride",
+ "2"
+ ],
+ [
+ "int",
+ "y_stride",
+ "1"
+ ],
+ [
+ "double",
+ "threshold",
+ "1000"
+ ],
+ [
+ "double",
+ "theta_margin",
+ "25"
+ ],
+ [
+ "double",
+ "rho_margin",
+ "25"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector find_lines(std::vector roi = std::vector(), int x_stride = 2, int y_stride = 1, double threshold = 1000, double theta_margin = 25, double rho_margin = 25)"
+ },
+ "find_line_segments": {
+ "type": "func",
+ "name": "find_line_segments",
+ "doc": {
+ "brief": "Finds all line segments in the image.",
+ "param": {
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "merge_distance": "The maximum distance between two lines to merge them. default is 0.",
+ "max_theta_difference": "The maximum difference between two lines to merge them. default is 15."
+ },
+ "return": "Return the line when found lines, format is (line1, line2, ...), you can use line class methods to do more operations",
+ "maixpy": "maix.image.Image.find_line_segments",
+ "py_doc": "Finds all line segments in the image.\n\nArgs:\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - merge_distance: The maximum distance between two lines to merge them. default is 0.\n - max_theta_difference: The maximum difference between two lines to merge them. default is 15.\n\n\nReturns: Return the line when found lines, format is (line1, line2, ...), you can use line class methods to do more operations\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "merge_distance",
+ "0"
+ ],
+ [
+ "int",
+ "max_theta_difference",
+ "15"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector find_line_segments(std::vector roi = std::vector(), int merge_distance = 0, int max_theta_difference = 15)"
+ },
+ "search_line_path": {
+ "type": "func",
+ "name": "search_line_path",
+ "doc": {
+ "brief": "Search the path of line",
+ "param": {
+ "thresholds": "You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.",
+ "detect_pixel_size": "Before finding the path, the screen is divided into several smaller blocks, each with a width and height of detect_pixel_size. The smaller the detect_pixel_size, the finer the division. the unit is pixels.",
+ "point_merge_size": "Minimum distance between merged point sets. the unit is pixels.",
+ "connection_max_size": "Minimum size allowed for connecting points to form a line. the unit is pixels.",
+ "connection_max_distance": "Minimum distance allowed for point to line. the unit is pixels.",
+ "connection_max_angle": "Minimum angle allowed for connecting points to form a line."
+ },
+ "return": "Return the line when found lines, format is (groupline1, groupline2, ...), you can use LineGroup class methods to do more operations",
+ "maixpy": "maix.image.Image.search_line_path",
+ "py_doc": "Search the path of line\n\nArgs:\n - thresholds: You can define multiple thresholds.\nFor GRAYSCALE format, you can use {{Lmin, Lmax}, ...} to define one or more thresholds.\nFor RGB888 format, you can use {{Lmin, Lmax, Amin, Amax, Bmin, Bmax}, ...} to define one or more thresholds.\nWhere the upper case L,A,B represent the L,A,B channels of the LAB image format, and min, max represent the minimum and maximum values of the corresponding channels.\n - detect_pixel_size: Before finding the path, the screen is divided into several smaller blocks, each with a width and height of detect_pixel_size. The smaller the detect_pixel_size, the finer the division. the unit is pixels.\n - point_merge_size: Minimum distance between merged point sets. the unit is pixels.\n - connection_max_size: Minimum size allowed for connecting points to form a line. the unit is pixels.\n - connection_max_distance: Minimum distance allowed for point to line. the unit is pixels.\n - connection_max_angle: Minimum angle allowed for connecting points to form a line.\n\n\nReturns: Return the line when found lines, format is (groupline1, groupline2, ...), you can use LineGroup class methods to do more operations\n"
+ },
+ "args": [
+ [
+ "std::vector>",
+ "thresholds",
+ "std::vector>()"
+ ],
+ [
+ "int",
+ "detect_pixel_size",
+ "30"
+ ],
+ [
+ "int",
+ "point_merge_size",
+ "15"
+ ],
+ [
+ "int",
+ "connection_max_size",
+ "51"
+ ],
+ [
+ "int",
+ "connection_max_distance",
+ "20"
+ ],
+ [
+ "int",
+ "connection_max_angle",
+ "20"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector search_line_path(std::vector> thresholds = std::vector>(), int detect_pixel_size = 30, int point_merge_size = 15, int connection_max_size = 51, int connection_max_distance = 20, int connection_max_angle = 20)"
+ },
+ "find_circles": {
+ "type": "func",
+ "name": "find_circles",
+ "doc": {
+ "brief": "Find circles in image",
+ "param": {
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "x_stride": "x stride is the number of x pixels to skip when doing the hough transform. default is 2",
+ "y_stride": "y_stride is the number of y pixels to skip when doing the hough transform. default is 1",
+ "threshold": "threshold controls what circles are detected from the hough transform. Only circles with a magnitude greater than or equal to threshold are returned.\nThe right value of threshold for your application is image dependent.",
+ "x_margin": "x_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10",
+ "y_margin": "y_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10",
+ "r_margin": "r_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10",
+ "r_min": "r_min controls the minimum circle radius detected. Increase this to speed up the algorithm. default is 2",
+ "r_max": "r_max controls the maximum circle radius detected. Decrease this to speed up the algorithm. default is min(roi.w / 2, roi.h / 2)",
+ "r_step": "r_step controls how to step the radius detection by. default is 2."
+ },
+ "return": "Return the circle when found circles, format is (circle1, circle2, ...), you can use circle class methods to do more operations",
+ "maixpy": "maix.image.Image.find_circles",
+ "py_doc": "Find circles in image\n\nArgs:\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - x_stride: x stride is the number of x pixels to skip when doing the hough transform. default is 2\n - y_stride: y_stride is the number of y pixels to skip when doing the hough transform. default is 1\n - threshold: threshold controls what circles are detected from the hough transform. Only circles with a magnitude greater than or equal to threshold are returned.\nThe right value of threshold for your application is image dependent.\n - x_margin: x_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10\n - y_margin: y_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10\n - r_margin: r_margin controls the merging of detected circles. Circles which are x_margin, y_margin, and r_margin pixels apart are merged. default is 10\n - r_min: r_min controls the minimum circle radius detected. Increase this to speed up the algorithm. default is 2\n - r_max: r_max controls the maximum circle radius detected. Decrease this to speed up the algorithm. default is min(roi.w / 2, roi.h / 2)\n - r_step: r_step controls how to step the radius detection by. default is 2.\n\n\nReturns: Return the circle when found circles, format is (circle1, circle2, ...), you can use circle class methods to do more operations\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "x_stride",
+ "2"
+ ],
+ [
+ "int",
+ "y_stride",
+ "1"
+ ],
+ [
+ "int",
+ "threshold",
+ "2000"
+ ],
+ [
+ "int",
+ "x_margin",
+ "10"
+ ],
+ [
+ "int",
+ "y_margin",
+ "10"
+ ],
+ [
+ "int",
+ "r_margin",
+ "10"
+ ],
+ [
+ "int",
+ "r_min",
+ "2"
+ ],
+ [
+ "int",
+ "r_max",
+ "-1"
+ ],
+ [
+ "int",
+ "r_step",
+ "2"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector find_circles(std::vector roi = std::vector(), int x_stride = 2, int y_stride = 1, int threshold = 2000, int x_margin = 10, int y_margin = 10, int r_margin = 10, int r_min = 2, int r_max = -1, int r_step = 2)"
+ },
+ "find_rects": {
+ "type": "func",
+ "name": "find_rects",
+ "doc": {
+ "brief": "Finds all rects in the image.",
+ "param": {
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "threshold": "The threshold to use for the rects. default is 10000."
+ },
+ "return": "Returns the rects of the image",
+ "maixpy": "maix.image.Image.find_rects",
+ "py_doc": "Finds all rects in the image.\n\nArgs:\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - threshold: The threshold to use for the rects. default is 10000.\n\n\nReturns: Returns the rects of the image\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "roi",
+ "std::vector()"
+ ],
+ [
+ "int",
+ "threshold",
+ "10000"
+ ]
+ ],
+ "ret_type": "std::vector",
+ "static": false,
+ "def": "std::vector find_rects(std::vector roi = std::vector(), int threshold = 10000)"
+ },
+ "find_qrcodes": {
+ "type": "func",
+ "name": "find_qrcodes",
+ "doc": {
+ "brief": "Finds all qrcodes in the image.",
+ "param": {
+ "roi": "The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.",
+ "decoder_type": "Select the QR code decoding method. Choosing QRCODE_DECODER_TYPE_QUIRC allows for retrieving QR code version, ECC level, mask, data type, and other details,\nthough it may decode slower at lower resolutions. Opting for QRCODE_DECODER_TYPE_ZBAR enables faster decoding at lower resolutions but may slow down at higher resolutions,\nproviding only the QR code content and position information. default is QRCODE_DECODER_TYPE_ZBAR."
+ },
+ "return": "Returns the qrcodes of the image",
+ "maixpy": "maix.image.Image.find_qrcodes",
+ "py_doc": "Finds all qrcodes in the image.\n\nArgs:\n - roi: The region of interest, input in the format of (x, y, w, h), x and y are the coordinates of the upper left corner, w and h are the width and height of roi.\ndefault is None, means whole image.\n - decoder_type: Select the QR code decoding method. Choosing QRCODE_DECODER_TYPE_QUIRC allows for retrieving QR code version, ECC level, mask, data type, and other details,\nthough it may decode slower at lower resolutions. Opting for QRCODE_DECODER_TYPE_ZBAR enables faster decoding at lower resolutions but may slow down at higher resolutions,\nproviding only the QR code content and position information. default is QRCODE_DECODER_TYPE_ZBAR.\n\n\nReturns: Returns the qrcodes of the image\n"
+ },
+ "args": [
+ [
+ "std::vector",
+ "roi",
+ "std::vector