GithubHelp home page GithubHelp logo

3dcnn's Introduction

model2VideoHelper.py

这个脚本用来生成Model2Video project下的配置文件中的一个model.mlt,存放的是模型列表

model2Video .ini file

ini file Sample:

[path]
baseDir=/home/hejw005/Documents/3dcnn/data/ModelNet40

[model]
model=/home/hejw005/Documents/3dcnn/code/model.mlt

[matrix]
matrixFile=/home/hejw005/Documents/3dcnn/code/sample16_16_2.matrix

mlt file Sample:

bathtub/test/bathtub_0107.off
bathtub/test/bathtub_0108.off
bathtub/test/bathtub_0109.off

contact the baseDir and the item in mlt file, we can get the path of the model.

i. e. the basePath in model2VideoHelper.py is the same as the baseDir in the .ini file

.matrix file

.matrix file is the input file of the Model2Video in the .ini file

the .matrix file was generated by 3DfeatureCheck project

16_16 generate 16 * 16 viewpoints for the model 16 rotations with the x axis and 16 rotations with z axis

sample16_16.matrix

sample16_16_2.matrix

''' Key parameters: glm::mat4 proj = glm::perspective(glm::pi() / 3, 4.0f / 3.0f, 0.5f, 10.f); float angle_x = 2.0 * glm::pi() / MAX_X_LEN; float angle_z = 2.0 * glm::pi() / MAX_Z_LEN; '''


Model rectify

I have found that there are seven models have some problems with the format of .off file. They are bathtub, desk, dresser, monitor, night_stand, sofa, and table. And I created the python script of ModelNet40Rectiry.py to rectify these model files.

Useage:

python ModelNet40Rectify.py

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.