MCPcopy Create free account

hub / github.com/NVIDIA-AI-IOT/deepstream_360_d_smart_parking_application / functions

Functions199 in github.com/NVIDIA-AI-IOT/deepstream_360_d_smart_parking_application

↓ 13 callersMethodget_xy
Get the (x,y) position of a given node with id = "node_id" Arguments: node_id {[int]} -- The node id Returns:
tracker/code/network/networkhelper.py:192
↓ 12 callersFunctionresolveApp
ui/config/paths.js:10
↓ 4 callersMethodlog_cluster_points
Method to log all the clustered points. The points will be appended to the cluster log file as indicated by the global variable
tracker/code/mctrack/tracklog.py:87
↓ 3 callersFunctioncheckIndexExists
(indexName)
apis/app/models/es_model.js:26
↓ 3 callersFunctionformatSearchQuery
Formats the search query
apis/app/models/es_model.js:158
↓ 3 callersFunctiongetFormattedCarObject
Returns the required attributes of the car object in a particular format.
apis/app/ws/websocket.js:41
↓ 3 callersFunctiongetFormattedParkingResults
Gets the resolved results and formats the car objects
apis/app/ws/websocket.js:120
↓ 3 callersFunctiongetResultsFromCassandra
A generic function which receives a queryObject and uses it to obtain results from cassandra. The queryObject consists of the query and the params.
apis/app/ws/websocket.js:75
↓ 3 callersMethodget_distance_matrix
This method computes the eucledian distance between the detections at timestep (t-1) (indicated by prev_json_list) and detetions at
tracker/code/mctrack/mctracker.py:798
↓ 3 callersMethodlog_match_points
Method to log all the matched points. The tracker matches clusters at tiemstamp (t-1) with those at timestamp t. The points will be a
tracker/code/mctrack/tracklog.py:201
↓ 3 callersMethodremove_all_additional_fields
The tracker adds additional fields to the detection dictionaries that are passed. This will violate the day2 schema. Use this method
tracker/code/mctrack/mctracker.py:1864
↓ 3 callersMethodxfer_attrb_for_1valid_veh
Transfer vehicle attributes such as license plate, make, color from one representative record to all the records in the list
tracker/code/mctrack/mctracker.py:1120
↓ 2 callersMethodadd_synthetic_attr
If the vehicle detected does not have any attributes (e.g., license plate, color), then add dummy attributes Arguments:
tracker/code/mctrack/mctracker.py:1528
↓ 2 callersMethodconflict_cameras
Returns if two detections are from conflicting cameras or not Arguments: ele1 {[dict]} -- first detection (in day2 schem
tracker/code/mctrack/mctracker.py:1265
↓ 2 callersFunctiongetClientEnvironment
(publicUrl)
ui/config/env.js:63
↓ 2 callersFunctiongetPublicUrl
ui/config/paths.js:25
↓ 2 callersFunctiongetResultsFromCassandra
A generic function which receives a queryObject and uses it to obtain results from cassandra. The queryObject consists of the query and the params.
apis/app/models/stats_model.js:14
↓ 2 callersFunctionget_all_rects
Get all rectangles for the point the_pt Arguments: rect {KDTree rect} -- Input rectangle kdtree the_pt {[type]} -- [descript
tracker/code/geo/core/spatial.py:191
↓ 2 callersMethodget_id_list
Get the list of ids associated with a given detection Arguments: json_ele {[dict]} -- Day2 schema dictionary Returns:
tracker/code/mctrack/mctracker.py:1091
↓ 2 callersMethodmatch_moving_points_to_map
This method maps all points in the json_list to the nearest points on the map_info Arguments: json_list {[list]} -- The l
tracker/code/mctrack/mctracker.py:240
↓ 2 callersMethodnormalize_dist
This method normalizes the distance between an array of (x,y) points based on the minimum x,y and range of x,y. Specifically,
tracker/code/mctrack/mctracker.py:718
↓ 2 callersMethodprocess_batch
This is the main method that will be called for multicam tracking. The detections are passed in day2 schema in a list (all_json_list)
tracker/code/mctrack/mctracker.py:1625
↓ 2 callersFunctionregisterValidSW
(swUrl)
ui/src/registerServiceWorker.js:58
↓ 2 callersMethodselect_rep_member_from_list
This method selects one representative dict from the list of vehicle detections (in json_list) Returns: [dict] -
tracker/code/mctrack/mctracker.py:554
↓ 2 callersMethodsmooth_x_y_in_list
This method replaces a vehicle detections in a list by a representative point (x,y). Currently, the logic is: computed (x
tracker/code/mctrack/mctracker.py:501
↓ 1 callersFunctionangle_trunc
Truncate the angle between [0, 360) Arguments: the_angle {float} -- angle Returns: float -- Angle between [0,360)]
tracker/code/geo/core/spatial.py:161
↓ 1 callersFunctionbuild
(previousFileSizes)
ui/scripts/build.js:104
↓ 1 callersMethodbuild_all_elements
Build the network and create an indexing structure (kdtree)
tracker/code/network/networkhelper.py:111
↓ 1 callersMethodbuild_network
Build the road-network
tracker/code/network/networkhelper.py:155
↓ 1 callersMethodcameras_overlap
Returns if two detections are from overlapping cameras or not Arguments: ele1 {[dict]} -- first detection (in day2 schem
tracker/code/mctrack/mctracker.py:1392
↓ 1 callersFunctioncheckValidServiceWorker
(swUrl)
ui/src/registerServiceWorker.js:91
↓ 1 callersMethodcheck_and_add_pt
Check if a point is present. A point will be added if there are no other points within the "min_dist" neighborhood Arguments:
tracker/code/network/networkhelper.py:36
↓ 1 callersMethodclose_debug_files
This method closes all the open debug files. This function has to be explicity called after multi-cam tracking module is finished
tracker/code/mctrack/tracklog.py:57
↓ 1 callersMethodcluster_recs_from_same_cam
Each camera may have multiple frames within a given resample period. In such cases, single object may be detected multiple times. If
tracker/code/mctrack/mctracker.py:654
↓ 1 callersMethodcollate_single_obj_attr
This method collates objects of same tracker id and from the same sensor into a single object Arguments: json_li
tracker/code/mctrack/mctracker.py:1160
↓ 1 callersMethodconcatenate_member_ids
Given all the objects in json_list, create a list of all ids for as a list and return the list of ids Arguments:
tracker/code/mctrack/mctracker.py:1432
↓ 1 callersFunctioncopyPublicFolder
()
ui/scripts/build.js:145
↓ 1 callersMethodcreate_point_kd
Create a kdtree of points
tracker/code/network/networkhelper.py:117
↓ 1 callersFunctiondensify_line
Densify a line ("line") Arguments: line {[type]} -- [description] hypotenuse {[type]} -- [description] Returns:
tracker/code/euclidean/euchelper.py:50
↓ 1 callersMethoddump_stats
Write all the tracking timings into the file specified by DEFAULT_TRACKER_LOGS_FILE
tracker/code/mctrack/mctrackstream.py:224
↓ 1 callersFunctionensureSlash
(path, needsSlash)
ui/config/paths.js:14
↓ 1 callersMethodflush_files
Flush the log files, if logging is enabled
tracker/code/mctrack/tracklog.py:75
↓ 1 callersFunctiongetAisleResults
Generates the cassandra aisle query for live/playback system * and formats the results
apis/app/ws/websocket.js:168
↓ 1 callersFunctiongetAnomaly
(query)
apis/app/models/es_model.js:75
↓ 1 callersFunctiongetCompressedResult
The result is compressed so that a variety of events can be obtained for various detected objects. * Moving events for a particular license plate is
apis/app/models/es_model.js:182
↓ 1 callersFunctiongetEvents
(query,isSearch)
apis/app/models/es_model.js:37
↓ 1 callersFunctiongetEventsDeprecated
(query)
apis/app/models/es_model.js:108
↓ 1 callersFunctiongetFlowRate
Queries and provides the result for entry and exit flowrate
apis/app/models/stats_model.js:26
↓ 1 callersFunctiongetFormattedTimestampRange
Returns the formatted timestamp Range
apis/app/models/stats_model.js:152
↓ 1 callersFunctiongetMovingCarDict
Used to get the moving car dictionary
apis/app/ws/websocket.js:206
↓ 1 callersFunctiongetObjectLat
Calculates latitude of object
apis/app/ws/websocket.js:26
↓ 1 callersFunctiongetObjectLon
Calculates longitude of object
apis/app/ws/websocket.js:33
↓ 1 callersFunctiongetParkingResults
Resolves the queries generated for live and playback mode
apis/app/models/stats_model.js:103
↓ 1 callersFunctiongetParkingSpotDeltaQuery
Generates subsequent cassandra parking spot queries for live/playback system
apis/app/ws/websocket.js:112
↓ 1 callersFunctiongetParkingSpotDetails
(configFile)
apis/initializers/server.js:22
↓ 1 callersFunctiongetParkingSpotPlaybackQueries
Generates the first cassandra parking spot query for playback system
apis/app/ws/websocket.js:95
↓ 1 callersFunctiongetParkingSpotPlaybackQuery
Generates cassandra query for playback system
apis/app/models/stats_model.js:83
↓ 1 callersFunctiongetParkingSpotResults
Used to decide which kind of parking spot query needs to be made
apis/app/ws/websocket.js:131
↓ 1 callersFunctiongetParkingSpotStateQuery
Generates cassandra query for live system
apis/app/models/stats_model.js:75
↓ 1 callersFunctiongetParkingStateQuery
Generates the first cassandra parking spot query for live system
apis/app/ws/websocket.js:87
↓ 1 callersFunctiongetParkingStats
Calculates the number of occupied and available spots based on the parked events
apis/app/models/stats_model.js:127
↓ 1 callersFunctiongetResultList
Aggregates the parking spot and aisle related results into a single list after post processing
apis/app/ws/websocket.js:263
↓ 1 callersFunctiongetResults
Used to generate parkingspot and aisle results asynchronously
apis/app/ws/websocket.js:188
↓ 1 callersFunctiongetServedPath
(appPackageJson)
ui/config/paths.js:34
↓ 1 callersFunctiongetTokenAttributes
Used to obtain the start and end index of search tokens in a complex search query string
apis/app/models/es_model.js:142
↓ 1 callersFunctionget_angle
Get the angle between two points defined by (var_x1, var_y1) and (var_x2, var_y2) Arguments: var_x1 {float} -- X-value for the f
tracker/code/euclidean/euchelper.py:30
↓ 1 callersMethodget_cluster
This method clusters all vehicle detections in the json_list. Currently it: 1. computes distance matrix between vehicle detec
tracker/code/mctrack/mctracker.py:584
↓ 1 callersMethodget_direction
Get the direction between detections ele1 and ele2 detections. This is usually used if the same object moves between two locations
tracker/code/mctrack/mctracker.py:1449
↓ 1 callersFunctionget_nearest_point
Get the nearest point to "the_pt" using the the kd=tree index Arguments: kd {[KDTree]} -- The KD-tree of all the points the_
tracker/code/geo/core/spatial.py:41
↓ 1 callersFunctionget_obj_id
Get the object id value of a detected vehicle. The object id returned in this function is a string of the the object id Arguments:
tracker/code/mctrack/trackerutils.py:152
↓ 1 callersMethodget_obj_id_dist_matrix
This method computes the ID distance between the detections at timestep (t-1) (indicated by prev_json_list) and detetions at
tracker/code/mctrack/mctracker.py:832
↓ 1 callersMethodget_shortest_path_bw_id
Get the shortest path between given source and dest Arguments: start_point_id {[list]} -- [x,y] of the source point d
tracker/code/network/networkhelper.py:172
↓ 1 callersMethodget_snap_pt
Given a point (argument "point") and road_network, return the nearest point to given "point" on road-network Arguments:
tracker/code/mctrack/mctracker.py:1303
↓ 1 callersMethodget_vehicles_in_difft_states
This method parses the json_list and categorizes them into four types of records based on the event observed. a. Parked recor
tracker/code/mctrack/mctracker.py:1344
↓ 1 callersMethodinit_transforms
This method is called as an init method before passing the day2 schema. Some of the work done by this method is: 1. Change th
tracker/code/mctrack/mctracker.py:174
↓ 1 callersFunctionis_within_time_range
Checks if the day2 dict is within the given timerange [start_time, end_time) NOTE: start_time is inclusive, and end_time is exclusive If s
tracker/code/mctrack/ioutils.py:35
↓ 1 callersMethodlog_input_points
Method to log all the input points that the tracker is receiving. The points will be appended to the input log file as indicated by t
tracker/code/mctrack/tracklog.py:126
↓ 1 callersFunctionmain
Main function. Starts multicam tracker and runs continiously until killed
tracker/usecasecode/360d/stream_track.py:44
↓ 1 callersMethodmaintain_matched_ids
Maintain the object ids of the clustered trajectories Arguments: clustered_json_list {list} -- list of detections in a single clu
tracker/code/mctrack/mctracker.py:302
↓ 1 callersMethodmatch_point_to_map
This method matches the vehicle detection (argument "json_ele") to the road-network. The (x,y) will be snapped to the road-network ed
tracker/code/mctrack/mctracker.py:215
↓ 1 callersMethodmatch_points
This is the main matching function that matches detections at timestep (t-1) (prev_json_list) with detections at timestep (t)
tracker/code/mctrack/mctracker.py:872
↓ 1 callersMethodmerge_cluster_id_sets
Method to merge all ids for a single cluster given that two or more ids (in merge_obj_id_list) Arguments: merge_
tracker/code/mctrack/mctracker.py:256
↓ 1 callersMethodmerge_costs
This method inputs two distance matrices: a. spatial distance matrix (dist_matrix): This is a matrix with distances betwee
tracker/code/mctrack/mctracker.py:758
↓ 1 callersMethodprune_carry_over_list
Prune the carry over list. The cars that are not matched are carried over to the next timestep. However, if the car that was carried
tracker/code/mctrack/mctracker.py:1553
↓ 1 callersMethodprune_cluster_id_sets
Prune cluster object ids which were updated long back. The time thershold is given by self.config.cluster_obj_id_staytime_in_sec Argu
tracker/code/mctrack/mctracker.py:287
↓ 1 callersMethodprune_nearby_points
This method will cluster all nearby moving points. The following is done: 1. The clustering of moving points is done by calli
tracker/code/mctrack/mctracker.py:461
↓ 1 callersMethodprune_nearby_points_in_list
This method clusters all points in the list (json_list). The method returns a list of points, where nearby points (in one cluster) ha
tracker/code/mctrack/mctracker.py:362
↓ 1 callersMethodrefine_graph
Refine the graph by removing close points Arguments: lines_arr {[list]} -- List of lines max_point_dist {[fl
tracker/code/network/networkhelper.py:65
↓ 1 callersMethodremove_empty_spots
If an empty spot is declared, then the car that was pulled has to be removed from the parking-spot-state-store. Arguments:
tracker/code/mctrack/mctracker.py:1581
↓ 1 callersFunctionremove_inferred
Remove all unnecessary records Unnecessary records = ["reset] Arguments: gt_json_list {[list]} -- List of Day2 detection dictionaries
tracker/code/mctrack/ioutils.py:14
↓ 1 callersMethodrender
()
ui/src/Component/Video/Video.js:36
↓ 1 callersFunctionretireCars
The cars in the aisle which haven't moved for certain amount of time are retired * using this function.
apis/app/ws/websocket.js:250
↓ 1 callersFunctionsendMessage
Used to send the processed message to web socket client at regular intervals of time
apis/app/ws/websocket.js:282
↓ 1 callersFunctionsortByEventTimestamp
Car objects in the list are sorted on the basis of event timestamp
apis/app/ws/websocket.js:274
↓ 1 callersMethodstart_mctracker
This method: 1. Continiously listens to an input kafka (given by in_kafkaservers and in_kafkatopics) 2. Performs mult
tracker/code/mctrack/mctrackstream.py:137
↓ 1 callersFunctionstatsValidator
A sanity checker to validate the total occupied and available spots
apis/app/models/stats_model.js:64
↓ 1 callersMethodstore_parked_cars
Store the state of a parking spot Arguments: json_list {[list]} -- List of detections in day2 schema
tracker/code/mctrack/mctracker.py:1495
↓ 1 callersMethodtrack_list
This method performs the reid for a given set of detection records (all_json_list). It returns re-identified set of json objects.
tracker/code/mctrack/mctrackstream.py:237
↓ 1 callersFunctionunregister
()
ui/src/registerServiceWorker.js:118
↓ 1 callersFunctionupdateMovingCarState
Used to maintain state of moving cars so that it can be retired * after certain amount of time
apis/app/ws/websocket.js:225
next →1–100 of 199, ranked by callers