react-prc-sdk
v0.1.4
Published
## Description For object detection using yolov8n_web_model model
Downloads
11
Readme
react-prc-sdk library
Description
For object detection using yolov8n_web_model model
you can install this library using npm or yarn
npm install react-prc-sdk
or
yarn add react-prc-sdk
Usage
import { SdkStarter } from 'react-prc-sdk';
const App = () => {
return (
<div>
<SdkStarter modelPath={'/yolov8n_web_model/model.json'} />
// your code goes here...
</div>
);
};
export default App;
Props
| Prop Name | Type | Description | | --------- | ------ | ---------------------- | | modelPath | string | path to the model file |
Issues
If you encounter issue in CRA projects like Error: You need additional loader for this loader
then you can try to install the package globally using the following command
update the package.json file with the following
"browserslist": [
">0.25%",
"not dead",
"not op_mini all"
]
and remove the node_modules folder and reinstall packages using the following command
npm install
or
yarn install
and then rerun the project
License
MIT
[]: # (end)