Ask Your Question

What is TAPI?

asked 2014-07-10 07:45:39 -0500

Adi gravatar image

The OpenCV code-base contains several mentions of tapi-related sample etc.
What is "tapi"?

edit retag flag offensive close merge delete



+1 - Same question I have been keeping in my mind for some time... thank you

Abid Rahman K gravatar imageAbid Rahman K ( 2014-07-10 10:42:55 -0500 )edit

2 answers

Sort by » oldest newest most voted

answered 2014-07-10 08:18:33 -0500

"T-API" means "Transparent API".

I think that the following document is useful to understand "Transparent API".

edit flag offensive delete link more

answered 2014-07-15 02:38:59 -0500

Adi gravatar image

To complement @dandelion1124's answer, here is the relevant slide 19:

GPU acceleration: Transparent API

  • same code can run on CPU or GPU – no specialized cv::Canny, ocl::Canny, etc; no recompilation is needed
  • minimal or no changes in the existing code
    • CPU-only processing – no changes required
  • includes the following key components:
    • new data structure UMat
    • simple and robust mechanism for async processing
    • open to extensions: convenient OpenCL wrappers for accelerating user algorithms
edit flag offensive delete link more


Please let me explain further. If you call ocl::setUseOpenCL() explicitly, you can select the behavior of UMat. This function's argument is boolean value. If you use this function, you need to include <opencv2/core/ocl.hpp>.

dandelion1124 gravatar imagedandelion1124 ( 2014-07-15 06:32:05 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-07-10 07:45:39 -0500

Seen: 2,157 times

Last updated: Jul 15 '14