Skip to content

arturxz/TCC

Repository files navigation

VisionGL Python Wrapper

This is the Python Wrapper for VisionGL library. With VisionGLlibrary, you can process images with improved performance, using your OpenCL device, and Python gives you a high-level way to pre-proccess the images.

Getting Started

Just clone this repositore into visiongl/src/. I usually rename the directory to 'py', you can feel free to do the same.

System Prerequisites

You need to have OpenCL drivers installed. There are a bunch of ways to do that.

On Ubuntu, you can do what this link says. Other Linux distributions are similar, but you need to find the correct commands to do what you want.

  • ArchLinux - GPGPU on archlinux is pretty simple thing to do (Yep, something is simple in Archlinux besides broke the system when you do pacman -Syu)
  • Ubuntu 18.04 LTS - Ubuntu Instructions
  • Windows - Was made on Windows 7/8 but it works on WIndows 10 as well.

Python Prerequisites

You need some Python packages. Depending on where you are, you can install them via your package manager or pip. I'll give you the pip commands, that are universal. But if you like to manage your python packages through your package manager, do it by there! install the same package via pip and your package manager can leave you with serious headache!

pip install mako pyopencl scikit numpy matplotlib pil tifffile dicom

If you have Python 2.x and 3.x installed, you'll need to see if pip defaults to Python 3. If not, you'll need to use:

pip3 install mako pyopencl scikit numpy matplotlib pil tifffile dicom

Running the tests

put a image called yamamoto.jpg and see the thing go.

Built With

Versioning

I've used Github and fear if my computer breaks.

Authors

  • Daniel Dantas - VisionGL guy and advisor professor - ddantas
  • Artur Santos Nascimento - Me, who wrote the code - arturxz

And a special one:

  • Stackoverflow - The true coder of all software on the internet - StackOverflow

License

Follows MIT License.

Acknowledgments

  • Software rocks!