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.
Contact Us
Join Our Community
Connect with us and other users on Discord for support and discussions.
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 prediction result URL. Accepts an optional prediction_type parameter with values saliency or sequence.
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
prediction_type (optional): For image upload, specify saliency or sequence. Defaults to saliency.
fixation_points (optional): For sequence prediction in Image, an integer between 1 and 7 specifying the number of fixation points. Defaults to 3.
interval (optional): For video upload, a float value specifying the frame sampling interval in seconds. 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 with sequence prediction
# Open the image file in binary mode
with open("path_to_your_image.jpg", "rb") as f:
files = {"file": f}
data = {
"prediction_type": "sequence", # Specify the prediction type (sequence or saliency)
"fixation_points": 3 # Specify the number of fixation points if you select sequence (1-7) - optional
}
response = requests.post("https://www.advizion.net/api/upload/", headers=headers, files=files, data=data)
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);
// For image upload with sequence prediction
imageFormData.append('prediction_type', 'sequence'); // Specify the prediction type, sequence or saliency
imageFormData.append('fixation_points', 3); // Specify the number of fixation points if you select sequence
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 with Sequence Prediction
curl -X POST https://www.advizion.net/api/upload/ \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@/path/to/your/image.jpg" \
-F "prediction_type=sequence" # Specify the prediction type (sequence or saliency)
-F "fixation_points=3" # Adjust the number of fixation points as needed if you select sequence
# 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.