10up / classifai

Supercharge WordPress Content Workflows and Engagement with Artificial Intelligence.
https://classifaiplugin.com
GNU General Public License v2.0
578 stars 53 forks source link

Azure Computer Vision error messaging on null matches #139

Closed jeffpaul closed 4 years ago

jeffpaul commented 5 years ago

Is your enhancement related to a problem? Please describe. Expand upon the work done in #75 and continue to add features from Computer Vision.

Describe the solution you'd like

Designs n/a

Describe alternatives you've considered none

Additional context Split out from #75

jeffpaul commented 4 years ago

As we're looking to release v1.5.0 in the next week or so and with no linked PR for this issue, I'm going to move this to 1.6.0 until we're able to work up a PR for it.

mustafauysal commented 4 years ago

@jeffpaul It seemed this issue has been addressed in 5d5e8157764118b9d0be4ef818ce6239db1dc49d

Should we print out some error messages when classifai_computer_vision_caption_failed fires?

jeffpaul commented 4 years ago

@ryanwelcher do you feel that the work in #125 covered this issue?

ryanwelcher commented 4 years ago

@jeffpaul there are two hooks related to computer vision added in 1.5:

classifai_computer_vision_caption_failed - fired when no captions are returned classifai_computer_vision_image_tag_failed - fired when no tags are added.

I think we're good to close this issue.

jeffpaul commented 4 years ago

@ryanwelcher one extension of this that I was considering was displaying some sort of messaging when alt-text and tags are NOT applied to images. Maybe something underneath the alt-text field and image tags noting "ClassifAI did not identify any alt-text for this image, considering adjusting your threshold lower to get results back from ClassifAI processing."?