Brainy Pi

Available to select audience (currently beta)

Opencv examples

Description

Opencv library has collection of image processing techniques, deep learning models and functionalities which makes it easy to implement computer vision based applications.

INFO
This documentation is for Rbian OS version: 0.7.2-beta & for Opencv version 4.6.0.
To check the version of Rbian run the command in terminal
				
					os-version
				
			
Note: If the command fails or gives error then Rbian version is < 0.7.2-beta.
To check the version of Opencv run the command in python
				
					import cv2
print(cv2.__version__)
				
			

Image Colorization

  • This application colorizes the black and white image.
  • Prerequisites
  • Clone the repository
				
					git clone https://github.com/brainypi/BrainyPi-AI-Examples.git
cd BrainyPi-AI-Examples/Opencv/colorize-image
				
			
  • Download the model from drive: Drive Link
  • Run Image Colorization example
				
					python3 colorize.py
				
			
  • Input
    • Put all images you want to colorize in test_samples folder
    • Use Opencv VideoCapture to convert black and white video to color video
  • Output
    • Shows the colorized output image.
INFO
First, Ensure version of OS installed and the version this document is intended for match. If they match and yet problem persists. Please use this Forum link for community help.
If you are an enterprise customer please use the ticketing system login provided to you for priority support.

Previous

<< Pytorch Examples

Index