Build computer vision systems from natural language with Groundlight
Project description
Groundlight Python SDK
Groundlight makes it simple to build reliable visual applications. Read the full documentation here.
Computer Vision powered by Natural Language
pip install groundlight
Build a working computer vision system in just a few lines of python:
from groundlight import Groundlight
from PIL import Image
import requests
gl = Groundlight()
d = gl.get_or_create_detector(name="doorway", query="Is the doorway open?")
image_url = "https://images.selfstorage.com/large-compress/2174925f24362c479b2.jpg"
image = Image.open(requests.get(image_url, stream=True).raw)
image_query = gl.submit_image_query(detector=d, image=image)
print(f"The answer is {image_query.result}")
How does it work?
Your images are first analyzed by machine learning (ML) models which are automatically trained on your data. If those models have high enough confidence, that's your answer. But if the models are unsure, then the images are progressively escalated to more resource-intensive analysis methods up to real-time human review. So what you get is a computer vision system that starts working right away without even needing to first gather and label a dataset. At first it will operate with high latency, because people need to review the image queries. But over time, the ML systems will learn and improve so queries come back faster with higher confidence.
Note: The SDK is currently in "beta" phase. Interfaces are subject to change in future versions.
Learn more
Some more resources you might like:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for groundlight-0.7.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd365b55ee43e942b2c2775d6e07a2d7d65473b54f08f55aa54c040488393757 |
|
MD5 | cc8c7a59b3674bf3b95ab3e6610b8a9e |
|
BLAKE2b-256 | b452b0894c1be02f48a85f2a3de1c9e94e43a5f98df65612566e1e5ab355c595 |