Kimang18 commited on
Commit
f178216
·
1 Parent(s): 7a43999

update text

Browse files
app.py CHANGED
@@ -141,7 +141,7 @@ def download():
141
  user_id = session.get('_id')
142
  anno_path = get_anno_path(user_id)
143
  img_dir = get_images_directory(user_id)
144
- shutil.copyfile(anno_path, f'{img_dir}/annotations.csv')
145
  shutil.make_archive('final', 'zip', img_dir)
146
  return send_file('final.zip',
147
  mimetype='text/csv',
 
141
  user_id = session.get('_id')
142
  anno_path = get_anno_path(user_id)
143
  img_dir = get_images_directory(user_id)
144
+ shutil.copyfile(anno_path, f'{img_dir}/annotations_pascal_voc.csv')
145
  shutil.make_archive('final', 'zip', img_dir)
146
  return send_file('final.zip',
147
  mimetype='text/csv',
static/images/logo_black.png CHANGED
templates/final.html CHANGED
@@ -37,7 +37,8 @@
37
  <div class="container" style="margin-top:20px;">
38
  <center>
39
  <div class="jumbotron">
40
- <h2>Download the Annotations as CSV File</h2>
 
41
  <button id="downloadButton" style="margin-top:10px;" class="btn btn-success">Download</button>
42
  <div id="messageBox" class="mt-8 p-4 bg-blue-100 border border-blue-400 text-blue-700 rounded-lg hidden" role="alert">
43
  <p id="messageText" class="font-medium"></p>
@@ -53,7 +54,7 @@
53
 
54
  // Trigger the download by creating a temporary link and clicking it
55
  var link = document.createElement('a');
56
- link.href = "{{ url_for('download', download='annotations.csv') }}";
57
  link.download = 'my_file.txt'; // This is optional but good practice
58
  document.body.appendChild(link);
59
  link.click();
 
37
  <div class="container" style="margin-top:20px;">
38
  <center>
39
  <div class="jumbotron">
40
+ <h2>Download the annotations as CSV File</h2>
41
+ <h3>The annotations are in Pascal VOC format</h3>
42
  <button id="downloadButton" style="margin-top:10px;" class="btn btn-success">Download</button>
43
  <div id="messageBox" class="mt-8 p-4 bg-blue-100 border border-blue-400 text-blue-700 rounded-lg hidden" role="alert">
44
  <p id="messageText" class="font-medium"></p>
 
54
 
55
  // Trigger the download by creating a temporary link and clicking it
56
  var link = document.createElement('a');
57
+ link.href = "{{ url_for('download', download='annotations_pascal_voc.csv') }}";
58
  link.download = 'my_file.txt'; // This is optional but good practice
59
  document.body.appendChild(link);
60
  link.click();
templates/index.html CHANGED
@@ -38,6 +38,7 @@
38
  <div class="jumbotron" style="margin-top:20px;">
39
  <h2 style="margin:-20px 0 40px 0;">Image Annotator</h2>
40
  <h1 style="margin:-20px 0 40px 0;">for Object Detection</h1>
 
41
  <form enctype="multipart/form-data" method="post">
42
  <label class="btn btn-default">
43
  <input id="file" name="file" type="file" multiple/>
 
38
  <div class="jumbotron" style="margin-top:20px;">
39
  <h2 style="margin:-20px 0 40px 0;">Image Annotator</h2>
40
  <h1 style="margin:-20px 0 40px 0;">for Object Detection</h1>
41
+ <h3>Upload your image dataset below and click submit</h3>
42
  <form enctype="multipart/form-data" method="post">
43
  <label class="btn btn-default">
44
  <input id="file" name="file" type="file" multiple/>
templates/tagger.html CHANGED
@@ -59,6 +59,11 @@
59
  <h1 class="text-3xl sm:text-4xl font-bold text-gray-800 leading-tight">
60
  🇰🇭 By Cambodian, for the development of AI 🇰🇭
61
  </h1>
 
 
 
 
 
62
  </div>
63
 
64
  <!-- Right Section: Placeholder (can be used for user avatar/menu later) -->
 
59
  <h1 class="text-3xl sm:text-4xl font-bold text-gray-800 leading-tight">
60
  🇰🇭 By Cambodian, for the development of AI 🇰🇭
61
  </h1>
62
+ <h3>One annotation takes 2 steps:</h3>
63
+ <ol>
64
+ <li>Create bounding box by click and hold on your image</li>
65
+ <li>Enter label for the bounding box</li>
66
+ </ol>
67
  </div>
68
 
69
  <!-- Right Section: Placeholder (can be used for user avatar/menu later) -->