Skip to content

Commit

Permalink
V1.1
Browse files Browse the repository at this point in the history
Added Camera Support
WIP - Filters (Added GUI)
WIP - 2 CAMS SETUP
  • Loading branch information
8JP8 committed Oct 22, 2023
1 parent 2996fad commit d460c57
Show file tree
Hide file tree
Showing 6 changed files with 861 additions and 686 deletions.
1 change: 1 addition & 0 deletions AppleCategorizationPython/1.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python ./pyinstaller.exe --icon=apple.ico --noconsole --add-data "config.ini;config.ini" main.py
79 changes: 40 additions & 39 deletions AppleCategorizationPython/config.ini
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
[CAMERA_CONFIG]
use_two_cameras = True
camera_index_left = 0
camera_index_right = 1
camera_calc_diameter = False
camera_height = 0
camera_distance = 0
pixel_separation = 100 ; > 100px GRANDE | < 100px PEQUENA
diameter_separation = 5.0 ; > 5cm GRANDE | < 5cm PEQUENA

[DETECTION_CONFIG]
threashold1_value = 0
threashold2_value = 30
mode_value = -1
detectionmode_value = 1
categorizationmode_value = -1

[IO_CONFIG]
use_photosensor = False
photosensor_pin = 17
use_lights = True
light_default_intensity = 0
use_rgb_leds = True
rgb_r_pin = 1
rgb_g_pin = 2
rgb_b_pin = 3

[LOGS_CONFIG]
logs_file_path = apple_log.txt

[DEPENDENCIES_CONFIG]
model_0_weights_file_path = models/yolov4.weights
model_0_weights_cfg_path = models/yolov4.cfg
model_0_names_file_path = models/coco.names
model_1_weights_file_path = models/yolov4-tiny.weights
model_1_weights_cfg_path = models/yolov4-tiny.cfg
model_1_names_file_path = models/coco.names
model_0_categorization_file_path = models/rotten.h5

[CAMERA_CONFIG]
use_two_cameras = False
camera_index_left = 0
camera_index_right = 1
camera_calc_diameter = True
camera_height = 30
camera_distance = 30
camera_fov = 60
pixel_separation = 100
diameter_separation = 5.0

[DETECTION_CONFIG]
threshold1_value = 100
threshold2_value = 0
mode_value = 0
detectionmode_value = 0
categorizationmode_value = 0

[IO_CONFIG]
use_photosensor = False
photosensor_pin = 17
use_lights = True
light_default_intensity = 0
use_rgb_leds = True
rgb_r_pin = 1
rgb_g_pin = 2
rgb_b_pin = 3

[LOGS_CONFIG]
logs_file_path = apple_log.txt

[DEPENDENCIES_CONFIG]
model_0_categorization_file_path = models/rotten.h5
model_0_weights_file_path = models/yolov4.weights
model_0_weights_cfg_path = models/yolov4.cfg
model_0_names_file_path = models/coco.names
model_1_weights_file_path = models/yolov4-tiny.weights
model_1_weights_cfg_path = models/yolov4-tiny.cfg
model_1_names_file_path = models/coco.names

Loading

0 comments on commit d460c57

Please sign in to comment.