vision-agent 0.2.55__tar.gz → 0.2.56__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {vision_agent-0.2.55 → vision_agent-0.2.56}/PKG-INFO +13 -9
  2. {vision_agent-0.2.55 → vision_agent-0.2.56}/README.md +12 -8
  3. {vision_agent-0.2.55 → vision_agent-0.2.56}/pyproject.toml +1 -1
  4. {vision_agent-0.2.55 → vision_agent-0.2.56}/LICENSE +0 -0
  5. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/__init__.py +0 -0
  6. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/__init__.py +0 -0
  7. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/agent.py +0 -0
  8. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/agent_coder.py +0 -0
  9. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/agent_coder_prompts.py +0 -0
  10. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/data_interpreter.py +0 -0
  11. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/data_interpreter_prompts.py +0 -0
  12. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/easytool.py +0 -0
  13. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/easytool_prompts.py +0 -0
  14. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/easytool_v2.py +0 -0
  15. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/easytool_v2_prompts.py +0 -0
  16. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/reflexion.py +0 -0
  17. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/reflexion_prompts.py +0 -0
  18. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/vision_agent.py +0 -0
  19. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/agent/vision_agent_prompts.py +0 -0
  20. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/fonts/__init__.py +0 -0
  21. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
  22. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/llm/__init__.py +0 -0
  23. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/llm/llm.py +0 -0
  24. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/lmm/__init__.py +0 -0
  25. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/lmm/lmm.py +0 -0
  26. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/tools/__init__.py +0 -0
  27. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/tools/easytool_tools.py +0 -0
  28. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/tools/prompts.py +0 -0
  29. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/tools/tool_utils.py +0 -0
  30. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/tools/tools.py +0 -0
  31. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/__init__.py +0 -0
  32. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/execute.py +0 -0
  33. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/image_utils.py +0 -0
  34. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/sim.py +0 -0
  35. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/type_defs.py +0 -0
  36. {vision_agent-0.2.55 → vision_agent-0.2.56}/vision_agent/utils/video.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vision-agent
3
- Version: 0.2.55
3
+ Version: 0.2.56
4
4
  Summary: Toolset for Vision Agent
5
5
  Author: Landing AI
6
6
  Author-email: dev@landing.ai
@@ -38,7 +38,6 @@ Description-Content-Type: text/markdown
38
38
  <img alt="vision_agent" height="200px" src="https://github.com/landing-ai/vision-agent/blob/main/assets/logo.jpg?raw=true">
39
39
 
40
40
  # 🔍🤖 Vision Agent
41
-
42
41
  [![](https://dcbadge.vercel.app/api/server/wPdN8RCYew?compact=true&style=flat)](https://discord.gg/wPdN8RCYew)
43
42
  ![ci_status](https://github.com/landing-ai/vision-agent/actions/workflows/ci_cd.yml/badge.svg)
44
43
  [![PyPI version](https://badge.fury.io/py/vision-agent.svg)](https://badge.fury.io/py/vision-agent)
@@ -52,9 +51,14 @@ accomplish the task you want. Vision Agent aims to provide an in-seconds experie
52
51
  allowing users to describe their problem in text and have the agent framework generate
53
52
  code to solve the task for them. Check out our discord for updates and roadmaps!
54
53
 
54
+
55
+ ## Web Application
56
+
57
+ Try Vision Agent live on [va.landing.ai](https://va.landing.ai/)
58
+
55
59
  ## Documentation
56
60
 
57
- - [Vision Agent Library Docs](https://landing-ai.github.io/vision-agent/)
61
+ [Vision Agent Library Docs](https://landing-ai.github.io/vision-agent/)
58
62
 
59
63
 
60
64
  ## Getting Started
@@ -88,28 +92,28 @@ from vision_agent.tools import load_image, grounding_sam
88
92
  def calculate_filled_percentage(image_path: str) -> float:
89
93
  # Step 1: Load the image
90
94
  image = load_image(image_path)
91
-
95
+
92
96
  # Step 2: Segment the jar
93
97
  jar_segments = grounding_sam(prompt="jar", image=image)
94
-
98
+
95
99
  # Step 3: Segment the coffee beans
96
100
  coffee_beans_segments = grounding_sam(prompt="coffee beans", image=image)
97
-
101
+
98
102
  # Step 4: Calculate the area of the segmented jar
99
103
  jar_area = 0
100
104
  for segment in jar_segments:
101
105
  jar_area += segment['mask'].sum()
102
-
106
+
103
107
  # Step 5: Calculate the area of the segmented coffee beans
104
108
  coffee_beans_area = 0
105
109
  for segment in coffee_beans_segments:
106
110
  coffee_beans_area += segment['mask'].sum()
107
-
111
+
108
112
  # Step 6: Compute the percentage of the jar area that is filled with coffee beans
109
113
  if jar_area == 0:
110
114
  return 0.0 # To avoid division by zero
111
115
  filled_percentage = (coffee_beans_area / jar_area) * 100
112
-
116
+
113
117
  # Step 7: Return the computed percentage
114
118
  return filled_percentage
115
119
  ```
@@ -2,7 +2,6 @@
2
2
  <img alt="vision_agent" height="200px" src="https://github.com/landing-ai/vision-agent/blob/main/assets/logo.jpg?raw=true">
3
3
 
4
4
  # 🔍🤖 Vision Agent
5
-
6
5
  [![](https://dcbadge.vercel.app/api/server/wPdN8RCYew?compact=true&style=flat)](https://discord.gg/wPdN8RCYew)
7
6
  ![ci_status](https://github.com/landing-ai/vision-agent/actions/workflows/ci_cd.yml/badge.svg)
8
7
  [![PyPI version](https://badge.fury.io/py/vision-agent.svg)](https://badge.fury.io/py/vision-agent)
@@ -16,9 +15,14 @@ accomplish the task you want. Vision Agent aims to provide an in-seconds experie
16
15
  allowing users to describe their problem in text and have the agent framework generate
17
16
  code to solve the task for them. Check out our discord for updates and roadmaps!
18
17
 
18
+
19
+ ## Web Application
20
+
21
+ Try Vision Agent live on [va.landing.ai](https://va.landing.ai/)
22
+
19
23
  ## Documentation
20
24
 
21
- - [Vision Agent Library Docs](https://landing-ai.github.io/vision-agent/)
25
+ [Vision Agent Library Docs](https://landing-ai.github.io/vision-agent/)
22
26
 
23
27
 
24
28
  ## Getting Started
@@ -52,28 +56,28 @@ from vision_agent.tools import load_image, grounding_sam
52
56
  def calculate_filled_percentage(image_path: str) -> float:
53
57
  # Step 1: Load the image
54
58
  image = load_image(image_path)
55
-
59
+
56
60
  # Step 2: Segment the jar
57
61
  jar_segments = grounding_sam(prompt="jar", image=image)
58
-
62
+
59
63
  # Step 3: Segment the coffee beans
60
64
  coffee_beans_segments = grounding_sam(prompt="coffee beans", image=image)
61
-
65
+
62
66
  # Step 4: Calculate the area of the segmented jar
63
67
  jar_area = 0
64
68
  for segment in jar_segments:
65
69
  jar_area += segment['mask'].sum()
66
-
70
+
67
71
  # Step 5: Calculate the area of the segmented coffee beans
68
72
  coffee_beans_area = 0
69
73
  for segment in coffee_beans_segments:
70
74
  coffee_beans_area += segment['mask'].sum()
71
-
75
+
72
76
  # Step 6: Compute the percentage of the jar area that is filled with coffee beans
73
77
  if jar_area == 0:
74
78
  return 0.0 # To avoid division by zero
75
79
  filled_percentage = (coffee_beans_area / jar_area) * 100
76
-
80
+
77
81
  # Step 7: Return the computed percentage
78
82
  return filled_percentage
79
83
  ```
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "vision-agent"
7
- version = "0.2.55"
7
+ version = "0.2.56"
8
8
  description = "Toolset for Vision Agent"
9
9
  authors = ["Landing AI <dev@landing.ai>"]
10
10
  readme = "README.md"
File without changes