Foyer Insight
Search…
Results
Here's an example of the result of an analysis performed by Foyer Insight:
1
{
2
"classifications": [
3
{
4
"confidence": 0.9996496438980103,
5
"name": "kitchen",
6
"rank": 1
7
},
8
{
9
"confidence": 0.9999802112579346,
10
"name": "indoor",
11
"rank": 2
12
}
13
],
14
"detections": [
15
{
16
"class": "dishwasher",
17
"area": 0.055518,
18
"boundingBox": [
19
0.312353,
20
0.156456,
21
0.564683,
22
0.356472
23
],
24
"confidence": 0.8126423358917236,
25
"attributes": [{
26
"name": "tagpoint",
27
"value": [0.045786,
28
0.49609375]
29
},
30
{
31
"name":"is_stainless"
32
"value":true
33
}
34
],
35
"segmentation": {'size': [512, 512], 'counts': '`<`3`<000O10000O100O10000O100000000O10000O100O1000000O100000000O10000O10000O1000000O10000O10000O100O1000000O100000000O100O10000O100000000O100000000O100O10000O10000000000O10000O100O10000O1000000O10000O100O100O100000000O1000000O100O100O1000000O1000000O10000O100O10000O1000000O10000O100O1000000O1000000O10000O100O100O1000000O1000000O10000O10000O1000000O100000000O100O10000O100000000O10000O10000O10000O100000000O10000O10000O100O1000000O1000000O10000O10000O100000000O10000O10000O10000O1000000O1000000O10000O10000O10000O1000000O100O10000O1000000O1000000O1000000O10000O1000000O10000O10000O10000O1000000O1000000O10000000000001O0000001O000000001O00000000000000O10000O1O100O100000000O1O1N2N2O1O1O10000O100O1000000000000O100O10000O10000000000000000001O1O3`IlFn5d9O00001O00000000001O0000001O0000001O000000001O0000001O0000001O000000001O0000000000001O000000001O0000001O00000000001O00000000001O0000001O0000001O0000000000000000001O0000O10000N2M3G9N2O1O100O10000000000000000000000000000000000000000001O0000000000001O000000001O00000000001O000000000000'},
36
},
37
{
38
"class": "floor",
39
"area": 0.66851,
40
"boundingBox": [
41
0,
42
3,
43
540,
44
271
45
],
46
"confidence": 0.7137435674667358,
47
"attributes": [{
48
"name": "floor_type",
49
"value": "hardwood",
50
"confidence": 1
51
},
52
{
53
"name": "tagpoint",
54
"value": [0.3966845,
55
0.7948374]
56
}
57
],
58
"segmentation": {'size': [512, 512], 'counts': 'YWY62[`1OdoN0ZXd1'}
59
}
60
...
61
]
62
}
Copied!
Let's break down the sections we're seeing.

Classifier

Each classifier has three fields: confidence, name, and rank.
    Confidence is how certain Foyer Insight is of the classification. This is a number between 0 and 1, which alternatively can be thought of as a percentage. In this case, Insight is almost certain we've provided an image of an indoor kitchen.
    Name is the full name of the image's classification.
    Rank is a number greater than zero. Classifications are ranked in order of highest to lowest confidence, with an exception for indoor and outdoor classifications. Indoor and outdoor classifications will always be ranked last.

Detections

Each detection has six fields: area, attributes, boundingBox, class,confidence, and segmentation. A detection is an individual object or group of similar objects that Insight found on the image.
    Class is the full name of the detection's class.
    Area is the percentage of pixels that a segmentation covers out of the entire image. For example, a floor segmentation with an area of 0.53 means that Insight has detected the floor covers 53% of the pixels in the image.
    Attributes are extra details about the detection. It will contain pertinent information about the segmentation. For example, all floor detections will contain a floor_type attribute.
    Attributes always contains the tagpoint attribute, which is a percent-based [x, y] array that denotes a point within the segmentation.
    BoundingBox is the smallest box that contains all pixels of a segmentation. It is made up of four numbers, which are really two (x, y) coordinate pairs representing the upper-left and bottom-right corners, respectively.
      The coordinates assume the upper-left hand corner of the image as the origin point.
      As with all of Insight's size-based outputs, the points are percentage-based. Multiply the x positions by your image's final width and the y positions by your image's final height to get the coordinates of a segmentation's bounding box.
      For example, the values [0.3, 0.156, 0.564, 0.356] represent a point at (0.3*w, 0.156*h) and (0.564*w, 0.356*h).
    Confidence is how certain Insight is of the class for a detection. As with a classification's confidence, it is a number between 0 and 1. In our example, Insight is about 81% certain that its detection of a table is correct.
    Segmentation is the RLE-encoded binary mask of the detected object. It can be decoded using the pycocotools mask decode function, or any other RLE decoder.
Last modified 24d ago
Copy link