in this upload.html page the user will be upload multi images after that draw line on the images the show in the same page
Note: draw a line, not by the user
this error appears to me when i run a code
Uncaught
BindingError
message: "Cannot pass "1" as a Mat"
name: "BindingError"
stack: "BindingError: Cannot pass "1" as a Mat↵ at BindingError.<anonymous>
A code
function preview_images()
{
var total_file=document.getElementById("images").files.length;
for(var i=0;i<total_file;i++)
{
//cv.line(total_file, Point(dx+150, dy+100), Size(100,70), 0, 0, 360, white, -1, 8, 0 )
cv.line(total_file, (20, 160), (100, 160), (0, 0, 255), 10)
var UrlFile=URL.createObjectURL(event.target.files[i]);
$('#image_preview').append("<div class='col-md-3'><img class='img-responsive' src='"+UrlFile+"'></div>");
}
}
</script>
</head>
<body>
<div class="row">
<form action="/upload" method="post" enctype="multipart/form-data">
<div class="col-md-6">
<input type="file" class="form-control" id="images" name="images" onchange="preview_images(this);" multiple="" accept='image/*' />
<input type ="submit" value = "upload"