Skip to main content

face_bytes_from_lookup

Function face_bytes_from_lookup 

Source
pub fn face_bytes_from_lookup(
    lookup: &FaceLookup,
    face_id: i64,
) -> Result<Vec<u8>>
Expand description

The expensive part of face_image_bytes: cache check, decode/crop/encode, write-through. Takes no Connection, so it can run without holding the shared DB lock.