face-recognition-cuda 0.9.3 to 0.9.3a for CUDA 10

+ updated opencv plugin for refactor but forgot to mention in last commit
merge-requests/63/head
Moe 2018-11-03 16:02:45 -07:00
parent 1727f2c5e7
commit fef3ca8eb7
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"express": "^4.16.2",
"moment": "^2.19.2",
"socket.io": "^2.0.4",
"face-recognition-cuda": "0.9.3"
"face-recognition-cuda": "^0.9.3a"
},
"devDependencies": {},
"scripts": {

View File

@ -62,7 +62,7 @@ s.onPluginEventExtender(function(d,cn,tx){
}
})
// OpenCV Init />>
s.detectObject=function(buffer,d,tx,frameLocation){
s.detectObject = function(buffer,d,tx,frameLocation){
var detectStuff = function(frameBuffer,callback){
if(d.mon.detector_lisence_plate==="1"){
s.detectLicensePlate(buffer,d,tx,frameLocation)
@ -113,7 +113,9 @@ s.detectObject=function(buffer,d,tx,frameLocation){
}
if(frameLocation){
fs.readFile(frameLocation,function(err,buffer){
detectStuff(buffer)
if(!err){
detectStuff(buffer)
}
fs.unlink(frameLocation,function(){
})