forked from jomjol/AI-on-the-edge-device
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add a post process event handler to perform error/debug handling #59
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Slider0007
added a commit
that referenced
this pull request
Oct 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Post Process Event Handler
to perform error / debug handling at the end of a process cycle. It is possible to signal warning and error events to main task and react to the event after the states are already fully processed. This reduces possible side-effects by stopping in between in case of an error. Error events are signaling (error message) and aborting the actual processing after completing the state where the event is triggered, waring events only signaling (warning message) without aborting the actual processing.Take Image
: Handle the reload of camera driver in case of a camera issue.--> Error, actual image evaluation process to be aborted. Publishing states like MQTT, ... are still performed.
Image Alignment
: In case of an alignment deviation, save align algorithm results and the alignment image for debug purposes (only activated if enabled by new expert parameterSave Debug Info
(SaveDebugInfo) in sectionAlignment
).--> Error, actual image evaluation process to be aborted. Publishing states like MQTT, ... are still performed.
Post-Processing
: In case of an max. rate threshold deviation (positive and negative), save the evaluation status message and the all ROI images for debug purposes (only activated if enabled by new expert parameterSave Debug Info
(SaveDebugInfo) in sectionPost-Processing
).--> Warning, actual process to be continued. All flowwing states are fully performed.
/sdcard/log/debug
.Debug Files Retention
(DebugFilesRetention) in sectionSystem
to maintain the new created/sdcard/log/debug
folder.doPostProcessEventHandling()
)Manual Control
-->Start Round
.Manual Control
-->Start Round
.BEGIN_COMMIT_OVERRIDE
feat: Add a post process event handler to perform error/debug handling)
refactor: Refactor demo mode
refactor: Refactor file and folder retention functions
refactor(webui): Show round counter in separate line
refactor: Refactor camera init during boot
feat(webui): Allow firmware.bin as valid file name
END_COMMIT_OVERRIDE