Add clarifying code comments and improve README

This commit is contained in:
hexbabe
2023-11-30 17:55:18 -05:00
parent f60b51d156
commit 85662fd6c3
4 changed files with 13 additions and 10 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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.