如何判断照片拍摄于横向或纵向? JPEG .NET元数据的方向 [英] how to tell if a photo was taken in landscape or portrait? JPEG .NET metadata orientation

查看:1295
本文介绍了如何判断照片拍摄于横向或纵向? JPEG .NET元数据的方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直通VB.net/C#有没有办法读取掀起了JPEG来告诉我们,如果照片拍摄于横向或纵向任何元数据?

Thru VB.net/C# is there any way to read any metadata of off a JPEG to tell if the photo was taken in landscape or portrait?

我会假设一个摄像头都需要一个加速度首先要甚至告诉什么方向了......正确的?假设有那样的智慧来检测倾斜的角度,我将如何去阅读这些信息从一个JPEG?

I would assume a camera would need an accelerometer first of all to even tell what direction is up...correct? Assuming there is that kind of intelligence to detect the angle of tilt, how would I go about reading that info from a JPEG?

我发现了一些样品在线阅读用VB元/ .NET不知道读什么书找到我需要的信息。

I found some samples online to read metadata with vb/.net not sure what to read to find the info i need.

鸭preciate任何指针.....

Appreciate any pointers.....

推荐答案

这个项目应该做你想要的:

This project should do what you want:

<一个href="http://www.$c$cproject.com/KB/graphics/exifextractor.aspx">http://www.$c$cproject.com/KB/graphics/exifextractor.aspx

和这家伙已经有了一个实现:

And this guy already has an implementation:

<一个href="http://dotmac.rationalmind.net/2009/08/correct-photo-orientation-using-exif/">http://dotmac.rationalmind.net/2009/08/correct-photo-orientation-using-exif/

这篇关于如何判断照片拍摄于横向或纵向? JPEG .NET元数据的方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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