Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging as API #35

Open
padmalcom opened this issue Dec 12, 2022 · 1 comment
Open

Packaging as API #35

padmalcom opened this issue Dec 12, 2022 · 1 comment

Comments

@padmalcom
Copy link

Hi, first of all: thank you for your fantastic work!

I'd like to integrate gaze estimation in my project but it's a tough job since I have to build an API around your demo.

Do you have any plans to provide an API or are you currently working on one? Otherwise, I'd like to take the code and build one myself.

@cancan101
Copy link

It looks like calling these lines of code might get you what you are looking for:

undistorted = cv2.undistort(
image, self.gaze_estimator.camera.camera_matrix,
self.gaze_estimator.camera.dist_coefficients)
self.visualizer.set_image(image.copy())
faces = self.gaze_estimator.detect_faces(undistorted)

(not including the self.visualizer.set_image(image.copy()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants