| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1371 人关注过本帖
标题:测量图像尺寸示例编译出错请教。
取消只看楼主 加入收藏
sdlckjzxb
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2018-12-22
收藏
 问题点数:0 回复次数:0 
测量图像尺寸示例编译出错请教。
在支行这段程序时,出错,
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()

ap.add_argument("-i", "--image", required=True,

help="path to the input image")

ap.add_argument("-w", "--width", type=float, required=True,

help="width of the left-most object in the image (in inches)")

args = vars(ap.parse_args())

提示信息:
Python 3.7.1rc2 (v3.7.1rc2:6c06ef7dc3, Oct 13 2018, 15:44:37) [MSC v.1914 64 bit (AMD64)] on ZXBUSE, Standard
>>> usage: celiang.py [-h] -i IMAGE -w WIDTH
celiang.py: error: the following arguments are required: -i/--image, -w/--width
请教这是出什么问题了?怎么改正?
搜索更多相关主题的帖子: 图像 示例 出错 the required 
2018-12-22 10:24
快速回复:测量图像尺寸示例编译出错请教。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015550 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved