Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

OpenCV Face Detect demo

General discussion about anything TouchDesigner

OpenCV Face Detect demo

Postby eco_bach » Tue Jan 15, 2019 11:45 am

Hi guys. Trying to get this OpenCV faceDetect demo working.
https://github.com/mourendxu/TD-OpenCV3TOP

I'm a bit of a noob when it comes to Windows and DLLs.
There is a CPlusPlus TOP in the sample .toe asking for a DLL. What should I target?

Also the demo requires OpenCV3.41 DLLs which I have downloaded but have no idea how I should install them so that Touch will work with them.
eco_bach
 
Posts: 302
Joined: Mon Dec 03, 2012 11:55 am

Re: OpenCV Face Detect demo

Postby sburgin » Tue Jan 15, 2019 10:39 pm

There's a file called opencv_world341.dll in your downloaded opencv\build\x64\vc14\bin
copy that to the touch project alongside the other dll file and it should work
sburgin
 
Posts: 2
Joined: Tue Aug 11, 2015 7:16 am

Re: OpenCV Face Detect demo

Postby eco_bach » Wed Jan 16, 2019 10:59 am

Thanks will give that a try.
eco_bach
 
Posts: 302
Joined: Mon Dec 03, 2012 11:55 am

Re: OpenCV Face Detect demo

Postby eco_bach » Wed Jan 16, 2019 11:19 am

Ok have done as suggested.
Copied the OpenCV DLL to the same location as the project DLL (see picture 1)

Then defined the DLL Path in the CPlusPlus TOP (see picture 2)

But now getting an error (see picture 3)
The loaded DLL does not contain the required functions for the CPlus Interface...

Is it possible this ONLY works with TD099 Commercial?


OpenCv1_dll_location.JPG
OpenCv1_dll_location.JPG (19.72 KiB) Viewed 2186 times

OpenCV21_CPlusPlus_TOP_DLL.JPG
OpenCV21_CPlusPlus_TOP_DLL.JPG (25 KiB) Viewed 2186 times

OpenCV3_CPlusPlus_error_.JPG
OpenCV3_CPlusPlus_error_.JPG (40.41 KiB) Viewed 2186 times
eco_bach
 
Posts: 302
Joined: Mon Dec 03, 2012 11:55 am

Re: OpenCV Face Detect demo

Postby eco_bach » Thu Jan 17, 2019 11:48 am

I am guessing this must have to do with TD 088 vs 099 CPlusPlus TOP changes. But would like a confirmation so that I can convince my employer to get a 099 license.
eco_bach
 
Posts: 302
Joined: Mon Dec 03, 2012 11:55 am

Re: OpenCV Face Detect demo

Postby WAMSAY » Thu Jan 17, 2019 12:03 pm

At the bottom of the Github page it says
"You also need the latest version of Touchdesigner, which at this moment is 2018.25000"
I just got it working in 099 with zero issues.
Captain.Code
http://www.captaincode.info
207-590-7877
User avatar
WAMSAY
 
Posts: 13
Joined: Sun May 27, 2012 3:05 pm
Location: Portland, Maine USA

Re: OpenCV Face Detect demo

Postby why » Mon Apr 01, 2019 12:15 pm

Version 1.5 has been uploaded to the original github repo and is way easier to use than the previous version
why
 
Posts: 59
Joined: Mon Apr 27, 2015 3:14 pm

Re: OpenCV Face Detect demo

Postby WAMSAY » Thu Jul 11, 2019 1:29 pm

FYI: I tried and failed getting this file to work in the new version 2019.16600
It has something to do with the dll. but I can't figure out why. It just crashes before the network even opens.
Captain.Code
http://www.captaincode.info
207-590-7877
User avatar
WAMSAY
 
Posts: 13
Joined: Sun May 27, 2012 3:05 pm
Location: Portland, Maine USA

Re: OpenCV Face Detect demo

Postby ben » Fri Aug 02, 2019 12:11 pm

Hi WAMSAY,
You had it working previously, what was the last build it worked in for you?

Thanks
User avatar
ben
Staff
 
Posts: 2557
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: OpenCV Face Detect demo

Postby mouren » Fri Aug 02, 2019 5:36 pm

Hi WAMSAY,

I just grabbed my master branch and tried it out with the latest Stable release branch.

If you run the cpp.toe, it will crash, because the release was compiled against an older header.

But if you use the custom-op.toe, it seems to work just fine, given that you have placed the custom op in the correct folder.

We are actually going to do a minor release today or tomorrow. We are dropping support for the cplusplus top version, since it has been completely replaced by the custom operators.


Thank you.

Da.
mouren
 
Posts: 112
Joined: Fri Oct 17, 2014 3:10 am

Next

Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 13 guests