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.
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?
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
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 :)
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.
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
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.
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.
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.
Thanks for the heads up mate, I will make sure this point is noted in every future video🙂
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?
thanks it helps me better understand the concepts of computer vision
Thanks for the kind words! Feel free to forward it if it will help them🙂
Wonderful video!!
Thanks for the comment, glad you liked it
Yes I did. Very simple and straightforward explanations... Can you make a video on python for Seismics? 🙂
@@jntak_ For sure - just need to find the time, otherwise I have heaps of content I can share on Seismic :)
@@AmirCharkhi Anticipating :)
You are a good teacher!
Thanks for your kindness, it is a pleasure to be able to help🙂
thanks for the video, you explain very well, it's so interesting to listen to you
Thanks for your kind words. That definitely helps making more content:)
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
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 :)
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.
@@muthukrishnan2398 yeah they are in the pipeline of videos just trying to find the time haha
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
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.
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.
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] :)