SOPHON-SAIL 用户手册
目录
- 1. 声明
- 2. SAIL
- 3. 编译安装指南
- 4. SAIL C++ API 参考
- 4.1. Basic function
- 4.2. SAIL 枚举类型
- 4.3. Handle
- 4.4. Tensor
- 4.4.1. 构造函数
- 4.4.2. shape
- 4.4.3. dtype
- 4.4.4. scale_from
- 4.4.5. scale_to
- 4.4.6. reshape
- 4.4.7. own_sys_data
- 4.4.8. own_dev_data
- 4.4.9. sync_s2d
- 4.4.10. sync_d2s
- 4.4.11. sync_d2d
- 4.4.12. sync_d2d_stride
- 4.4.13. dump_data
- 4.4.14. memory_set
- 4.4.15. memory_set
- 4.4.16. zeros
- 4.4.17. ones
- 4.4.18. size
- 4.4.19. element_size
- 4.4.20. nbytes
- 4.5. Engine
- 4.5.1. 构造函数
- 4.5.2. get_handle
- 4.5.3. load
- 4.5.4. get_graph_names
- 4.5.5. set_io_mode
- 4.5.6. graph_is_dynamic
- 4.5.7. get_input_names
- 4.5.8. get_output_names
- 4.5.9. get_max_input_shapes
- 4.5.10. get_input_shape
- 4.5.11. get_max_output_shapes
- 4.5.12. get_output_shape
- 4.5.13. get_input_dtype
- 4.5.14. get_output_dtype
- 4.5.15. get_input_scale
- 4.5.16. get_output_scale
- 4.5.17. process
- 4.5.18. get_device_id
- 4.5.19. create_input_tensors_map
- 4.5.20. create_output_tensors_map
- 4.6. BMImage
- 4.7. Bmcv
- 4.7.1. 构造函数
- 4.7.2. bm_image_to_tensor
- 4.7.3. tensor_to_bm_image
- 4.7.4. crop_and_resize
- 4.7.5. crop
- 4.7.6. resize
- 4.7.7. vpp_crop_and_resize
- 4.7.8. vpp_crop_and_resize_padding
- 4.7.9. vpp_crop
- 4.7.10. vpp_resize
- 4.7.11. vpp_resize_padding
- 4.7.12. warp
- 4.7.13. convert_to
- 4.7.14. yuv2bgr
- 4.7.15. rectangle
- 4.7.16. fillRectangle
- 4.7.17. imwrite
- 4.7.18. imwrite
- 4.7.19. get_handle
- 4.7.20. crop_and_resize_padding
- 4.7.21. convert_format
- 4.7.22. vpp_convert_format
- 4.7.23. putText
- 4.7.24. image_add_weighted
- 4.7.25. image_copy_to
- 4.7.26. image_copy_to_padding
- 4.7.27. nms
- 4.7.28. drawPoint
- 4.7.29. warp_perspective
- 4.7.30. get_bm_data_type
- 4.7.31. get_bm_image_data_format
- 4.7.32. imdecode
- 4.7.33. imencode
- 4.7.34. fft
- 4.7.35. convert_yuv420p_to_gray
- 4.7.36. watermark_superpose
- 4.7.37. polylines
- 4.7.38. mosaic
- 4.7.39. gaussian_blur
- 4.7.40. transpose
- 4.7.41. Sobel
- 4.7.42. drawLines
- 4.7.43. stft
- 4.7.44. istft
- 4.7.45. faiss_indexflatL2
- 4.7.46. faiss_indexflatIP
- 4.7.47. faiss_indexPQ_encode
- 4.7.48. faiss_indexPQ_ADC
- 4.7.49. faiss_indexPQ_SDC
- 4.8. Decoder
- 4.9. MultiDecoder
- 4.10. Encoder
- 4.11. PaddingAtrr
- 4.12. Blend
- 4.13. Decoder_RawStream
- 4.14. BMImageArray
- 4.15. bm_image
- 4.16. MultiEngine
- 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.Engine
- 5.5.1. __init__
- 5.5.2. get_handle
- 5.5.3. load
- 5.5.4. get_graph_names
- 5.5.5. set_io_mode
- 5.5.6. graph_is_dynamic
- 5.5.7. get_input_names
- 5.5.8. get_output_names
- 5.5.9. get_max_input_shapes
- 5.5.10. get_input_shape
- 5.5.11. get_max_output_shapes
- 5.5.12. get_output_shape
- 5.5.13. get_input_dtype
- 5.5.14. get_output_dtype
- 5.5.15. get_input_scale
- 5.5.16. get_output_scale
- 5.5.17. process
- 5.5.18. get_device_id
- 5.5.19. create_input_tensors_map
- 5.5.20. create_output_tensors_map
- 5.6. sail.EngineLLM
- 5.6.1. 通用参数说明
- 5.6.2. 构造函数 __init__
- 5.6.3. 推理接口 process
- 5.6.4. 获取信息接口
- 5.6.4.1. get_device_ids
- 5.6.4.2. get_graph_names
- 5.6.4.3. get_addr_mode
- 5.6.4.4. get_stage_num
- 5.6.4.5. get_input_num
- 5.6.4.6. get_output_num
- 5.6.4.7. get_is_dynamic
- 5.6.4.8. get_input_name
- 5.6.4.9. get_output_name
- 5.6.4.10. get_input_tensor_devid
- 5.6.4.11. get_output_tensor_devid
- 5.6.4.12. get_input_shape
- 5.6.4.13. get_output_shape
- 5.6.4.14. get_input_max_shape
- 5.6.4.15. get_output_max_shape
- 5.6.4.16. get_input_dtype
- 5.6.4.17. get_output_dtype
- 5.6.4.18. get_input_scale
- 5.6.4.19. get_output_scale
- 5.6.5. 创建Tensor接口
- 5.7. sail.BMImage
- 5.8. sail.Bmcv
- 5.8.1. __init__
- 5.8.2. bm_image_to_tensor
- 5.8.3. tensor_to_bm_image
- 5.8.4. crop_and_resize
- 5.8.5. crop
- 5.8.6. resize
- 5.8.7. vpp_crop_and_resize
- 5.8.8. vpp_crop_and_resize_padding
- 5.8.9. vpp_crop
- 5.8.10. vpp_resize
- 5.8.11. vpp_resize_padding
- 5.8.12. warp
- 5.8.13. convert_to
- 5.8.14. yuv2bgr
- 5.8.15. rectangle
- 5.8.16. fillRectangle
- 5.8.17. imwrite
- 5.8.18. imread
- 5.8.19. get_handle
- 5.8.20. crop_and_resize_padding
- 5.8.21. convert_format
- 5.8.22. vpp_convert_format
- 5.8.23. putText
- 5.8.24. image_add_weighted
- 5.8.25. image_copy_to
- 5.8.26. image_copy_to_padding
- 5.8.27. nms
- 5.8.28. drawPoint
- 5.8.29. warp_perspective
- 5.8.30. get_bm_data_type
- 5.8.31. get_bm_image_data_format
- 5.8.32. imdecode
- 5.8.33. imencode
- 5.8.34. fft
- 5.8.35. convert_yuv420p_to_gray
- 5.8.36. mat_to_bm_image
- 5.8.37. watermark_superpose
- 5.8.38. polylines
- 5.8.39. mosaic
- 5.8.40. gaussian_blur
- 5.8.41. transpose
- 5.8.42. Sobel
- 5.8.43. drawLines
- 5.8.44. stft
- 5.8.45. istft
- 5.8.46. bmcv_overlay
- 5.8.47. faiss_indexflatL2
- 5.8.48. faiss_indexflatIP
- 5.8.49. faiss_indexPQ_encode
- 5.8.50. faiss_indexPQ_ADC
- 5.8.51. faiss_indexPQ_SDC
- 5.9. sail.Decoder
- 5.10. sail.MultiDecoder
- 5.11. sail.Encoder
- 5.12. sail.PaddingAtrr
- 5.13. sail.Blend
- 5.14. sail.Decoder_RawStream
- 5.15. sail.BMImageArray
- 5.16. sail.bm_image
- 5.17. sail.MultiEngine
- 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. 附录