mirror of
https://github.com/hexbabe/python-appimage-module.git
synced 2026-03-16 05:50:32 +01:00
Add clarifying code comments and improve README
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
This file registers the model with the Python SDK.
|
||||
"""
|
||||
|
||||
# usage of camera type is arbitrary; refactor to your desired component/service
|
||||
from viam.components.camera import Camera
|
||||
from viam.resource.registry import Registry, ResourceCreatorRegistration
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import asyncio
|
||||
|
||||
# usage of camera type is arbitrary; refactor to your desired component/service
|
||||
from viam.components.camera import Camera
|
||||
from viam.logging import getLogger
|
||||
from viam.module.module import Module
|
||||
|
||||
@@ -15,7 +15,7 @@ from viam.resource.types import Model, ModelFamily
|
||||
|
||||
LOGGER = getLogger(__name__)
|
||||
|
||||
|
||||
# usage of camera type is arbitrary; refactor to your desired component/service
|
||||
class MyModule(Camera, Reconfigurable): # use a better name than this
|
||||
"""
|
||||
Camera represents any physical hardware that can capture frames.
|
||||
|
||||
Reference in New Issue
Block a user