Giter VIP home page Giter VIP logo

resizeimgforml's Introduction

About it

resizeImgForML is a package for resize images for machie learning.

Usage 使い方

  • put one directory path to detect all of images at the directory and resize for MNIST ML model

同じディレクトリ内の複数のjpeg画像をMNIST学習モデルに読み込ませることができるように変換する

example code コード例

from resizeImgForML import *
Resizer = Resizer()
img = Resizer.detectAllJpgImg("./")
Resizer.resizeBlackBackedMultipleImg(img,28)
  • put one path to detect image and resize for MNIST ML model

ひとつのjpeg画像をMNIST学習モデルに読み込ませることができるように変換する

example code コード例

from resizeImgForML import *
Resizer = Resizer()
img = Resizer.detectOneJpgImg("./output0.jpg")
Resizer.resizeBlackBackedOneImg(img,28)
  • Get all png images in the same directory and convert to jpg (implemented from ver0.0.7)

同じディレクトリ内のpng画像を全部取得して、jpgに変換する(ver0.0.7より実装)

example code コード例

from resizeImgForML import *
resizer = Resizer()
imglist = resizer.detectAllPngImg("./")
resizer.convertPng2Jpg(imglist,".")

Jpg images are saved in the same directory with serial numbers. When generating learning data from screenshots, it was sometimes png, so I implemented it.

同じディレクトリに連番でjpgイメージが保存されます。 スクリーンショットから学習データ生成する際はpngになっている場合があったので実装しました。

resizeimgforml's People

Contributors

k-mawa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.