OpenCV Python Tutorial For Beginners 16 - matplotlib with OpenCV

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 62

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  5 ปีที่แล้ว +3

    Gist of code I used in this video - www.codebind.com/python/opencv-python-tutorial-beginners-matplotlib-opencv/

    • @gandhikaran24
      @gandhikaran24 5 ปีที่แล้ว

      Ever tried writing your own code?

    • @gandhikaran24
      @gandhikaran24 4 ปีที่แล้ว +1

      @Ashutosh Kumar opencv-python-tutroals.readthedocs.io/en/latest/
      Code for every video in the series is copied from here.

    • @shrinitgoyal7521
      @shrinitgoyal7521 4 ปีที่แล้ว

      @@gandhikaran24 the examples of code, used here, is from official opencv documentation

    • @gandhikaran24
      @gandhikaran24 4 ปีที่แล้ว

      @@shrinitgoyal7521 Source?

    • @anthonygonsalvis121
      @anthonygonsalvis121 4 ปีที่แล้ว

      @@gandhikaran24 Great find! Let's just say someone has made an effort to convert text tutorials into video version. Regardless, the video presenter should give full credit to this website you listed for posting the text tutorials. Cheers

  • @theitalian94
    @theitalian94 5 ปีที่แล้ว +3

    you have upgraded your mic! Thanks for that ! == Like this video!!! :)

  • @JuanCarlos611
    @JuanCarlos611 4 ปีที่แล้ว +2

    tiny contribution: if you get an error like "matplotlib is currently using agg ...etc", you need to install tk. Instead of using pip or inside your virtual env, use terminal and your pkg manager. For ubuntu:
    sudo apt install python3-tk

  • @thePavuk
    @thePavuk ปีที่แล้ว

    At 13:20 line 16,18. Why us there comma separator between functions? Newer seen this syntax.

  • @dhirajdhakal6350
    @dhirajdhakal6350 4 ปีที่แล้ว +2

    Why are we adding the matlabpolot package again in the IDE when we already have installed it from command line ?

    • @dineshbh3837
      @dineshbh3837 4 ปีที่แล้ว

      Bhai, matplotlip is a python library and matlab is known for the environment software

    • @uprisingstark8954
      @uprisingstark8954 ปีที่แล้ว

      cause in pycharm ide there is there is virtual environment space which works different from the packages installed in your real python packages installed
      in this we first installed matplotlib in real scripts of python and then we again downloaded in pycharm ide otherwise we cant't use matplotlib (only in pycharm) which is a clean setup to go but it takes lots of disk unwanted space ( acc to me )
      if we use other ides like vscode we dont need to do it hehe

  • @kraskagm
    @kraskagm 5 ปีที่แล้ว +2

    I'm using Spyder and there it is showing matplotlib graf in the the console not creating a separate window for it.

    • @kraskagm
      @kraskagm 5 ปีที่แล้ว +2

      Ok I found the solution: stackoverflow.com/questions/29356269/plot-inline-or-a-separate-window-using-matplotlib-in-spyder-ide?rq=1

    • @nostabcdef
      @nostabcdef 5 ปีที่แล้ว

      @@kraskagm Thanks, it helps me a lot

    • @Yonosoyninguien
      @Yonosoyninguien 4 ปีที่แล้ว

      @@kraskagm thnks

    • @nept4ne
      @nept4ne 4 ปีที่แล้ว

      @@kraskagm Thanks!!

  • @anthonygonsalvis121
    @anthonygonsalvis121 4 ปีที่แล้ว

    @ProgrammingKnoeldge, @codebind, @Yogesh Patel, SIMPLY GREAT video series. Just one small question specific to this particular episode: The 'THRESH_TRUNC' method displays all consistent gray in the right half of the image in an individual / dedicated window (looks logically correct). But if you display it as part of the 2x3 array in Matplotlib, the same method displays all white in the right half of the image (looks logically incorrect). WHY?

  • @meethansaliya4885
    @meethansaliya4885 3 ปีที่แล้ว

    hey there, is it okay to install matplotlib in pycharm only? or i have to install it in both(through cmd and in pycharm IDE).

  • @chaoxi8966
    @chaoxi8966 3 ปีที่แล้ว

    hello, sir. there will be no image showing out in my system when i use plt.imshow(...) and plt.show, any reason?

    • @chaoxi8966
      @chaoxi8966 3 ปีที่แล้ว

      i copied your code to my editor pycharm.

    • @SafaltaSchool
      @SafaltaSchool 2 ปีที่แล้ว

      @@chaoxi8966 if you get an error like "matplotlib is currently using agg ...etc", you need to install tk. Instead of using pip or inside your virtual env, use terminal and your pkg manager. For ubuntu:
      sudo apt install python3-tk

  • @shashanksharmadon4295
    @shashanksharmadon4295 4 ปีที่แล้ว

    Thanks bro.........

  • @shivtechgyan2181
    @shivtechgyan2181 4 ปีที่แล้ว +1

    After executing "from matplotlib import pyplot as plt" command in cmd as well as in pycharm it is showing
    ImportError: DLL load failed: The specified module could not be found. error ...i imported matplotlib in pycharm ...but still it is showing..........please resolve it.....anyone

    • @shivtechgyan2181
      @shivtechgyan2181 4 ปีที่แล้ว

      Actually module is not supporting on version 3.3.3 bot after uinstall it i installed 3.0.3 version it works fine,,with no error...

  • @kuldeepkawar1104
    @kuldeepkawar1104 2 ปีที่แล้ว

    Hello guys, my threshold images are in purple yellow colors and not in black n white. Please help

  • @johanelbertsebastian3548
    @johanelbertsebastian3548 4 ปีที่แล้ว

    The matplotlib window didn't open. Help?

  • @watchwithmehru
    @watchwithmehru ปีที่แล้ว

    In line number 16, why use i+1 ??

    • @ralph7862
      @ralph7862 ปีที่แล้ว

      subplot index starts from 1, not 0. I hope this answers your question

  • @shrinitgoyal7521
    @shrinitgoyal7521 4 ปีที่แล้ว

    the matplot image is being shown in the terminal, not in separate window....please help sir

    • @shaansrivastava1021
      @shaansrivastava1021 4 ปีที่แล้ว

      Bhai sab ek hi jagah thodi na milta hai...........Thoda adjust bhi karna padta hai...........
      Video ko 1.5X karke dekhlo

  • @imransadiq5851
    @imransadiq5851 4 ปีที่แล้ว

    using matplotlib image is not showing in new window and also no x and y cordinates display when hovering mouse on image

    • @suhailchougle7315
      @suhailchougle7315 4 ปีที่แล้ว +1

      facing the same problem...got any solution
      ?

    • @imransadiq5851
      @imransadiq5851 4 ปีที่แล้ว

      @@suhailchougle7315 use
      %matplotlib inline

    • @suhailchougle7315
      @suhailchougle7315 4 ปีที่แล้ว +1

      @@imransadiq5851 thanks buddy, really appreciate it. 😁

  • @OfficialShredder
    @OfficialShredder 5 ปีที่แล้ว

    No module named 'matplotlib.pyplot

    • @cherupawan3777
      @cherupawan3777 5 ปีที่แล้ว

      Same problem here
      Have you resolved it

    • @cherupawan3777
      @cherupawan3777 5 ปีที่แล้ว

      Same problem here
      Did you resolved it

    • @Yonosoyninguien
      @Yonosoyninguien 4 ปีที่แล้ว

      If you are using Pycharm you must import the matplotlib to the interpreter in the pycharm, as the teacher does at TypeError: 2:26

    • @sisplani
      @sisplani 4 ปีที่แล้ว

      @@Yonosoyninguien It does not work, i ca not use pyplot. Could you please help me? guillermoariast@gmail.com

    • @sisplani
      @sisplani 4 ปีที่แล้ว +3

      Maybe your program's name is "matplotlib.py" if it is so, that confuses the Python interpreter and create a circular reference with the library with the same name "matplotlib". Try to rename your program, it could be the solution.

  • @rzzengenhariamineracao334
    @rzzengenhariamineracao334 5 ปีที่แล้ว

    How can I save the matriz of RGB color in txt?

  • @LostDryerSocks
    @LostDryerSocks 4 ปีที่แล้ว

    Okay, I'm very late to the game here, but I'm losing it. I have followed all tutorials up to this point and have been able to resolve other problems just by Googling. This one stumps me, though. I am using a Raspberry Pi 3 with Buster. I am trying to use Geany but keep getting the same error as others, "cannot import name 'pyplot' from matplotlib'". I have ensured build is set to python3.
    Any help would be greatly appreciated as I have very little hair left to pull out of my head and I can't bash my head against the desk anymore because I have a headache from that.

    • @LostDryerSocks
      @LostDryerSocks 4 ปีที่แล้ว

      NOTE: I can use matplotlib in a regular terminal, just not in Geany.

    • @sisplani
      @sisplani 4 ปีที่แล้ว +1

      Maybe your program's name is "matplotlib.py" if it is so, that confuses the Python interpreter and create a circular reference with the library with the same name "matplotlib". Try to rename your program, it could be the solution.

    • @johancelis9361
      @johancelis9361 4 ปีที่แล้ว

      @@sisplani I had exactly that problem, changing the name of the file fixed the problem

    • @tishagarg9785
      @tishagarg9785 2 ปีที่แล้ว +1

      @@sisplani thanks it really worked😊

  • @pranjalgoyal6747
    @pranjalgoyal6747 5 ปีที่แล้ว

    Have you done nptel python course ? Same tutorial

    • @gandhikaran24
      @gandhikaran24 5 ปีที่แล้ว

      All of his code since video 1 is copied which he pretends to write on his own.

    • @kumarsuman262
      @kumarsuman262 5 ปีที่แล้ว +2

      @@gandhikaran24 Are u able to teach me these ?..i ll leave watching his videos
      Dont jump to cons , pros are also there

    • @gandhikaran24
      @gandhikaran24 5 ปีที่แล้ว

      @@kumarsuman262 I dont have any problem with his teaching, but he should give credit where its due.
      And should give the link to the original code rather than his copied code.

    • @anitakane1059
      @anitakane1059 4 ปีที่แล้ว

      @Pranjal Goyal BTW which NPTEL course is this? Could you post the link or give the title of the course?

  • @teensmoke3574
    @teensmoke3574 4 ปีที่แล้ว

    Hey! The tutorials are amazing and clear but the only thing is you are talking too slow talk a bit faster

    • @tanmaykhandelwal901
      @tanmaykhandelwal901 4 ปีที่แล้ว

      You can increase the speed of the video, I also use the same.

  • @raymond-r6r
    @raymond-r6r 4 ปีที่แล้ว

    In my test , this code throw errors,you just need to comment 'cv2.waitkey(0)',then everything will be ok

    • @Yonosoyninguien
      @Yonosoyninguien 4 ปีที่แล้ว

      You are right, in the last example you dont have a cv2.imshow() working so you should coment cv2.waitKey()

  • @davidaliaga4708
    @davidaliaga4708 3 ปีที่แล้ว

    Not what I was expecting :(