ccs4dt.main.modules.object_matching package¶
Submodules¶
ccs4dt.main.modules.object_matching.object_matcher module¶
- class ccs4dt.main.modules.object_matching.object_matcher.ObjectMatcher(input_batch_df)¶
Bases:
object
Matching of different object_identifiers that refer to the same physical object and assign a new shared uuid.
Each sensor refers differently to the objects it records. E.g. camera sensor uses uuids to identify objects whereas bluetooth sensor uses MAC address. In reality the different object_identifiers map to the same physical object. ObjectMatching groups object_identifiers that most probably belong to the same physical object and re-indexes object_identifiers of members of the same cluster with a new shared uuid. This makes further processing easier.
- Parameters
input_batch_df (pandas.DataFrame) – Input batch dataframe
- get_clusters()¶
Get computed clusters
- Return type
dict
- run()¶
Run object_matching and re-index object_identifiers
- Returns
The re-indexed input_batch_df
- Return type
pd.DataFrame