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

pod 'FirebaseML'找不到这个库 #4

Open
Kangqj opened this issue May 19, 2019 · 8 comments
Open

pod 'FirebaseML'找不到这个库 #4

Kangqj opened this issue May 19, 2019 · 8 comments

Comments

@Kangqj
Copy link

Kangqj commented May 19, 2019

想请教下大神,现在pod 'FirebaseML'找不到这个库,firebase官网说需要先要:
(EAP) 通过运行 CPDC EAP 网站中所示的命令,对 Git 进行身份验证并获取 Cookie。

按照这个步骤进入会给一个shell脚本,但是这个脚本执行后还是不能pod,这怎么处理?

@TheLittleBoy
Copy link
Owner

你在按照官网的教程使用Firebase?我并不确认官网教程中让添加的source可以在国内访问。如果你想要运行此demo,直接pod install 即可,不必引入FirebaseML。

@Kangqj
Copy link
Author

Kangqj commented May 20, 2019

我现在想用firebase的其他机器学习套件,包括扫描条形码的这个功能,他现在使用这些哭都要对 Git 进行身份验证并获取 Cookie,不知道怎么搞?

@Kangqj
Copy link
Author

Kangqj commented May 20, 2019


1

@TheLittleBoy
Copy link
Owner

没用过什么身份验证cookie,我只知道你需要什么功能,就添加进来即可。
例如:
pod 'Firebase/MLVision' | ML Kit Vision API
pod 'Firebase/MLVisionLabelModel' | 机器学习套件图片标签模型
pod 'Firebase/MLVisionBarcodeModel' | 机器学习套件条形码扫描模型
pod 'Firebase/MLVisionTextModel' | 机器学习套件文字识别模型
pod 'Firebase/MLVisionFaceModel' | 机器学习套件人脸检测模型
pod 'Firebase/MLNaturalLanguage' | ML Kit Natural Language API
pod 'Firebase/MLNLLanguageID' | 机器学习套件语言识别模型
pod 'Firebase/MLNLSmartReply' | 机器学习套件智能回复模型
pod 'Firebase/MLModelInterpreter' | 机器学习套件自定义模型 API

@Kangqj
Copy link
Author

Kangqj commented May 20, 2019

这样pod install出来只是一个空文件夹,里面没有header的文件,还是没办法用。
比如:我pod这两个:
pod 'Firebase/MLVisionLabelModel' | 机器学习套件图片标签模型
pod 'Firebase/MLVisionBarcodeModel' | 机器学习套件条形码扫描模型

结果是空的FirebaseMLVisionBarcodeModel.framework和FirebaseMLVisionTextModel.framework。

屏幕快照 2019-05-20 21 44 38

@TheLittleBoy
Copy link
Owner

我这里也是空的,但是他们的头文件都集中在FirebaseMLVision.framework这个里面。
image

@Kangqj
Copy link
Author

Kangqj commented May 21, 2019

对,确实是在FirebaseMLVision.framework里面。
pod到具体每个库这个你是从哪里查到的?

虽然这样可以,但是这样pod到的库和firebase官网的库有差异。
比如官网介绍有个FIRMachineLearning类,

NSError *textError;
FIRMachineLearning *machineLearning = [FIRMachineLearning machineLearning];
FIRVisionTextDetector *textDetector = [machineLearning textDetectorWithError:&textError];

这个在FirebaseMLVision.framework里没有对应的代码,不好用。

@TheLittleBoy
Copy link
Owner

pod search Firebase
不应该有差异,除非你的代码已经过时了,要么就是没有引入相关的库。

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

2 participants