如何将图像加载到Jupyter

时间:2020-01-16 16:02:14

标签: python scikit-learn

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())

我从https://www.pyimagesearch.com/2016/10/31/detecting-multiple-bright-spots-in-an-image-with-python-and-opencv/那里获取了这段代码

此代码中我在哪里给出路径位置

1 个答案:

答案 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)
   }
}