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(...) :指定されたフォルダー内の複数の画像を処理します。 YOUR_API_KEY実際のOpenAI APIキーに置き換えてください。