4037 views|9 replies

42

Posts

1

Resources
The OP
 

【Zhengdian Atom i.MX93 Development Board】2.1 Face Recognition Attendance Machine Environment Construction--opencv and opencv-contrib [Copy link]

This post was last edited by 空耳- on 2024-6-23 23:59

Preface:

The face recognition part mainly uses opencv, and no other third-party libraries are used. This chapter mainly records the compilation process of opencv and opencv-conturb. Host environment: ubuntu20.04 opencv version: 4.8.0 opencv-conturb version: 4.8.0 (remember that the versions of opencv and opencv-conturb must be consistent).

1. Download cmake-gui

Just two steps

sudo apt-get install cmake
sudo apt-get install cmake-qt-gui

2. Download opencv and opencv-conturb source code

You can download it directly from GitHub, but the download speed is worrying. You can sync it to your own gitee repository, and the download will be much faster.

//下载opencv-conturb-4.8.0
git clone https://gitee.com/cool-ditch-repair/opencv_contrib1.git
//下载opencv-4.8.0
git clone https://gitee.com/cool-ditch-repair/opencv.git

3. Compile and install

cmake -DENABLE_PRECOMPILED_HEADERS=OFF -D CMAKE_BUILD_TYPE=Release -DBUILD_TIFF=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/home/airobot/opencv-4.8.0/opencv_contrib-4.8.0/modules/ ..

make -j16
make install

4. Cross-compilation

1. In any directory, enter the cmake-gui interface:

$ sudo cmake-gui

2. Configure build target options

3. Configure the compiler

4. Specify the compiled content, path, etc.

5. Execute configuration and generate Makefile

6. Execute the compilation and wait for errors:

Question collection:

================================

7. Compile and install the extension library opencv_contrib

Find the OPENCV_EXTRA_MODULES_PATH item and select the modules directory under the opencv_contrib-4.8.0 directory of the extension library source code

Click Configure to generate the configuration (if there is still red, click it several times until the red disappears)

Click Generate to generate Makefile

8. Compile and install

Record:

Since the entire compilation process is actually carried out on the company's computer, there are currently no detailed process screenshots on the computer. All process pictures will be added tomorrow.

This post is from Embedded System

Latest reply

[attach]818803[/attach] But it seems that 93 has 2D   Details Published on 2024-6-25 13:55

1108

Posts

1

Resources
2
 

This can be replayed... I'll give it a try! Thanks for sharing!

This post is from Embedded System
 
 

7422

Posts

2

Resources
3
 

Automatically mount gpu of imx?

This post is from Embedded System

Comments

imx.93 doesn't seem to have a GPU, and the screen display is not very smooth  Details Published on 2024-6-24 19:07
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

42

Posts

1

Resources
4
 
freebsder posted on 2024-6-24 14:17 Automatically mount the gpu of imx?

imx.93 doesn't seem to have a GPU, and the screen display is not very smooth

This post is from Embedded System

Comments

Yes, I remember it had a 2D or 3D GPU. High-end products like imx9 should not be without a GPU.  Details Published on 2024-6-25 09:08
 
 
 

7422

Posts

2

Resources
5
 
空耳- Published on 2024-6-24 19:07 imx.93 seems to have no GPU, and the screen display is not very smooth

Yes, I remember it had a 2D or 3D GPU. A high-end product like imx9 should not be without a GPU.

This post is from Embedded System

Comments

Because when I ran the factory image, I felt something was wrong, it wasn't smooth, and then I saw that it didn't have a GPU   Details Published on 2024-6-25 13:42
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

42

Posts

1

Resources
6
 
freebsder posted on 2024-6-25 09:08 Yes, I remember there was a 2D or 3D GPU. High-end products like imx9 should not be without GPU

Really not, I went to look for it again

This post is from Embedded System
 
 
 

42

Posts

1

Resources
7
 
freebsder posted on 2024-6-25 09:08 Yes, I remember there was a 2D or 3D GPU. High-end products like imx9 should not be without GPU

Because when I ran the factory image, I felt something was wrong, it wasn't smooth, and then I saw that it didn't have a GPU

This post is from Embedded System

Comments

This film should be the highest in the imx series, right? No?  Details Published on 2024-6-25 13:54
 
 
 

7422

Posts

2

Resources
8
 
空耳- 发表于 2024-6-25 13:42 Because when I ran the factory image, I felt something was wrong, it was not smooth, and later I saw that it did not have a GPU

This film should be the highest in the imx series, right? No?

This post is from Embedded System
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

7422

Posts

2

Resources
9
 

But it seems that 93 has 2D

This post is from Embedded System

Comments

I checked it out again, and it's indeed 2D.  Details Published on 2024-6-25 15:11
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

42

Posts

1

Resources
10
 
freebsder posted on 2024-6-25 13:55 But it seems that 93 has 2d

I checked it out again, and it's indeed 2D.

This post is from Embedded System
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list