Test in Real Time: Interactive Playing Card Detection API Demo Cards detection API Live Cards detection API Upload an image to test my model in real time 1. Choose Card Image (JPEG/PNG): Run 🔄 Processing image and drawing bounding boxes, please wait… 1. Original Input Image: 2. AI Detection Output: 3. Raw JSON Metadata Response: Get Your API Key on RapidAPI Quick Start: Integrate the API in 3 Steps Start detecting cards in your own applications in minutes. Step 1 Get Your API Key Subscribe to the free tier on RapidAPI to receive your personalized API key. Get Free Key → Step 2 Send an Image via POST Send any JPEG or PNG file as multipart form-data to the /detect endpoint. Step 3 Process Card Detections Parse card labels, confidence scores, precise bounding boxes, or use the pre-rendered annotated image directly. Implementation Code Examples Python Node.js (Axios) import requests url = "https://cards-detection-api.p.rapidapi.com/detect" headers = { "x-rapidapi-host": "cards-detection-api.p.rapidapi.com", "x-rapidapi-key": "YOUR_RAPIDAPI_KEY" } # Open and send your image with open("cards.jpg", "rb") as image_file: files = {"file": image_file} response = requests.post(url, files=files, headers=headers) data = response.json() # Inspect detected cards print(f"Total Detections: {data.get('total_detections', 0)}") for card in data.get("detections", []): print(f"Card ID: {card.get('class_id')} | Confidence: {card.get('confidence'):.2f}") print(f"Bounding Box: {card.get('bounding_box')}") const axios = require('axios'); const fs = require('fs'); const FormData = require('form-data'); async function detectCards() { const form = new FormData(); form.append('file', fs.createReadStream('cards.jpg')); const options = { method: 'POST', url: 'https://cards-detection-api.p.rapidapi.com/detect', headers: { ...form.getHeaders(), 'x-rapidapi-host': 'cards-detection-api.p.rapidapi.com', 'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY' }, data: form }; try { const response = await axios.request(options); console.log('Detection Results:', response.data); } catch (error) { console.error('API Error:', error.response ? error.response.data : error.message); } } detectCards(); Subscribe to Cards-Detection-API on RapidAPI