-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprocesslog.js
762 lines (751 loc) · 24.4 KB
/
processlog.js
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
const data = `
Taking picture at coordinates (0.0, 0.0, 0.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.5437181712962963
Moving to z = 0.42
Taking picture at coordinates (0.0, 0.0, 0.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.5427756075049294
Moving to z = 0.84
Taking picture at coordinates (0.0, 0.0, 0.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.554056712962963
Moving to z = 1.26
Taking picture at coordinates (0.0, 0.0, 1.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.5614518223808296
Moving to z = 1.68
Taking picture at coordinates (0.0, 0.0, 1.65)
Image dimensions: (1280, 720, 3)
Focus score: 0.5436820021808557
Moving to z = 2.1
Taking picture at coordinates (0.0, 0.0, 2.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.5628761574074074
Moving to z = 2.52
Taking picture at coordinates (0.0, 0.0, 2.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.5525788482284036
Moving to z = 2.94
Taking picture at coordinates (0.0, 0.0, 2.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.5583752887820029
Moving to z = 3.36
Taking picture at coordinates (0.0, 0.0, 3.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.5479144964252162
Moving to z = 3.78
Taking picture at coordinates (0.0, 0.0, 3.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.5533789061160408
Moving to z = 4.2
Taking picture at coordinates (0.0, 0.0, 4.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.5463982927487211
Moving to z = 4.62
Taking picture at coordinates (0.0, 0.0, 4.6)
Image dimensions: (1280, 720, 3)
Focus score: 0.5291869211623376
Moving to z = 5.04
Taking picture at coordinates (0.0, 0.0, 5.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.5450846354166666
Moving to z = 5.46
Taking picture at coordinates (0.0, 0.0, 5.45)
Image dimensions: (1280, 720, 3)
Focus score: 0.5480656828070551
Moving to z = 5.88
Taking picture at coordinates (0.0, 0.0, 5.85)
Image dimensions: (1280, 720, 3)
Focus score: 0.5477604161308296
Moving to z = 6.3
Taking picture at coordinates (0.0, 0.0, 6.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.5225094039351852
Moving to z = 6.72
Taking picture at coordinates (0.0, 0.0, 6.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.5484490739401154
Moving to z = 7.14
Taking picture at coordinates (0.0, 0.0, 7.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.5424066840277778
Moving to z = 7.56
Taking picture at coordinates (0.0, 0.0, 7.55)
Image dimensions: (1280, 720, 3)
Focus score: 0.5417173031653875
Moving to z = 7.9799999999999995
Taking picture at coordinates (0.0, 0.0, 7.95)
Image dimensions: (1280, 720, 3)
Focus score: 0.5699949361118263
Moving to z = 8.4
Taking picture at coordinates (0.0, 0.0, 8.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.5644487847222223
Moving to z = 8.82
Taking picture at coordinates (0.0, 0.0, 8.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.5567473234952399
Moving to z = 9.24
Taking picture at coordinates (0.0, 0.0, 9.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.5541861979166667
Moving to z = 9.66
Taking picture at coordinates (0.0, 0.0, 9.65)
Image dimensions: (1280, 720, 3)
Focus score: 0.5654984085648148
Moving to z = 10.08
Taking picture at coordinates (0.0, 0.0, 10.05)
Image dimensions: (1280, 720, 3)
Focus score: 0.558771701158123
Moving to z = 10.5
Taking picture at coordinates (0.0, 0.0, 10.45)
Image dimensions: (1280, 720, 3)
Focus score: 0.54734375
Moving to z = 10.92
Taking picture at coordinates (0.0, 0.0, 10.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.5567599826388889
Moving to z = 11.34
Taking picture at coordinates (0.0, 0.0, 11.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.5947036703131986
Moving to z = 11.76
Taking picture at coordinates (0.0, 0.0, 11.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.6154933820830468
Moving to z = 12.18
Taking picture at coordinates (0.0, 0.0, 12.15)
Image dimensions: (1280, 720, 3)
Focus score: 0.6011013110584682
Moving to z = 12.6
Taking picture at coordinates (0.0, 0.0, 12.55)
Image dimensions: (1280, 720, 3)
Focus score: 0.6346930501855444
Moving to z = 13.02
Taking picture at coordinates (0.0, 0.0, 13.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.6090167424519854
Moving to z = 13.44
Taking picture at coordinates (0.0, 0.0, 13.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.5950231480141882
Moving to z = 13.86
Taking picture at coordinates (0.0, 0.0, 13.85)
Image dimensions: (1280, 720, 3)
Focus score: 0.6054709200635358
Moving to z = 14.28
Taking picture at coordinates (0.0, 0.0, 14.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.6058123553240741
Moving to z = 14.7
Taking picture at coordinates (0.0, 0.0, 14.65)
Image dimensions: (1280, 720, 3)
Focus score: 0.6145413773148148
Moving to z = 15.12
Taking picture at coordinates (0.0, 0.0, 15.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.6238483794956696
Moving to z = 15.54
Taking picture at coordinates (0.0, 0.0, 15.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.6182219328703704
Moving to z = 15.959999999999999
Taking picture at coordinates (0.0, 0.0, 15.95)
Image dimensions: (1280, 720, 3)
Focus score: 0.6261436631923528
Moving to z = 16.38
Taking picture at coordinates (0.0, 0.0, 16.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.6290335645134073
Moving to z = 16.8
Taking picture at coordinates (0.0, 0.0, 16.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.668285490794242
Moving to z = 17.22
Taking picture at coordinates (0.0, 0.0, 17.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.6492700580314347
Moving to z = 17.64
Taking picture at coordinates (0.0, 0.0, 17.6)
Image dimensions: (1280, 720, 3)
Focus score: 0.5989413002850106
Moving to z = 18.06
Taking picture at coordinates (0.0, 0.0, 18.05)
Image dimensions: (1280, 720, 3)
Focus score: 0.5861603006245181
Moving to z = 18.48
Taking picture at coordinates (0.0, 0.0, 18.45)
Image dimensions: (1280, 720, 3)
Focus score: 0.584361255787037
Moving to z = 18.9
Taking picture at coordinates (0.0, 0.0, 18.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.5942433449074074
Moving to z = 19.32
Taking picture at coordinates (0.0, 0.0, 19.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.6038382523148148
Moving to z = 19.74
Taking picture at coordinates (0.0, 0.0, 19.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.6042317708333333
Moving to z = 20.16
Taking picture at coordinates (0.0, 0.0, 20.15)
Image dimensions: (1280, 720, 3)
Focus score: 0.5974638310185185
Moving to z = 20.58
Taking picture at coordinates (0.0, 0.0, 20.55)
Image dimensions: (1280, 720, 3)
Focus score: 0.6224681355499924
Moving to z = 21.0
Taking picture at coordinates (0.0, 0.0, 21.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.6456508424604532
Moving to z = 21.419999999999998
Taking picture at coordinates (0.0, 0.0, 21.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.6622135095602865
Moving to z = 21.84
Taking picture at coordinates (0.0, 0.0, 21.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.6841506775776222
Moving to z = 22.259999999999998
Taking picture at coordinates (0.0, 0.0, 22.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.6372623620669055
Moving to z = 22.68
Taking picture at coordinates (0.0, 0.0, 22.65)
Image dimensions: (1280, 720, 3)
Focus score: 0.6574131874032136
Moving to z = 23.099999999999998
Taking picture at coordinates (0.0, 0.0, 23.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.6503682002314815
Moving to z = 23.52
Taking picture at coordinates (0.0, 0.0, 23.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.6262145543981481
Moving to z = 23.939999999999998
Taking picture at coordinates (0.0, 0.0, 23.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.6398864293981481
Moving to z = 24.36
Taking picture at coordinates (0.0, 0.0, 24.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.6308203125
Moving to z = 24.779999999999998
Taking picture at coordinates (0.0, 0.0, 24.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.6059794560185185
Moving to z = 25.2
Taking picture at coordinates (0.0, 0.0, 25.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.6351768081192781
Moving to z = 25.619999999999997
Taking picture at coordinates (0.0, 0.0, 25.6)
Image dimensions: (1280, 720, 3)
Focus score: 0.6767448435076963
Moving to z = 26.04
Taking picture at coordinates (0.0, 0.0, 26.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.6660015130500911
Moving to z = 26.459999999999997
Taking picture at coordinates (0.0, 0.0, 26.45)
Image dimensions: (1280, 720, 3)
Focus score: 0.6987052669759303
Moving to z = 26.88
Taking picture at coordinates (0.0, 0.0, 26.85)
Image dimensions: (1280, 720, 3)
Focus score: 0.7228756283783627
Moving to z = 27.3
Taking picture at coordinates (0.0, 0.0, 27.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.7062304635172186
Moving to z = 27.72
Taking picture at coordinates (0.0, 0.0, 27.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.679929832175926
Moving to z = 28.14
Taking picture at coordinates (0.0, 0.0, 28.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.681818214697896
Moving to z = 28.56
Taking picture at coordinates (0.0, 0.0, 28.55)
Image dimensions: (1280, 720, 3)
Focus score: 0.6940024594907407
Moving to z = 28.98
Taking picture at coordinates (0.0, 0.0, 28.95)
Image dimensions: (1280, 720, 3)
Focus score: 0.6891811334220151
Moving to z = 29.4
Taking picture at coordinates (0.0, 0.0, 29.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.6703913483796297
Moving to z = 29.82
Taking picture at coordinates (0.0, 0.0, 29.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.682387121111082
Moving to z = 30.24
Taking picture at coordinates (0.0, 0.0, 30.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.7065720428360828
Moving to z = 30.66
Taking picture at coordinates (0.0, 0.0, 30.65)
Image dimensions: (1280, 720, 3)
Focus score: 0.6729210069444445
Moving to z = 31.08
Taking picture at coordinates (0.0, 0.0, 31.05)
Image dimensions: (1280, 720, 3)
Focus score: 0.7078493906008034
Moving to z = 31.5
Taking picture at coordinates (0.0, 0.0, 31.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.7381670845585095
Moving to z = 31.919999999999998
Taking picture at coordinates (0.0, 0.0, 31.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.7105826796165383
Moving to z = 32.339999999999996
Taking picture at coordinates (0.0, 0.0, 32.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.7186371524763701
Moving to z = 32.76
Taking picture at coordinates (0.0, 0.0, 32.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.7220630761396414
Moving to z = 33.18
Taking picture at coordinates (0.0, 0.0, 33.15)
Image dimensions: (1280, 720, 3)
Focus score: 0.7338035125685324
Moving to z = 33.6
Taking picture at coordinates (0.0, 0.0, 33.6)
Image dimensions: (1280, 720, 3)
Focus score: 0.7270265159783537
Moving to z = 34.019999999999996
Taking picture at coordinates (0.0, 0.0, 34.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.7287184996238636
Moving to z = 34.44
Taking picture at coordinates (0.0, 0.0, 34.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.7163230609323419
Moving to z = 34.86
Taking picture at coordinates (0.0, 0.0, 34.85)
Image dimensions: (1280, 720, 3)
Focus score: 0.7466021688071474
Moving to z = 35.28
Taking picture at coordinates (0.0, 0.0, 35.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.7408289846156022
Moving to z = 35.699999999999996
Taking picture at coordinates (0.0, 0.0, 35.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.711027198278167
Moving to z = 36.12
Taking picture at coordinates (0.0, 0.0, 36.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.7640620067045687
Moving to z = 36.54
Taking picture at coordinates (0.0, 0.0, 36.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.7474714260492462
Moving to z = 36.96
Taking picture at coordinates (0.0, 0.0, 36.95)
Image dimensions: (1280, 720, 3)
Focus score: 0.7614198341898145
Moving to z = 37.379999999999995
Taking picture at coordinates (0.0, 0.0, 37.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.7803802492740868
Moving to z = 37.8
Taking picture at coordinates (0.0, 0.0, 37.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.7521350544900719
Moving to z = 38.22
Taking picture at coordinates (0.0, 0.0, 38.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.7585438367720654
Moving to z = 38.64
Taking picture at coordinates (0.0, 0.0, 38.6)
Image dimensions: (1280, 720, 3)
Focus score: 0.8081345225925467
Moving to z = 39.059999999999995
Taking picture at coordinates (0.0, 0.0, 39.05)
Image dimensions: (1280, 720, 3)
Focus score: 0.7782841384929552
Moving to z = 39.48
Taking picture at coordinates (0.0, 0.0, 39.45)
Image dimensions: (1280, 720, 3)
Focus score: 0.8328348031984588
Moving to z = 39.9
Taking picture at coordinates (0.0, 0.0, 39.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.8365719019237045
Moving to z = 40.32
Taking picture at coordinates (0.0, 0.0, 40.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.8579911494418592
Moving to z = 40.74
Taking picture at coordinates (0.0, 0.0, 40.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.8639550755974371
Moving to z = 41.16
Taking picture at coordinates (0.0, 0.0, 41.15)
Image dimensions: (1280, 720, 3)
Focus score: 0.8513990160341612
Moving to z = 41.58
Taking picture at coordinates (0.0, 0.0, 41.55)
Image dimensions: (1280, 720, 3)
Focus score: 0.9276884397706875
Moving to z = 42.0
Taking picture at coordinates (0.0, 0.0, 42.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.9706528227942142
Moving to z = 42.42
Taking picture at coordinates (0.0, 0.0, 42.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.9573093491719079
Moving to z = 42.839999999999996
Taking picture at coordinates (0.0, 0.0, 42.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.9220099097817043
Moving to z = 43.26
Taking picture at coordinates (0.0, 0.0, 43.25)
Image dimensions: (1280, 720, 3)
Focus score: 1.0330326240433585
Moving to z = 43.68
Taking picture at coordinates (0.0, 0.0, 43.65)
Image dimensions: (1280, 720, 3)
Focus score: 1.0498305621232187
Moving to z = 44.1
Taking picture at coordinates (0.0, 0.0, 44.1)
Image dimensions: (1280, 720, 3)
Focus score: 1.0471082861942191
Moving to z = 44.519999999999996
Taking picture at coordinates (0.0, 0.0, 44.5)
Image dimensions: (1280, 720, 3)
Focus score: 1.132424037975736
Moving to z = 44.94
Taking picture at coordinates (0.0, 0.0, 44.9)
Image dimensions: (1280, 720, 3)
Focus score: 1.3436002532535127
Moving to z = 45.36
Taking picture at coordinates (0.0, 0.0, 45.35)
Image dimensions: (1280, 720, 3)
Focus score: 1.4422233162705949
Moving to z = 45.78
Taking picture at coordinates (0.0, 0.0, 45.75)
Image dimensions: (1280, 720, 3)
Focus score: 1.6453092284903768
Moving to z = 46.199999999999996
Taking picture at coordinates (0.0, 0.0, 46.2)
Image dimensions: (1280, 720, 3)
Focus score: 1.732560401979168
Moving to z = 46.62
Taking picture at coordinates (0.0, 0.0, 46.6)
Image dimensions: (1280, 720, 3)
Focus score: 1.8223665299528082
Moving to z = 47.04
Taking picture at coordinates (0.0, 0.0, 47.0)
Image dimensions: (1280, 720, 3)
Focus score: 1.923940223515932
Moving to z = 47.46
Taking picture at coordinates (0.0, 0.0, 47.45)
Image dimensions: (1280, 720, 3)
Focus score: 2.296652525797268
Moving to z = 47.879999999999995
Taking picture at coordinates (0.0, 0.0, 47.85)
Image dimensions: (1280, 720, 3)
Focus score: 4.243272199643689
Moving to z = 48.3
Taking picture at coordinates (0.0, 0.0, 48.3)
Image dimensions: (1280, 720, 3)
Focus score: 9.29204389729115
Moving to z = 48.72
Taking picture at coordinates (0.0, 0.0, 48.7)
Image dimensions: (1280, 720, 3)
Focus score: 4.6704676467297634
Moving to z = 49.14
Taking picture at coordinates (0.0, 0.0, 49.1)
Image dimensions: (1280, 720, 3)
Focus score: 2.540828199196126
Moving to z = 49.559999999999995
Taking picture at coordinates (0.0, 0.0, 49.55)
Image dimensions: (1280, 720, 3)
Focus score: 2.3473017792124815
Moving to z = 49.98
Taking picture at coordinates (0.0, 0.0, 49.95)
Image dimensions: (1280, 720, 3)
Focus score: 1.8685630024504425
Moving to z = 50.4
Taking picture at coordinates (0.0, 0.0, 50.4)
Image dimensions: (1280, 720, 3)
Focus score: 1.671550925598877
Moving to z = 50.82
Taking picture at coordinates (0.0, 0.0, 50.8)
Image dimensions: (1280, 720, 3)
Focus score: 1.4804047306608925
Moving to z = 51.239999999999995
Taking picture at coordinates (0.0, 0.0, 51.2)
Image dimensions: (1280, 720, 3)
Focus score: 1.3505815921966597
Moving to z = 51.66
Taking picture at coordinates (0.0, 0.0, 51.65)
Image dimensions: (1280, 720, 3)
Focus score: 1.1145851408372376
Moving to z = 52.08
Taking picture at coordinates (0.0, 0.0, 52.05)
Image dimensions: (1280, 720, 3)
Focus score: 1.0692650450906647
Moving to z = 52.5
Taking picture at coordinates (0.0, 0.0, 52.5)
Image dimensions: (1280, 720, 3)
Focus score: 1.0142455146648273
Moving to z = 52.919999999999995
Taking picture at coordinates (0.0, 0.0, 52.9)
Image dimensions: (1280, 720, 3)
Focus score: 0.9660015157062509
Moving to z = 53.339999999999996
Taking picture at coordinates (0.0, 0.0, 53.3)
Image dimensions: (1280, 720, 3)
Focus score: 0.9361841685835395
Moving to z = 53.76
Taking picture at coordinates (0.0, 0.0, 53.75)
Image dimensions: (1280, 720, 3)
Focus score: 0.9038356667348557
Moving to z = 54.18
Taking picture at coordinates (0.0, 0.0, 54.15)
Image dimensions: (1280, 720, 3)
Focus score: 1.0123743763141346
Moving to z = 54.6
Taking picture at coordinates (0.0, 0.0, 54.6)
Image dimensions: (1280, 720, 3)
Focus score: 1.0370383328991168
Moving to z = 55.019999999999996
Taking picture at coordinates (0.0, 0.0, 55.0)
Image dimensions: (1280, 720, 3)
Focus score: 0.9554050905157017
Moving to z = 55.44
Taking picture at coordinates (0.0, 0.0, 55.4)
Image dimensions: (1280, 720, 3)
Focus score: 0.9303392624084509
Moving to z = 55.86
Taking picture at coordinates (0.0, 0.0, 55.85)
Image dimensions: (1280, 720, 3)
Focus score: 0.8885792822185034
Moving to z = 56.28
Taking picture at coordinates (0.0, 0.0, 56.25)
Image dimensions: (1280, 720, 3)
Focus score: 0.9470084632275689
Moving to z = 56.699999999999996
Taking picture at coordinates (0.0, 0.0, 56.7)
Image dimensions: (1280, 720, 3)
Focus score: 0.9444068274473129
Moving to z = 57.12
Taking picture at coordinates (0.0, 0.0, 57.1)
Image dimensions: (1280, 720, 3)
Focus score: 0.9372243900817119
Moving to z = 57.54
Taking picture at coordinates (0.0, 0.0, 57.5)
Image dimensions: (1280, 720, 3)
Focus score: 0.8591735341001435
Moving to z = 57.96
Taking picture at coordinates (0.0, 0.0, 57.95)
Image dimensions: (1280, 720, 3)
Focus score: 0.8571487981996417
Moving to z = 58.379999999999995
Taking picture at coordinates (0.0, 0.0, 58.35)
Image dimensions: (1280, 720, 3)
Focus score: 0.891384184016972
Moving to z = 58.8
Taking picture at coordinates (0.0, 0.0, 58.8)
Image dimensions: (1280, 720, 3)
Focus score: 0.8816869183528587
Moving to z = 59.22
Taking picture at coordinates (0.0, 0.0, 59.2)
Image dimensions: (1280, 720, 3)
Focus score: 0.8749761170103392
Moving to z = 59.64
Taking picture at coordinates (0.0, 0.0, 59.6)
Image dimensions: (1280, 720, 3)
Focus score: 1.0001800816665465
Moving to z = 60.059999999999995
Taking picture at coordinates (0.0, 0.0, 60.05)
Image dimensions: (1280, 720, 3)
Focus score: 1.178148666467653
Moving to z = 60.48
Taking picture at coordinates (0.0, 0.0, 60.45)
Image dimensions: (1280, 720, 3)
Focus score: 1.2706613213306264
Moving to z = 60.9
Taking picture at coordinates (0.0, 0.0, 60.9)
Image dimensions: (1280, 720, 3)
Focus score: 1.1422175147569396
Moving to z = 61.32
Taking picture at coordinates (0.0, 0.0, 61.3)
Image dimensions: (1280, 720, 3)
Focus score: 1.1726048897448886
Moving to z = 61.739999999999995
Taking picture at coordinates (0.0, 0.0, 61.7)
Image dimensions: (1280, 720, 3)
Focus score: 1.2690538154837514
Moving to z = 62.16
Taking picture at coordinates (0.0, 0.0, 62.15)
Image dimensions: (1280, 720, 3)
Focus score: 1.2694910990395838
Moving to z = 62.58
Taking picture at coordinates (0.0, 0.0, 62.55)
Image dimensions: (1280, 720, 3)
Focus score: 1.2977915219572511
Moving to z = 63.0
Taking picture at coordinates (0.0, 0.0, 63.0)
Image dimensions: (1280, 720, 3)
Focus score: 1.2212427661702132
`
const refine = `
Moving to z = 45.3
Taking picture at coordinates (0.0, 0.0, 45.3)
Image dimensions: (1280, 720, 3)
Focus score: 1.088195513943095
Moving to z = 46.3
Taking picture at coordinates (0.0, 0.0, 46.3)
Image dimensions: (1280, 720, 3)
Focus score: 2.0597739357548015
Moving to z = 47.3
Taking picture at coordinates (0.0, 0.0, 47.3)
Image dimensions: (1280, 720, 3)
Focus score: 3.595320200769662
Moving to z = 48.3
Taking picture at coordinates (0.0, 0.0, 48.3)
Image dimensions: (1280, 720, 3)
Focus score: 213.16565894659013
Moving to z = 49.3
Taking picture at coordinates (0.0, 0.0, 49.3)
Image dimensions: (1280, 720, 3)
Focus score: 2.7969484224451597
Moving to z = 46.8
Taking picture at coordinates (0.0, 0.0, 46.8)
Image dimensions: (1280, 720, 3)
Focus score: 1.5925791988387188
Moving to z = 47.3
Taking picture at coordinates (0.0, 0.0, 47.3)
Image dimensions: (1280, 720, 3)
Focus score: 62.23156045700174
Moving to z = 47.8
Taking picture at coordinates (0.0, 0.0, 47.8)
Image dimensions: (1280, 720, 3)
Focus score: 241.90595757927576
Moving to z = 48.3
Taking picture at coordinates (0.0, 0.0, 48.3)
Image dimensions: (1280, 720, 3)
Focus score: 5.679002089386089
Moving to z = 48.8
Taking picture at coordinates (0.0, 0.0, 48.8)
Image dimensions: (1280, 720, 3)
Focus score: 2.784767428676649
Moving to z = 47.05
Taking picture at coordinates (0.0, 0.0, 47.05)
Image dimensions: (1280, 720, 3)
Focus score: 2.028057001598445
Moving to z = 47.3
Taking picture at coordinates (0.0, 0.0, 47.3)
Image dimensions: (1280, 720, 3)
Focus score: 579.6696733760912
Moving to z = 47.55
Taking picture at coordinates (0.0, 0.0, 47.55)
Image dimensions: (1280, 720, 3)
Focus score: 236.43073598935445
Moving to z = 47.8
Taking picture at coordinates (0.0, 0.0, 47.8)
Image dimensions: (1280, 720, 3)
Focus score: 13.729998513090136
Moving to z = 48.05
Taking picture at coordinates (0.0, 0.0, 48.05)
Image dimensions: (1280, 720, 3)
Focus score: 5.721301267207374
Moving to z = 46.925
Taking picture at coordinates (0.0, 0.0, 46.9)
Image dimensions: (1280, 720, 3)
Focus score: 3.616756722757552
Moving to z = 47.05
Taking picture at coordinates (0.0, 0.0, 47.05)
Image dimensions: (1280, 720, 3)
Focus score: 152.6945175021821
Moving to z = 47.175
Taking picture at coordinates (0.0, 0.0, 47.15)
Image dimensions: (1280, 720, 3)
Focus score: 597.463092358481
Moving to z = 47.3
Taking picture at coordinates (0.0, 0.0, 47.3)
Image dimensions: (1280, 720, 3)
Focus score: 734.8442480343837
Moving to z = 47.425
Taking picture at coordinates (0.0, 0.0, 47.4)
Image dimensions: (1280, 720, 3)
Focus score: 227.992266726288
Moving to z = 47.1125
Taking picture at coordinates (0.0, 0.0, 47.1)
Image dimensions: (1280, 720, 3)
Focus score: 49.20187210557607
Moving to z = 47.175
Taking picture at coordinates (0.0, 0.0, 47.15)
Image dimensions: (1280, 720, 3)
Focus score: 688.4432344449747
Moving to z = 47.2375
Taking picture at coordinates (0.0, 0.0, 47.2)
Image dimensions: (1280, 720, 3)
Focus score: 727.3473236588212
Moving to z = 47.3
Taking picture at coordinates (0.0, 0.0, 47.3)
Image dimensions: (1280, 720, 3)
Focus score: 630.9973268100231
Moving to z = 47.3625
Taking picture at coordinates (0.0, 0.0, 47.35)
Image dimensions: (1280, 720, 3)
Focus score: 229.29103299474326
Moving to z = 47.0875
Taking picture at coordinates (0.0, 0.0, 47.05)
Image dimensions: (1280, 720, 3)
Focus score: 103.18631446617019
Moving to z = 47.137499999999996
Taking picture at coordinates (0.0, 0.0, 47.1)
Image dimensions: (1280, 720, 3)
Focus score: 566.222414147563
Moving to z = 47.1875
Taking picture at coordinates (0.0, 0.0, 47.15)
Image dimensions: (1280, 720, 3)
Focus score: 719.7661999798975
Moving to z = 47.2375
Taking picture at coordinates (0.0, 0.0, 47.2)
Image dimensions: (1280, 720, 3)
Focus score: 730.9497875614719
Moving to z = 47.287499999999994
Taking picture at coordinates (0.0, 0.0, 47.25)
Image dimensions: (1280, 720, 3)
Focus score: 611.5593808219875
Best focus: 734.8442480343837 at z = 47.3
`
const split = refine.split('\n').map((line) => {
return line.trim()
}).filter((line) => {
return line !== ''
});
const dataProcessed = [];
for (let i = 0; i < split.length - 2; i++) {
const line = split[i];
const nextnextLine = split[i + 2];
if (line.startsWith("Taking picture") &&
nextnextLine.startsWith("Focus score")) {
const z = parseFloat(line.split(' ')[6]);
const focus = parseFloat(nextnextLine.split(' ')[2]);
dataProcessed.push([ z, focus ]);
}
}
// Make csv
let csv = 'z,focus\n';
for (let i = 0; i < dataProcessed.length; i++) {
csv += dataProcessed[i].join(',') + '\n';
}
const fs = require('fs');
fs.writeFileSync('refine.csv', csv);