You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simple-camera

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-camera

0.3.0
pipPyPI
Maintainers
1

Simple Camera

Minimum dependencies library for fast rendering of triangle meshes.

Setup

Install with pip:

foo@bar:~$ pip install simple-camera

or manually:

Inside cloned repository run the following:

foo@bar:~$ pip install -r requirements.txt
foo@bar:~$ python setup.py install

Usage

from simple_camera import render_perspective_camera

img = render_perspective_camera(vertices, faces,
                                width=256, height=256, 
                                angles=[0,0,0], translation=[0,0,0], 
                                scale=0.75) 
Image.fromarray(img)

screenshot

Acknowledgements

  • This library is based on Face3D code.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts