Thêm vùng chọn video Kling
Sử dụng endpoint Kling Add Video Selection để thêm các phần tử vùng chọn trong chỉnh sửa video đa phần tử, cho phép chỉnh sửa có mục tiêu và kiểm soát cảnh thông qua CometAPI.
Cách vùng chọn hoạt động
session_idđến từ Khởi tạo video để chỉnh sửa- Sử dụng cùng một tài khoản và chính xác
session_idđược trả về từ bước khởi tạo frame_indexchọn khung hình nơi bạn đặt các điểmpointslà các tọa độ đã chuẩn hóa trong khoảng từ0đến1- Tài liệu Kling nêu tối đa 10 khung hình được đánh dấu và tối đa 10 điểm trên mỗi khung hình
Vai trò trong quy trình
Khởi tạo trước
session_id hợp lệ.Thêm hoặc tinh chỉnh điểm
Xem trước khu vực
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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.