单项选择题
在OpenCV中,以下哪个代码片段用于查找图像的轮廓?()
A.cv2.findContours(image,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
B.cv2.detectContours(image,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
C.cv2.getContours(image,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
D.cv2.contourDetection(image,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
点击查看答案&解析
相关考题
-
单项选择题
以下哪个代码片段用于在OpenCV中进行图像的Canny边缘检测?()
A.cv2.Canny(image,100,200)
B.cv2.edgeDetect(image,100,200)
C.cv2.findEdges(image,100,200)
D.cv2.detectEdges(image,100,200) -
单项选择题
在OpenCV中,以下哪个代码片段用于保存图像到文件?()
A.cv2.imwrite(’output.jpg’,image)
B.cv2.saveImage(’output.jpg’,image)
C.cv2.write(’output.jpg’,image)
D.cv2.save(’output.jpg’,image) -
单项选择题
以下哪个代码片段用于在OpenCV中进行图像的高斯模糊处理?()
A.cv2.GaussianBlur(image,(5,5),0)
B.cv2.blur(image,(5,5))
C.cv2.medianBlur(image,5)
D.cv2.bilateralFilter(image,9,75,75)
