- 博客(17)
- 资源 (3)
- 收藏
- 关注
原创 性别识别中遇到的坑
性别识别中遇到的坑 训练数据集中的数据没有经过一定的人工确认,其中出现了明显的打标错误问题(原始图像有一定的重名),导致训练果真精度始终比较低。后期经过手动的分析,找到问题解决 始终以为自己的代码写的有问题,没有效果。实际是调试时使用笔记本跑训练,本身运行比较慢,需要较长时间才能看到算法的效果,大概10个epoch以上,而笔记本跑一个epoch需要半个小时,导致错误的以为程序出错。解决办...
2018-11-28 10:59:43
220
原创 【每日coding】高斯滤波
def gaussian_blur(path): from matplotlib import pyplot as plt import numpy as np from scipy.ndimage import filters image = plt.imread(path) image2 = np.zeros(image.shape) ...
2018-09-29 18:36:25
150
原创 【每日coding】直方图均衡化
def histeq(path): from PIL import Image from matplotlib import pyplot as plt import numpy as np image = np.array(Image.open(path).convert('L')) imhist,bins = np.histogram(image...
2018-09-29 17:24:57
181
原创 【每日coding】numpy基本操作
def change(path): from matplotlib import pyplot as plt import numpy as np img = plt.imread(path) img2 = 255-img img3 = ((100.0 / 255) * img + 100).astype(np.uint8) img4 = (2...
2018-09-26 18:35:45
165
原创 【每日coding】获取输入
def get_touch(path): from PIL import Image from matplotlib import pyplot as plt image = Image.open(path) plt.figure(figsize=(15, 8)) plt.imshow(image) print("click 3 poin...
2018-09-26 17:33:29
253
原创 【每日coding】hist
def hist(path): from PIL import Image from matplotlib import pyplot as plt import numpy as np image = Image.open(path).convert('L') plt.figure(figsize=(15, 8)) plt.gray()...
2018-09-26 17:25:55
144
原创 【每日coding】轮廓
def contour(path): from PIL import Image from matplotlib import pyplot as plt image = Image.open(path).convert('L') plt.figure(figsize=(15, 8)) plt.gray() plt.subplot(121...
2018-09-26 17:12:52
144
原创 【每日coding】绘制点线
def draw(path): from PIL import Image from matplotlib import pyplot as plt image = Image.open(path) x = [100, 100, 400, 400] y = [200, 500, 200, 500] plt.imshow(image) ...
2018-09-26 17:04:31
215
原创 【每日coding】复制粘贴
def copy_paste(path): from PIL import Image import matplotlib.pyplot as plt image = Image.open(path) box = (100, 100, 400, 400) region = image.crop(box) region = region....
2018-09-26 16:06:46
156
原创 【每日coding】旋转与缩放
def resize_rotate(path): from PIL import Image import matplotlib.pyplot as plt img = Image.open(path) img1 = img.resize((500,500)) img2 = img.rotate(90) plt.figure("image",fig...
2018-09-19 19:26:18
171
原创 【每日coding】保存图片
def save(path): import matplotlib.pyplot as plt img = plt.imread(path) plt.figure("image") plt.imshow(img) plt.pause(3) plt.imsave("out.jpeg", img) plt.imsave("out.png",...
2018-09-19 18:55:12
304
原创 【每日coding】转换为灰度图
def image_convert(path): from PIL import Image import matplotlib.pyplot as plt image = Image.open(path).convert('L') # L = R * 299/1000 + G * 587/1000+ B * 114/1000 bi_image = Imag...
2018-09-19 18:37:37
151
原创 【每日coding】读取文件并显示
def pyplot_show(path): import matplotlib.pyplot as plt img = plt.imread(path) #numpy.ndarray plt.figure("image") plt.imshow(img) plt.pause(5)if __name__ == '__main__': pat...
2018-09-19 17:57:18
191
翻译 将Firebase加入到你的Android工程中
要求:· 一个运行Android 4.0及以上版本的手机,并且Google Play services版本为15.0.0及以上。· 最新版本的Android studio如果你现在还没有创建Android Studio的工程,只是想试用下FireBase的功能,你可以下载我们的快速入门示例代码(https://firebase.google.cn/docs/samples/)。如果你使...
2018-08-27 17:52:57
715
翻译 Image Labeling
图像标注使用MK中的图像标注API,你可以一幅图像中的各个主体,而且不需要你提供任何上下文相关的信息。你可以使用基于设备的API,也可以使用基于云的API。图像标注技术可以让你了解图像中的内容。在使用这个API时,你会得到一个算法识别出的对象列表,比如说人、东西、所处的位置、活动内容等等。每一标签都会有一个分值,表示这个标签在机器学习模型中的置信度。使用这些信息,你就可以完成类似于自动图像...
2018-08-27 09:33:08
866
翻译 ML Kit介绍
给移动开发者的机器学习ML Kit是一个强大易用的工具包,它将谷歌在机器学习方面的专业知识带给了普通的移动应用开发者。针对移动设备进行 了优化机器学习可以让你的应用更有吸引力,更加的个性化,并且提供了已经在移动设备优化过的解决方案。由Google专业知识构建ML Kit提供的技术已经在Google内部长期使用。全面而且易于使用你可以使用现有的解决方案(基于API),也可...
2018-08-24 13:52:03
7556
转载 转载:写给理工科人看的乐理
1. https://www.cnblogs.com/devymex/p/3385179.html2. http://www.cnblogs.com/devymex/p/3387054.html3. http://www.cnblogs.com/devymex/p/3389620.html4. http://www.cnblogs.com/devymex/p/3386886.html5. ht...
2018-07-10 10:04:04
761
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人