Code Monkey home page Code Monkey logo

camouflaging's Introduction

Camouflaging

Camouflage a cube in a 3D-scene

It is part of our Computer Vision (COL 780) course project at IIT Delhi.

There is a paper on the same topic from MIT CSAIL.

We tried to implement the paper along with a user interface to put the object in the scene.

Objective

To hide an Object from different viewpoints

Inputs

3D Scene

About 10-20 images of the scene are captured before any object is placed.

First to make the 3D reconstruction we have used the state-of-the-art Bundler.

It is used for estimating Structure from Motion (SfM) for Unordered Image Collections.

3D object (Cube)

A cube of small dimension (not sure about the exact range) to be placed in the scene.

For this we used Blender to create the 3D scene.

Then we import the bundle.out file to blender.

Blender doesn't support Bundler file out of the box but I found an amazing script to do so. Its included in the /src/Blender directory.

After it is imported we can place the cube in the scene.

Then to export the vertices of the cube's world coordinates I used Blender's API.

The script /src/Blender/export_vertices.py does the job.

Image

Output

Texture to be assigned to each of the faces of the cube. So that if we project that texture to that cube surface it will make it blend with the background more accurately.

We have used interface of [1] to display the output in the browser.

Toggle clicks to put the box in the scene and undo it.

Result

References

[1] Camouflaging an Object from Many Viewpoints

[2] Bundler: Structure from Motion (SfM) for Unordered Image Collections

camouflaging's People

Contributors

swapnil96 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

blendercn-org

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.