superuser789 / MediaPipe-on-RaspberryPi

MediaPipe on Raspberry Pi
41 stars 3 forks source link

mediapipe-rpi3 FaceDetection class doesn't accept keyword "model_selection=1" #4

Closed johncblacker closed 3 years ago

johncblacker commented 3 years ago

Running from example on mediapipe website (github) and the face detection example fails with TypeError because of using "model_selection=1" complaining that it doesn't accept the keyword. I took the "model_selection=1" out and let it default, but that means I can't use the other model Exact message: TypeError:: init() got an unexpected keyword argument 'model_selection'

Pulled this example code off the media pip README.md for face detection.

johncblacker commented 3 years ago

I made a change to a local copy of the source and after several hours of frustration trying to "rebuild" the wheel with my changes, I found that in the WORKSPACE file the info regarding retrieval of the "rules_cc" repo from github is wrong because the name was changed by the Bazel folks. The new url is now: https://github.com/bazelbuild/rules_cc/archive/refs/heads/main.zip and the other reference to rules_cc-master has to be changed to rules_cc-main Please also make it clear that these repositories are NOT official mediapipe repos and are not supported by mediapipe solutions support.

johncblacker commented 3 years ago

Closing with noted corrections required per previous post.