Posts

Showing posts from June, 2023

Draw Messi sketch using python :-

Image
 Input / source code:  from sketchpy import canvas obj = canvas . sketch_from_image ( 'C: \\ Users \\ KOUSHIK \\ Desktop \\ Kingmessi \\ kingmessi.jpg' ) obj . draw () Steps : 1. First , you have to download a pic of Messi in jpg or jpeg format.  2. Then save that pic in desktop location . 3. Now create a new folder and paste that saved pic in that new folder . 4. Now open your VS code editor , go to file option and open new folder from desktop location and open the folder that you have created recently . 5. Now , create a python file inside the folder with proper extension . 6. Now , go to the terminal and add new terminal and install sketchpy package  write the command - pip install sketchpy  7.  Now , back to the workspace and write your code that I have alraedy provided you  8. save the code & run it . Output:   Suggestion Video Link :    https://youtu.be/0HS1H-CFiVg