Skip to main content

How to find coordinates of any image in python?

How to Find Coordinates of  Any Image in Python.

 

What's up everyone, today we'll know the way of finding coordinates in python. So without wasting of time, let's go ahead.

==>Soon, I'm going to make a black and white image of 'Stylish Star Allu Arjun'. So, don't forget to subscribe my YouTube channel 'Coder Of Paradise'.

#Requirements for finding coordinates.

** Firstly, You have to install sketchpy module.
**To install sketchpy module, you have to use keyword ' pip install sketchpy==0.0.22 '. If you uses only ' pip install sketchpy ' then it will show error.
**You can't find coordinates in Android or pydroid3, because sketchpy module uses canvas or cv2 module and cv2 module comes in premium of pydroid3.
** If you purchases pydroid3 premium may be that will work.
**You can't find coordinates of any .svg image. But you can make .svg image to .jpg image by taking screenshot of your .svg image 
**Now, The codes are here which you can use for finding coordinates of any image.

Watch Full Tutorial here on YouTube: " How to find coordinates and draw any image?"

https://youtu.be/kBMx8j6_mb4



✓# Source Code:

from sketchpy import canvas

p = 'brave.png'

obj = canvas.trace(img_path= p,zoom=7,scale=4)

obj.trace()

#changes which you can make:
*In this code I'm using brave logo image.


*Write your image name at the variable p.
*For size of image, change scale value.
*For zoom, change zoom value.


Thank you.


 

 

      

Comments

Popular posts from this blog

Cool python turtle graphic

 Hello everyone, hope you all are fit and fine. ⚠️⚠️⚠️If you are unable to copy the code, then copy whole page. Watch on YouTube: Source Code: from turtle import* import colorsys speed(0) fd(170) he = 0.8 bgcolor("black") for i in range(200):       col=colorsys.hsv_to_rgb(he,1,1)     he+=0.004     fillcolor(col)     def triangle(a,b,c):         lt(120)         fd(a-i)         lt(120)         fd(b-i)         lt(90)         fd(c-i)     begin_fill()     triangle(200,200,200)     left(10)     left(20)     left(90)     triangle(200,200,200)     right(93)     end_fill()     hideturtle() done()     #it is going to be very cool  #design #please watch till end Thank you, all.

Make calculator in python

 Hello everyone, hope you all are fit and fine. ⚠️⚠️⚠️If you are unable to copy the code, then copy whole page. Source Code:      #Calculator def calculator():          print("\n Welcome to the Calculator:\n Programmed by Coder_of_Paradise")                   operation = input('''     Type of operations can be hold in this calculator     + for addition     - for substraction     * for multiplication     / for division     ** for power     Enter your choice ;     ''')        num1 = int(input("Enter your first number : "))          num2 = int(input("Enter your second number : "))          if operation == '+':         print(f"{num1}+{num2}={num1+num2}")              elif operation == '-':  ...

Simple Animation In Python

 ⚠️⚠️⚠️If you are unable to copy the code, then copy whole page. Source code: from matplotlib import animation, pyplot as plt from matplotlib.axes import Axes from mpl_toolkits.mplot3d import Axes3D from matplotlib.figure import Figure import numpy as np import numpy.typing as npt LIMITS = (-50, 50) class DrawAnimation:     def __init__(self) -> None:         self.fig:Figure=plt.figure(figsize=(20,6))         self.ax=self.fig.add_subplot(111,projection=Axes3D.name)         self.fig.subplots_adjust(top=1.1, bottom=-0.1)         self.func_=lambda x, y: x*y**3-y*x**3          def set_theme(self) -> None:         self.fig.patch.set_facecolor('black')         self.ax.set_facecolor('black')         self.ax.get_yaxis().set_visible(False)         self.ax.get_xaxis().set_visible(False)   ...