Skip to content

Instantly share code, notes, and snippets.

View aharbick's full-sized avatar

Andrew Harbick aharbick

View GitHub Profile

Introduction

The Openscan project https://openscan.eu is a really cool 3D printing and scanning project. It systematically takes a series of photos that can be stitched together into a 3D model using photogrammetry. Thomas Megel the creator of OpenScan has a really cool cloud-based service that can take the raw photos and turn them an STL model for you. You can read more about it here: https://github.com/OpenScanEu/OpenScan/blob/master/temp/README.md

Another way to take advantage of photogrammetry is using AliceVision's Meshroom. Prusa Research did a nice explainer/tutorial in this blog post: https://blog.prusaprinters.org/photogrammetry-2-3d-scanning-simpler-better-than-ever_29393/

The main "catch" with Meshroom is that it requires CUDA and hence an NVIDIA graphics card. It didn't have an NVIDIA card (and didn't want to figure out how to run in the cloud) but I did have a Jetson Nano 2GB https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/jetson-nano/education-projects/

The documentati

Keybase proof

I hereby claim:

  • I am aharbick on github.
  • I am aharbick (https://keybase.io/aharbick) on keybase.
  • I have a public key ASB_KxjkwNjbiJdpPuDjm73QF8q7wnMPvoEpbU5eMDYCDgo

To claim this, I am signing this object:

@aharbick
aharbick / Dropping capped collections
Created April 14, 2011 17:33
If you drop a capped collection and re-create it with different size params then data files never get cleaned up.
require 'pp'
@conn = Mongo::Connection.new
def randomString (string_length)
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
randomstring = '';
0.upto(string_length) do
rnum = (rand * chars.size).floor
randomstring += chars.slice(rnum,rnum+1);
end