Data Wow Open API - Object detection and Image classifier

Data Wow Open API - Object Detection and Image classifier

Data Wow Open API - Object detection and Image classifier

Object Detection and Image Classifier [Data Wow Object Detection and Image Classifier] ใช้โมเดล EfficientNet ซึ่งเป็น Deep Neural Network ที่มีความแม่นยำสูงและกินทรัพยากรต่ำ และนำมา Train ให้เข้ากับ Data Set สำหรับวัตถุเฺฉพาะต่างๆ เช่น เสื้อผ้า, สิ่งของในร้านอาหาร, และอวัยวะต่างๆ ที่รวบรวมและ Label ด้วย Accuratly.ai ทำให้ Object Detector ของ Data Wow มีความสามารถในการตรวจวัตถุสูงกว่า Object Detector ทั่วไปในท้องตลาด ยกตัวอย่างเช่น AI สามารถบอกเราได้ว่า ภาพนี้มีปืนอยู่นะ ในกรณีที่เราใช้ตรวจสอบอาวุธ หรือภาพนี้เป็นภาพเซ็กซี่ เพราะมีนายแบบใส่ชุดว่ายน้ำอยู่ เป็นต้น

Classification Name

1. Explicit Nudity - Nudity 1.1. Explicit Nudity - Sexual Activity 2. Suggestive - Partial Nudity 2.1. Suggestive - Revealing Skin or Clothes 3. Synthesized Images 3.1. Explicit Nudity - Cartoon 3.2. Violence - Cartoon 3.3. Suggestive - Cartoon 3.4. Explicit Nudity - Illustrated Nudity Encoded - IG Nametag Encoded - QR Codes Encoded - Barcode Male Underwear Male Swimwear Female Underwear Female Swimwear Violence - Graphic Violence Violence - Physical Violence Violence - Self Injury Violence - Weapon Violence Violence - Wound (Non-Blood) Explicit Nudity - Adult Toys Visually Disturbing Revealing Skin - Sexy Suggestive - Sexual Activity Suggestive - Sexual Parts Children Drawing

Detection Name

Background Male Breast Female Breast Male Genital Female Genital Nipple Human Face Human Body Human Hand Human Leg Human Head Emoji Shirts Shorts Female Underwears Male Underwears Swimsuits Pills Narcotic Blade Gun Man Woman Baby Alcohol Adult Toys Condom Waste Blood Injury Corpse Bill Coin

Environment สำหรับ

URL: "https://backend.datawow.io" API_KEY: "Data wow"

POSTMAN API

สำหรับภาษาต่าง ๆ POSTMAN API

Header and body params

Headers required 'X-Api-Key' = 'Data wow' Body required form-data['image', 'File image'] หรือ form-data['image_url', 'url image']

ตัวอย่าง Request ของ cURL

curl --location --request POST 'https://backend.datawow.io/api/v1/demo/predictions' \ --header 'X-Api-Key: Data wow' \ --form 'imageurl="https://datawow-demo.s3-ap-southeast-1.amazonaws.com/demoobject.jpg"'

ตัวอย่าง Response สำหรับภาษา Ruby

{ "data": { "slug": "d5d6443e-62e2-49c6-8c59-f9b927c961ea", "status": "uploaded", "imageurl": "https://datawow-demo.s3-ap-southeast-1.amazonaws.com/demoobject.jpg", "results": {} }, "status": "OK" }

จาก Response ที่ได้นำ slug ไปยิง GET API

curl --location --request GET 'https://backend.datawow.io/api/v1/demo/predictions/d5d6443e-62e2-49c6-8c59-f9b927c961ea' \ --header 'X-Api-Key: Data wow'

ผลลัพที่ได้ จาก Response

{ "data": { "slug": "d5d6443e-62e2-49c6-8c59-f9b927c961ea", "status": "done", "imageurl": "https://datawow.s3-ap-southeast-1.amazonaws.com/demoprediction/d5d6443e-62e2-49c6-8c59-f9b927c961ea/image/demoobject.jpg?X-Amz-Expires=86400&X-Amz-Date=20210218T091750Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIHVHTL7C7RMVMXRA/20210218/ap-southeast-1/s3/aws4request&X-Amz-SignedHeaders=host&X-Amz-Signature=2025f663abe0e1337bc4231efe4f9df846efee1b60f5d8ca0b1da37d1e06293d", "results": { "nanameue": { "regressor": { "score": 0.202471226, "cutoffs": { "kenta": 0.8, "approved": 0, "declined": 0.12 }, "prediction": "declined" }, "decisiontree": "kenta" }, "imagedata": { "width": 626, "height": 417 }, "detectorresult": [ { "bbox": [ 0.47080876677316297, 0.47899775779376497, 0.6217798594249201, 0.700561304556355 ], "label": "Human Hand" }, { "bbox": [ 0.027629703035143772, 0.21747268944844123, 0.6478563498402555, 1.2278177458033572 ], "label": "Woman" }, { "bbox": [ 0.5802122364217253, 0.8893512398081534, 0.6581423338658147, 1.0903772589928058 ], "label": "Human Hand" }, { "bbox": [ 0.018159866293929714, 0.9131498992805755, 0.27531030990415334, 1.217356143884892 ], "label": "Human Head" }, { "bbox": [ 0.1640211357827476, 0.8304238441247003, 0.3224305702875399, 1.0657626738609114 ], "label": "Human Hand" } ], "classifierresult": { "Female Swimwear": 0.560566247, "Revealing Skin - Sexy": 0.497291207, "1. Explicit Nudity - Nudity": 0.524569929 } } }, "status": "OK" }

results["nanameue"]["regressor"]["prediction"] จะเป็นคำตอบของระบบว่าควรจะ approved รูปนี้ไหม
results["detector_result"] object detection ที่เจอพร้อม image bounding box
results["classifier_result"] ประเภทของรูปภาพใน Classification

สำหรับ Open API ที่เปิดให้ใช้งาน จะเป็นตัว Staging Environment เชิญเล่นได้ตามอัธยาศัยเลยครับ ถ้าสนใจที่จะใช้งานในระบบ Production Level ให้ติดต่อมาได้ที่ sale@datawow.io