MCPcopy Create free account

hub / github.com/ahmetozlu/vehicle_counting_tensorflow / functions

Functions35 in github.com/ahmetozlu/vehicle_counting_tensorflow

↓ 7 callersFunctioncolor_histogram_of_training_image
(img_name)
utils/color_recognition_module/color_histogram_feature_extraction.py:50
↓ 2 callersFunctiondraw_bounding_box_on_image
Adds a bounding box to an image. Each string in display_str_list is displayed on a separate line above the bounding box in black text on a rectan
utils/visualization_utils.py:132
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
utils/label_map_util.py:108
↓ 1 callersFunction_validate_label_map
Checks if a label map is valid. Args: label_map: StringIntLabelMap to validate. Raises: ValueError: if label map is invalid.
utils/label_map_util.py:25
↓ 1 callersFunctioncalculateEuclideanDistance
(variable1, variable2, length)
utils/color_recognition_module/knn_classifier.py:18
↓ 1 callersFunctionconvert_label_map_to_categories
Loads label map proto and returns categories list compatible with eval. This function loads a label map and returns a list of dicts, each of which
utils/label_map_util.py:58
↓ 1 callersFunctioncreate_category_index
Creates dictionary of COCO compatible categories keyed by category id. Args: categories: a list of dicts, each of which has the following keys:
utils/label_map_util.py:39
↓ 1 callersFunctiondraw_bounding_box_on_image_array
Adds a bounding box to an image (numpy array). Args: image: a numpy array with shape [height, width, 3]. ymin: ymin of bounding box in norm
utils/visualization_utils.py:100
↓ 1 callersFunctiondraw_bounding_boxes_on_image
Draws bounding boxes on image. Args: image: a PIL.Image object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin, ymax, xmax).
utils/visualization_utils.py:250
↓ 1 callersFunctiondraw_keypoints_on_image
Draws keypoints on an image. Args: image: a PIL.Image object. keypoints: a numpy array with shape [num_keypoints, 2]. color: color to d
utils/visualization_utils.py:353
↓ 1 callersFunctiondraw_keypoints_on_image_array
Draws keypoints on an image (numpy array). Args: image: a numpy array with shape [height, width, 3]. keypoints: a numpy array with shape [n
utils/visualization_utils.py:332
↓ 1 callersFunctiondraw_mask_on_image_array
Draws mask on an image. Args: image: uint8 numpy array with shape (img_height, img_height, 3) mask: a uint8 numpy array of shape (img_heigh
utils/visualization_utils.py:380
↓ 1 callersFunctionkNearestNeighbors
(training_feature_vector, testInstance, k)
utils/color_recognition_module/knn_classifier.py:26
↓ 1 callersFunctionloadDataset
( filename, filename2, training_feature_vector=[], test_feature_vector=[], )
utils/color_recognition_module/knn_classifier.py:53
↓ 1 callersFunctionobject_detection_function
(command)
vehicle_detection_main.py:99
↓ 1 callersFunctionresponseOfNeighbors
(neighbors)
utils/color_recognition_module/knn_classifier.py:40
Functionadd_cdf_image_summary
Adds a tf.summary.image for a CDF plot of the values. Normalizes `values` such that they sum to 1, plots the cumulative distribution function and
utils/visualization_utils.py:536
Functioncdf_plot
Numpy function to plot CDF.
utils/visualization_utils.py:546
Functioncolor_histogram_of_test_image
(test_src_image)
utils/color_recognition_module/color_histogram_feature_extraction.py:19
Functioncolor_recognition
(crop_img)
utils/color_recognition_module/color_recognition_api.py:17
Functioncreate_category_index_from_labelmap
Reads a label map and returns a category index. Args: label_map_path: Path to `StringIntLabelMap` proto text file. Returns: A category i
utils/label_map_util.py:148
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
utils/label_map_util.py:165
Functioncrop_center
(img,cropx,cropy)
utils/image_utils/crop_image.py:9
Functiondraw_bounding_boxes_on_image_array
Draws bounding boxes on image (numpy array). Args: image: a numpy array object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin,
utils/visualization_utils.py:223
Functiondraw_bounding_boxes_on_image_tensors
Draws bounding boxes on batch of image tensors. Args: images: A 4D uint8 image tensor of shape [N, H, W, C]. boxes: [N, max_detections, 4]
utils/visualization_utils.py:284
Functiondraw_boxes
Draws boxes on image.
utils/visualization_utils.py:318
Functionencode_image_array_as_png_str
Encodes a numpy array into a PNG string. Args: image: a numpy array with shape [height, width, 3]. Returns: PNG encoded image string.
utils/visualization_utils.py:84
Functionget_label_map_dict
Reads a label map and returns a dictionary of label names to id. Args: label_map_path: path to label_map. use_display_name: whether to use
utils/label_map_util.py:128
Functionload_image_into_numpy_array
(image)
vehicle_detection_main.py:92
Functionmain
(training_data, test_data)
utils/color_recognition_module/knn_classifier.py:76
Functionpredict_speed
( top, bottom, right, left, current_frame_number, crop_img, roi_position, )
utils/speed_and_direction_prediction_module/speed_prediction.py:16
Functionsave_image
(source_image)
utils/image_utils/image_saver.py:16
Functionsave_image_array_as_png
Saves an image (represented as a numpy array) to PNG. Args: image: a numpy array with shape [height, width, 3]. output_path: path to which
utils/visualization_utils.py:73
Functiontraining
()
utils/color_recognition_module/color_histogram_feature_extraction.py:99
Functionvisualize_boxes_and_labels_on_image_array
Overlay labeled boxes on an image with formatted scores and label names. This function groups boxes that correspond to the same location and crea
utils/visualization_utils.py:410