Settings

Theme

Show HN: A webcam made out of HTML checkboxes

bryanbraun.com

202 points by bryanbraun · 42 comments

Reader

23 threads
bryanbraunOP

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

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

  • oksurewhynot

    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

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

  • dafoex

    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

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

  • kevincox

    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

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

xg15

"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

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

thih9

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

AquiGorka

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

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

  • e_y_

    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

    a rare pleasure from a bygone era..

julioc

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

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

samdg

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

Hah, this is like a video with contentEditable = true

runnr_az

Great / stupid project… nice work!

JBiserkov

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

rnoorda

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

diskzero

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

jcun4128

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

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

  • cpitman

    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

    Dithering is quite a tough problem, especially video.

AdamJacobMuller

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

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

ElijahLynn

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

simlevesque

Gotta love the "back to CheckboxLand" link

henryackerman

Nice! I have one question though: _why?_

togaen

Doesn’t work for me on iPhone.

easton_s

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