Variables
example2 - person height Namespace Reference

Variables

 aligned_stream = rs.align(rs.stream.color)
 
tuple bbox = (int(left), int(top), int(width), int(height))
 
 bottom = box[2]*H
 
tuple bottomLeftCornerOfText = (p1[0], p1[1] + 20)
 
 box = boxes[idx]
 
 boxes = np.squeeze(boxes)
 
 class_ = classes[idx]
 
 classes = np.squeeze(classes).astype(np.int32)
 
 color_frame = frames.get_color_frame()
 
 color_image = np.asanyarray(color_frame.get_data())
 
 config = rs.config()
 
 depth_frame = frames.get_depth_frame()
 
 detection_boxes = detection_graph.get_tensor_by_name('detection_boxes:0')
 
 detection_classes = detection_graph.get_tensor_by_name('detection_classes:0')
 
 detection_graph = tf.Graph()
 
 detection_scores = detection_graph.get_tensor_by_name('detection_scores:0')
 
 feed_dict
 
 font = cv2.FONT_HERSHEY_SIMPLEX
 
tuple fontColor = (255, 255, 255)
 
int fontScale = 1
 
 frames = pipeline.wait_for_frames()
 
int H = 480
 
 height = bottom-top
 
string height_txt = str(height)+"[m]"
 
 image_expanded = np.expand_dims(color_image, axis=0)
 
 image_tensor = detection_graph.get_tensor_by_name('image_tensor:0')
 
 left = box[1]*W
 
int lineType = 2
 
 my = np.amin(ys, initial=1)
 
 My = np.amax(ys, initial=-1)
 
 name
 
 num
 
 num_detections = detection_graph.get_tensor_by_name('num_detections:0')
 
 obj_points = verts[int(bbox[1]):int(bbox[1] + bbox[3]), int(bbox[0]):int(bbox[0] + bbox[2])].reshape(-1, 3)
 
 od_graph_def = tf.compat.v1.GraphDef()
 
tuple p1 = (int(bbox[0]), int(bbox[1]))
 
tuple p2 = (int(bbox[0] + bbox[2]), int(bbox[1] + bbox[3]))
 
string PATH_TO_CKPT = r"frozen_inference_graph.pb"
 
 pipeline = rs.pipeline()
 
 point_cloud = rs.pointcloud()
 
 points = point_cloud.calculate(depth_frame)
 
 right = box[3]*W
 
tuple scaled_size = (int(W), int(H))
 
 score = scores[idx]
 
 scores = np.squeeze(scores)
 
 serialized_graph = fid.read()
 
 sess = tf.compat.v1.Session(graph=detection_graph)
 
 top = box[0]*H
 
 verts = np.asanyarray(points.get_vertices()).view(np.float32).reshape(-1, W, 3)
 
int W = 848
 
 width = right-left
 
 ys = obj_points[:, 1]
 
 z = np.median(zs)
 
 zs = obj_points[:, 2]
 

Variable Documentation

example2 - person height.aligned_stream = rs.align(rs.stream.color)

Definition at line 19 of file example2 - person height.py.

tuple example2 - person height.bbox = (int(left), int(top), int(width), int(height))

Definition at line 88 of file example2 - person height.py.

example2 - person height.bottom = box[2]*H

Definition at line 84 of file example2 - person height.py.

tuple example2 - person height.bottomLeftCornerOfText = (p1[0], p1[1] + 20)

Definition at line 114 of file example2 - person height.py.

example2 - person height.box = boxes[idx]

Definition at line 77 of file example2 - person height.py.

example2 - person height.boxes = np.squeeze(boxes)

Definition at line 64 of file example2 - person height.py.

example2 - person height.class_ = classes[idx]

Definition at line 75 of file example2 - person height.py.

example2 - person height.classes = np.squeeze(classes).astype(np.int32)

Definition at line 64 of file example2 - person height.py.

example2 - person height.color_frame = frames.get_color_frame()

Definition at line 53 of file example2 - person height.py.

example2 - person height.color_image = np.asanyarray(color_frame.get_data())

Definition at line 58 of file example2 - person height.py.

example2 - person height.config = rs.config()

Definition at line 11 of file example2 - person height.py.

example2 - person height.depth_frame = frames.get_depth_frame()

Definition at line 52 of file example2 - person height.py.

example2 - person height.detection_boxes = detection_graph.get_tensor_by_name('detection_boxes:0')

Definition at line 40 of file example2 - person height.py.

example2 - person height.detection_classes = detection_graph.get_tensor_by_name('detection_classes:0')

