pycharm 上安装opencv-python模块,opencv-contrib-python模块,python-pytesseract 模块

编写程序:

import cv2 as cv
src=cv.imread("C:/Users/a/Desktop/csdn/1.jpg")         #read a picture
cv.namedWindow("input image",cv.WINDOW_AUTOSIZE)       #create a GUI,named input image
cv.imshow("input image",src)                           #put picture into GUI,parameter:(GUI NAME,PICTURE)
cv.waitKey(0)                                          #wait next operation
cv.destroyAllWindows()                                 #free memory
print("hello")

测试结果:

opencv笔记(1)

 

 

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2021-12-10
  • 2021-06-26
  • 2021-04-19
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2021-07-14
  • 2022-01-10
  • 2022-01-04
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案