Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在mac环境下进行umi的二开 #242

Open
CrazyShado opened this issue Nov 27, 2023 · 3 comments
Open

如何在mac环境下进行umi的二开 #242

CrazyShado opened this issue Nov 27, 2023 · 3 comments

Comments

@CrazyShado
Copy link

hello,我当前想基于mac环境下进行umi的二开,但执行之后挺多报错的,umi在mac下环境需求是什么样的呢

@hiroi-sora
Copy link
Owner

hiroi-sora commented Nov 27, 2023

你可以先尝试一遍 windows开发环境搭建 流程,以熟悉本项目。

umi并不是一个基于传统python环境的项目,只靠主仓库代码是不够的,需要手动引入嵌入式python环境+第三方包。

关于多平台移植,前端部分是很容易搞的,只需要更换对应平台的python嵌入式解释器、和第三方库就行了。可参考 #228

但是后端(OCR引擎插件)比较难搞,需要编译一个适用于mac平台的PaddleOCR-json离线推理引擎。该项目有很多辅助二次开发的文档,比如可参考 移植指南

或者,你也可以参考 Umi-OCR_插件开发指南 ,创建一个适用于mac平台的新插件。如果不追求离线的话,可以写一个基于在线API的插件,开发难度会低很多。

@CrazyShado
Copy link
Author

好的,由于我们需要对图片进行归类整理,所以更倾向于离线的推理引擎

@sheng-di
Copy link

sheng-di commented Mar 3, 2024

MacOS 下可以使用系统自带的“预览”,新版的和 iOS 一样可以直接复制文字了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants