8 lines
179 B
Python
8 lines
179 B
Python
from vision.model import Image
|
|
from typing import List
|
|
|
|
|
|
def extract_average_rgb(images: List[Image]):
|
|
for image in images:
|
|
image.descriptor = image.mean(axis=(0, 1))
|