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

AVT Camera #142

Closed
wants to merge 11 commits into from
4 changes: 3 additions & 1 deletion copylot/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def __init__(self, *args, **kwargs):
) as json_file:
self.defaults = json.load(json_file)

except FileNotFoundError: # construct initial defaults.txt fileself.defaults = [3, 6, 25, 100]
except (
FileNotFoundError
): # construct initial defaults.txt fileself.defaults = [3, 6, 25, 100]
if not os.path.isdir(os.path.join(str(Path.home()), ".coPylot")):
os.mkdir(os.path.join(str(Path.home()), ".coPylot"))

Expand Down
Empty file.
16 changes: 16 additions & 0 deletions copylot/hardware/cameras/avt/camera.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from enum import Enum

# TODO - where should vendor specific SDK imports live?
# See https://github.com/alliedvision/VimbaPython for more details on downloading Vimba (unfortunately not on PyPi)
from vimba import *

from copylot.hardware.cameras.abstract_camera import AbstractCamera


class AVTCameraException(Exception):
pass


class BinningMode(Enum):
AVERAGE = "Average"
SUM = "Sum"
2 changes: 0 additions & 2 deletions copylot/hardware/cameras/orca/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class OrcaCamera(AbstractCamera):
"""

def __init__(self, camera_index: int = 0):

self._camera_index = camera_index

def run(self, nb_frame: int = 100000):
Expand All @@ -36,7 +35,6 @@ def run(self, nb_frame: int = 100000):
if dcam.dev_open():
nb_buffer_frames = 3
if dcam.buf_alloc(nb_buffer_frames):

if dcam.cap_start():
timeout_milisec = 20

Expand Down