Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
PYTHONPATH := ./verification-system:$(PYTHONPATH)

module.tar.gz: requirements.txt *.sh src/*.py
tar czf module.tar.gz $^

test:
PYTHONPATH=$(PYTHONPATH) pytest
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
viam-sdk >= 0.21.0
pillow
pytest-asyncio
6 changes: 5 additions & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@

from .verificationclassifier import VerificationSystem

Registry.register_resource_creator(VisionClient.SUBTYPE, VerificationSystem.MODEL, ResourceCreatorRegistration(VerificationSystem.new, VerificationSystem.validate))
Registry.register_resource_creator(
VisionClient.SUBTYPE,
VerificationSystem.MODEL,
ResourceCreatorRegistration(VerificationSystem.new, VerificationSystem.validate),
)
2 changes: 2 additions & 0 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
from viam.module.module import Module
from .verificationclassifier import VerificationSystem


async def main():
module = Module.from_args()
module.add_model_from_registry(VisionClient.SUBTYPE, VerificationSystem.MODEL)
await module.start()


if __name__ == "__main__":
asyncio.run(main())
Loading