[UWP]根据相机旋转将图像旋转为直线。 [英] [UWP] Rotate Image to Straight based off Cameras rotation.

查看:86
本文介绍了[UWP]根据相机旋转将图像旋转为直线。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将图像发送到http请求,将图像转换为单词。但是,发送的图像必须处于某个方向,以便代码读取文本。我一直在使用UWP样本中提供的BasicCameraKit,我已经尝试了
更改旋转助手(并通过每一个来查看它所在的位置)。问题是我似乎无法弄清楚如何在任何位置拍摄照片(人像,风景等),然后发送图像始终面向某种方式。

I'm currently sending an image to a http request that translates the image into words. However, the image sent has to be in a certain orientation for the code to read the text. I've been utilizing the BasicCameraKit provided in UWP samples, and I've tried changing the rotation helpers (and going through each one to see where it hits). The issue is I cannot seem to figure out how to take a picture at any position (portrait, landscape, etc.) and then send the image always facing a certain way.

感谢任何帮助!

推荐答案

嗨Bryson T,

Hi Bryson T,

它似乎我们不需要知道将图片添加到OCR的位置是什么。我在此链接上测试图像中的阅读文字:  https://www.microsoft .com / cognitive-services / en-us / computer-vision-api

It seems we do not need know that what is the position of the picture that to add it to the OCR. I test read text in images on the this link: https://www.microsoft.com/cognitive-services/en-us/computer-vision-api.

OCR可以读取任何位置的图片。

The picture with any position that the OCR can read them.

最好的问候,

Jayden Gu

Jayden Gu


这篇关于[UWP]根据相机旋转将图像旋转为直线。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