- train a yolo model with dataset of about 120 images
- convert the pytorch yolo model to tfjs
- use the tfjs model in browser extension
Labeling tool labelImg
Follow this Google Colab to train and convert to tfjs
After converted to tfjs, download and put the model in ./tf/yolo/tfjs-models/yolov8{model-size}
, e.g ./tf/yolo/tfjs-models/yolov8m
Currently use yolov8m model for extension
yarn install
yarn build.chrome.dev
- the extension will be built in
./tools/dist/chrome
, load it in Chrome
- Go to a website
- Context menu -> WebCourt -> Predict
- Go to a website
- Context menu -> WebCourt -> Capture Tab Image
- The Tab screenshot will be saved to extension's indexedDB, you can repeat 1 and 2 to save as many as screenshots
- Click extension popup -> Options
- Click
Download Images
- the images will be downloaded to Chrome
<current download folder>/web-court-download
- if no indexes specified, all screenshots will be downloaded and overwrite the existing
- the indexes would be helpful if you have a lot of screenshots or you capture screenshots incrementally and only need to download the newly captured ones
- the images will be downloaded to Chrome