Services
Image to GPS
In the absence of GPS EXIF data, our AI system provides GPS estimation.
Image EXIF Data
We provide image EXIF data, including camera model, timestamps, and more..
Landmarks detection
Our system excels with landmark images. The service will be provided soon.
API
import requests
import json
import base64
url = "https://picarta.ai/classify"
api_token = "API_TOKEN" #register to get the token
headers = {"Content-Type": "application/json"}
# Read the image from a local file, comment out the next two lines if you read from URL
with open("path/to/local/image.jpg", "rb") as image_file:
img_path = base64.b64encode(image_file.read()).decode('utf-8')
# OR
# from a URL, comment out the next line if you read from a local file
#img_path = "https://upload.wikimedia.org/wikipedia/commons/8/83/San_Gimignano_03.jpg"
# Prepare the payload
payload = {"TOKEN": api_token,
"IMAGE": img_path}
# Send the POST request with the payload as JSON data
response = requests.post(url, headers=headers, json=payload)
if response.status_code == 200:
result = response.json()
print(result)
else:
print("Request failed with status code:", response.status_code)
const fs = require('fs');
const url = "https://picarta.ai/classify";
const apiToken = "API_TOKEN"; // Replace with your API token
const headers = {"Content-Type": "application/json"};
// Read the image from a local file
const imagePath = "path/to/local/image";
const imageData = fs.readFileSync(imagePath);
const imgPath = Buffer.from(imageData).toString('base64');
// OR from a URL
// const imgPath = "https://upload.wikimedia.org/wikipedia/commons/8/83/San_Gimignano_03.jpg";
// Prepare the payload
const payload = {
"TOKEN": apiToken,
"IMAGE": imgPath
};
// Send the POST request with the payload as JSON data
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => {
if (response.ok) {
return response.json();
} else {
throw new Error("Request failed with status code: " + response.status);
}
})
.then(result => {
console.log(result);
})
.catch(error => {
console.error("Request failed with error:", error);
});
# For local image file
img_path=$(base64 -w0 "/path/to/local/image.jpg")
# OR
# For image from a URL (comment out the above line and uncomment the next line)
#img_path="https://upload.wikimedia.org/wikipedia/commons/8/83/San_Gimignano_03.jpg"
# Construct the JSON payload
echo '{"TOKEN": "API_TOKEN", "IMAGE": "'"$img_path"'"}' > payload.json
# Send the request using curl
curl --request GET \
--url https://picarta.ai/classify \
--header 'Content-Type: application/json' \
--data @payload.json
# For local image file
base64_image=$(base64 -w0 "/path/to/local/image.jpg")
# For image from a URL (comment out the above line and uncomment the next line)
#base64_image=$(base64 -w0 <(wget -qO- "https://upload.wikimedia.org/wikipedia/commons/8/83/San_Gimignano_03.jpg"))
# Construct the JSON payload
echo '{"TOKEN": "API_TOKEN", "IMAGE": "'"$base64_image"'"}' > payload.json
# Send the request using wget
wget --method = POST \
--header 'Content-Type: application/json' \
--body -file=payload.json \
--output -document=picarta_output.json \
https://picarta.ai/classify
How Picarta Process And Works
Utilizing advanced AI methods, we precisely determine global image coordinates. We aim to provide individuals and businesses a dependable geolocation solution, enabling exploration, research, and informed choices.
Our Policy
-
01
14-day money-back guarantee for the Premium Plan
If unsatisfied within 14 days, unsubscribe for a guaranteed refund.
-
02
Inaccurate results
No charges if our system is uncertain about GPS estimation.
-
03
Collect The Data
Uploaded images will be deleted.