System information (version)
- OpenCV => 4.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
Detailed description
Forwarding images using MaskRCNN fails if the image resolution changes over time.
Steps to reproduce
It works for the first few images, but after about 5 images with each a different resolution no results are available anymore.
in the function postprocess(...)
outDetections = outDetections.reshape(1,(int)(outDetections.total() / 7)); always returns the same number for any forwarded image. Its being stuck at the number of the last successful forwarding.
I used the following code as a reference.
https://github.com/opencv/opencv/blob/48dad1b02ea8f743e6d165e94a5a4842d96c7a7e/samples/dnn/mask_rcnn.cpp
with net.setPreferableBackend(cv::dnn::DNN_BACKEND_OPENCV);