auto labeler
1.0.0

Auto Labeler是一种自动图像注释工具,它利用OpenAI的GPT-4 Vision API的功能来检测图像中的对象并提供边界框注释。
将存储库克隆到您的本地计算机:
git clone https://github.com/Flode-Labs/auto-labeler.git pip 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) :将图像编码为base64格式。detect_objects(image_path, labels) :检测标签指定的图像中的对象。save_tf_annotations(...) :将注释保存在Tensorflow对象检测XML格式中。save_json_annotations(...) :以JSON格式保存注释。process_images_in_folder(...) :指定文件夹中的多个图像。 确保您用实际的OpenAI API键替换YOUR_API_KEY 。