SCTrack.prepare module

class SCTrack.prepare.DetectionParser(fname: str | None = None, py_data: dict | None = None)[source]

Bases: object

get_frame_names()[source]
get_region_attr(regions)[source]

regions: extract from json files, one frame data, it cna be get from function [get_regions_by_frame()] Returns: all cells bounding box and cell_type list, like [((x_min, x_max, y_min, y_max), cell_type), …, ((x_min, x_max, y_min, y_max), cell_type)]

get_regions_by_frame(frame_name)[source]
SCTrack.prepare.convert_dtype(__image: ndarray) ndarray[source]
SCTrack.prepare.draw_bbox(image: ndarray, regions_bounding: list)[source]
SCTrack.prepare.json2box(shapes: dict)[source]