自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Lostboy船长

只要思想不滑坡,办法总比困难多

  • 博客(12)
  • 收藏
  • 关注

翻译 opencv 矩阵操作

矩阵操作(拷贝、洗牌、局部访问): (1)src.copyTo(dst)        把src矩阵中的数据拷贝到dst。(2)src.convertTo(dst,type, scale, shift)       缩放并转换到另外一种数据类型:      dst:目的矩阵      type:需要的输出矩阵类型,或者更明确的,是输出矩阵的深度,如果是负值(常用-1...

2018-05-18 14:31:50 184

原创 python 随写笔记

import tensorflow as tfimport osimport numpy as npos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'# case 2def test(): input = tf.Variable(tf.random_normal([1, 3, 3, 5])) filter = tf.Variable(tf...

2018-05-17 18:12:27 159

原创 tensorflow save and restore

# 本文件程序为配合教材及学习进度渐进进行,请按照注释分段执行  # 执行时要注意IDE的当前工作过路径,最好每段重启控制器一次,输出结果更准确      # Part1: 通过tf.train.Saver类实现保存和载入神经网络模型    # 执行本段程序时注意当前的工作路径  import tensorflow as tf    v1 = tf.Variable(tf.constant(1.0...

2018-05-17 15:36:21 133

原创 python create img

#coding:utf-8from captcha.image import ImageCaptcha # pip install captchaimport numpy as npimport matplotlib.pyplot as pltfrom PIL import Imageimport random,time# 验证码中的字符, 就不用汉字了number = ['0...

2018-05-17 13:38:19 1312

原创 cat dog

import tensorflow as tfimport numpy as npimport osimport mathdef get_files(file_dir, ratio): ''''' Args: file_dir: file directory Returns: list of images and labels ...

2018-05-17 10:36:59 202

原创 rgb2yuv

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...

2018-05-16 11:06:26 579

原创 opencv whiteFun

void whitening() {    Mat image = imread("test.jpg",IMREAD_GRAYSCALE);    double mean, stddev;    Mat temp_m, temp_sd;    meanStdDev(image, temp_m, temp_sd);    mean = temp_m.at<double>(0, 0)/25...

2018-05-15 23:07:09 150

原创 ckpt2pb

import tensorflow as tfimport os.pathimport argparsefrom tensorflow.python.framework import graph_utilMODEL_DIR = "E:/imageDS/catDog/backup/"MODEL_NAME = "frozen_model.pb"if not tf.gfile.Exist...

2018-05-15 13:26:05 401

原创 python imgtotfrecord

import tensorflow as tfimport globfrom itertools import groupbyfrom collections import defaultdictfrom PIL import Imageimport numpy as np# 将满足目录的所有.jpg文件的路径放置在image_filenames列表中# image_filenam...

2018-05-11 13:49:34 199

原创 java 普通文件加密

package com.tests;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;impor...

2018-05-08 14:33:40 753

原创 opencv seamlessClone

void htob(Mat& mat) {    for (size_t i = 0; i < mat.rows; i++)    {        for (size_t j = 0; j < mat.cols; j++)        {            if (mat.at<uchar>(i, j) == 255) {                ma...

2018-05-04 11:23:47 969

原创 android 获取系统时间

int getCurrentTime(){ struct timeval tv; gettimeofday(&tv,NULL); long time=tv.tv_sec * 1000 + tv.tv_usec / 1000; long end= 1525318113; long sum =time/1000; return -1;...

2018-05-03 15:28:21 149

空空如也

空空如也

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

TA关注的人

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