添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
豪情万千的双杠  ·  Python ...·  1 周前    · 
活泼的板栗  ·  springboot jpa 批量修改 ...·  9 月前    · 
含蓄的机器猫  ·  MSVC Visual Studio 22 ...·  1 年前    · 
任性的刺猬  ·  Accessibility ARIA-1 - 知乎·  2 年前    · 
另类的蚂蚁  ·  403 Forbidden ...·  2 年前    · 
坏坏的西瓜  ·  保存 SSIS 包(SQL Server ...·  2 年前    · 

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