<?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: hao ai</title>
    <description>The latest articles on DEV Community by hao ai (@aihao16888).</description>
    <link>https://dev.to/aihao16888</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%2F3995811%2F8a8363b6-c5ff-4d6f-8860-3c1ce9b59586.png</url>
      <title>DEV Community: hao ai</title>
      <link>https://dev.to/aihao16888</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aihao16888"/>
    <language>en</language>
    <item>
      <title>I Built FaceFit: An AI Face Shape Detector with Hairstyle and Glasses Recommendations</title>
      <dc:creator>hao ai</dc:creator>
      <pubDate>Sun, 21 Jun 2026 23:10:18 +0000</pubDate>
      <link>https://dev.to/aihao16888/i-built-facefit-an-ai-face-shape-detector-with-hairstyle-and-glasses-recommendations-27cn</link>
      <guid>https://dev.to/aihao16888/i-built-facefit-an-ai-face-shape-detector-with-hairstyle-and-glasses-recommendations-27cn</guid>
      <description>&lt;p&gt;As developers, we often build tools that solve technical problems: dashboards, APIs, automation systems, internal tools, and SaaS products.&lt;/p&gt;

&lt;p&gt;This time, I wanted to build something a little more visual, personal, and practical.&lt;/p&gt;

&lt;p&gt;So I created &lt;strong&gt;FaceFit&lt;/strong&gt; — an AI-powered face shape detector that helps users find their closest face-shape match from a photo and get personalized hairstyle and glasses recommendations.&lt;/p&gt;

&lt;p&gt;You can try it here: &lt;a href="https://www.findfaceshape.net/en" rel="noopener noreferrer"&gt;FaceFit - AI Face Shape Detector&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;Many people search for questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is my face shape?&lt;/li&gt;
&lt;li&gt;Do I have an oval or round face?&lt;/li&gt;
&lt;li&gt;What hairstyles suit my face shape?&lt;/li&gt;
&lt;li&gt;What glasses look good on my face?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem is that most advice online is either too generic or requires users to manually compare their face with diagrams.&lt;/p&gt;

&lt;p&gt;I wanted to create a tool that makes this process easier.&lt;/p&gt;

&lt;p&gt;Instead of asking users to guess their face shape, FaceFit lets them upload a photo, get a closest match, and then explore style recommendations based on that result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What FaceFit does
&lt;/h2&gt;

&lt;p&gt;FaceFit currently focuses on six common face-shape categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Oval&lt;/li&gt;
&lt;li&gt;Round&lt;/li&gt;
&lt;li&gt;Square&lt;/li&gt;
&lt;li&gt;Heart&lt;/li&gt;
&lt;li&gt;Diamond&lt;/li&gt;
&lt;li&gt;Oblong&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After analyzing the uploaded photo, the tool gives users a closest face-shape match and then provides guidance such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;hairstyle directions for that face shape&lt;/li&gt;
&lt;li&gt;glasses and frame recommendations&lt;/li&gt;
&lt;li&gt;style tips based on facial proportions&lt;/li&gt;
&lt;li&gt;related face-shape guides and blog content&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not just to output a label like “oval” or “round.”&lt;/p&gt;

&lt;p&gt;The goal is to help users understand what that result means and how they can use it when choosing hairstyles, glasses, or personal style references.&lt;/p&gt;

&lt;h2&gt;
  
  
  Product idea
&lt;/h2&gt;

&lt;p&gt;A lot of AI tools stop at detection.&lt;/p&gt;

&lt;p&gt;But for a consumer-facing product, detection alone is usually not enough.&lt;/p&gt;

&lt;p&gt;If a user uploads a photo and only gets a result like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your face shape is round.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is interesting, but not very useful.&lt;/p&gt;

&lt;p&gt;So I wanted FaceFit to go one step further:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your closest match is round, and here are hairstyle and glasses directions that may work better for your facial proportions.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This makes the experience more practical.&lt;/p&gt;

&lt;p&gt;The AI result becomes a starting point for decision-making, not just a raw output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;The project is built as a modern web app.&lt;/p&gt;

&lt;p&gt;The current stack includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js&lt;/strong&gt; for routing and frontend structure&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React&lt;/strong&gt; for UI components&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI / face analysis logic&lt;/strong&gt; for estimating face-shape signals&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive design&lt;/strong&gt; for desktop and mobile users&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO-focused content pages&lt;/strong&gt; for face shape, hairstyle, and glasses guides&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also built supporting pages for different face shapes so users can continue exploring after getting their result.&lt;/p&gt;

&lt;p&gt;For example, someone who gets a round face result can continue reading about round face hairstyles or glasses recommendations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges I faced
&lt;/h2&gt;

&lt;p&gt;One of the biggest challenges was handling real-world user photos.&lt;/p&gt;

&lt;p&gt;In a perfect test environment, every image would have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;front-facing angle&lt;/li&gt;
&lt;li&gt;good lighting&lt;/li&gt;
&lt;li&gt;clear facial outline&lt;/li&gt;
&lt;li&gt;no heavy shadows&lt;/li&gt;
&lt;li&gt;no extreme camera distortion&lt;/li&gt;
&lt;li&gt;no hair covering the face&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But real users do not upload perfect test images.&lt;/p&gt;

&lt;p&gt;They upload photos with different lighting, angles, expressions, hairstyles, backgrounds, and image quality.&lt;/p&gt;

&lt;p&gt;So the product needs to be designed with uncertainty in mind.&lt;/p&gt;

&lt;p&gt;Instead of presenting the result as an absolute truth, FaceFit uses the idea of a &lt;strong&gt;closest face-shape match&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This feels more honest and more useful.&lt;/p&gt;

&lt;p&gt;Face shape is not always a strict category. Many people are between two shapes, such as oval and oblong, or round and heart. The product needs to explain that clearly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Another challenge: recommendations
&lt;/h2&gt;

&lt;p&gt;Another challenge was mapping face-shape results to meaningful recommendations.&lt;/p&gt;

&lt;p&gt;It is not enough to say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Round face → short hair&lt;br&gt;
Square face → soft hair&lt;br&gt;
Oval face → anything works&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That kind of advice is too shallow.&lt;/p&gt;

&lt;p&gt;A useful recommendation system needs to consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;face length&lt;/li&gt;
&lt;li&gt;visual width&lt;/li&gt;
&lt;li&gt;jawline softness or angularity&lt;/li&gt;
&lt;li&gt;chin shape&lt;/li&gt;
&lt;li&gt;balance between forehead, cheekbones, and jaw&lt;/li&gt;
&lt;li&gt;whether the goal is to soften, balance, lengthen, or highlight features&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where the product becomes more than a simple detector.&lt;/p&gt;

&lt;p&gt;It becomes a style recommendation experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  SEO and content strategy
&lt;/h2&gt;

&lt;p&gt;Since this is a public-facing product, I also spent time thinking about SEO.&lt;/p&gt;

&lt;p&gt;Many users do not search for the product name. They search for problems and questions.&lt;/p&gt;

&lt;p&gt;So I created content around topics like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is my face shape?&lt;/li&gt;
&lt;li&gt;How to determine your face shape&lt;/li&gt;
&lt;li&gt;Hairstyles for different face shapes&lt;/li&gt;
&lt;li&gt;Glasses for different face shapes&lt;/li&gt;
&lt;li&gt;Face shape guides for oval, round, square, heart, diamond, and oblong faces&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The idea is to make the tool discoverable through useful educational content, not only through the homepage.&lt;/p&gt;

&lt;p&gt;One example is this guide:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.findfaceshape.net/en/blog/what-is-my-face-shape" rel="noopener noreferrer"&gt;What Is My Face Shape?&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Building FaceFit reminded me that AI products are not only about the model.&lt;/p&gt;

&lt;p&gt;The model is only one part of the experience.&lt;/p&gt;

&lt;p&gt;A useful AI product also needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;clear user flow&lt;/li&gt;
&lt;li&gt;understandable results&lt;/li&gt;
&lt;li&gt;good explanations&lt;/li&gt;
&lt;li&gt;trust and privacy considerations&lt;/li&gt;
&lt;li&gt;useful next steps&lt;/li&gt;
&lt;li&gt;content that helps users take action&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For this kind of product, the output should not feel like a black box.&lt;/p&gt;

&lt;p&gt;Users should understand why they received a certain result and what they can do with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future improvements
&lt;/h2&gt;

&lt;p&gt;Some improvements I am considering next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;better result explanations&lt;/li&gt;
&lt;li&gt;stronger face-shape confidence signals&lt;/li&gt;
&lt;li&gt;more hairstyle recommendation pages&lt;/li&gt;
&lt;li&gt;more glasses and frame examples&lt;/li&gt;
&lt;li&gt;better support for different photo conditions&lt;/li&gt;
&lt;li&gt;improved mobile upload experience&lt;/li&gt;
&lt;li&gt;more educational content around facial proportions&lt;/li&gt;
&lt;li&gt;possibly makeup or beard style recommendations in the future&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Feedback wanted
&lt;/h2&gt;

&lt;p&gt;I would love feedback from the DEV community.&lt;/p&gt;

&lt;p&gt;Especially on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the product idea&lt;/li&gt;
&lt;li&gt;the user flow&lt;/li&gt;
&lt;li&gt;the AI result explanation&lt;/li&gt;
&lt;li&gt;the SEO/content structure&lt;/li&gt;
&lt;li&gt;the recommendation experience&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can try the project here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.findfaceshape.net" rel="noopener noreferrer"&gt;https://www.findfaceshape.net&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What would you improve first: the AI analysis, the recommendation system, or the user experience?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
