随笔分类 - python
摘要:TensorBoard:Tensorflow自带的可视化工具。利用TensorBoard进行图表可视化时遇到了图表不显示的问题。 环境:Ubuntu系统 运行代码,得到TensorFlow的事件文件logs,例如路径为:/home/wang/tensorflow/logs, logs中又包含trai
阅读全文
摘要:def read_img(path): imgs = [] labels = [] # classs = [] classs = os.listdir(path) for idx, folder in enumerate(classs): cate = os.path.join(path, folder) for im i...
阅读全文
摘要:1 from numpy import zeros,array 2 from math import log 3 4 def loadDataSet(): 5 #词条切分后的文档集合,列表每一行代表一个email 6 postingList=[['your','mobile','number','is','award','bonus','prize'...
阅读全文
摘要:自己写的制作 city的语义分割tfrecord 适用于deeplabv3+ 自用
阅读全文
摘要:对图片进行索引,存入数据库中,实现快速搜索打开 这个任务分为两步: 第一步:建立索引 第二部:界面+索引比对:
阅读全文
摘要:626 , 1200 , 3224 , 224 , 349.0223642172524 , 83.06666666666666137.00000000000003 , 445.0 原图:↑
阅读全文
摘要:1 # -*- coding: utf-8 -*- 2 3 import os 4 import sys 5 import numpy as np 6 import cv2 7 8 IMAGE_SIZE = 224 9 10 11 # 按照指定图像大小调整尺寸 12 def resize_image(image, height=IMAGE_SIZE, width=IMA...
阅读全文
摘要:#利用openCV裁脸import cv2 def draw_rects(img, rects): for x, y, w, h in rects: cv2.rectangle(img, (x, y), (x+w, y+h), (255, 255, 00), 2) cv2.circle(img, (x, y), 1, (0, 0, 255), 10) ...
阅读全文
摘要:1 string = "word 2 3 4 5 6 7" 2 string = ",".join(string.split()) 3 4 5 6 import numpy as np 7 import pandas as pd 8 a = pd.read_csv('list_landmarks_a
阅读全文
摘要:附上自己从wiki.mat中提取出来的标签 https://pan.baidu.com/s/1dGT6ghV 再附上wiki的数据集地址 https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/
阅读全文
摘要:附上自己从wiki.mat中提取出来的标签 https://pan.baidu.com/s/1dGT6ghV 再附上wiki的数据集地址 https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/
阅读全文
摘要:1 from scipy import misc 2 import tensorflow as tf 3 import detect_face 4 import cv2 5 import matplotlib.pyplot as plt 6 # %pylab inline 7 8 minsize = 20 # minimum size of face 9 thresho...
阅读全文
摘要:https://pypi.python.org/simple/ http://www.lfd.uci.edu/~gohlke/pythonlibs/
阅读全文
摘要:人脸识别常用数据集大全(12/20更新) 原文首发地址:人脸识别常用数据集大全(12/20更新) - 极市博客 1.PubFig: Public Figures Face Database(哥伦比亚大学公众人物脸部数据库) The PubFig database is a large, real-w
阅读全文
摘要:用 opencv和numpy进行图片和字符串互转,并保存至 json 转至 https://zhuanlan.zhihu.com/p/27349847 受 用 base64 进行图片和字符串互转,并保存至 json 作者启发,试了试使用opencv来读取图片,然后用numpy转为list,再转为js
阅读全文
摘要:1 from PIL import Image 2 import face_recognition 3 4 # Load the jpg file into a numpy array 5 image = face_recognition.load_image_file(".jpg") 6 7 # Find all the faces in the image 8 face...
阅读全文

浙公网安备 33010602011771号