<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roshani</title>
    <description>The latest articles on DEV Community by Roshani (@roshyy).</description>
    <link>https://dev.to/roshyy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3994482%2Fd404ce8f-04a2-40b7-94eb-64de9765f45d.png</url>
      <title>DEV Community: Roshani</title>
      <link>https://dev.to/roshyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roshyy"/>
    <language>en</language>
    <item>
      <title>I Built a Free Browser-Based Photobooth with React and OpenCV</title>
      <dc:creator>Roshani</dc:creator>
      <pubDate>Sat, 20 Jun 2026 18:29:28 +0000</pubDate>
      <link>https://dev.to/roshyy/i-built-a-free-browser-based-photobooth-with-react-and-opencv-4c1c</link>
      <guid>https://dev.to/roshyy/i-built-a-free-browser-based-photobooth-with-react-and-opencv-4c1c</guid>
      <description>&lt;p&gt;Whee Photobooth — a free, browser-based photobooth where you can pick a photo strip template, capture photos with your webcam, apply filters, doodle on your strip, and download the result. No app, no signup.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;Live site:&lt;/strong&gt; &lt;a href=""&gt;wheephotobooth.site&lt;/a&gt;&lt;br&gt;
💻 &lt;strong&gt;Frontend repo:&lt;/strong&gt; &lt;a href=""&gt;https://github.com/Roshaniiii/whee-photobooth&lt;/a&gt;&lt;br&gt;
💻 &lt;strong&gt;Backend repo:&lt;/strong&gt; &lt;a href=""&gt;https://github.com/Roshaniiii/whee-photobooth-api&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Tech Stack&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Frontend: React + Vite, deployed on Vercel&lt;br&gt;
Backend: FastAPI, deployed on Render&lt;br&gt;
Image processing: OpenCV for face-detection-based filters (blush, cat ears), plus canvas-based CSS filters on the frontend for things like vintage and grayscale effects&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How the Filters Work&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The backend uses Haar Cascade classifiers to detect faces and eyes in real time. Once detected, I calculate cheek/face positions and overlay transparent PNG assets (like a blush mark or cat ears) using alpha-channel compositing. The frontend sends a base64-encoded frame to the API, the backend processes it with OpenCV, and sends back the filtered image.&lt;br&gt;
For lighter effects (vintage, grayscale, warm tones), I went with pure CSS filters and canvas pixel manipulation instead — much faster and doesn't need a server round-trip.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Famtby10kh5v99dqw60w2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Famtby10kh5v99dqw60w2.png" alt="Camera page with filter applied" width="411" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Building the Photo Strip Templates&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Each template has a transparent PNG overlay with defined "slots" (x, y, width, height) where captured photos get drawn on a canvas. The template image draws on top, so decorations sit naturally over the photos without any clipping tricks.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1qqunf3u3kkotzsz3tlg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1qqunf3u3kkotzsz3tlg.png" alt="Template selection page" width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What's Next&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;I'm planning to add more templates and possibly a way to save/share strips with a shareable link. Would love any feedback on the UX or the build — feel free to check it out!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>python</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
