davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++

Home Page:http://dlib.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[HELP] How to invert the process after alignment?

Mayorc1978 opened this issue · comments

How do I Invert the alignment after performing edits on the chipped (aligned) images?

From the code the process looks like this:

faces = dlib.full_object_detections()
for detection in dets:
    faces.append(sp(img, detection))
images = dlib.get_face_chips(img, faces, size=320)

Any API call to get the transform, save it in a variable, then revert the alignment? Or a direct call with the chipped image and the cropped image as parameters to get the transform, or a call to embed and render the edited chipped image back on the original uncropped image?

There is tooling in dlib to do that. It's not exposed to python though. E.g. dlib::get_mapping_to_chip()

There is tooling in dlib to do that. It's not exposed to python though. E.g. dlib::get_mapping_to_chip()

How do I make a wrapper for that method in Python?

The python bindings are over in the tools/python/src folder and use pybind11.

Warning: this issue has been inactive for 35 days and will be automatically closed on 2022-07-23 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Warning: this issue has been inactive for 43 days and will be automatically closed on 2022-07-23 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.