finished oak and web cams and run files
This commit is contained in:
@@ -5,6 +5,7 @@ def create_camera(camera_type='web', **kwargs):
|
||||
if camera_type == 'web':
|
||||
return WebCamera(**kwargs)
|
||||
elif camera_type == 'oak':
|
||||
kwargs.pop('camera_id', None)
|
||||
return OakCamera(**kwargs)
|
||||
else:
|
||||
raise ValueError(f"Unknown camera type: {camera_type}")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import depthai as dai
|
||||
import numpy as np
|
||||
import cv2
|
||||
from camera.base_camera import Camera
|
||||
|
||||
class OakCamera(Camera):
|
||||
|
||||
Reference in New Issue
Block a user