@@ -456,15 +456,15 @@ namespace op
456456 }
457457
458458 OP_API void _OPConfigureHand (
459- bool enable, int netInputSizeX, int netInputSizeY, // Point
460- int scalesNumber, float scaleRange, bool tracking,
459+ bool enable, uchar detector, int netInputSizeX, int netInputSizeY, // Point
460+ int scalesNumber, float scaleRange,
461461 uchar renderMode, // RenderMode
462462 float alphaKeypoint, float alphaHeatMap, float renderThreshold)
463463 {
464464 try
465465 {
466466 spWrapperStructHand = std::make_shared<WrapperStructHand>(
467- enable, Point<int >{ netInputSizeX, netInputSizeY }, scalesNumber, scaleRange, tracking ,
467+ enable, (Detector) detector, Point<int >{ netInputSizeX, netInputSizeY }, scalesNumber, scaleRange,
468468 (RenderMode) renderMode, alphaKeypoint, alphaHeatMap, renderThreshold);
469469 }
470470 catch (const std::exception& e)
@@ -474,14 +474,14 @@ namespace op
474474 }
475475
476476 OP_API void _OPConfigureFace (
477- bool enable, int netInputSizeX, int netInputSizeY, // Point
477+ bool enable, uchar detector, int netInputSizeX, int netInputSizeY, // Point
478478 uchar renderMode, // RenderMode
479479 float alphaKeypoint, float alphaHeatMap, float renderThreshold)
480480 {
481481 try
482482 {
483483 spWrapperStructFace = std::make_shared<WrapperStructFace>(
484- enable, Point<int >{ netInputSizeX, netInputSizeY }, (RenderMode) renderMode, alphaKeypoint,
484+ enable, (Detector) detector, Point<int >{ netInputSizeX, netInputSizeY }, (RenderMode) renderMode, alphaKeypoint,
485485 alphaHeatMap, renderThreshold
486486 );
487487 }
@@ -530,7 +530,7 @@ namespace op
530530 OP_API void _OPConfigureOutput (
531531 double verbose, char * writeKeypoint, uchar writeKeypointFormat, // DataFormat
532532 char * writeJson, char * writeCocoJson, char * writeCocoFootJson, int writeCocoJsonVariant, char * writeImages,
533- char * writeImagesFormat, char * writeVideo, double writeVideoFps, char * writeHeatMaps,
533+ char * writeImagesFormat, char * writeVideo, double writeVideoFps, bool writeVideoWithAudio, char * writeHeatMaps,
534534 char * writeHeatMapsFormat, char * writeVideo3D, char * writeVideoAdam, char * writeBvh, char * udpHost,
535535 char * udpPort)
536536 {
@@ -539,7 +539,8 @@ namespace op
539539 spWrapperStructOutput = std::make_shared<WrapperStructOutput>(
540540 verbose, writeKeypoint, (DataFormat) writeKeypointFormat, writeJson, writeCocoJson,
541541 writeCocoFootJson, writeCocoJsonVariant, writeImages, writeImagesFormat, writeVideo, writeVideoFps,
542- writeHeatMaps, writeHeatMapsFormat, writeVideo3D, writeVideoAdam, writeBvh, udpHost, udpPort);
542+ writeVideoWithAudio, writeHeatMaps, writeHeatMapsFormat, writeVideo3D, writeVideoAdam, writeBvh,
543+ udpHost, udpPort);
543544 }
544545 catch (const std::exception& e)
545546 {
0 commit comments