Coder Social home page Coder Social logo

carscan.ai's Introduction

cARScan.ai

This repositiory is for the project given to me by carscan.ai

REQUIREMENTS:

  1. Clone this repository git clone https://github.com/DevloperHS/cARScan.ai.git
  2. Get the model file from https://github.com/ayoolaolafenwa/PixelLib/releases/download/1.1/deeplabv3_xception_tf_dim_ordering_tf_kernels.h5 and place it in same directory[cARScan.ai-main]
  3. Go to terminal , change to directory where files are stored [cARScan.ai-main]

USAGE:

  1. Load all the orignal img files in Orignal_Images folder
  2. Load all the background img files im Background_Images folder
  3. Create a new python file in same directory / refer ```demo.py``
Load Dependency
import cv2
from bg_remover import bg_remover # import bg_remover
from bg_changer import bg_changer # import bg_changer
from load_fastest import load_files

# load files
load_files('path = Orignal_Images') 

# set path
orig_img_path = 'Orignal_Images/view2.jpeg' # path to orignal image
bgr_img_path = 'Background_Images/pic_3.jpeg'  path to background image
  • Note currently the function can hold a single path for both parameters
#for removing background 
bg_remover(img_path=orig_img_path, img_name='file.jpeg') # image_name - name given to image
  • Output can be found in Created_Images/Bg_Removed
  • for more control over back ground change the colors = (0,0,0) parameter of bg_remover.py file
# for changing background
bg_changer(inp_img_path=orig_img_path, bg_img_path= bgr_img_path, img_name='file_2.jpeg') 
  • Output can be found in Created_Images/Bg_Changed

If you have suggestion feel free to let me know and for changes use pull request

Sample Files Orignal Image: Orignal Image

Removed Background : Removed Background

Changed background : Changed Background

carscan.ai's People

Contributors

devloperhs avatar

Watchers

 avatar

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.