Coder Social home page Coder Social logo

image_scripts's Introduction

differenceBetweenImages.py

  • Calc the difference between two frames, and save the next frame that difference is less than a threshold

Requirements

  • Python 2.7
  • pip install opencv-python==3.4.2.16
  • pip install opencv-contrib-python==3.4.2.16
  • pip install termcolor

Optionals

  • Change the variable frame_start to start the video in a specific frame.
  • Change the variable pathToVideo to point your video path.
  • Change the variable folderToSave to point to folder that save the frames.
  • Change the variable thresholdDifference to change the minimum threshold at compare two frames.

convertJpgToPng.py

  • Convert images into a folder from jpg to png

Requirements

  • Python 3.5
  • pip3.5 install --user Pillow==2.2.1

Optionals

  • Change the variable mypath to point folder that contains images in jpg format.
  • Change the variable destPath to point folder that will saved the images in png format.

getAllImages.py

  • Get all images and mask from dataset generated by app.labelbox.com, and put a common name in both.

Requirements

  • Python 3.6
  • pip3.6 install --user termcolor
  • pip3.6 install python-csv

Optionals

  • Change the variable pathDataset to point the dataset path
  • Change the variable dirImageLabel to point folder that will saved the originals images.
  • Change the variable dirMaskImage to point folder that will saved the mask images.
  • Change the variable prefixNameImage to change the images name prefix
  • Change the variable zerosLeft quantity of zeros of left in image name

AdjustMask.py

  • Adjust the image mask generate by app.labelbox.com, from transparent and white to red (road) and pink remaining

Requirements

  • Python 3.6
  • pip3.5 install --user Pillow==5.2.1

Optionals

  • Change the variable mypath to point folder that contains the originals masks
  • Change the variable destPath to point folder that will saved the changed mask.

image_scripts's People

Contributors

juancardoso avatar

Watchers

James Cloos avatar

Forkers

joao-pedr

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.