예제 #1
0
 def __init__(self, rconfig: Dict[str, any]):
     Serial.__init__(
         self,
         "PreprocessFrame",
         rconfig,
         ConvertFromBGR2Gray,
         BlurGray,
         # Denoise,
     )
예제 #2
0
 def __init__(self) -> None:
     Serial.__init__(
         self,
         "Foreground",
         GroupFrames,
         IntersectFrames,
         UnionIntersections,
         SubtractBackground,
     )
예제 #3
0
 def __init__(self, rconfig: Dict[str, any]) -> None:
     Serial.__init__(
         self,
         "Foreground",
         rconfig,
         GroupFrames,
         IntersectFrames,
         UnionIntersections,
         SubtractBackground,
     )
 def __init__(self):
     Serial.__init__(
         self,
         "MotionDetector",
         StoreHistoryFrame,
         ComputeTransformationMatrices,
         TransformedFrames,
         QuantizeHistoryFrames,
         GenerateWeights,
         GenerateMaskSubcomponents,
         ComputeMovingForeground,
         ApplyMasks,
         NoiseReduction,
         DetectBlobs,
         ShowLastFrame,
     )
예제 #5
0
 def __init__(self, rconfig: Dict[str, any]):
     Serial.__init__(
         self,
         "MotionDetector",
         rconfig,
         StoreHistoryFrame,
         ComputeTransformationMatrices,
         TransformedFrames,
         QuantizeHistoryFrames,
         GenerateWeights,
         GenerateMaskSubcomponents,
         ComputeMovingForeground,
         ApplyMasks,
         NoiseReduction,
         DetectBlobs,
         MinSizeFilter,
     )
def update_preset_pipelines(input_file="input.mp4"):
    """
    Updates the input information for the preset pipelines.
    """

    ParentStage.static_stages = []

    preset_pipelines["default"] = Serial(
        "BaboonTracker",
        factory(GetVideoFrame, "./data/" + input_file),
        PreprocessFrame,
        MotionDetector,
        TestExit,
    )
예제 #7
0
def update_preset_pipelines(input_file="input.mp4", runtime_config=None):
    """
    Updates the input information for the preset pipelines.
    """

    ParentStage.static_stages = []

    preset_pipelines["default"] = Serial(
        "BaboonTracker",
        runtime_config,
        factory(GetVideoFrame, "./data/" + input_file),
        PreprocessFrame,
        MotionDetector,
        SaveBaboons,
        DrawRegions,
        TestExit,
        DisplayProgress,
    )
 def __init__(self):
     Serial.__init__(self, "PreprocessFrame", ConvertFromBGR2Gray, BlurGray,
                     ShowLastFrame)