nvjpeg-python icon indicating copy to clipboard operation
nvjpeg-python copied to clipboard

why use more CPU than opencv

Open nistarlwc opened this issue 2 years ago • 0 comments
trafficstars

save some image.

img = cv2.imread(img_file, cv2.IMREAD_COLOR)   
nj_jpg = nj.encode(img, 100)   
fp = open(output_img_path, "wb")   
fp.write(nj_jpg)   
fp.close()

if use cv2.imwrite only use 14% CPU, but nvjpeg use 26% CPU

nistarlwc avatar Jun 13 '23 05:06 nistarlwc