detect-main

定制页设计稿检测,输出目标框

Usage no npm install needed!

<script type="module">
  import detectMain from 'https://cdn.skypack.dev/detect-main';
</script>

README

detect-main

检测定制页页面的元素,返回元素定位信息和标签信息列表

Usage

import fs from 'fs'
import path from 'path'
import getImageLabels from 'detect-main'

const source = path.resolve(__dirname, './inference/images/01.jpg');
const image = fs.readFileSync(source);

const results = getImageLabels(image);

console.log(results);