High-level design overview

High-level design overview {#gapi_hld}

G-API High-level design overview

G-API is a heterogeneous framework and provides an unified API to
program image processing pipelines with a number of supported
backends.

The key design idea is to keep pipeline code itself platform-neutral
while specifying which kernels to use and which devices to utilize
using extra parameters at graph compile (configuration) time. This
requirement has led to the following architecture:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-QkmODMfI-1642433292221)(pics/gapi_scheme.png)]

There are three layers in this architecture:

  • API Layer – this is the top layer, which implements G-API
    public interface, its building blocks and semantics.
    When user constructs a pipeline with G-API, he interacts with this
    layer directly, and the entities the user operates on (like cv::GMat
    or cv::GComputation) are provided by this layer.
  • Graph Compiler Layer – this is the intermediate layer which
    unrolls user computation into a graph and then applies a number of
    transformations to it (e.g. optimizations). This layer is built atop
    of [ADE Framework](@ref gapi_detail_ade).
  • Backends Layer – this is the lowest level layer, which lists a
    number of Backends. In contrast with the above two layers,
    backends are highly coupled with low-level platform details, with
    every backend standing for every platform. A backend operates on a
    processed graph (coming from the graph compiler) and executes this
    graph optimally for a specific platform or device.

API layer {#gapi_api_layer}

API l

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值