| 53 | |
| 54 | |
| 55 | class ImageDecode(MapDataComponent): |
| 56 | def __init__(self, ds, index=0): |
| 57 | def func(im_data): |
| 58 | img = cv2.imdecode(im_data, cv2.IMREAD_COLOR) |
| 59 | return img |
| 60 | super(ImageDecode, self).__init__(ds, func, index=index) |
| 61 | |
| 62 | |
| 63 | class RejectTooSmallImages(MapDataComponent): |
no outgoing calls
no test coverage detected