Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 OCR 应用程序,我需要一个包含训练图像的目录供 OCR 训练。我如何将这些图像添加到项目中?(我对 android 比较陌生)我知道图像有不同的可绘制文件夹,但我想我想要一个与所有这些分开的文件夹。
感谢所有帮助。
把它们放在assets/文件夹里。
assets/
如果你把它们放在那里,Android 不会尝试缩放它们(或对它们做任何其他事情)。
如果我们正在谈论图像的演出,那么将它们手动放在您的 SD 卡上,并让您的应用程序在需要时检索它们。