Settings

Theme

Show HN: A webcam made out of HTML checkboxes

bryanbraun.com

202 points by bryanbraun 5 years ago · 42 comments

Reader

bryanbraunOP 5 years ago

Some background: a little while ago I built a library called "Checkboxland" at the Recurse Center for rendering stuff into a checkbox grid. I recently made an update that lets it render arbitrary images and video. The video feature supports HTML MediaStream, which is what powers the webcam demo.

  • themodelplumber 5 years ago

    Recurse Center for Rendering Stuff into a Checkbox Grid, 1 Checkbox Drive, etc.

  • oksurewhynot 5 years ago

    I was there for this! I actually use this as an example of a perfect mini-batch project to anyone who's skeptical of what they can get done in a week.

  • Technetium 5 years ago

    There's no way to change camera input. Shame I couldn't try this demo.

  • dafoex 5 years ago

    This is really fun! I'm not sure of the practicality (particularly with the QR demo, my boxes don't turn bright blue like yours apparently do, so its pretty invisible to a scanner) but if it looks cool then that's reason enough in itself

    • bryanbraunOP 5 years ago

      Yeah, the boxes are bit brighter by default in Safari, so that's the browser I tend to use for screenshots and video.

  • kevincox 5 years ago

    You hint in the docs that you make some efforts to render efficiently. Are there any write-ups on the optimizations or it is just as simple as updating only when needed?

  • jdorfman 5 years ago

    This is brilliant. Amazing work. It even caught my ceiling fan running in the background.

xg15 5 years ago

"Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should."

(Just kidding, that's awesome!)

superasn 5 years ago

I think if you hide the video and just show the checkboxes it will be freaky cool.. still is though.

thih9 5 years ago

Feature request: I wish it had a demo that doesn’t require granting camera access. Maybe a short sample video or gif?

AquiGorka 5 years ago

Oh wow. My hat is off for you. Don't bother with the why's! Doing this for fun should be a good enough reason!

ushakov 5 years ago

the demo was exactly what i expected when i've read the title

  • e_y_ 5 years ago

    To nitpick a bit, my first thought was "how do HTML checkboxes detect light"? It'd be more accurate to call it a checkbox video renderer that uses a webcam as input.

  • 0des 5 years ago

    a rare pleasure from a bygone era..

julioc 5 years ago

Checkout the new CSS property `accent-color`, which allows you to customize checkbox colors

- https://web.dev/accent-color/ - https://developer.mozilla.org/en-US/docs/Web/CSS/accent-colo...

brundolf 5 years ago

Reminds me of: https://youtu.be/zh8MiNzKkiA

samdg 5 years ago

A colleague of mine created the EmojiVision app for iOS: https://apps.apple.com/us/app/emojivision/id1472824315

It's similar, but with different sets of emojis and variable fidelity. Very interesting results!

evv 5 years ago

Hah, this is like a video with contentEditable = true

runnr_az 5 years ago

Great / stupid project… nice work!

JBiserkov 5 years ago

https://www.bryanbraun.com/checkboxland/

rnoorda 5 years ago

Love this! Your site sounded familiar, and I realized you're the guy with the After Dark screensavers. Thanks for doing interesting things.

diskzero 5 years ago

What a complete waste of time. I love it!!!

jcun4128 5 years ago

No repo? Curious on a high level how it works, averages nearby pixels or something, or just makes the video really low resolution and each large block is a checkbox?

Would think title should say "webcam video output" or something

There is the minified demo.js

javawizard 5 years ago

This is great! It would be better if it dithered though.

  • cpitman 5 years ago

    I took a stab at a basic Floyd-Steinberg dither, but at the low resolution and with even really subtle video camera noise, the result was not great.

    Until I took my glasses off... with just a bit of blur, the effect is pretty cool. Probably doesn't make sense to push a feature though that only works when you squint at it!

  • amelius 5 years ago

    Dithering is quite a tough problem, especially video.

AdamJacobMuller 5 years ago

Your were so preoccupied with whether or not you could, you didn't stop to think if you should.

No, but, seriously this is hilarious.

wilg 5 years ago

you made a whole page of checkboxes that i can't check AUUUUGHHH

ElijahLynn 5 years ago

The latency on this is really low, meaning good! Well done!

simlevesque 5 years ago

Gotta love the "back to CheckboxLand" link

henryackerman 5 years ago

Nice! I have one question though: _why?_

togaen 5 years ago

Doesn’t work for me on iPhone.

easton_s 5 years ago

gold star my friend!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection