【问题标题】:Trackbars and cv2.namedWindow() in google Colab谷歌 Colab 中的 Trackbars 和 cv2.namedWindow()
【发布时间】:2021-12-10 21:53:39
【问题描述】:

有没有办法在 Google Colab 中创建跟踪栏?在本地运行的代码上,只需执行以下操作:

cv2.namedWindow("Trackbars") 
cv2.createTrackbar("L - S", "Trackbars", 0, 255, nothing)
while: ...

   ls = cv2.getTrackbarPos("L - S", "Trackbars")

我想在 Colab 中做同样的事情。有什么变通方法,有补丁吗?

【问题讨论】:

    标签: python opencv user-interface image-processing google-colaboratory


    【解决方案1】:

    没有,你不能在 colab 上使用 opencv 的 gui 函数

    不过,有一个cv2_imshow()mock replacement,用来显示图片

    【讨论】:

      猜你喜欢
      • 2019-11-27
      • 2019-07-08
      • 2020-07-02
      • 1970-01-01
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      • 2023-02-17
      • 2021-09-11
      相关资源
      最近更新 更多