Building an AI-Powered Next.js 14 Web App with People Detection & Recording | using ShadcnUI

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Learn how to build an AI-powered web app using ShadcnUI & Next.js 14. This tutorial will walk you through people detection & recording features, incorporating TailwindCSS and OpenAI technology TensorflowJS. Ready to elevate your web development skills along with Artificial Intelligence? Let's get started!
    Live Website: watchtower-ai.vercel.app/
    Github repository: github.com/KoushikJit/watchto...
    Timestamps :
    0:00 Intro
    1:39 Creating a Hello World app
    4:52 Installing UI Library shadcn/ui
    7:12 Adding Webcam
    9:14 Layout using tailwind.css
    15:53 Implementing Dark Mode
    19:20 Mirror webcam video
    21:00 More layout using shadcn & tailwind
    25:50 Using Sonner from shadcn/ui
    26:54 Adding animation to Buttons
    27:59 Popover component for volume slider
    31:30 Adding audio for notification sounds
    34:48 Layout code for wiki section
    37:20 Implementing Tensorflow
    39:08 Loading cocossd model
    42:16 Loading page when model is loading
    44:46 Running predictions with model
    50:05 Draw objects on canvas
    58:45 Updating draw logic for mirrored video
    1:03:38 Add recording feature
    1:18:00 Add buttons to wiki section
    1:20:03 Image capture
    1:21:55 Adding social handles
    1:23:06 Deployment
    I created a Next.js 14 website that uses artificial intelligence to detect people, records a 30-second clip, and saves it for review later.
    In this video I'll show how I made it from scratch, and deployed it to the cloud, so that everyone can use it.
    The Link of the actual website has been shared below.
    You don't need any prior knowledge of either NextJS, Tensorflow, or any of the packages that I am going to use.
    All you need is NodeJS installed and a text editor like VS Code.
  • Věda a technologie

