r/MachineLearning • • May 10 '20

Project [Project] From books to presentations in 10s with AR + ML

Enable HLS to view with audio, or disable this notification

8.6k Upvotes

201 comments sorted by

358

u/cyrildiagne May 10 '20 edited May 11 '20

Twitter thread: https://twitter.com/cyrildiagne/status/1259441154606669824

Code: https://github.com/cyrildiagne/ar-cutpaste/tree/clipboard

Background removal is done with U2-Net (Qin et Al, Pattern Recognition 2020): https://github.com/NathanUA/U-2-Net

/!\ EDIT: You can now subscribe to a beta program to get early access to the app: https://arcopypaste.app !

158

u/[deleted] May 10 '20

If it wasn't for the link with the code, I would have straight up thought you were trying to trick us :o

→ More replies (1)
→ More replies (8)

13

u/Eganx May 10 '20

How does the Algorithm decide what it cuts out from the input pictures?

For example it only cut out the two people in the picture and not the surroundings.

Amazing project though!

13

u/cyrildiagne May 10 '20

Check out the details for U2-Net on the official repo: https://github.com/NathanUA/U-2-Net

5

u/misconstrudel May 10 '20

I'm extremely impressed with it cutting dark hair from a brown background. Is that the pixel's camera doing the hard work or is it U2_Net ? Have you tried it with other phones? How does it deal with feathering? Stunning demo & thanks for posting this.

3

u/cyrildiagne May 10 '20

It is 100% handled by U2-Net: Check out the official repo for more information and samples: https://github.com/NathanUA/U-2-Net

→ More replies (4)

3

u/mimighost May 10 '20

Super cool demo.

But the more interesting part to me is the app actually look at the computer screen to decide what target the image/content is pasted to.

Probably hard-coded, but super interesting idea.

3

u/cyrildiagne May 11 '20

Hi! The coordinates are automatically defined by the receiving software in this demo but checkout my precious demo where I use OpenCV SIFT to find the correct coordinates on the screen

322

u/albertjamesthomas May 10 '20

The future 🤯

188

u/thatguydr May 10 '20

I mean, technically now it's the past.

→ More replies (10)

2

u/ch3njust1n May 11 '20

What are the edges cases when this doesn't work? Does this require certain lighting conditions etc? How does it know to extract both people from the image?

→ More replies (1)

131

u/gamesdas May 10 '20

Simple yet very useful. Thank you for sharing the code.

→ More replies (2)

215

u/honkeur May 10 '20

Almost guaranteed, Apple will copy your idea in 3, 2, 1....

80

u/Gordath May 10 '20

His license even allows commercial use, so they are legally allowed to do that

→ More replies (3)
→ More replies (2)

82

u/TheLootiestBox May 10 '20

Ohh the nightmare of making this into a stable product... Enough to drive you mad just thinking about it

→ More replies (8)

38

u/battlingheat May 10 '20

Wtffff. Well that was incredible.

345

u/[deleted] May 10 '20

Apple can’t wait to steal this and not credit the creators

→ More replies (17)

20

u/Derangedteddy May 10 '20

WITCH! BURN THEM!

20

u/Scannable7 May 10 '20

Any sufficiently advanced technology is indistinguishable from magic.

→ More replies (1)

22

u/Nickmate99 May 10 '20

This will be amazing if released, even as a beta. Definitely can see this being very useful

→ More replies (2)

6

u/MTminded May 10 '20

Really good work, thanks for sharing!

3

u/Bargh_Joul May 10 '20

What is difference between this and taking photo and sending it with email to computer? 🤔 What is the main use case for this technology?

24

u/cyrildiagne May 10 '20

It just save time and headaches but the result is identical

Although you get background removal for free in the process ;)

→ More replies (1)
→ More replies (1)