3d Object Reconstruction from Depth Maps - a noob's guesses
I want to 3D print the most comfortable (and least glasses fogging!) face mask... but my nose doesn't fit in the Montana Mask . Even their excellent shnozmod didn't sit quite right. However, it turns out that the Google Pixel 4 has pretty snazzy front camera depth map tech . Can I use it to create the perfect-fit mask? Or short of that, how about a nose-bridge that holds a cloth mask closer to my face? STEP 1: Get Data (of my FACE) Backing up to Step 0: get a picture out of the Android camera2 API. This is harder than I guessed it would be, there are a lot of callbacks, and I'm still not sure if you need a "preview surface." Lucklily Kotlin supports "Flows" which IMHO make it a lot more fun to quickly grab a few images: FlowCam(this@MainActivity, textureView, ImageFormat.DEPTH16).flow().take(4).toList(images) No sweat! I cheated a bit trying to stuff all the information into RGB pixels so I could sneak it out of the Android camera DEPTH