0.0.25 • Published 4 months ago

linkfox-ai-web-sdk v0.0.25

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

安装

npm install linkfox-ai-web-sdk
# or
yarn add linkfox-ai-web-sdk

使用方式

import { ImageEditor, Matting } from 'linkfox-ai-web-sdk';

// 抠图组件
<Matting
  open={open}
  types={['human_body','cloth','goods','face']}
  originImgUrl='' // 图片地址
  onMatting={() => { }} // 抠图结果回调
  onCancel={() => setOpen(false)} // 关闭回调
  drawApis={{ // 依赖的作图 api 接口,下文会有详细介绍
    getUploadUrl: () => { },
    getCutoutOriginImageUrl: () => { },
    autoCutout: () => { },
    getAutoCutoutResult: () => { },
    interactCutout: () => { },
    interactErase: () => { },
    getPostureList: () => { },
    getPostureInfo: () => { },
  }}
/>

// 原图编辑器组件
<ImageEditor
  open={open}
  originUrl='' // 原图地址
  matting={{ // 抠图相关数据
    url: '', // 原图对应的抠图结果图地址
    types={['human_body','cloth','goods','face']}
  }}
  onSuccess={() => {}} // 保存确认后回调
  onClose={() => { }} // 关闭回调
  drawApis={{ // 依赖的作图 api 接口,下文会有详细介绍
    getUploadUrl: () => { },
    getCutoutOriginImageUrl: () => { },
    autoCutout: () => { },
    getAutoCutoutResult: () => { },
    interactCutout: () => { },
    interactErase: () => { },
    getPostureList: () => { },
    getPostureInfo: () => { },
  }}
0.0.20

6 months ago

0.0.21

4 months ago

0.0.22

4 months ago

0.0.23

4 months ago

0.0.24

4 months ago

0.0.25

4 months ago

0.0.19

7 months ago

0.0.13

8 months ago

0.0.15

8 months ago

0.0.16

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.8

10 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago