Matplotlib Tutorial - Part 12: Show Images Using IMSHOW

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

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

  • @electron46
    @electron46 10 หลายเดือนก่อน +1

    Your video is really excellent and I learned how simple it is to generate attractive borders for images. One suggestion is that using a larger font would make your videos more enjoyable to view. Even at max resolution and full screen, it's tough to read your code. Thanks.

    • @AmirCharkhi
      @AmirCharkhi  10 หลายเดือนก่อน

      Thanks for the heads up mate, I will make sure this point is noted in every future video🙂

  • @MridulMishra-q3o
    @MridulMishra-q3o 2 หลายเดือนก่อน

    I understand that we first gotta select only the red channel/layer out of the image and then we can display it in grayscale using cmap, but I am still unable to understand why cmap = 'gray' wasnt able to show the image in grayscale?

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

    thanks it helps me better understand the concepts of computer vision

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

      Thanks for the kind words! Feel free to forward it if it will help them🙂

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

    Wonderful video!!

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

      Thanks for the comment, glad you liked it

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

      Yes I did. Very simple and straightforward explanations... Can you make a video on python for Seismics? 🙂

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

      @@jntak_ For sure - just need to find the time, otherwise I have heaps of content I can share on Seismic :)

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

      @@AmirCharkhi Anticipating :)

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

    You are a good teacher!

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

      Thanks for your kindness, it is a pleasure to be able to help🙂

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

    thanks for the video, you explain very well, it's so interesting to listen to you

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

      Thanks for your kind words. That definitely helps making more content:)

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

    Thank you so much for the tutorial. But there is this one error that keeps popping up.TypeError Traceback (most recent call last)
    Cell In[12], line 2
    1 plt.figure(figsize=(7,7))
    ----> 2 plt.imshow(my_array)
    TypeError: Invalid shape (1, 2, 8) for image data

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

      This is because your image is an RGB image (which means it is not a single channel image). If you want this to work you can change the code to the follwoing:
      plt.imshow(my_array[:,:0])
      This will only plot one layer of the image (the red channel).
      Hope this helps :)

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

      Thank you. Now the code works. I highly appreciate ur content and quick response. Thank you. Is it possible to make videos on opencv and algorithms such as SIFT and FAST for feature detection.

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

      @@muthukrishnan2398 yeah they are in the pipeline of videos just trying to find the time haha

  • @hassansharif3186
    @hassansharif3186 9 หลายเดือนก่อน +1

    TypeError Traceback (most recent call last)
    Cell In[199], line 2
    1 plt.figure(figsize=(15,6))
    ----> 2 plt.show(spam_wc)
    TypeError: 'WordCloud' object is not callable
    help me to solve this error

    • @AmirCharkhi
      @AmirCharkhi  9 หลายเดือนก่อน

      Sure, here's a simple example of how to use the WordCloud library in Python:
      ```python
      from wordcloud import WordCloud
      import matplotlib.pyplot as plt
      # Example text data
      text = "Hello world! This is a simple example of how to create a word cloud using Python and the WordCloud library."
      # Generate word cloud
      wordcloud = WordCloud().generate(text)
      # Display the word cloud
      plt.imshow(wordcloud, interpolation='bilinear')
      plt.axis("off")
      plt.show()
      ```
      Make sure you have the WordCloud library installed (`pip install wordcloud`) and the matplotlib library installed (`pip install matplotlib`). This example creates a basic word cloud from the text "Hello world! This is a simple example of how to create a word cloud using Python and the WordCloud library." and displays it using matplotlib.

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

    hi, thank you for the content. I have a question, can we change the value 500 to 50 not changing the image, not cutting the image? I only want to change the number written on that.

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

      Yes you can, you need to set the xticks (or the yticks - depending on which axis you are intending to change) to go from [0, 50] :)