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