mirror of https://github.com/vladmandic/human
refresh
parent
6af1768fa6
commit
d0bf167652
|
@ -121,7 +121,7 @@ export default {
|
|||
body: {
|
||||
enabled: true,
|
||||
modelPath: '../models/posenet.json',
|
||||
inputResolution: 257, // fixed value
|
||||
inputSize: 257, // fixed value
|
||||
maxDetections: 10, // maximum number of people detected in the input
|
||||
// should be set to the minimum number for performance
|
||||
scoreThreshold: 0.8, // threshold for deciding when to remove boxes based on score
|
||||
|
|
|
@ -154,7 +154,7 @@ async function setupCamera() {
|
|||
else return null;
|
||||
const track = stream.getVideoTracks()[0];
|
||||
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' };
|
||||
return new Promise((resolve) => {
|
||||
video.onloadeddata = async () => {
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit e73a55ab96efd7d1672d4c71dcef27dd1bee9f1d
|
||||
Subproject commit 3e00e743c311e839d88e4bb6b304c07199d1e6d0
|
Loading…
Reference in New Issue