Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可上传图片识别 #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

moeshin
Copy link
Contributor

@moeshin moeshin commented Apr 3, 2023

curl -F [email protected] -F Language=JAP http://127.0.0.1:6666/ocr/api
{
	"Code": 0,
	"Data": [{
		"Coordinate": {
			"LowerLeft": [21.0, 42.0],
			"LowerRight": [884.0, 42.0],
			"UpperLeft": [21.0, 17.0],
			"UpperRight": [884.0, 17.0]
		},
		"Score": 0.9724864363670349,
		"Words": "校門の外から慌てた様子でやってきた二人組の男たちに声をかけれる。とちらも"
	}, {
		"Coordinate": {
			"LowerLeft": [21.0, 69.0],
			"LowerRight": [781.0, 71.0],
			"UpperLeft": [21.0, 45.0],
			"UpperRight": [781.0, 47.0]
		},
		"Score": 0.950264036655426,
		"Words": "中年くらいで一人はパカでかい上デオカメラのような機材を担いいいた。"
	}, {
		"Coordinate": {
			"LowerLeft": [21.0, 84.0],
			"LowerRight": [37.0, 84.0],
			"UpperLeft": [21.0, 72.0],
			"UpperRight": [37.0, 72.0]
		},
		"Score": 0.5181806683540344,
		"Words": ""
	}],
	"Message": "Success",
	"RequestId": "f0f457b5-39ca-4c12-b93e-d4c6 6ff9c6139"
}
docker run -p 6666:6666 -d moeshin/dango-ocr:cf35496
curl -LO https://github.com/PantsuDango/DangoOCR/raw/master/test/JAP.jpg
curl -F [email protected] -F Language=JAP http://127.0.0.1:6666/ocr/api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant