 
					
				
		
Hi NXPs,
My name is Toan. Currently, I'm using iMX6UL-EVK. I did many things with it. It's so great. And now I have some trouble:
I'm using kernel 4.14.98_2.0.0. I can only install PyQt5 which running with Python 2( PyQt4 is not available). But I can not install OpenCV for python2. I can install for Python3 via edit local.conf file. 
And I wanna use opencv on python2 to combine with PyQt5. So what should I do now ?
Note: I try to install via source code with cmake but It's require Qt5 configure or anything like this. I also try with pip,
$ pip install opencv-python
Thank you so much,
Toan
Solved! Go to Solution.
 
					
				
		
Hi weidong.sun,
Thank you for your support. Finally, I installed OpenCV with python 2 successfully. I installed pt5-creator first and then I install opencv via source code. It's quite stupid but It's successfully and it's take a long time. I think I need to solve a new issue.
Thank you again !
Best regards,
Toan
 
					
				
		
 weidong_sun
		
			weidong_sun
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello Dao Van Toan,
There are many documents in our community describing how to install opencv, such as the following link.
Setting Up OpenCV in i.MX6 Based Boards
Building OpenCV on ubuntu hardfloat rootfs for i.MX6Q
If you think these documents are not enough, you can search "building opencv" in the community.
Have a nice day!
BR,
Weidong
 
					
				
		
Hi weidong.sun,
Thank you for your response. The links above may not help. Because iMX6Q can run Ubuntu and iMX6UL is not. Do you think iMX6UL-EVK can run with the ubuntu(linaro-alip) ?
Regards,
Toan
 
					
				
		
 weidong_sun
		
			weidong_sun
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello Dao,
I don't know if you can access the link , which guides users to add opencv to Yocto.
https://blog.csdn.net/caibaihui/article/details/20741649
If you can't access it, you can see below, please!
You can refer to it, but you konw , there is no GPU in i.MX6UL, so APIs required GPU in OpenCV can not be used.
------------------------------------------------------------------------------------------------------------------------------------------------
 
					
				
		
Hi weidong.sun,
Thank you for your support. Finally, I installed OpenCV with python 2 successfully. I installed pt5-creator first and then I install opencv via source code. It's quite stupid but It's successfully and it's take a long time. I think I need to solve a new issue.
Thank you again !
Best regards,
Toan
 
					
				
		
Hi weidong.sun,
I tried follow your link and it's not working (not compatible with python 2 and also python 3). I think the problem is kernel version. I'm using both BSP kernel version 4.14.98 and 4.9.98. Kernel 4.14.98 has opnecv 4.0.1 and kernel 4.9.98 has opencv 3.4. So I guess that if I use kernel lower, I will get opencv 2.4.7 which only compatible with python 2.
Regards,
Toan
 
					
				
		
Hi weidong.sun,
Thank you for your enthusiasm. I think this Saturday, I will don't have day-off and wrestle with this issue. It's very worth to try.
Best regards,
Toan
