Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/OpenCV-4-with-Python-Blueprints-Second-Edition
/ functions
Functions
167 in github.com/PacktPublishing/OpenCV-4-with-Python-Blueprints-Second-Edition
⨍
Functions
167
◇
Types & classes
16
↓ 1 callers
Method
process_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
chapter8/wx_gui.py:115
↓ 1 callers
Method
process_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
chapter1/wx_gui.py:115
↓ 1 callers
Method
process_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
chapter4/wx_gui.py:115
↓ 1 callers
Method
process_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
chapter3/wx_gui.py:115
↓ 1 callers
Function
recognize
Recognizes hand gesture in a single-channel depth image This method estimates the number of extended fingers based on a single-channe
chapter2/gestures.py:13
↓ 1 callers
Function
save_datum
(path, label, img)
chapter8/data/store.py:19
↓ 1 callers
Method
scale_and_offset
(points: Sequence[Point], source_size: Tuple[int, int], dst_
chapter3/feature_matching.py:205
↓ 1 callers
Function
segment_arm
Segments arm region This method accepts a single-channel depth image of an arm and hand region and extracts the segmented arm region.
chapter2/gestures.py:39
↓ 1 callers
Function
track
(dets: np.ndarray, illustration_frame: np.ndarray = None)
chapter10/main.py:69
↓ 1 callers
Function
train_one_vs_all_SVM
(X_train, y_train)
chapter7/chapter7.py:30
↓ 1 callers
Function
train_tf_model
(X_train, y_train)
chapter7/train_tf2.py:27
Method
__init__
Initialize all necessary parameters and generate a basic GUI layout that can then be augmented using `self.augment_layout`.
wx_gui.py:25
Method
__init__
(self, *args, clf_path=None, **kwargs)
chapter8/chapter8.py:38
Method
__init__
Initialize all necessary parameters and generate a basic GUI layout that can then be augmented using `self.augment_layout`.
chapter8/wx_gui.py:25
Method
__init__
(self, *, face_cascade='params/haarcascade_frontalface_default.xml', eye_cas
chapter8/detectors.py:17
Method
__init__
Constructor This method initializes the multiple-objects tracking algorithm. :param min_area: Minimum area for a proto-obje
chapter6/tracking.py:22
Method
__init__
(self, bbox, label)
chapter10/sort.py:58
Method
__init__
Sets key parameters for SORT
chapter10/sort.py:157
Method
__init__
Initialize all necessary parameters and generate a basic GUI layout that can then be augmented using `self.augment_layout`.
chapter1/wx_gui.py:25
Method
__init__
(self, *args, **kwargs)
chapter1/chapter1.py:49
Method
__init__
Initialize all necessary parameters and generate a basic GUI layout that can then be augmented using `self.augment_layout`.
chapter4/wx_gui.py:25
Method
__init__
Constructor This method initializes the scene reconstruction algorithm. :param K: 3x3 intrinsic camera matrix :p
chapter4/scene3D.py:30
Method
__init__
Initialize the SURF descriptor, FLANN matcher, and the tracking algorithm. :param train_image: training or template image sh
chapter3/feature_matching.py:38
Method
__init__
Initialize all necessary parameters and generate a basic GUI layout that can then be augmented using `self.augment_layout`.
chapter3/wx_gui.py:25
Method
_linear_ls_triangulation
Triangulation via Linear-LS method
chapter4/scene3D.py:358
Method
_on_button_calibrate
Enable recording mode upon pushing the button
chapter4/calibrate.py:120
Method
_on_next_frame
Capture a new frame from the capture device, send an RGB version to `self.process_frame`, refresh.
wx_gui.py:88
Method
_on_next_frame
Capture a new frame from the capture device, send an RGB version to `self.process_frame`, refresh.
chapter8/wx_gui.py:88
Method
_on_next_frame
Capture a new frame from the capture device, send an RGB version to `self.process_frame`, refresh.
chapter1/wx_gui.py:88
Method
_on_next_frame
Capture a new frame from the capture device, send an RGB version to `self.process_frame`, refresh.
chapter4/wx_gui.py:88
Method
_on_next_frame
Capture a new frame from the capture device, send an RGB version to `self.process_frame`, refresh.
chapter3/wx_gui.py:88
Method
_on_paint
Draw the camera frame stored in `self.bmp` onto `self.video_pnl`.
wx_gui.py:102
Method
_on_paint
Draw the camera frame stored in `self.bmp` onto `self.video_pnl`.
chapter8/wx_gui.py:102
Method
_on_paint
Draw the camera frame stored in `self.bmp` onto `self.video_pnl`.
chapter1/wx_gui.py:102
Method
_on_paint
Draw the camera frame stored in `self.bmp` onto `self.video_pnl`.
chapter4/wx_gui.py:102
Method
_on_paint
Draw the camera frame stored in `self.bmp` onto `self.video_pnl`.
chapter3/wx_gui.py:102
Method
_on_snapshot
Takes a snapshot of the current frame This method takes a snapshot of the current frame, preprocesses it to extract the head
chapter8/chapter8.py:133
Method
augment_layout
(self)
chapter8/chapter8.py:54
Method
augment_layout
Initializes GUI
chapter8/chapter8.py:90
Method
augment_layout
Add a row of radio buttons below the camera feed.
chapter1/chapter1.py:55
Method
augment_layout
(self)
chapter4/calibrate.py:22
Function
convert_to_pencil_sketch
(rgb_image)
chapter1/tools.py:83
Function
convert_to_pencil_sketch_ordered
(rgb_image)
chapter1/tools.py:75
Method
current_state
Returns the current bounding box estimate.
chapter10/sort.py:109
Function
dodge
(image, mask)
chapter1/tools.py:99
Function
dodge_naive
(image, mask)
chapter1/tools.py:104
Method
draw_epipolar_lines
Draws epipolar lines This method computes and draws the epipolar lines of the two loaded images. :param feat_mod
chapter4/scene3D.py:99
Function
grayscale_featurize
Featurize by calculating grayscale values of the data For each image: 1. resize all images to have the same (usually smaller size)
chapter7/data/process.py:55
Function
hsv_featurize
Featurize by calculating HSV values of the data For each image: 1. resize all images to have the same (usually smaller size)
chapter7/data/process.py:38
Function
int_decode
(value)
chapter8/data/process.py:27
Function
int_encode
(label)
chapter8/data/process.py:23
Function
lowe_match
(descriptors1, descriptors2)
chapter5/hdr.py:37
Function
plot_crf
(crf, colors=OPEN_CV_COLORS)
chapter5/hdr.py:59
Method
plot_rectified_images
Plots rectified images This method computes and plots a rectified version of the two images side by side. :param
chapter4/scene3D.py:132
Function
precision
(y_predicted, y_true, positive_label)
chapter7/chapter7.py:44
Function
prepare
(image, box, size, type, breed)
chapter9/data.py:70
Method
process_frame
(self, frame_rgb: np.ndarray)
chapter8/chapter8.py:57
Method
process_frame
Add a bounding box around the face if a face is detected.
chapter8/chapter8.py:126
Method
process_frame
Process the frame of the camera (or other capture device) Choose a filter effect based on the which of the radio buttons was clicked.
chapter1/chapter1.py:91
Method
process_frame
Processes each frame If recording mode is on (self.recording==True), this method will perform all the hard work of the camera
chapter4/calibrate.py:48
Function
read_frame
()
chapter2/frame_reader.py:5
Function
recall
(y_predicted, y_true, positive_label)
chapter7/chapter7.py:51
Function
surf_featurize
(data, *, scale_size=(16, 16), num_surf_features=100)
chapter7/data/process.py:28
Function
thumbnail
(img_rgb, long_edge=400)
chapter5/hdr.py:16
Function
train_MLP
(X_train, y_train)
chapter7/chapter7.py:21
Function
train_sklearn_random_forest
(X_train, y_train)
chapter7/chapter7.py:66
Method
update
Updates the state vector with observed bbox.
chapter10/sort.py:88
← previous
101–167 of 167, ranked by callers