GithubHelp home page GithubHelp logo

qr-onwall's Introduction

QR-OnWall

this Code uses each of the follwing packages:

Introduction

This code was a part of my Design Driven Project at the construction robotic master program at the RWTH Aachen university.

Project Description

The IFC file format can be used to describe building and construction data. The format is commonly used for Building Information Modelling.

A Quick Response code is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric, or Kanji symbols)

This code searchs in the IFC file on walls and gives every wall a QR-code with the Global ID of each wall.

How to Use the Project

  1. import the requested packages

    import ifcopenshell
    import qrcode
  2. open the ifc file and find the walls in it

    ifc_path = '.\BIM_Building_Model.ifc'
    
    m = ifcopenshell.open(ifc_path)
    walls = m.by_type('IfcWall')
  3. generate for each wall a qr-code

    Wall_guid = []  
    for wall in walls:
        Wall_info = wall.get_info()
        Wall_id =  Wall_info['id']
        data = Wall_info['GlobalId']
        Wall_guid.append(data)
        filename = (f"wall_{Wall_id}.png")
        img = qrcode.make(data)
        img.save(filename)

QR-codes

Credits

credits go to mr Thomas Krijnen the developer of the Ifcopenshell library

also to mr Lincoln Loopthe developer of the python-qrcode library

License

Licensed unter the MIT License

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.