Skip to content

Commit

Permalink
Merge pull request #15 from StrijpT-Ellie/feat/rust_wrapper
Browse files Browse the repository at this point in the history
Feat/rust wrapper
  • Loading branch information
WouterPennings authored May 15, 2024
2 parents 53bceb9 + e086e89 commit bdd6ef3
Show file tree
Hide file tree
Showing 6 changed files with 774 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/cw-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib"]
crate-type = ["dylib"]

[profile.dev]
overflow-checks = false
Expand Down
1 change: 1 addition & 0 deletions lib/wrappers/python/contourwall.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(self) -> None:
self._drop.argtypes = [ctypes.POINTER(ContourWallCore)]

self.pixels: np.ndarray = np.zeros((20, 20, 3), dtype=np.uint8)

self.pushed_frames: int = 0

def new(self, baudrate: int=2_000_000) -> None:
Expand Down
3 changes: 1 addition & 2 deletions lib/wrappers/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
numpy==1.24.3
opencv-contrib-python==4.7.0.72
opencv-python==4.7.0.72
mediapipe==0.9.3.0
pyserial==3.5
types-pyserial==3.5.*
mypy==1.10.*
mypy==1.10.*
Loading

0 comments on commit bdd6ef3

Please sign in to comment.