上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 主要运用np.amax() 阅读全文
posted @ 2017-08-25 00:02 默盒 阅读(15635) 评论(0) 推荐(0) 编辑
摘要: ```python import cv2 from math import fabs, sin, cos, radians import numpy as np from scipy.stats import mode def get_img_rot_broa(img, degree=45, filled_color=-1): """ Desciption: ... 阅读全文
posted @ 2017-08-18 15:54 默盒 阅读(3072) 评论(0) 推荐(0) 编辑
摘要: 修改 Windows: 目录下的host文件, Ubuntu: , 在最后添加一行: `52.84.246.72 d3c33hcgiwev3.cloudfront.net` 阅读全文
posted @ 2017-07-31 16:03 默盒 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 纵向切开的纸片的拼接 2013 CUMCM_B 阅读全文
posted @ 2017-07-31 15:53 默盒 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Markdown转HTML/pdf格式 通过_github自带_的更新博客的网页: 将输入的网页生成网页, 就可以直接将博客页打印出 pdf 来使用了(记得备份原博客内容) 相应的 HTML 会生成在博客项目的index.html文件里. 阅读全文
posted @ 2017-07-30 21:22 默盒 阅读(188) 评论(0) 推荐(0) 编辑
摘要: ```matlab %% import pictures, and save into images{img_num} function [images] = import_data(file_path) % 批量读取图片 img_path_list = dir(strcat(file_path,'*.jpg'));%获取该文件夹中所有jpg格式的图像 img_num ... 阅读全文
posted @ 2017-07-30 21:16 默盒 阅读(3161) 评论(0) 推荐(0) 编辑
摘要: function [ top, bottom, middle, len ] = classify_by_vertical_white_belt( img ) % 垂直搜索图片中的白段, 记录具体信息. % top: 白段的上分位点数组, bottom: 下分位点数组, % middle: 各白段纵坐 阅读全文
posted @ 2017-07-30 21:13 默盒 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 数组添加新元素, 类似python的append 将一个数组的元素打乱 MATLAB查找数组最小的n个数的原下标 保留n位小数 1.结尾为0, 如: 2.结尾无数, 如: MATLAB使用不当时的一大耗时点 MATLAB之前经常给出波浪线提示"变量XX可能会随迭代次数而改变。请预分配内存以获得更高的 阅读全文
posted @ 2017-07-30 19:06 默盒 阅读(2110) 评论(0) 推荐(0) 编辑
摘要: Ubuntu下OpenCV不能被某个python版本识别 Solution: 1. 可以进入相应版本的python,查看该python的path: 只要这几个目录下能找到相应的cv2.cpython 35m x86_64 linux gnu.so就可以了. 2. 所以只要进入能识别OpenCV的那个 阅读全文
posted @ 2017-07-21 15:42 默盒 阅读(615) 评论(0) 推荐(1) 编辑
摘要: 另附切换系统python默认版本的方法: 先使用命令: 查看python命令的各种可能结果, 例如我的结果: 然后使你想要的python版本占有最高的优先级即可. 例如我想要python2 python3, 我只要使2.7和2两者中的优先级最大值 大于 3和3.5 的优先级即可. 但首先, 你不知道 阅读全文
posted @ 2017-07-21 15:41 默盒 阅读(399) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页