Video and deployement problems [closed]

asked 2017-06-23 08:05:21 -0600

bird12358 gravatar image

Hello,

I develop an application on my computer using Opencv. The application read Images and videos on windows 10 with Opencv 3.2.0 . On my computer both work properly.

I try to deploy the application on my other computer. So I take my exe file and the dll from Opencv and I put all this file on my computer. There is no Opencv install on it. When I try to execute my program, the images are readable but the video crash with that error:

opencv error assertion failed (scn == 3 scn == 4) in cvtcolor

Where that error could come?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2017-06-23 09:24:56.628104

Comments

obviously, your application never checks, if the capture was opened, if an image was read, etc.

lesson to learn, no ?

berak gravatar imageberak ( 2017-06-23 08:12:28 -0600 )edit

Yes I checked on the other computer is not readable , the videocapture are not opened. But what I don't understand is the path to the video is correct, so why the video are not open? Is there a codec problem on my computer? How can I check where the problem comes? In fact my question is not why there is a crash( it is obvious, opencv can't read the video) but more why Opencv can't read the video.

bird12358 gravatar imagebird12358 ( 2017-06-23 08:37:46 -0600 )edit

on windows opencv_ffmpeg.dll is doing all the work, so make sure, you don't forget that.(also, 64/32bit)

berak gravatar imageberak ( 2017-06-23 08:56:19 -0600 )edit

Yes It was the problem. Thank you @berak

bird12358 gravatar imagebird12358 ( 2017-06-23 09:21:18 -0600 )edit