简体   繁体   English

将 Spark AR API 集成到 Node JS web 应用程序中

[英]Integrate Spark AR API into Node JS web app

I am building a Node JS webapp that recieves user's facial images, paints AR objects on the image, and send the edited image back to the user.我正在构建一个 Node JS webapp,它接收用户的面部图像,在图像上绘制 AR 对象,并将编辑后的图像发送回用户。 Currently, I'm looking into Spark AR since it seems to be performing very well in Facebook apps like Instagram.目前,我正在研究 Spark AR,因为它似乎在 Facebook 应用程序(如 Instagram)中表现非常出色。 But I can't seem to find an API documentation on calling the Spark API within JS or Node.但是我似乎找不到关于在 JS 或 Node 中调用 Spark API 的 API 文档。

  1. How would I be able to integrate Spark AR API in my Node JS webapp?我如何才能将 Spark AR API 集成到我的 Node JS webapp 中?
  2. Is there any alternative to Spark API? Spark API 有什么替代方案吗? And how does it compare to Spark?它与 Spark 相比如何?

It is not possible to use Spark for this because Spark does not currently offer an API for third parties to use their engine.不可能为此使用 Spark,因为 Spark 目前不提供 API 供第三方使用他们的引擎。 Spark is owned by Facebook and only available for use in Facebook products for the time being (Instagram, Messenger, etc). Spark 为 Facebook 所有,暂时只能在 Facebook 产品(Instagram、Messenger 等)中使用。

As an alternative, I recommend looking into this JS face-tracking library called CLM Tracker: https://github.com/auduno/clmtrackr作为替代方案,我建议查看这个名为 CLM Tracker 的 JS 面部跟踪库: https://github.com/auduno/clmtrackr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM