Is it possible to get the feature map from OpenCV's DNN module?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Zigi - Workflow assistant built for devs & their teams
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • Sonar - Free webinar: The Power of Clean C++
  • treecounter-ML

    A simple application that detects and counts the number of trees in a vineyard. Makes use of darknet and OpenCV.

    You can take a look at an example implementation of the code here. I was wondering how I can extract the feature maps from a particular layer using the dnn module. I thought of using the net.forward() to do it, but I am not sure if this is the correct way, and more importantly, I do not want to run two forward passes on the same image(I do not think it will be an elegant implementation).

  • OpenCV

    Open Source Computer Vision Library

    It accesses the learned params stored in each layer.

  • Zigi

    Workflow assistant built for devs & their teams. Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts