File size: 2,537 Bytes
4c30c16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6b829c4
 
 
b193172
 
 
 
 
4c30c16
 
 
0db6bc8
 
d673310
 
4c30c16
d673310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d59dcee
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
dataset_info:
  features:
  - name: image_id
    dtype: string
  - name: image
    dtype: image
  - name: width
    dtype: int64
  - name: height
    dtype: int64
  - name: meta
    struct:
    - name: barcode
      dtype: string
    - name: off_image_id
      dtype: string
    - name: image_url
      dtype: string
  - name: objects
    struct:
    - name: bbox
      sequence:
        sequence: float32
    - name: category_id
      sequence: int64
    - name: category_name
      sequence: string
  splits:
  - name: train
    num_bytes: 576037866.625
    num_examples: 1083
  - name: val
    num_bytes: 64207578.0
    num_examples: 123
  download_size: 1304859691
  dataset_size: 640245444.625
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: val
    path: data/val-*
---


# Open Food Facts Nutrition table detection dataset

This dataset was used to train the nutrition table object detection model running in production at Open Food Facts.

Images were collected from the Open Food Facts database and labeled manually.
Just like the [original images](https://world.openfoodfacts.org/data), the images in this dataset are licensed under the Creative Commons Attribution Share Alike license (CC-BY-SA 3.0).


## Fields

- `image_id`: Unique identifier for the image, generated from the barcode and the image number.
- `image`: Image data.
- `width`: Image original width in pixels.
- `height`: Image original height in pixels.
- `meta`: Additional metadata.
    - `barcode`: Product barcode.
    - `off_image_id`: Open Food Facts image number.
    - `image_url`: URL to the image on the Open Food Facts website.
- `objects`: Object detection annotations.
    - `bbox`: List of bounding boxes in the format (y_min, x_min, y_max, x_max).
              Coordinates are normalized between 0 and 1, using the top-left corner as the origin.
    - `category_id`: List of category IDs.
    - `category_name`: List of category names.


## Versions

- `1.0`: Original data used to train the [tf-nutrition-table-1.0 model](https://github.com/openfoodfacts/robotoff-models/releases/tag/tf-nutrition-table-1.0).
- `1.1`: Fixes erroneous bounding boxes due to rotated images.
         About 10% of the bounding boxes were completely wrong due to the annotation software we were using.
         All samples were manually reviewed again, and the erroneous bounding boxes were corrected.
         Also, ~35 duplicated images were removed from the dataset (images that belong to the same product).