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 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 version:0.3.3 - add wjdc - add video2gif version:0.3.6 - add get_histfeature_from_one_img

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

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.3.9.tar.gz (44.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ai_tools-0.3.9-py2.7.egg (108.1 kB view details)

Uploaded Egg

ai_tools-0.3.9-py2-none-any.whl (55.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: ai_tools-0.3.9.tar.gz
  • Upload date:
  • Size: 44.9 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.3.9.tar.gz
Algorithm Hash digest
SHA256 de58374a601fa64f441b8f06510d5b4efbd3df25f0c9c21d700079bb91e48d1c
MD5 502d3ed19eab2fdd004ed4e838b505bf
BLAKE2b-256 92a3206c2f5003eb09ea3b7311aa60b2215544aefb519b6956ef576ed9ba619a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_tools-0.3.9-py2.7.egg
  • Upload date:
  • Size: 108.1 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.3.9-py2.7.egg
Algorithm Hash digest
SHA256 f029eecb13c49690c4ab6fefd9849402cbf80499c5b8d080dfd1f2e7f007b51c
MD5 3c2e16369aeb93db2ca61ee37b89a999
BLAKE2b-256 7d40d35e9fc5c87efa04f6ed62fb880b87f019686483341f1c845b51b76a5b55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_tools-0.3.9-py2-none-any.whl
  • Upload date:
  • Size: 55.4 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.3.9-py2-none-any.whl
Algorithm Hash digest
SHA256 127439ae242150270c5d69c304990687f18eea93998763266d08c8253370f83c
MD5 64b5c67e40af6911416100e4d661a1ae
BLAKE2b-256 185095590d8277a0020dff3c47daf472845f2afa49c233cceafefd45ea0dcc90

See more details on using hashes here.

Supported by

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