duan8/yolov7/include/preprocess.h
AMIYA MAITY ec64a80b4b
Yolov7-Changed eps value (#1444)
* Changed eps value

* Update preprocess.h

---------

Co-authored-by: Wang Xinyu <shaywxy@gmail.com>
2024-03-06 18:38:59 +08:00

17 lines
542 B
C++

#pragma once
#include <cuda_runtime.h>
#include <cstdint>
#include <opencv2/opencv.hpp>
#include <iostream>
void cuda_preprocess_init(int max_image_size);
void cuda_preprocess_destroy();
void cuda_preprocess(uint8_t* src, int src_width, int src_height,
float* dst, int dst_width, int dst_height,
cudaStream_t stream);
void cuda_batch_preprocess(std::vector<cv::Mat>& img_batch,
float* dst, int dst_width, int dst_height,
cudaStream_t stream);