You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import React, { Component , Fragment } from 'react';
// import ml5 from './ml5.min.js'
import p5 from 'p5'
import MyComponent from './MyComponent'
import "bootstrap/dist/css/bootstrap.min.css";
import "p5/lib/addons/p5.dom";
import './object.css'
let video;
let yolo;
var stop=false
var no_of_times=0;
// export
let objects = [];
var array=[];
Hello, what I did is go into the ml5.min.js and find the path they use to load the model. You'll probably have to change it so something like: http://localhost:5000/YOLO/model.json
this is my code
import React, { Component , Fragment } from 'react';
// import ml5 from './ml5.min.js'
import p5 from 'p5'
import MyComponent from './MyComponent'
import "bootstrap/dist/css/bootstrap.min.css";
import "p5/lib/addons/p5.dom";
import './object.css'
let video;
let yolo;
var stop=false
var no_of_times=0;
// export
let objects = [];
var array=[];
export default class Detection extends Component {
constructor() {
super()
this.stop = this.stop.bind(this)
}
})
The text was updated successfully, but these errors were encountered: