Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

basic tools for ai

Project description

Info

ai_tool 2018-05-25

Author: Zhao Mingming <471106585@qq.com>

Copyright: This module has been placed in the public domain.

version:0.0.6

Functions:

  • draw_curve: draw a curve in a image and return the image
  • image2text: translate a image to be text style
  • save2server: save a image on the local server
  • image2bw: turn a gray image to be a binary weights image

How To Use This Module

funny cat picture
  1. example code:
x=np.array([-0.2,0.3,0.4,0.5])
y=np.array([0.2,0.4,0.1,-0.4])
norm(x,np.array([0,500]))

img=draw_curve(x,y)
img=draw_curve(x,y,title='my title',xlabel='my x label',ylabel='my y lable')

img=cv2.imread('../examples/faces/2007_007763.jpg')
img_gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

# img2bw
img_bw= image2bw(img_gray)


print img.shape
image2text(img,(80,40))
image2text(img,(80,40))

Refresh

20180531

Project details


Release history Release notifications

This version
History Node

0.0.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ai_tools-0.0.6-py2.7.egg (9.8 kB) Copy SHA256 hash SHA256 Egg 2.7 May 31, 2018
ai_tools-0.0.6-py2-none-any.whl (6.9 kB) Copy SHA256 hash SHA256 Wheel py2 May 31, 2018
ai_tools-0.0.6.tar.gz (5.6 kB) Copy SHA256 hash SHA256 Source None May 31, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page