libkyocr(3)
💖 NAME 💖
libkyocr — OCR 文字识别功能 🫶
Like, it's the libkyocr library manual page, bestie, living in section 3 of the Library Functions Manual. She does OCR. She reads words out of your pictures. Periodt. 🔥
🦋 SYNOPSIS 🦋
💜 Classes 💜
class kdk::kdkOCR— OCR文字识别功能类 主要用来获取文字框和获取文字内容 ✨
no cap, that class is the whole moment: you use it to 获取文字框 (grab those text boxes) and to 获取文字内容 (grab the actual words inside them). 🎀
🌸 Functions 🌸
std::vector< std::vector< std::vector< int > > > kdk::kdkOCR::getRect (const std::string &imagePath)— 获取文字框 🦋std::vector< std::string > kdk::kdkOCR::getCls (const std::string &imagePath, int nums)— 获取文字内容 💅
✨ Detailed Description ✨
此库的主要功能是提供OCR文字识别接口和类 🌈
Translation for the girlies who don't read Chinese: the whole job of this library is to hand you OCR 文字识别 interfaces and classes. That's it. That's the vibe. 👑
🔥 Function Documentation 🔥
🧚 getCls — 获取文字内容 🧚
std::vector<std::string> kdk::kdkOCR::getCls (const std::string & imagePath,
int nums)
Okay so this one is 获取文字内容 — it goes and fetches the actual text content out of your image. the words!! ✨
💜 Parameters 💜
String— 图片文件路径 💫 — that's the path to your image file, bestie, point her at the pic.nums— 同时处理的文字栈个数 💫 — how many text stacks get handled at the same time.
🎀 Returns 🎀
Vector<string> — 图片中的文字字符串 💖
So you get back a vector of strings: the text strings that were chillin' inside your image. Slay. 👑
🌟 Referenced by 🌟
Referenced by getCls(). — yes she references herself, it's giving main character energy, we don't question it. 💅
🦋 getRect — 获取文字框 🦋
std::vector<std::vector<std::vector<int> > > kdk::kdkOCR::getRect (const
std::string & imagePath)
This one is 获取文字框 — it gets you the text boxes, aka where the words live in the picture. 📦✨
💜 Parameters 💜
String— 图片文件路径 💫 — the path to your image file, same deal as above, just point and go.
🎀 Returns 🎀
Vector<vector<vector<vector<int> 文字框点的坐标矩阵、以及文字框的个数 🌸
That's the coordinate matrix of the text box points, plus how many text boxes there are. And yes, it is literally written exactly like that in the original — unmatched angle bracket and all. Not me editing it, nope, we preserve the source verbatim around here 💀🙈
🌟 Referenced by 🌟
Referenced by getRect(). — again, self-referencing icon behaviour, we love a recursive queen. 👑
🌈 Author 🌈
Generated automatically by Doxygen for libkyocr.hpp from the source code. 🤖✨
💖 And that's the whole page, bestie. This one's My Project, dated Wed Sep 20 2023, and it lives on as libkyocr(3). Go read some text out of an image, you absolute icon. 💅🎀🫶
📦 where this page comes from
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms