mirror of https://github.com/vladmandic/human
refresh
parent
d2c6b6560d
commit
a400b30178
|
@ -121,7 +121,7 @@ export default {
|
||||||
body: {
|
body: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
modelPath: '../models/posenet.json',
|
modelPath: '../models/posenet.json',
|
||||||
inputResolution: 257, // fixed value
|
inputSize: 257, // fixed value
|
||||||
maxDetections: 10, // maximum number of people detected in the input
|
maxDetections: 10, // maximum number of people detected in the input
|
||||||
// should be set to the minimum number for performance
|
// should be set to the minimum number for performance
|
||||||
scoreThreshold: 0.8, // threshold for deciding when to remove boxes based on score
|
scoreThreshold: 0.8, // threshold for deciding when to remove boxes based on score
|
||||||
|
|
|
@ -154,7 +154,7 @@ async function setupCamera() {
|
||||||
else return null;
|
else return null;
|
||||||
const track = stream.getVideoTracks()[0];
|
const track = stream.getVideoTracks()[0];
|
||||||
const settings = track.getSettings();
|
const settings = track.getSettings();
|
||||||
log('camera constraints:', constraints, 'window:', { width: window.innerWidth, height: window.innerHeight }, 'settings:', settings, 'track:', track);
|
// log('camera constraints:', constraints, 'window:', { width: window.innerWidth, height: window.innerHeight }, 'settings:', settings, 'track:', track);
|
||||||
ui.camera = { name: track.label, width: settings.width, height: settings.height, facing: settings.facingMode === 'user' ? 'front' : 'back' };
|
ui.camera = { name: track.label, width: settings.width, height: settings.height, facing: settings.facingMode === 'user' ? 'front' : 'back' };
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
video.onloadeddata = async () => {
|
video.onloadeddata = async () => {
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit e73a55ab96efd7d1672d4c71dcef27dd1bee9f1d
|
Subproject commit 3e00e743c311e839d88e4bb6b304c07199d1e6d0
|
Loading…
Reference in New Issue