Giter Club home page Giter Club logo

roi_layout's Introduction

(Roi Layout & Bbox Map)

Redeploy the roi extracted from the large image to the small image.

Description

In the field of computer vision, there is often too much redundant information in large images. After preprocessing, the areas of human interest are relatively scattered, which is not conducive to centralized processing. We redeploy these areas to facilitate subsequent centralized processing.

note

Getting Started

python 3.5

C++

  • 1.Building && run
# opencv == 3.3.1
$ mkdir build && cd build
$ cmake .. && make -j8
$ ../bin/roi_layout
  • How to get layout rects? use get_layout().
  • How to get layout image? use get_layout_mat().
  • How to infer layout result? use TryLayout().
  • How to map box in layout image to orignal image? use MapLayoutBoxToROI().

If you want to get a different deployment shape, just fix the following sentence in file.

  /**
   * ROI_layout.cpp
   * void ROILayout::FindBestLocation(Rect &rect)
  **/
  float score = ratio_wh * ratio_area;  // Can be customized.

TODO

  • C++ version adds gap
  • Support merge Adjacent rectangle
  • Replace IOU with CIOU
  • Expand rectangle

License License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Citation

Please cite roi-layout in your publications if it helps your research:

@misc{roi_layout,
    Author = {niovl},
    Title = {{roi-layout: Redeploy the roi Extracted From the Large Image To the Small Image.}},
    Howpublished = {\url{https://github.com/niovl/roi_layout}},
    Year = {2020}
}

roi_layout's People

Contributors

niovl avatar

Stargazers

 avatar  avatar  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.