Git Product home page Git Product logo

jsjh160t-tfjs's Introduction

jsjh160t.github.io/jsjh160t-tfjs

01/啟動TF demo
02/Template Image Classification :本地端範例(tiger.jpg) cat
03/Custom Image Classification :無法上傳檔案(20230624解決--自訂上傳按鈕)(chatgpt)
04/Template Image Object Detection :本地端範例(od_sample4.jpg)
05/WebCam Image Object Detection 無法擷取影像(20230624解決--將google.colab那一行註解掉)
06/WebCam Video Object Detection
07/Template Image 人體姿態(靜態) :本地端範例(pose_sample2)-firefox可以,chrome不行
(20230627增加以下指令,就可以在chrome正常執行。)(chatgpt)
// 觸發函式
async function loadImage(e) {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
//await tf.setBackend('webgl');

08/Custom Image 人體姿態(靜態) :無法上傳檔案(20230624解決--自訂上傳按鈕)(chatgpt)
(20230627增加同上指令,就可以在chrome正常執行。)(chatgpt)

09/WebCam Image 人體姿態(動態) :無法擷取影像
(20230627增加以下指令,就可以在chrome正常執行。)(chatgpt)
// webcam 攝影
async function takePhoto() {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
//await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
await tf.setBackend('webgl');

10/WebCam Video 人體姿態(動態) :無法顯示
(20230630增加以下指令,就可以在chrome正常執行。)(chatgpt)
async function app() {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
//await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
await tf.setBackend('webgl');

11/Custom Image 多人人體姿態(靜態) :無法上傳檔案(20230630解決--自訂上傳按鈕)(chatgpt)
(20230630增加以下指令,就可以在chrome正常執行。)(chatgpt)
// 觸發函式
async function loadImage(e) {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
//await tf.setBackend('webgl');

tmo~tm2:teachable machine的models+javascript,tm0:沒照HTML格式規範,tm1:(原始版)webcam+修改檔案來源,tm2:chatgpt改為上傳檔案並清除預測值+tf.ready()

jsjh160t-tfjs's People

Contributors

jsjh160t avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.