-
-
Notifications
You must be signed in to change notification settings - Fork 25
Add Python bindings for jsartoolkitNFT #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kalwalt
wants to merge
70
commits into
dev
Choose a base branch
from
feature-pyton-bindings
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
d0089df
Add Python bindings for jsartoolkitNFT and update .gitignore
kalwalt fcab895
improved test and solve issue with ARLog's
kalwalt a0d4d8d
fix for last missed escape characters
kalwalt 85acf85
Update .gitignore and enhance setup.py to download and include libjpeg
kalwalt c040dc3
Add nftMarker class to Python bindings and enhance test script for NF…
kalwalt a208c46
Add GitHub Actions workflow for building and testing Python bindings
kalwalt 9bf7d5f
Enhance GitHub Actions workflow by adding submodule update step for b…
kalwalt 2deb11f
Add config.h generation to setup.py for AR video input configuration
kalwalt 74eca3b
Update GitHub Actions workflow to install system dependencies for lib…
kalwalt 0e7e63e
Refactor build process for libjpeg in setup.py and update workflow to…
kalwalt 5e1dd79
Use absolute path for build directory in setup.py
kalwalt 4dd58f3
Add installation of libjpeg9 in GitHub Actions workflow
kalwalt 09b8ab2
Update Python dependencies in GitHub Actions workflow to include numpy
kalwalt e24726a
Add separate build jobs for Linux and Windows in GitHub Actions workflow
kalwalt 67d1306
Update GitHub Actions workflow to install libjpeg-turbo instead of li…
kalwalt 9b8fff2
Update GitHub Actions workflow to use bash for adding vcpkg to path
kalwalt 0197900
Refactor setup.py to conditionally handle libjpeg build for Windows u…
kalwalt dfc40bf
Add zlib, libjpeg, and pthread libraries for Windows support; update …
kalwalt 70deb15
Refactor setup.py to use conditional extra_compile_args for Windows b…
kalwalt 7f157c7
Refactor setup.py to conditionally build libjpeg for Linux platforms
kalwalt efde8d7
Add jconfig.h and jversion.h for libjpeg-turbo support; update extra_…
kalwalt 1f3d30f
Add caching for pip packages and vcpkg in GitHub Actions; update setu…
kalwalt 0d4bdeb
Add pthreads installation to GitHub Actions and update setup.py for l…
kalwalt 15e44b7
Add unit tests for jsartoolkitNFT and update GitHub Actions workflow
kalwalt 36e44d3
Update expected values in unit tests for cameraId and id
kalwalt 96b993e
Update GitHub Actions to use Windows 2022 and enhance unit tests for …
kalwalt d067b37
Upgrade GitHub Actions to Ubuntu 24.04, update Node.js setup, and mod…
kalwalt 4b31bdd
Add installation of ChromiumHeadless in GitHub Actions workflow
kalwalt 45faee6
Enhance unit tests for NFT data retrieval by adding marker ID checks …
kalwalt 7ce0076
Refactor getNFTMarkerInfo to return a py::dict and update error handling
kalwalt e02dbd9
Add NFT marker detection and enhance unit tests for marker info retri…
kalwalt 9ba59b7
Enhance output of getNFTMarkerInfo by adding detailed print statement…
kalwalt f83a027
a raw barebone for publishing to testPyPi
kalwalt b106927
Update license information in pyproject.toml and setup.py to specify …
kalwalt c94aab5
Refactor Python bindings structure, update version to 0.0.4, and clea…
kalwalt 701dac7
Bump version to 0.0.5, remove deprecated artoolkitNFT.py, and update …
kalwalt 8da05e0
Fix build workflow to separate wheel creation and installation steps
kalwalt e5fe97d
Update build workflow to install specific wheel version for consistency
kalwalt af67ef5
Refactor build workflow to streamline wheel installation process
kalwalt 7468b00
Enhance build workflow by adding pytest for testing, updating package…
kalwalt 0dc37ef
Rename package to 'artoolkitnft', update version to 0.0.6, and add AR…
kalwalt 106b58f
fix for github action issue
kalwalt c103546
Fix library extension for Windows and clean up library list for non-W…
kalwalt e9730da
Bump version to 0.0.8 and update setup configuration for zlib depende…
kalwalt 33d681a
Update README for TestPyPI publishing instructions and bump version t…
kalwalt 7eaf2ca
Update README to include TestPyPI installation instructions
kalwalt 11c1018
Update GitHub Actions workflow to dynamically install the wheel based…
kalwalt 05d3aba
Fix syntax for version extraction in GitHub Actions workflow
kalwalt f249ced
Fix PowerShell syntax for version extraction in GitHub Actions workflow
kalwalt c8c46ce
Fix PowerShell variable assignment syntax in GitHub Actions workflow
kalwalt 8faef29
Add echo statement for clarity before installing wheel in GitHub Acti…
kalwalt 8af2180
Remove dynamic versioning for wheel installation in GitHub Actions wo…
kalwalt bd84ca4
Update GitHub Actions workflow to use Python 3.11 and latest action v…
kalwalt dcdd9e6
Update wheel installation to use Python 3.11 compatible version
kalwalt feaaa5f
Merge branch 'dev' into feature-pyton-bindings
kalwalt 3356c88
fix for issue https://github.com/webarkit/jsartoolkitNFT/issues/430 i…
kalwalt c27983a
Refactor ARToolKitNFT_py.cpp to use smart pointers for memory manage…
kalwalt 853ff0b
Enhance ARControllerNFT to support grayscale conversion and improve i…
kalwalt e6c2d4c
Add image processing test and new test image for ARControllerNFT
kalwalt 9a29dc0
Update Python dependencies and modify test command in CI workflow
kalwalt ae7d62d
Enhance ARControllerNFT example to support higher resolution and imag…
kalwalt 19157ea
some more tests with the example
kalwalt 9cdd192
fox for codeql script
kalwalt 3886f5a
fix for wrong codeql config path
kalwalt 609a245
chore: update version to 1.7.6, add ES6 Karma configurations, and imp…
kalwalt b2db9a8
chore: add GitHub Actions workflow for publishing to npm
kalwalt ec6ff05
merging last changes in feature-python-bindings
kalwalt d01133e
using zlib version 1.2.11
kalwalt 9d7e065
feat: enhance setup script to support tool installation via winget an…
kalwalt 34d3bf9
trying to debug the issue
kalwalt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,18 @@ | ||
| import jsartoolkitNFT | ||
| import numpy as np | ||
|
|
||
| nft=jsartoolkitNFT.ARToolKitNFT() | ||
| nft.setup(320,240,0) | ||
| cameraId=nft.loadCamera('../examples/Data/camera_para.dat') | ||
| width=640 | ||
| height=480 | ||
| id=nft.setup(width,height,cameraId) | ||
| nft.setupAR2() | ||
| camera_mat=nft.getCameraLens() | ||
| print(camera_mat) | ||
| framesize = width * height | ||
| videoLuma = np.zeros((height, width, 1), dtype=np.uint8) | ||
|
|
||
| nft.setProjectionNearPlane(0.1) | ||
| nft.setProjectionFarPlane(1000) | ||
|
|
||
| nft.addNFTMarkers(['../examples/DataNFT/pinball']) | ||
kalwalt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.