forked from Horea94/Fruit-Images-Dataset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fruits_definition.h
1895 lines (1640 loc) · 61.1 KB
/
fruits_definition.h
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
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#pragma once
#include <opencv2/opencv.hpp>
#include <opencv2/imgcodecs.hpp>
#include <iostream>
using namespace std;
using namespace cv;
// Rect(int x, int y, int width, int height) - OpenCV definition
// (x, y) is the top corner of the subimage boxing the fruit
// x + width <= image width
// y + height <= image heigth
#define SAVE_IMAGES_TO_DISK
//#define DISPLAY_ONLY
//potato_red_washed_rotated1_2019 06 18 10 45 15.avi
string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\potato_red_washed_rotated1_2019 06 18 10 45 15";
Rect r_box(650, 100, 750, 750);
#define motor_shaft_height_original 150
#define color_distance 3
#define shaft_left 330
#define shaft_right 380
#define frame_start_index 0
//potato_red_washed_rotated_2019 06 18 10 44 35.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\potato_red_washed_rotated_2019 06 18 10 44 35";
//Rect r_box(680, 100, 670, 670);
//#define motor_shaft_height_original 7
//#define color_distance 3
//#define shaft_left 300
//#define shaft_right 340
//#define frame_start_index 0
//potato_red_washed_2019 06 18 10 44 05.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\potato_red_washed_2019 06 18 10 44 05";
//Rect r_box(680, 100, 670, 670);
//#define motor_shaft_height_original 7
//#define color_distance 3
//#define shaft_left 300
//#define shaft_right 340
//#define frame_start_index 0
//beetroot_red_2019 06 18 10 40 29.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\beetroot_red_2019 06 18 10 40 29";
//Rect r_box(680, 40, 900, 900);
//#define motor_shaft_height_original 30
//#define color_distance 2
//#define shaft_left 280
//#define shaft_right 360
//#define frame_start_index 0
//carrot_2019 06 18 10 47 48.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\carrot_2019 06 18 10 47 48";
//Rect r_box(780, 70, 700, 700);
//#define motor_shaft_height_original 25
//#define color_distance 2
//#define shaft_left 190
//#define shaft_right 250
//#define frame_start_index 0
//potato_red_2019 06 18 10 33 31.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\potato_red_2019 06 18 10 33 31";
//Rect r_box(780, 170, 750, 750);
//#define motor_shaft_height_original 10
//#define color_distance 1
//#define shaft_left 220
//#define shaft_right 280
//#define frame_start_index 0
//onion_white_rotated1_2019 06 18 10 26 24.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_white_rotated1_2019 06 18 10 26 24";
//Rect r_box(730, 30, 780, 780);
//#define motor_shaft_height_original 15
//#define color_distance 2
//#define shaft_left 330
//#define shaft_right 430
//#define frame_start_index 0
//onion_white_rotated_2019 06 18 10 25 23.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_white_rotated_2019 06 18 10 25 23";
//Rect r_box(720, 30, 810, 810);
//#define motor_shaft_height_original 60
//#define color_distance 3
//#define shaft_left 330
//#define shaft_right 430
//#define frame_start_index 0
//onion_white_2019 06 18 10 24 35.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_white_2019 06 18 10 24 35";
//Rect r_box(720, 40, 790, 790);
//#define motor_shaft_height_original 100
//#define color_distance 3
//#define shaft_left 350
//#define shaft_right 410
//#define frame_start_index 0
//onion_red_peeled_rotated1_2019 06 18 10 23 48.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_peeled_rotated1_2019 06 18 10 23 48";
//Rect r_box(750, 90, 750, 750);
//#define motor_shaft_height_original 165
//#define color_distance 3
//#define shaft_left 320
//#define shaft_right 360
//#define frame_start_index 0
//onion_red_peeled_rotated_2019 06 18 10 23 20.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_peeled_rotated_2019 06 18 10 23 20";
//Rect r_box(750, 90, 750, 750);
//#define motor_shaft_height_original 155
//#define color_distance 2
//#define shaft_left 320
//#define shaft_right 360
//#define frame_start_index 0
//onion_red_peeled_2019 06 18 10 22 43.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_peeled_2019 06 18 10 22 43";
//Rect r_box(780, 100, 650, 650);
//#define motor_shaft_height_original 35
//#define color_distance 3
//#define shaft_left 290
//#define shaft_right 340
//#define frame_start_index 0
//onion_red_rotated1_2019 06 18 10 20 01.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_rotated1_2019 06 18 10 20 01";
//Rect r_box(750, 50, 710, 710);
//#define motor_shaft_height_original 65
//#define color_distance 4
//#define shaft_left 315
//#define shaft_right 365
//#define frame_start_index 0
//onion_red_rotated_2019 06 18 10 19 13.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_rotated_2019 06 18 10 19 13";
//Rect r_box(750, 50, 710, 710);
//#define motor_shaft_height_original 80
//#define color_distance 4
//#define shaft_left 315
//#define shaft_right 365
//#define frame_start_index 0
//onion_red_2019 06 18 10 18 10.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\onion_red_2019 06 18 10 18 10";
//Rect r_box(790, 100, 630, 630);
//#define motor_shaft_height_original 10
//#define color_distance 3
//#define shaft_left 270
//#define shaft_right 320
//#define frame_start_index 0
////tomato_yellow_rotated2_2018 12 20 15 21 48.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\tomato_yellow_rotated2_2018 12 20 15 21 48";
//Rect r_box(580, 320, 540, 540);
//#define motor_shaft_height_original 20
//#define color_distance 4
//#define shaft_left 260
//#define shaft_right 300
//#define frame_start_index 0
//tomato_yellow_rotated_2018 12 20 15 20 37.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\tomato_yellow_rotated_2018 12 20 15 20 37";
//Rect r_box(580, 320, 540, 540);
//#define motor_shaft_height_original 58
//#define color_distance 4
//#define shaft_left 260
//#define shaft_right 300
//#define frame_start_index 0
//tomato_yellow_2018 12 20 15 20 05.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\tomato_yellow_2018 12 20 15 20 05";
//Rect r_box(580, 520, 540, 540);
//#define motor_shaft_height_original 78
//#define color_distance 2
//#define shaft_left 250
//#define shaft_right 320
//#define frame_start_index 0
//mango_red_2019 04 21 18 13 45.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\mango_red_2019 04 21 18 13 45";
//Rect r_box(230, 242, 760, 760);
//#define motor_shaft_height_original 93
//#define color_distance 3
//#define shaft_left 370
//#define shaft_right 430
//#define frame_start_index 0
//apple_pink_lady_rotated_2019 04 21 18 11 31.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple_pink_lady_rotated_2019 04 21 18 11 31";
//Rect r_box(693, 121, 520, 520);
//#define motor_shaft_height_original 36
//#define color_distance 3
//#define shaft_left 250
//#define shaft_right 300
//#define frame_start_index 0
//apple_pink_lady_2019 04 21 18 10 52
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple_pink_lady_2019 04 21 18 10 52";
//Rect r_box(725, 221, 480, 480);
//#define motor_shaft_height_original 4
//#define color_distance 3
//#define shaft_left 230
//#define shaft_right 260
//#define frame_start_index 0
//kohlrabi_2019 04 21 17 55 00.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\kohlrabi_rotated_2019 04 21 17 55 43";
//Rect r_box(770, 241, 630, 630);
//#define motor_shaft_height_original 95
//#define color_distance 4
//#define shaft_left 290
//#define shaft_right 370
//#define frame_start_index 0
//kohlrabi_2019 04 21 17 55 00.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\kohlrabi_2019 04 21 17 55 00";
//Rect r_box(790, 241, 600, 600);
//#define motor_shaft_height_original 10
//#define color_distance 3
//#define shaft_left 280
//#define shaft_right 340
//#define frame_start_index 0
////apple_crimson_snow_rotated_2019 04 21 18 09 34.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple_crimson_snow_rotated_2019 04 21 18 09 34";
//Rect r_box(570, 41, 790, 790);
//#define motor_shaft_height_original 190
//#define color_distance 4
//#define shaft_left 350
//#define shaft_right 410
//#define frame_start_index 0
//apple_crimson_snow_2019 04 21 18 08 52.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple_crimson_snow_2019 04 21 18 08 52";
//Rect r_box(600, 70, 690, 690);
//#define motor_shaft_height_original 39
//#define color_distance 4
//#define shaft_left 320
//#define shaft_right 390
//#define frame_start_index 0
//pear_red_1_rotated_2_2019 04 21 16 18 36.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pear_red_1_rotated_2_2019 04 21 16 18 36";
//Rect r_box(730, 170, 670, 670);
//#define motor_shaft_height_original 55
//#define color_distance 4
//#define shaft_left 330
//#define shaft_right 360
//#define frame_start_index 0
////pear_red_1_rotated_2019 04 21 16 17 48.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pear_red_1_rotated_2019 04 21 16 17 48";
//Rect r_box(750, 270, 635, 635);
//#define motor_shaft_height_original 100
//#define color_distance 4
//#define shaft_left 300
//#define shaft_right 350
//#define frame_start_index 0
//pear_red_1_2019 04 21 16 16 40.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pear_red_1_2019 04 21 16 16 40";
//Rect r_box(770, 270, 635, 635);
//#define motor_shaft_height_original 50
//#define color_distance 4
//#define shaft_left 290
//#define shaft_right 330
//#define frame_start_index 0
//pepper_yellow_rotated_2_2019 04 21 18 19 12.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_yellow_rotated_2_2019 04 21 18 19 12";
//Rect r_box(650, 150, 665, 665);
//#define motor_shaft_height_original 90
//#define color_distance 3
//#define shaft_left 325
//#define shaft_right 375
//#define frame_start_index 0
//pepper_yellow_rotated_2019 04 21 18 18 31.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_yellow_rotated_2019 04 21 18 18 31";
//Rect r_box(550, 50, 860, 860);
//#define motor_shaft_height_original 160
//#define color_distance 3
//#define shaft_left 425
//#define shaft_right 480
//#define frame_start_index 0
//pepper_yellow_2019 04 21 18 17 39.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_yellow_2019 04 21 18 17 39";
//Rect r_box(670, 155, 630, 630);
//#define motor_shaft_height_original 50
//#define color_distance 5
//#define shaft_left 305
//#define shaft_right 360
//#define frame_start_index 0
//pepper_red_rotated_2019 04 21 18 15 47.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_red_rotated_2019 04 21 18 15 47";
//Rect r_box(628, 100, 700, 700);
//#define motor_shaft_height_original 82
//#define color_distance 3
//#define shaft_left 340
//#define shaft_right 398
//#define frame_start_index 0
//pepper_red_rotated_2_2019 04 21 18 16 45.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_red_rotated_2_2019 04 21 18 16 45";
//Rect r_box(600, 100, 780, 780);
//#define motor_shaft_height_original 140
//#define color_distance 4
//#define shaft_left 370
//#define shaft_right 430
//#define frame_start_index 0
//pepper_red_2019 04 21 18 15 05.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_red_2019 04 21 18 15 05";
//Rect r_box(625, 55, 760, 760);
//#define motor_shaft_height_original 2
//#define color_distance 5
//#define shaft_left 370
//#define shaft_right 420
//#define frame_start_index 0
//pepper_green_rotated_2019 04 21 18 20 50.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_green_rotated_2019 04 21 18 20 50";
//Rect r_box(650, 130, 670, 670);
//#define motor_shaft_height_original 35
//#define color_distance 2
//#define shaft_left 330
//#define shaft_right 385
//#define frame_start_index 0
//pepper_green_2019 04 21 18 19 58.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pepper_green_2019 04 21 18 19 58";
//Rect r_box(690, 130, 635, 635);
//#define motor_shaft_height_original 3
//#define color_distance 5
//#define shaft_left 290
//#define shaft_right 340
//#define frame_start_index 0
//////banana_lady_finger_2018 06 16 11 42 10.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\banana_lady_finger_2018 06 16 11 42 10";
//Rect r_box(800, 200, 530, 530);
//#define motor_shaft_height_original 15
//#define color_distance 4
//#define shaft_left 208
//#define shaft_right 224
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum2_rotated_2018 01 26 14 38 45";
//Rect r_box(545, 70, 495, 495);
//#define color_distance 5
//#define shaft_left 205
//#define shaft_right 278
//#define motor_shaft_height_original 42
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum2_2018 01 26 14 29 31";
//Rect r_box(650, 250, 470, 470);
//#define color_distance 5
//#define shaft_left 205
//#define shaft_right 278
//#define motor_shaft_height_original 42
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum3_rotated2_2018 08 19 17 54 58";
//Rect r_box(890, 250, 300, 300);
//#define color_distance 3
//#define shaft_left 140
//#define shaft_right 175
//#define motor_shaft_height_original 90
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum3_rotated1_2018 08 19 17 54 10";
//Rect r_box(910, 250, 265, 265);
//#define color_distance 4
//#define shaft_left 120
//#define shaft_right 150
//#define motor_shaft_height_original 58
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum3_rotated_2018 07 07 17 42 18";
//Rect r_box(760, 450, 230, 230);
//#define color_distance 5
//#define shaft_left 98
//#define shaft_right 150
//#define motor_shaft_height_original 55
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\plum3_2018 08 19 17 53 13";
//Rect r_box(910, 200, 255, 255);
//#define color_distance 3
//#define shaft_left 115
//#define shaft_right 155
//#define motor_shaft_height_original 5
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pear_kaiser_rotated_2018 12 20 16 24 35";
//Rect r_box(490, 50, 1000, 1000);
//#define color_distance 3
//#define shaft_left 480
//#define shaft_right 520
//#define motor_shaft_height_original 165
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\pear_kaiser_2018 12 20 16 24 01";
//Rect r_box(680, 195, 750, 750);
//#define color_distance 3
//#define shaft_left 300
//#define shaft_right 340
//#define motor_shaft_height_original 14
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\hazelnut_rotated_2018 06 16 11 59 52";
//Rect r_box(958, 640, 115, 115);
//#define color_distance 5
//#define shaft_left 30
//#define shaft_right 82
//#define motor_shaft_height_original 14
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\huzelnut_2018 06 16 11 58 39";
//Rect r_box(970, 640, 105, 105);
//#define motor_shaft_height_original 4
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 30
//#define shaft_right 70
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\chestnut_rotated2_2018 12 20 15 52 19";
//Rect r_box(990, 80, 330, 330);
//#define motor_shaft_height_original 40
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 160
//#define shaft_right 195
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\chestnut_rotated1_2018 12 20 15 51 06";
//Rect r_box(1010, 70, 330, 330);
//#define motor_shaft_height_original 43
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 135
//#define shaft_right 170
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\chestnut_2018 12 20 15 47 58";
//Rect r_box(1010, 348, 330, 330);
//#define motor_shaft_height_original 133
//#define motor_shaft_height_scaled 1
//#define color_distance 3
//#define shaft_left 130
//#define shaft_right 210
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\mangostan_rotated_2018 12 20 15 55 44";
//Rect r_box(650, 148, 780, 780);
//#define motor_shaft_height_original 225
//#define motor_shaft_height_scaled 1
//#define color_distance 3
//#define shaft_left 375
//#define shaft_right 420
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\mangostan_2018 12 20 15 54 20";
//Rect r_box(710, 148, 580, 580);
//#define motor_shaft_height_original 10
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 270
//#define shaft_right 310
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\banana_lady_finger_rotated2_2018 12 21 11 07 38";
//Rect r_box(610, 10, 700, 700);
//#define motor_shaft_height_original 190
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 350
//#define shaft_right 382
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\banana_lady_finger_rotated1_2018 12 21 11 07 03";
//Rect r_box(540, 10, 835, 835);
//#define motor_shaft_height_original 275
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 420
//#define shaft_right 480
//#define frame_start_index 0
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\banana_lady_finger_2018 12 21 11 05 42";
//Rect r_box(540, 10, 895, 895);
//#define motor_shaft_height_original 65
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 432
//#define shaft_right 488
//#define frame_start_index 0
//apple4_rotated2_2018 08 19 17 52 19.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple4_rotated2_2018 08 19 17 52 19";
//Rect r_box(890, 180, 295, 295);
//#define motor_shaft_height_original 15
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 138
//#define shaft_right 168
//#define frame_start_index 0
//apple4_rotated1_2018 08 19 17 50 26.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple4_rotated1_2018 08 19 17 50 26";
//Rect r_box(905, 200, 290, 290);
//#define motor_shaft_height_original 23
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 140
//#define shaft_right 165
//#define frame_start_index 0
//apple4_2018 08 19 17 51 25.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\apple4_2018 08 19 17 51 25";
//Rect r_box(878, 135, 325, 325);
//#define motor_shaft_height_original 12
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 155
//#define shaft_right 180
//#define frame_start_index 0
//grape_white4_rotated_2018 08 19 17 28 34.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_white4_rotated_2018 08 19 17 28 34";
//Rect r_box(978, 535, 125, 125);
//#define motor_shaft_height_original 12
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 39
//#define shaft_right 89
//#define frame_start_index 0
//grape_white4_2018 08 19 17 27 43.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_white4_2018 08 19 17 27 43";
//Rect r_box(975, 530, 130, 130);
//#define motor_shaft_height_original 14
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 41
//#define shaft_right 91
//#define frame_start_index 0
//grape_white3_rotated_2018 08 19 17 46 06.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_white3_rotated_2018 08 19 17 46 06";
//Rect r_box(1020, 570, 90, 90);
//#define motor_shaft_height_original 3
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 23
//#define shaft_right 76
//#define frame_start_index 0
// grape_white3_2018 08 19 17 46 51.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_white3_2018 08 19 17 46 51";
//Rect r_box(1018, 570, 100, 100);
//#define motor_shaft_height_original 12
//#define motor_shaft_height_scaled 1
//#define color_distance 6
//#define shaft_left 25
//#define shaft_right 76
//#define frame_start_index 0
//peach2_rotated2_2018 08 19 17 14 41.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\peach2_rotated2_2018 08 19 17 14 41";
//Rect r_box(825, 170, 330, 330);
//#define motor_shaft_height_original 23
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 160
//#define shaft_right 190
//#define frame_start_index 0
//peach2_rotated1_2018 08 19 17 13 56.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\peach2_rotated1_2018 08 19 17 13 56";
//Rect r_box(815, 150, 350, 350);
//#define motor_shaft_height_original 52
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 168
//#define shaft_right 195
//#define frame_start_index 0
//peach2_2018 08 19 17 13 23.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\peach2_2018 08 19 17 13 23";
//Rect r_box(830, 138, 310, 310);
//#define motor_shaft_height_original 2
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 155
//#define shaft_right 180
//#define frame_start_index 0
////cherry2_rotated2_2018 05 24 11 37 40.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry2_rotated2_2018 05 24 11 37 40";
//Rect r_box(650, 140, 300, 300);
//#define motor_shaft_height_original 4
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 105
//#define shaft_right 175
//#define frame_start_index 0
//cherry2_rotated_2018 05 24 11 36 15.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry2_rotated_2018 05 24 11 36 15";
//Rect r_box(640, 190, 320, 320);
//#define motor_shaft_height_original 70
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 110
//#define shaft_right 195
//#define frame_start_index 0
//// grape_blue2_rotated_2018 08 19 17 27 10.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_blue2_rotated_2018 08 19 17 27 10";
//Rect r_box(980, 530, 120, 120);
//#define motor_shaft_height_original 4
//#define motor_shaft_height_scaled 1
//#define color_distance 8
//#define shaft_left 35
//#define shaft_right 84
//#define frame_start_index 328
// grape_blue2_2018 08 19 17 26 37.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_blue2_2018 08 19 17 26 37";
//Rect r_box(980, 530, 120, 120);
//#define motor_shaft_height_original 5
//#define motor_shaft_height_scaled 1
//#define color_distance 8
//#define shaft_left 35
//#define shaft_right 84
//#define frame_start_index 328
//// grape_blue1_rotated_2018 08 19 17 29 52
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_blue1_rotated_2018 08 19 17 29 52";
//Rect r_box(985, 550, 110, 110);
//#define motor_shaft_height_original 14
//#define motor_shaft_height_scaled 1
//#define color_distance 4
//#define shaft_left 30
//#define shaft_right 83
// grape_blue1_2018 08 19 17 29 13.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\grape_blue1_2018 08 19 17 29 13";
//Rect r_box(990, 550, 100, 100);
//#define motor_shaft_height_original 5
//#define motor_shaft_height_scaled 1
//#define color_distance 8
//#define shaft_left 30
//#define shaft_right 75
//// redcurrant_rotated_2018 06 08 12 57 50.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\redcurrant_rotated_2018 06 08 12 57 50";
//Rect r_box(785, 390, 115, 115);
//#define motor_shaft_height_original 9
//#define motor_shaft_height_scaled 1
//#define color_distance 10
//#define shaft_left 10
//#define shaft_right 110
// redcurrant_2018 06 08 12 56 59.avi
/*
string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\redcurrant_2018 06 08 12 56 59";
Rect r_box(785, 390, 115, 115);
#define motor_shaft_height_original 9
#define motor_shaft_height_scaled 1
#define color_distance 10
#define shaft_left 10
#define shaft_right 110
*/
//cucumber_2018 08 19 18 01 46.avi // not extracted correctly
/*
string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\to be processed\\cucumber_2018 08 19 18 01 46";
Rect r_box(835, 100, 420, 680);
#define motor_shaft_height_original 6
#define motor_shaft_height_scaled 1
#define color_distance 1
#define shaft_left 195
#define shaft_right 255
*/
// nut_rotated2_2018 06 16 11 55 09.avi
/*
string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\nut_rotated2_2018 06 16 11 55 09";
Rect r_box(935, 600, 165, 165);
#define motor_shaft_height_original 19
#define motor_shaft_height_scaled 1
#define color_distance 10
#define shaft_left 65
#define shaft_right 105
*/
//nut_rotated_2018 06 16 11 54 24.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\nut_rotated_2018 06 16 11 54 24";
//Rect r_box(945, 600, 150, 150);
//#define motor_shaft_height_original 5
//#define motor_shaft_height_scaled 1
//#define color_distance 10
//#define shaft_left 55
//#define shaft_right 91
//nut_2018 06 16 11 53 06.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\nut_2018 06 16 11 53 06";
//Rect r_box(945, 600, 150, 150);
//#define motor_shaft_height_original 4
//#define motor_shaft_height_scaled 1
//#define color_distance 10
//#define shaft_left 55
//#define shaft_right 90
//cherry_wax_maroon_rotated_2018 06 17 14 01 06
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_wax_maroon_rotated_2018 06 17 14 01 06";
//Rect r_box(1123, 638, 108, 108);
//#define motor_shaft_height 11
//#define color_distance 5
//#define shaft_left 35
//#define shaft_right 72
////cherry_was_maroon_2018 06 17 14 00 33.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_was_maroon_2018 06 17 14 00 33";
//Rect r_box(1125, 638, 100, 100);
//#define motor_shaft_height 4
//#define color_distance 5
//#define shaft_left 35
//#define shaft_right 72
////cherry_wax_red_rotated_2018 06 17 14 05 47.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_wax_red_rotated_2018 06 17 14 05 47";
//Rect r_box(1118, 630, 115, 115);
//#define motor_shaft_height 10
//#define color_distance 5
//#define shaft_left 38
//#define shaft_right 78
////cherry_wax_red_2018 06 17 14 03 38.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_wax_red_2018 06 17 14 03 38";
//Rect r_box(1120, 630, 110, 110);
//#define motor_shaft_height 5
//#define color_distance 5
//#define shaft_left 38
//#define shaft_right 75
////cherry_wax_yellow_rotated_2018 06 17 13 59 12.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_wax_yellow_rotated_2018 06 17 13 59 12";
//Rect r_box(1125, 640, 105, 105);
//#define motor_shaft_height 10
//#define color_distance 8
////cherry_wax_yellow_2018 06 17 13 58 42.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_wax_yellow_2018 06 17 13 58 42";
//Rect r_box(1125, 640, 100, 100);
//#define motor_shaft_height 5
//#define color_distance 13
////rambutan_rotated_2018 06 05 09 56 17.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\rambutan_rotated_2018 06 05 09 56 17";
//Rect r_box(700, 300, 780, 780);
//#define motor_shaft_height 18
//#define color_distance 20
////rambutan_2018 06 05 09 55 23.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\rambutan_2018 06 05 09 55 23";
//Rect r_box(700, 400, 680, 680);
//#define motor_shaft_height 12
//#define color_distance 15
////physalis_with_husk_rotated_2018 06 05 09 50 34.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\physalis_with_husk_rotated_2018 06 05 09 50 34";
//Rect r_box(500, 10, 800, 800);
//#define motor_shaft_height 27
//#define color_distance 10
////physalis_with_husk_2018 06 05 09 48 48.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\physalis_with_husk_2018 06 05 09 48 48";
//Rect r_box(650, 10, 600, 600);
//#define motor_shaft_height 2
//#define color_distance 10
////physalis_rotated_2018 06 05 09 47 14.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\physalis_rotated_2018 06 05 09 47 14";
//Rect r_box(790, 300, 260, 260);
//#define motor_shaft_height 2
//#define color_distance 8
////physalis_2018 06 05 09 45 49.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\physalis_2018 06 05 09 45 49";
//Rect r_box(790, 300, 260, 260);
//#define motor_shaft_height 3
//#define color_distance 8
////mulberry_rotated_2018 06 08 13 27 59.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\mulberry_rotated_2018 06 08 13 27 59";
//Rect r_box(705, 280, 265, 265);
//#define motor_shaft_height 15
//#define color_distance 0
////mulberry_2018 06 08 13 27 30.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\mulberry_2018 06 08 13 27 30";
//Rect r_box(730, 250, 250, 250);
//#define motor_shaft_height 1
//#define color_distance 10
////strawberry-wedge_rotated2_2018 05 24 13 49 41.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\strawberry-wedge_rotated2_2018 05 24 13 49 41";
//Rect r_box(730, 190, 620, 620);
//#define motor_shaft_height 12
//#define color_distance 20
////strawberry-wedge_rotated_2018 05 24 13 49 13.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\strawberry-wedge_rotated_2018 05 24 13 49 13";
//Rect r_box(750, 190, 580, 580);
//#define motor_shaft_height 2
//#define color_distance 17
//////strawberry-wedge_2018 05 24 13 48 40.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\strawberry-wedge_2018 05 24 13 48 40";
//Rect r_box(710, 210, 670, 670);
//#define motor_shaft_height 12
//#define color_distance 17
////pineapple_mini_2018 06 05 10 24 26.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pineapple_mini_2018 06 05 10 24 26";
//Rect r_box(550, 200, 710, 710);
//#define motor_shaft_height 3
//#define color_distance 20
////pineapple_mini_rotated_2018 06 05 10 26 45.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pineapple_mini_rotated_2018 06 05 10 26 45";
//Rect r_box(150, 120, 960, 960);
//#define motor_shaft_height 30
//#define color_distance 12
////pineapple_mini_2018 06 05 09 59 18.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pineapple_mini_2018 06 05 09 59 18";
//Rect r_box(500, 120, 960, 960);
//#define motor_shaft_height 4
//#define color_distance 12
////melon_piel_de_sapo_rotated2_2018 05 31 09 28 23.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\melon_piel_de_sapo_rotated2_2018 05 31 09 28 23";
//Rect r_box(600, 0, 1020, 1020);
//#define motor_shaft_height 16
//#define color_distance 22
////melon_piel_de_sapo_2018 05 31 09 35 00.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\melon_piel_de_sapo_2018 05 31 09 35 00";
//Rect r_box(680, 250, 750, 750);
//#define motor_shaft_height 7
//#define color_distance 14
////melon_piel_de_sapo_rotated_2018 05 31 09 17 53.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\melon_piel_de_sapo_rotated_2018 05 31 09 17 53";
//Rect r_box(580, 10, 1050, 1050);
//#define motor_shaft_height 32
//#define color_distance 14
////cantaloupe2_rotated_2018 05 26 10 32 38.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cantaloupe2_rotated_2018 05 26 10 32 38";
//Rect r_box(970, 85, 855, 855);
//#define motor_shaft_height 21
//#define color_distance 11
////cantaloupe2_2018 05 26 10 17 32.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cantaloupe2_2018 05 26 10 17 32";
//Rect r_box(1100, 280, 770, 770);
//#define motor_shaft_height 2
//#define color_distance 11
////cantaloupe_rotated_2018 05 26 10 04 18.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cantaloupe_rotated_2018 05 26 10 04 18";
//Rect r_box(1150, 110, 700, 700);
//#define motor_shaft_height 7
//#define color_distance 15
////cantaloupe_2018 05 26 09 56 21.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cantaloupe_2018 05 26 09 56 21";
//Rect r_box(1130, 110, 730, 730);
//#define motor_shaft_height 10
//#define color_distance 15
////cherry_rainier_rotated2_2018 05 24 12 27 10.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_rainier_rotated2_2018 05 24 12 27 10";
//Rect r_box(1010, 410, 340, 340);
//#define motor_shaft_height 4
//#define color_distance 7
////cherry_rainier_rotated_2018 05 24 12 26 38.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_rainier_rotated_2018 05 24 12 26 38";
//Rect r_box(995, 400, 360, 360);
//#define motor_shaft_height 5
//#define color_distance 8
////cherry_rainier_2018 05 24 12 29 07.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry_rainier_2018 05 24 12 29 07";
//Rect r_box(990, 400, 380, 380);
//#define motor_shaft_height 10
//#define color_distance 8
////cherry2_2018 05 24 11 37 09.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cherry2_2018 05 24 11 37 09";
//Rect r_box(635, 150, 320, 320);
//#define motor_shaft_height 9
//#define color_distance 7
//cherry2_rotated_2018 05 24 11 36 15.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\cherry2_rotated_2018 05 24 11 36 15";
//Rect r_box(640, 190, 320, 320);
//#define motor_shaft_height 21
//#define color_distance 9
////cantaloupe_2018 05 24 11 48 18
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\cantaloupe_2018 05 24 11 48 18";
//Rect r_box(890, 350, 730, 730);
//#define motor_shaft_height 15
//#define color_distance 9
////pomegranate_rotated_2018 05 22 18 07 35.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pomegranate_rotated_2018 05 22 18 07 35";
//Rect r_box(920, 190, 560, 560);
//#define motor_shaft_height 23
//#define color_distance 12
////lemon_rotated_2018 05 22 17 33 25.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\lemon_rotated_2018 05 22 17 33 25";
//Rect r_box(960, 95, 540, 540);
//#define motor_shaft_height 28
//#define color_distance 16
//pear_williams_rotated_2018 02 07 14 33 35.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pear_williams_rotated_2018 02 07 14 33 35";
//Rect r_box(730, 190, 780, 780);
//#define motor_shaft_height 22
//#define color_distance 12
////pear_williams_2018 02 07 14 31 03
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pear_williams_2018 02 07 14 31 03";
//Rect r_box(560, 190, 750, 750);
//#define motor_shaft_height 1
//#define color_distance 9
//pear_abate_rotated_2018 02 07 14 35 57
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pear_abate_rotated_2018 02 07 14 35 57";
//Rect r_box(760, 30, 1050, 1050);
//#define motor_shaft_height 19
//#define color_distance 15
////pear_abate_2018 02 07 14 34 45.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pear_abate_2018 02 07 14 34 45";
//Rect r_box(950, 195, 780, 780);
//#define motor_shaft_height 2
//#define color_distance 15
////banana_red_rotated_2018 02 07 15 50 22.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\banana_red_rotated_2018 02 07 15 50 22";
//Rect r_box(750, 200, 840, 840);
//#define motor_shaft_height 37
//#define color_distance 15
//banana_red_2018 02 07 14 40 22.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\banana_red_2018 02 07 14 40 22";
//Rect r_box(780, 180, 900, 900);
//#define motor_shaft_height 23
//#define color_distance 14
//pitahaya_red_rotated_2018 02 07 14 44 20.avi
//string input_file_name = "c:\\Mihai\\Dropbox\\fruits\\pitahaya_red_rotated_2018 02 07 14 44 20";
//Rect r_box(910, 400, 650, 650);