No project description provided
Project description
Car Segmentation Package
Overview
The CarSegmentPro package is developed to facilitate the removal of both internal and external backgrounds from car images. This package comprises two distinct models:
External Model:
Purpose: Removes the background external to cars.
Performance: Known for its effectiveness in this task.
Internal Model:
Purpose: Removes the background internal to cars.
Note: This task involves innovation, where a dataset was collected, and a deep learning model was trained. The achieved accuracy is 75%, which is considered moderate. Keep in mind that sentiment analysis provided suboptimal results.
Usage
External Model Usage
To use the external model for removing the background external to cars, employ the following code:
from carbgremover.external_model import remove_background_external, plot_image
# Parameters:
# image_path: path to the image
# device: "cpu" (default) or "cuda" if you have GPU
res = remove_background_external(image_path='car1.jpg', device="cpu")
plot_image(res, figsize=(15, 15))
Input image:
Output image:
For saving the image, use the following:
import cv2
cv2.imwrite('rescar2.jpg', res)
Internal Model Usage
For the internal model designed to remove the background internal to cars, utilize the following code
from carbgremover.internal_model import remove_background_internal,plot_image
res = remove_background_internal('car2.jpg')
plot_image(res, figsize=(15, 15))
Input image:
Output image:
For saving the image, use the following:
import cv2
res = cv2.cvtColor(res, cv2.COLOR_RGB2BGR)
cv2.imwrite('rescar2.jpg', res)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CarSegmentPro-0.0.1-py3-none-any.whl.
File metadata
- Download URL: CarSegmentPro-0.0.1-py3-none-any.whl
- Upload date:
- Size: 576.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2e8f3e2fd20169b725357071f60ec9bde90ba11102d98501814e2cadbd3c0d0
|
|
| MD5 |
3ac093a2e8bc9e87eda688dd708256e2
|
|
| BLAKE2b-256 |
9ef0394905ae7187e939464a1ec22b11dab085ea9e98bcb5c91840be533a2943
|