Skip to content

Commit 18b4495

Browse files
committed
switch to coco and add demo
1 parent 61e8dc0 commit 18b4495

File tree

5 files changed

+47
-49
lines changed

5 files changed

+47
-49
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Welcome to the Roboflow Inferencejs Next.js Example app!
22

3+
![Demo](demo.gif)
4+
35
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) which implements the Roboflow Inferencejs SDK for realtime object-detection in browser.
46

57
## Getting Started

app/page.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ function App() {
1919
if (!modelLoading) {
2020
setModelLoading(true);
2121
inferEngine
22-
.startWorker(
23-
"hard-hat-sample-txcpu",
24-
3,
25-
"rf_EsVTlbAbaZPLmAFuQwWoJgFpMU82"
26-
)
22+
.startWorker("coco", 3, "rf_EsVTlbAbaZPLmAFuQwWoJgFpMU82")
2723
.then((id) => setModelWorkerId(id));
2824
}
2925
}, [inferEngine, modelLoading]);

demo.gif

4.24 MB
Loading

package-lock.json

+43-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"inferencejs": "^1.0.11",
12+
"inferencejs": "^1.0.12",
1313
"next": "14.2.5",
1414
"react": "^18",
1515
"react-dom": "^18"

0 commit comments

Comments
 (0)