SOPHON-SAIL 用户手册
目录
- 1. 声明
- 2. SAIL
- 3. 编译安装指南
- 4. SAIL C++ API 参考
- 4.1. Basic function
- 4.2. SAIL 枚举类型
- 4.3. PaddingAtrr
- 4.4. Handle
- 4.5. Tensor
- 4.5.1. 构造函数
- 4.5.2. shape
- 4.5.3. dtype
- 4.5.4. scale_from
- 4.5.5. scale_to
- 4.5.6. reshape
- 4.5.7. own_sys_data
- 4.5.8. own_dev_data
- 4.5.9. sync_s2d
- 4.5.10. sync_d2s
- 4.5.11. sync_d2d
- 4.5.12. sync_d2d_stride
- 4.5.13. dump_data
- 4.5.14. memory_set
- 4.5.15. memory_set
- 4.5.16. zeros
- 4.5.17. ones
- 4.5.18. size
- 4.5.19. element_size
- 4.5.20. nbytes
- 4.6. Engine
- 4.6.1. 构造函数
- 4.6.2. get_handle
- 4.6.3. load
- 4.6.4. get_graph_names
- 4.6.5. set_io_mode
- 4.6.6. graph_is_dynamic
- 4.6.7. get_input_names
- 4.6.8. get_output_names
- 4.6.9. get_max_input_shapes
- 4.6.10. get_input_shape
- 4.6.11. get_max_output_shapes
- 4.6.12. get_output_shape
- 4.6.13. get_input_dtype
- 4.6.14. get_output_dtype
- 4.6.15. get_input_scale
- 4.6.16. get_output_scale
- 4.6.17. process
- 4.6.18. get_device_id
- 4.6.19. create_input_tensors_map
- 4.6.20. create_output_tensors_map
- 4.7. MultiEngine
- 4.8. bm_image
- 4.9. BMImage
- 4.10. BMImageArray
- 4.11. Decoder
- 4.12. Encoder
- 4.13. Decoder_RawStream
- 4.14. Bmcv
- 4.14.1. 构造函数
- 4.14.2. bm_image_to_tensor
- 4.14.3. tensor_to_bm_image
- 4.14.4. crop_and_resize
- 4.14.5. crop
- 4.14.6. resize
- 4.14.7. vpp_crop_and_resize
- 4.14.8. vpp_crop_and_resize_padding
- 4.14.9. vpp_crop
- 4.14.10. vpp_resize
- 4.14.11. vpp_resize_padding
- 4.14.12. warp
- 4.14.13. convert_to
- 4.14.14. yuv2bgr
- 4.14.15. rectangle
- 4.14.16. fillRectangle
- 4.14.17. imwrite
- 4.14.18. imwrite
- 4.14.19. get_handle
- 4.14.20. crop_and_resize_padding
- 4.14.21. convert_format
- 4.14.22. vpp_convert_format
- 4.14.23. putText
- 4.14.24. image_add_weighted
- 4.14.25. image_copy_to
- 4.14.26. image_copy_to_padding
- 4.14.27. nms
- 4.14.28. drawPoint
- 4.14.29. warp_perspective
- 4.14.30. get_bm_data_type
- 4.14.31. get_bm_image_data_format
- 4.14.32. imdecode
- 4.14.33. imencode
- 4.14.34. fft
- 4.14.35. convert_yuv420p_to_gray
- 4.14.36. watermark_superpose
- 4.14.37. polylines
- 4.14.38. mosaic
- 4.14.39. gaussian_blur
- 4.14.40. transpose
- 4.14.41. Sobel
- 4.14.42. drawLines
- 4.14.43. stft
- 4.14.44. istft
- 4.14.45. faiss_indexflatL2
- 4.14.46. faiss_indexflatIP
- 4.14.47. faiss_indexPQ_encode
- 4.14.48. faiss_indexPQ_ADC
- 4.14.49. faiss_indexPQ_SDC
- 4.15. Blend
- 4.16. MultiDecoder
- 4.17. SAIL C++ 高性能接口
- 5. SAIL Python API 参考
- 5.1. Basic function
- 5.1.1. get_available_tpu_num
- 5.1.2. set_print_flag
- 5.1.3. set_dump_io_flag
- 5.1.4. set_loglevel
- 5.1.5. set_decoder_env
- 5.1.6. base64_encode
- 5.1.7. base64_decode
- 5.1.8. base64_encode_array
- 5.1.9. base64_decode_asarray
- 5.1.10. get_tpu_util
- 5.1.11. get_vpu_util
- 5.1.12. get_vpp_util
- 5.1.13. get_board_temp
- 5.1.14. get_chip_temp
- 5.1.15. get_dev_stat
- 5.2. SAIL 枚举类型
- 5.3. sail.Handle
- 5.4. sail.Tensor
- 5.4.1. __init__
- 5.4.2. shape
- 5.4.3. dtype
- 5.4.4. asnumpy
- 5.4.5. update_data
- 5.4.6. scale_from
- 5.4.7. scale_to
- 5.4.8. reshape
- 5.4.9. own_sys_data
- 5.4.10. own_dev_data
- 5.4.11. sync_s2d
- 5.4.12. sync_d2s
- 5.4.13. sync_d2d
- 5.4.14. sync_d2d_stride
- 5.4.15. dump_data
- 5.4.16. memory_set
- 5.4.17. zeros
- 5.4.18. ones
- 5.4.19. size
- 5.4.20. element_size
- 5.4.21. nbytes
- 5.5. sail.PaddingAtrr
- 5.6. sail.Engine
- 5.6.1. __init__
- 5.6.2. get_handle
- 5.6.3. load
- 5.6.4. get_graph_names
- 5.6.5. set_io_mode
- 5.6.6. graph_is_dynamic
- 5.6.7. get_input_names
- 5.6.8. get_output_names
- 5.6.9. get_max_input_shapes
- 5.6.10. get_input_shape
- 5.6.11. get_max_output_shapes
- 5.6.12. get_output_shape
- 5.6.13. get_input_dtype
- 5.6.14. get_output_dtype
- 5.6.15. get_input_scale
- 5.6.16. get_output_scale
- 5.6.17. process
- 5.6.18. get_device_id
- 5.6.19. create_input_tensors_map
- 5.6.20. create_output_tensors_map
- 5.7. sail.EngineLLM
- 5.7.1. 通用参数说明
- 5.7.2. 构造函数 __init__
- 5.7.3. 推理接口 process
- 5.7.4. 获取信息接口
- 5.7.4.1. get_device_ids
- 5.7.4.2. get_graph_names
- 5.7.4.3. get_addr_mode
- 5.7.4.4. get_stage_num
- 5.7.4.5. get_input_num
- 5.7.4.6. get_output_num
- 5.7.4.7. get_is_dynamic
- 5.7.4.8. get_input_name
- 5.7.4.9. get_output_name
- 5.7.4.10. get_input_tensor_devid
- 5.7.4.11. get_output_tensor_devid
- 5.7.4.12. get_input_shape
- 5.7.4.13. get_output_shape
- 5.7.4.14. get_input_max_shape
- 5.7.4.15. get_output_max_shape
- 5.7.4.16. get_input_dtype
- 5.7.4.17. get_output_dtype
- 5.7.4.18. get_input_scale
- 5.7.4.19. get_output_scale
- 5.7.5. 创建Tensor接口
- 5.8. sail.MultiEngine
- 5.9. sail.bm_image
- 5.10. sail.BMImage
- 5.11. sail.BMImageArray
- 5.12. sail.Decoder
- 5.13. sail.Encoder
- 5.14. sail.Decoder_RawStream
- 5.15. sail.Bmcv
- 5.15.1. __init__
- 5.15.2. bm_image_to_tensor
- 5.15.3. tensor_to_bm_image
- 5.15.4. crop_and_resize
- 5.15.5. crop
- 5.15.6. resize
- 5.15.7. vpp_crop_and_resize
- 5.15.8. vpp_crop_and_resize_padding
- 5.15.9. vpp_crop
- 5.15.10. vpp_resize
- 5.15.11. vpp_resize_padding
- 5.15.12. warp
- 5.15.13. convert_to
- 5.15.14. yuv2bgr
- 5.15.15. rectangle
- 5.15.16. fillRectangle
- 5.15.17. imwrite
- 5.15.18. imread
- 5.15.19. get_handle
- 5.15.20. crop_and_resize_padding
- 5.15.21. convert_format
- 5.15.22. vpp_convert_format
- 5.15.23. putText
- 5.15.24. image_add_weighted
- 5.15.25. image_copy_to
- 5.15.26. image_copy_to_padding
- 5.15.27. nms
- 5.15.28. drawPoint
- 5.15.29. warp_perspective
- 5.15.30. get_bm_data_type
- 5.15.31. get_bm_image_data_format
- 5.15.32. imdecode
- 5.15.33. imencode
- 5.15.34. fft
- 5.15.35. convert_yuv420p_to_gray
- 5.15.36. mat_to_bm_image
- 5.15.37. watermark_superpose
- 5.15.38. polylines
- 5.15.39. mosaic
- 5.15.40. gaussian_blur
- 5.15.41. transpose
- 5.15.42. Sobel
- 5.15.43. drawLines
- 5.15.44. stft
- 5.15.45. istft
- 5.15.46. bmcv_overlay
- 5.15.47. faiss_indexflatL2
- 5.15.48. faiss_indexflatIP
- 5.15.49. faiss_indexPQ_encode
- 5.15.50. faiss_indexPQ_ADC
- 5.15.51. faiss_indexPQ_SDC
- 5.16. sail.Blend
- 5.17. sail.MultiDecoder
- 5.18. SAIL Python 高性能接口
- 5.18.1. sail.TensorPTRWithName
- 5.18.2. sail.ImagePreProcess
- 5.18.3. sail.EngineImagePreProcess
- 5.18.3.1. __init__
- 5.18.3.2. InitImagePreProcess
- 5.18.3.3. SetPaddingAtrr
- 5.18.3.4. SetConvertAtrr
- 5.18.3.5. PushImage
- 5.18.3.6. GetBatchData_Npy
- 5.18.3.7. GetBatchData_Npy2
- 5.18.3.8. GetBatchData
- 5.18.3.9. get_graph_name
- 5.18.3.10. get_input_width
- 5.18.3.11. get_input_height
- 5.18.3.12. get_output_names
- 5.18.3.13. get_output_shape
- 5.18.4. Yolov5 后处理加速接口
- 5.18.5. Yolox后处理加速接口
- 5.18.6. Yolov8后处理加速接口
- 5.18.7. sort 算法
- 5.18.8. deepsort 算法
- 5.18.9. bytetrack 算法
- 5.18.10. openpose 算法
- 5.18.11. nms_rotated 接口
- 5.18.12. Yolov8_seg TPU后处理加速接口
- 5.1. Basic function
- 6. 附录