- 博客(10)
- 收藏
- 关注
原创 Python识别Data Matrix码
Data matrix 码一般用来工业级刻在器械上的码,由于直接雕刻在器械上,所以识别难度高,经过尝试后发现,效果最好的是 libdmtx 库,但是这个库没有java版本的,只有c++和python的。前端用一个220*220的方形框放在屏幕中间放待识别的码,把图片传到后端,python使用图片处理把 中间方形框的图片截取出来,使用opencv处理图片,最后调用pylibdtmx库的decode方法识别码获取结果。
2025-04-25 17:30:10
336
原创 Ionic build android app in windows10
需要的环境:jdk android sdk gradle1. 下载jdk, jre 并配置环境变量用户变量添加JAVA_HOME, 值为 D:\jdk (jdk 的安装目录)系统变量添加 CLASS_PATH, 值为 .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;编辑系统变量的Path, 添加 %JAVA_HOME%\...
2019-01-09 12:50:33
233
原创 Angular+ionic 实现上传图片
使用angular实现上传图片,包括图片的预览以及删除, 图片的预览及删除是用的ionic 的popover 实现的,效果如下:1. 上传图片部分代码的实现upload.html <div class="picture-number"> <p >图片上传</p> <p >{{uploadPictureNum}}...
2018-12-03 11:48:59
880
5
原创 windows 下更改mysql5.7的默认编码为utf8
mysql 的默认编码格式是latin1, 数据库添加或查找中文的时候就会报错,解决办法是更改默认编码为utf8,步骤如下:1.关闭mysql服务在windows的服务里面找到MySQL57, 点击 停止服务2.找到mysql的配置文件my.ini默认在mysql的安装目录下, C:\Program Files\MySQL\MySQL Server 5.7 如果在上述位...
2018-11-16 14:59:21
1069
原创 Generate a ssh key
1. Use ssh-keygen to generate ssh key ssh-keygen -t rsa -b 4096 -C "your_email@example.com"2. Input path of ssh key after promot, such as ‘~/.ssh3. Start ssh-agent processeval $(ssh-agent -s...
2018-10-12 17:29:58
368
原创 Git diff for .docx format file in ubuntu
Use pandoc to realize it.Install pandocsudo apt-get install pandocCreate or edit file ~/.gitconfig to add[diff "pandoc"] textconv=pandoc --to=markdown prompt = false[alias] wdi...
2018-07-31 10:38:19
295
原创 svn no need input password every time
This method is for using protocol SVN + SSH to access Subversion.Install sshpass sudo apt-get install sshpass Set the temporary environment variable, add following content(replace yourpassword ...
2018-07-18 17:07:44
237
原创 Linux add a user and give sudo permission
Add a user, use adduser commandsudo adduser testGive user test root permissionsudo vi /etc/sudoersAdd a line:test ALL=(ALL:ALL) ALL
2018-07-16 09:49:14
375
原创 在ubuntu上安装win10 双系统
安装unbuntu 和windows 双系统时,建议先装windows, 再装ubuntu。由于我的机器已经是ubuntu了,所以就直接在ubuntu上装的windows。我用的是U盘做启动盘安装的系统。1.安装unbuntu系统首先制作U盘作为启动盘 这里比较简单。下载ubuntu系统iso镜像(https://www.ubuntu.com/download/desktop),再下载制作U...
2018-07-15 13:12:52
19389
3
原创 Python Learning Summary
Python methods and module1.String methods strip() DescriptionThe method strip() returns a copy of the string in which all chars have been stripped from the beginning and the end of the stri...
2018-06-13 11:32:12
550
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