Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

219
Vistas
How to crop images in irregular shapes/polygons?

I'm trying to crop an image by coordinates, in an irregular shape. I do have the following polygon of coordinates where I have to draw a line and cut and keep only this polygon from the image.

These are the cooridnates (inside a canvas, starting clockwise)

"polygon": [
   [0.152, 0.416],
   [0.16, 0.186],
   [0.172, 0.02],
   [0.211, 0.006],
   [0.357, 0.006],
   [0.592, 0.006],
   [0.656, 0.023],
   [0.775, 0.043],
   [0.789, 0.055],
   [0.756, 0.549],
   [0.756, 0.637],
   [0.736, 0.955],
   [0.719, 0.994],
   [0.607, 0.996],
   [0.197, 0.996],
   [0.131, 0.994],
   [0.123, 0.982],
   [0.125, 0.855],
   [0.139, 0.668],
   [0.139, 0.584]
],

What would be the best way/approach or tool to do this kind of job?

Inputs: image + coordinates of a polygon inside this image Output: the polygon inside the image (or transparent/paint white the rest of the pixels that are not included inside the polygon)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda