Quick Tweet Storm β›ˆ

How does AI bounding box detection work?

🧠 Learn in 30 seconds

#100DaysOfCode #CodeNewbie #MadeWithTFJS #MachineLearning #ComputerVision Image
It looks so simple when #AI does it right?

But #machinelearning doesn't give you an image, it gives you data. It's up to you to make it look simple. Image
You might think a #FrontEnd box gives you four values, and you're right, but it only gives you TWO points. From that you can infer a box to draw with #html5. Image
However... it very rarely gives you one box. Lots of times you get a whole bunch of boxes!

This is because the #NeuralNetwork is often trained to return X results no matter what. They just adjust the confidence. Image
Each of these boxes will have a score of confidence, and it's your job to identify if they are identifying the same object, or separate objects for proper #DataVisualization.

There's some well known algorithms to take the best of the best from overlapping results. Image
Once you have the boxes you're interested in, you can draw them easily with a canvas element.

In #JavaScript you just overlay a canvas on the image and draw rectangles there. Image
The final result lets you draw clean object detection on #Web.

Now you have an amazing website that can use #ML to detect objects in photos and video! Image
Want the code to do this? It's all in Chapter 6 of my @OReillyMedia book with a deep explanation.

If you know JavaScript, you can implement @TensorFlow

Learn more about the book here: infinite.red/learning-tenso…
Looking forward to the cool things you decide to make!

Start your #100DaysOfML now

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh

Keep Current with Gant (mad science) Laborde

Gant (mad science) Laborde Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!


Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @GantLaborde

1 Mar
Incoming Tweet Storm β›ˆ

I'm so happy to announce my #TensorFlowJS book with @OReillyMedia

The book is geared towards #JavaScript devs looking to learn #AI / #ML


It's been a complete pleasure to work with #OReillyMedia

They are professionals, but they let me keep my personality which I feel is critical to all the #CodeNewbie folk in #tech.

I've learned a lot from the #DEVCommunity.

@TensorFlow is a new way of thinking for most #JSdevs. So each chapter opens with a quote and ends with a challenge.

I found it was important to get your hands dirty as early as possible to make the content engaging and fun πŸŽ‰πŸŽ‰

Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!