vision-agent 0.2.107__tar.gz → 0.2.109__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vision_agent-0.2.107 → vision_agent-0.2.109}/PKG-INFO +1 -1
- {vision_agent-0.2.107 → vision_agent-0.2.109}/pyproject.toml +1 -1
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/tools.py +3 -1
- {vision_agent-0.2.107 → vision_agent-0.2.109}/LICENSE +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/README.md +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/agent.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/agent_utils.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/vision_agent.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/vision_agent_coder.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/vision_agent_coder_prompts.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/vision_agent_prompts.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/clients/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/clients/http.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/clients/landing_public_api.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/fonts/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/lmm/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/lmm/lmm.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/lmm/types.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/meta_tools.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/meta_tools_types.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/prompts.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/tools/tool_utils.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/__init__.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/exceptions.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/execute.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/image_utils.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/sim.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/type_defs.py +0 -0
- {vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/utils/video.py +0 -0
@@ -157,7 +157,7 @@ def owl_v2(
|
|
157
157
|
image_size = image.shape[:2]
|
158
158
|
image_b64 = convert_to_b64(image)
|
159
159
|
request_data = {
|
160
|
-
"prompts": prompt.split(","),
|
160
|
+
"prompts": [s.strip() for s in prompt.split(",")],
|
161
161
|
"image": image_b64,
|
162
162
|
"confidence": box_threshold,
|
163
163
|
"function_name": "owl_v2",
|
@@ -312,6 +312,8 @@ def ocr(image: np.ndarray) -> List[Dict[str, Any]]:
|
|
312
312
|
|
313
313
|
pil_image = Image.fromarray(image).convert("RGB")
|
314
314
|
image_size = pil_image.size[::-1]
|
315
|
+
if image_size[0] < 1 and image_size[1] < 1:
|
316
|
+
return []
|
315
317
|
image_buffer = io.BytesIO()
|
316
318
|
pil_image.save(image_buffer, format="PNG")
|
317
319
|
buffer_bytes = image_buffer.getvalue()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vision_agent-0.2.107 → vision_agent-0.2.109}/vision_agent/agent/vision_agent_coder_prompts.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|