-
Notifications
You must be signed in to change notification settings - Fork 0
/
03_isp.py
51 lines (36 loc) · 1.13 KB
/
03_isp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# QUESTION: What would be a good way to separate this interface?
from abc import ABCMeta, abstractmethod
class IPerceptionSystem(metaclass=ABCMeta):
@abstractmethod
def connect(self):
raise NotImplementedError()
@abstractmethod
def capture(self):
raise NotImplementedError()
@abstractmethod
def disconnect(self):
raise NotImplementedError()
@abstractmethod
def segment_img(self):
raise NotImplementedError()
@abstractmethod
def predict_shape(self):
raise NotImplementedError()
@abstractmethod
def predict_material(self):
raise NotImplementedError()
@abstractmethod
def generate_pick_points(self):
raise NotImplementedError()
### Notes ### (There is no right answer and the way it should be separated really depends on requirements)
# DeviceInterface
# connect
# disconnect
# Camera Interface
# capture
# PerceptionSystemInterface
# generate pick points
# segment_img
# PredictProperties
# predict_shape
# predict_material