OCR Project
Loading...
Searching...
No Matches
LoaderArgs Struct Reference

Arguments passed to each loader thread. More...

Collaboration diagram for LoaderArgs:

Public Attributes

const char * dir_path
int label
Samplebuf
size_t buf_cap
size_t n_loaded

Detailed Description

Arguments passed to each loader thread.

Member Data Documentation

◆ buf

Sample* LoaderArgs::buf

Pre-allocated buffer to write samples to.

◆ buf_cap

size_t LoaderArgs::buf_cap

Capacity of buf (max samples to write).

◆ dir_path

const char* LoaderArgs::dir_path

Directory to scan for images.

◆ label

int LoaderArgs::label

Class label (0–25) for all images in dir.

◆ n_loaded

size_t LoaderArgs::n_loaded

Filled by thread: actual samples written.


The documentation for this struct was generated from the following file: