OlafenwaMoses / ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
https://www.genxr.co/#products
MIT License
8.48k stars 2.18k forks source link

LABELS AND COLORS #754

Open Leoperez3006 opened 2 years ago

Leoperez3006 commented 2 years ago

Hey! I found this library very useful and efficient, but I was wondering if theres any way or parameter to change the visibility and color of the label. By default its color is blue, but I need it to be red

this is what my code looks like ` from imageai.Detection import VideoObjectDetection import os

execution_path = os.getcwd()

detector = VideoObjectDetection() detector.setModelTypeAsRetinaNet() detector.setModelPath('C:/Users/leope/OneDrive/Documents/Tec/Tecxotic/videoDetection/weights_86.h5') detector.loadModel()

video_path = detector.detectObjectsFromVideo(input_file_path=os.path.join('C:/Users/leope/OneDrive/Documents/Tec/Tecxotic/videoDetection/7.mp4'), output_file_path='C:/Users/leope/OneDrive/Documents/Tec/Tecxotic/videoDetection/morts' , frames_per_second=24, log_progress=True) print(video_path) `