import the necessary packages
from imutils import contours
from skimage import measure
import numpy as np
import argparse
import imutils
import cv2
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
help="path to the image file")
args = vars(ap.parse_args())
此代码中我在哪里给出路径位置
答案 0 :(得分:0)
<form method="post" action="...">
<input type="hidden" name="id1" value="...">
<input type="hidden" name="id2" value="...">
<input type= "submit" name="deleteItem" value="Delete">
</form>
您不需要参数解析,因为您可以将图像直接传递到cv2 如果您的工作目录中有图片,则可以
data(){
return {
value: ""
}
},
watch: {
value:function(newValue, oldValue){
console.log(newValue)
console.log(oldValue)
}
}