自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(139)
  • 资源 (3)
  • 收藏
  • 关注

原创 在java中调用flask部署tensorflow的http服务

利用flask快速部署tensorflow的http服务:两个地方需要注意:在@app.route('/hello', methods=['GET','POST'])一定要写好方法method,不然在java方面会报405错误 我在网上找到的勇敢wsgi,但我的电脑不知道为什么无法开启这个服务,因此我尝试了一下直接用app.run()也可以import osfrom gevent ...

2020-04-17 15:56:28 2066 1

原创 SSH框架搭建

一、MyEclipse中搭建SSH(Structs2、Spring、Hibernate)框架步骤(注意一定要按顺序来):http://www.jikexueyuan.com/course/1898_4.html?ss=1创建一个web项目,注意在将下一步的生成web.xml勾上 搭建structs2框架:右键项目 -- myeclipse -- projects facets -- In...

2019-07-02 17:11:02 218

原创 1004 Counting Leaves

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts...

2019-03-16 17:05:47 213

原创 1003 Emergency

1003Emergency(25分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams...

2019-03-16 15:07:11 411

原创 Safecracker(HD1015)dfs

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015思路:深度优先搜索,要注意的是先给字符串进行排序,然后从后往前找,这样就能第一个就找到符合题意的。代码:#include <iostream>#include <cstdio>#include <cstdlib>#include &lt...

2019-03-15 17:07:03 231

原创 第二周--Linear Regression with Multiple Variables

多特征量:n个特征,m个样本未完待续

2019-03-15 11:12:51 177

原创 Counting Squares(HD1264)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1280题意:给出一系列对角线点,看能形成多少个正方形思路:水题。。看成一个大的四边形,看哪些单元包括在里面#include <iostream>#include <cstdio>#include <cstdlib>#include <cstrin...

2019-03-09 16:26:54 367

原创 flask点击按钮获取后台

问题:点击按钮后要获取到后台python脚本返回的值,还是太小白啊~解决:用ajaxtemp.html:<html><head><meta charset="utf-8"><title>TEMP</title></head><body> <input ty

2019-03-07 20:26:59 12268 1

原创 第一周--Linear Regression with One Variable

Model and Cost FunctionWe can measure the accuracy of our hypothesis function by using a cost function. 就是要找到一个θ0,θ1使J(θ0,θ1)最小,即误差最小Parameter Learning

2019-03-07 15:38:28 227

原创 第一周--introduction

监督学习无监督学习

2019-03-07 15:32:56 135

原创 cousera视频无法加载

用管理员权限记事本打开host文件将如下内容复制到文件末尾52.84.246.90 d3c33hcgiwev3.cloudfront.net52.84.246.252 d3c33hcgiwev3.cloudfront.net52.84.246.144 d3c33hcgiwev3.cloudfront.net52.84.246.72 d3c33hcgiwev3....

2019-03-07 10:55:11 336

原创 flask加载css样式出现404

如图。解决办法:在工程下新建一个static文件夹,把所有的css和js放大这个文件夹里,html引用时,路径设置为"static/js/jquery-3.1.0.min.js"如图:

2019-03-05 21:31:39 5868 1

原创 最大报销额(HD1864)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1864代码:#include<cstdio>#include<cstring>#include<algorithm>using namespace std;const int INF=3000010;int dp[INF];int val[INF];...

2019-03-05 16:51:04 214

原创 EXCEL排序(HD1862)

题:http://acm.hdu.edu.cn/showproblem.php?pid=1862#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include &a

2019-03-03 15:32:35 161

原创 魔咒词典(HD1880)

题:http://acm.hdu.edu.cn/showproblem.php?pid=1880思路:结构体直接存储对应,好久没写了。。代码比较丑。。需要注意的是魔咒输出时不用带[]#include <iostream>#include <cstdio>#include <cstring>#include <string>#includ...

2019-03-01 16:56:26 378

原创 列表排序输入

输入三个整数x,y,z,请把这三个数由小到大输出。另外python3.x系列不再有 raw_input 函数。3.x中 input 和从前的 raw_input 等效list = []for i in range(3): x = int(input('integer:\n')) list.append(x)list.sort()print(list)...

2019-02-26 21:44:37 511

原创 排名(HD1236)结构体排序

题:http://acm.hdu.edu.cn/showproblem.php?pid=1236思路:比较水的题,基本就是结构体排序写一下就可以了strcmp :设这两个字符串为str1,str2,若str1==str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数。代码:#include <iostream>#inclu...

2019-02-26 20:06:57 177

原创 畅通工程(HD1232)

题:若干个城市之间有若干条道路,要使所有城市相连通,问最少还需多少条道路链接:http://acm.hdu.edu.cn/showproblem.php?pid=1232思路:并查集代码:#include <iostream>#include <cstdio>using namespace std;int road[1010];int FindRoot(in...

2019-02-26 15:40:32 130

原创 Python基础学习笔记(菜鸟教程)

#!/usr/bin/python 是告诉操作系统执行这个脚本的时候,调用 /usr/bin 下的 python 解释器。#!/usr/bin/env python 这种用法是为了防止操作系统用户没有将 python 装在默认的 /usr/bin 路径里。当系统看到这一行的时候,首先会到 env 设置里查找 python 的安装路径,再调用对应路径下的解释器程序完成操作。Pycharm 恰好...

2019-02-26 14:56:06 408

转载 19.1.7--从实时视频流识别出“我”

学习来源:https://www.cnblogs.com/neo-T/p/6511273.html是为Model类增加一个预测函数: # 识别人脸 def face_predict(self, image): # 依然是根据后端系统确定维度顺序 if K.image_dim_ordering() == 'th' and image.shape !=...

2019-01-07 18:27:07 410

原创 19.1.7--利用keras库训练人脸识别模型

学习来源:https://www.cnblogs.com/neo-T/p/6477378.html原博主写得非常详细,我只是用他的代码实现一遍,修改的地方不多,把一些遇到的问题记录一下而已,更详细的讲解建议去看原博主的。修改:出现 ModuleNotFoundError: No module named ‘sklearn.cross_validation’ 问题:sklearn.cro...

2019-01-07 17:26:46 1443 8

转载 19.1.6--收集数据

在前面代码的基础上增加脸部图像存储功能即可,由cv2.imwrite()函数完成实际的保存,到达指定数量程序会自动退出。同时,在图像上提供了信息输出功能,以便我们能随时知道已经截取了多少张人脸。截取至少两个人的人脸以便训练程序分类使用,以提高模型准确度。来自:https://www.cnblogs.com/neo-T/p/6432596.html#-*- coding: utf-8 -*-...

2019-01-06 15:51:40 24788 4

原创 19.1.6--识别出人脸

来自:https://www.cnblogs.com/neo-T/p/6430583.html其中CascadeClassifier:级联分类器Haar-like矩形特征是用于物体检测的数字图像特征。这类矩形特征模板由两个或多个全等的黑白矩形相邻组合而成,而矩形特征值是白色矩形的灰度值的和减去黑色矩形的灰度值的和,矩形特征对一些简单的图形结构,如线段、边缘比较敏感。如果把这样的矩形放在一个非人...

2019-01-06 14:57:31 291 1

转载 19.1.6--获取并显示USB摄像头实时视频

来自https://www.cnblogs.com/neo-T/p/6426029.html#-*- coding: utf-8 -*-import cv2import sysfrom PIL import Imagedef CatchUsbVideo(window_name, camera_idx): # 创建窗口显示图像,window_name用来区分不同的窗口...

2019-01-06 14:39:58 2104

原创 2019.1.5--人脸识别环境搭建(tensflow及各模块安装)

1.Python3.5:目前tensflow在windows下只支持Python3.5版本2.安装tensflow:(有问题可到http://www.zhimengzhe.com/windows/283058.html查看)1.以管理员身份运行cmd2. pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple (清华的镜像源...

2019-01-06 14:31:51 1363

原创 python学习笔记

数据库转字典操作:def SqlToDict(): db = pymysql.connect(host='localhost', # 连接你要取出数据库的ip,如果是本机可以不用写 port=3306, user='xxx', # 你的数据库用户名 pass...

2018-06-10 20:49:56 173

原创 javaweb项目

项目搭建:https://blog.csdn.net/jiuqiyuliang/article/details/36875217 简单实例:https://blog.csdn.net/jiuqiyuliang/article/details/36424981

2018-05-09 16:37:04 316

原创 php+apache+sql server win7

一、php安装:最好是安装7.0版本的,因为后面要添加sql server扩展,7.1以上版本似乎扩展不好找。同时最好是下载THREAD SAFE的,不然没有php7apache2_4.dll这个文件 官方下载地址:https://windows.php.net/download/ 下载完后:打开php,把php.ini-production重命名为php.ini将 D:\...

2018-04-29 19:42:21 835

原创 HTML的input标签为file类型时按钮中显示上传文件的名字

主要html代码:<a href="javascript:;" class="a-upload"> <div id="shangchuan" onchange="successload()"> </div>//使用onchange而非onclick,onclick会在弹出框出现之前,而onchange会在选择完文件后

2018-04-14 20:55:51 10740

原创 php上传HTML选取的图片到服务器

参考:https://blog.csdn.net/zxh543362234/article/details/47019325 主要是对php进行了一些修改~ html代码:<html> <head><script> function setImagePreview() { var docObj=document.get...

2018-04-14 16:56:13 701

转载 smarty 的安装与使用

下载 目前smarty有3.x和2.x版本,两者的对于php的版本要求不同,3.x版要求php5.2+。我下载了2.x版。在centos根目录下新建data目录mkdir datacd data在data目录下下载解压smarty 2.x版wget https://github.com/smarty-php/smarty/archive/v2.6.28.tar.gztar -z...

2018-03-30 17:52:52 909 1

原创 点击按钮显示隐藏内容

<li> <input type="radio" onclick="ydiaosai()"> <label >点击显示</label></li><li> <input type="radio" onclick="ndiaosai()

2018-03-17 20:50:23 3832 1

原创 centos7安装python3的虚拟环境

错误:/usr/local/python36/bin/python3.6: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory解决:# cd /etc/ld.so.conf.d# vim python...

2018-03-05 21:32:13 980

原创 centos系统装了python3.5后yum无法使用

将虚拟环境中 /bin/yum 的第一行的python后面添加虚拟环境的python版本号

2018-03-04 13:02:21 496

转载 CentOS 7下安装Python3.5+虚拟环境

转载自:https://www.linuxidc.com/Linux/2016-04/129784.htm•安装python3.5可能使用的依赖yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel•到python官网找到下载路径, 用wget下载wget ht...

2018-03-04 10:01:42 615

转载 http statusCode(状态码) 200、300、400、500序列

转载自:http://blog.csdn.net/tobethebestman/article/details/55657281 201-206都表示服务器成功处理了请求的状态代码,说明网页可以正常访问。 200(成功) 服务器已成功处理了请求。通常,这表示服务器提供了请求的网页。 201(已创建) 请求成功且服务器已创建了新的资源。 2...

2018-02-28 20:56:00 560

转载 Centos7操作系统下python开发环境

转载来自:http://blog.csdn.net/xuxiuning/article/details/48714717CentOS7自带Python2.7 但是没有pip工具 要安装pip,首先要了解yum 他相当于对Linux来说的pip工具。 命令指南 http://blog.chinaunix.net/uid-346158-id-2131252.htmlpython-p

2018-02-04 16:42:17 557

原创 CentOS操作系统MYSQL语句

第一次进入数据库:mysql -u root进入后修改密码:set password for ‘root’@’localhost’ =password(‘xxxxxxxx’);再次进入数据库:mysql -u root -p创建数据库:create database txsql;进入某个数据库:use databasename;创建表: CREATE TABLE IF NOT EXIS

2018-02-03 18:10:28 409

原创 阿里云服务器centos7.4操作系统Apache配置https服务

文件说明:证书文件xxxxxxxxxxxxxx.pem,包含两段内容,请不要删除任何一段内容。如果是证书系统创建的CSR,还包含:证书私钥文件xxxxxxxxxxxxxx.key、证书公钥文件public.pem、证书链文件chain.pem。证书是在阿里云的CA证书服务里下载的准备工作:1.安装:#yum -y install httpd httpd-devel#y...

2018-02-03 15:24:39 3523

转载 Centos7.2版本搭建Apache+PHP+Mysql环境

来源:http://blog.csdn.net/jabony/article/details/53157378基于Linux的PHP环境搭建 本文是基于CentOS7的环境配置,Centos6版本的推荐看这个教程:http://blog.csdn.net/u014427391/article/details/51381097 安装Apache、PHP、Mysql、连接Mysql数据库的包

2018-01-14 18:09:56 5897 2

FileSys.zip

QT实现简单文件浏览器程序,包括一个treeview、tableview和listview,可以按钮控制显示,也可以右键弹出菜单显示,可以打开选中文件(不过要先左键点击该文件)

2020-07-09

mahout-integration-0.7

mahout-integration-0.7mahout-integration-0.7mahout-integration-0.7mahout-integration-0.7

2018-06-06

python连接数据库以及增删改查源码

关于python如何对数据库进行连接、增删改查等操作,来自课程源码

2018-02-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除