def _getTrackQuality(tracks, frame : int):
    """
    ignore=hand covering
    entering=clear (or not found)
    exiting=no view
    """
    trackAtFrame=None
    quality=2
    for track in tracks:
       if int(track["frame_added"]) == frame:
           trackAtFrame=track
           break
    if trackAtFrame:
        if trackAtFrame["count_label"] == "entering":
            quality=2
        elif trackAtFrame["count_label"] == "ignore":
            quality=1
        else:
            quality=0

    return quality