Use data url, remove log

This commit is contained in:
ColonelParrot 2023-04-15 19:48:56 -04:00
parent 36b89752e2
commit dc3af0c129

View File

@ -24,8 +24,7 @@ const scanner = new jscanify()
$('#demo-images .image-container').click(function () { $('#demo-images .image-container').click(function () {
$('.image-container.selected').removeClass('selected') $('.image-container.selected').removeClass('selected')
$(this).addClass('selected') $(this).addClass('selected')
const imageSrc = $(this).find('img')[0].src const imageSrc = $(this).find('img').data('url')
console.log(imageSrc)
loadOpenCV(function () { loadOpenCV(function () {
$('#demo-result').empty() $('#demo-result').empty()