OpenCV-Python on STM32MP1 with linux: AttributeError: module ‘cv2’ has no attribute ‘FaceDetectorYN_create’

Hello,

I have been using python3.7 and opencv4.6 on my desktop(windows and linux).
Recently, I got a stm32mp1 device and tried to install python3.7 and opencv4.6 here, but opencv4.6 was not installed. The reason is that even though stm32mp1 supports Linux, it is thought that it did not bring all the functions of destop.

I received the latest binary for stm32mp1 in the ST forum, where it is explained that it support up to opencv4.5.

The problem is that when I built the software I developed on stm32mp1, the following error comes out, and according to opencv4.5 document in opencv site, it supports the following attributes. However, the following errors are being made.
“AttributeError: module ‘cv2’ has no attribute ‘FaceDetectorYN_create’”

I would like to ask you how to fix and operate these things normally.

Thank you.
Dr. Kim Hyunseok.

4.5.5 does not have this class

please tell us, what were the problems there

Thank you for your answers.
The below is my error messages.

root@stm32mp1:/usr/local/demo# apt-get install opencv=4.6
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package opencv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Version ‘4.6’ for ‘opencv’ was not found

Thank you .
Dr. Kim Hyunseok

and :

pip install opencv-python

??

The stm32mp1 is not supported pip, also it couldn’t installed with python.

Thank you.