Add google vision validators to AI_validators (ai submodule)

Created on 22 June 2024, 5 months ago

Problem/Motivation

The validators in this module are very isolated.
In the AI module ( https://www.drupal.org/project/ai ) there will soon be a submodule ai_validators building on field_validators.
Read more here: https://www.drupal.org/project/ai/issues/3456199 ai_validations for smart text and image validation Needs review

It would be great if
1. Google vision was a provider in the AI module.
2. The ai validators could use the Vision provider via the AI module to allow people to do various validators.
Faces

  • "image has faces "
  • "image without faces"

Emotions

  • "image has INPUTEMOTION faces "
  • "image without INPUTEMOTION faces"

Labels / Objects

  • "image has Label [INPUT] "
  • "image does not have Label [INPUT] "
  • "image has Object [INPUT] "
  • "image does not have Object [INPUT] "

Properties

  • "image main color [INPUT] "
  • "image without color [INPUT] "

Ocr

  • "image (ocr) contains text "
  • "image (ocr) contains text [inputfield]"
  • "image (ocr) does not contain text "
  • "image (ocr) does not contain text [inputfield]"

Proposed resolution

- Add google vision provider to AI module (Plugin)
- Write Constraint/Validators in the ai_validations module for each of these cases and make sure the vison provider can handle these.

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium wouters_f Leuven

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024