Unlock the full potential of visual attention prediction with our advanced AI solutions.
Who We Are
At AdVizion, we harness the power of artificial intelligence to analyze and predict visual attention in digital media. Our mission is to empower advertisers, designers, and content creators with insights that enhance engagement and effectiveness.
With a team of experts in AI and visual cognition, we are committed to delivering innovative solutions that push the boundaries of what's possible in visual analytics.
AdVizion API Documentation
The AdVizion API allows you to upload images and videos to generate saliency maps. To use the API, you need an API key, which is available to premium subscribers.
Your API Key
Your API key is:
********
Please keep this API key safe. You'll need it to access the API.
Note: You must be a premium subscriber to access the API. Subscribe now.
Authentication
Include your API key in the request headers as follows:
x-api-key: YOUR_API_KEY
Endpoints
POST /api/upload/: Uploads an image and returns the saliency map URL.
POST /api/video/: Uploads a video and returns the saliency video URL. Accepts an optional interval parameter (in seconds) to specify the frame sampling interval.
Parameters
interval (optional): A float value specifying the frame sampling interval in seconds for video processing. A smaller interval results in more frames being processed (higher accuracy but slower processing). The default value is 0.5 seconds.
import requests
# Your API key (available after subscribing)
api_key = "YOUR_API_KEY"
# Set up the headers with your API key
headers = {
"x-api-key": api_key
}
# For image upload
# Open the image file in binary mode
with open("path_to_your_image.jpg", "rb") as f:
files = {"file": f}
# Send a POST request to the image upload endpoint
response = requests.post("https://www.advizion.net/api/upload/", headers=headers, files=files)
# Print the response from the server
print(response.json())
# For video upload
# Open the video file in binary mode
with open("path_to_your_video.mp4", "rb") as f:
files = {"file": f}
# Specify the interval parameter (in seconds)
data = {"interval": 0.5} # Adjust the interval as needed
# Send a POST request to the video upload endpoint
response = requests.post("https://www.advizion.net/api/video/", headers=headers, files=files, data=data)
# Print the response from the server
print(response.json())
// Using Axios in TypeScript
import axios from 'axios';
import * as fs from 'fs';
const apiKey = 'YOUR_API_KEY';
const headers = {
'x-api-key': apiKey,
'Content-Type': 'multipart/form-data'
};
// For image upload
const imageFile = fs.createReadStream('path_to_your_image.jpg');
const imageFormData = new FormData();
imageFormData.append('file', imageFile);
axios.post('https://www.advizion.net/api/upload/', imageFormData, { headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error uploading image:', error);
});
// For video upload
const videoFile = fs.createReadStream('path_to_your_video.mp4');
const videoFormData = new FormData();
videoFormData.append('file', videoFile);
// Specify the interval parameter (in seconds)
videoFormData.append('interval', '0.5'); // Adjust the interval as needed
axios.post('https://www.advizion.net/api/video/', videoFormData, { headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error uploading video:', error);
});
# For Image Upload
curl -X POST https://www.advizion.net/api/upload/ \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@/path/to/your/image.jpg"
# For Video Upload with Interval Parameter
curl -X POST https://www.advizion.net/api/video/ \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@/path/to/your/video.mp4" \
-F "interval=0.5" # Adjust the interval as needed
How to Use AdVizion
Login: Click the "Login" button in the top-right corner to access your account.
Select Media Type: Choose whether you want to upload an image or a video.
Upload: Click on "Choose Image" or "Choose Video" to select your file.
Predict: Click the "Upload and Predict" button to generate the saliency map.
View Results: After processing, view the original media and the saliency map.
Analyze: Use the insights to improve your content's visual impact.