The input element in the following snippet puts a browse button in an HTML page. When the page is accessed from an Android device, it shows a browse button which opens my camera and selects the captured image.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
<input type="file" accept="image/*" capture="camera" />
</body>
</html>
My problem is, how can I pass the selected image to a JavaScript function to run any logic on it?