import cv2import numpy as nppath = "_holefill.jpg"img = cv2.imread(path)gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)#转换成灰度图ret, thresh = cv2.threshold ...
分类:
编程语言 时间:
2019-11-10 19:29:21
阅读次数:
348
###在canvas中的像素操作 到目前为止,我们尚未深入了解Canvas画布真实像素的原理,事实上, 你可以直接通过ImageData对象操纵像素数据,直接读取或将数据数组写入该对象中 ###得到场景像素数据 getImageData():获得一个包含画布场景像素数据的ImageData对像,它代 ...
分类:
其他好文 时间:
2019-11-10 17:46:44
阅读次数:
111
[TOC] 总所周知,Emacs是神的编译器!!! 参考文献 咕咕日报:https://www.luogu.org/blog/Arthas gray/emacs wei ru men xue xi bi ji wiki:https://oi wiki.org/intro/editor/emacs/ ...
分类:
系统相关 时间:
2019-11-10 15:58:52
阅读次数:
98
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv... ...
分类:
其他好文 时间:
2019-11-08 17:49:02
阅读次数:
116
描述 解答 点评:思路比较独特, 看了题解后才豁然开朗, 需要多观察数据特征 参考:https://leetcode-cn.com/problems/gray-code/ ...
分类:
其他好文 时间:
2019-11-08 10:44:15
阅读次数:
101
本人在2010年时使用swfupload为核心进行文件的批量上传的解决方案。见文章:WEB版一次选择多个文件进行批量上传(swfupload)的解决方案。 本人在2013年时使用plupload为核心进行文件的批量上传的解决方案。见文章:WEB版一次选择多个文件进行批量上传(Plupload)的解决 ...
分类:
Web程序 时间:
2019-11-07 13:17:19
阅读次数:
110
HOG特征+SVM行人检测 API介绍: 1 #include <opencv2/opencv.hpp> 2 #include <iostream> 3 4 using namespace cv; 5 using namespace std; 6 7 int main(int argc, char* ...
分类:
其他好文 时间:
2019-11-06 15:05:15
阅读次数:
159
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:
其他好文 时间:
2019-10-29 23:30:23
阅读次数:
107
鲍勃·马丁大叔(Bob Martin)是软件开发理论的巨头之一。他提出的程序员誓言,是这个行业的基本职业道德。誓言由关于软件开发人员的九个道德目标组成。为了捍卫和维护计算机程序员的职业荣誉,我承诺,尽我所能和判断力:1、我不会产生有害的代码。2、我制作的代码永远是我最好的作品。我不会故意允许在行为或... ...
分类:
其他好文 时间:
2019-10-29 09:16:50
阅读次数:
141