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
Could you please help me into it.
The text was updated successfully, but these errors were encountered:
just get the image data using canvas
var image = new Image(); image.src = "image.jpg"; var c = document.getElementById("myCanvas"); var ctxx = c.getContext("2d"); c.width = image.width; c.height = image.height; ctxx.drawImage(image, 0, 0, image.width, image.height); var imgData = ctxx.getImageData(0, 0, c.width, c.height); var imgg = new jsfeat.matrix_t(image.width, image.height, jsfeat.U8_t | jsfeat.C1_t); jsfeat.imgproc.grayscale(imgData.data, image.width, image.height, imgg); //Finally change this line in train_pattern() jsfeat.imgproc.resample(img_u8, lev0_img, new_width, new_height); //to this jsfeat.imgproc.resample(imgg, lev0_img, new_width, new_height);
Sorry, something went wrong.
@rohitkshirsagar here is the html file
https://drive.google.com/file/d/19uFc0k3vkntF8YjXjRJwvXeHfJvEy07M/view?usp=sharing
@jinoantony Thank yo so much for your help !!
No branches or pull requests
Could you please help me into it.
The text was updated successfully, but these errors were encountered: