60 lines
1.5 KiB
HTML
60 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Recipt OCR API</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f4f4f9;
|
|
color: #333;
|
|
margin: 40px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 90vh;
|
|
}
|
|
form {
|
|
background-color: #fff;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
|
}
|
|
h1 {
|
|
color: #5d5d5d;
|
|
text-align: center;
|
|
}
|
|
label {
|
|
margin-bottom: 10px;
|
|
display: block;
|
|
font-size: 16px;
|
|
}
|
|
input[type="file"] {
|
|
display: block;
|
|
margin-top: 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
input[type="submit"] {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
input[type="submit"]:hover {
|
|
background-color: #45a049;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Upload Recipt</h1>
|
|
<form action="/reciptocr/api.cgi" method="post" enctype="multipart/form-data">
|
|
<label for="file">Select an image (PNG or JPEG):</label>
|
|
<input type="file" name="file" id="file" accept=".png, .jpeg, .jpg">
|
|
<input type="submit" value="Upload">
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|