I try to make openni2(32bit) and NiTE2(32bit) work with kinectv2 on win10(64bit),and NiViewer did work after I use kinect2.dll from github,but any sample in NiTE2 does not work,so is there any way to get NiTE2 work with Kinectv2?
Related
I would like to take a screenshot of a web site using WebGL. I don't have to use GPU to open that site. Using emulation is enough for me.
At the beginning, I already tried headless-chrome to do this. That can take screenshot of ordinal web sites. But, It not works for WebGL canvases.
I think one of possibility is using OSMesa or something to emulate OpenGL.
I have used all of my strategy for overcoming this. Is this actually possible to do?
If yes, please tell me how to do that. If no, I would like to know why.
Thanks.
Yes it is possible!
You need the right combination of:
headless-chromium binary
libosmesa.os binary (in same directory)
launch chrome headless with the right flags, such as (see link for full details): ['--use-gl=osmesa', '--enable-webgl', '--ignore-gpu-blacklist', '--homedir=/tmp', '--single-process', '--data-path=/tmp/data-path', '--disk-cache-dir=/tmp/cache-dir']
This thread on the serverless-chrome github project discusses the issue and provides some binaries which I have used to capture screenshots of WebGL content on AWS Lambda using Page.captureScreenshot().
https://github.com/adieuadieu/serverless-chrome/issues/108#issuecomment-416494572
(See comment by #apalchys on 28th August)
This particular example uses SwiftShader which seems to be the preferred option going forward.
Note, however, that I was unable to create PDFs using Page.printToPDF() using this version - WebGL content just appears blank/white. However, I was able to also get Page.printToPDF() using an earlier version which uses osmesa, see https://github.com/adieuadieu/serverless-chrome/issues/108#issuecomment-371199530
Im aware of this however, this appears to only work for apache 2.2.x. I'm looking for something like this for 2.4.9.
I've done quite a bit of googleing already and can't seem to find anything.
For whatever reason I couldn't get the module to work my initial go around (I tried more than once). However, I got it to work today.
Not sure what I did different but I just followed the instructions below (again).
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2
I am trying to port the great hexplanet demo to the latest THREE.js version. (I am not the author but unable to get in touch with him so far)
The demo was written on r53. Migrating it up to r58 was easy, but on r59 the following vertice/face error occurs:
screenshot
I have combed through the migration info of THREE.js and the release notes for r59 but cannot make out what the cause of this could be. The only thing that looked possibly related to me was a change in PolyhedronGeometry.
But since I am not adept at 3d geometry anymore, I hope somebody can share some insight on this.
Project folder with progress so far: link
In case anybody else wants to use the demo on a later version, here's the problem and fix:
var angle = Math.acos(v1.dot(v2));
Sometimes results in NaN, when v1 equals v2.
Inserting the following made it work on all levels on subdivision again:
if (isNaN(angle)) angle = 0;
Currently I am trying to use Magma to do matrix operation on GPU, however, I found few documents about it. The only thing I can refer to is its testing program and the online generated document(here), which is not convenient to use. And the user guide seems outdated.
If you look here, getri and potri are supported.
I was trying to run the codes i have got from codeproject http://www.codeproject.com/Articles/239849/Multiple-face-detection-and-recognition-in-real-ti .The code build fine but during runtime that it is throwing Emgu.CV.CvInvoke Error. And the code stops at the point where i initialize HaarCascade classifier.I did all configurations fine according to the tuitorials given here http://fewtutorials.bravesites.com/entries/announcements/-level-0-emgucv-installation-guide-for-64-bit-windows-users and i have tried other sample code including face detection code.They all work fine.
!C:\Users\sizusuzu\Desktop\Capture.PNG!
Can anyone help me?
I believe you problem lies as per the comments in this link http://www.emgu.com/forum/viewtopic.php?f=4&t=2910
I had same problem after compiling and building installer then running installer on different machine. You really need the OpenCV references as per the link...hope that helps