橡胶Nginx乘客部署'乘客'没找到

时间:2015-07-29 23:09:32

标签: ruby-on-rails ruby nginx amazon-ec2 passenger

有人在尝试在ec2上部署的日志上收到此错误吗?

import cv2
import numpy as np
import collections

#######   training part    ############### 
samples = np.loadtxt('generalsamples.data',np.float32)
responses = np.loadtxt('generalresponses.data',np.float32)
responses = responses.reshape((responses.size,1))

model = cv2.KNearest()
model.train(samples,responses)

############################# testing part  #########################

im = cv2.imread('one_white_1.png')
out = np.zeros(im.shape,np.uint8)
gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
thresh = cv2.adaptiveThreshold(gray,255,1,1,11,2)

contours,hierarchy = cv2.findContours(thresh,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)
for cnt in contours:
    if cv2.contourArea(cnt)>20:
        [x,y,w,h] = cv2.boundingRect(cnt)
        if  h>=10:
            cv2.rectangle(im,(x,y),(x+w,y+h),(0,255,0),2)
            roi = thresh[y:y+h,x:x+w]
            roismall = cv2.resize(roi,(10,10))
            roismall = roismall.reshape((1,100))
            roismall = np.float32(roismall)
            retval, results, neigh_resp, dists = model.find_nearest(roismall, k = 1)
            string = str(int((results[0][0])))
            cv2.putText(out,string,(x,y+h),1,1,(0,255,0))


cv2.imshow('im',im)
cv2.imshow('out',out)
#cv2.waitKey(0)
raw_input('Tape to exit')

我的passenger_nginx,所以这个passenger_ngnix有一些特定版本吗?

 ** [out :: db01.y.com] libgdbm-dev is already the newest version.
 ** [out :: db01.y.com] libgdbm3 is already the newest version.
 ** [out :: db01.y.com] libncurses5-dev is already the newest version.
 ** [out :: db01.y.com] libreadline6-dev is already the newest version.
 ** [out :: db01.y.com] zlib1g-dev is already the newest version.
 ** [out :: db01.y.com] collectd is already the newest version.
 ** [out :: db01.y.com] monit is already the newest version.
 ** [out :: db01.y.com] ec2-ami-tools is already the newest version.
 ** [out :: db01.y.com] build-essential is already the newest version.
 ** [out :: app01.y.com] 
 ** [out :: app01.y.com] Reading state information...
 ** [out :: app01.y.com] 
 ** [out :: app01.y.com] E: Version '1:4.0.59-1~precise1' for 'passenger' was not found

0 个答案:

没有答案