OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to evaluate the color in a pyplot image at a given point?

  • Thread starter Thread starter Tuur Vanlerberghe
  • Start date Start date
T

Tuur Vanlerberghe

Guest
Is there a method in Python to evaluate the color in a graph that I made with pyplot? I plotted some F1 circuits in pyplot like this: yellow circuit on grey background

Next up in my project is to determine if a point in this image is on the track or not. Points that are yellow are on track, the red square is the end of the track and the green square is the start. I would like to determine the color on any coordinate in this plot. Methods where I use the JPG file are not handy because I want to use the real coordinates. For example: this track is between 24.464N and 24.478N and 54.620 and 54.690E. Can I get the color of the point (24.46823,54.66023)

I could only find methods that are using the JPG-file (Pillow) but it's not that easy or accurate to transform the real-life coordinates to the correct point on the JPG-file.

Is there a method in pyplot I overlooked or maybe skimage?
<p>Is there a method in Python to evaluate the color in a graph that I made with pyplot?
I plotted some F1 circuits in pyplot like this: <a href="https://i.sstatic.net/VNo0DMth.jpg" rel="nofollow noreferrer">yellow circuit on grey background</a></p>
<p>Next up in my project is to determine if a point in this image is on the track or not. Points that are yellow are on track, the red square is the end of the track and the green square is the start. I would like to determine the color on any coordinate in this plot. Methods where I use the JPG file are not handy because I want to use the real coordinates. For example: this track is between 24.464N and 24.478N and 54.620 and 54.690E. Can I get the color of the point (24.46823,54.66023)</p>
<p>I could only find methods that are using the JPG-file (Pillow) but it's not that easy or accurate to transform the real-life coordinates to the correct point on the JPG-file.</p>
<p>Is there a method in pyplot I overlooked or maybe skimage?</p>
 

Latest posts

Top