Python OpenCV Grabcut Image Foreground Detection

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 27

  • @vasugupta7265
    @vasugupta7265 2 года назад

    hey, the grabcut image is slightly blue, how to retrieve the original colors??

  • @sayantanpaul9967
    @sayantanpaul9967 3 года назад +1

    Can you in details the line: mask2=np.where((mask==2)I(mask==0),0,1).astype('uint8)

  • @devloper_hs
    @devloper_hs 3 года назад

    How to get width and height of rectangle?

  • @mfaraday4044
    @mfaraday4044 4 года назад +1

    can i use this for number plate localisation?
    Is their any better algorithm or this is best so far for the above task?

  • @aymanzaki1912
    @aymanzaki1912 4 года назад +1

    Hey,
    Thanks a lot for your effort. Why the size of bgModel and fgModel is (1,65)?
    Thanks in advance :)

  • @vishnudas7839
    @vishnudas7839 4 года назад

    well done Parwiz keep it up

  • @Vathananable
    @Vathananable 4 года назад

    What is IDE you are using for Python sir?

  • @satishbanka
    @satishbanka 4 года назад

    Thanks Parwiz for the nice video! Is there a way to detect background color!

  • @sidraghunayakula4084
    @sidraghunayakula4084 4 года назад

    Great Tutorial, but can you Implement this on a Webcam???

    • @DropDaFonk
      @DropDaFonk 4 года назад

      I think you would have to iterate on each frame captured by the webcam. I don't know what the perf would be though

  • @abdellahgrinzou548
    @abdellahgrinzou548 4 года назад

    Hello !!
    I want to crop the grabcut foreground of a dataset for classification,hoping get better accuracy
    is that possible
    and will i take the dark region too ??
    any help !

    • @gavinknight8560
      @gavinknight8560 4 года назад +1

      I’m trying to do the same thing. Grab cut can output masks and write them to a file, did you get a solution?

    • @abdellahgrinzou548
      @abdellahgrinzou548 4 года назад

      @@gavinknight8560
      No, sometimes you need to do a drawing to get the right region.
      What do you want to do???

  • @nidbeni
    @nidbeni 5 лет назад

    Sir m getting error : nonetype has no attribute shape
    Please help

    • @ParwizForogh
      @ParwizForogh  5 лет назад

      copy the code from my blog https:/www.codeloop.org

    • @MrAvadhanula
      @MrAvadhanula 5 лет назад

      @@ParwizForogh still i'm facing the same problem could you please help

    • @mohammedbakraa5087
      @mohammedbakraa5087 4 года назад

      That means your image could not load check your images path. hope it helps.

  • @paraklesis2253
    @paraklesis2253 5 лет назад +1

    awesome stuff

  • @abdelrahmanyasser5720
    @abdelrahmanyasser5720 3 года назад

    MO SALAH

  • @akx_edits3374
    @akx_edits3374 2 года назад

    moooooo salaaaaahhh

  • @JUNGELMAN2012
    @JUNGELMAN2012 4 года назад +1

    'mask' is not pronounced as 'mosque'. Don't pronounce Aaaaa as Oooo. ;-)

    • @jesseholliday3480
      @jesseholliday3480 3 года назад

      probably the entire UK pronounces it that way

    • @JUNGELMAN2012
      @JUNGELMAN2012 3 года назад

      @@jesseholliday3480 google: "mask pronounce". UK pronounces it as MAAASK. Like in "material" not like in "mosquito".

    • @jesseholliday3480
      @jesseholliday3480 3 года назад

      @@JUNGELMAN2012 ruclips.net/video/RoHm7jeJTCA/видео.html
      This sounds like mosque to me.
      Anyway, making vids is hard. Where he is from that's how it's said. It's ride to comment like that without even saying, nice vid or something as well.

    • @JUNGELMAN2012
      @JUNGELMAN2012 3 года назад

      @@jesseholliday3480... it's even ruder (even aggressive) to try to educate other adults in your wannabe superior manners. A good friend tells the truth. He is not a child and does not need to waste time reading your fake sugar commenting, before getting to the point. Stop being a patronizing ass. (how does it feel when someone else schools you in manners?)

    • @jesseholliday3480
      @jesseholliday3480 3 года назад +1

      Yeah it was silly of me, i didn't realize he was being nice. My fault.
      I think you too are overly aggressive yourself.
      But i apologize to the person that i responded to originally.