{
  "id": "task_libraries:image-processing/python",
  "path": "/exapedia/python-image-processing-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python image processing libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python image processing libraries open image files, change their pixels, and save the results. These libraries resize uploads, prepare training data for vision models, and convert images between formats."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python image processing libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pillow",
                  "label": [
                    {
                      "t": "text",
                      "text": "Pillow"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F1"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F2"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F5"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F3"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#imageio",
                  "label": [
                    {
                      "t": "text",
                      "text": "imageio"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F26"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F27"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F28"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opencv-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F49"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F50"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F51"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F54"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F52"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#torchvision",
                  "label": [
                    {
                      "t": "text",
                      "text": "torchvision"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F75"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kornia",
                  "label": [
                    {
                      "t": "text",
                      "text": "kornia"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F101"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F102"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F105"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F103"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#imagecodecs",
                  "label": [
                    {
                      "t": "text",
                      "text": "imagecodecs"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wand",
                  "label": [
                    {
                      "t": "text",
                      "text": "wand"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvips",
                  "label": [
                    {
                      "t": "text",
                      "text": "pyvips"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most installs, while "
        },
        {
          "t": "link",
          "href": "#torchvision",
          "label": [
            {
              "t": "text",
              "text": "torchvision"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most GitHub stars."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Reads video frames",
            "Works on NumPy arrays",
            "Draws shapes and text",
            "Runs on a GPU",
            "Output formats"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pillow",
                  "label": [
                    {
                      "t": "text",
                      "text": "Pillow"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F7"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F8"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F9"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#imageio",
                  "label": [
                    {
                      "t": "text",
                      "text": "imageio"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F31"
                }
              ],
              [],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opencv-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F49"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F340"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F56"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#torchvision",
                  "label": [
                    {
                      "t": "text",
                      "text": "torchvision"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F77"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F78"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F79"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F80"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kornia",
                  "label": [
                    {
                      "t": "text",
                      "text": "kornia"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F107"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F341"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F108"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F109"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#imagecodecs",
                  "label": [
                    {
                      "t": "text",
                      "text": "imagecodecs"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wand",
                  "label": [
                    {
                      "t": "text",
                      "text": "wand"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvips",
                  "label": [
                    {
                      "t": "text",
                      "text": "pyvips"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F342"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pillow",
          "name": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/python-pillow/Pillow"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pillow/"
            },
            {
              "label": "Docs",
              "href": "https://python-pillow.org"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Pillow is the maintained fork of PIL, the Python Imaging Library. "
            },
            {
              "t": "code",
              "text": "Image.open"
            },
            {
              "t": "text",
              "text": " reads a file and detects its format from the contents, and "
            },
            {
              "t": "code",
              "text": "save"
            },
            {
              "t": "text",
              "text": " writes it back out, choosing the format from the file extension. Between the two, modules such as "
            },
            {
              "t": "code",
              "text": "ImageDraw"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "ImageFilter"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "ImageOps"
            },
            {
              "t": "text",
              "text": " draw, filter, resize, crop, and convert colors. Reading covers many more formats than writing, which sticks to the common interchange formats."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F1"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F2"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F4"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F3"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pillow.readthedocs.io/en/latest/reference/Image.html?highlight=Image.fromarray",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "Pillow"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jointakahe/takahe",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "resizes an uploaded image to a fixed size, applying EXIF rotation and saving it as WebP with Pillow."
                }
              ],
              "language": "python",
              "code": "def resize_image(\n    image: File,\n    *,\n    size: tuple[int, int],\n    cover=True,\n    keep_format=False,\n) -> ImageFile:\n    # ...\n    with Image.open(image) as img:\n        try:\n            # Take any orientation EXIF data, apply it, and strip the\n            # orientation data from the new image.\n            img = ImageOps.exif_transpose(img)\n        # ...\n\n        if cover:\n            resized_image = ImageOps.fit(img, size, method=Image.Resampling.BILINEAR)\n        else:\n            resized_image = img.copy()\n            resized_image.thumbnail(size, resample=Image.Resampling.BILINEAR)\n        new_image_bytes = io.BytesIO()\n        if keep_format:\n            resized_image.save(new_image_bytes, format=img.format)\n            file = ImageFile(new_image_bytes)\n        else:\n            resized_image.save(new_image_bytes, format=\"webp\", save_all=True)\n            file = ImageFile(new_image_bytes, name=\"image.webp\")\n        file.image = resized_image\n        return file",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jointakahe/takahe/blob/188e5a244689d5acec04ef5b9f73eb30eed13167/core/files.py#L15-L50",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pillow%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "Pillow"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/9001/copyparty",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "makes a thumbnail with Pillow, rotating it to match the EXIF orientation and cropping it to fit."
                }
              ],
              "language": "python",
              "code": "def fancy_pillow(self, im: \"Image.Image\", fmt: str, vn: VFS) -> \"Image.Image\":\n    # exif_transpose is expensive (loads full image + unconditional copy)\n    res = self.getres(vn, fmt)\n    r = max(*res) * 2\n    im.thumbnail((r, r), resample=Image.LANCZOS)\n    try:\n        k = next(k for k, v in ExifTags.TAGS.items() if v == \"Orientation\")\n        exif = im.getexif()\n        rot = int(exif[k])\n        del exif[k]\n    except:\n        rot = 1\n\n    rots = {8: Image.ROTATE_90, 3: Image.ROTATE_180, 6: Image.ROTATE_270}\n    if rot in rots:\n        im = im.transpose(rots[rot])\n\n    if \"f\" in fmt:\n        im.thumbnail(res, resample=Image.LANCZOS)\n    else:\n        iw, ih = im.size\n        dw, dh = res\n        res = (min(iw, dw), min(ih, dh))\n        im = ImageOps.fit(im, res, method=Image.LANCZOS)\n\n    return im",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/9001/copyparty/blob/6867ccc51181e7965445c3d158ddddf9a8fd817e/copyparty/th_srv.py#L742-L767",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pillow%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "Pillow"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from PIL import Image\n\nwith Image.open(\"hopper.jpg\") as im:\n    print(im.getbands())  # Returns ('R', 'G', 'B')",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/python-pillow/Pillow/blob/1ed0dc3d61bf9f39de46575d8ab4160a672b2022/docs/reference/Image.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "imageio",
          "name": [
            {
              "t": "text",
              "text": "imageio"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/imageio/imageio"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/imageio/"
            },
            {
              "label": "Docs",
              "href": "https://imageio.readthedocs.io"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "imageio reads and writes images and video as NumPy arrays through a handful of functions: "
            },
            {
              "t": "code",
              "text": "imread"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "imwrite"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "imiter"
            },
            {
              "t": "text",
              "text": ", which steps through the frames of an animation or video. Its only core dependencies are NumPy and Pillow. Video needs "
            },
            {
              "t": "code",
              "text": "imageio-ffmpeg"
            },
            {
              "t": "text",
              "text": " or "
            },
            {
              "t": "code",
              "text": "pyav"
            },
            {
              "t": "text",
              "text": ", and TIFF files need "
            },
            {
              "t": "code",
              "text": "tifffile"
            },
            {
              "t": "text",
              "text": ". Files, URLs, and bytes all work as input. Unlike "
            },
            {
              "t": "link",
              "href": "#pillow",
              "label": [
                {
                  "t": "text",
                  "text": "Pillow"
                }
              ]
            },
            {
              "t": "text",
              "text": ", imageio returns plain arrays rather than image objects."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F26"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F27"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F29"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F28"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://imageio.readthedocs.io/en/stable/reference/core_v3.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "imageio"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ORB-HD/deface",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "blurs faces in a photo, reading it and its EXIF metadata with imageio and saving the result."
                }
              ],
              "language": "python",
              "code": "def image_detect(\n        ipath: str,\n        opath: str,\n        # ...\n):\n    frame = iio.imread(ipath)\n\n    if keep_metadata:\n        # Source image EXIF metadata retrieval via imageio V3 lib\n        metadata = imageio.v3.immeta(ipath)\n        exif_dict = metadata.get(\"exif\", None)\n\n    # Perform network inference, get bb dets but discard landmark predictions\n    dets, _ = centerface(frame, threshold=threshold)\n\n    anonymize_frame(\n        dets, frame, mask_scale=mask_scale,\n        replacewith=replacewith, ellipse=ellipse, draw_scores=draw_scores,\n        replaceimg=replaceimg, mosaicsize=mosaicsize\n    )\n\n    # ...\n\n    imageio.imsave(opath, frame)\n\n    if keep_metadata:\n        # Save image with EXIF metadata\n        imageio.imsave(opath, frame, exif=exif_dict)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ORB-HD/deface/blob/50930f71eadbe2a592e577e77773b156d79b3437/deface/deface.py#L186-L225",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20imageio%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "imageio"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ORB-HD/deface",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "blurs faces in a video frame by frame, reading and writing it through imageio's FFmpeg plugin."
                }
              ],
              "language": "python",
              "code": "def video_detect(\n        ipath: str,\n        opath: str,\n        # ...\n):\n    try:\n        if 'fps' in ffmpeg_config:\n            reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath, fps=ffmpeg_config['fps'])\n        else:\n            reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath)\n\n        meta = reader.get_meta_data()\n        _ = meta['size']\n    # ...\n    if opath is not None:\n        # ...\n        writer: imageio.plugins.ffmpeg.FfmpegFormat.Writer = imageio.get_writer(\n            opath, format='FFMPEG', mode='I', **_ffmpeg_config\n        )\n\n    for frame in read_iter:\n        # ...\n        if opath is not None:\n            writer.append_data(frame)\n\n        # ...\n    reader.close()\n    if opath is not None:\n        writer.close()\n    # ...",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ORB-HD/deface/blob/50930f71eadbe2a592e577e77773b156d79b3437/deface/deface.py#L105-L183",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20imageio%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "imageio"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import imageio.v3 as iio\nim = iio.imread('imageio:chelsea.png')  # read a standard image\nim.shape  # im is a NumPy array of shape (300, 451, 3)\niio.imwrite('chelsea.jpg', im)  # convert to jpg",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/imageio/imageio/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F34"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "opencv-python",
          "name": [
            {
              "t": "fact",
              "fact": "F49"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/opencv/opencv-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/opencv-python/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F49"
            },
            {
              "t": "text",
              "text": " installs OpenCV, the computer vision library, as prebuilt wheels that run on the CPU. The project publishes four packages: the main build and a contrib build with extra modules, each with a headless variant that leaves out GUI libraries for Docker and servers. All four share one module name, so each environment takes exactly one package. CUDA and other optional modules need a manual build from source."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F50"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F51"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F53"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F52"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/opencv/opencv-python/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F49"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/andrewdcampbell/OpenCV-Document-Scanner",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "scans a photographed document by warping it flat, sharpening it, and thresholding it to black and white with OpenCV."
                }
              ],
              "language": "python",
              "code": "def scan(self, image_path):\n\n    RESCALED_HEIGHT = 500.0\n    OUTPUT_DIR = 'output'\n\n    # load the image and compute the ratio of the old height\n    # to the new height, clone it, and resize it\n    image = cv2.imread(image_path)\n\n    assert(image is not None)\n\n    ratio = image.shape[0] / RESCALED_HEIGHT\n    orig = image.copy()\n    rescaled_image = imutils.resize(image, height = int(RESCALED_HEIGHT))\n\n    # get the contour of the document\n    screenCnt = self.get_contour(rescaled_image)\n\n    if self.interactive:\n        screenCnt = self.interactive_get_contour(screenCnt, rescaled_image)\n\n    # apply the perspective transformation\n    warped = transform.four_point_transform(orig, screenCnt * ratio)\n\n    # convert the warped image to grayscale\n    gray = cv2.cvtColor(warped, cv2.COLOR_BGR2GRAY)\n\n    # sharpen image\n    sharpen = cv2.GaussianBlur(gray, (0,0), 3)\n    sharpen = cv2.addWeighted(gray, 1.5, sharpen, -0.5, 0)\n\n    # apply adaptive threshold to get black and white effect\n    thresh = cv2.adaptiveThreshold(sharpen, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 21, 15)\n\n    # save the transformed image\n    basename = os.path.basename(image_path)\n    cv2.imwrite(OUTPUT_DIR + '/' + basename, thresh)\n    print(\"Proccessed \" + basename)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/andrewdcampbell/OpenCV-Document-Scanner/blob/efdcd70b02254153e72dbf8aa106113371695903/scan.py#L266-L303",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20opencv-python%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F49"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/EdjeElectronics/OpenCV-Playing-Card-Detector",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "prepares a camera frame for card detection by converting it to grayscale, blurring it, and thresholding it with OpenCV."
                }
              ],
              "language": "python",
              "code": "def preprocess_image(image):\n    \"\"\"Returns a grayed, blurred, and adaptively thresholded camera image.\"\"\"\n\n    gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)\n    blur = cv2.GaussianBlur(gray,(5,5),0)\n\n    # ...\n    img_w, img_h = np.shape(image)[:2]\n    bkg_level = gray[int(img_h/100)][int(img_w/2)]\n    thresh_level = bkg_level + BKG_THRESH\n\n    retval, thresh = cv2.threshold(blur,thresh_level,255,cv2.THRESH_BINARY)\n\n    return thresh",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/EdjeElectronics/OpenCV-Playing-Card-Detector/blob/e7645adacfa3e8a912eefd7e3dc2441e5a3b8c34/Cards.py#L106-L127",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F265"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20opencv-python%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F49"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import cv2 as cv\nimport sys\n\nimg = cv.imread(cv.samples.findFile(\"starry_night.jpg\"))\nif img is None:\n    sys.exit(\"Could not read the image.\")\n\ncv.imshow(\"Display window\", img)\nk = cv.waitKey(0)\nif k == ord(\"s\"):\n    cv.imwrite(\"starry_night.png\", img)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.opencv.org/4.x/db/deb/tutorial_display_image.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F59"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "torchvision",
          "name": [
            {
              "t": "text",
              "text": "torchvision"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pytorch/vision"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/torchvision/"
            },
            {
              "label": "Docs",
              "href": "https://pytorch.org/vision"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "torchvision is the computer vision package for PyTorch, with datasets, model architectures, and image transforms. Its current transforms API resizes, crops, flips, and normalizes images for training or inference, and moves bounding boxes and masks along with the image. Transforms accept PIL images or tensors, including CUDA tensors that stay on the GPU. Each torchvision release pairs with a single PyTorch version."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F74"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F76"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.pytorch.org/vision/0.22/generated/torchvision.io.VideoReader.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "torchvision"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jamesWalker55/comfyui-various",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F271"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "resizes a batch of image tensors to a given width and height with torchvision's resize."
                }
              ],
              "language": "python",
              "code": "def execute(\n    self,\n    image: torch.Tensor,\n    width: int,\n    height: int,\n    interpolation_mode: str,\n):\n    assert isinstance(image, torch.Tensor)\n    assert isinstance(height, int)\n    assert isinstance(width, int)\n    assert isinstance(interpolation_mode, str)\n\n    interpolation_mode = interpolation_mode.upper().replace(\" \", \"_\")\n    interpolation_mode = getattr(InterpolationMode, interpolation_mode)\n\n    image = image.permute(0, 3, 1, 2)\n    image = F.resize(\n        image,\n        (height, width),\n        interpolation=interpolation_mode,\n        antialias=True,\n    )\n    image = image.permute(0, 2, 3, 1)\n\n    return (image,)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jamesWalker55/comfyui-various/blob/50d23bdfc444af630cc6ec55319a50fac21b84ce/comfyui_image_ops.py#L270-L294",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20torchvision%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "torchvision"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jamesWalker55/comfyui-various",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "flips a batch of image tensors horizontally or vertically with torchvision."
                }
              ],
              "language": "python",
              "code": "def execute(\n    self,\n    image: torch.Tensor,\n    direction: str,\n):\n    assert isinstance(image, torch.Tensor)\n    assert direction in (\"horizontal\", \"vertical\")\n\n    image = image.permute(0, 3, 1, 2)\n    if direction == \"horizontal\":\n        image = F.hflip(image)\n    else:\n        image = F.vflip(image)\n    image = image.permute(0, 2, 3, 1)\n\n    return (image,)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jamesWalker55/comfyui-various/blob/50d23bdfc444af630cc6ec55319a50fac21b84ce/comfyui_image_ops.py#L309-L324",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F279"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20torchvision%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "torchvision"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import torch\nfrom torchvision.transforms import v2\n\nH, W = 32, 32\nimg = torch.randint(0, 256, size=(3, H, W), dtype=torch.uint8)\n\ntransforms = v2.Compose([\n    v2.RandomResizedCrop(size=(224, 224), antialias=True),\n    v2.RandomHorizontalFlip(p=0.5),\n    v2.ToDtype(torch.float32, scale=True),\n    v2.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),\n])\nimg = transforms(img)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.pytorch.org/vision/stable/transforms.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F82"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "kornia",
          "name": [
            {
              "t": "text",
              "text": "kornia"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/kornia/kornia"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/kornia/"
            },
            {
              "label": "Docs",
              "href": "https://kornia.readthedocs.io"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Kornia is a computer vision library built on PyTorch. Its operations are differentiable, so gradients flow through them during training. Its more than a thousand operators cover filters, color conversion, geometric warps, feature matching, and camera models, and most have no equivalent in "
            },
            {
              "t": "link",
              "href": "#torchvision",
              "label": [
                {
                  "t": "text",
                  "text": "torchvision"
                }
              ]
            },
            {
              "t": "text",
              "text": ". Functions such as "
            },
            {
              "t": "code",
              "text": "rotate"
            },
            {
              "t": "text",
              "text": " take one parameter per image in a batch, and every operator accepts CPU, CUDA, and Apple MPS tensors."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F101"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F102"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F104"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F103"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F106"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://kornia.readthedocs.io/en/latest/_sources/augmentation.container.rst.txt",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "kornia"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F282"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Comfy-Org/ComfyUI",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F287"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "applies a morphology operation such as erosion or dilation to an image batch with Kornia."
                }
              ],
              "language": "python",
              "code": "@classmethod\ndef execute(cls, image, operation, kernel_size) -> io.NodeOutput:\n    device = comfy.model_management.get_torch_device()\n    kernel = torch.ones(kernel_size, kernel_size, device=device)\n    image_k = image.to(device).movedim(-1, 1)\n    if operation == \"erode\":\n        output = erosion(image_k, kernel)\n    elif operation == \"dilate\":\n        output = dilation(image_k, kernel)\n    elif operation == \"open\":\n        output = opening(image_k, kernel)\n    elif operation == \"close\":\n        output = closing(image_k, kernel)\n    elif operation == \"gradient\":\n        output = gradient(image_k, kernel)\n    elif operation == \"top_hat\":\n        output = top_hat(image_k, kernel)\n    elif operation == \"bottom_hat\":\n        output = bottom_hat(image_k, kernel)\n    else:\n        raise ValueError(f\"Invalid operation {operation} for morphology. Must be one of 'erode', 'dilate', 'open', 'close', 'gradient', 'tophat', 'bottomhat'\")\n    img_out = output.to(comfy.model_management.intermediate_device()).movedim(1, -1)\n    return io.NodeOutput(img_out)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Comfy-Org/ComfyUI/blob/07dd46dc4abd9b6af81aae7c590a9a30d5a096c8/comfy_extras/nodes_morphology.py#L31-L53",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F290"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20kornia%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "kornia"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import numpy as np\nimport torch\nimport kornia\n\nnp_img = (np.random.rand(48, 64, 3) * 255).astype(np.uint8)  # (H, W, C) uint8\nt = kornia.image.image_to_tensor(np_img)[None].float() / 255.0  # (1, 3, 48, 64) in [0, 1]",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/kornia/kornia/blob/7200ba929f6abac8bde8d1f9c3152b95636f1230/docs/source/get-started/conventions.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "imagecodecs",
          "name": [
            {
              "t": "text",
              "text": "imagecodecs"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cgohlke/imagecodecs"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/imagecodecs/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "imagecodecs encodes and decodes image and compression formats in memory, for scientific image packages such as tifffile and zarr. Each codec has a pair of functions named after it, following the "
            },
            {
              "t": "code",
              "text": "codec_encode"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "codec_decode"
            },
            {
              "t": "text",
              "text": " pattern, that convert between bytes and NumPy arrays, while "
            },
            {
              "t": "code",
              "text": "imread"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "imwrite"
            },
            {
              "t": "text",
              "text": " read and write files directly. Coverage includes AVIF, HEIF, EXR, WebP, and TIFF, plus byte compressors such as Zstandard and Brotli."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/cgohlke/imagecodecs/blob/906a0d58aca1e74b4cd5e9a41a8a9cc53e66b717/imagecodecs/imagecodecs.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "imagecodecs"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Little-endian only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The package runs only on little-endian platforms."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/marcinz606/NegPy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F300"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "encodes an image array as a JPEG XL file with imagecodecs, setting bit depth, color tags, and compression effort."
                }
              ],
              "language": "python",
              "code": "def encode_jxl(\n    arr: np.ndarray,\n    *,\n    photometric: str,\n    primaries: Optional[str],\n    transfer: Optional[str],\n    lossless: bool = True,\n    distance: Optional[float] = None,\n    effort: int = 7,\n) -> bytes:\n    \"\"\"Encode uint8/uint16 pixels as JPEG XL. libjxl tags the color enumeratively,\n    so no ICC profile is embedded.\"\"\"\n    bits = imagecodecs.jpegxl_encode(\n        np.ascontiguousarray(arr),\n        bitspersample=8 if arr.dtype == np.uint8 else 16,\n        photometric=photometric,\n        primaries=primaries,\n        transfer=transfer,\n        lossless=lossless,\n        distance=None if lossless else distance,\n        effort=effort,\n        numthreads=0,  # all cores; single-threaded otherwise (~7x slower)\n    )\n    return bytes(bits)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/marcinz606/NegPy/blob/045654de82c97fd1a286d4864632e4498f352530/negpy/services/export/encoders.py#L152-L175",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F303"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20imagecodecs%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "imagecodecs"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F305"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F306"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/seung-lab/cloud-volume",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F305"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "compresses a grayscale or color image chunk to JPEG XL with imagecodecs."
                }
              ],
              "language": "python",
              "code": "def encode_jpegxl(arr, level, effort, decodingspeed, num_threads):\n  if not np.issubdtype(arr.dtype, np.uint8):\n    raise ValueError(\"Only accepts uint8 arrays. Got: \" + str(arr.dtype))\n\n  arr, num_channel = as2d(arr)\n  lossless = level >= 100\n\n  if num_channel == 1:\n    return imagecodecs.jpegxl_encode(\n      arr[:,:,0],\n      photometric=\"GRAY\",\n      level=level,\n      lossless=lossless,\n      effort=effort,\n      decodingspeed=decodingspeed,\n      numthreads=num_threads,\n    )\n  elif num_channel == 3:\n    arr = np.transpose(arr, axes=[2, 0, 1])\n    return imagecodecs.jpegxl_encode(\n      arr,\n      photometric=\"RGB\",\n      level=level,\n      lossless=lossless,\n      effort=effort,\n      decodingspeed=decodingspeed,\n      numthreads=num_threads,\n    )\n  raise ValueError(\"Number of image channels should be 1 or 3. Got: {}\".format(arr.shape[3]))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/seung-lab/cloud-volume/blob/98e1f3f9e95be8f678d380555883f74e62d2671c/cloudvolume/chunks.py#L220-L248",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F308"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F307"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20imagecodecs%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "imagecodecs"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import numpy\narray = numpy.random.randint(100, 200, (256, 256, 3), numpy.uint8)\n\nfrom imagecodecs import imwrite, imread\nimwrite('_test.jp2', array)\nimage = imread('_test.jp2')",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/cgohlke/imagecodecs/blob/5483bfbd4406379d639b07fdd24ede55da3acaa4/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "wand",
          "name": [
            {
              "t": "text",
              "text": "wand"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/emcconville/wand"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/wand/"
            },
            {
              "label": "Docs",
              "href": "http://docs.wand-py.org/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Wand is a Python binding for ImageMagick that calls its MagickWand library through "
            },
            {
              "t": "code",
              "text": "ctypes"
            },
            {
              "t": "text",
              "text": ", Python's module for calling C libraries, which also lets it run on PyPy, an alternative Python interpreter. "
            },
            {
              "t": "code",
              "text": "Image(filename=...)"
            },
            {
              "t": "text",
              "text": " opens a file inside a "
            },
            {
              "t": "code",
              "text": "with"
            },
            {
              "t": "text",
              "text": " block, and methods such as "
            },
            {
              "t": "code",
              "text": "resize"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "save"
            },
            {
              "t": "text",
              "text": " work on it. ImageMagick itself is installed separately, such as the "
            },
            {
              "t": "code",
              "text": "libmagickwand-dev"
            },
            {
              "t": "text",
              "text": " package from APT on Debian and Ubuntu."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.wand-py.org/en/latest/whatsnew/0.5.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "wand"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F309"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F310"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F312"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/hendrycks/robustness",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F312"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "adds motion blur to an image with ImageMagick through Wand, then decodes the result into an array."
                }
              ],
              "language": "python",
              "code": "def motion_blur(x, severity=1):\n    c = [(12,4), (17,6), (17, 9), (17,13), (22,16)][severity - 1]\n\n    output = BytesIO()\n    x.save(output, format='PNG')\n    x = MotionImage(blob=output.getvalue())\n\n    x.motion_blur(radius=c[0], sigma=c[1], angle=np.random.uniform(-45, 45))\n\n    x = cv2.imdecode(np.fromstring(x.make_blob(), np.uint8),\n                     cv2.IMREAD_UNCHANGED)\n\n    if x.shape != (299, 299):\n        return np.clip(x[..., [2, 1, 0]], 0, 255)  # BGR to RGB\n    else:  # greyscale to RGB\n        return np.clip(np.array([x, x, x]).transpose((1, 2, 0)), 0, 255)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/hendrycks/robustness/blob/e0377d46411fa30c01a9559017bdb6a5f78d4abf/ImageNet-C/create_c/make_imagenet_c_inception.py#L365-L380",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F315"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F314"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20wand%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "wand"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F317"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F318"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/hendrycks/robustness",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F317"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "draws a motion-blurred snow layer over an image, blurring the layer with Wand."
                }
              ],
              "language": "python",
              "code": "def snow(x, severity=1):\n    c = [(0.1, 0.3, 3, 0.5, 10, 4, 0.8),\n         (0.2, 0.3, 2, 0.5, 12, 4, 0.7),\n         (0.55, 0.3, 4, 0.9, 12, 8, 0.7),\n         (0.55, 0.3, 4.5, 0.85, 12, 8, 0.65),\n         (0.55, 0.3, 2.5, 0.85, 12, 12, 0.55)][severity - 1]\n\n    x = np.array(x, dtype=np.float32) / 255.\n    snow_layer = np.random.normal(size=x.shape[:2], loc=c[0], scale=c[1])  # [:2] for monochrome\n\n    snow_layer = clipped_zoom(snow_layer[..., np.newaxis], c[2])\n    snow_layer[snow_layer < c[3]] = 0\n\n    snow_layer = PILImage.fromarray((np.clip(snow_layer.squeeze(), 0, 1) * 255).astype(np.uint8), mode='L')\n    output = BytesIO()\n    snow_layer.save(output, format='PNG')\n    snow_layer = MotionImage(blob=output.getvalue())\n\n    snow_layer.motion_blur(radius=c[4], sigma=c[5], angle=np.random.uniform(-135, -45))\n\n    snow_layer = cv2.imdecode(np.fromstring(snow_layer.make_blob(), np.uint8),\n                              cv2.IMREAD_UNCHANGED) / 255.\n    snow_layer = snow_layer[..., np.newaxis]\n\n    x = c[6] * x + (1 - c[6]) * np.maximum(x, cv2.cvtColor(x, cv2.COLOR_RGB2GRAY).reshape(299, 299, 1) * 1.5 + 0.5)\n    return np.clip(x + snow_layer + np.rot90(snow_layer, k=2), 0, 1) * 255",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/hendrycks/robustness/blob/e0377d46411fa30c01a9559017bdb6a5f78d4abf/ImageNet-C/create_c/make_imagenet_c_inception.py#L420-L445",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F320"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F319"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20wand%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "wand"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from wand.image import Image\nfrom wand.display import display\n\nwith Image(filename='mona-lisa.png') as img:\n    print(img.size)\n    for r in 1, 2, 3:\n        with img.clone() as i:\n            i.resize(int(i.width * r * 0.25), int(i.height * r * 0.25))\n            i.rotate(90 * r)\n            i.save(filename='mona-lisa-{0}.png'.format(r))\n            display(i)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/emcconville/wand/blob/e2c96b349d09d951f5e7e0a4fb9a2e788e31df32/docs/index.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyvips",
          "name": [
            {
              "t": "text",
              "text": "pyvips"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/libvips/pyvips"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyvips/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "pyvips is the Python binding for libvips. A program builds a pipeline of operations on a source image, and the pipeline runs only when the result is written. libvips then streams the image through it a section at a time, in parallel. Because libvips never loads an entire image into memory, memory use stays low on very large files. "
            },
            {
              "t": "code",
              "text": "pip install \"pyvips[binary]\""
            },
            {
              "t": "text",
              "text": " installs a self-contained build with the most common libraries."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://libvips.github.io/pyvips/intro.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "pyvips"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F321"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F322"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F323"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F324"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F326"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F327"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/zulip/zulip",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F326"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "crops and resizes an uploaded avatar to a square PNG with pyvips."
                }
              ],
              "language": "python",
              "code": "def resize_avatar(image_data: bytes, size: int = DEFAULT_AVATAR_SIZE) -> bytes:\n    # This will scale up, if necessary, and will scale the smallest\n    # dimension to fit.  That is, a 1x1000 image will end up with the\n    # one middle pixel enlarged to fill the full square.\n    # The resizing dimensions should be kept in sync with the client-side\n    # resizing code in web/upload_widget.ts.\n    with libvips_check_image(image_data):\n        return pyvips.Image.thumbnail_buffer(\n            image_data,\n            size,\n            height=size,\n            crop=pyvips.Interesting.CENTRE,\n        ).write_to_buffer(\".png\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/zulip/zulip/blob/5ccdbd66e5d4b6f481b05ad8a7e1b8cf9e369196/zerver/lib/thumbnail.py#L209-L221",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F329"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F328"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pyvips%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "pyvips"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F331"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F332"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/zulip/zulip",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F331"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "shrinks an uploaded logo to fit within maximum dimensions with pyvips, keeping its aspect ratio."
                }
              ],
              "language": "python",
              "code": "def resize_logo(image_data: bytes) -> bytes:\n    # This will only scale the image down, and will resize it to\n    # preserve aspect ratio and be contained within the maximum logo\n    # dimensions; it does not add any padding to make it exactly that\n    # size.  A 2000x10 pixel image will end up as 1000x5; a 10x10 will\n    # end up 10x10.\n    # The resizing dimensions should be kept in sync with the client-side\n    # resizing code in web/upload_widget.ts.\n    with libvips_check_image(image_data):\n        return pyvips.Image.thumbnail_buffer(\n            image_data,\n            MAX_REALM_LOGO_WIDTH,\n            height=MAX_REALM_LOGO_HEIGHT,\n            size=pyvips.Size.DOWN,\n        ).write_to_buffer(\".png\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/zulip/zulip/blob/5ccdbd66e5d4b6f481b05ad8a7e1b8cf9e369196/zerver/lib/thumbnail.py#L228-L242",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F334"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F333"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pyvips%20for%20image%20processing%3A%20resizing%2C%20cropping%2C%20filtering%2C%20and%20transforming%20images&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "pyvips"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pyvips\n\nimage = pyvips.Image.new_from_file('some-image.jpg', access='sequential')\nimage *= [1, 2, 1]\nmask = pyvips.Image.new_from_array([\n    [-1, -1, -1],\n    [-1, 16, -1],\n    [-1, -1, -1],\n], scale=8)\nimage = image.conv(mask, precision='integer')\nimage.write_to_file('x.jpg')",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/libvips/pyvips/blob/9699ee2833785e891456937ade107a8fba8795f7/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is the best Python image processing library?",
      "a": [
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the usual default for opening, resizing, drawing on, and saving images, with "
        },
        {
          "t": "fact",
          "fact": "F1"
        },
        {
          "t": "text",
          "text": " downloads a month. "
        },
        {
          "t": "link",
          "href": "#opencv-python",
          "label": [
            {
              "t": "text",
              "text": "OpenCV"
            }
          ]
        },
        {
          "t": "text",
          "text": " is faster at heavy filtering and adds computer vision and video. "
        },
        {
          "t": "link",
          "href": "#pyvips",
          "label": [
            {
              "t": "text",
              "text": "pyvips"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits very large images, and "
        },
        {
          "t": "link",
          "href": "#torchvision",
          "label": [
            {
              "t": "text",
              "text": "torchvision"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits PyTorch training pipelines."
        }
      ]
    },
    {
      "q": "Pillow or OpenCV: which one to use?",
      "a": [
        {
          "t": "text",
          "text": "Use "
        },
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": " for opening, converting, resizing, drawing on, and saving images, including text, EXIF data, and color profiles. Use "
        },
        {
          "t": "link",
          "href": "#opencv-python",
          "label": [
            {
              "t": "text",
              "text": "OpenCV"
            }
          ]
        },
        {
          "t": "text",
          "text": " for computer vision, video, cameras, and heavy filtering. Both work with NumPy arrays, so many projects use the two together."
        }
      ]
    },
    {
      "q": "Is OpenCV faster than Pillow?",
      "a": [
        {
          "t": "text",
          "text": "Yes, on full-resolution work: a large blur ran "
        },
        {
          "t": "fact",
          "fact": "F339"
        },
        {
          "t": "text",
          "text": " faster in "
        },
        {
          "t": "link",
          "href": "#opencv-python",
          "label": [
            {
              "t": "text",
              "text": "OpenCV"
            }
          ]
        },
        {
          "t": "text",
          "text": " than in "
        },
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": ". For thumbnails the two run at about the same speed, once Pillow uses draft() to decode the JPEG at a smaller size."
        }
      ]
    },
    {
      "q": "Which Python image library handles very large images?",
      "a": [
        {
          "t": "link",
          "href": "#pyvips",
          "label": [
            {
              "t": "text",
              "text": "pyvips"
            }
          ]
        },
        {
          "t": "text",
          "text": " processes images in sections instead of loading them whole, so it stays fast and uses little memory on huge files. It also suits batch thumbnailing. Its bundled build can't read PDFs, which needs a system-installed libvips."
        }
      ]
    },
    {
      "q": "Which Python image libraries can read video?",
      "a": [
        {
          "t": "link",
          "href": "#opencv-python",
          "label": [
            {
              "t": "text",
              "text": "OpenCV"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#torchvision",
          "label": [
            {
              "t": "text",
              "text": "torchvision"
            }
          ]
        },
        {
          "t": "text",
          "text": " read video frames directly, and OpenCV also reads from cameras. "
        },
        {
          "t": "link",
          "href": "#imageio",
          "label": [
            {
              "t": "text",
              "text": "imageio"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads and writes video through its FFmpeg plugin. "
        },
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": " has no video or camera input."
        }
      ]
    },
    {
      "q": "What is PIL in Python, and is it the same as Pillow?",
      "a": [
        {
          "t": "text",
          "text": "PIL is the original Python Imaging Library, which stopped getting releases long ago. "
        },
        {
          "t": "link",
          "href": "#pillow",
          "label": [
            {
              "t": "text",
              "text": "Pillow"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the maintained fork of PIL, so code still imports it under the name PIL. Install it with pip install pillow, and never install PIL in the same environment."
        }
      ]
    },
    {
      "q": "What is OpenCV in Python?",
      "a": [
        {
          "t": "text",
          "text": "OpenCV is a computer vision library, and "
        },
        {
          "t": "link",
          "href": "#opencv-python",
          "label": [
            {
              "t": "text",
              "text": "opencv-python"
            }
          ]
        },
        {
          "t": "text",
          "text": " installs it from pip as prebuilt wheels. It loads images as NumPy arrays and covers filtering, geometric transforms, feature detection, face detection, and video."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Monthly downloads, pillow",
      "display": "436.5M",
      "asOf": "2026-11-10"
    },
    "F2": {
      "label": "GitHub stars, python-pillow/Pillow",
      "display": "14.0K",
      "asOf": "2026-11-10"
    },
    "F3": {
      "label": "License, python-pillow/Pillow",
      "display": "MIT-CMU",
      "asOf": "2026-11-10"
    },
    "F4": {
      "label": "Latest release, pillow",
      "display": "13.0.0, Oct 2026",
      "asOf": "2026-10-16"
    },
    "F5": {
      "label": "Latest release date, pillow",
      "display": "Oct 2026",
      "asOf": "2026-10-16"
    },
    "F6": {
      "label": "Reads video frames, pillow",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F7": {
      "label": "Works on NumPy arrays, pillow",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F8": {
      "label": "Runs on a GPU, pillow",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F9": {
      "label": "Output formats, pillow",
      "display": "PDF, PNG, JPEG",
      "asOf": "2026-11-10"
    },
    "F10": {
      "label": "Recommended for, pillow",
      "display": "basic resizing and cropping",
      "asOf": "2026-11-10"
    },
    "F11": {
      "label": "Install, pillow",
      "display": "pip install pillow",
      "asOf": "2026-11-10"
    },
    "F12": {
      "label": "What it is, pillow",
      "display": "Pillow opens, edits, and saves images in Python. It covers resizing, cropping, drawing, color conversion, and reading and writing dozens of file formats.",
      "asOf": "2026-11-10"
    },
    "F13": {
      "label": "Strength lead, pillow",
      "display": "Everyday image tasks",
      "asOf": "2026-11-10"
    },
    "F14": {
      "label": "Strength, pillow",
      "display": "Thumbnails, resizing, format conversion, drawing, and metadata in one package.",
      "asOf": "2026-11-10"
    },
    "F15": {
      "label": "Strength lead, pillow",
      "display": "Text, EXIF, and color profiles",
      "asOf": "2026-11-10"
    },
    "F16": {
      "label": "Strength, pillow",
      "display": "ImageDraw renders text, and Pillow reads EXIF metadata and converts ICC color profiles.",
      "asOf": "2026-11-10"
    },
    "F17": {
      "label": "Strength lead, pillow",
      "display": "Ease of use",
      "asOf": "2026-11-10"
    },
    "F18": {
      "label": "Strength, pillow",
      "display": "Pillow has a gentle learning curve and is widely used, making it accessible for quick image manipulation and exploration.",
      "asOf": "2026-11-10"
    },
    "F19": {
      "label": "Caution lead, pillow",
      "display": "Portability",
      "asOf": "2026-11-10"
    },
    "F20": {
      "label": "Caution, pillow",
      "display": "Locked to Python but writes to standard formats; easy code rewrite to switch libraries.",
      "asOf": "2026-11-10"
    },
    "F21": {
      "label": "Caution lead, pillow",
      "display": "Open source dependencies",
      "asOf": "2026-11-10"
    },
    "F22": {
      "label": "Caution, pillow",
      "display": "License listed as Other; development depends on external sponsors and community support.",
      "asOf": "2026-11-10"
    },
    "F23": {
      "label": "Caution lead, pillow",
      "display": "Enterprise usage and support",
      "asOf": "2026-11-10"
    },
    "F24": {
      "label": "Caution, pillow",
      "display": "Some commercial support and maintenance is available through Sonar (formerly Tidelift) for Pillow and other packages.",
      "asOf": "2026-11-10"
    },
    "F25": {
      "label": "Quickstart, pillow",
      "display": "from PIL import Image\n\nwith Image.open(\"hopper.jpg\") as im:\n    print(im.getbands())  # Returns ('R', 'G', 'B')",
      "asOf": "2026-11-10"
    },
    "F26": {
      "label": "Monthly downloads, imageio",
      "display": "37.1M",
      "asOf": "2026-11-10"
    },
    "F27": {
      "label": "GitHub stars, imageio/imageio",
      "display": "1.7K",
      "asOf": "2026-11-10"
    },
    "F28": {
      "label": "License, imageio/imageio",
      "display": "BSD-2-Clause",
      "asOf": "2026-11-10"
    },
    "F29": {
      "label": "Latest release, imageio",
      "display": "2.38.1, Oct 2026",
      "asOf": "2026-10-08"
    },
    "F30": {
      "label": "Latest release date, imageio",
      "display": "Oct 2026",
      "asOf": "2026-10-08"
    },
    "F31": {
      "label": "Works on NumPy arrays, imageio",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F32": {
      "label": "Output formats, imageio",
      "display": "PNG, JPEG, TIFF",
      "asOf": "2026-11-10"
    },
    "F33": {
      "label": "Recommended for, imageio",
      "display": "large images fast",
      "asOf": "2026-11-10"
    },
    "F34": {
      "label": "Install, imageio",
      "display": "pip install imageio",
      "asOf": "2026-11-10"
    },
    "F35": {
      "label": "What it is, imageio",
      "display": "imageio reads and writes images and video as NumPy arrays through one API, using plugins such as Pillow and FFmpeg for each format.",
      "asOf": "2026-11-10"
    },
    "F36": {
      "label": "Strength lead, imageio",
      "display": "Hundreds of formats",
      "asOf": "2026-11-10"
    },
    "F37": {
      "label": "Strength, imageio",
      "display": "Reads and writes about 250 image and 100 video formats.",
      "asOf": "2026-11-10"
    },
    "F38": {
      "label": "Strength lead, imageio",
      "display": "V3 API guidance",
      "asOf": "2026-11-10"
    },
    "F39": {
      "label": "Strength, imageio",
      "display": "New code uses imageio.v3 functions for reading, writing, iteration, properties, metadata, and direct plugin access; also recommends using imageio.v3 for new projects.",
      "asOf": "2026-11-10"
    },
    "F40": {
      "label": "Strength lead, imageio",
      "display": "Returns NumPy arrays",
      "asOf": "2026-11-10"
    },
    "F41": {
      "label": "Strength, imageio",
      "display": "Images come back as arrays, ready for NumPy code.",
      "asOf": "2026-11-10"
    },
    "F42": {
      "label": "Caution lead, imageio",
      "display": "Version freshness",
      "asOf": "2026-11-10"
    },
    "F43": {
      "label": "Caution, imageio",
      "display": "On some platforms, preinstalled or repository versions can be outdated; for the latest features, pip installation is preferred.",
      "asOf": "2026-11-10"
    },
    "F44": {
      "label": "Caution lead, imageio",
      "display": "Some formats need plugins",
      "asOf": "2026-11-10"
    },
    "F45": {
      "label": "Caution, imageio",
      "display": "Opening one without its backend installed fails.",
      "asOf": "2026-11-10"
    },
    "F46": {
      "label": "Caution lead, imageio",
      "display": "Results vary by backend",
      "asOf": "2026-11-10"
    },
    "F47": {
      "label": "Caution, imageio",
      "display": "A different backend can change the array shape or metadata.",
      "asOf": "2026-11-10"
    },
    "F48": {
      "label": "Quickstart, imageio",
      "display": "import imageio.v3 as iio\nim = iio.imread('imageio:chelsea.png')  # read a standard image\nim.shape  # im is a NumPy array of shape (300, 451, 3)\niio.imwrite('chelsea.jpg', im)  # convert to jpg",
      "asOf": "2026-11-10"
    },
    "F49": {
      "label": "Name, opencv/opencv-python",
      "display": "opencv-python",
      "asOf": "2026-11-10"
    },
    "F50": {
      "label": "Monthly downloads, opencv-python",
      "display": "29.9M",
      "asOf": "2026-11-10"
    },
    "F51": {
      "label": "GitHub stars, opencv/opencv-python",
      "display": "5.4K",
      "asOf": "2026-11-10"
    },
    "F52": {
      "label": "License, opencv/opencv-python",
      "display": "MIT",
      "asOf": "2026-11-10"
    },
    "F53": {
      "label": "Latest release, opencv-python",
      "display": "5.0.0.93, Jul 2026",
      "asOf": "2026-07-02"
    },
    "F54": {
      "label": "Latest release date, opencv-python",
      "display": "Jul 2026",
      "asOf": "2026-07-02"
    },
    "F55": {
      "label": "Works on NumPy arrays, opencv-python",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F56": {
      "label": "Draws shapes and text, opencv-python",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F57": {
      "label": "Runs on a GPU, opencv-python",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F58": {
      "label": "Output formats, opencv-python",
      "display": "PNG, JPEG, WebP",
      "asOf": "2026-11-10"
    },
    "F59": {
      "label": "Install, opencv-python",
      "display": "pip install opencv-python",
      "asOf": "2026-11-10"
    },
    "F60": {
      "label": "What it is, opencv-python",
      "display": "opencv-python installs OpenCV from pip as prebuilt wheels. It loads images as NumPy arrays and covers filtering, geometric transforms, feature detection, and video.",
      "asOf": "2026-11-10"
    },
    "F61": {
      "label": "Strength lead, opencv-python",
      "display": "Fast filtering and resizing",
      "asOf": "2026-11-10"
    },
    "F62": {
      "label": "Strength, opencv-python",
      "display": "Ran a large blur 15 times faster than Pillow.",
      "asOf": "2026-11-10"
    },
    "F63": {
      "label": "Strength lead, opencv-python",
      "display": "Multiple packages",
      "asOf": "2026-11-10"
    },
    "F64": {
      "label": "Strength, opencv-python",
      "display": "Offers main and contrib modules in both standard and headless variants to suit different environments and GUI needs.",
      "asOf": "2026-11-10"
    },
    "F65": {
      "label": "Caution lead, opencv-python",
      "display": "GPU acceleration",
      "asOf": "2026-11-10"
    },
    "F66": {
      "label": "Caution, opencv-python",
      "display": "GPU acceleration (CUDA) availability is not included in the standard package; separate build or contrib variants may be required.",
      "asOf": "2026-11-10"
    },
    "F67": {
      "label": "Caution lead, opencv-python",
      "display": "Headless vs standard",
      "asOf": "2026-11-10"
    },
    "F68": {
      "label": "Caution, opencv-python",
      "display": "Choose headless variant for server deployments to reduce image size and dependency overhead; standard package includes GUI support.",
      "asOf": "2026-11-10"
    },
    "F69": {
      "label": "Caution lead, opencv-python",
      "display": "Colors load as BGR",
      "asOf": "2026-11-10"
    },
    "F70": {
      "label": "Caution, opencv-python",
      "display": "Convert to RGB before using images with Pillow or PyTorch.",
      "asOf": "2026-11-10"
    },
    "F71": {
      "label": "Monthly downloads, torchvision",
      "display": "15.5M",
      "asOf": "2026-11-10"
    },
    "F72": {
      "label": "GitHub stars, pytorch/vision",
      "display": "18.0K",
      "asOf": "2026-11-10"
    },
    "F73": {
      "label": "License, pytorch/vision",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-10"
    },
    "F74": {
      "label": "Latest release, torchvision",
      "display": "0.29.2, Oct 2026",
      "asOf": "2026-10-28"
    },
    "F75": {
      "label": "Latest release date, torchvision",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F76": {
      "label": "Runs on, torchvision",
      "display": "PyTorch",
      "asOf": "2026-11-10"
    },
    "F77": {
      "label": "Reads video frames, torchvision",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F78": {
      "label": "Works on NumPy arrays, torchvision",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F79": {
      "label": "Draws shapes and text, torchvision",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F80": {
      "label": "Runs on a GPU, torchvision",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F81": {
      "label": "Output formats, torchvision",
      "display": "PNG, JPEG, WebP",
      "asOf": "2026-11-10"
    },
    "F82": {
      "label": "Install, torchvision",
      "display": "pip install torchvision",
      "asOf": "2026-11-10"
    },
    "F83": {
      "label": "What it is, torchvision",
      "display": "torchvision is PyTorch's computer vision package. It provides image transforms that run on tensors, image and video reading, datasets, and pretrained models.",
      "asOf": "2026-11-10"
    },
    "F84": {
      "label": "Strength lead, torchvision",
      "display": "Pretrained models included",
      "asOf": "2026-11-10"
    },
    "F85": {
      "label": "Strength, torchvision",
      "display": "Ships datasets, reference models, and pretrained weights.",
      "asOf": "2026-11-10"
    },
    "F86": {
      "label": "Strength lead, torchvision",
      "display": "Feeds PyTorch directly",
      "asOf": "2026-11-10"
    },
    "F87": {
      "label": "Strength, torchvision",
      "display": "Loaded images go straight into a PyTorch model.",
      "asOf": "2026-11-10"
    },
    "F88": {
      "label": "Strength lead, torchvision",
      "display": "Scikit-image strength",
      "asOf": "2026-11-10"
    },
    "F89": {
      "label": "Strength, torchvision",
      "display": "Readable scientific image analysis suitable for microscopy, materials and medical imaging, focusing on clarity over throughput and not intended for real-time loops.",
      "asOf": "2026-11-10"
    },
    "F90": {
      "label": "Caution lead, torchvision",
      "display": "V2 features",
      "asOf": "2026-11-10"
    },
    "F91": {
      "label": "Caution, torchvision",
      "display": "torchvision v2 supports PIL images, tensors, videos, masks, keypoints, and OBBs; edge cases should be tested.",
      "asOf": "2026-11-10"
    },
    "F92": {
      "label": "Caution lead, torchvision",
      "display": "OpenCV images need converting",
      "asOf": "2026-11-10"
    },
    "F93": {
      "label": "Caution, torchvision",
      "display": "Convert OpenCV's BGR arrays to RGB first.",
      "asOf": "2026-11-10"
    },
    "F94": {
      "label": "Caution lead, torchvision",
      "display": "Scikit-image",
      "asOf": "2026-11-10"
    },
    "F95": {
      "label": "Caution, torchvision",
      "display": "Not suitable for real-time loops due to throughput concerns.",
      "asOf": "2026-11-10"
    },
    "F96": {
      "label": "Code, jamesWalker55/comfyui-various",
      "display": "def execute(\n    self,\n    image: torch.Tensor,\n    direction: str,\n):\n    assert isinstance(image, torch.Tensor)\n    assert direction in (\"horizontal\", \"vertical\")\n\n    image = image.permute(0, 3, 1, 2)\n    if direction == \"horizontal\":\n        image = F.hflip(image)\n    else:\n        image = F.vflip(image)\n    image = image.permute(0, 2, 3, 1)\n\n    return (image,)",
      "asOf": "2026-11-10"
    },
    "F97": {
      "label": "Repository, jamesWalker55/comfyui-various",
      "display": "jamesWalker55/comfyui-various",
      "asOf": "2026-11-10"
    },
    "F98": {
      "label": "GitHub stars, jamesWalker55/comfyui-various",
      "display": "230",
      "asOf": "2026-11-10"
    },
    "F99": {
      "label": "Last push, jamesWalker55/comfyui-various",
      "display": "Aug 2026",
      "asOf": "2026-08-19"
    },
    "F100": {
      "label": "File, jamesWalker55/comfyui-various",
      "display": "comfyui_image_ops.py · execute()",
      "asOf": "2026-11-10"
    },
    "F101": {
      "label": "Monthly downloads, kornia",
      "display": "2.2M",
      "asOf": "2026-11-10"
    },
    "F102": {
      "label": "GitHub stars, kornia/kornia",
      "display": "12.4K",
      "asOf": "2026-11-10"
    },
    "F103": {
      "label": "License, kornia/kornia",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F104": {
      "label": "Latest release, kornia",
      "display": "0.9.0, Oct 2026",
      "asOf": "2026-10-23"
    },
    "F105": {
      "label": "Latest release date, kornia",
      "display": "Oct 2026",
      "asOf": "2026-10-23"
    },
    "F106": {
      "label": "Runs on, kornia",
      "display": "PyTorch",
      "asOf": "2026-11-10"
    },
    "F107": {
      "label": "Reads video frames, kornia",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F108": {
      "label": "Draws shapes and text, kornia",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F109": {
      "label": "Output formats, kornia",
      "display": "PNG, JPEG, TIFF",
      "asOf": "2026-11-10"
    },
    "F110": {
      "label": "Recommended for, kornia",
      "display": "differentiable vision and batched tensor processing",
      "asOf": "2026-11-10"
    },
    "F111": {
      "label": "Install, kornia",
      "display": "pip install kornia",
      "asOf": "2026-11-10"
    },
    "F112": {
      "label": "What it is, kornia",
      "display": "Kornia is a differentiable computer vision library for PyTorch. It runs filters, color conversions, geometric transforms, and augmentations on batched tensors on the CPU or GPU.",
      "asOf": "2026-11-10"
    },
    "F113": {
      "label": "Strength lead, kornia",
      "display": "Differentiable operations",
      "asOf": "2026-11-10"
    },
    "F114": {
      "label": "Strength, kornia",
      "display": "Every transformation, filter, and geometric operation maintains gradients, making Kornia useful for training neural networks where data augmentation is part of the computational graph.",
      "asOf": "2026-11-10"
    },
    "F115": {
      "label": "Strength lead, kornia",
      "display": "Works on PyTorch tensors",
      "asOf": "2026-11-10"
    },
    "F116": {
      "label": "Strength, kornia",
      "display": "No conversion between steps.",
      "asOf": "2026-11-10"
    },
    "F117": {
      "label": "Strength lead, kornia",
      "display": "Production readiness",
      "asOf": "2026-11-10"
    },
    "F118": {
      "label": "Strength, kornia",
      "display": "kornia-based models can deploy like any other PyTorch model, indicating practical viability for production workflows.",
      "asOf": "2026-11-10"
    },
    "F119": {
      "label": "Caution lead, kornia",
      "display": "Assumes PyTorch experience",
      "asOf": "2026-11-10"
    },
    "F120": {
      "label": "Caution, kornia",
      "display": "Expects working knowledge of PyTorch and computer vision.",
      "asOf": "2026-11-10"
    },
    "F121": {
      "label": "Caution lead, kornia",
      "display": "Visual interface",
      "asOf": "2026-11-10"
    },
    "F122": {
      "label": "Caution, kornia",
      "display": "Pure code interface may be less convenient for rapid experimentation.",
      "asOf": "2026-11-10"
    },
    "F123": {
      "label": "Caution lead, kornia",
      "display": "Slower than OpenCV on one image",
      "asOf": "2026-11-10"
    },
    "F124": {
      "label": "Caution, kornia",
      "display": "OpenCV is faster for single images on a CPU.",
      "asOf": "2026-11-10"
    },
    "F125": {
      "label": "Quickstart, kornia",
      "display": "import numpy as np\nimport torch\nimport kornia\n\nnp_img = (np.random.rand(48, 64, 3) * 255).astype(np.uint8)  # (H, W, C) uint8\nt = kornia.image.image_to_tensor(np_img)[None].float() / 255.0  # (1, 3, 48, 64) in [0, 1]",
      "asOf": "2026-11-10"
    },
    "F126": {
      "label": "Code, Comfy-Org/ComfyUI",
      "display": "@classmethod\ndef execute(cls, image, operation, kernel_size) -> io.NodeOutput:\n    device = comfy.model_management.get_torch_device()\n    kernel = torch.ones(kernel_size, kernel_size, device=device)\n    image_k = image.to(device).movedim(-1, 1)\n    if operation == \"erode\":\n        output = erosion(image_k, kernel)\n    elif operation == \"dilate\":\n        output = dilation(image_k, kernel)\n    elif operation == \"open\":\n        output = opening(image_k, kernel)\n    elif operation == \"close\":\n        output = closing(image_k, kernel)\n    elif operation == \"gradient\":\n        output = gradient(image_k, kernel)\n    elif operation == \"top_hat\":\n        output = top_hat(image_k, kernel)\n    elif operation == \"bottom_hat\":\n        output = bottom_hat(image_k, kernel)\n    else:\n        raise ValueError(f\"Invalid operation {operation} for morphology. Must be one of 'erode', 'dilate', 'open', 'close', 'gradient', 'tophat', 'bottomhat'\")\n    img_out = output.to(\n        comfy.model_management.intermediate_device()).movedim(1,\n        -1,\n    )\n    return io.NodeOutput(img_out)",
      "asOf": "2026-11-10"
    },
    "F127": {
      "label": "Repository, Comfy-Org/ComfyUI",
      "display": "Comfy-Org/ComfyUI",
      "asOf": "2026-11-10"
    },
    "F128": {
      "label": "GitHub stars, Comfy-Org/ComfyUI",
      "display": "145.8K",
      "asOf": "2026-11-10"
    },
    "F129": {
      "label": "Last push, Comfy-Org/ComfyUI",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F130": {
      "label": "File, Comfy-Org/ComfyUI",
      "display": "nodes_morphology.py · execute()",
      "asOf": "2026-11-10"
    },
    "F131": {
      "label": "Monthly downloads, imagecodecs",
      "display": "1.3M",
      "asOf": "2026-11-10"
    },
    "F132": {
      "label": "GitHub stars, cgohlke/imagecodecs",
      "display": "194",
      "asOf": "2026-11-10"
    },
    "F133": {
      "label": "License, cgohlke/imagecodecs",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-10"
    },
    "F134": {
      "label": "Latest release, imagecodecs",
      "display": "2026.10.10, Oct 2026",
      "asOf": "2026-10-09"
    },
    "F135": {
      "label": "Latest release date, imagecodecs",
      "display": "Oct 2026",
      "asOf": "2026-10-09"
    },
    "F136": {
      "label": "Works on NumPy arrays, imagecodecs",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F137": {
      "label": "Runs on a GPU, imagecodecs",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F138": {
      "label": "Output formats, imagecodecs",
      "display": "PNG, JPEG, WebP",
      "asOf": "2026-11-10"
    },
    "F139": {
      "label": "Install, imagecodecs",
      "display": "pip install imagecodecs",
      "asOf": "2026-11-10"
    },
    "F140": {
      "label": "What it is, imagecodecs",
      "display": "imagecodecs encodes and decodes image and compression formats such as AVIF, JPEG 2000, WebP, and TIFF between bytes and NumPy arrays in memory.",
      "asOf": "2026-11-10"
    },
    "F141": {
      "label": "Strength lead, imagecodecs",
      "display": "Clean API",
      "asOf": "2026-11-10"
    },
    "F142": {
      "label": "Strength, imagecodecs",
      "display": "Its strengths lie in its very clean API design.",
      "asOf": "2026-11-10"
    },
    "F143": {
      "label": "Strength lead, imagecodecs",
      "display": "Lazy loading",
      "asOf": "2026-11-10"
    },
    "F144": {
      "label": "Strength, imagecodecs",
      "display": "Codec extensions are loaded on first use via Python's __getattr__, reducing import time and memory footprint by only loading needed codecs.",
      "asOf": "2026-11-10"
    },
    "F145": {
      "label": "Strength lead, imagecodecs",
      "display": "Newer and scientific formats",
      "asOf": "2026-11-10"
    },
    "F146": {
      "label": "Strength, imagecodecs",
      "display": "Encodes and decodes AVIF, HEIF, EXR, and more as NumPy arrays.",
      "asOf": "2026-11-10"
    },
    "F147": {
      "label": "Caution lead, imagecodecs",
      "display": "Manual parameter tuning",
      "asOf": "2026-11-10"
    },
    "F148": {
      "label": "Caution, imagecodecs",
      "display": "Note: Please manually specify the encoding speed and thread count.",
      "asOf": "2026-11-10"
    },
    "F149": {
      "label": "Caution lead, imagecodecs",
      "display": "Benchmark scope",
      "asOf": "2026-11-10"
    },
    "F150": {
      "label": "Caution, imagecodecs",
      "display": "The results are presented for fixed eight-worker DataLoaders and specific CPUs/Datasets; results may differ with other configurations or JPEG populations.",
      "asOf": "2026-11-10"
    },
    "F151": {
      "label": "Caution lead, imagecodecs",
      "display": "Leader variability by CPU",
      "asOf": "2026-11-10"
    },
    "F152": {
      "label": "Caution, imagecodecs",
      "display": "The top decoder varies by CPU, making universal leadership assertions unreliable across hardware.",
      "asOf": "2026-11-10"
    },
    "F153": {
      "label": "Monthly downloads, wand",
      "display": "1.1M",
      "asOf": "2026-11-10"
    },
    "F154": {
      "label": "GitHub stars, emcconville/wand",
      "display": "1.5K",
      "asOf": "2026-11-10"
    },
    "F155": {
      "label": "License, emcconville/wand",
      "display": "MIT",
      "asOf": "2026-11-10"
    },
    "F156": {
      "label": "Latest release, wand",
      "display": "0.7.2, Jun 2026",
      "asOf": "2026-06-25"
    },
    "F157": {
      "label": "Latest release date, wand",
      "display": "Jun 2026",
      "asOf": "2026-06-25"
    },
    "F158": {
      "label": "Works on NumPy arrays, wand",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F159": {
      "label": "Draws shapes and text, wand",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F160": {
      "label": "Output formats, wand",
      "display": "PNG, JPEG",
      "asOf": "2026-11-10"
    },
    "F161": {
      "label": "Recommended for, wand",
      "display": "best for: PDF and SVG processing",
      "asOf": "2026-11-10"
    },
    "F162": {
      "label": "Install, wand",
      "display": "pip install wand",
      "asOf": "2026-11-10"
    },
    "F163": {
      "label": "What it is, wand",
      "display": "Wand is a Python binding for ImageMagick. It exposes ImageMagick's resizing, conversion, drawing, and effects through Python objects.",
      "asOf": "2026-11-10"
    },
    "F164": {
      "label": "Strength lead, wand",
      "display": "ImageMagick from Python",
      "asOf": "2026-11-10"
    },
    "F165": {
      "label": "Strength, wand",
      "display": "Uses the same resize and crop syntax as the ImageMagick command line.",
      "asOf": "2026-11-10"
    },
    "F166": {
      "label": "Strength lead, wand",
      "display": "Format conversion with quality control",
      "asOf": "2026-11-10"
    },
    "F167": {
      "label": "Strength, wand",
      "display": "Converts formats and sets output quality.",
      "asOf": "2026-11-10"
    },
    "F168": {
      "label": "Strength lead, wand",
      "display": "Converts formats with quality control",
      "asOf": "2026-11-10"
    },
    "F169": {
      "label": "Strength, wand",
      "display": "Converts between formats and sets output quality for web and slide exports.",
      "asOf": "2026-11-10"
    },
    "F170": {
      "label": "Caution lead, wand",
      "display": "Needs ImageMagick installed",
      "asOf": "2026-11-10"
    },
    "F171": {
      "label": "Caution, wand",
      "display": "Imports fail without ImageMagick on the system.",
      "asOf": "2026-11-10"
    },
    "F172": {
      "label": "Caution lead, wand",
      "display": "Version mismatches",
      "asOf": "2026-11-10"
    },
    "F173": {
      "label": "Caution, wand",
      "display": "Version mismatches between Wand and ImageMagick can confuse beginners.",
      "asOf": "2026-11-10"
    },
    "F174": {
      "label": "Caution lead, wand",
      "display": "Needs hardening for uploads",
      "asOf": "2026-11-10"
    },
    "F175": {
      "label": "Caution, wand",
      "display": "Untrusted files need a locked-down ImageMagick policy.",
      "asOf": "2026-11-10"
    },
    "F176": {
      "label": "Quickstart, wand",
      "display": "from wand.image import Image\nfrom wand.display import display\n\nwith Image(filename='mona-lisa.png') as img:\n    print(img.size)\n    for r in 1, 2, 3:\n        with img.clone() as i:\n            i.resize(int(i.width * r * 0.25), int(i.height * r * 0.25))\n            i.rotate(90 * r)\n            i.save(filename='mona-lisa-{0}.png'.format(r))\n            display(i)",
      "asOf": "2026-11-10"
    },
    "F177": {
      "label": "Code, HazyResearch/pdftotree",
      "display": "def display_bounding_boxes(\n    img,\n    blocks,\n    alternatecolors=False,\n    color=Color(\"blue\"),\n):\n    \"\"\"\n    Displays each of the bounding boxes passed in 'boxes' on an image of the pdf\n    pointed to by pdf_file\n    boxes is a list of 5-tuples (page, top, left, bottom, right)\n    \"\"\"\n    draw = Drawing()\n    draw.fill_color = Color(\"rgba(0, 0, 0, 0)\")\n    draw.stroke_color = color\n    for block in blocks:\n        top, left, bottom, right = block[-4:]\n        if alternatecolors:\n            draw.stroke_color = Color(\n                \"rgba({},{},{}, 1)\".format(\n                    str(np.random.randint(255)),\n                    str(np.random.randint(255)),\n                    str(np.random.randint(255)),\n                )\n            )\n        draw.rectangle(\n            left=float(left), top=float(top), right=float(right), bottom=float(bottom)\n        )\n        draw(img)\n    display(img)",
      "asOf": "2026-11-10"
    },
    "F178": {
      "label": "Repository, HazyResearch/pdftotree",
      "display": "HazyResearch/pdftotree",
      "asOf": "2026-11-10"
    },
    "F179": {
      "label": "GitHub stars, HazyResearch/pdftotree",
      "display": "459",
      "asOf": "2026-11-10"
    },
    "F180": {
      "label": "Last push, HazyResearch/pdftotree",
      "display": "Aug 2023",
      "asOf": "2023-08-03"
    },
    "F181": {
      "label": "File, HazyResearch/pdftotree",
      "display": "display_utils.py · display_bounding_boxes()",
      "asOf": "2026-11-10"
    },
    "F182": {
      "label": "Monthly downloads, pyvips",
      "display": "901.5K",
      "asOf": "2026-11-10"
    },
    "F183": {
      "label": "GitHub stars, libvips/pyvips",
      "display": "816",
      "asOf": "2026-11-10"
    },
    "F184": {
      "label": "License, libvips/pyvips",
      "display": "MIT",
      "asOf": "2026-11-10"
    },
    "F185": {
      "label": "Latest release, pyvips",
      "display": "3.2.0, Aug 2026",
      "asOf": "2026-08-29"
    },
    "F186": {
      "label": "Latest release date, pyvips",
      "display": "Aug 2026",
      "asOf": "2026-08-29"
    },
    "F187": {
      "label": "Works on NumPy arrays, pyvips",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F188": {
      "label": "Draws shapes and text, pyvips",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F189": {
      "label": "Runs on a GPU, pyvips",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F190": {
      "label": "Install, pyvips",
      "display": "pip install pyvips",
      "asOf": "2026-11-10"
    },
    "F191": {
      "label": "What it is, pyvips",
      "display": "pyvips is the Python binding for libvips. It streams images through a pipeline of operations, which keeps large-image work fast and light on memory.",
      "asOf": "2026-11-10"
    },
    "F192": {
      "label": "Strength lead, pyvips",
      "display": "Streaming pipelines",
      "asOf": "2026-11-10"
    },
    "F193": {
      "label": "Strength, pyvips",
      "display": "The binding exposes the library's operations as Python methods and objects, so the algorithm work stays in the library and the binding stays thin.",
      "asOf": "2026-11-10"
    },
    "F194": {
      "label": "Strength lead, pyvips",
      "display": "Fast with low memory",
      "asOf": "2026-11-10"
    },
    "F195": {
      "label": "Strength, pyvips",
      "display": "About 3 times faster than ImageMagick, with 5 times less memory.",
      "asOf": "2026-11-10"
    },
    "F196": {
      "label": "Strength lead, pyvips",
      "display": "Binary vs ABI modes",
      "asOf": "2026-11-10"
    },
    "F197": {
      "label": "Strength, pyvips",
      "display": "If it is unable to build a binary extension, it will use cffi ABI mode instead and only needs the libvips shared library.",
      "asOf": "2026-11-10"
    },
    "F198": {
      "label": "Caution lead, pyvips",
      "display": "Bundled build skips PDFs",
      "asOf": "2026-11-10"
    },
    "F199": {
      "label": "Caution, pyvips",
      "display": "Reading PDFs needs a system-installed libvips.",
      "asOf": "2026-11-10"
    },
    "F200": {
      "label": "Caution lead, pyvips",
      "display": "Access patterns",
      "asOf": "2026-11-10"
    },
    "F201": {
      "label": "Caution, pyvips",
      "display": "Benefits depend on access patterns and operations.",
      "asOf": "2026-11-10"
    },
    "F202": {
      "label": "Caution lead, pyvips",
      "display": "Deployment checks",
      "asOf": "2026-11-10"
    },
    "F203": {
      "label": "Caution, pyvips",
      "display": "Native library and format support need deployment checks.",
      "asOf": "2026-11-10"
    },
    "F204": {
      "label": "Code, samdobson/image_slicer",
      "display": "def __init__(self, source: str | Any):\n    \"\"\"\n    Initializes the ImageSlicer.\n\n    Args:\n        source: Either a path to the image file or a PIL Image object.\n\n    Raises:\n        pyvips.error.Error: If the source is not a valid image.\n        ValueError: If PIL Image is provided but Pillow is not installed.\n    \"\"\"\n    if isinstance(source, str):\n        self.source_path: str | None = source\n        self.image = pyvips.Image.new_from_file(source, access=\"random\")\n    elif PILImage is not None and isinstance(source, PILImage.Image):\n        self.source_path = None\n        # Convert PIL Image to pyvips Image\n        buffer = io.BytesIO()\n        source.save(buffer, format=\"PNG\")\n        buffer.seek(0)\n        self.image = pyvips.Image.new_from_buffer(\n            buffer.getvalue(), \"\", access=\"random\"\n        )\n    else:\n        # Handle invalid types or PIL not available\n        if PILImage is None:\n            raise ValueError(\n                \"source must be either a string path or a PIL Image object\"\n            )\n        else:\n            raise ValueError(\n                \"source must be either a string path or a PIL Image object\"\n            )\n\n    self.width = self.image.width\n    self.height = self.image.height",
      "asOf": "2026-11-10"
    },
    "F205": {
      "label": "Repository, samdobson/image_slicer",
      "display": "samdobson/image_slicer",
      "asOf": "2026-11-10"
    },
    "F206": {
      "label": "GitHub stars, samdobson/image_slicer",
      "display": "156",
      "asOf": "2026-11-10"
    },
    "F207": {
      "label": "Last push, samdobson/image_slicer",
      "display": "Jun 2026",
      "asOf": "2026-06-15"
    },
    "F208": {
      "label": "File, samdobson/image_slicer",
      "display": "slicer.py · __init__()",
      "asOf": "2026-11-10"
    },
    "F209": {
      "label": "Need, pillow",
      "display": "Drawing on images",
      "asOf": "2026-11-10"
    },
    "F210": {
      "label": "Why, pillow",
      "display": "general-purpose API",
      "asOf": "2026-11-10"
    },
    "F211": {
      "label": "Need, wand",
      "display": "Drawing on images",
      "asOf": "2026-11-10"
    },
    "F212": {
      "label": "Why, wand",
      "display": "advanced format handling",
      "asOf": "2026-11-10"
    },
    "F213": {
      "label": "Need, pyvips",
      "display": "Large images fast",
      "asOf": "2026-11-10"
    },
    "F214": {
      "label": "Why, pyvips",
      "display": "low memory usage",
      "asOf": "2026-11-10"
    },
    "F215": {
      "label": "Need, imageio",
      "display": "Large images fast",
      "asOf": "2026-11-10"
    },
    "F216": {
      "label": "Why, imageio",
      "display": "performance and backends",
      "asOf": "2026-11-10"
    },
    "F217": {
      "label": "Need, torchvision",
      "display": "NumPy pipelines",
      "asOf": "2026-11-10"
    },
    "F218": {
      "label": "Why, torchvision",
      "display": "ML-focused",
      "asOf": "2026-11-10"
    },
    "F219": {
      "label": "Need, imageio",
      "display": "NumPy pipelines",
      "asOf": "2026-11-10"
    },
    "F220": {
      "label": "Why, imageio",
      "display": "NumPy integration",
      "asOf": "2026-11-10"
    },
    "F221": {
      "label": "Need, kornia",
      "display": "Computer vision",
      "asOf": "2026-11-10"
    },
    "F222": {
      "label": "Strength lead, pillow",
      "display": "Prebuilt wheels",
      "asOf": "2026-11-10"
    },
    "F223": {
      "label": "Strength, pillow",
      "display": "pip installs prebuilt wheels, with no separate image program to install.",
      "asOf": "2026-11-10"
    },
    "F224": {
      "label": "Caution lead, pillow",
      "display": "Slow on large images",
      "asOf": "2026-11-10"
    },
    "F225": {
      "label": "Caution, pillow",
      "display": "A large blur took 15 times as long as OpenCV's.",
      "asOf": "2026-11-10"
    },
    "F226": {
      "label": "Caution lead, pillow",
      "display": "No video or camera input",
      "asOf": "2026-11-10"
    },
    "F227": {
      "label": "Caution, pillow",
      "display": "Use OpenCV or imageio for video.",
      "asOf": "2026-11-10"
    },
    "F228": {
      "label": "Code, jointakahe/takahe",
      "display": "def resize_image(\n    image: File,\n    *,\n    size: tuple[int, int],\n    cover=True,\n    keep_format=False,\n) -> ImageFile:\n    # ...\n    with Image.open(image) as img:\n        try:\n            # Take any orientation EXIF data, apply it, and strip the\n            # orientation data from the new image.\n            img = ImageOps.exif_transpose(img)\n        # ...\n\n        if cover:\n            resized_image = ImageOps.fit(img, size, method=Image.Resampling.BILINEAR)\n        else:\n            resized_image = img.copy()\n            resized_image.thumbnail(size, resample=Image.Resampling.BILINEAR)\n        new_image_bytes = io.BytesIO()\n        if keep_format:\n            resized_image.save(new_image_bytes, format=img.format)\n            file = ImageFile(new_image_bytes)\n        else:\n            resized_image.save(new_image_bytes, format=\"webp\", save_all=True)\n            file = ImageFile(new_image_bytes, name=\"image.webp\")\n        file.image = resized_image\n        return file",
      "asOf": "2026-11-10"
    },
    "F229": {
      "label": "Repository, jointakahe/takahe",
      "display": "jointakahe/takahe",
      "asOf": "2026-11-10"
    },
    "F230": {
      "label": "GitHub stars, jointakahe/takahe",
      "display": "1.2K",
      "asOf": "2026-11-10"
    },
    "F231": {
      "label": "Last push, jointakahe/takahe",
      "display": "Aug 2024",
      "asOf": "2024-08-28"
    },
    "F232": {
      "label": "File, jointakahe/takahe",
      "display": "files.py · resize_image()",
      "asOf": "2026-11-10"
    },
    "F233": {
      "label": "Code, 9001/copyparty",
      "display": "def fancy_pillow(self, im: \"Image.Image\", fmt: str, vn: VFS) -> \"Image.Image\":\n    # exif_transpose is expensive (loads full image + unconditional copy)\n    res = self.getres(vn, fmt)\n    r = max(*res) * 2\n    im.thumbnail((r, r), resample=Image.LANCZOS)\n    try:\n        k = next(k for k, v in ExifTags.TAGS.items() if v == \"Orientation\")\n        exif = im.getexif()\n        rot = int(exif[k])\n        del exif[k]\n    except:\n        rot = 1\n\n    rots = {8: Image.ROTATE_90, 3: Image.ROTATE_180, 6: Image.ROTATE_270}\n    if rot in rots:\n        im = im.transpose(rots[rot])\n\n    if \"f\" in fmt:\n        im.thumbnail(res, resample=Image.LANCZOS)\n    else:\n        iw, ih = im.size\n        dw, dh = res\n        res = (min(iw, dw), min(ih, dh))\n        im = ImageOps.fit(im, res, method=Image.LANCZOS)\n\n    return im",
      "asOf": "2026-11-10"
    },
    "F234": {
      "label": "Repository, 9001/copyparty",
      "display": "9001/copyparty",
      "asOf": "2026-11-10"
    },
    "F235": {
      "label": "GitHub stars, 9001/copyparty",
      "display": "47.3K",
      "asOf": "2026-11-10"
    },
    "F236": {
      "label": "Last push, 9001/copyparty",
      "display": "Oct 2026",
      "asOf": "2026-10-21"
    },
    "F237": {
      "label": "File, 9001/copyparty",
      "display": "th_srv.py · fancy_pillow()",
      "asOf": "2026-11-10"
    },
    "F238": {
      "label": "Code, ORB-HD/deface",
      "display": "def image_detect(\n        ipath: str,\n        opath: str,\n        # ...\n):\n    frame = iio.imread(ipath)\n\n    if keep_metadata:\n        # Source image EXIF metadata retrieval via imageio V3 lib\n        metadata = imageio.v3.immeta(ipath)\n        exif_dict = metadata.get(\"exif\", None)\n\n    # Perform network inference, get bb dets but discard landmark predictions\n    dets, _ = centerface(frame, threshold=threshold)\n\n    anonymize_frame(\n        dets, frame, mask_scale=mask_scale,\n        replacewith=replacewith, ellipse=ellipse, draw_scores=draw_scores,\n        replaceimg=replaceimg, mosaicsize=mosaicsize\n    )\n\n    # ...\n\n    imageio.imsave(opath, frame)\n\n    if keep_metadata:\n        # Save image with EXIF metadata\n        imageio.imsave(opath, frame, exif=exif_dict)",
      "asOf": "2026-11-10"
    },
    "F239": {
      "label": "Repository, ORB-HD/deface",
      "display": "ORB-HD/deface",
      "asOf": "2026-11-10"
    },
    "F240": {
      "label": "GitHub stars, ORB-HD/deface",
      "display": "1.6K",
      "asOf": "2026-11-10"
    },
    "F241": {
      "label": "Last push, ORB-HD/deface",
      "display": "Oct 2024",
      "asOf": "2024-10-13"
    },
    "F242": {
      "label": "File, ORB-HD/deface",
      "display": "deface.py · image_detect()",
      "asOf": "2026-11-10"
    },
    "F243": {
      "label": "Code, ORB-HD/deface",
      "display": "def video_detect(\n        ipath: str,\n        opath: str,\n        # ...\n):\n    try:\n        if 'fps' in ffmpeg_config:\n            reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath, fps=ffmpeg_config['fps'])\n        else:\n            reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath)\n\n        meta = reader.get_meta_data()\n        _ = meta['size']\n    # ...\n    if opath is not None:\n        # ...\n        writer: imageio.plugins.ffmpeg.FfmpegFormat.Writer = imageio.get_writer(\n            opath, format='FFMPEG', mode='I', **_ffmpeg_config\n        )\n\n    for frame in read_iter:\n        # ...\n        if opath is not None:\n            writer.append_data(frame)\n\n        # ...\n    reader.close()\n    if opath is not None:\n        writer.close()\n    # ...",
      "asOf": "2026-11-10"
    },
    "F244": {
      "label": "Repository, ORB-HD/deface",
      "display": "ORB-HD/deface",
      "asOf": "2026-11-10"
    },
    "F245": {
      "label": "GitHub stars, ORB-HD/deface",
      "display": "1.6K",
      "asOf": "2026-11-10"
    },
    "F246": {
      "label": "Last push, ORB-HD/deface",
      "display": "Oct 2024",
      "asOf": "2024-10-13"
    },
    "F247": {
      "label": "File, ORB-HD/deface",
      "display": "deface.py · video_detect()",
      "asOf": "2026-11-10"
    },
    "F248": {
      "label": "Strength lead, opencv-python",
      "display": "Computer vision and video",
      "asOf": "2026-11-10"
    },
    "F249": {
      "label": "Strength, opencv-python",
      "display": "Also handles face detection, tracking, and video files.",
      "asOf": "2026-11-10"
    },
    "F250": {
      "label": "Strength lead, opencv-python",
      "display": "Server build available",
      "asOf": "2026-11-10"
    },
    "F251": {
      "label": "Strength, opencv-python",
      "display": "opencv-python-headless skips GUI libraries for Docker and servers.",
      "asOf": "2026-11-10"
    },
    "F252": {
      "label": "Caution lead, opencv-python",
      "display": "One OpenCV package per environment",
      "asOf": "2026-11-10"
    },
    "F253": {
      "label": "Caution, opencv-python",
      "display": "Installing a second one overwrites the first.",
      "asOf": "2026-11-10"
    },
    "F254": {
      "label": "Caution lead, opencv-python",
      "display": "No GPU from pip",
      "asOf": "2026-11-10"
    },
    "F255": {
      "label": "Caution, opencv-python",
      "display": "CUDA support means building OpenCV from source.",
      "asOf": "2026-11-10"
    },
    "F256": {
      "label": "Code, andrewdcampbell/OpenCV-Document-Scanner",
      "display": "def scan(self, image_path):\n\n    RESCALED_HEIGHT = 500.0\n    OUTPUT_DIR = 'output'\n\n    # load the image and compute the ratio of the old height\n    # to the new height, clone it, and resize it\n    image = cv2.imread(image_path)\n\n    assert(image is not None)\n\n    ratio = image.shape[0] / RESCALED_HEIGHT\n    orig = image.copy()\n    rescaled_image = imutils.resize(image, height = int(RESCALED_HEIGHT))\n\n    # get the contour of the document\n    screenCnt = self.get_contour(rescaled_image)\n\n    if self.interactive:\n        screenCnt = self.interactive_get_contour(screenCnt, rescaled_image)\n\n    # apply the perspective transformation\n    warped = transform.four_point_transform(orig, screenCnt * ratio)\n\n    # convert the warped image to grayscale\n    gray = cv2.cvtColor(warped, cv2.COLOR_BGR2GRAY)\n\n    # sharpen image\n    sharpen = cv2.GaussianBlur(gray, (0,0), 3)\n    sharpen = cv2.addWeighted(gray, 1.5, sharpen, -0.5, 0)\n\n    # apply adaptive threshold to get black and white effect\n    thresh = cv2.adaptiveThreshold(sharpen, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 21, 15)\n\n    # save the transformed image\n    basename = os.path.basename(image_path)\n    cv2.imwrite(OUTPUT_DIR + '/' + basename, thresh)\n    print(\"Proccessed \" + basename)",
      "asOf": "2026-11-10"
    },
    "F257": {
      "label": "Repository, andrewdcampbell/OpenCV-Document-Scanner",
      "display": "andrewdcampbell/OpenCV-Document-Scanner",
      "asOf": "2026-11-10"
    },
    "F258": {
      "label": "GitHub stars, andrewdcampbell/OpenCV-Document-Scanner",
      "display": "648",
      "asOf": "2026-11-10"
    },
    "F259": {
      "label": "Last push, andrewdcampbell/OpenCV-Document-Scanner",
      "display": "Oct 2022",
      "asOf": "2022-10-12"
    },
    "F260": {
      "label": "File, andrewdcampbell/OpenCV-Document-Scanner",
      "display": "scan.py · scan()",
      "asOf": "2026-11-10"
    },
    "F261": {
      "label": "Code, EdjeElectronics/OpenCV-Playing-Card-Detector",
      "display": "def preprocess_image(image):\n    \"\"\"Returns a grayed, blurred, and adaptively thresholded camera image.\"\"\"\n\n    gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)\n    blur = cv2.GaussianBlur(gray,(5,5),0)\n\n    # ...\n    img_w, img_h = np.shape(image)[:2]\n    bkg_level = gray[int(img_h/100)][int(img_w/2)]\n    thresh_level = bkg_level + BKG_THRESH\n\n    retval, thresh = cv2.threshold(blur,thresh_level,255,cv2.THRESH_BINARY)\n\n    return thresh",
      "asOf": "2026-11-10"
    },
    "F262": {
      "label": "Repository, EdjeElectronics/OpenCV-Playing-Card-Detector",
      "display": "EdjeElectronics/OpenCV-Playing-Card-Detector",
      "asOf": "2026-11-10"
    },
    "F263": {
      "label": "GitHub stars, EdjeElectronics/OpenCV-Playing-Card-Detector",
      "display": "746",
      "asOf": "2026-11-10"
    },
    "F264": {
      "label": "Last push, EdjeElectronics/OpenCV-Playing-Card-Detector",
      "display": "Jan 2018",
      "asOf": "2018-01-13"
    },
    "F265": {
      "label": "File, EdjeElectronics/OpenCV-Playing-Card-Detector",
      "display": "Cards.py · preprocess_image()",
      "asOf": "2026-11-10"
    },
    "F266": {
      "label": "Strength lead, torchvision",
      "display": "Boxes follow the image",
      "asOf": "2026-11-10"
    },
    "F267": {
      "label": "Strength, torchvision",
      "display": "v2 transforms move bounding boxes and masks along with the image.",
      "asOf": "2026-11-10"
    },
    "F268": {
      "label": "Caution lead, torchvision",
      "display": "One random setting per call",
      "asOf": "2026-11-10"
    },
    "F269": {
      "label": "Caution, torchvision",
      "display": "Per-image random settings in a batch need a loop.",
      "asOf": "2026-11-10"
    },
    "F270": {
      "label": "Code, jamesWalker55/comfyui-various",
      "display": "def execute(\n    self,\n    image: torch.Tensor,\n    width: int,\n    height: int,\n    interpolation_mode: str,\n):\n    assert isinstance(image, torch.Tensor)\n    assert isinstance(height, int)\n    assert isinstance(width, int)\n    assert isinstance(interpolation_mode, str)\n\n    interpolation_mode = interpolation_mode.upper().replace(\" \", \"_\")\n    interpolation_mode = getattr(InterpolationMode, interpolation_mode)\n\n    image = image.permute(0, 3, 1, 2)\n    image = F.resize(\n        image,\n        (height, width),\n        interpolation=interpolation_mode,\n        antialias=True,\n    )\n    image = image.permute(0, 2, 3, 1)\n\n    return (image,)",
      "asOf": "2026-11-10"
    },
    "F271": {
      "label": "Repository, jamesWalker55/comfyui-various",
      "display": "jamesWalker55/comfyui-various",
      "asOf": "2026-11-10"
    },
    "F272": {
      "label": "GitHub stars, jamesWalker55/comfyui-various",
      "display": "231",
      "asOf": "2026-11-10"
    },
    "F273": {
      "label": "Last push, jamesWalker55/comfyui-various",
      "display": "Aug 2026",
      "asOf": "2026-08-19"
    },
    "F274": {
      "label": "File, jamesWalker55/comfyui-various",
      "display": "comfyui_image_ops.py · execute()",
      "asOf": "2026-11-10"
    },
    "F275": {
      "label": "Code, jamesWalker55/comfyui-various",
      "display": "def execute(\n    self,\n    image: torch.Tensor,\n    direction: str,\n):\n    assert isinstance(image, torch.Tensor)\n    assert direction in (\"horizontal\", \"vertical\")\n\n    image = image.permute(0, 3, 1, 2)\n    if direction == \"horizontal\":\n        image = F.hflip(image)\n    else:\n        image = F.vflip(image)\n    image = image.permute(0, 2, 3, 1)\n\n    return (image,)",
      "asOf": "2026-11-10"
    },
    "F276": {
      "label": "Repository, jamesWalker55/comfyui-various",
      "display": "jamesWalker55/comfyui-various",
      "asOf": "2026-11-10"
    },
    "F277": {
      "label": "GitHub stars, jamesWalker55/comfyui-various",
      "display": "231",
      "asOf": "2026-11-10"
    },
    "F278": {
      "label": "Last push, jamesWalker55/comfyui-various",
      "display": "Aug 2026",
      "asOf": "2026-08-19"
    },
    "F279": {
      "label": "File, jamesWalker55/comfyui-various",
      "display": "comfyui_image_ops.py · execute()",
      "asOf": "2026-11-10"
    },
    "F280": {
      "label": "Strength lead, kornia",
      "display": "Trainable image operations",
      "asOf": "2026-11-10"
    },
    "F281": {
      "label": "Strength, kornia",
      "display": "Filters and transforms keep gradients, so they run inside training.",
      "asOf": "2026-11-10"
    },
    "F282": {
      "label": "Strength lead, kornia",
      "display": "Batched per-image settings",
      "asOf": "2026-11-10"
    },
    "F283": {
      "label": "Strength, kornia",
      "display": "rotate takes one angle per image in a batch, with no loop.",
      "asOf": "2026-11-10"
    },
    "F284": {
      "label": "Caution lead, kornia",
      "display": "Slower than OpenCV on single CPU images",
      "asOf": "2026-11-10"
    },
    "F285": {
      "label": "Caution, kornia",
      "display": "OpenCV wins when processing one uint8 image at a time on the CPU.",
      "asOf": "2026-11-10"
    },
    "F286": {
      "label": "Code, Comfy-Org/ComfyUI",
      "display": "@classmethod\ndef execute(cls, image, operation, kernel_size) -> io.NodeOutput:\n    device = comfy.model_management.get_torch_device()\n    kernel = torch.ones(kernel_size, kernel_size, device=device)\n    image_k = image.to(device).movedim(-1, 1)\n    if operation == \"erode\":\n        output = erosion(image_k, kernel)\n    elif operation == \"dilate\":\n        output = dilation(image_k, kernel)\n    elif operation == \"open\":\n        output = opening(image_k, kernel)\n    elif operation == \"close\":\n        output = closing(image_k, kernel)\n    elif operation == \"gradient\":\n        output = gradient(image_k, kernel)\n    elif operation == \"top_hat\":\n        output = top_hat(image_k, kernel)\n    elif operation == \"bottom_hat\":\n        output = bottom_hat(image_k, kernel)\n    else:\n        raise ValueError(f\"Invalid operation {operation} for morphology. Must be one of 'erode', 'dilate', 'open', 'close', 'gradient', 'tophat', 'bottomhat'\")\n    img_out = output.to(comfy.model_management.intermediate_device()).movedim(1, -1)\n    return io.NodeOutput(img_out)",
      "asOf": "2026-11-10"
    },
    "F287": {
      "label": "Repository, Comfy-Org/ComfyUI",
      "display": "Comfy-Org/ComfyUI",
      "asOf": "2026-11-10"
    },
    "F288": {
      "label": "GitHub stars, Comfy-Org/ComfyUI",
      "display": "146.0K",
      "asOf": "2026-11-10"
    },
    "F289": {
      "label": "Last push, Comfy-Org/ComfyUI",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F290": {
      "label": "File, Comfy-Org/ComfyUI",
      "display": "nodes_morphology.py · execute()",
      "asOf": "2026-11-10"
    },
    "F291": {
      "label": "Strength lead, imagecodecs",
      "display": "Only needs NumPy",
      "asOf": "2026-11-10"
    },
    "F292": {
      "label": "Strength, imagecodecs",
      "display": "No other runtime dependencies.",
      "asOf": "2026-11-10"
    },
    "F293": {
      "label": "Strength lead, imagecodecs",
      "display": "Decodes in parallel",
      "asOf": "2026-11-10"
    },
    "F294": {
      "label": "Strength, imagecodecs",
      "display": "Threads can encode and decode at the same time.",
      "asOf": "2026-11-10"
    },
    "F295": {
      "label": "Caution lead, imagecodecs",
      "display": "In-memory data only",
      "asOf": "2026-11-10"
    },
    "F296": {
      "label": "Caution, imagecodecs",
      "display": "Large files and metadata need tifffile or zarr on top.",
      "asOf": "2026-11-10"
    },
    "F297": {
      "label": "Caution lead, imagecodecs",
      "display": "API still changes",
      "asOf": "2026-11-10"
    },
    "F298": {
      "label": "Caution, imagecodecs",
      "display": "Function signatures can change between releases.",
      "asOf": "2026-11-10"
    },
    "F299": {
      "label": "Code, marcinz606/NegPy",
      "display": "def encode_jxl(\n    arr: np.ndarray,\n    *,\n    photometric: str,\n    primaries: Optional[str],\n    transfer: Optional[str],\n    lossless: bool = True,\n    distance: Optional[float] = None,\n    effort: int = 7,\n) -> bytes:\n    \"\"\"Encode uint8/uint16 pixels as JPEG XL. libjxl tags the color enumeratively,\n    so no ICC profile is embedded.\"\"\"\n    bits = imagecodecs.jpegxl_encode(\n        np.ascontiguousarray(arr),\n        bitspersample=8 if arr.dtype == np.uint8 else 16,\n        photometric=photometric,\n        primaries=primaries,\n        transfer=transfer,\n        lossless=lossless,\n        distance=None if lossless else distance,\n        effort=effort,\n        numthreads=0,  # all cores; single-threaded otherwise (~7x slower)\n    )\n    return bytes(bits)",
      "asOf": "2026-11-10"
    },
    "F300": {
      "label": "Repository, marcinz606/NegPy",
      "display": "marcinz606/NegPy",
      "asOf": "2026-11-10"
    },
    "F301": {
      "label": "GitHub stars, marcinz606/NegPy",
      "display": "1.2K",
      "asOf": "2026-11-10"
    },
    "F302": {
      "label": "Last push, marcinz606/NegPy",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F303": {
      "label": "File, marcinz606/NegPy",
      "display": "encoders.py · encode_jxl()",
      "asOf": "2026-11-10"
    },
    "F304": {
      "label": "Code, seung-lab/cloud-volume",
      "display": "def encode_jpegxl(arr, level, effort, decodingspeed, num_threads):\n  if not np.issubdtype(arr.dtype, np.uint8):\n    raise ValueError(\"Only accepts uint8 arrays. Got: \" + str(arr.dtype))\n\n  arr, num_channel = as2d(arr)\n  lossless = level >= 100\n\n  if num_channel == 1:\n    return imagecodecs.jpegxl_encode(\n      arr[:,:,0],\n      photometric=\"GRAY\",\n      level=level,\n      lossless=lossless,\n      effort=effort,\n      decodingspeed=decodingspeed,\n      numthreads=num_threads,\n    )\n  elif num_channel == 3:\n    arr = np.transpose(arr, axes=[2, 0, 1])\n    return imagecodecs.jpegxl_encode(\n      arr,\n      photometric=\"RGB\",\n      level=level,\n      lossless=lossless,\n      effort=effort,\n      decodingspeed=decodingspeed,\n      numthreads=num_threads,\n    )\n  raise ValueError(\"Number of image channels should be 1 or 3. Got: {}\".format(arr.shape[3]))",
      "asOf": "2026-11-10"
    },
    "F305": {
      "label": "Repository, seung-lab/cloud-volume",
      "display": "seung-lab/cloud-volume",
      "asOf": "2026-11-10"
    },
    "F306": {
      "label": "GitHub stars, seung-lab/cloud-volume",
      "display": "176",
      "asOf": "2026-11-10"
    },
    "F307": {
      "label": "Last push, seung-lab/cloud-volume",
      "display": "Nov 2026",
      "asOf": "2026-11-05"
    },
    "F308": {
      "label": "File, seung-lab/cloud-volume",
      "display": "chunks.py · encode_jpegxl()",
      "asOf": "2026-11-10"
    },
    "F309": {
      "label": "Caution lead, wand",
      "display": "Slow on large photos",
      "asOf": "2026-11-10"
    },
    "F310": {
      "label": "Caution, wand",
      "display": "Made a thumbnail about ten times slower than Pillow or OpenCV.",
      "asOf": "2026-11-10"
    },
    "F311": {
      "label": "Code, hendrycks/robustness",
      "display": "def motion_blur(x, severity=1):\n    c = [(12,4), (17,6), (17, 9), (17,13), (22,16)][severity - 1]\n\n    output = BytesIO()\n    x.save(output, format='PNG')\n    x = MotionImage(blob=output.getvalue())\n\n    x.motion_blur(radius=c[0], sigma=c[1], angle=np.random.uniform(-45, 45))\n\n    x = cv2.imdecode(np.fromstring(x.make_blob(), np.uint8),\n                     cv2.IMREAD_UNCHANGED)\n\n    if x.shape != (299, 299):\n        return np.clip(x[..., [2, 1, 0]], 0, 255)  # BGR to RGB\n    else:  # greyscale to RGB\n        return np.clip(np.array([x, x, x]).transpose((1, 2, 0)), 0, 255)",
      "asOf": "2026-11-10"
    },
    "F312": {
      "label": "Repository, hendrycks/robustness",
      "display": "hendrycks/robustness",
      "asOf": "2026-11-10"
    },
    "F313": {
      "label": "GitHub stars, hendrycks/robustness",
      "display": "1.2K",
      "asOf": "2026-11-10"
    },
    "F314": {
      "label": "Last push, hendrycks/robustness",
      "display": "Aug 2022",
      "asOf": "2022-08-24"
    },
    "F315": {
      "label": "File, hendrycks/robustness",
      "display": "make_imagenet_c_inception.py · motion_blur()",
      "asOf": "2026-11-10"
    },
    "F316": {
      "label": "Code, hendrycks/robustness",
      "display": "def snow(x, severity=1):\n    c = [(0.1, 0.3, 3, 0.5, 10, 4, 0.8),\n         (0.2, 0.3, 2, 0.5, 12, 4, 0.7),\n         (0.55, 0.3, 4, 0.9, 12, 8, 0.7),\n         (0.55, 0.3, 4.5, 0.85, 12, 8, 0.65),\n         (0.55, 0.3, 2.5, 0.85, 12, 12, 0.55)][severity - 1]\n\n    x = np.array(x, dtype=np.float32) / 255.\n    snow_layer = np.random.normal(size=x.shape[:2], loc=c[0], scale=c[1])  # [:2] for monochrome\n\n    snow_layer = clipped_zoom(snow_layer[..., np.newaxis], c[2])\n    snow_layer[snow_layer < c[3]] = 0\n\n    snow_layer = PILImage.fromarray((np.clip(snow_layer.squeeze(), 0, 1) * 255).astype(np.uint8), mode='L')\n    output = BytesIO()\n    snow_layer.save(output, format='PNG')\n    snow_layer = MotionImage(blob=output.getvalue())\n\n    snow_layer.motion_blur(radius=c[4], sigma=c[5], angle=np.random.uniform(-135, -45))\n\n    snow_layer = cv2.imdecode(np.fromstring(snow_layer.make_blob(), np.uint8),\n                              cv2.IMREAD_UNCHANGED) / 255.\n    snow_layer = snow_layer[..., np.newaxis]\n\n    x = c[6] * x + (1 - c[6]) * np.maximum(x, cv2.cvtColor(x, cv2.COLOR_RGB2GRAY).reshape(299, 299, 1) * 1.5 + 0.5)\n    return np.clip(x + snow_layer + np.rot90(snow_layer, k=2), 0, 1) * 255",
      "asOf": "2026-11-10"
    },
    "F317": {
      "label": "Repository, hendrycks/robustness",
      "display": "hendrycks/robustness",
      "asOf": "2026-11-10"
    },
    "F318": {
      "label": "GitHub stars, hendrycks/robustness",
      "display": "1.2K",
      "asOf": "2026-11-10"
    },
    "F319": {
      "label": "Last push, hendrycks/robustness",
      "display": "Aug 2022",
      "asOf": "2022-08-24"
    },
    "F320": {
      "label": "File, hendrycks/robustness",
      "display": "make_imagenet_c_inception.py · snow()",
      "asOf": "2026-11-10"
    },
    "F321": {
      "label": "Strength lead, pyvips",
      "display": "Handles huge images",
      "asOf": "2026-11-10"
    },
    "F322": {
      "label": "Strength, pyvips",
      "display": "Processes images in sections instead of loading them whole.",
      "asOf": "2026-11-10"
    },
    "F323": {
      "label": "Caution lead, pyvips",
      "display": "Slower without a compiler",
      "asOf": "2026-11-10"
    },
    "F324": {
      "label": "Caution, pyvips",
      "display": "Without a C compiler at install, it runs about 20% slower.",
      "asOf": "2026-11-10"
    },
    "F325": {
      "label": "Code, zulip/zulip",
      "display": "def resize_avatar(image_data: bytes, size: int = DEFAULT_AVATAR_SIZE) -> bytes:\n    # This will scale up, if necessary, and will scale the smallest\n    # dimension to fit.  That is, a 1x1000 image will end up with the\n    # one middle pixel enlarged to fill the full square.\n    # The resizing dimensions should be kept in sync with the client-side\n    # resizing code in web/upload_widget.ts.\n    with libvips_check_image(image_data):\n        return pyvips.Image.thumbnail_buffer(\n            image_data,\n            size,\n            height=size,\n            crop=pyvips.Interesting.CENTRE,\n        ).write_to_buffer(\".png\")",
      "asOf": "2026-11-10"
    },
    "F326": {
      "label": "Repository, zulip/zulip",
      "display": "zulip/zulip",
      "asOf": "2026-11-10"
    },
    "F327": {
      "label": "GitHub stars, zulip/zulip",
      "display": "26.2K",
      "asOf": "2026-11-10"
    },
    "F328": {
      "label": "Last push, zulip/zulip",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F329": {
      "label": "File, zulip/zulip",
      "display": "thumbnail.py · resize_avatar()",
      "asOf": "2026-11-10"
    },
    "F330": {
      "label": "Code, zulip/zulip",
      "display": "def resize_logo(image_data: bytes) -> bytes:\n    # This will only scale the image down, and will resize it to\n    # preserve aspect ratio and be contained within the maximum logo\n    # dimensions; it does not add any padding to make it exactly that\n    # size.  A 2000x10 pixel image will end up as 1000x5; a 10x10 will\n    # end up 10x10.\n    # The resizing dimensions should be kept in sync with the client-side\n    # resizing code in web/upload_widget.ts.\n    with libvips_check_image(image_data):\n        return pyvips.Image.thumbnail_buffer(\n            image_data,\n            MAX_REALM_LOGO_WIDTH,\n            height=MAX_REALM_LOGO_HEIGHT,\n            size=pyvips.Size.DOWN,\n        ).write_to_buffer(\".png\")",
      "asOf": "2026-11-10"
    },
    "F331": {
      "label": "Repository, zulip/zulip",
      "display": "zulip/zulip",
      "asOf": "2026-11-10"
    },
    "F332": {
      "label": "GitHub stars, zulip/zulip",
      "display": "26.2K",
      "asOf": "2026-11-10"
    },
    "F333": {
      "label": "Last push, zulip/zulip",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F334": {
      "label": "File, zulip/zulip",
      "display": "thumbnail.py · resize_logo()",
      "asOf": "2026-11-10"
    },
    "F335": {
      "label": "Quickstart, opencv-python",
      "display": "import cv2 as cv\nimport sys\n\nimg = cv.imread(cv.samples.findFile(\"starry_night.jpg\"))\nif img is None:\n    sys.exit(\"Could not read the image.\")\n\ncv.imshow(\"Display window\", img)\nk = cv.waitKey(0)\nif k == ord(\"s\"):\n    cv.imwrite(\"starry_night.png\", img)",
      "asOf": "2026-11-10"
    },
    "F336": {
      "label": "Quickstart, torchvision",
      "display": "import torch\nfrom torchvision.transforms import v2\n\nH, W = 32, 32\nimg = torch.randint(0, 256, size=(3, H, W), dtype=torch.uint8)\n\ntransforms = v2.Compose([\n    v2.RandomResizedCrop(size=(224, 224), antialias=True),\n    v2.RandomHorizontalFlip(p=0.5),\n    v2.ToDtype(torch.float32, scale=True),\n    v2.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),\n])\nimg = transforms(img)",
      "asOf": "2026-11-10"
    },
    "F337": {
      "label": "Quickstart, imagecodecs",
      "display": "import numpy\narray = numpy.random.randint(100, 200, (256, 256, 3), numpy.uint8)\n\nfrom imagecodecs import imwrite, imread\nimwrite('_test.jp2', array)\nimage = imread('_test.jp2')",
      "asOf": "2026-11-10"
    },
    "F338": {
      "label": "Quickstart, pyvips",
      "display": "import pyvips\n\nimage = pyvips.Image.new_from_file('some-image.jpg', access='sequential')\nimage *= [1, 2, 1]\nmask = pyvips.Image.new_from_array([\n    [-1, -1, -1],\n    [-1, 16, -1],\n    [-1, -1, -1],\n], scale=8)\nimage = image.conv(mask, precision='integer')\nimage.write_to_file('x.jpg')",
      "asOf": "2026-11-10"
    },
    "F339": {
      "label": "FAQ, blur_speedup",
      "display": "15 times",
      "asOf": "2026-11-10"
    },
    "F340": {
      "label": "Reads video frames, opencv-python",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F341": {
      "label": "Works on NumPy arrays, kornia",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F342": {
      "label": "Output formats, pyvips",
      "display": "PNG, JPEG",
      "asOf": "2026-11-10"
    }
  },
  "dataCheckedAt": "2026-11-10",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "open source Python libraries for image processing: resizing, cropping, filtering, and transforming images",
        "numResults": 20,
        "type": "auto",
        "includeDomains": [
          "github.com"
        ]
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": [
      {
        "endpoint": "/search",
        "body": {
          "query": "Python image processing library package",
          "numResults": 20,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/python-pillow/Pillow",
            "https://python-pillow.org",
            "https://pypi.org/project/pillow/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about Pillow, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what Pillow does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of Pillow that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of Pillow that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says Pillow handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library Pillow (pillow on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library Pillow (pillow on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library Pillow (pillow on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library Pillow (pillow on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library Pillow (pillow) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses pillow for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/imageio/imageio",
            "https://imageio.readthedocs.io",
            "https://pypi.org/project/imageio/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about imageio, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what imageio does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of imageio that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of imageio that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says imageio handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imageio (imageio on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imageio (imageio on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imageio (imageio on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imageio (imageio on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library imageio (imageio) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses imageio for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/rishabh-16/cs231n-2019-assignments/blob/87c806f8619afed3e694409ea22bc338e406701a/assignment2/cs231n/data_utils.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function load_tiny_imagenet() in this file, which uses the imageio library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What load_tiny_imagenet() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the imageio calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/opencv/opencv-python",
            "https://pypi.org/project/opencv-python/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about opencv-python, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what opencv-python does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of opencv-python that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of opencv-python that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says opencv-python handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library opencv-python (opencv-python on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library opencv-python (opencv-python on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library opencv-python (opencv-python on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library opencv-python (opencv-python on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library opencv-python (opencv-python) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses opencv-python for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/pytorch/vision",
            "https://pytorch.org/vision",
            "https://pypi.org/project/torchvision/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about torchvision, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what torchvision does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of torchvision that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of torchvision that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says torchvision handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library torchvision (torchvision on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library torchvision (torchvision on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library torchvision (torchvision on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library torchvision (torchvision on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library torchvision (torchvision) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses torchvision for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/amaralibey/MixVPR/blob/31de0c35eef2c82589481293a200c9ff61741eb5/models/backbones/resnet.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function forward() in this file, which uses the torchvision library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What forward() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the torchvision calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/PacktPublishing/PyTorch-Computer-Vision-Cookbook/blob/d891fc586057e6678390c2c490f58438d0fef54d/Chapter10/myutils.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function transform_frames() in this file, which uses the torchvision library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What transform_frames() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the torchvision calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/jamesWalker55/comfyui-various/blob/50d23bdfc444af630cc6ec55319a50fac21b84ce/comfyui_image_ops.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function execute() in this file, which uses the torchvision library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What execute() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the torchvision calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/hrzhang1123/DTFD-MIL/blob/61f1ebf1f622fe9ed4093ee8455a581fc5ec3a0c/main_Extract_PerSlide.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function main() in this file, which uses the torchvision library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What main() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the torchvision calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/kornia/kornia",
            "https://kornia.readthedocs.io",
            "https://pypi.org/project/kornia/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about kornia, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what kornia does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of kornia that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of kornia that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says kornia handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library kornia (kornia on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library kornia (kornia on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library kornia (kornia on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library kornia (kornia on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library kornia (kornia) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses kornia for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/Comfy-Org/ComfyUI/blob/07dd46dc4abd9b6af81aae7c590a9a30d5a096c8/comfy_extras/nodes_morphology.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function execute() in this file, which uses the kornia library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What execute() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the kornia calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/lucidrains/DALLE2-pytorch/blob/0069857cf838ee2d1ae874df7829cb4324ac6127/dalle2_pytorch/dalle2_pytorch.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function forward() in this file, which uses the kornia library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What forward() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the kornia calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/Trusted-AI/adversarial-robustness-toolbox/blob/02999c896781ff8856695683246708aaab9f686b/art/attacks/evasion/graphite/utils.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function convert_to_network_wb() in this file, which uses the kornia library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What convert_to_network_wb() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the kornia calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/cgohlke/imagecodecs",
            "https://pypi.org/project/imagecodecs/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about imagecodecs, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what imagecodecs does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of imagecodecs that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of imagecodecs that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says imagecodecs handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imagecodecs (imagecodecs on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imagecodecs (imagecodecs on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imagecodecs (imagecodecs on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library imagecodecs (imagecodecs on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library imagecodecs (imagecodecs) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses imagecodecs for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/emcconville/wand",
            "http://docs.wand-py.org/",
            "https://pypi.org/project/wand/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about wand, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what wand does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of wand that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of wand that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says wand handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library wand (wand on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library wand (wand on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library wand (wand on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library wand (wand on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library wand (wand) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses wand for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/pierrechevalier83/ferris/blob/3b22f44e8018c14102108442ab2d5dcdc60a9839/automation/tools/PcbDraw/pcbdraw/pcbdraw.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function svg_to_bitmap() in this file, which uses the wand library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What svg_to_bitmap() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the wand calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/HazyResearch/pdftotree/blob/9ee8dec35e1963a9401f9c76e2e3f70c49292cdc/pdftotree/utils/display_utils.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function display_bounding_boxes() in this file, which uses the wand library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What display_bounding_boxes() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the wand calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/libvips/pyvips",
            "https://pypi.org/project/pyvips/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about pyvips, a Python image processing library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what pyvips does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of pyvips that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of pyvips that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says pyvips handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Basic resizing and cropping",
                          "Computer vision",
                          "Scientific images",
                          "Large images fast",
                          "NumPy pipelines",
                          "Drawing on images",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Basic resizing and cropping; Computer vision; Scientific images; Large images fast; NumPy pipelines; Drawing on images."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pyvips (pyvips on PyPI) read or process video files frame by frame, not only still images? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pyvips (pyvips on PyPI) operate on images stored as NumPy arrays? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pyvips (pyvips on PyPI) draw shapes or text onto an image? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pyvips (pyvips on PyPI) process images on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library pyvips (pyvips) read and write images as? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses pyvips for image processing: resizing, cropping, filtering, and transforming images, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/m87-labs/moondream/blob/84663acafacc43cb7e98aa94d26f36587656b492/moondream/torch/image_crops.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function overlap_crop_image() in this file, which uses the pyvips library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What overlap_crop_image() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pyvips calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/krateng/maloja/blob/a8293063a5e940104eae698b8ea7a232f7bc1714/maloja/server.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function static_image() in this file, which uses the pyvips library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What static_image() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pyvips calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/barebaric/rayforge/blob/e6dfb53ad623db283d8c2b57e846c7929de9118f/rayforge/image/util/vips.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function _render_geometry_to_vips_mask() in this file, which uses the pyvips library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What _render_geometry_to_vips_mask() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pyvips calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/ecometrica/gdal2mbtiles/blob/61661601dda0fb1b2f35aca5af33bba2b4586850/gdal2mbtiles/vips.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function from_gdal_dataset() in this file, which uses the pyvips library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What from_gdal_dataset() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pyvips calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/samdobson/image_slicer/blob/a336e96848fcb5b918ea44721b40eefd5f42f3ad/src/image_slicer/slicer.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function __init__() in this file, which uses the pyvips library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What __init__() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pyvips calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      }
    ]
  }
}
