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

↓ 1 callersMethodupdate_direction
[summary] Update the direction of the detection in ele by the given direction Arguments: ele {[dict]} -- detection in day2
tracker/code/mctrack/mctracker.py:1484
↓ 1 callersMethodwrite_to_kafka
Write the tracked detections to kafka topic Arguments: json_list {list} -- the list of detections in day2 schema
tracker/code/mctrack/mctrackstream.py:280
↓ 1 callersMethodxfer_attr_from_1vehicle
Transfer vehicle attributes such as license plate, make, color from one record (act_record) to all the records in the list (j
tracker/code/mctrack/mctracker.py:1102
FunctionAux
(props)
ui/src/Hoc/Auxiliary/Auxiliary.js:1
Method__init__
Initialize Streaming MC tracker Arguments: in_kafkaservers {string} -- Input kafka bootstrap servers in_kafka
tracker/code/mctrack/mctrackstream.py:39
Method__init__
Initialization Returns: None
tracker/code/mctrack/tracklog.py:29
Method__init__
(self, config)
tracker/code/mctrack/mctracker.py:30
Method__init__
Init method Arguments: config [dict] -- A dictionary that has the following keys a. "overlappig_camera_ids": This
tracker/code/mctrack/mctracker.py:53
Method__init__
Init method Arguments: config [dict] -- A dictionary that has the following keys a. "overlappig_camera_i
tracker/code/mctrack/mctracker.py:134
Method__init__
(self, lines_arr, max_point_dist=0.1)
tracker/code/network/networkhelper.py:20
Functionadd_camera_attr_with_entry_exit
Based on entry and exit points, we assign entry and exit camearas Arguments: cameras_dict {dict} -- Dict of cameras cam_rtree {RT
tracker/code/geo/core/spatial.py:238
Functionadd_graph_attr_to_entry_exit
Enhance the graph attributes for entry and exit points Arguments: entry_points {list} -- List of entry points kd_points {KDT
tracker/code/geo/core/spatial.py:63
Functionbefore
(app)
ui/config/webpackDevServer.config.js:84
Functionbutton
({bsStyle, bsSize, ...props})
ui/src/Component/UI/Button/Button.js:7
Functioncheck_timestamp
Function to check timestamp is valid Arguments: json_ele {dict} -- The detection dictionary as a day2 schema Returns: b
tracker/code/mctrack/validation.py:37
FunctioncomponentDidMount
()
ui/src/App.js:24
FunctioncomponentDidMount
()
ui/src/PageBuilder/HomeMap.js:103
FunctioncomponentDidMount
()
ui/src/PageBuilder/SmartGaragePage/SmartGaragePage.js:52
MethodcomponentDidMount
()
ui/src/Component/Map/CarMarkers/CarMarkers.js:20
MethodcomponentDidMount
()
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:50
MethodcomponentDidMount
()
ui/src/Component/ListPanel/ListPanel.js:231
MethodcomponentDidMount
()
ui/src/Component/Video/StreamVideo/HLS.js:11
MethodcomponentDidMount
()
ui/src/Component/Capacity/Capacity.js:27
FunctioncomponentDidUpdate
(prevState)
ui/src/PageBuilder/SmartGaragePage/SmartGaragePage.js:87
MethodcomponentDidUpdate
(prevProps, prevState)
ui/src/Component/Map/CarMarkers/CarMarkers.js:48
MethodcomponentDidUpdate
()
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:80
MethodcomponentDidUpdate
(prevProps, prevState)
ui/src/Component/ListPanel/ListPanel.js:280
MethodcomponentDidUpdate
()
ui/src/Component/Video/Video.js:30
MethodcomponentDidUpdate
(prevProps)
ui/src/Component/Video/StreamVideo/HLS.js:28
FunctioncomponentWillReceiveProps
(nextProps)
ui/src/Component/Map/Map.js:62
FunctioncomponentWillReceiveProps
(nextProps)
ui/src/PageBuilder/HomeMap.js:89
MethodcomponentWillReceiveProps
(newProps)
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:56
FunctioncomponentWillUnmount
()
ui/src/App.js:40
FunctioncomponentWillUnmount
()
ui/src/Component/Map/Map.js:76
FunctioncomponentWillUnmount
()
ui/src/PageBuilder/SmartGaragePage/SmartGaragePage.js:97
MethodcomponentWillUnmount
()
ui/src/Component/Map/CarMarkers/CarMarkers.js:69
MethodcomponentWillUnmount
()
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:86
MethodcomponentWillUnmount
()
ui/src/Component/ListPanel/ListPanel.js:297
MethodcomponentWillUnmount
()
ui/src/Component/Capacity/Capacity.js:94
Methodconstructor
(props, context)
ui/src/Component/Video/StreamVideo/HLS.js:6
Functioncreate_poly_dict
Create a polygon dictionary from a list of polygon points This can be used for one time creation of polygons so that we dont have to repe
tracker/code/mctrack/ioutils.py:86
Functioncreate_time_windows
This method will input a json list and resample the json list by timestamp It will return a ordered-dictionary where key is a timestamp resam
tracker/code/mctrack/trackerutils.py:35
Functiondensify_graph
Densify the entire graph given by lines "currentgraph" Arguments: currentgraph {list} -- list of lines that make the current graph
tracker/code/euclidean/euchelper.py:116
Methoddraw_network
Draw the network using matplotlib
tracker/code/network/networkhelper.py:402
Functionflip
(props)
ui/src/Component/Flip/Flip.js:11
Functionfooter
(props)
ui/src/Component/Footer/Footer.js:13
Functiongeo_distance_in_km
Get the distance in km between two (lng,lat) poinmts Arguments: pt1 {list} -- (lng,lat) of first point pt2 {list} -- (lng,la
tracker/code/geo/core/spatial.py:27
Functiongeointerpolate
Interpolate on great sphere (world coords) Arguments: point0 {list} -- (lng,lat) of first point point1 {list} -- (lng,lat) of fir
tracker/code/geo/core/spatial.py:13
Functionget_angle_between_pts_on_sphere
Get the angle between two points on a sphere Arguments: the_pt1 {list} -- (lng,lat) of first point the_pt2 {list} -- (lng,la
tracker/code/geo/core/spatial.py:206
Functionget_camera
Get the sensor/camera id of the detection Arguments: json_ele {[dict]} -- Detection record in day2 schema Returns: [str
tracker/code/mctrack/trackerutils.py:181
Functionget_euc_dist
Get eucledian distance between two points pt1 and pt2 Note that we assume we pass flat earth coords (x,y) and (lng,lat), since eucledian
tracker/code/geo/core/spatial.py:126
Functionget_flat_earth_coord
Get the flat earth coordinates (x,y) from a given (lng,lat) point "pt". The (x,y) is the offset in lng and lat dimensions (in meters or km)
tracker/code/geo/core/spatial.py:107
Methodget_interpolated_path
Interpolate a path between st_pt and end_pt on the graph Arguments: st_pt {int} -- The id of the starting point
tracker/code/network/networkhelper.py:208
Functionget_lng_lat_coord
Get the (lng, lat) from a given eucledian point (x,y). The origin point is given by origin_lnglat in (longitude, latitude) format. We assume
tracker/code/geo/core/spatial.py:81
Functionget_max_camy_xy
Return the xy point with maximum y from the set of points Arguments: pts {list} -- List of (global_x,global_y, cam_x, cam_y) points
tracker/code/mctrack/trackerutils.py:131
Functionget_mean_xy
Return the mean xy point (x_mean, y_mean) from the set of points Arguments: pts {list} -- List of (x,y) points Returns:
tracker/code/mctrack/trackerutils.py:94
Functionget_median_xy
Return the median xy point (x_median, y_median) from the set of points Arguments: pts {list} -- List of (x,y) points Returns:
tracker/code/mctrack/trackerutils.py:112
Methodget_nearest_point_id
Get the first nearest point on the graph for a given "pt" Arguments: thept {[list]} -- [x,y] point Returns:
tracker/code/network/networkhelper.py:132
Functionget_obj_id_in_sensor
Get the object id value of a detected vehicle. The object id is a combination of the sensor id and the object id Arguments: json
tracker/code/mctrack/trackerutils.py:79
Functionget_obj_id_str
Get the object id value of a detected vehicle. The object id returned in this function is a string of the the object id (prefixed by some
tracker/code/mctrack/trackerutils.py:166
Functionget_origin
Get the origin point of all points (mean lng and lat) Arguments: pt_dict {[list]} -- list of all points Returns: list -
tracker/code/geo/core/spatial.py:220
Functionget_polygons_from_shape_file
Get all polygons from a given shape file Arguments: sh_file {[string]} -- The shapefile Returns: [list] -- list of polygons
tracker/code/geo/inout/shapefile.py:12
Functionget_polylines_from_shape_file
Get a list of polygon lines (polylines) from shapefile Arguments: sh_file {[string]} -- the shapefile name Returns:
tracker/code/geo/inout/shapefile.py:65
Functionget_radangle_flat_earth
Get the angle for two given points (in flat earth coords) Arguments: pt1 {list} -- (x,y) for the first point pt2 {list} -- (x,y)
tracker/code/geo/core/spatial.py:176
Functionget_radangle_flat_earth_old
Get the angle for two given points (in flat earth coords) Arguments: pt1 {list} -- (x,y) for the first point pt2 {list} -- (x,y)
tracker/code/geo/core/spatial.py:143
Functionget_random_lp
Generate a random license plate string (in standard California state style) Returns: [string] -- Random license plate string
tracker/code/mctrack/trackerutils.py:290
Functionget_timestamp_str
Return the string formatted timestamp for a given datetime object. We assume that the datetime object is in the UTC timezone Return format = '
tracker/code/mctrack/trackerutils.py:16
Functionget_vehicle_string
Get a string that describes a vehicle (in terms of its attributes). Currently it just returns the license plate. It can be extended to re
tracker/code/mctrack/trackerutils.py:304
Functionget_xy
Get the x and y values of a detected vehicle Arguments: json_ele {[dict]} -- Detection record in day2 schema Returns: [
tracker/code/mctrack/trackerutils.py:61
FunctiongroundOverlay
(props)
ui/src/Component/Map/GroundOverlay/GroundOverlay.js:5
Functionheader
(props)
ui/src/Component/Header/Header.js:19
Functionignore_bad_records
Function that ignores badly formatted json_list. This function should be called before other processing functions so that we do not crash on
tracker/code/mctrack/validation.py:57
Functionignore_false_detections
There might be some areas where vehicle detections are to be ignored (e.g., because of a lot of FPs in those areas). This function remove
tracker/code/mctrack/ioutils.py:110
Functioninterpolate_line
Interplolate a line between two points the_pt1 and the_pt2 with the given proportion Arguments: the_pt1 {list} -- the first point (x,
tracker/code/euclidean/euchelper.py:11
Functionis_aisle_rec
Returns if the given detection is of a vehicle is for a vehicle on aisle. The record is a aisle record if the "place" has a "aisle", "entrace
tracker/code/mctrack/trackerutils.py:268
Functionis_empty_spot_rec
Returns if the given detection is of a parking spot that is empty. The record is a parking spot record if the "place" has a "parkingSpot"
tracker/code/mctrack/trackerutils.py:231
Functionis_parked_rec
Returns if the given detection is of a vehicle parked record. The record is a parking spot record if the "place" has a "parkingSpot" element,
tracker/code/mctrack/trackerutils.py:213
Functionis_pulled_rec
Returns if the given detection is of a vehicle that has pulled from a parking spot. The record is a parking spot record if the "place" ha
tracker/code/mctrack/trackerutils.py:249
Functionis_spot_rec
Is the given detection a parking spot record? The record is a parking spot record if the "place" has a "parkingSpot" element, and if the even
tracker/code/mctrack/trackerutils.py:194
Functionitem
(props)
ui/src/Component/ListPanel/Item/Item.js:10
Functionloader
(props)
ui/src/Component/UI/Loader/Loader.js:8
Functionlogger
(message)
ui/config/webpack.config.prod.js:308
Functionpoly_lines_to_lines
Convert a set of polylines to a simple lines (start and end points) Arguments: polyline_list {list} -- Set of polylines Returns:
tracker/code/geo/core/conversions.py:7
Functionread_json_list
Read jsons from a file. The file is assumed to contain jsons in day2 schema. Each line will have one record, and no empty or invalid line
tracker/code/mctrack/ioutils.py:57
Functionread_schema_and_infer
Function to read an entire json schema file and mctrack from it Returns: [list] -- List of Day2 schema dictionaries with tracked obj
tracker/code/mctrack/mctrackbatch.py:15
Functionregister
()
ui/src/registerServiceWorker.js:22
Methodrender
()
ui/src/Component/Map/CarMarkers/CarMarkers.js:73
Methodrender
()
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:90
Methodrender
()
ui/src/Component/Map/CameraMarker/CameraMarker.js:11
Methodrender
()
ui/src/Component/ListPanel/ListPanel.js:305
Methodrender
()
ui/src/Component/Video/StreamVideo/HLS.js:41
Methodrender
()
ui/src/Component/Capacity/Capacity.js:102
Functionschema_validate
(record_str, day2_schema)
tracker/code/mctrack/validation.py:9
FunctionshouldComponentUpdate
(nextState, nextProps)
ui/src/PageBuilder/HomeMap.js:114
MethodshouldComponentUpdate
(nextProps, nextState)
ui/src/Component/Map/CarMarkers/CarMarkers.js:43
MethodshouldComponentUpdate
(nextProps, nextState)
ui/src/Component/Map/CarMarkers/CarMarker/CarMarker.js:75
Functionsignal_handler
Signal handler. This function will dump all tracker stats and exit Arguments: signum {int} -- The signal number frame {list} -- S
tracker/usecasecode/360d/stream_track.py:27
Functionstart
(cb)
apis/initializers/server.js:42
Functionwidget
(props)
ui/src/Component/Widget/Widget.js:9
← previous101–199 of 199, ranked by callers