(self, all_json_list)
return retval
This method performs the reid for a given set of detection records
        (all_json_list). It returns re-identified set of json objects.
        Note that all the ignorable-points (corresponding to configuration of
        self.ignore_dict will not be processed)

        Arguments:

            all_json_list {list} -- List of all detections in day2 schema format
        Returns:
            list -- List of all tracked detections in day2 schema format
This method performs the reid for a given set of detection records
        (all_json_list). It returns re-identified set of json objects.
        Note that all the ignorable-points (corresponding to configuration of
        self.ignore_dict will not be processed)
This method performs the reid for a given set of detection records ( all_json_list ) . It returns re - identified set of json objects . Note that all the ignorable - points ( corresponding to configuration of self . ignore_dict will not be processed )
def track_list(self, all_json_list):
        """
        This method performs the reid for a given set of detection records
        (all_json_list). It returns re-identified set of json objects.
        Note that all the ignorable-points (corresponding to configuration of
        self.ignore_dict will not be processed)

        Arguments:

            all_json_list {list} -- List of all detections in day2 schema format
        Returns:
            list -- List of all tracked detections in day2 schema format
        """
        retval = []
        all_json_list = validation.ignore_bad_records(all_json_list)
        all_json_list, ignored_list = ioutils.ignore_false_detections(
            all_json_list, self.ignore_poly_dict)

        # Debugging-related objects
        start_time = end_time = None

        if all_json_list:
            if self.time_prof_flag:
                start_time = timer()

            all_json_list.sort(
                key=lambda json_ele: json_ele.get("@timestamp", None))
            self.mctracker_obj.process_batch(all_json_list)

            if self.time_prof_flag:
                end_time = timer()
                logging.info(
                    "Mc-Tracker Stream: Time taken: %f",
                    (end_time - start_time))

            tmp_ret = self.mctracker_obj.state.retval
            if tmp_ret is not None:
                self.mctracker_obj.remove_all_additional_fields(tmp_ret)
                retval += tmp_ret
                self.mctracker_obj.state.retval = []

        return retval
def track_list ( self , all_json_list ) : retval = [ ] all_json_list = validation . ignore_bad_records ( all_json_list ) all_json_list , ignored_list = ioutils . ignore_false_detections ( all_json_list , self . ignore_poly_dict ) # Debugging-related objects start_time = end_time = None if all_json_list : if self . time_prof_flag : start_time = timer ( ) all_json_list . sort ( key = lambda json_ele : json_ele . get ( "@timestamp" , None ) ) self . mctracker_obj . process_batch ( all_json_list ) if self . time_prof_flag : end_time = timer ( ) logging . info ( "Mc-Tracker Stream: Time taken: %f" , ( end_time - start_time ) ) tmp_ret = self . mctracker_obj . state . retval if tmp_ret is not None : self . mctracker_obj . remove_all_additional_fields ( tmp_ret ) retval += tmp_ret self . mctracker_obj . state . retval = [ ] return retval