Reputation: 1511
I'm looking at the MediaEval 2018 memorability challenge (here).
One of the features they describe is ORB features. I got the data from the challenge, and I'm trying to understand how the ORB data works.
If I run this code:
with open('/Memorability_data/ORB/video10-0.p', 'rb') as f: ##change the file name; just an example
data = pickle.load(f)
print(len(data))
print(data[0])
print(len(data[0]))
print('*')
for i in data[0]:
print(i)
The output is:
500
((1143.0, 372.0), 31.0, 169.99649047851562, 0.001837713411077857, 0, -1, array([228, 118, 156, 58, 232, 237, 21, 206, 219, 127, 33, 56, 134,
216, 79, 27, 129, 17, 234, 19, 39, 103, 202, 112, 20, 18,
85, 127, 216, 89, 203, 7], dtype=uint8))
7
*
(1143.0, 372.0)
31.0
169.99649047851562
0.001837713411077857
0
-1
[228 118 156 58 232 237 21 206 219 127 33 56 134 216 79 27 129 17
234 19 39 103 202 112 20 18 85 127 216 89 203 7]
So I understand each video has a file, each file is 500 rows long, and each row looks similar to above. I'm trying to understand what these rows mean.
I found this, and they describe:
static Ptr<ORB> cv::ORB::create ( int nfeatures = 500,
float scaleFactor = 1.2f,
int nlevels = 8,
int edgeThreshold = 31,
int firstLevel = 0,
int WTA_K = 2,
int scoreType = ORB::HARRIS_SCORE,
int patchSize = 31,
int fastThreshold = 20
)
I'm not understanding what the data in my file is. It clearly doesn't match the example I've found (because e.g. above says the last thing in the row should be an int (fastThreshold=20), whereas the last item in my row is a list).
Can someone either explain what the items in my list are, or provide a reference that has it? (or has the data I was sent been pre-processed in some way, can someone tell)? My ultimate aim is to convert this data to a CSV file, but I don't know what the headings should be?
I found similar SO questions (e.g.here and here), and I looked at the paper in one of the answers, and I'm still not clear.
Upvotes: 1
Views: 157
Reputation: 1
The 7 features of your data[0]
variable are listed in order as follows:
Information was taken from here.
Upvotes: 0
Reputation: 71
I cannot determine the meaning of every field, but I think I can guess it for some:
Upvotes: 1