Jump to content

Remove Background [PYTHON?]

Wictorian

Is there a python library to remove background of images? If not is there an efficient way of automatically doing this? 

 

 

 

NOTE: Before you say I should have googled it, I did but the results weren't satisfying.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Wictorian said:

NOTE: Before you say I should have googled it, I did but the results weren't satisfying.

Did you mean that I didnt bother to look more than first 3 results?

I am certain you can train a AI with tensorflow and do that. Considering you cant even google, look up openCV.

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

37 minutes ago, Wictorian said:

NOTE: Before you say I should have googled it, I did but the results weren't satisfying.

Don't you think if it were as easy as

import something
something.do_the_thing()

you'd have found it in a google search?

 

You can use AI, you can use regular vision functions like a chroma key or focus detection, you can use a specialized algorithm. All of these require at least some idea of what you're doing.

 

I made a toy android app that does this a while back, it uses opencv DNN functionality with the MobileNetSSD network to isolate objects in a picture and the GrabCut algorithm to cut them out of the background - you can try and replicate this process in python.

Spoiler

example3.jpg

 

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×