Repository: opencv
Issue: Unsupported data type: BOOL in function 'getMatFromTensor' after call readNetFromONNX (TensorFlow -> ONNX)
Labels: feature,priority: low,category: dnn,confirmed,category: dnn (onnx)

##### System information (version)

- OpenCV => 4.5.1.48
- Operating System / Platform => Google Colab


##### Detailed description

I've got the following error:
 OpenCV(4.5.1) /tmp/pip-req-build-1syr35c1/opencv/modules/dnn/src/onnx/onnx_graph_simplifier.cpp:592: error: (-210:Unsupported format or combination of formats) Unsupported data type: BOOL in function 'getMatFromTensor'

because in onnx_graph_simplifier.cpp the TensorProto_DataType_BOOL isn't mentioned, will it be added soon?

The model I converted is Mask R-CNN Inception Resnet V2, you can download it from this link:

http://download.tensorflow.org/models/object_detection/tf2/20200711/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8.tar.gz

I trained it with TensorFlow 2, I've used the saved_model format and converted it to ONNX doing the following:



##### Steps to reproduce
```
pip install tf2onnx
pip install opencv-python==4.5.1.48
python -m tf2onnx.convert --saved-model /path/to/saved_model/dir/ --opset 13 --output /path/to/model.onnx


import cv2
net = cv2.dnn.readNetFromONNX('/path/to/model.onnx')   #This is where the error raises
image = cv2.imread("/path/to/image_example.jpg")
blob = cv2.dnn.blobFromImage(image)
net.setInput(blob)
net.forward()
```



##### Issue submission checklist

 - [X] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [X] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [X] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->