@@Canttakethatback Ascii characters hight and width are not equal. Hight is about 1.65 times bigger than width - depending on display. So to compensate that, i added / 1.65
This is video is great. I have been critiquing my coding in an attempt to improve, and my style is similar to yours and works very well for clean clear writing and editing but doesn't seem to be the norm. I think that people could learn a lot from you. Thank you.
I get the following result: "new_image_data = pixels_to_ascii(grayfy(resize_image(image))) UnboundLocalError: local variable 'image' referenced before assignment"
The main function is kinda sketchy. Three level function argument passing doesn’t look that good. Anyone have that PEP reference for this? Thaf list comprehension compromises readability.
Great tutorial. But you often just type and run over what you type quickly with absolutely no explanation as to what it is, so I'm left feeling like I just copied a code manually rather than learned something new.
Really cool video! Would it be possible for you add a simple animation to visually explain what you are doing. Since i often find myself replaying parts of the video to get an idea what the code you wrote does. Anyway, I recently found your channel, and i'm really enjoying your videos.
Hi Kite, I’m trying to use a livestream webcam, possibly around 1 sample per second, and covert the text in a defined region to ASCII to be stored in a csv. I’m very very new to python and so I’m wondering if you know how I might go about that
Hi, I keep on getting the error "not a valid pathname to an image" as well as "UnboundLocalError: local variable 'image' referenced before assignment Any help please?
Ok, so I followed everything and I also had to install PILLOW module because PIL.Image is not an pre-installed package. And I also run the program and it runs smoothly but when showing the output it basically does nothing but show some dots, it looks nothing like the image I entered. I dont know why this is happening. Is it because I am using IDLE interpreter? If anyone knows why this is happening do let me know
I managed to get work with image sets, as an animation of ASCII characters. I added a few more input variables like number of images and image type, and added a frame delay so that it would print to the console with distinct frames instead of being to fast for the human eye. The animation frames will just go on loop, because I though it would be underwhelming if it just showed the animation one time.
Thanks for the reminder! We've added our repo link in the description. Here's the link for this project: github.com/kiteco/python-youtube-code/tree/master/ascii
how do I make the lines larger than 100 characters, I tried changing this line larger than 100 but that didn't make a difference. resize_image(image, new_width=1680): any thoughts on how to make this bigger ?
All it does is that it keeps saying "'import' is not recognized as an internal or external command, operable program or batch file." I've followed everything else in the tutorial, but I'm really frustrated with the end result being nothing
In case you are still lost, you need to install a Python interpreter. There are many interpreters for Python, and I personally use the IDLE interpreter.
// is the operation for floor divison. This guarantees that we get an integer as the result. So "pixel//25" divides the intensity of the pixel by 25 and rounds it to the smaller integer. The important thing to notice is that he is using the result of "pixel//25" (e.g. let's say 3) to choose an element from the list of ASCII charachters he made earlier (so in our example, it would choose the 4th element, which is "%"). This is also why ASCII charachters were listed in descending intensity at the start.
bro can you please help me I am getting an issue: "C:\Users\MY BOOK\Documents\thumb-1920-606500.jpg is not a valid pathname to an image." bro I am stuck here please help me with a valuable info. your projects are really cool I am liking it quite a lot.
I am 5 months late, but here it is (copy of my previous comment): // is the operation for floor divison. This guarantees that we get an integer as the result. So "pixel//25" divides the intensity of the pixel by 25 and rounds it to the smallest integer. The important thing to notice is that he is using the result of "pixel//25" (e.g. let's say 3) to choose an element from the list of ASCII charachters he made earlier (so in our example, it would choose the 4th element, which is "%"). This is also why ASCII charachters were listed in descending intensity at the start.
How i made this into a .exe with a graphic interface? Anyone knows what i need to use to do? And i will ger with python language? - i tried to think in make a site and attempt to convert to exe but idk if work
I save the project and images in a folder, but when I want to open the image there is a message ril.jpg is not a valid pathname to an image. can you help me?
I would like to ask How can I add a comment that can be printed along with the image or after the image? Also, can I compile this Python code into a exe file?