MCPcopy Create free account

hub / github.com/PacktPublishing/OpenCV-4-with-Python-Blueprints-Second-Edition / functions

Functions167 in github.com/PacktPublishing/OpenCV-4-with-Python-Blueprints-Second-Edition

↓ 5 callersMethodpredict
Advances the state vector and returns the predicted bounding box estimate.
chapter10/sort.py:97
↓ 4 callersFunctionload_training_data
(labels=[0, 10])
chapter7/data/gtsrb.py:86
↓ 3 callersMethod_extract_keypoints
Extracts keypoints This method extracts keypoints for feature matching based on a specified mode: - "sift": use r
chapter4/scene3D.py:211
↓ 3 callersMethod_find_fundamental_matrix
Estimates fundamental matrix
chapter4/scene3D.py:272
↓ 3 callersFunction_pca_featurize
(data, center, top_vecs)
chapter8/data/process.py:52
↓ 3 callersMethod_reset_recording
Disable recording mode and reset data structures
chapter4/calibrate.py:126
↓ 3 callersFunctionload_collected_data
(path)
chapter8/data/store.py:9
↓ 3 callersFunctionload_image
(path, bps=16)
chapter5/common.py:6
↓ 3 callersFunctionpca_featurize
(training_data, *, num_components=20)
chapter8/data/process.py:57
↓ 3 callersFunctionsave_8bit
(img, name)
chapter5/hdr.py:50
↓ 3 callersMethodupdate
Params: dets - a numpy array of detections in the format [[x1,y1,x2,y2,score],[x1,y1,x2,y2,score],...] Requires: this metho
chapter10/sort.py:170
↓ 2 callersMethod_acquire_frame
Capture a new frame from the input device :return: (success, frame) Whether acquiring was successful and current frame.
wx_gui.py:107
↓ 2 callersMethod_acquire_frame
Capture a new frame from the input device :return: (success, frame) Whether acquiring was successful and current frame.
chapter8/wx_gui.py:107
↓ 2 callersMethod_acquire_frame
Capture a new frame from the input device :return: (success, frame) Whether acquiring was successful and current frame.
chapter1/wx_gui.py:107
↓ 2 callersMethod_acquire_frame
Capture a new frame from the input device :return: (success, frame) Whether acquiring was successful and current frame.
chapter4/wx_gui.py:107
↓ 2 callersMethod_acquire_frame
Capture a new frame from the input device :return: (success, frame) Whether acquiring was successful and current frame.
chapter3/wx_gui.py:107
↓ 2 callersFunction_calc_channel_sal_magn
Calculate the log-magnitude of the Fourier spectrum of a single-channel image. This image could be a regular grayscale image, or a single
chapter6/saliency.py:19
↓ 2 callersFunction_download
GTSRB_Final_Training_Images.zip
chapter7/data/gtsrb.py:28
↓ 2 callersMethod_draw_epipolar_lines_helper
Helper method to draw epipolar lines and features
chapter4/scene3D.py:320
↓ 2 callersMethod_extract_keypoints_flow
Extracts keypoints via optic flow
chapter4/scene3D.py:250
↓ 2 callersMethod_find_camera_matrices_rt
Finds the [R|t] camera matrix
chapter4/scene3D.py:282
↓ 2 callersMethod_find_essential_matrix
Estimates essential matrix based on fundamental matrix
chapter4/scene3D.py:278
↓ 2 callersFunction_load_data
(filepath, labels)
chapter7/data/gtsrb.py:53
↓ 2 callersMethodalign_head
Aligns a head region using affine transformations This method preprocesses an extracted head region by rotating and scaling i
chapter8/detectors.py:83
↓ 2 callersFunctionapply_hue_filter
(rgb_image, hue_filter)
chapter1/tools.py:25
↓ 2 callersFunctionapply_rgb_filters
(rgb_image, *, red_filter=None, green_filter=None, blue_filter=None)
chapter1/tools.py:13
↓ 2 callersFunctionconfusion_matrix
(y_predicted, y_true)
chapter7/chapter7.py:58
↓ 2 callersFunctionconvert_bbox_to_z
Takes a bounding box in the form [x1,y1,x2,y2] and returns z in the form [x,y,s,r] where x,y is the centre of the box and s is the scale/ar
chapter10/sort.py:25
↓ 2 callersFunctionconvert_x_to_bbox
Takes a bounding box in the centre form [x,y,s,r] and returns it in the form [x1,y1,x2,y2] where x1,y1 is the top left and x2,y2 is the botto
chapter10/sort.py:38
↓ 2 callersMethoddetect_face
Performs face detection This method detects faces in an RGB input image. The method returns True upon success (else False), d
chapter8/detectors.py:33
↓ 2 callersFunctionfeaturize
(datum)
chapter8/data/process.py:7
↓ 2 callersFunctionillustrate_box
(image: np.ndarray, box: np.ndarray, caption: str)
chapter10/main.py:35
↓ 2 callersFunctionload_test_data
(labels=[0, 10])
chapter7/data/gtsrb.py:80
↓ 2 callersMethodmatch
Detects and tracks an object of interest in a video frame This method detects and tracks an object of interest (of which a SU
chapter3/feature_matching.py:70
↓ 2 callersFunctionnormalize
Do minimum pre-processing 1. resize to UNIFORM_SIZE 2. scale to (0, 1) range 3. subtract the mean of all pixel values
chapter7/train_tf2.py:16
↓ 2 callersFunctionpickle_dump
(f, path)
chapter8/data/store.py:25
↓ 2 callersFunctionpickle_load
(path)
chapter8/data/store.py:30
↓ 2 callersFunctionrun_layout
(layout_cls, **kwargs)
chapter8/chapter8.py:164
↓ 2 callersFunctionspline_to_lookup_table
(spline_breaks: list, break_values: list)
chapter1/tools.py:8
↓ 2 callersFunctiontrain_test_split
(n, train_portion=0.8, seed=None)
chapter8/data/process.py:43
↓ 1 callersMethod__init__
(self, *args, training_data='data/cropped_faces.csv', **kwargs)
chapter8/chapter8.py:80
↓ 1 callersMethod_extract_keypoints_sift
Extracts keypoints via sift descriptors
chapter4/scene3D.py:231
↓ 1 callersMethod_in_front_of_both_cameras
Determines whether point correspondences are in front of both images
chapter4/scene3D.py:337
↓ 1 callersFunction_md5sum_matches
(file_path, checksum)
chapter7/data/gtsrb.py:43
↓ 1 callersMethod_render_cool
(rgb_image: np.ndarray)
chapter1/chapter1.py:85
↓ 1 callersMethod_render_warm
(rgb_image: np.ndarray)
chapter1/chapter1.py:78
↓ 1 callersFunctionaccuracy
(y_predicted, y_true)
chapter7/chapter7.py:40
↓ 1 callersMethodadvance_frame
Advance the algorithm by a single frame certain targets are discarded: - targets that are too small - targets that
chapter6/tracking.py:41
↓ 1 callersFunctionangle_rad
Angle in radians between two vectors This method returns the angle (in radians) between two array-like vectors using the cross-produc
chapter2/gestures.py:162
↓ 1 callersFunctionapply_gamma
(img, gamma, bps=14)
chapter5/gamma_correct.py:15
↓ 1 callersFunctionassociate_detections_to_trackers
Assigns detections to tracked object (both represented as bounding boxes) Returns 3 lists of matches, unmatched_detections and unmatched_tra
chapter10/sort.py:130
↓ 1 callersMethodaugment_layout
Augment custom layout elements to the GUI. This method is called in the class constructor, after initializing common parameters. Eve
wx_gui.py:78
↓ 1 callersMethodaugment_layout
Augment custom layout elements to the GUI. This method is called in the class constructor, after initializing common parameters. Eve
chapter8/wx_gui.py:78
↓ 1 callersMethodaugment_layout
Augment custom layout elements to the GUI. This method is called in the class constructor, after initializing common parameters. Eve
chapter1/wx_gui.py:78
↓ 1 callersMethodaugment_layout
Augment custom layout elements to the GUI. This method is called in the class constructor, after initializing common parameters. Eve
chapter4/wx_gui.py:78
↓ 1 callersMethodaugment_layout
Augment custom layout elements to the GUI. This method is called in the class constructor, after initializing common parameters. Eve
chapter3/wx_gui.py:78
↓ 1 callersFunctioncalc_magnitude_spectrum
Plot the magnitude spectrum This method calculates the magnitude spectrum of the image passed to the class constructor. :retur
chapter6/saliency.py:163
↓ 1 callersFunctioncartoonize
(rgb_image, *, num_pyr_downs=2, num_bilaterals=7)
chapter1/tools.py:39
↓ 1 callersFunctiondeg2rad
Convert degrees to radians This method converts an angle in radians e[0,2*np.pi) into degrees e[0,360)
chapter2/gestures.py:174
↓ 1 callersFunctiondetect_corner_points
Detects corner points in an input (query) image This method finds the homography matrix to go from the template (train) image to the
chapter3/feature_matching.py:215
↓ 1 callersFunctiondetect_num_fingers
Detects the number of extended fingers This method determines the number of extended fingers based on a contour and convexity defects
chapter2/gestures.py:106
↓ 1 callersFunctiondraw_box
(frame: np.ndarray, box: np.ndarray)
chapter9/inference.py:5
↓ 1 callersMethoddraw_good_boxes
(self, frame: np.ndarray)
chapter6/tracking.py:85
↓ 1 callersFunctiondraw_good_matches
Visualizes a list of good matches This function visualizes a list of good matches. It is only required in OpenCV releases that do not
chapter3/feature_matching.py:243
↓ 1 callersFunctiondraw_helpers
(img_draw: np.ndarray)
chapter2/chapter2.py:20
↓ 1 callersFunctionexposure_strength
(path, iso_ref=100, f_stop_ref=6.375)
chapter5/hdr.py:23
↓ 1 callersMethodeye_centers
(self, head, *, outline=False)
chapter8/detectors.py:65
↓ 1 callersMethodfeaturize_head
(self, head)
chapter8/chapter8.py:51
↓ 1 callersFunctionfind_camera_parameters
(features, pair_matches)
chapter5/panorama.py:45
↓ 1 callersFunctionfind_hull_defects
Find hull defects This method finds all defects in the hull of a segmented arm region. :param segment: a binary image (mask)
chapter2/gestures.py:80
↓ 1 callersFunctiongamma_transform
(x, gamma, bps=14)
chapter5/gamma_correct.py:11
↓ 1 callersFunctionget_proto_objects_map
Generate the proto-objects map of an RGB image Proto-objects are saliency hot spots, generated by thresholding the saliency map. :p
chapter6/saliency.py:99
↓ 1 callersFunctionget_saliency_map
Returns a saliency map This function generates a saliency map for the image that was passed to the class constructor. :returns: gra
chapter6/saliency.py:65
↓ 1 callersFunctionhog_featurize
Featurize using histogram of gradients. For each image: 1. resize all images to have the same (usually smaller size) 2. Calc
chapter7/data/process.py:6
↓ 1 callersFunctionillustrate
(sample)
chapter9/data.py:82
↓ 1 callersFunctionillustrate_detections
(dets: np.ndarray, frame: np.ndarray)
chapter10/main.py:50
↓ 1 callersFunctionillustrate_tracking_info
(frame: np.ndarray)
chapter10/main.py:57
↓ 1 callersFunctioniou
Computes IUO between two bboxes in the form [x1,y1,x2,y2]
chapter10/sort.py:116
↓ 1 callersFunctionlargest_connected_subset
(images)
chapter5/panorama.py:21
↓ 1 callersFunctionload_14bit_gray
(path)
chapter5/common.py:17
↓ 1 callersMethodload_image
Loads pair of images This method loads the two images for which the 3D scene should be reconstructed. The two images should s
chapter4/scene3D.py:55
↓ 1 callersMethodload_image_pair
( self, img_path1: str, img_path2: str, use_pyr_down: bool = T
chapter4/scene3D.py:42
↓ 1 callersFunctionload_img_resized
(path: str, dimensions: Tuple[int])
chapter1/tools.py:32
↓ 1 callersFunctionmain
(labels=[0, 10, 20, 30, 40])
chapter7/chapter7.py:70
↓ 1 callersFunctionmain
(video_file='soccer.avi', roi=((140, 100), (500, 600)))
chapter6/chapter6.py:19
↓ 1 callersFunctionmain
()
chapter2/chapter2.py:30
↓ 1 callersFunctionmain
()
chapter1/chapter1.py:112
↓ 1 callersFunctionmain
()
chapter4/chapter4.py:22
↓ 1 callersFunctionmain
()
chapter4/calibrate.py:133
↓ 1 callersFunctionmain
()
chapter3/chapter3.py:16
↓ 1 callersMethodmatch_features
Feature matching between train and query image This method finds matches between the descriptor of an input (query) frame and
chapter3/feature_matching.py:185
↓ 1 callersMethodnext_id
(self)
chapter10/sort.py:166
↓ 1 callersFunctionone_hot_encode
(all_labels)
chapter8/data/process.py:31
↓ 1 callersFunctionparse_args
()
chapter5/panorama.py:8
↓ 1 callersFunctionparse_xml
(path: str)
chapter9/data.py:31
↓ 1 callersFunctionpencil_sketch_on_canvas
(rgb_image, canvas=None)
chapter1/tools.py:90
↓ 1 callersMethodplot_optic_flow
Plots optic flow field This method plots the optic flow between the first and second image.
chapter4/scene3D.py:83
↓ 1 callersMethodplot_point_cloud
Plots 3D point cloud This method generates and plots a 3D point cloud of the recovered 3D scene. :param feat_mod
chapter4/scene3D.py:176
↓ 1 callersFunctionplot_power_spectrum
Plot the power spectrum of image
chapter6/saliency.py:125
↓ 1 callersMethodprocess_frame
Process the frame of the camera (or other capture device) :param frame_rgb: Image to process in rgb format, of shape (H, W, 3) :retur
wx_gui.py:115
next →1–100 of 167, ranked by callers