Definition at line 44 of file example2 - person height.py.

example2 - person height.detection_graph = tf.Graph()

Definition at line 27 of file example2 - person height.py.

example2 - person height.detection_scores = detection_graph.get_tensor_by_name('detection_scores:0')

Definition at line 43 of file example2 - person height.py.

example2 - person height.feed_dict

Definition at line 65 of file example2 - person height.py.

example2 - person height.font = cv2.FONT_HERSHEY_SIMPLEX

Definition at line 113 of file example2 - person height.py.

tuple example2 - person height.fontColor = (255, 255, 255)

Definition at line 116 of file example2 - person height.py.

int example2 - person height.fontScale = 1

Definition at line 115 of file example2 - person height.py.

example2 - person height.frames = pipeline.wait_for_frames()

Definition at line 50 of file example2 - person height.py.

int example2 - person height.H = 480

Definition at line 7 of file example2 - person height.py.

example2 - person height.height = bottom-top

Definition at line 87 of file example2 - person height.py.

string example2 - person height.height_txt = str(height)+"[m]"

Definition at line 110 of file example2 - person height.py.

example2 - person height.image_expanded = np.expand_dims(color_image, axis=0)

Definition at line 62 of file example2 - person height.py.

example2 - person height.image_tensor = detection_graph.get_tensor_by_name('image_tensor:0')

Definition at line 37 of file example2 - person height.py.

example2 - person height.left = box[1]*W

Definition at line 81 of file example2 - person height.py.

int example2 - person height.lineType = 2

Definition at line 117 of file example2 - person height.py.

example2 - person height.my = np.amin(ys, initial=1)

Definition at line 104 of file example2 - person height.py.

example2 - person height.My = np.amax(ys, initial=-1)

Definition at line 105 of file example2 - person height.py.

example2 - person height.name

Definition at line 33 of file example2 - person height.py.

example2 - person height.num

Definition at line 64 of file example2 - person height.py.

example2 - person height.num_detections = detection_graph.get_tensor_by_name('num_detections:0')

Definition at line 46 of file example2 - person height.py.

example2 - person height.obj_points = verts[int(bbox[1]):int(bbox[1] + bbox[3]), int(bbox[0]):int(bbox[0] + bbox[2])].reshape(-1, 3)

Definition at line 95 of file example2 - person height.py.

example2 - person height.od_graph_def = tf.compat.v1.GraphDef()

Definition at line 29 of file example2 - person height.py.

tuple example2 - person height.p1 = (int(bbox[0]), int(bbox[1]))

Definition at line 89 of file example2 - person height.py.

tuple example2 - person height.p2 = (int(bbox[0] + bbox[2]), int(bbox[1] + bbox[3]))

Definition at line 90 of file example2 - person height.py.

string example2 - person height.PATH_TO_CKPT = r"frozen_inference_graph.pb"

Definition at line 23 of file example2 - person height.py.

example2 - person height.pipeline = rs.pipeline()

Definition at line 10 of file example2 - person height.py.

example2 - person height.point_cloud = rs.pointcloud()

Definition at line 20 of file example2 - person height.py.

example2 - person height.points = point_cloud.calculate(depth_frame)

Definition at line 54 of file example2 - person height.py.

example2 - person height.right = box[3]*W

Definition at line 83 of file example2 - person height.py.

tuple example2 - person height.scaled_size = (int(W), int(H))

Definition at line 59 of file example2 - person height.py.

example2 - person height.score = scores[idx]

Definition at line 76 of file example2 - person height.py.

example2 - person height.scores = np.squeeze(scores)

Definition at line 64 of file example2 - person height.py.

example2 - person height.serialized_graph = fid.read()

Definition at line 31 of file example2 - person height.py.

example2 - person height.sess = tf.compat.v1.Session(graph=detection_graph)

Definition at line 34 of file example2 - person height.py.

example2 - person height.top = box[0]*H

Definition at line 82 of file example2 - person height.py.

example2 - person height.verts = np.asanyarray(points.get_vertices()).view(np.float32).reshape(-1, W, 3)

Definition at line 55 of file example2 - person height.py.

int example2 - person height.W = 848

Definition at line 6 of file example2 - person height.py.

example2 - person height.width = right-left

Definition at line 86 of file example2 - person height.py.

example2 - person height.ys = obj_points[:, 1]

Definition at line 100 of file example2 - person height.py.

example2 - person height.z = np.median(zs)

Definition at line 98 of file example2 - person height.py.

example2 - person height.zs = obj_points[:, 2]

Definition at line 96 of file example2 - person height.py.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36