Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where/how to save user-defined focus rect #52

Open
forresto opened this issue Jul 26, 2016 · 2 comments
Open

where/how to save user-defined focus rect #52

forresto opened this issue Jul 26, 2016 · 2 comments
Assignees

Comments

@forresto
Copy link
Contributor

forresto commented Jul 26, 2016

I don't see block.cover documented http://developer.thegrid.io/api.html#content-management-item

Is there a key for faces + saliency bbox, or do I need to derive that? @automata

I need to decide where/how to save user-defined focus rectangle

  • block.metadata.coverPrefs.scene -- ok?
  • {x,y,width,height} -- top-left, bottom-right points of original pixels ok?
@forresto
Copy link
Contributor Author

Is cover.scene (data helper stuff) saved to block or calculated by DS? (Ed's fixture is old.)

@automata
Copy link
Contributor

block.cover is documented in https://github.com/the-grid/apidocs/blob/gh-pages/full-schema/media.json#L10 (we should probably put links on developer.thegrid.io for those full schemas).

cover.scene groups faces and saliency bbox and is calculated by data-helper and must be called by DS or other The Grid's API consumer. It is documented in https://github.com/the-grid/apidocs/blob/gh-pages/full-schema/helpermeasurements.json#L7-L41.

I'm OK with block.metadata.coverPrefs.scene. It's data type should follow ☝️ schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants