Asked — Edited

Tutorial 58 - V4 Camera Settings

I have tested several of the SDK examples in c# regarding camera but i cant get them to work. Is the FFMPEG.dll corrupt or is there somthing else i dont understand. Is it youst me or is it simply not working?


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

PRO
Synthiam
#1  

Did you read the readme? All the files from the ezb bin folder must be copied to your app bin folder.

Also, if you can provide an error message it would be much easier to help you:)

#2  

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Tutorial 58 - v4 Camera Settings.exe

Additional information: Could not load file or assembly 'FFMPEG.dll' or one of its dependencies. The specified module could not be found.

View details: {"Could not load file or assembly 'FFMPEG.dll' or one of its dependencies. The specified module could not be found.":"FFMPEG.dll"}

EZ_B.dll and FFMPEG.dll are located in the EZ-SDK\C#\Tutorial 58 - v4 Camera Settings\bin\Debug folder and added to references in the project.

#3  

Hello DJ

I did move all the files from the DLL folder to my bin folder and now it works:) I thought it was only the referenced dll's that were needed.

Thank's!

PRO
Synthiam
#4  

Yeah there we go! It's silly the way visual studio shares projects. The file references are not always carried over.

Select the dll files to be included with your build and they will automatically copy when compiling in the future:)

#5  

Hello DJ I 'm sorry but i moved all the files from the DLL folder to my bin folder and it doesn't work. I still have an unhandled exception of type 'System.IO.FileNotFoundException' . i try to do that with ms visual studio 2013 and net Framework 4.5.1. Have you an idea please? Christophe stress

PRO
Synthiam
#6  

An entire error message which includes details would be necessary

#7  

Hello I try to use the tutorial 58 with ms visual studio without any change for my first step.

With MS Visual studio, 1- i open the project 2- i select the tutorial 58 2- I copy all the files from the DLL folder to my bin folder 3- From the Solution explorer i add reference ( EZB_B.dll) 4- i rebuild the solution with no error (Rebuild All: 1 succeeded, 0 failed, 0 skipped ) 5-And when i perform the projet by clicking on the button start i got an error

error-debut: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Tutorial 58 - v4 Camera Settings.exe

Additional information: Impossible de charger le fichier ou l'assembly 'FFMPEG.dll' ou une de ses dépendances. Le module spécifié est introuvable. error-fin:

so i repeat the step 3 with the DLL FFMPEG.dll (From the Solution explorer i add reference 'FFMPEG.dll) i rebuild the solution with no error (Rebuild All: 1 succeeded, 0 failed, 0 skipped ) And when i perform the projet by clicking on the button start i got the same error error.

For you information the tutoria woks fine so it 'not a bag customuizing of ms visual studio.

After that i decided to get the lastest vesion of the tutorial I repeat all the previous steps and this time, an other error appears

error-begin: An unhandled exception of type 'System.DllNotFoundException' occurred in EZ_B.dll

Additional information: Impossible de charger la DLL 'avm.dll': Le module spécifié est introuvable. (Exception de HRESULT : 0x8007007E)

error-end this error occurs when the line ( _camera = new Camera(_ezb); ) is performed

detail of the error

( à EZ_B.AVM.avmInvoke.avmOpen(Int16 aDataSize) à EZ_B.AVM.CvAssociativeMemory32S..ctor() à EZ_B.CameraDetection.AVMObjectDetection..ctor(EZB , Camera ) à EZ_B.Camera..ctor(EZB ezb) à Tutorial_58___v4_Camera_Settings.Form1..ctor() dans c:\tmp\Tutorial 58 - v4 Camera Settings\Form1.cs:ligne 21 à Tutorial_58___v4_Camera_Settings.Program.Main() dans c:\tmp\Tutorial 58 - v4 Camera Settings\Program.cs:ligne 16 à System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) )

With the new version, the DLL FFMPEG.dll has disappear.... And the DLL avm cannot be charged in the reference.

Did you had this issue ?

Christophe

sick sick sick confused

#8  

Eureka I solved the problem. When you use MS visual studio 2013 you have to use net Framework 4.5.1. And fill this suitable framwork in the Properties of the project Target framwork : .NET framwork 4.5.1... Sorry and thank's for your quick reply. blush;)

Denmark
#10  

I just have a small problem. In the latest version of the SDK the 'FFMPEG.dll' file is missing. Could I get it (if bug free) ?

Denmark
#11  

Nevermind the problem I stated above, I managed to hack together tutorials 39+56 into a working example that captures an image. Here is the code:

Tutorial39-CameraImageToFacebook.zip

This example is without image processing features which is good enough for my purposes. I will be using opencv for image processing.