gpt4 book ai didi

image - 不是JPEG文件:开头为0x0a 0x4c错误

转载 作者:行者123 更新时间:2023-12-02 16:30:17 27 4
gpt4 key购买 nike

我正在尝试导入一堆.jpeg文件格式的图像。
但是我得到了错误
Not a JPEG file: starts with 0x0a 0x4c
现在,我知道0x89 0x50是.png文件的启动方式。但是我不明白0x0a 0x4c代表什么。

我还在终端上运行了file image001.jpeg命令,它给了我
JPEG image data, JFIF standard 1.01

另外,当我导入这些图像组时,每次都会针对不同的文件(而不是相同的文件)抛出此错误。因此,我想这不是文件损坏的问题。

如果有帮助,则通过imwrite()opencv函数生成图像文件并将其保存在硬盘上。

谢谢

使用ImageMagick,获得以下详细输出。

Image: /Users/deathstroke/Desktop/lipRead/VidTIMIT/mwbt0/video/sx383/roi081.jpeg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 68x39+0+0
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 2652
Red:
min: 0 (0)
max: 223 (0.87451)
mean: 139.207 (0.54591)
standard deviation: 44.1822 (0.173263)
kurtosis: 0.798663
skewness: -1.01178
entropy: 0.942718
Green:
min: 0 (0)
max: 159 (0.623529)
mean: 87.1161 (0.341632)
standard deviation: 33.4156 (0.131041)
kurtosis: -0.162594
skewness: -0.485596
entropy: 0.955489
Blue:
min: 0 (0)
max: 249 (0.976471)
mean: 73.9367 (0.289948)
standard deviation: 43.7079 (0.171403)
kurtosis: 2.38585
skewness: 1.43844
entropy: 0.917047
Image statistics:
Overall:
min: 0 (0)
max: 249 (0.976471)
mean: 100.087 (0.392496)
standard deviation: 40.7392 (0.159761)
kurtosis: 2.09684
skewness: 0.445232
entropy: 0.938418
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 68x39+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 95
Orientation: Undefined
Properties:
date:create: 2016-04-15T23:19:32+06:00
date:modify: 2016-04-15T23:19:32+06:00
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: d3f2c14b57043efd4edbf719dfe769aded504df16c5b9fc8ee436d7551993221
Artifacts:
filename: /Users/deathstroke/Desktop/lipRead/VidTIMIT/mwbt0/video/sx383/roi081.jpeg
verbose: true
Tainted: False
Filesize: 1.81KB
Number pixels: 2.65K
Pixels per second: 265KB
User time: 0.000u
Elapsed time: 0:01.009
Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27 http://www.imagemagick.org

最佳答案

JPEG流以SOI标记FF D8开始。 JFIF文件后跟一个APP0标记FF E0。

您很有可能在数据中的某处嵌入了有效的JPEG流,并且某些应用程序正在跳过非jpeg数据,直到它们到达SOI标记,而其他应用程序则在抽取无关数据。

关于image - 不是JPEG文件:开头为0x0a 0x4c错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37014055/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com