bytedeco/javacv

The blobFromImage function returns an abnormal result

Open

#2095 aperta il 11 set 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Java (1583 fork)batch import
help wantedquestion

Metriche repository

Star
 (6985 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

This is my code,the width and height of the blob are always -1. Mat img = opencv_imgcodecs.imread(imagePath); Mat blob = opencv_dnn.blobFromImage(img, 1.0, new Size(640, 640), new Scalar(0.0), true, false, CV_32F);

Guida contributor