5 lines of Python code to change the posture of photography
Oct 21, 2023
Press enter or click to view image in full size![]()
novita-client is the Python SDK of Novita.AI, which provides the following features.
- cleanup
- remove-background
- remove-text
- reimagine
- doodle
- merge-face
- mix-pose
- outpainting
- replace-object
- replace-background
- replace-sky
- create-tile
You can install the Novita Python SDK using just one command
pip install novita-clientget NOVITA_API_KEYfrom https://novita.ai/get-started/
Get AnyISalIn’s stories in your inbox
Join Medium for free to get updates from this writer.
Finally, you can try the mix pose demo by following this code.
import os
from novita_client import NovitaClient
from novita_client.utils import base64_to_image
client = NovitaClient(os.getenv('NOVITA_API_KEY'))
res = client.mixpose(
image="https://image.uniqlo.com/UQ/ST3/my/imagesgoods/455359/item/mygoods_23_455359.jpg?width=494",
pose_image="https://image.uniqlo.com/UQ/ST3/ca/imagesgoods/455359/item/cagoods_02_455359.jpg?width=494",
)
base64_to_image(res.image_file).save("./mixpose.png")







