文件名称:react-opencvjs
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-07 13:36:22
JavaScript
react-opencvjs 安装 yarn add react-opencvjs 用法 import openCV from 'react-opencvjs' .... useEffect ( ( ) => { openCV ( { onLoaded : ( ) => console . log ( 'open cv loaded' ) , onFailed : ( ) => console . log ( 'open cv failed to load' ) , version : '4.5.1' } ) } , [ ] ) // if open cv loaded // eslint-disable-next-line no-undef cv . imread ( 'img id' ) 加载将需要几秒钟。 因此,在您要使用的组件即将加载之前,
【文件预览】:
react-opencvjs-main
----index.js(615B)
----package.json(758B)
----publish_script.sh(79B)
----LICENSE(1KB)
----.gitignore(2KB)
----README.md(611B)
----yarn.lock(375B)