如何判断照片拍摄于横向或纵向? JPEG .NET元数据的方向纵向、横向、如何判断、方向

2023-09-05 02:23:02 作者:记忆つ沦陷在沧桑年华里

直通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:

http://www.$c$cproject.com/KB/graphics/exifextractor.aspx

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

And this guy already has an implementation:

http://dotmac.rationalmind.net/2009/08/correct-photo-orientation-using-exif/

 
精彩推荐
图片推荐