MCPcopy Create free account
hub / github.com/WallBreaker2/op / find_ocr_text_span

Function find_ocr_text_span

libop/image/ImageSearchAlgorithms.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100const ocr_text_span_t *find_ocr_text_span(const std::vector<ocr_text_span_t> &spans, size_t index) {
101 for (const auto &span : spans) {
102 if (span.begin <= index && index < span.end)
103 return &span;
104 }
105 return nullptr;
106}
107
108size_t default_thread_count() {
109 const size_t count = std::thread::hardware_concurrency();

Callers 2

FindStrMethod · 0.85
FindStrExMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected