scannerpy.stdlib package

This section is still being written. Send an email to apoms@cs.cmu.edu if you want this section written sooner.

Submodules

scannerpy.stdlib.bboxes module

scannerpy.stdlib.bboxes.iou(bbox_a, bbox_b)[source]
scannerpy.stdlib.bboxes.nms(orig_boxes, overlapThresh)[source]
scannerpy.stdlib.bboxes.proto_to_np(bboxes)[source]

scannerpy.stdlib.build_flags module

scannerpy.stdlib.build_flags.get_cmake()[source]
scannerpy.stdlib.build_flags.get_compile_flags()[source]
scannerpy.stdlib.build_flags.get_include()[source]
scannerpy.stdlib.build_flags.get_lib()[source]
scannerpy.stdlib.build_flags.print_cmake()[source]
scannerpy.stdlib.build_flags.print_compile_flags()[source]
scannerpy.stdlib.build_flags.print_include()[source]
scannerpy.stdlib.build_flags.print_lib()[source]

scannerpy.stdlib.montage module

scannerpy.stdlib.montage.make_montage(n, frames, frame_width=64, frames_per_row=16)[source]

scannerpy.stdlib.net_descriptor module

class scannerpy.stdlib.net_descriptor.NetDescriptor(db)[source]

Bases: object

as_proto()[source]
classmethod from_file(db, path)[source]
input_height
input_layer_names
input_width
mean_colors
model_path
model_weights_path
normalize
output_layer_names
pad_mod
preserve_aspect_ratio
transpose
uses_python

scannerpy.stdlib.pipelines module

class scannerpy.stdlib.pipelines.BBoxNMS(config)[source]

Bases: scannerpy.kernel.Kernel

close()[source]
execute(*inputs)[source]
Return type:bytes
scannerpy.stdlib.pipelines.detect_faces(db, input_frame_columns, output_sampler, output_sampler_args, output_names, width=960, prototxt_path=None, model_weights_path=None, templates_path=None, return_profiling=False)[source]
scannerpy.stdlib.pipelines.detect_poses(db, input_frame_columns, output_sampler, output_sampler_args, output_name, batch=1, models_path=None, pose_model_weights_path=None, hand_prototxt_path=None, hand_model_weights_path=None, face_prototxt_path=None, face_model_weights_path=None)[source]

scannerpy.stdlib.pose_nms_kernel module

class scannerpy.stdlib.pose_nms_kernel.PoseNMSKernel(config)[source]

Bases: scannerpy.kernel.Kernel

close()[source]
execute(*inputs)[source]
Return type:bytes

scannerpy.stdlib.poses module

class scannerpy.stdlib.poses.Pose[source]

Bases: object

Background = 18
DRAW_COLORS = [[255, 0, 85], [255, 0, 0], [255, 85, 0], [255, 170, 0], [255, 255, 0], [170, 255, 0], [85, 255, 0], [0, 255, 0], [0, 255, 85], [0, 255, 170], [0, 255, 255], [0, 170, 255], [0, 85, 255], [0, 0, 255], [255, 0, 170], [170, 0, 255], [255, 0, 255], [85, 0, 255]]
DRAW_PAIRS = [[1, 2], [1, 5], [2, 3], [3, 4], [5, 6], [6, 7], [1, 8], [8, 9], [9, 10], [1, 11], [11, 12], [12, 13], [1, 0], [0, 14], [14, 16], [0, 15], [15, 17]]
FACE_KEYPOINTS = 70
HAND_KEYPOINTS = 21
LAnkle = 13
LEar = 17
LElbow = 6
LEye = 15
LHip = 11
LKnee = 12
LShoulder = 5
LWrist = 7
Neck = 1
Nose = 0
POSE_KEYPOINTS = 18
POSE_SCORES = 1
RAnkle = 10
REar = 16
RElbow = 3
REye = 14
RHip = 8
RKnee = 9
RShoulder = 2
RWrist = 4
body_bbox()[source]
distance_to(pose, confidence_threshold=0.2)[source]
draw(img, thickness=5, draw_threshold=0.05)[source]
face_bbox()[source]
face_keypoints()[source]
static from_buffer(keypoints_buffer)[source]
hand_keypoints()[source]
pose_keypoints()[source]
scannerpy.stdlib.poses.nms(orig_poses, overlapThresh)[source]

scannerpy.stdlib.readers module

scannerpy.stdlib.readers.array(ty, size=None)[source]
scannerpy.stdlib.readers.bboxes(buf, protobufs)[source]
scannerpy.stdlib.readers.flow(bufs, protobufs)[source]
scannerpy.stdlib.readers.frame_info(buf, protobufs)[source]
scannerpy.stdlib.readers.histograms(buf, protobufs)[source]
scannerpy.stdlib.readers.image(buf, protobufs)[source]
scannerpy.stdlib.readers.poses(buf, protobufs)[source]
scannerpy.stdlib.readers.raw_frame_gen(shape0, shape1, shape2, typ)[source]

scannerpy.stdlib.util module

scannerpy.stdlib.util.default(d, k, v)[source]
scannerpy.stdlib.util.download_temp_file(url, local_path=None, untar=False)[source]
scannerpy.stdlib.util.temp_directory()[source]

scannerpy.stdlib.video module

scannerpy.stdlib.video.write_video(path, frames, fps=24.0)[source]

scannerpy.stdlib.writers module

scannerpy.stdlib.writers.bboxes(buf, protobufs)[source]
scannerpy.stdlib.writers.poses(poses, protobufs)[source]

Module contents