Adjust image brightness and contrast
You need to fix inconsistent lighting across hundreds of images—adjusting brightness, contrast, and color saturation.
You need to apply filters to hundreds of images—blur, sharpen, edge detection, and other enhancements.
Images · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
You apply image filters (blur, sharpen, edge detection) to images in your table using custom UDFs that wrap Pillow's ImageFilter module (relies on PIL/Pillow). This gives you control over filter parameters.
You can iterate on transformations before adding them to your table. Use .select() with .collect() to preview results on sample images—nothing is stored in your table. If you want to collect only the first few rows, use .head(n) instead of .collect(). Once you're satisfied, use .add_computed_column() to apply the filter to all images in your table.
pip install pixeltable
pxt.create_table()@pxt.udfinsert()add_computed_column()# Add filter columnst.add_computed_column(blurred=apply_blur(t.image))t.add_computed_column(sharpened=apply_sharpen(t.image))t.add_computed_column(edges=apply_find_edges(t.image))t.add_computed_column(edge_enhanced=apply_edge_enhance(t.image))
One cell of the notebook, copied as it is. Open it in Colab for the rest.
You need to fix inconsistent lighting across hundreds of images—adjusting brightness, contrast, and color saturation.
You need to resize, rotate, crop, or convert hundreds of images—and keep track of all the transformed versions.
You need to convert color images to grayscale for analysis, preprocessing, or model inputs that require single-channel images.
Run YOLOX object detection in Python on images and video frames, then query and draw the detected objects.