You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
Interesting idea... but could be a bit tricky to implement. Question is how far you want to go with the queries? Identical to everything that's possible in Elvis?
The tricky part is that the image recognition integration doesn't have knowledge of the Elvis query language (think about interpreting something like: "category:Celebrity AND (status:final OR licenseStartDate:[2018-05-01 TO 2018-12-31])". This is something Elasticsearch (Lucene) can interpret inside Elvis. I now see two options if we want to implement queries like these in this integration:
Option A: use the Elvis search API to perform a queries on the given asset. Downside of this option is that you'd have to perform separate queries for every mapping you have. This might put a heavy API load on Elvis.
Option B: Create logic in the integration to interpret the query and make the selection locally. This would be very nice, but is probably really complex to implement (you'd have to re-invent Lucene query parsing and searching...).
Both options are far from ideal. An another alternative might be to support less features in the query, for example a subset of the options you'd have in Lucene or just a single metadata=value match. Ideally I would opt for something where the integration can match the right model without too much additional logic and without extra API calls towards Elvis.
Keeping this integration focused on recognition is key. Perhaps combine two webhooks?
The first will react on asset_create and other events, have the logic required to set the model (model field per vendor?), and flag the record for being picked up using a boolean field cf_aiRecognize. A sample for doing this would be welcome.
The second webhook could then react if cf_aiRecognize is changed to true and use the model set by the first webhook to call this integration.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently the selection of vendor and model is defined by
assetDomain
andassetPath
.Case 1: Photographer uploads images with
category
"Celebrity". We would like to use the info and send the images to the corresponding model.Case 2: Files archived from Enterprise contain an editorial category. We might want to use sceCategory for setting the model
Case 3: To reduce cost it would be convenient if we could avoid sending agency images to recognition -
!usageRights:agency
All cases can be solved by the ability to map queries to model and vendor.
The text was updated successfully, but these errors were encountered: