本文介绍了将python sklearn模型导出到生产环境(java / c ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我训练了一个由2个组件组成的计算机视觉分类器:数据的内核PCA转换和SVM二进制分类模型。

I trained a computer vision classifier consisting of 2 components: a kernel PCA transformation of the data and a SVM binary classification model.

这些模型在Python中使用SKlearn,但我想将它们用于c ++以及后来的Java中的实际计算机视觉任务。将模型导出到其他环境的最佳方法是什么?有什么聪明的方法可以做到这一点,还是我只需要用一种新的语言手工编码所有参数?

These models are trained in Python using SKlearn, but I'd like to use them for an actual computer vision task in c++ and later possibly Java. What's the best way to export my models to a different environment? Is there a smart way to do this or will I simply have to hand code all parameters in a new language?

推荐答案

我会建议您根据自己的喜好直接在opencv,c ++或java中完成整个过程。

I would suggest to do the complete process directly in opencv, in c++ or java as you prefer.

这里有和另一个。

这篇关于将python sklearn模型导出到生产环境(java / c ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 19:53