auto labeler
1.0.0

Auto Labeler is an automated image annotation tool that leverages the power of OpenAI's GPT-4 Vision API to detect objects in images and provide bounding box annotations.
Clone the repository to your local machine:
git clone https://github.com/Flode-Labs/auto-labeler.gitpip install -r requirements.txt
api_key = "YOUR_API_KEY"input_folder = '/path/to/input/folder'output_folder = '/path/to/output/folder'output_format = 'json' # or 'tf'labels = ['cat', 'dog', 'bird']python main.pyencode_image(image_path): Encodes the image to base64 format.detect_objects(image_path, labels): Detects objects in the image as specified by labels.save_tf_annotations(...): Saves annotations in TensorFlow Object Detection XML format.save_json_annotations(...): Saves annotations in JSON format.process_images_in_folder(...): Processes multiple images in a specified folder.Ensure you replace YOUR_API_KEY with your actual OpenAI API key.