إضافة تحديد فيديو لـ Kling
استخدم نقطة النهاية Add Video Selection من Kling لإضافة عناصر التحديد في تحرير الفيديو متعدد العناصر، مما يتيح تعديلات موجهة والتحكم في المشهد عبر CometAPI.
كيفية عمل التحديد
- يأتي
session_idمن تهيئة الفيديو للتحرير - استخدم الحساب نفسه و
session_idالمطابق تمامًا كما تم إرجاعه من التهيئة - يحدد
frame_indexالإطار الذي تضع فيه النقاط pointsهي إحداثيات مطبعة بين0و1- توثّق Kling ما يصل إلى 10 إطارات محددة وما يصل إلى 10 نقاط لكل إطار
دورها في سير العمل
التهيئة أولاً
session_id صالح.إضافة النقاط أو تحسينها
معاينة المنطقة
التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.
Frame number
Supports adding up to 10 marked frames, meaning video selections can be marked based on a maximum of 10 frames. Only 1 frame can be marked at a time.
Click coordinates, represented by x and y. Value range: [0,1], expressed as a percentage; [0,1] represents the top-left corner of the frame. Supports adding multiple marked points simultaneously, with a maximum of 10 points per frame.