Compile OpenCV3.2 with VS2017 on Windows8.1

Prepare Download opencv-3.2.0.zip Download CMake (if add contrib repo) Download opencv_contrib-3.2.0.zip Compile start cmake-gui.exe, select the opencv source code folder and the folder where binaries will be built (the 2 upper forms of the interface) press the configure button. you will see all the opencv build parameters in the central interface (if add contrib repo)browse the...
Continue reading...

Different stages when building a system

Stage One: make it work I only want to make it work. If it generate results. Cheers~ Stage Two: make it reuseful Stage Three: make it pluggable Stage Four: code is serving for thinking There are more things that can take more than few hours, even days to do than directly coding. Coding is not the basic content of this section. Thinking is. Everything, like a function, a variable name, building ...
Continue reading...

Install opencv3.2 on centos7

Require yum groupinstall "Development Tools" yum install cmake gcc gtk2-devel numpy pkconfig Download wget https://github.com/opencv/opencv/archive/3.2.0.zip -O opencv-3.2.0.zip unzip opencv-3.2.0.zip Make cd opencv-3.2.0 mkdir build cd build cmake -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local .. make make install Config export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/l...
Continue reading...

Jekyll Wordpress Sync - Wordpress插件的提交跟踪

Jekyll Wordpress Sync 是一个可以导入Jekyll文章的Wordpress插件 插件地址: github.com/kyshel/jekyll-wordpress-sync 详细信息: JWS - 一个可同步Jekyll文章的Wordress插件 本文主要记录该插件的提交情况。 2017-02-14 我于2月14号提交插件,原插件名为Jekyll-Wordpress-Sync,提交的时候被告知名字中不能带有Wordpress,所以我把名字改成了Jekyll-WP-Sync 2017-02-16 收到了wordpress.org的第一封邮件,内容如下: 第一封邮件截图 他说插件名字有问题,我不能代表Jekyll,所以不能以Jekyll开头,我又把名字改成了WP-Jekyll-Sync,重新提交。 2017-02-17 12:...
Continue reading...

JWS - 可同步Jekyll文章的Wordress插件

我有两个域名: kyshel.com kyshel.me 其中,.com是Wordpress搭建的博客,而.me是Jekyll驱动的博客,它放在Github Pages上。 在接触Jekyll之后,我就喜欢上了直接用text editor徒手写markdown,然后把写好的文件直接放在_post目录里就好,Github自动生成页面,.me也随之更新,简单粗暴。 也因此,.com搁置了好久都没有更新。 所以,我就想能不能写个插件,实现他俩的同步呢? 这个时候,GitHub API就派上了用场,我可以通过api,GET到Jekyll的文章数据,然后比对Wordpress的文章,进行同步。 插件地址:github.com/kyshel/jekyll-wordpress-sync 演示视频:http://player.youku.com/embed/XMjUy...
Continue reading...

There is no bug

I hate the word ‘bug’. In my recognition, the calculator has determinacy. 1 is 1, 0 is 0, there is no second condition. You want A, but result is B. That’s not program’s mistake, that’s your mistake. OK, I was just make some complaint for one of my interview, that they asked me whether I met bug when develop a system, that I answered NO, that I say, there is no big problem I met, what I ...
Continue reading...

《代码的未来》要点记录

作者预测 摩尔定律已接近极限 计算机价格并不会大幅降低 计算机朝多CPU多核心方向发展,未来编程语言专注于如何充分利用CPU RAM、HDD消失,大规模的缓存取而代之 C/S两端结构不断变化,S端由一个服务器变为多个服务器相连的云计算系统 编程语言 DSL Domain Specific Language 领域特定语言,是为特定领域所专门设计的词汇和语法。举例子: 外部DSL XML,JSON,YAML,SQL,Regular expression 内部DSL Rake file 其他 元编程 Meta,Lisp,Macro 内存管理 异常处理 闭包 新潮流 Go,Dart,CoffeScript,Lua 编程语言及开发者的国籍 语  言 开 发 者 国  籍 ...
Continue reading...

论数据的组织与存储

不同时间,人对数据的理解也不同。如何组织数据?用什么结构存储? Stage 1 在最初的认识中,数据是以二维表形式组织的,比如: 学号 姓名 101 亚索 102 盲僧 103 锐雯 104 锤石 105 炼金 Stage 2 接触数据库后,二维表正好能对应数据库的表,一个数据库中有多个表。 把二维表的行看成x,列看成y,那么数据库又多了一个维度z。 通过外键,表与表之间增加了约束,这样表之间就不是单独存在,而是相互依赖的了,字段之间建立起了联系,有利于数据引用的准确性。 这个阶段中,我在...
Continue reading...

汇总二维数据表,导出多维Excel表格

近期,需求方要求在sams中添加导出功能,需要导出的数据为考勤结果。 考勤课程有多个,每个考勤课程的学生都是自定义添加的,要将结果导出为多张二维表,难以展示数据,那应该怎样组织并呈现数据? 联系到Github API的响应数据,k自然而然地想到了JSON.把数据库中需要的数据提取出来放到一个json对象中,把此json数据导出即可。 开始 像GET仓库列表返回的数据结构一样,把每个{考勤课程}放在数组中,每个考勤课程作为数组的元素,同时也是一个实体,就像这样: [ { "pro_id":1, "pro_name":"proA" }, { "pro_id":2, "pro_name":"proB" }, { "pro_id":3, "pro_name":"proC" } ] 备注:project语义化为 考勤课程,pro_id为 考勤课...
Continue reading...

Install tesserocr

pip install cython yum install gcc-c++ yum install leptonica-devel yum install tesseract-devel pip install tesserocr
Continue reading...
Page 3 of 5