feat(ExtensionManager): add ability to save current frame index with no annotation present #5758
+8
−8
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.
Context
Using the
usAnnotationextension, clinicians often first perform a rough assessment of a particular ultrasound clip by visually identifying the frame with the maximum number of B-lines. Later, the clinician or a fellow may add in pleural line and B-line annotations. However, in the current extension, the user cannot save an annotation JSON file without adding the pleural lines and B-lines.Changes & Results
Therefore, we added the ability to save out a JSON annotation file, even if no pleural lines or B-lines are present in the frame. The JSON file will contain an entry with the current frame number, and an empty list for both the pleural lines and B-lines.
A sample resulting JSON file is as follows:
Testing
This change can be tested by:
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment