Coder Social home page Coder Social logo

face-crop's Introduction

README

A tool for creating face detection ground-truth either from pre-cropped dataset or manually cropping.

How do I get set up?

  • C++11
  • boost 1.58 (on linux: libboost-all-dev)
  • OpenCV 3.2

How to Run

  • ./facecrop [-f] [-d] <FILE_OR_DIRECTORY> -g <GT_FILE>
    • -f filename, only one file will be processed
    • -d directory, all files in directory will be processed
    • -g gt_file, tsv file with file_name, x, y, width, height

Crop Modes

  • Corner: Mouse click will set the top-left corner and move the rectangle
  • Douple corner: Mouse click will first define the top-left corner and then the bottom-right one
    • Rectangle will be created only after the second click

General Remarks

  • After cropping, hitting RET, the image will be moved to done and the cropped part to cropped
  • If skipped, hitting ESC, the image will be cropped later, being moved to later
  • If no face is present, hitting SPACE will move the image to no-face
  • Crop Preview window shows a crop preview

Mouse Commands

  • Left click and drag anywhere in the image to move the crop rectangle
  • Right click anywhere in the image to move the crop rectangle to the clicked position

Keyboard Shortcuts

  • q - quits the program
  • RET - crop the image like shown in the Crop Preview window
  • ESC - skips the image (move to later)
  • Arrows - move the rectangle moveUnit pixels
  • 1, 2, 3 ... 0 - changes the moveUnit to 1, 5, 15 ... 500, 1000 pixels per move
  • z - alternates between Normal Mode and Split Crop Mode
  • SPC - move image to no-face
  • i - invert colors (only displayed image, not the cropped result)

face-crop's People

Contributors

rbbernardino avatar

Watchers

 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.