- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 OpenCV轮廓、边界框、最小矩形、最小闭圆检测
import cv2import numpy as np# 函数cv2.pyrDown()是降低图像分辨率,变为原来一半img = cv2.pyrDown(cv2.imread("G:/Python_code/OpenCVStudy/images/timg.jpg", cv2.IMREAD_UNCHANGED))# 将图片转化为灰度,再进行二值化ret, thresh = cv2.t...
2018-04-22 11:21:26 2223
原创 jsoncpp文件操作
// string tmp;// string file="/tmp/a.log";// ifstream is(file.c_str());// while(getline(is,tmp))// {// Json::Reader reader;// Json::Value...
2018-03-09 16:37:22 161
原创 通用模块封装
package gHttpClientFactory;import java.io.IOException;import java.security.cert.CertificateException;import java.security.cert.X509Certificate;import java.util.List;import javax.net.ssl.SSLCont...
2018-03-09 16:36:48 959
原创 tomcat https 证书配置
keytool -genkeypair -alias tomcat -keyalg RSA -validity 365 -keystore /usr/tomcat.keystore <Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnable...
2018-03-09 16:36:09 182
原创 iptables操作日志
iptables -L -n iptables -Fiptables -Xiptables -F -t mangleiptables -t mangle -Xiptables -F -t natiptables -t nat -Xiptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -p tcp --...
2018-03-09 16:35:28 713
原创 dbutils
package g.Factory;import java.sql.Connection;import java.sql.SQLException;import java.util.List;import java.util.Map;import java.util.Map.Entry;import javax.servlet.http.HttpServletRequest;i...
2018-03-09 16:35:00 132
原创 C# BPNN
using System.IO;using AForge.Neuro;using AForge.Neuro.Learning;using System.Runtime.Serialization.Formatters.Binary;using Newtonsoft.Json;using Newtonsoft.Json.Linq;using System.Collections.Gene...
2018-03-09 16:34:34 212
原创 Python相关
yum -y install zlib zlib-develyum -y install bzip2 bzip2-develyum -y install ncurses ncurses-develyum -y install readline readline-develyum -y install openssl openssl-develyum -y install openssl-...
2018-03-09 16:34:07 406
原创 python3系列-爬虫解析
import urllib.requestfrom bs4 import BeautifulSoupurl="http://www.biquge5200.com/52_52542/"req = urllib.request.Request(url)response = urllib.request.urlopen(req)data = response.read()data=data...
2018-03-09 16:33:21 153
原创 python3 tensorflow
#加载包from __future__ import absolute_importfrom __future__ import divisionfrom __future__ import print_functionimport tensorflow as tfimport numpy as np# 数据集名称,数据集要放在你的工作目录下IRIS_TRAINING = "d...
2018-03-09 16:32:58 628
原创 中国所有汉字-简体
一,丁,丂,七,丄,丅,丆,万,丈,三,上,下,丌,不,与,丏,丐,丑,丒,专,且,丕,世,丗,丘,丙,业,丛,东,丝,丞,丟,丠,両,丢,丣,两,严,並,丧,丨,丩,个,丫,丬,中,丮,丯,丰,丱,串,丳,临,丵,丶,丷,丸,丹,为,主,丼,丽,举,丿,乀,乁,乂,乃,乄,久,乆,乇,么,义,乊,之,乌,乍,乎,乏,乐,乑,乒,乓,乔,乕,乖,乗,乘,乙,乚,乛,乜,九,乞,也,习,乡,乢,乣,...
2018-03-09 16:32:33 92993
原创 python3+opencv
# -*- coding: utf-8 -*-# gengzg@126.comimport sysimport cv2import numpy as npdef preprocess(gray): # # 直方图均衡化 # equ = cv2.equalizeHist(gray) # 高斯平滑 gaussian = cv2.GaussianBlur(gr...
2018-03-09 16:31:34 559
原创 常用LINUX软件安装
yum install -y epel-release yum install -y vim lrzsz htop dstat rabbitmq-server wget zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make mysql-server redh...
2018-03-09 16:31:03 113
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人