warmshao / FasterLivePortrait

Bring portraits to life in Real Time!onnx/tensorrt support!实时肖像驱动!
502 stars 47 forks source link

Webcame demo QT error #73

Open jaehyunshinML opened 2 months ago

jaehyunshinML commented 2 months ago

Hi,

Thanks for your amazing works.

I was able to run the TensorRT demo with image and driving video through your docker image then I tried the webcame demo but got this error

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/miniconda3/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

do you have any solution ? it seems docker image need to rebuild to accommodate display ?

Thanks for your help.

warmshao commented 2 months ago

Hi,

Thanks for your amazing works.

I was able to run the TensorRT demo with image and driving video through your docker image then I tried the webcame demo but got this error

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/miniconda3/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

do you have any solution ? it seems docker image need to rebuild to accommodate display ?

Thanks for your help.

Using a camera in Docker and displaying the output with imshow can be tricky. You'll need to research how to map the host machine's camera port and handle image display.