Mutation
mutation ProcessChemicalLabel($image: File!) {
processChemicalLabel(image: $image) {
casNumber
catalogNumber
expirationDate
extractedText
manufacturer
productName
}
}Variables
{
"image": "value"
}Response
{
"data": {
"processChemicalLabel": {
"casNumber": "string",
"catalogNumber": "string",
"expirationDate": "string",
"extractedText": "string",
"manufacturer": "string",
"productName": "string"
}
}
}Mutations
processChemicalLabel
Reads a photo of a chemical label and returns the product details found on it.
MUTATION
processChemicalLabel(image: File!): ChemicalOcrResult!Arguments
image
File!
required
Photo of the chemical label.
Returns
casNumber
String
CAS Registry Number, such as '7732-18-5'.
catalogNumber
String
Catalog or SKU number without any size suffix, for example 'C1287' from 'C1287-500G'.
expirationDate
String
Expiration date in ISO format.
extractedText
String
All readable text from the image.
manufacturer
String
Manufacturer or supplier name as printed on the label.
productName
String
Product or chemical name as printed on the label.
Mutation
mutation ProcessChemicalLabel($image: File!) {
processChemicalLabel(image: $image) {
casNumber
catalogNumber
expirationDate
extractedText
manufacturer
productName
}
}Variables
{
"image": "value"
}Response
{
"data": {
"processChemicalLabel": {
"casNumber": "string",
"catalogNumber": "string",
"expirationDate": "string",
"extractedText": "string",
"manufacturer": "string",
"productName": "string"
}
}
}