Skip to content

Commit

Permalink
Merge pull request #1491 from mikel-brostrom/revert-1487-kf-type-hints
Browse files Browse the repository at this point in the history
Revert "added type hints"
  • Loading branch information
mikel-brostrom committed Jun 20, 2024
2 parents eb54152 + 90374dc commit 8544f9b
Show file tree
Hide file tree
Showing 10 changed files with 492 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from abc import ABC, abstractmethod


class BaseCMC(ABC):
class CMCInterface(ABC):

@abstractmethod
def apply(self, im):
Expand Down
4 changes: 2 additions & 2 deletions boxmot/motion/cmc/ecc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import cv2
import numpy as np

from boxmot.motion.cmc.base_cmc import BaseCMC
from boxmot.motion.cmc.cmc_interface import CMCInterface
from boxmot.utils import BOXMOT
from boxmot.utils import logger as LOGGER


class ECC(BaseCMC):
class ECC(CMCInterface):
def __init__(
self,
warp_mode: int = cv2.MOTION_EUCLIDEAN,
Expand Down
4 changes: 2 additions & 2 deletions boxmot/motion/cmc/orb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import cv2
import numpy as np

from boxmot.motion.cmc.base_cmc import BaseCMC
from boxmot.motion.cmc.cmc_interface import CMCInterface
from boxmot.utils import BOXMOT


class ORB(BaseCMC):
class ORB(CMCInterface):

def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions boxmot/motion/cmc/sift.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import cv2
import numpy as np

from boxmot.motion.cmc.base_cmc import BaseCMC
from boxmot.motion.cmc.cmc_interface import CMCInterface
from boxmot.utils import BOXMOT


class SIFT(BaseCMC):
class SIFT(CMCInterface):

def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions boxmot/motion/cmc/sof.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import cv2
import numpy as np

from boxmot.motion.cmc.base_cmc import BaseCMC
from boxmot.motion.cmc.cmc_interface import CMCInterface
from boxmot.utils import BOXMOT
from boxmot.utils import logger as LOGGER


class SOF(BaseCMC):
class SOF(CMCInterface):

def __init__(
self,
Expand Down
158 changes: 0 additions & 158 deletions boxmot/motion/kalman_filters/base_kalman_filter.py

This file was deleted.

Loading

0 comments on commit 8544f9b

Please sign in to comment.