Problems loading devices when converting project to spring

General information about Neurotechnology and its software

Problems loading devices when converting project to spring

Postby javygr1909 » Jun 20, 2017 19:00

I developed a project to capture faces, with instances of the kind
Code: Select all
CaptureFace face = new CaptureFace

works fine, but when injected with Spring
Code: Select all
@autowired private CaptureFace
it does not load the devices list (cameras)
Has anyone else had these kind of problems?

I even made a project (that works if I run it separately) to be called from the Spring project, and still does not work.

Can someone help?

Posts: 1
Joined: Jun 20, 2017 18:41

Re: Problems loading devices when converting project to spri

Postby MartynasV » Jun 27, 2017 11:13

Hello javygr1909,

Do you get any errors?

Make sure that Ndm plugins (more specific for cameras "SDK\Bin\Win*\NdmMedia.dll") are loaded(if required plugins are not loaded, then devices won't be detected), you can check that via NPluginManager:
Code: Select all
         // Print out loaded plugins (NdmMedia.dll name should be "Media")
         for(int i = 0; i < NPluginManager.getInstances()[0].getPlugins().size(); i++){

Usually, it is enough to store NDM plugins to application's working directory.
Martynas V
Posts: 409
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania

Return to Public

Who is online

Users browsing this forum: No registered users and 4 guests