Skip to main content

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`

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.

Source Distribution

ai_tools-0.2.3.tar.gz (22.8 kB view details)

Uploaded Source

Built Distributions

ai_tools-0.2.3-py2.7.egg (65.4 kB view details)

Uploaded Egg

ai_tools-0.2.3-py2-none-any.whl (31.0 kB view details)

Uploaded Python 2

File details

Details for the file ai_tools-0.2.3.tar.gz.

File metadata

  • Download URL: ai_tools-0.2.3.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5

File hashes

Hashes for ai_tools-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9c053d670d2b5ea25161ae2a88784fcde6a56ba8ad39c371682901a2ff0c7209
MD5 364d8fec27e869b7ad40eab6f72cd05a
BLAKE2b-256 c8ac8daed6d7621d140c2fdc2b1679a00c9522c28ba4cd924786d7de21675d00

See more details on using hashes here.

File details

Details for the file ai_tools-0.2.3-py2.7.egg.

File metadata

  • Download URL: ai_tools-0.2.3-py2.7.egg
  • Upload date:
  • Size: 65.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5

File hashes

Hashes for ai_tools-0.2.3-py2.7.egg
Algorithm Hash digest
SHA256 9ffca1db719a9ce4e2edd09a41691a5e84889ba7984f52ce9d154a5221343b3b
MD5 acf62286e8c3ddf46b98e86ba8379450
BLAKE2b-256 078088ab3ccee4d3d7921dcea608c4d9f1117f7f09b910873571c37203bc7548

See more details on using hashes here.

File details

Details for the file ai_tools-0.2.3-py2-none-any.whl.

File metadata

  • Download URL: ai_tools-0.2.3-py2-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.4.5

File hashes

Hashes for ai_tools-0.2.3-py2-none-any.whl
Algorithm Hash digest
SHA256 06caa3e4890ec1f7d79ecccdd169b4fcdf88ca9b0eb3bb458a04ba0c0f00fe09
MD5 4c5a05ade6a95cf54142d501cebd4650
BLAKE2b-256 1a8e02502d09b7d026ec9441c3d0eed0a95339a26affdcce498f882c6f6c60ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page