|
|
|
@ -5,6 +5,7 @@ import {
|
|
|
|
transpose,
|
|
|
|
transpose,
|
|
|
|
matmul2,
|
|
|
|
matmul2,
|
|
|
|
} from "./util.js";
|
|
|
|
} from "./util.js";
|
|
|
|
|
|
|
|
import request from "./request.js";
|
|
|
|
const annMath = {
|
|
|
|
const annMath = {
|
|
|
|
sub: function (a, b) {
|
|
|
|
sub: function (a, b) {
|
|
|
|
//pos, rot, scale
|
|
|
|
//pos, rot, scale
|
|
|
|
@ -277,7 +278,7 @@ var ml = {
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
predict_rotation: function (data) {
|
|
|
|
predict_rotation: function (data) {
|
|
|
|
const req = new Request("/predict_rotation");
|
|
|
|
const req = new Request(request + "/predict_rotation");
|
|
|
|
let init = {
|
|
|
|
let init = {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
body: JSON.stringify({ points: data }),
|
|
|
|
body: JSON.stringify({ points: data }),
|
|
|
|
|