We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I got this error when I try to validate an image. whether the image has the shape of the face or not.
IndexSizeError: Index or size is negative or greater than the allowed amount
this is my code to check that image :
$("#nama_file").change(function(){ var preview = $("#gambar_preview"); preview.fadeOut(); var oFReader = new FileReader(); oFReader.readAsDataURL(document.getElementById("nama_file").files[0]); $("#loading").show(); oFReader.onload = function (oFREvent) { preview.attr('src', oFREvent.target.result).fadeIn(); preview.faceDetection({ complete: function (faces) { $("#loading").hide(); var hitung = faces.length; if (hitung < 1){ preview.hide(); $("#pesan-error").fadeIn().delay(5000).fadeOut(function(){ preview.attr("src", "images/avatar.png").show(); }); $("#btn_reset").click(); } }, error:function (code, message) { alert('Error: ' + message); } }); }; });
That code will execute when user click Browse in input type file. Please tell me what wrong with my code. Thank you very much.
Best regards, Rizaldi Maulidia Achmad
The text was updated successfully, but these errors were encountered:
@rizaldimaulidia i have the same issue, after refresh to many times the browser it works correctly.
Have you implemented correctly?
Sorry, something went wrong.
No branches or pull requests
Hi,
I got this error when I try to validate an image. whether the image has the shape of the face or not.
this is my code to check that image :
That code will execute when user click Browse in input type file. Please tell me what wrong with my code. Thank you very much.
Best regards,
Rizaldi Maulidia Achmad
The text was updated successfully, but these errors were encountered: