How can i do that install openCV for python using libSM.so.6 library that webOS does not have it

Hi!

I did build the webOS for qemux86, Raspberry Pi3, 4 and then install pip using curl to download that can install pip for python.

And I wrote 'pip install opencv-python' to terminal, so successfully install the 'opencv-python' but I can't 'import cv2' because webOS OSE don't have 'libSM.so.6' library.
I want to import cv2 using libSM.so.6 library

If i want to use libSM.so.6 on webOS, I think need to build the libSM.so.6 library together via yocto. But I don't know how. What should I do?

plz help me.. T.T

u can see below the error messege
"ImportError: libSM.so.6: cannot open shared object file: No such file or directory"

information :
hardware : raspberryPi 4 (4GB)

Hi,

If you have source code to build libSM.so.6, you can build it using toolchain that comes from webOS NDK (https://www.webosose.org/docs/guides/setup/native-development-kit-setup/).

than you can move that shared library to the suitable location such as /usr/lib.
But, I can't give a definite answer because I didn't try that.

Instead of building a libSM library, I try to build OpenCV using yocto. If I will find a proper solution to use OpenCV, I will share how to you.

1 Like

As far as I know, webOS OSE already has an oepnCV recipe. So, I tried to build an openCV component, but I met an error and didn't solve it.

build-webos$bitbake opencv

If I will be successful in building an openCV, I will let you know.

@SSo Could you try to build an OpenCV in your build environment?

Hi,
First of all, I use the ubuntu 18.04 version. First, the results of compiling openCV for raspberry pi 3 are as follows.

Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:14
Parsing of 2607 .bb files complete (0 cached, 2607 parsed). 3627 targets, 460 skipped, 44 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-webos-linux-gnueabi"
MACHINE              = "raspberrypi3"
DISTRO               = "webos"
DISTRO_VERSION       = "2.4.g"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU           = "hard"
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "199e974a41cea43516572320d32eac3d6df4df79"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.4.0"
DATETIME             = "20200422155310"
meta-security        = "thud:31dc4e7532fa7a82060e0b50e5eb8d0414aa7e93"
meta-webos-smack     
meta-webos-virtualization 
meta-webos-updater   
meta-webos-raspberrypi = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-raspberrypi     = "thud:4e5be97d75668804694412f9b86e9291edb38b9d"
meta-webos           
meta-webos-backports-3.1 
meta-webos-backports-3.0 
meta-webos-backports-2.7 = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-qt5             = "warrior:20331bd6b696793a7aa23a3c035e5ebcf3075aa3"
meta-virtualization  = "thud:7685c7d415e0002c448007960837ae8898cd57a5"
meta-updater         = "thud:544eecf0f74c708f531328116bcff4386fb3906f"
meta-filesystems     
meta-python          
meta-networking      
meta-multimedia      
meta-oe              = "thud:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta                 = "thud:e68991ceb5933f7d03b96697e8a0ba0829feb320"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 980 Found 0 Missed 980 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: icu-native-62.1-r0 do_fetch: Checksum mismatch for local file /home/rora/build-webos/downloads/icu4c-62_1-src.tgz
Cleaning and trying again.
WARNING: icu-native-62.1-r0 do_fetch: Renaming /home/rora/build-webos/downloads/icu4c-62_1-src.tgz to /home/rora/build-webos/downloads/icu4c-62_1-src.tgz_bad-checksum_12e8318ac3a7290b707507d8ef1b48be
WARNING: icu-native-62.1-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz - will attempt other sources if available
WARNING: glog-0.3.5-r0 do_fetch: Failed to fetch URL git://github.com/google/glog.git;branch=v035, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 2942 tasks of which 5 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 223 scratch)
NOTE:   do_package_qa: 0.0% sstate reuse(0 setscene, 102 scratch)
NOTE:   do_package: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE:   do_package_write_ipk: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 215 scratch)

Summary: There were 4 WARNING messages shown.

I'm compiling openCV for raspberry Pi4. I'll leave a comment when the result comes out.

It looks successfully to build an openCV for RPI3. Then you can move the IPK file to RPI3(webOS OSE 1.x) and try to install it using opkg command.

Today I reset Ubuntu of my laptop from 14.04 to 18.04. and I will try to build OpenCV for RPI4.

I did it successfully for raspberryPi 4.
below is result of my build

rora@rora:~/Documents/ose/build-webos$ bitbake opencv
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3627 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-webos-linux-gnueabi"
MACHINE              = "raspberrypi4"
DISTRO               = "webos"
DISTRO_VERSION       = "2.4.g"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU           = "hard"
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "199e974a41cea43516572320d32eac3d6df4df79"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.4.0"
DATETIME             = "20200423191546"
meta-security        = "thud:31dc4e7532fa7a82060e0b50e5eb8d0414aa7e93"
meta-webos-smack     
meta-webos-virtualization 
meta-webos-updater   
meta-webos-raspberrypi = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-raspberrypi     = "thud:4e5be97d75668804694412f9b86e9291edb38b9d"
meta-webos           
meta-webos-backports-3.1 
meta-webos-backports-3.0 
meta-webos-backports-2.7 = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-qt5             = "warrior:20331bd6b696793a7aa23a3c035e5ebcf3075aa3"
meta-virtualization  = "thud:7685c7d415e0002c448007960837ae8898cd57a5"
meta-updater         = "thud:544eecf0f74c708f531328116bcff4386fb3906f"
meta-filesystems     
meta-python          
meta-networking      
meta-multimedia      
meta-oe              = "thud:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta                 = "thud:e68991ceb5933f7d03b96697e8a0ba0829feb320"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 360 Found 9 Missed 351 Current 612 (2% match, 63% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: glog-0.3.5-r0 do_fetch: Failed to fetch URL git://github.com/google/glog.git;branch=v035, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 2920 tasks of which 2323 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 10 scratch)
NOTE:   do_package_qa: 0.0% sstate reuse(0 setscene, 102 scratch)
NOTE:   do_package: 46.2% sstate reuse(6 setscene, 7 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 7 scratch)
NOTE:   do_package_write_ipk: 0.0% sstate reuse(0 setscene, 7 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 215 scratch)

Summary: There was 1 WARNING message shown.

Wow !! Congrats.
Could you share the built IPK file?

Yes, but I don't know which of the ipk files on BULD/deploy/ipk/raspberrypi4/ are required for installation. and what method to use to share the ipk file for you?

If you reply to this, I'll share the build ipk file to you.

lists of result ipk:

-rw-r--r-- 2 rora rora    206322  4월 24 04:51 libopencv-aruco3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       972  4월 24 04:51 libopencv-aruco-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     39192  4월 24 04:51 libopencv-bgsegm3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       976  4월 24 04:51 libopencv-bgsegm-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     46542  4월 24 04:51 libopencv-bioinspired3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-bioinspired-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    388476  4월 24 04:51 libopencv-calib3d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       972  4월 24 04:51 libopencv-calib3d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    108582  4월 24 04:51 libopencv-ccalib3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       990  4월 24 04:51 libopencv-ccalib-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    641260  4월 24 04:51 libopencv-core3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       950  4월 24 04:51 libopencv-core-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     99094  4월 24 04:51 libopencv-datasets3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-datasets-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     32054  4월 24 04:51 libopencv-dpm3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       960  4월 24 04:51 libopencv-dpm-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    160922  4월 24 04:51 libopencv-face3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       978  4월 24 04:51 libopencv-face-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    191420  4월 24 04:51 libopencv-features2d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       978  4월 24 04:51 libopencv-features2d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     78648  4월 24 04:51 libopencv-flann3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       958  4월 24 04:51 libopencv-flann-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     27030  4월 24 04:51 libopencv-fuzzy3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       958  4월 24 04:51 libopencv-fuzzy-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     22694  4월 24 04:51 libopencv-hfs3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       962  4월 24 04:51 libopencv-hfs-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     12070  4월 24 04:51 libopencv-highgui3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-highgui-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    214470  4월 24 04:51 libopencv-imgcodecs3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       972  4월 24 04:51 libopencv-imgcodecs-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     22942  4월 24 04:51 libopencv-img-hash3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-img-hash-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    723068  4월 24 04:51 libopencv-imgproc3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       962  4월 24 04:51 libopencv-imgproc-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     49404  4월 24 04:51 libopencv-line-descriptor3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       982  4월 24 04:51 libopencv-line-descriptor-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    201388  4월 24 04:51 libopencv-ml3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       950  4월 24 04:51 libopencv-ml-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    123126  4월 24 04:51 libopencv-objdetect3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       972  4월 24 04:51 libopencv-objdetect-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     86264  4월 24 04:51 libopencv-optflow3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       992  4월 24 04:51 libopencv-optflow-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     10304  4월 24 04:51 libopencv-phase-unwrapping3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       978  4월 24 04:51 libopencv-phase-unwrapping-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    163524  4월 24 04:51 libopencv-photo3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       964  4월 24 04:51 libopencv-photo-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     12070  4월 24 04:51 libopencv-plot3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       962  4월 24 04:51 libopencv-plot-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     32844  4월 24 04:51 libopencv-reg3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       962  4월 24 04:51 libopencv-reg-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    125464  4월 24 04:51 libopencv-rgbd3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-rgbd-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     49540  4월 24 04:51 libopencv-saliency3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-saliency-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     49792  4월 24 04:51 libopencv-shape3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       970  4월 24 04:51 libopencv-shape-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     35634  4월 24 04:51 libopencv-stereo3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       974  4월 24 04:51 libopencv-stereo-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    140282  4월 24 04:51 libopencv-stitching3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       994  4월 24 04:51 libopencv-stitching-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     25368  4월 24 04:51 libopencv-structured-light3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora      1002  4월 24 04:51 libopencv-structured-light-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     29958  4월 24 04:51 libopencv-superres3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       978  4월 24 04:51 libopencv-superres-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     90630  4월 24 04:51 libopencv-surface-matching3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       982  4월 24 04:51 libopencv-surface-matching-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora   1185230  4월 24 04:51 libopencv-tracking3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       976  4월 24 04:51 libopencv-tracking-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       924  4월 24 04:51 libopencv-ts-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     83086  4월 24 04:51 libopencv-video3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       964  4월 24 04:51 libopencv-video-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     81244  4월 24 04:51 libopencv-videoio3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       996  4월 24 04:51 libopencv-videoio-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     81978  4월 24 04:51 libopencv-videostab3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       996  4월 24 04:51 libopencv-videostab-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora   1070752  4월 24 04:51 libopencv-xfeatures2d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       980  4월 24 04:51 libopencv-xfeatures2d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    290046  4월 24 04:51 libopencv-ximgproc3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       980  4월 24 04:51 libopencv-ximgproc-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     27954  4월 24 04:51 libopencv-xobjdetect3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       984  4월 24 04:51 libopencv-xobjdetect-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     63876  4월 24 04:51 libopencv-xphoto3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora       968  4월 24 04:51 libopencv-xphoto-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora      1008  4월 24 04:51 opencv_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora   1402854  4월 24 04:51 opencv-apps_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora  59721788  4월 24 04:51 opencv-dbg_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    743190  4월 24 04:51 opencv-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora     41888  4월 24 04:51 opencv-samples_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora    810050  4월 24 04:51 python3-opencv_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk

I also succeeded to build the image. So, I have same thing that you have. But, I don't have any idea which IPKs are useful for using the openCV. If i may find, will share with you.

You can add opencv when building webos-image. Then all libraries will be added after making image,

Before running "bitbake webos-image", you need to add opencv into WEBOS_FOSS_MISSING_FROM_RDEPENDS of "/build-webos/meta-webosose/meta-webos/recipes-core/packagegroups/packagegroup-webos-extended.bb" file.

WEBOS_FOSS_MISSING_FROM_RDEPENDS = " \
    bzip2 \
    curl \
    e2fsprogs \
    hunspell \
    icu \
    iproute2 \
    lsb \
    makedevs \
    ncurses \
    openssl \
    procps \
    psmisc \
    sqlite3 \
    opencv \
    ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'systemd-analyze', 'sysvinit-pidof', d)} \

After creating an image including the openCV, you can use the openCV on python code. But you MUST use 'python3.5' command instead of 'python' command. (As far as I know, default python command of webOS OSE 2.X is based on 2.7.16.

Python 3.5

root@raspberrypi4:/usr/lib/python3.5# python3.5
Python 3.5.6 (default, Jan  1 1970, 00:00:00)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.4.3'
>>> exit()

Python 2.7

root@raspberrypi4:/usr/lib/python3.5# python
Python 2.7.16 (default, Jan  1 1970, 00:00:00)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cv2
>>>

Thank u. @nicolas

I'm trying to build

I'll answer the result to you.

Hi @nicolas

I want to create an image including the openCV. But i failed building image.

So could you share image including the openCV?

I will send you 2.5.0 version with openCV after building the image.

hi can you share image including the openCV to me?

Hi, @hyedinion

This link is to download a prebuilt image of webOS OSE 2.6.0 with OpenCV. You can download it until 30, Aug.