add StrongSORT Tacker
This commit is contained in:
parent
ffc2e99678
commit
b7d8b3266f
93 changed files with 20230 additions and 6 deletions
21
feeder/sender/base.py
Normal file
21
feeder/sender/base.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
import numpy as np
|
||||
import json
|
||||
|
||||
class NumpyArrayEncoder(json.JSONEncoder):
|
||||
def default(self, obj):
|
||||
if isinstance(obj, np.integer):
|
||||
return int(obj)
|
||||
elif isinstance(obj, np.floating):
|
||||
return float(obj)
|
||||
elif isinstance(obj, np.ndarray):
|
||||
return obj.tolist()
|
||||
else:
|
||||
return super(NumpyArrayEncoder, self).default(obj)
|
||||
|
||||
class BasSender:
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def send(self, messages):
|
||||
raise NotImplementedError()
|
Loading…
Add table
Add a link
Reference in a new issue