# \#tensorflow

**URL:** https://forum.opencv.org/tag/tensorflow/168.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Understanding the Philosophy Behind OpenCV's DNN Module](https://forum.opencv.org/t/understanding-the-philosophy-behind-opencvs-dnn-module/20906)

<div class="topic-metadata">

**Author:** [@radiantb](https://forum.opencv.org/u/radiantb)\
**Replies:** 0\
**Last updated:** [April 27, 2025, 3:10pm UTC](https://forum.opencv.org/t/understanding-the-philosophy-behind-opencvs-dnn-module/20906 "2025-04-27T15:10:35Z")

</div>

Hello everyone, Sometime back, I was working on a proposal for a GSoC project about integrating LightGlue and ALIKED into OpenCV by using the DNN module and extending Feature2D modules. While experimenting with LightGlu…

---

## [Undefined reference to \`absl::lts\_20240116::log\_internal::LogMessage causes OpenCV v4.10 to fail to build](https://forum.opencv.org/t/undefined-reference-to-absl-logmessage-causes-opencv-v4-10-to-fail-to-build/19485)

<div class="topic-metadata">

**Author:** [@archana](https://forum.opencv.org/u/archana)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 8:46am UTC](https://forum.opencv.org/t/undefined-reference-to-absl-logmessage-causes-opencv-v4-10-to-fail-to-build/19485 "2024-12-10T08:46:42Z")

</div>

Undefined references to absl functions cause OpenCV v4.10 to build failing; protobuf v4.25.3 and abseil-cpp v20140116.1 were used as dependencies. OpenCV version: 4.10.0 Operating System / Platform: Rhel v9.3 Compiler…

---

## [Converting Tenssorflow Js. Model to Regular Tensor Flow Model](https://forum.opencv.org/t/converting-tenssorflow-js-model-to-regular-tensor-flow-model/17379)

<div class="topic-metadata">

**Author:** [@zaxscr](https://forum.opencv.org/u/zaxscr)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 7:30pm UTC](https://forum.opencv.org/t/converting-tenssorflow-js-model-to-regular-tensor-flow-model/17379 "2024-04-22T19:30:16Z")

</div>

I am currently working on a capstone project for my engineering class, where I am making a program that detects certain running forms in Google Co Lab. I have a working pose detector that works with video files and image…

---

## [Personal Opinions on Deep Learning Libraries](https://forum.opencv.org/t/personal-opinions-on-deep-learning-libraries/4833)

<div class="topic-metadata">

**Author:** [@Tron777](https://forum.opencv.org/u/Tron777)\
**Replies:** 8\
**Last updated:** [April 12, 2024, 11:14am UTC](https://forum.opencv.org/t/personal-opinions-on-deep-learning-libraries/4833 "2024-04-12T11:14:54Z")

</div>

Deep learning libraries are crucial for any successful advanced OpenCV Python application. Some are listed below (popular ones): PyTorch Keras TensorFlow Caffe What are your opinions on each framework and the compatib…

---

## [Loading Tensorflow Models Using Opencv and C++](https://forum.opencv.org/t/loading-tensorflow-models-using-opencv-and-c/12878)

<div class="topic-metadata">

**Author:** [@Swapnil\_Baad](https://forum.opencv.org/u/Swapnil_Baad)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 7:33pm UTC](https://forum.opencv.org/t/loading-tensorflow-models-using-opencv-and-c/12878 "2023-04-20T19:33:02Z")

</div>

I have trained a model in python tensorflow 2.5.0. I have to load this model and make classification using opencv and c++. How can I do it? any suggestions?

---

## [How to find the coordinates of green rectangles in images](https://forum.opencv.org/t/how-to-find-the-coordinates-of-green-rectangles-in-images/9247)

<div class="topic-metadata">

**Author:** [@mike123](https://forum.opencv.org/u/mike123)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 7:20pm UTC](https://forum.opencv.org/t/how-to-find-the-coordinates-of-green-rectangles-in-images/9247 "2022-08-19T19:20:53Z")

</div>

I am using those instructions: Training Custom Object Detector — TensorFlow 2 Object Detection API tutorial documentation in order to implement object detection on image. When object detection takes place, I get many gre…

---

## [Real-time Video feed is lagging](https://forum.opencv.org/t/real-time-video-feed-is-lagging/5661)

<div class="topic-metadata">

**Author:** [@Hassan\_Shahzad](https://forum.opencv.org/u/Hassan_Shahzad)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 4:54pm UTC](https://forum.opencv.org/t/real-time-video-feed-is-lagging/5661 "2021-10-15T16:54:12Z")

</div>

Hello guys. I needed to ask you something. I recently worked on two different projects: 1: Face Mask Detection 2: Empty Reception Detection (checks to see if the reception is empty or not) When i trained both the mod…

---

## [Error: Number of input channels should be multiple of 3 but got 1 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes'](https://forum.opencv.org/t/error-number-of-input-channels-should-be-multiple-of-3-but-got-1-in-function-cv-getmemoryshapes/8802)

<div class="topic-metadata">

**Author:** [@cashcoffee](https://forum.opencv.org/u/cashcoffee)\
**Replies:** 8\
**Last updated:** [May 17, 2022, 2:28pm UTC](https://forum.opencv.org/t/error-number-of-input-channels-should-be-multiple-of-3-but-got-1-in-function-cv-getmemoryshapes/8802 "2022-05-17T14:28:24Z")

</div>

Hi! I recently trained a model on Keras and wanted to run it on OpenCV, so I used the ReadNetFromTensorflow function. I made model predictions using the blobFromImage() and .forward() methods. Yet I keep getting this er…

---

## [Loading onnx model generated from TensorFlow2 saved model by tf2onnx using dnn.readNetFromONNX returns Unknown C++ exception](https://forum.opencv.org/t/loading-onnx-model-generated-from-tensorflow2-saved-model-by-tf2onnx-using-dnn-readnetfromonnx-returns-unknown-c-exception/8330)

<div class="topic-metadata">

**Author:** [@KamalLagh](https://forum.opencv.org/u/KamalLagh)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 3:31pm UTC](https://forum.opencv.org/t/loading-onnx-model-generated-from-tensorflow2-saved-model-by-tf2onnx-using-dnn-readnetfromonnx-returns-unknown-c-exception/8330 "2022-04-08T15:31:58Z")

</div>

System information (version) OS Platform: Windows 10 64 bits Tensorflow Version: 2.8 Python version: 3.9.7 OpenCV version: 4.5.5 Detailed description Hi all, I am trying to convert my exported TensorFlow 2 model traine…

---

## [I want to import TensorFlow 2.x - Object Detection - Mask R-CNN Model in OpenCV DNN API](https://forum.opencv.org/t/i-want-to-import-tensorflow-2-x-object-detection-mask-r-cnn-model-in-opencv-dnn-api/1937)

<div class="topic-metadata">

**Author:** [@joni7373](https://forum.opencv.org/u/joni7373)\
**Replies:** 9\
**Last updated:** [December 14, 2021, 12:35pm UTC](https://forum.opencv.org/t/i-want-to-import-tensorflow-2-x-object-detection-mask-r-cnn-model-in-opencv-dnn-api/1937 "2021-12-14T12:35:04Z")

</div>

Hi all, System information (version) \*TensorFlow =\> 2.4.1 OpenCV =\> 4.5.1 Operating System / Platform =\> Windows 10 64 Bit Compiler =\> Visual Studio 2019 Detailed description For my task I want to use the Mask R-CNN…

---

## [Cant run converted keras model in dnn model, get error 'allocateLayers' or 'cv::dnn::dnn4\_v20210301::\`anonymous-namespace'::addConstNodes'](https://forum.opencv.org/t/cant-run-converted-keras-model-in-dnn-model-get-error-allocatelayers-or-cv-anonymous-namespace-addconstnodes/3520)

<div class="topic-metadata">

**Author:** [@o0Maxik0o](https://forum.opencv.org/u/o0Maxik0o)\
**Replies:** 0\
**Last updated:** [May 25, 2021, 11:52am UTC](https://forum.opencv.org/t/cant-run-converted-keras-model-in-dnn-model-get-error-allocatelayers-or-cv-anonymous-namespace-addconstnodes/3520 "2021-05-25T11:52:13Z")

</div>

System information (version) OpenCV =\> 4.5.2 / 4.1.1 Operating System / Platform =\> Windows 10 64 Bit / Ubuntu 16.04 64 Bit python=\> 3.7.9 Detailed description Hello, i am try to run my trained model with openCV but ge…

---

## [Dnn module gives error in net.forward() (eltwise\_layer.cpp: input\[0\]\[j\] == input\[i\]\[j\] in function getMemoryShapes)](https://forum.opencv.org/t/dnn-module-gives-error-in-net-forward-eltwise-layer-cpp-input-0-j-input-i-j-in-function-getmemoryshapes/2354)

<div class="topic-metadata">

**Author:** [@Hayk\_Gasparyan](https://forum.opencv.org/u/Hayk_Gasparyan)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 5:12pm UTC](https://forum.opencv.org/t/dnn-module-gives-error-in-net-forward-eltwise-layer-cpp-input-0-j-input-i-j-in-function-getmemoryshapes/2354 "2021-03-25T17:12:34Z")

</div>

OpenCV =\> 4.2.0.34 (opencv-python) Operating System / Platform =\> Ubuntu 18.04 Compiler =\> Python3.7 I have converted BiSeNet network to frozen .pb file. Then I tried to read and inference it with OpenCV. But got an er…

---

## [Problems importing TensorFlow Object Detection Models into OpenCV DNN C++](https://forum.opencv.org/t/problems-importing-tensorflow-object-detection-models-into-opencv-dnn-c/1838)

<div class="topic-metadata">

**Author:** [@joni7373](https://forum.opencv.org/u/joni7373)\
**Replies:** 2\
**Last updated:** [March 5, 2021, 6:54am UTC](https://forum.opencv.org/t/problems-importing-tensorflow-object-detection-models-into-opencv-dnn-c/1838 "2021-03-05T06:54:50Z")

</div>

Hello everyone, I would like to use the OpenCV DNN (C++) module to make predictions using a pre-trained TensorFlow 2.x object detection model (Mask R-CNN Inception ResNet V2 1024x1024). I have already adapted and retra…

---

## [How to convert yolov4 models into tensorflow and use it in OpenCV](https://forum.opencv.org/t/how-to-convert-yolov4-models-into-tensorflow-and-use-it-in-opencv/1638)

<div class="topic-metadata">

**Author:** [@PommePomme](https://forum.opencv.org/u/PommePomme)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 7:51am UTC](https://forum.opencv.org/t/how-to-convert-yolov4-models-into-tensorflow-and-use-it-in-opencv/1638 "2021-02-22T07:51:40Z")

</div>

Hi there, I’m trying to convert a yolo training into tensorflow model to use it with OpenCV Python. I am using this library GitHub - hunglc007/tensorflow-yolov4-tflite: YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implement…
