atiso-object-search / candidate.py
ngxquang
Add application file
db24a4e
raw
history blame contribute delete
339 Bytes
from frame import Frame
class Candidate:
def __init__(self, frame: Frame, score: float):
self.frame = frame
self.score = score
def serialize(self) -> dict:
return {
'video': self.frame.video,
'frame_name': self.frame.frame_name + '.jpg',
'score': self.score,
}