Draw with OpenCV - No more Photoshop! Graphic Design with Python!

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

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

  • @alessiopustorino85
    @alessiopustorino85 3 года назад +9

    What is jupyter? I use editor to write the code, but this one for me is new. Can i have some informations and links?

    • @PythonSimplified
      @PythonSimplified  3 года назад +7

      Absolutely Alessio! 😀
      Jupyter is a notebook interface that allows you to run your code cell by cell. You don't have to run the entire program - it allows you to focus on specific parts of the program by splitting them into cells and also allows you to combine them with text cells (known as markdown).
      So it's literally like a notebook, that you can write and run code inside 😊
      I have a detailed tutorial on it (but it's very old, I'm warning you hahaha):
      ruclips.net/video/jp_3NOKHn9c/видео.html
      And I'm showing how to install it inside Anaconda here (also very old one):
      ruclips.net/video/FZ5baopI_mo/видео.html
      It's one on my most favorite code interfaces sop far,
      Let me know your thoughts if you end up trying it! 😀

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

      Sublime Text is better

    • @MrRobot222
      @MrRobot222 3 года назад +2

      @@PythonSimplified I was going to ask the same thing, will check out the tutorials! I'm using VS Code, but may make the switch to Jupyter as I'm still learning and like ttat concept. Thanks.

    • @PythonSimplified
      @PythonSimplified  3 года назад +3

      @@programmingl4958 Sublime is not exactly in the same category of software... It's a really nice alternative to other code editors like Atom, but it's not a notebook interface. You can probably compare Jupyter to Google Colab, but in the case of Sublime - they mean for other case uses so it's not an "apples to apples" situation 😉

    • @PythonSimplified
      @PythonSimplified  3 года назад +4

      @@MrRobot222 I use all kinds of IDEs for different tasks: sometimes a notebook interface is better, sometimes a code editor is more convenient. It all depends on the nature of your project 😊 VS Code is a great way to go, and Jupyter has its perks too... so no need to switch! You can always use it in addition 😃

  • @harryporterdigitalservices-r4m
    @harryporterdigitalservices-r4m 2 года назад +2

    Madam, you are a gem! You make things look simpler than they real are!
    Thank you so much.

  • @ZurioSi
    @ZurioSi 3 года назад +9

    OpenCV is one of the best Python libraries, I love it. I hope there will be more videos with OpenCV in the future.

    • @PythonSimplified
      @PythonSimplified  3 года назад +4

      Absolutely!! The next one is Object Oriented Programming with OpenCV 😉
      We'll draw a forest full of incredible beautiful trees with random colours, heights, stem thickness and location!
      (actually, the only reason I filmed this tutorial is because of the next one hahaha I didn't want to start with a "starter" code for the blue/green background rectangles so I thought I might as well just explain all the basic shapes 🤪)

  • @pezictusfish
    @pezictusfish 3 года назад +4

    Hasn't even started and I already know I'm going to like it.

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

      hahahaha thank you so much Erick! I hope you liked it indeed! 😊

  • @axelcarvalho2661
    @axelcarvalho2661 3 месяца назад

    Thank you, that's great. I'm looking the automatic way for tedious schematic images of up to 10000 simple shapes, and I think I have found it!

  • @ImSaran
    @ImSaran 3 года назад +3

    Woww... Interesting Topic... " CV2 "

  • @lopoisaac
    @lopoisaac 3 года назад +5

    Impressed by how much effort you put in your videos and how well you explain things, drawing with python seems fun!! thank you!!

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

      Thank you so much Lopo! it's really fun, especially when using classes with random values! the next OOP with OpenCV tutorial is gonna be even better! 😉

  • @victorpinasarnault9135
    @victorpinasarnault9135 6 месяцев назад +1

    Thank you so much for this tutorial! I was completely lost on my computer graphics class.
    Thank you again!

    • @PythonSimplified
      @PythonSimplified  6 месяцев назад

      Yeeeeey!!! Super happy to help! Best of luck with school! 🙂

  • @monocilindro3655
    @monocilindro3655 3 года назад +3

    Thanks. I absolutely love your videos and your style. You are an awesome communicator

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

      Thank you so much for the beautiful words! 😃😃😃 super happy to read your comment! 😁

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

    Brilliant lesson. Say na'more. Loved the graphical x1,y1,x2,y2 explanation. Made it easy to understand an otherwise quite complicated (for me) concept.

  • @VassilisAristotelous
    @VassilisAristotelous 7 месяцев назад +1

    Beautiful training from a really beautiful person, thank you!

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

    Very simple and useful tutorials for beginners. Thanks and good luck.

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

      Thank you so much Alek! Happy to hear you like my videos! 😃

  • @CreativeSteve69
    @CreativeSteve69 3 года назад +2

    This is a great tutorial as usual. I had no idea I can draw pictures using nothing but code. This looks impressive will definitely try this out soon. :)

  • @fuba44
    @fuba44 3 года назад +2

    I did find this very informative, looking forward to this series of videos.

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

      Thank you so much! 😀 I'm filming the next part tomorrow! 😉

  • @JessWLStuart
    @JessWLStuart Год назад

    Nuts! I can't think of a tree joke!
    Great video!

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

    Hi madame, recently I follow your channel, love your videos and the way you express so lovely and humble. Congrat God bless you 🌻

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

    Hi, thanks for your nice videos. What is also nice is the way you shake your hands while explaining python concepts. With very kind regards, Sid from Oran Algeria

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

    your tree trunk is cute :)

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

    Thanks very much for this tutorial. Very easy to follow and it was my first time using OpenCV.

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

    yeahh... that gives me motivation to make my own photoshop🙂

  • @fahmimustafa8840
    @fahmimustafa8840 2 года назад +1

    you are amazing ..😘😘

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

    That's amazing!!!! I'm wating for the class version. Thanks for the video, dear friend. Greetings. :8)

  • @premprasad3511
    @premprasad3511 2 года назад +1

    Very nicely explained. All your videos are great

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

    Nice tutorial mam.... I learn new things in every video..

  • @udbhav3760
    @udbhav3760 3 года назад +2

    Nice tutorial by mariya :-) really good work :-D

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

      Thank you Udbhav! so happy to hear that! 😁

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

      @@PythonSimplified means alot 👍🤪😁

  • @Mayank-lf2ym
    @Mayank-lf2ym 3 года назад +1

    Please make more opencv tutorials

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

    😮 khalesi,
    Nice tutorial... But I just don't feel ready yet to quit Photoshop.

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

      hahaha don't worry! Photoshop is still alive and well! (In fact, I even used it to brighten the thumbnail picture 😉)
      OpenCV has a lot of the functionality the Photoshop offers, so I thought it would make sense to include it in the title :)

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

    super well explain as always... ..Hope to see you soon for more video need to import more mariya

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

      hahaha thank you! glad you liked it! 😁😁😁

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

    Brilliant video and thanks for destroying All Windows 🤣👌✨😎

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

    Oh yes, drawing with code is addictive. My drug of choice in that regard is SVG - so much so that I chose that over Blender. Speaking of which - I might be confusing it with something else, but I recall Blender back in the 90s being code-only rather than with a visual GUI a la 3D Studio.

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

    It was so beautiful! Thank you

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

      Thank you Ehsan! glad you liked it! 😀
      I just premiered the advanced OpenCV tutorial if you want to check it out:
      ruclips.net/video/-LsuiVGO-88/видео.html

  • @carnnel-s2f
    @carnnel-s2f 3 года назад +1

    No words only appreciation

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

    😍❤

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

    Mariya, think you read my mind! ..
    All ur topics are the ones I need! .. coincidence? Or destiny 😜?
    "Said that while I'm looking at the right half" 🤣

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

      hahahaha you're in the middle of an OpenCV project??? 😀
      You absolutely gonna love the next tutorial! (especially if you're into game design! it would give you the tools to replicate the same object but with different size/colour/location properties. you'll be able to make entire levels of a computer game within minutes! 🤩🤩🤩 so definitely stay tuned!)

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

      @@PythonSimplified I am always tuned with you :D .. and yes, I work on openCV .. but I try to make something smart with my camera and the raspberry pi ..

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

    If I remember, I think I've used PyGame to do my drawings in, in the past. The x,y coords were always x,y and not y,x and back again while drawing shapes. But I will look into cv2. Maybe it is just the use of numpy that makes the reversing of the x,y notations.

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

    Woah cool content

  • @manu-singh
    @manu-singh 3 года назад

    Interesting video again Pygirl🤔

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

    Thank you Mariya!!!!

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

      I have a problem: "ModuleNotFoundError: No module named cv2" :/

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

      did you install it first before importing it?
      If you're using Anaconda: conda install -c conda-forge opencv
      If using pip: pip install opencv-python
      Let me know if it solved it! 😊
      (if not - please let me know what version of Python you're running)

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

      @@PythonSimplified Mariya, i use Visual Studio Code (Windows 10) and i followed the instructions of the official website for installing the Opencv, but I don't know what I did wrong.

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

    Nice. Thanks.

  • @AhmedMOHAMED-hl1hd
    @AhmedMOHAMED-hl1hd 3 года назад +1

    perfect video as usual thx for the great info

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

    very nice

  • @mkmou9925
    @mkmou9925 3 года назад +3

    Trying to get my 12 years old daughter excited about Python. Most schools start with "Scratch" which is boring to her. She would rather play Roblox instead. Perhaps you can make a series of "Cool and Fun" videos to teach Python 101 for kids and teenagers.

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

      Most definitely! Python Programming for Kids has been on my "to do" list for quite some time! I got lots of requests (mostly from family members 😅) for an entire series! (extra simplified tutorials with extra vivid colours and illustrations) 😊
      The only thing I'm waiting for is the perfect IDE in which kids don't have to install Python or any special modules - they can just jump on and start coding. I actually got a sneak peak into the upcoming version of Wayscript today - and it looks exactly like what I was waiting for! 😁
      Once they launch their new interface - I'll definitely start working on the Python for kids series! so stay tuned😉

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

    Thanks for teaching! :) That's brilliant! ^_^

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

    Fun..👌

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

    with numpy, you don't have to type dtype,=xxxx, just type the datatype

  • @mohammadbaghaei8076
    @mohammadbaghaei8076 3 года назад +2

    perfect Thanks

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

    Hey!
    Thanks for uploading the video!
    I am wondering, when should I use PIL or OpenCV. Can ai get some explanation? When to choose what?
    Thanks ☺️

  • @Yachid
    @Yachid 3 года назад +2

    EveryOne'z FAV~ Py~Dev~! iz at it again

  • @Millwrightmike
    @Millwrightmike 8 месяцев назад

    I can tell u why open CV uses BGR as the order in colour it's because those are the values of spectrum blue is first below what 240 green is240-460 next then red is last460+ these are not real exact numbers but these are the reason why we use BGR as a acronym and not just RGB.

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

    Let's gonna paint some happy trees here... 🎨🖼

  • @SaiSai-advertiser
    @SaiSai-advertiser 3 месяца назад

    You are pretty and very clever

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

    How would you recommend drawing a rational polynomial function in python? As an example, im looking to make a set of flash cards for chemistry formulas. This formula uses hyper and subscript both in the numerator and denominator. Would you draw the text for the formula? Suggestions?

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

    What a great tutorial! Do you know if it's possible to revert the process? Like if I draw a line by hand, can it tell me what its coordinates are?

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

    Ok...so I have to say this but at 3:29 when you thump the keyboard that hard, I have a Butt Kicker Gamer 2 attached to my chair. That and my subwoofer said "Hi!" in a way I wasn't prepared for.

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

    Thank u.

  • @trtlphnx
    @trtlphnx 3 года назад +2

    I Started as a Commercial Artist; It's Like You got a hotlone To My Interests, Sweetie; Thanks ~

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

      I was a graphic designer for many years, sure looks like our interests match! 😉

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

    Very useful thank you Mariya (\/). really good work and good look :).

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

    True van Gogh's Cypresses

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

    beautiful!!!

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

    ❤️

  • @jsmyers24151
    @jsmyers24151 Год назад

    Not getting any kind of display from the code I'm entering; it just gives me another cell for code while repeatedly giving me Jupyter server errors. HELP!!

  • @martinlutherkingjr.5582
    @martinlutherkingjr.5582 8 месяцев назад

    I installed opencv but get this error:
    ModuleNotFoundError: No module named 'cv2'
    Any ideas? I restarted jupyter notebook. same problem in vs code.

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

    Good evening ma'am,Please make a full course of OOP on python.

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

      I'll slowly be covering OOP with different libraries (next tutorial is drawing a forest of objects with OpenCV), we can say it's part of the "Computer Science Concepts" series 😉

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

      @@PythonSimplified thank you so much ma'am 😊

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

    Hello why there are only 4 lesson for python beginners. you deleted them or you stopped updating after 4th?also these videos are really nice i would watch them if u upload more

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

    Besides NumPy and Open cv, is there anything else you need for this tutorial because I'm stuck in a chain of "not knowing the prerequisites", hence I can't follow your tutorials. Thank you!

  • @JD-oj1hr
    @JD-oj1hr 3 года назад

    Scoured the internet and YT looking how to make my own CAD system like Autocad with Python. What do you think would work?!🥺😭

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

    I have a question, how to draw bezier curve in opencv? And how to draw lines using mouse input?

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

    hi there I would like to know if the code that you have used in this video can use this code in ide like vs code

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

    what is importance that in computer vision field?

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

    You are very detailed in your explanations and they so so fun and easy to understand. A wonderful channel. Keep it up

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

    Hello Python Goddess. Do you have any Python SVC (scaleable vector) code examples or suggestions? SVC files are large arrays of shorthand ques and points right? Any help would be awesome. Thanks.

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

      Hi Damon! 😃
      Sounds like something I would usually implement with a few neural network layers... 🤔 but I can't say I have much experience with these, my apologies 😅

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

      I have a few resources for you though! 😊
      this is a Pytorch example:
      discuss.pytorch.org/t/how-to-use-svm-for-classifying-image/49485
      This one is from scikit learn SVC docs: scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html
      I've never encountered .svc files so I'm not sure how they look like or how to behave with them, but I hope these links will help somehow 😃

  • @amjadansaree
    @amjadansaree Год назад

    time 04:01 when i run programme, programme run beautiful , but close button appear in pure white colour on imac, so i am note able to close tree window........ why? .......... i can't under stand ........ please help me

  • @jsmyers24151
    @jsmyers24151 Год назад

    Ok, got the jupyter server error codes resolved and did find the display when I tell it to run. Now I have a problem with this:
    TypeError Traceback (most recent call last)
    Cell In[12], line 9
    7 cv.rectangle(img, (0,500),(900,600),(75,180,70), -1)
    8 #sun
    ----> 9 cv.circle(img, (200,150), 60, (0,255,255) -1)
    10 cv.circle(img, (200,150), 75, (220,255,255) -1)
    11 #tree stem
    TypeError: unsupported operand type(s) for -: 'tuple' and 'int'
    Why is this happening on my screen, but not hers? Plus, I put in all of the data for the "sun", but it never would show up on the image.
    what's going on with this?

    • @jsmyers24151
      @jsmyers24151 Год назад

      Fixed all my problems. I guess it's good to talk it out. If you don't put all of the data in as she has written it, it will not work properly, or not at all. Newby to this; can you tell?

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

    Shalom Maria. I’m trying to get a job in Dubai with my knowledge of python and ruby. If not then I stay in Israel. Wish me mazes tov.

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

    6 months later, now colors are proper RGB, could it be RGBA thought? Yes, it could, tryed it

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

    How to adding separate name in pdf file,
    100 page pdf single file, I wish to assign 100 names separate single pdf file.

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

      Did you check out this thread on StackOverflow?
      stackoverflow.com/questions/490195/split-a-multi-page-pdf-file-into-multiple-pdf-files-with-python
      There are a few solutions there... but if it's just a "one-of" for just one document - I would personally go for Adobe Acrobat instead 😊 If you need to automate a recurring process - code is definitely the better approach 😉

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

      @@PythonSimplified thank you,
      But 100 names provide as input. That names assign each pdf file. How it do.

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

    When I try to run I get the following error: "ModuleNotFoundError: No module named 'cv2' "

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

      Installed OpenCV, no change.

  • @piyush22412
    @piyush22412 3 года назад +2

    🤗 🇮🇳 ❤

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

    You are so smart, I wish you were my girl. I am a computer engineer but I am a novice. I bet you are so a really awesome person even when you aren't doing this. If I ever come there or you come here I would like a chance at a dinner and some time with you sweetie. With brotherly love, don't let anyone ruin this wonderful day he gave you, it's well deserved.

  • @ИоаннИщенко-р4о
    @ИоаннИщенко-р4о Год назад

    3:18 😂😂😂

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

    Love from nowhere.

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

    do you know how to create a BOT for telegram?

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

    What about to create a Telegram bot?

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

    You are preaching to the choir. In other words the videos are for people that all ready know how to program.

  • @AhmedMOHAMED-hl1hd
    @AhmedMOHAMED-hl1hd 3 года назад +1

    yes death for all but linux long live the king of them all linux
    yeah i am linux addict

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

      hahahaha long live open-source! long live unix! (**ironically sent from a Windows machine 😅)
      If only Adobe were making Linux software - nobody would even consider installing Windows!

    • @AhmedMOHAMED-hl1hd
      @AhmedMOHAMED-hl1hd 3 года назад

      @@PythonSimplified true very true but i migrated from these softwares to the open source ones

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

    Doesn't work: triangle = np.array([[500,440],[700,440] [600,75]], dtype=np.int32) TypeError: list indices must be integers or slices, not tuple

  • @sdmj45
    @sdmj45 11 месяцев назад +2

    Destroy all windows because linux is better 😂😂😂

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

    The one dislike is from a Karen

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

      hahahaha she's a regular on my channel 😅

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

      @@PythonSimplified Ahahah I guessed so! Btw, really like you. It's cliché but I really appreciate seeing a girl interested in programming and development, you're a unicorn! The tutorials are very good and you have a nice and funny character, will watch more for sure :)

  • @marcouweotto2661
    @marcouweotto2661 Год назад

    Very nice! Thank you! Just a small comment related to zero indexing in Python:
    img = np.zeros((600, 900, 3), dtype=np.uint8)
    # image orientation in cv2 based on example given here:
    #
    # 0 899
    # | |
    # 0 ------------------------------------ y1
    # | |
    # | |
    # | |
    # 499------------------------------------ y2
    # | |
    # x1 x2
    Thus:
    #skies
    cv.rectangle(img, (0,0),(899,499), (255,225,85), -1)

  • @frankmartinez576
    @frankmartinez576 Год назад

    🤣

  • @jorgerios4091
    @jorgerios4091 3 года назад +2

    Destroy all Windows because Linux is better. ROTFLMAO :-D

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

    "And then we will destroyAllWindows... because Linux, is better". LOL

  • @carnnel-s2f
    @carnnel-s2f 3 года назад

    No words only appreciation