Skip to content

Commit

Permalink
Finalized V11
Browse files Browse the repository at this point in the history
  • Loading branch information
connervieira committed Nov 5, 2024
1 parent aec07d1 commit 74b6575
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ This update refines Predator's functionality, and focuses its purpose back on li
- The `alerts_ignore_validation` configuration value has been moved to the 'general' section.
- Dramatically improved alert handling.
- Alerts detected in real-time mode are now recorded to a dictionary every round, which makes processing and handling alerts more efficient and organized.
- Alerts are now handled on a plate by plate basis, instead of by frame.
- Alerts are now handled on a plate-by-plate basis, instead of frame-by-frame.
- This means only the plates that match alert rules will be marked as alerts in web-hook submissions, logs, and similar context.
- When the `alerts_ignore_validation` configuration value is enabled, a single rule matching multiple guesses for a particular plate will only be considered one alert.
- This prevents an alert with wildcards from repeatedly triggering for every similar guess.
Expand Down Expand Up @@ -437,12 +437,9 @@ March 6th, 2024

This update emphasizes improving the reliability of Predator, especially when operating in dash-cam mode. This update also expands the functionality of dash-cam mode to allow simultaneous dash-cam recording and ALPR analysis.

*Release date to be determined*
November 4th, 2024

- Added more descriptive error messages when the interface directory fails to be created.
- Added comprehensive configuration validation.
- Predator now checks to see if each value in the configuration matches the expected data type.
- Configuration values that exist in the configuration template file but not in the actual configuration file will show errors.
- Added performance monitoring to state interface file to allow external programs to see basic performance diagnostics.
- Updated the way automatic GPS time correction is handled.
- Predator will no longer try to apply a time offset when the system time is in the future relative to the GPS time.
Expand Down Expand Up @@ -503,8 +500,9 @@ This update emphasizes improving the reliability of Predator, especially when op
- This means that the status lighting can be turned off, and it will only turn back on when an update is made.
- Changed the default `dashcam_save` status light color to blue, to avoid confusion with `alpr_alert`.
- Updated configuration back-end.
- Increased the maximum depth of the configuration validation process.
- Predator can now automatically update the configuration file between versions when configuration values are added or removed.
- Added comprehensive configuration validation.
- Predator now checks to see if each value in the configuration matches the expected data type.
- Improved the consistency of the configuration file location when starting Predator from an external source, like Assassin.
- Added an initial start-up sequence, where Predator shows some basic information before the normal start-up.
- Predator now creates a file named `install.json` containing some basic install information on the first start-up.
Expand Down
7 changes: 3 additions & 4 deletions assets/support/configdefault.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"confidence": 80,
"best_effort": true,
"license_plate_format": [
"AAA0000"
"AAA0000", "AAA000"
]
}
},
Expand All @@ -26,7 +26,7 @@
"debugging_output": false
},
"gps": {
"enabled": true,
"enabled": false,
"demo_file": "",
"time_correction": {
"enabled": true,
Expand Down Expand Up @@ -166,7 +166,7 @@
"max_deletions_per_round": 10
}
},
"framerate_snap": 0.1
"framerate_snap": 0.15
},
"capture": {
"video": {
Expand Down Expand Up @@ -221,7 +221,6 @@
"reticulum": {
"enabled": false,
"destinations": [
"7d72f75f4aebdb94f977b71d394dd12f"
],
"identity_file": "/home/pi/.reticulum/storage/identities/predator",
"instance_name": "My Car",
Expand Down
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def display_message(message, level=1):
save_to_file(error_file_location, json.dumps(error_log)) # Save the modified error log to the disk as JSON data.
print(style.red + "Error: " + message + style.end)
if (config["developer"]["hard_crash_on_error"] == True):
global_variables.predator_running = False
os._exit(1)
prompt(style.faint + "Press enter to continue..." + style.end)

Expand Down

0 comments on commit 74b6575

Please sign in to comment.