fix: content categoriser updates #1156
Merged
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.
Resolves #1015.
PR should be merged after #1136
This pull request updates how image content is classified as a photograph across several preprocessing modules. The changes standardize the use of the
categoriesdictionary and itsphotokey, replacing previous logic that relied on a singlecategorystring value. This improves consistency and reliability when determining whether to process image content as a photograph.Standardization of photograph classification:
depth-map-generator.py,segment.py,azure_api.py, andobjdetect.pyto use thecategories["photo"]boolean for photograph detection, replacing checks against the"category"string. [1] [2] [3] [4]Logic improvements:
Please note that PRs from external contributors who have not agreed to our Contributor License Agreement will not be considered.
To accept it, include
I agree to the [current Contributor License Agreement](/CLA.md)in this pull request.Don't delete below this line.
Required Information
Coding/Commit Requirements
New Component Checklist (mandatory for new microservices)
docker-compose.ymlandbuild.yml..github/workflows.README.mdfile that describes what the component does and what it depends on (other microservices, ML models, etc.).OR