Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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`
`version:0.1.0`
- `add func roc`
- `add func photo_stiching`
- `add func flv2img`
`version:0.1.1`
- `add func microsoft_demo`
`version:0.1.3`
- `add func luminance`
`version:0.1.4`
- `add func dbop ,opreate the database`
`version:0.1.5`
- `add func util, make the print has time`
`version:0.1.6`
- `add func txt2html, make the txt 2 html table`
`version:0.1.8`
- `modify file microsoft_demo, add zprint into it`
`version:0.1.9`
- `modify roc_yolo`
`version:0.2.1`
- `modify insert_image2db, can insert data into 2 database`
`version:0.2.3`
- `add class2info.py function is get_class_info`
`version:0.2.4`
- `add darkchannel.py to decreate the haze of an image`
`version:0.2.7`
- `add lumi_classfy to luminance.py`
`version:0.3.1`
- `add modify video2img`


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
======================
.. image:: funny.gif
:height: 100px
:width: 100px
:alt: funny cat picture
:align: center

1. example code:


.. code:: python

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
======================
.. image:: funny.gif
:height: 100px
:width: 100px
:alt: funny cat picture
:align: center

1. example code:


.. code:: python


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
========
20180821


Project details


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.3.2-py2.7.egg (89.8 kB) Copy SHA256 hash SHA256 Egg 2.7 Oct 10, 2018
ai_tools-0.3.2-py2-none-any.whl (44.9 kB) Copy SHA256 hash SHA256 Wheel py2 Oct 10, 2018
ai_tools-0.3.2.tar.gz (36.5 kB) Copy SHA256 hash SHA256 Source None Oct 10, 2018

Supported by

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