Coder Social home page Coder Social logo

object-position-label's Introduction

object_position_label

Statement

  • Crop the object in images by hand.
  • Record the position(top left point and bottom right point) of this object.

Details

Input an image into the function get_position(image, title), you can get a window of this image.

  • For the first time of clicking the left button of your mouse, you can pin the top left point of the box.
  • For the second time of clicking the left button, you can pin the bottom right point of the box.
  • For the third time of clicking the left button (which means make sure to crop), this function will return thest two points' location (x1, y1), (x2, y2).
  • Before make sure to crop the box, you can click right button of your mouse to cancle the pins of the box.

And what the demo does is that

  • invoke the function get_position(image, title) to get two points' location.
  • Crop the box, save the box to dst_dir .
  • Record these two points' location to record_file.
  • Move the input image to done_dir.

Environment

  • python3.5.2
  • opencv3.2.0

object-position-label's People

Contributors

alexhex7 avatar

Stargazers

 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.