摘要: 数字取整 >>> import numpy >>> print(numpy.ceil(1.7)) 2.0 >>> print(numpy.floor(1.7)) 1.0 >>> print(int(1.7)) 1 >>> 阅读全文
posted @ 2020-07-08 22:27 谷阿幻 阅读(140) 评论(0) 推荐(0)
摘要: jupyter无法下载文件夹,在要下载的文件夹下新建一个notebook。 复制如下代码: #jupyter下载文件夹 import os import tarfile def recursive_files(dir_name='.', ignore=None): for dir_name,subd 阅读全文
posted @ 2020-07-08 22:00 谷阿幻 阅读(678) 评论(0) 推荐(0)
摘要: 解决:安装xcode-select # xcode-select --install 原文链接:https://blog.csdn.net/lanyang123456/article/details/84142637 阅读全文
posted @ 2020-07-08 21:55 谷阿幻 阅读(587) 评论(0) 推荐(0)
摘要: PIL.Image转换成OpenCV格式 import cv2 from PIL import Image import numpy image = Image.open("plane.jpg") image.show() img = cv2.cvtColor(numpy.asarray(image 阅读全文
posted @ 2020-07-08 21:54 谷阿幻 阅读(1636) 评论(0) 推荐(0)
摘要: canny = cv2.Canny(img, 100, 200) 报错:TypeError: Required argument 'threshold2' (pos 4) not found canny = cv2.Canny(np.asarray(img), 100, 200) 阅读全文
posted @ 2020-07-08 21:52 谷阿幻 阅读(2033) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/heiheiya/article/details/102776353 阅读全文
posted @ 2020-07-08 21:50 谷阿幻 阅读(858) 评论(0) 推荐(0)
摘要: 克隆仓库 git clone ****test.git git初始化配置 git config --global user.name Fiona # 全局配置用户名 git config --global user.email "guweixin123@126.com" # 全局配置邮箱 git仓库 阅读全文
posted @ 2020-07-08 21:32 谷阿幻 阅读(251) 评论(0) 推荐(0)
摘要: 第一步:以管理员身份打开 anaconda prompt 第二步:激活环境(有两种情况,要注意自己的需求)1、激活已有的环境(例如已有环境名为environment1)则输入: activate environment1 注意:environment1需要替换为你自己已有的环境名 2、激活新环境(1 阅读全文
posted @ 2020-07-08 17:51 谷阿幻 阅读(2719) 评论(0) 推荐(0)
摘要: 面试职位:cv算法工程师 深兰科技 第一次电面: 问: 看你的简历,你在你们公司还是呆了蛮久的,为什么现在有其他想法了呢? 问: 哦,了解,那你先简单叙述一下你现在的项目组主要是做什么的,然后在这里面你做过哪些? 问: 那你还是目标检测和场景分割做的比较多一些,那你能不能说一下你比较熟悉的网络,包括 阅读全文
posted @ 2020-07-08 17:32 谷阿幻 阅读(191) 评论(0) 推荐(0)