Ask Your Question
0

Error Python Opencv

asked 2017-04-17 10:50:49 -0600

PigiBouxx gravatar image

Hey, i have a small error "Corrupt JPEG data: premature end of data segment"

i don't what is that, My language is Python 3.5

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-18 01:52:45 -0600

berak gravatar image

it's not really python related.

your image was not fully downloaded (e.g. from an ipcam or from a website)

jpg images start and end with "magic bytes", if it did not end with FF D9, they know, some bytes are missing.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-17 10:50:49 -0600

Seen: 1,665 times

Last updated: Apr 18 '17