- Introduced a new bubble detection method based on color-based connected components ("island detection").
- Operates in a predefined region (150, 330, 600, 880) using HSV color masks.
- Mask settings and area thresholds per bubble type (user, bot, etc.) are configurable via `bubble_colors.json`.
- Supports optional image downscaling for performance; thresholds scale accordingly.
- Default setting remains off (`self.use_color_detection = False`), can be enabled manually in `DetectionModule`.
- Added keyword image matching for "wolf"/"Wolf" within detected bubbles.
- Improved precision in reply content extraction and sender identification by relocating based on snapshot offsets.
- Removed redundant portions of the system prompt to reduce token usage and improve response clarity.
- Modularized and simplified configuration for bubble type addition and detection tuning.
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"bubble_types": [
|
|
{
|
|
"name": "normal_user",
|
|
"is_bot": false,
|
|
"hsv_lower": [6, 0, 240],
|
|
"hsv_upper": [18, 23, 255],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
},
|
|
{
|
|
"name": "bot",
|
|
"is_bot": true,
|
|
"hsv_lower": [105, 9, 208],
|
|
"hsv_upper": [116, 43, 243],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
},
|
|
{
|
|
"name": "bunny",
|
|
"is_bot": false,
|
|
"hsv_lower": [18, 32, 239],
|
|
"hsv_upper": [29, 99, 255],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
},
|
|
{
|
|
"name": "ice",
|
|
"is_bot": false,
|
|
"hsv_lower": [91, 86, 233],
|
|
"hsv_upper": [127, 188, 255],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
},
|
|
{
|
|
"name": "new_year",
|
|
"is_bot": false,
|
|
"hsv_lower": [0, 157, 201],
|
|
"hsv_upper": [9, 197, 255],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
},
|
|
{
|
|
"name": "snow",
|
|
"is_bot": false,
|
|
"hsv_lower": [92, 95, 177],
|
|
"hsv_upper": [107, 255, 255],
|
|
"min_area": 2500,
|
|
"max_area": 300000
|
|
}
|
|
]
|
|
}
|