Converting Prediction Result to JsonValue

Prediction Result get results as JsonValue {“blocks”:”poseModelposePredictionResultlabelsposePredictionResult”} This is used to convert the image prediction result to Json Value. Parameters: AI Model (Teachable Machine Pose Model) Output: Json ValueSample code: {“blocks”:”poseModelposePredictionResultlabelsposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelposePredictionResult0posePredictionResult”} The output:

Draw All Key Points Inside a Photo

poseDetectionResult draw key points with confidence >= 0 {“blocks”:”poseModelposePredictionResultlabelsposePredictionResult0″} This block is used for displaying the key points inside the image. Parameters: AI Model (Teachable Machine Pose Model) Screen Item (Image) Output: ImageSample code: {“blocks”:”poseModelposePredictionResultlabelsposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelposePredictionResult0posePredictionResult”} The output:

Draw All Skeleton Inside a Photo

poseDetectionResult draw skeleton with confidence >= 0 {“blocks”:”poseModelposePredictionResultlabelsposePredictionResult0″} This block is used for displaying the skeleton line inside the image. Parameters: AI Model (Teachable Machine Pose Model) Screen Item (Image) Output: ImageSample code: {“blocks”:”poseModelposePredictionResultlabelsposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelposePredictionResult0posePredictionResult”} The output:

Draw All Skeleton and the Key Points

poseDetectionResult draw key points and skeleton with confidence >= 0 {“blocks”:”poseModelposePredictionResultlabelsposePredictionResult0″} This block is used for displaying the key points and skeleton line inside the image. Parameters: AI Model (Teachable Machine Pose Model) Screen Item (Image) Output: ImageSample code: {“blocks”:”poseModelposePredictionResultlabelsposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelposePredictionResult0posePredictionResult”} The output:

Showing the Total Amount of Classes with Pose Model

Pose Model get total number of classes {“blocks”:”poseModelposePredictionResultlabelsindexposeModel”} This is used to get the full number of classes from pose model.  Parameters: AI Model (Teachable Machine Pose Model) Output: NumberSample code: {“blocks”:”poseModelposePredictionResultlabelsposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1posePredictionResultposeModel”} The output:

Showing the Class Labels in Pose Model

Pose Model get class labels {“blocks”:”poseModelposePredictionResultposeModel”} This is used for getting class labels from pose model. Parameters: AI Model (Teachable Machine Pose Model) Output: ArraySample code: {“blocks”:”poseModelposePredictionResultlabelsindexposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1labels0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1posePredictionResultindex0MINUS0labels1labels0index”} The output:

Classifying Pose on Image and Get All Result

Pose Model classify pose on photo and get all result {“blocks”:”poseModelposePredictionResultposeModel”} This is used for loading the pose model to classify pose on image and get all result. Parameters: AI Model (Teachable Machine Pose Model) Image Number (Default: 0) Output: Model Prediction Result (From Teachable Machine Pose Model) Sample code: {“blocks”:”poseModelposePredictionResultposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1https://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1posePredictionResult”} The output:

Classifying Pose on Image

Pose Model classify pose on photo and get top … result {“blocks”:”poseModelposePredictionResultimageModelposeModel0″} This is used for loading the pose model to classify pose on image and get the appropriate result. Parameters: AI Model (Teachable Machine Pose Model) Image Number (Default: 0) Output: Model Prediction Result (From Teachable Machine Pose Model) Sample code: {“blocks”:”poseModelposePredictionResultposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=11https://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1posePredictionResult”} The output:

Loading Custom Pose Model from URL

Load pose model from internet {“blocks”:”imageModelimagePredictionResult”} This is used to load the pose model from the internet with the URL.  Parameters: String (URL)Output: Model Prediction Result (From Teachable Machine Pose Model)Sample code: {“blocks”:”poseModelposePredictionResultposeModel0https://teachablemachine.withgoogle.com/models/LL-rF1gZS/posePredictionResult0poseModelhttps://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1https://i2.wp.com/runnersfirst.co.uk/wp-content/uploads/2019/01/running-woman.jpg?resize=678%2C381&ssl=1posePredictionResult”} The output:

Showing the Total Amount of Classes with Image Model

Image Model get total number of classes {“blocks”:”poseModelposePredictionResultimageModelimageModel”} This is used to get the full number of classes.  Parameters: AI Model (Teachable Machine Image Model)Output: NumberSample code: {“blocks”:”imageModelimagePredictionResultimageModel0https://teachablemachine.withgoogle.com/models/tghdF3FXI/imagePredictionResult0imageModelhttps://image.shutterstock.com/image-photo/boy-raising-two-fingers-on-260nw-297974771.jpghttps://image.shutterstock.com/image-photo/boy-raising-two-fingers-on-260nw-297974771.jpgimagePredictionResultimageModel”} The output: