• python cv


    python cv

    tensorflow-gpu 会报错

    ImportError: cannot import name ‘get_config‘ from ‘tensorflow.python.eager.context‘

    https://blog.csdn.net/weixin_39190382/article/details/120197132

    C:\Workspace\python3.7\Scripts\python.exe "C:/Workspace/4_cv/第四章 Tensorflow框架/01_demo.py"
    Traceback (most recent call last):
      File "C:/Workspace/4_cv/第四章 Tensorflow框架/01_demo.py", line 10, in <module>
        demo()
      File "C:/Workspace/4_cv/第四章 Tensorflow框架/01_demo.py", line 5, in demo
        (x_train,x_test),(y_train,y_test) = fashion_minst.load_data()
    NameError: name 'fashion_minst' is not defined
    
    fashion_minst 单词打错了 应该改为: mnist
    

     

     

     方法单词写错很危险

     

     

    # 列表表达式
    label_files = [os.path.join(train_data_dir,filename) for filename in os.listdir(train_data_dir) if filename.endswith('.txt')]

     

     字符串属性写错,找不到,引起不必要的担忧

    efficientnet示例

    ImportError: cannot import name ‘get_config‘ from ‘tensorflow.python.eager.context‘

    pip install keras==2.2.5 正常运行

     

     

     pycharm-防止导报报错:

     maskrcnn Input image dtype is bool. Interpolation is not defined with bool data type

    pip install -U scikit-image==0.16.2

    OpenCV不能处理声音,只能处理视频

     彩色显示器每个像素都使用rgb进行颜色叠加,

    https://blog.csdn.net/weixin_45265581/article/details/106395003 

    如何创建Python虚拟环境cv, 在cv中安装即可。

    先开门见山,img[:,:,::-1]的作用就是实现RGB到BGR通道的转换 (若图片一开始就是BGR的,就是实现从BGR到RGB的转换)。

    对于列表img进行img[:,:,::-1]的作用是列表数组左右翻转,

    https://blog.csdn.net/u014453898/article/details/93716118

     

    M连通 

    https://blog.csdn.net/qq_38619342/article/details/86510602

     

     

     

     

     

     

     

     在每一个尺度上,有三层图像的时候,构建高斯金字塔时需要6层,因为构建高斯差分金字塔去一层,极值点确定需要去除两层;

     https://www.fourcc.org/codecs.php 视频格式说明

    opencv 训练好的模型下载:  https://github.com/opencv/opencv/tree/master/data/haarcascades

  • 相关阅读:
    BZOJ 2300凸包+离线
    BZOJ 4140 凸包+二进制分组
    BZOJ 2178 Simpson积分
    BZOJ 4828 DP+BFS
    BZOJ 1845 Simpson积分
    BZOJ 1137 半平面交
    Codeforces 803G Periodic RMQ Problem ST表+动态开节点线段树
    Codeforces Round 411 Div.2 题解
    BZOJ 4530 LCT/线段树合并
    BZOJ 2946 SA/SAM
  • 原文地址:https://www.cnblogs.com/xhzd/p/15971231.html
Copyright © 2020-2023  润新知