Coder Social home page Coder Social logo

Comments (2)

BoysFight avatar BoysFight commented on September 26, 2024 1

其实我这个场景是想用Node封装一个人脸检测, 关键点检测之类的,每一个检测器都有它自定义的参数;
用templateNode主要是想把每个节点的外部配置参数传入,但是发现用这个节点里不能CGRAPH_CREATE_GPARAM获取其它节点进行通信了。
如果需要把配置参数传入现在是不是只能用GElementParam来实现了呢?

from cgraph.

ChunelFeng avatar ChunelFeng commented on September 26, 2024

感谢老哥的关注。templateNode 的这个问题是我们之前设计的问题。
已经在最新版本中进行修正了,欢迎更新体验。

templateNode中,可以 通过CGRAPH_CREATE_GPARAM 方法,获取参数信息。
同时 GElementParam 的方式传入,也是可以的。

个人推荐的思路是:如果需要传入的参数个数很少,就推荐用 template node的方式
如果需要传入的参数很多,那就推荐用 GElementParam

from cgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.