Closed mlissner closed 5 months ago
The frontend interface for gemini.google.com returned these results with the same inputs
[
{
"name_of_case": "Hernandez v. State",
"court": "Alaska App.",
"page": "40"
},
{
"name_of_case": "Cardenas v. Holmberg in and for County of Pinal-Ariz. App. Div. 2",
"court": "Ariz. App. Div. 2",
"page": "64"
},
{
"name_of_case": "Riggins, In re-Ariz.",
"court": "Ariz.",
"page": "108"
},
{
"name_of_case": "State v. Dayton-Ariz.App. Div. 2",
"court": "Ariz.App. Div. 2",
"page": "94"
},
{
"name_of_case": "PNC Bank, N.A. v. Coury in and for County of Maricopa-Ariz.App. Div. 1",
"court": "Ariz.App. Div. 1",
"page": "88"
},
{
"name_of_case": "People v. Ruiz-Cal.",
"court": "Cal.",
"page": "38"
},
{
"name_of_case": "People v. S.C. Cal.",
"court": "Cal.",
"page": "38"
},
{
"name_of_case": "People v. Saldana-Cal....",
"court": "Cal.",
"page": "39"
},
{
"name_of_case": "People v. Wiley-Cal.",
"court": "Cal.",
"page": "38"
},
{
"name_of_case": "Nicola v. City of Grand Junction Colo. App.",
"court": "Colo.App.",
"page": "111"
},
{
"name_of_case": "People v. Mion-Colo.App.",
"court": "Colo.App.",
"page": "120"
},
{
"name_of_case": "State v. Elefante-Hawai'i.",
"court": "Hawai'i.",
"page": "134"
}
]
I played with the OpenAI Vision API today for an hour or so. My mind is blown.
I uploaded this scan:
With the following Python code:
That worked amazingly:
As far as I can tell, it's perfect and it even got the okina correct in Hawai‘i. This would have taken weeks of developer time in the past, but now you just ask a computer to do it.
Wow.
A few things I learned:
Using ChatGPT, even the paid version just uses Tesseract and sucks.
To get this going you have to do billing first, then make a new API key, or else it'll say you cannot access the turbo model.
It cost about a penny.
This AI stuff is real, and our theory that we can use this while scanning books is probably correct.