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 。