Introduction to machine learning Python implementation of simple image classification

Source: Internet
Author: User
Tags function definition

Small task: Achieve picture classification


1. Picture material

Python bulk compress jpg images: PiL library resize

http://blog.csdn.net/u012234115/article/details/50248409

2. Environment Construction

Installation version of Python under Windows comparison 2.7 vs 3.6
Https://pypi.python.org/pypi


Installation of the PIL Library under Windows

Https://pypi.python.org/pypi

Installation of the PIL Library under Windows

http://zjfsharp.iteye.com/blog/2311523


Installation and upgrade of PIP under Windows

http://blog.csdn.net/hello_programming/article/details/53981376

Pip Download acceleration

Http://www.jb51.net/article/98401.htm


3. Implementing the language

Python

https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000

For use for X in range (8)

function definition def variable parameter: Def calc (*numbers)

Slice (Slice) operator L[0:3]

isinstance function Map/reduce function Fiter function sorted function lambda x:x * x anonymous function @log Adorner

Class usage _private private variable class Dog (Animal): Inheritance constructor _init_

Use of the OS file path

Chinese path not supported


4. Classification algorithm

Kmeans algorithm Idea

http://blog.csdn.net/qll125596718/article/details/8243404/


5. Classification criteria

Selection and quantification of eigenvalues from simple to difficult

RGB to HSV

RGB to Grayscale value

Introduction to machine learning Python implementation of simple image classification

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.