Remote Network And System Administration Job In IT And Networking

The OpenPose addon for Blender on Windows 10 can't detect my (virtual) webcam or a video file.

Find more Network And System Administration remote jobs posted recently Worldwide

Hello.

Recently I have installed OpenCV and OpenPose for tracking the head of a 3d character created,rigged and animated in Blender 2.81 on Windows 10. When I use OpenCV I use this addon : FacialMotionCapture

and when I use Open Pose,I have installed this addon :

blender-addon-openpose

Whats the problem ? The problem is that the addon written for OpenCV works good,but the addon for Openpose doesnt : it seems not able to recognize my (virtual) webcam or any video file. I have no python experience,but I have looked inside the addons codes to try to understand why.

Please check the relevant python code thats inside the OpenCV / Facial motion capture addon below :

# Show camera image in a window
cv2.imshow(Output, image)

# Show camera image in a window
cv2.imshow(Output, image)
cv2.waitKey(1)

return { PASS_THROUGH}

def init_camera(self):
if self._cap == None:
self._cap = cv2.VideoCapture(0)
self._cap.set(cv2.CAP_PROP_FRAME_WIDTH, self.width)
self._cap.set(cv2.CAP_PROP_FRAME_HEIGHT, self.height)
self._cap.set(cv2.CAP_PROP_BUFFERSIZE, 1)
time.sleep(1.0)

Now check the relevant python code thats inside the OpenPose addon below :

class Camera:

Utility class embedding a camera, its parameters and buffers

def __init__(self,
path: str) -> None:
self._path = path
self._camera = cv2.VideoCapture()
self._camera.open(path)
self._shape: Tuple[int, int, int] = (0, 0, 0)
self._bbox = [180, 120, 270, 270]
self._bbox_new = self._bbox

class OpenPoseWrapper:
def __init__(self) -> None:
self._cameras: List[Camera] = []
self._image_buffer: Optional[bpy.types.Image] = None
self._camera_paths: List[str] = [/dev/video0, /dev/video1]
self._is_stereo = False
self._is_stereo_calibrated = False

What I want to know is the reason why OpenCV is able to grab the video file that I use,instead the OpenPose addon is not able to do that. I suspect that the code of the OpenPose addon has been written for Linux,but Im using Windows 10. For this reason I should change this line :

self._camera_paths: List[str] = [/dev/video0, /dev/video1]

Infact in Windows 10 there isnt any kind of device like that. So,how should I change the code if I want that Windows 10 is able to detect the video file that the code written for OpenCV is able to detect ?
About the recuiter
Member since May 20, 2018
Ambrish Ahluwal
from Maharashtra, India

Skills & Expertise Required

Windows 10 Administration Python Blender Blender3D 

Open for hiringApply before - Jul 20, 2024

Work from Anywhere

40 hrs / week

Fixed Type

Remote Job

$47.92

Cost

Offer to work on this project closes in 16 days!
Are you interested in this Opportunity?

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

I need data scraped from various website and to document that in a particular mentioned format

I need data scraped from a 2 websites like amazon and Flipkart and store all the data in a particular format. All the product details to be scrapped and the format to save it in csv will be communicated to you.
Right now looking for a freelancer...read more

configuring vs19 with TensorFlow 2.1

Hello,
Im trying to configure python 3.7 with tensorflow 2.1 on visualstudio 19.
As much as it sounds simple the import of tf doesnt work, Im not getting the libraries inside the tf.
looking for someone who knows how to fix this issue

Contact information collection

Looking for a freelancer to find the Youtuber contacts information based on the list of the link we gave. Need someone who is professional to look for correct information and be able to finish the job in a short time.

Full stack web developer

What were looking for:
An experienced full stack developer to help kick-start/build website. We need someone to work on specific project requirements . The project is based on software platforms, frameworks, languages, databases used by company....read more

Python SQL debugging

Im looking for someone to help me with python and SQL. If you know PySpark, that is a plus. This would be in person somewhere in the Des Moines area. A couple of hours a week.