Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModelDepot/tfjs-yolo-tiny-demo
/ functions
Functions
12 in github.com/ModelDepot/tfjs-yolo-tiny-demo
⨍
Functions
12
◇
Types & classes
2
↓ 2 callers
Function
doneLoading
()
src/index.js:80
↓ 2 callers
Function
gtag
()
src/index.js:100
↓ 1 callers
Method
adjustVideoSize
* Adjusts the video size so we can make a centered square crop without * including whitespace. * @param {number} width The real width of the vid
src/webcam.js:83
↓ 1 callers
Method
capture
* Captures a frame from the webcam and normalizes it between -1 and 1. * Returns a batched image (1-element batch) of shape [1, w, h, c].
src/webcam.js:46
↓ 1 callers
Function
clearRects
()
src/index.js:73
↓ 1 callers
Method
cropImage
* Crops an image tensor so we get a square image with no white space. * @param {Tensor4D} img An input image Tensor to crop.
src/webcam.js:68
↓ 1 callers
Function
drawRect
(x, y, w, h, text = '', color = 'red')
src/index.js:60
↓ 1 callers
Function
ga
()
src/index.js:97
↓ 1 callers
Function
run
()
src/index.js:29
↓ 1 callers
Method
setup
()
src/webcam.js:92
↓ 1 callers
Function
showError
()
src/index.js:91
Method
constructor
* @param {HTMLVideoElement} webcamElement A HTMLVideoElement representing the webcam feed.
src/webcam.js:38