添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
光明磊落的眼镜  ·  Packaging Python ...·  4 天前    · 
千杯不醉的香槟  ·  MasterGo ...·  3 月前    · 
鼻子大的酱牛肉  ·  Contact Us·  3 月前    · 
乐观的沙滩裤  ·  交通 | Go!长野·  4 月前    · 
至今单身的仙人球  ·  南方周末·  1 年前    · 

First time here? Check out the FAQ!

How to read gif in python ?

asked 2018-03-03 06:43:20 -0600

Nbb gravatar image

updated 2018-03-03 06:44:09 -0600

How do I read a gif in opencv python ? I tried imread but it is reading nothing. It is in the same directory as my code.

edit retag flag offensive close merge delete
3

answered 2018-03-03 07:06:19 -0600

berak gravatar image

you can't using imread() , there's no codec for that builtin (still a license problem)

you can abuse VideoCapture (works, because ffmpeg can read gif's) , or you'll have to fallback to 3rd party libs like PIL

edit flag offensive delete

Comments

Stats

Asked: 2018-03-03 06:43:20 -0600 Seen: 12,946 times

Last updated: Mar 03 '18