Skip to content

Commit

Permalink
Update javascript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Oct 10, 2023
1 parent 4650156 commit fc63ebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions faceapi_recognize_20201012/blockly/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ Blockly.JavaScript['faceapirecognize_video_one'] = function(block) {
return code;
};

Blockly.JavaScript['faceapirecognize_video_capture'] = function(block) {
Blockly.JavaScript['faceapirecognize_video_capture'] = function(block) {
var value_faceimagecount = Blockly.JavaScript.valueToCode(block, 'faceimagecount', Blockly.JavaScript.ORDER_ATOMIC);
var value_result = block.getFieldValue('result_');
var value_opacity = block.getFieldValue('opacity_');
var value_timer = Blockly.JavaScript.valueToCode(block, 'timer', Blockly.JavaScript.ORDER_ATOMIC);
var value_facelabel = Blockly.JavaScript.valueToCode(block, 'facelabel', Blockly.JavaScript.ORDER_ATOMIC);
var value_distancelimit = Blockly.JavaScript.valueToCode(block, 'distancelimit', Blockly.JavaScript.ORDER_ATOMIC);

var code = 'faceapirecognize_video("' + value_result + '","' + value_opacity + '",' + value_timer + ',"" ,' + value_facelabel + ',-1,' + value_distancelimit + ');\n';
var code = 'faceapirecognize_video("' + value_result + '","' + value_opacity + '",' + value_timer + ',"" ,"" ,'+value_faceimagecount*(-1)+',' + value_distancelimit + ');\n';
return code;
};

Expand Down

0 comments on commit fc63ebd

Please sign in to comment.