Giter VIP home page Giter VIP logo

openvino_superres's Introduction

Image super resolution practice with Intel OpenVINO

This project is designed as practicing challenge for everyone interested in Intel OpenVINO toolkit. It demonstrates

  • OpenVINO's super resolution network adopted to work on varying input resolutions.
  • Complete sample to upscale a single image (x3)

Project structute

  • data - a folder with visual data (images, video)
  • superres_img.py - script to run super resolution for image
  • superres_mri.py - MRI visualization script

Setup

  1. Download and install OpenVINO: https://software.seek.intel.com/openvino-toolkit

  2. Download model

  1. Setup environment

    • Windows

      "C:\Program Files (x86)\IntelSWTools\openvino\bin\setupvars.bat"

      Expected output:

      Python 3.7.6
      ECHO is off.
      PYTHONPATH=C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;C:\Program Files (x86)\IntelSWTools\openvino\python\python3.7;C:\Program Files (x86)\IntelSWTools\openvino\python\python3;C:\Users\dkurtaev\opencv\build\lib\Release
      [setupvars.bat] OpenVINO environment initialized
    • Linux

      source /opt/intel/openvino/bin/setupvars.sh

      Expected output:

      [setupvars.sh] OpenVINO environment initialized

Single image run

python3 superres_img.py -i data/sample.png

Source image (click to expand):

Bicubic interpolation Network output

python3 superres_img.py -i data/mri.png

Source image (click to expand):

Bicubic interpolation Network output

source: Calgary-Campinas Public Brain MR Dataset

Practice

  1. Create a script superres_video.py based on superres_img.py which can process video file data/video.mp4 and show three windows: source video, resized with cv.INTER_CUBIC and upscaled by OpenVINO network.

  2. Extend superres_mri.py so it could show both cv.INTER_CUBIC and output from OpenVINO network (on different windows or in a single window).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.