Skip to content
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

quick typo fix in oak_camera module #1118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 5 additions & 6 deletions depthai_sdk/src/depthai_sdk/oak_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self,

self.pipeline = dai.Pipeline()
self._args: Optional[Dict[str, Any]] = None # User defined arguments
self._pipeine_graph = None
self._pipeline_graph = None

if args:
if isinstance(args, bool):
Expand Down Expand Up @@ -197,7 +197,6 @@ def _init_device(self,
config: dai.Device.Config,
device_str: Optional[str] = None,
) -> None:

"""
Connect to the OAK camera
"""
Expand Down Expand Up @@ -501,8 +500,8 @@ def start(self, blocking=False):

# Append callbacks to be called from main thread
# self._polling.append()
if self._pipeine_graph is not None:
self._pipeine_graph.create_graph(self.pipeline.serializeToJson()['pipeline'], self.device)
if self._pipeline_graph is not None:
self._pipeline_graph.create_graph(self.pipeline.serializeToJson()['pipeline'], self.device)
logging.info('Pipeline graph process started')

# Call on_pipeline_started() for each component
Expand Down Expand Up @@ -589,8 +588,8 @@ def show_graph(self):
Shows DepthAI Pipeline graph, which can be useful when debugging. You must call this BEFORE calling the oak.start()!
"""
from depthai_pipeline_graph.pipeline_graph import PipelineGraph
self._pipeine_graph = PipelineGraph()
self._polling.append(self._pipeine_graph.update)
self._pipeline_graph = PipelineGraph()
self._polling.append(self._pipeline_graph.update)

def visualize(self,
output: Union[List, ComponentOutput, Component],
Expand Down