How to use OpenCV API in a Tizen native application?

Original Created Nov 02, 2017 | Regeneration Apr 22, 2026

I'm developing a native application for Tizen and need to use OpenCV functionality. I've found that OpenCV is already included in Tizen (reference: platform/upstream/opencv). Could you please explain how to properly import and use OpenCV in my Tizen native application?

Problem Understanding

The user wants to integrate OpenCV functionality into their Tizen native application but needs guidance on the proper import and setup process.

Solution Methods

  1. Using Pre-installed OpenCV in Tizen:

    • Tizen includes OpenCV in its platform, so you don't need to install it separately.
    • To use it in your native application, you need to link against the OpenCV libraries in your project configuration.
  2. Setting Up the Project:

    • In your CMakeLists.txt or Makefile, add the OpenCV library dependencies.
    • Include the necessary OpenCV headers in your source files.
  3. Reference Implementation:

    • Samsung provides a comprehensive guide on using OpenCV for visual detection and recognition in Tizen applications.

Code Examples

Here's a basic example of how to include OpenCV in your CMake configuration:

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(your_target_name ${OpenCV_LIBS})

And in your C++ source file:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

// Your OpenCV code here

Additional Tips

  • Make sure your Tizen version supports the OpenCV features you need.
  • For specific OpenCV functionality (like face detection), refer to the official documentation.
  • The OpenCV version included in Tizen might be different from the latest upstream version, so check the available features.

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.