Skip to content
Snippets Groups Projects
Commit a3c4d37a authored by smayer's avatar smayer
Browse files

Added first sketch for three classes

parent 26de344f
Branches
No related tags found
No related merge requests found
import cv2
import numpy as np
import requests
from abc import ABC, abstractmethod
class IIIFAbstractManifest(ABC):
"""
An abstract class for handling IIIF manifests for further processing.
"""
def __init__(self, manifest_url):
self.manifest_url = manifest_url
super().__init__()
@abstractmethod
def _load_single_image(self):
pass
@abstractmethod
def _load_multiple_images(self):
pass
@abstractmethod
def get_image(self):
pass
@abstractmethod
def get_images(self):
pass
@abstractmethod
def get_image_range(self):
pass
class IIIFColorizer(IIIFAbstractManifest):
pass
class IIIFImageStitcher(IIIFAbstractManifest):
pass
opencv-python
numpy
requests
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment