//TODO tune size of region of interest (crop camera view)
#define ROI_X 0
-#define ROI_Y 280
+#define ROI_Y 0
#define ROI_WIDTH WINDOW_WIDTH
-#define ROI_HEIGHT 200
+#define ROI_HEIGHT WINDOW_HEIGHT
// values of keys
#define KEY_ESC 0x1B
//Barcode detection criteria:
#define LINES_BY_DISTANCE 5
#define COLOUR_DIFF 20
-#define VERTICAL_LINES 7
-#define TRANSITIONS 20
-#define MAX_GAP 3
+#define VERTICAL_LINES 4
+#define TRANSITIONS 10
+#define MAX_GAP 15
#define CONTAINS_WHITE 200
#define CONTAINS_BLACK 100
#define AVERAGE_COLOUR_MAX 200 //average colour of a barcode is cca 95