类型错误:hog() 获得了意外的关键字参数“可视化”;

发布于 2025-01-17 22:58:17 字数 1608 浏览 0 评论 0原文

typeError:hog()有一个意外的关键字参数'visalise'typeError

TypeError                                 Traceback (most recent call last)
<ipython-input-21-24a971cd17ef> in <module>
     36 notcar = mpimg.imread(notcars[10])
     37 #plot_row2(car, notcar, 'Car', 'Not Car')
---> 38 car_features = single_img_features(car, color_space=color_space,
     39                                    spatial_size=spatial_size, hist_bins=hist_bins,
     40                                    orient=orient, pix_per_cell=pix_per_cell,

<ipython-input-20-9e1ff462ce4f> in single_img_features(img, color_space, spatial_size, hist_bins, orient, pix_per_cell, cell_per_block, hog_channel, spatial_feat, hist_feat, hog_feat)
    108             hog_features = []
    109             for channel in range(feature_image.shape[2]):
--> 110                 hog_features.extend(get_hog_features(feature_image[:,:,channel], 
    111                                     orient, pix_per_cell, cell_per_block,
    112                                     vis=False, feature_vec=True))      

<ipython-input-20-9e1ff462ce4f> in get_hog_features(img, orient, pix_per_cell, cell_per_block, vis, feature_vec)
     44     # Otherwise call with one output
     45     else:
---> 46         features = hog(img, orientations=orient, 
     47                        pixels_per_cell=(pix_per_cell, pix_per_cell),
     48                        cells_per_block=(cell_per_block, cell_per_block),

TypeError: hog() got an unexpected keyword argument 'visualise'

:hog()获得了意外的关键字参数'visalise''

TypeError: hog() got an unexpected keyword argument'visualise'

TypeError                                 Traceback (most recent call last)
<ipython-input-21-24a971cd17ef> in <module>
     36 notcar = mpimg.imread(notcars[10])
     37 #plot_row2(car, notcar, 'Car', 'Not Car')
---> 38 car_features = single_img_features(car, color_space=color_space,
     39                                    spatial_size=spatial_size, hist_bins=hist_bins,
     40                                    orient=orient, pix_per_cell=pix_per_cell,

<ipython-input-20-9e1ff462ce4f> in single_img_features(img, color_space, spatial_size, hist_bins, orient, pix_per_cell, cell_per_block, hog_channel, spatial_feat, hist_feat, hog_feat)
    108             hog_features = []
    109             for channel in range(feature_image.shape[2]):
--> 110                 hog_features.extend(get_hog_features(feature_image[:,:,channel], 
    111                                     orient, pix_per_cell, cell_per_block,
    112                                     vis=False, feature_vec=True))      

<ipython-input-20-9e1ff462ce4f> in get_hog_features(img, orient, pix_per_cell, cell_per_block, vis, feature_vec)
     44     # Otherwise call with one output
     45     else:
---> 46         features = hog(img, orientations=orient, 
     47                        pixels_per_cell=(pix_per_cell, pix_per_cell),
     48                        cells_per_block=(cell_per_block, cell_per_block),

TypeError: hog() got an unexpected keyword argument 'visualise'

TypeError: hog() got an unexpected keyword argument'visualise'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最偏执的依靠 2025-01-24 22:58:17

您可以尝试将“可视化”替换为“可视化”。

you can try to replace 'visualise' to 'visualize'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文