archimeda - born of dreams-inspired by freedom
"The primary merit for the picture is to be a feast for the eyes." Delacroix “Design is not just what it looks like and feels like. Design is how it works.” - Steve Jobs "Imagination is more important than knowledge. For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand." –Dr. Albert Einstein "Wonder is comes from the awareness of ignorance of religious mass"
2020. június 21., vasárnap
// Get the 'deepai' package here (Compatible with browser & nodejs):
// https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
// Learn more about async-await here: https://javascript.info/async-await
// Example posting a image URL:
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('d72c58fa-c17d-4d89-bde6-d77d1173030d');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: "YOUR_IMAGE_URL",
});
console.log(resp);
})()
// Example posting file picker input image (Browser only):
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('d72c58fa-c17d-4d89-bde6-d77d1173030d');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: document.getElementById('yourFileInputId'),
});
console.log(resp);
})()
// Example posting a local image file (Node.js only):
const fs = require('fs');
const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML
deepai.setApiKey('d72c58fa-c17d-4d89-bde6-d77d1173030d');
(async function() {
var resp = await deepai.callStandardApi("colorizer", {
image: fs.createReadStream("/path/to/your/file.jpg"),
});
console.log(resp);
})()
2018. március 4., vasárnap
Feliratkozás:
Bejegyzések (Atom)