Komentáře • 47

  • @raymondmichael4987
    @raymondmichael4987 Před 6 měsíci +2

    This looks great buddy 😊

  • @pravinsingh7605
    @pravinsingh7605 Před měsícem

    Amazing! keep on adding such content!!!! on nextjs and tensorflow I will follow you along

  • @smartjackasswisdom1467
    @smartjackasswisdom1467 Před 6 měsíci +8

    Please make more Next14 + Tensorflow, this is a great project

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci +1

      Thank you for your feedback! I'm glad you enjoyed the project. I'll definitely consider making more videos on Next.js 14 and Tensorflow in the future.

    • @dmytrodrozdov4314
      @dmytrodrozdov4314 Před 4 měsíci

      @@maplearcadecode That's a great idea for a new project using 2 or 3 dimensional data for time series forecasting using Tensorflow.

  • @Adrian_Galilea
    @Adrian_Galilea Před 6 měsíci

    Very good work!
    Thanks for sharinng!

  • @insensibility
    @insensibility Před 6 měsíci

    This is great!

  • @artoriasdenostradamus3628
    @artoriasdenostradamus3628 Před 6 měsíci

    thanks for the knowledge

  • @thomascarter4248
    @thomascarter4248 Před 6 měsíci

    this is so interesting!

  • @himanshu6897
    @himanshu6897 Před 5 měsíci

    That's really awesome 🎉

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 Před 6 měsíci

    Excellent

  • @tanmaypant8493
    @tanmaypant8493 Před 5 měsíci

    This is SOOOOOO COOOOOOOL!!!

  • @hamzath6007
    @hamzath6007 Před 5 měsíci +2

    buddy u are great please upload more node js next js ai projects

    • @maplearcadecode
      @maplearcadecode  Před 5 měsíci

      Thank you for your kind words Hamza. I’ll surely do :)

  • @netcharger02
    @netcharger02 Před 5 měsíci

    Super

  • @anime_on_data7594
    @anime_on_data7594 Před 6 měsíci

    hey this seems really amazing. i am into computer vision but haven't integrated it with nextjs

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci +1

      Thanks for your comment! I'm glad you find the video amazing. Integrating computer vision with Next.js can open up a lot of possibilities. Give it a try!

  • @mbm.editzz
    @mbm.editzz Před 6 měsíci

    legend

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci

      I appreciate your kind words! It means a lot to me that you enjoyed the video.

  • @raymondmichael4987
    @raymondmichael4987 Před 6 měsíci

    For some reasons I don't know Why; but I get "Cannot find module 'next-themes' or its corresponding type declarations.ts(2307)"
    But I have installed the package just fine, why is that?

  • @mbm.editzz
    @mbm.editzz Před 6 měsíci +1

    pls make more of these

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci

      Thank you for your support! I'm glad you enjoyed the video. I'll definitely consider making more content like this in the future.

  • @londelidess
    @londelidess Před 6 měsíci +1

    Wait what. I found a genius guy lol

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci

      Thank you so much for your kind words! I'm glad you found the video helpful.

  • @arijit-og5zp
    @arijit-og5zp Před 3 měsíci

    Pls add a featurs that if a person does not look into the camera for a particular time, then a warning message and sound pops. This feature will be useful in online exams

  • @mhshakil1606
    @mhshakil1606 Před 6 měsíci

    wow

  • @Mathster_live
    @Mathster_live Před 3 měsíci +1

    I can't seem to have the webcam work on mobile browsers, it doesn't ask for permission to use the camera and even when I always allow it, the webcam area is blank for some reason.

    • @haiffy
      @haiffy Před 2 měsíci

      Because you can't use webcam in mobile through webapp

  • @pablocarvalho9826
    @pablocarvalho9826 Před 5 měsíci

    Nice! you have 1 my sub!!
    I have a question: What configuration / extensions are you using to format and getting the automopletion? I have prettier and in React i always get the autocomplete but neither of those are working with Next (this is my first next project)
    Thanks!!

    • @maplearcadecode
      @maplearcadecode  Před 5 měsíci +2

      Thank you for subscribing :)
      The issue seems to be with the typescript extension.
      Check if TypeScript is globally installed with `tsc --version`. If not, install it globally using `npm install -g typescript`.
      After this open command palette in VSCode with (shift+command+p) and search 'typescript: Restart TS Server'
      After this whenever you are typing, you can hit (control + space) to make the code completion suggestions box to pop up.
      ____________________________________________________
      For React code snippets I am using "ES7+ React/Redux/React-Native snippets". But I am assuming you already have it.
      for tailwindcss: "Tailwind CSS IntelliSense"

    • @pablocarvalho9826
      @pablocarvalho9826 Před 5 měsíci

      Thank you so much! ill try that@@maplearcadecode

  • @shadytiger160
    @shadytiger160 Před 6 měsíci +1

    Please make more videos🙏

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci +1

      Hey, thanks for the comment! I'll try my best to make more videos that you'll enjoy. Stay tuned!

    • @shadytiger160
      @shadytiger160 Před 6 měsíci

      @@maplearcadecode i would love to see more videos❤️ Thankyou

  • @lazy2492
    @lazy2492 Před 6 měsíci

    wait next video

  • @jhonsnow534
    @jhonsnow534 Před 6 měsíci

    can you make more projects using ai + web development???

    • @maplearcadecode
      @maplearcadecode  Před 6 měsíci +1

      Sure, I'll make more projects using AI and web development

  • @arupde6320
    @arupde6320 Před 6 měsíci +1

    be regular

  • @timmusharapov9257
    @timmusharapov9257 Před 5 měsíci +5

    TensorflowJS isn't "OpenAI technology", that's Google open-source library :)

    • @maplearcadecode
      @maplearcadecode  Před 5 měsíci

      I am afraid you have misunderstood what I said. Do take a look at the github repository of tensorflow JS here: github.com/tensorflow/tfjs.
      Cheers :)

    • @akashdeb9823
      @akashdeb9823 Před 5 měsíci

      LOL dont edit your comment after OP corrected you

    • @timmusharapov9257
      @timmusharapov9257 Před 5 měsíci

      @@akashdeb9823 I edited before that ))

  • @JRichens
    @JRichens Před 6 měsíci

    Was working through this, but using a HTML video being streamed in, which is fine because model.detect takes HTMLVideoElement. However I get the error:
    Unhandled Runtime Error
    SecurityError: Failed to execute 'texSubImage2D' on 'WebGL2RenderingContext': Tainted canvases may not be loaded.
    Any ideas why I might be getting this? Thanks!

    • @JRichens
      @JRichens Před 6 měsíci

      Do I really need to do this!?!?
      Capture frames from the HTMLVideoElement: Since the video stream is coming from an HTMLVideoElement, you would need to capture individual frames from this element and pass them to the model for object detection. You can do this by drawing the current frame onto a canvas and then converting this canvas into an image tensor that can be passed to the model.