Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- feature_params = {
- 'color_model': 'yuv', # hls, hsv, yuv, ycrcb
- 'bounding_box_size': 64, #
- 'number_of_orientations': 11, # 6 - 12
- 'pixels_per_cell': 16, # 8, 16
- 'cells_per_block': 2, # 1, 2
- 'do_transform_sqrt': True
- }
- sourcer = FeatureSourcer(feature_params, vehicle_image)
- f = sourcer.features(vehicle_image)
- rgb_img, a_img, b_img, c_img = sourcer.visualize()
- # [3 x 3 block positions] x [2 x 2 cells per block] x [11 orientations] x [3 channels] = 1,188 features
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement