0

'개인 프로젝트'에 VideoIntelligence API를 구현하려고합니다. 하지만 그렇게 할 수는 없습니다. [내 개인 프로젝트의 VideoIntelligence API에 대한 액세스 권한이 있습니다]Google Video Intelligence API 쿼리

작동하려면 몇 가지 제안 사항을 제공해주십시오.

(venv) [email protected]:~/Desktop/personal-project$ python manage.py shell 
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
(InteractiveConsole) 
>>> from google.cloud.gapic.videointelligence.v1beta1 import video_intelligence_service_client 
>>> video_client = video_intelligence_service_client.VideoIntelligenceServiceClient() 
>>> path = 'gs://demomaker/google_gmail.mp4' 
>>> features = [2] 
>>> operation = video_client.annotate_video(path, features) 

하지만 오류로이 무엇입니까 :

Traceback (most recent call last): 
    File "<console>", line 1, in <module> 
    File "personal-project/venv/local/lib/python2.7/site-packages/google/cloud/gapic/videointelligence/v1beta1/video_intelligence_service_client.py", line 234, in annotate_video 
    self._annotate_video(request, options), self.operations_client, 
    File "personal-project/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 419, in inner 
    return api_caller(api_call, this_settings, request) 
    File "personal-project/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 407, in base_caller 
    return api_call(*args) 
    File "personal-project/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 368, in inner 
    return a_func(*args, **kwargs) 
    File "personal-project/venv/local/lib/python2.7/site-packages/google/gax/retry.py", line 126, in inner 
    ' classified as transient', exception) 
RetryError: GaxError(Exception occurred in retry method that was not classified as transient, caused by <_Rendezvous of RPC that terminated with (StatusCode.PERMISSION_DENIED, Google Cloud Video Intelligence API has not been used in project usable-auth-library before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/videointelligence.googleapis.com/overview?project=usable-auth-library then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.)>) 

그것은 '사용 가능한-인증 도서관'프로젝트 내에서 검색하는

나는 다음과 같은 명령을 시도했다. 반면 내 개인 프로젝트에 대한 검색/사용 권한을 가져야합니다. [ '개인 프로젝트'에 대한 액세스 권한이 있고 '사용 가능한 인증 라이브러리가 아니기 때문에]

어떻게하면됩니까? 어떤 제안을 해주시겠습니까?

감사

+0

비공개 베타 프로그램에 대한 액세스 권한을 부여 받았음을 감안할 때 Google이 귀하를 그룹에 추가했다고 가정합니다. 나는 당신이 그것을 확인해야한다고 생각합니다. – DaImTo

+0

@DaImTo 어떻게 확인할 수 있습니까? – Naveen

+0

@DaImTo Any이 작품을 만들기위한 제안? – Naveen

답변

1

Google Video Intelligence 민간 현재 베타 버전으로 제공되고 있습니다. 즉, 베타 액세스를 사용하려면 베타 액세스를 신청해야합니다.

There is a big blue button at the top of this page to apply Google Video Intelligence

때/구글이 당신에게 베타 액세스 권한을 부여하는 경우 지원 및 피드백 정보를 congaing 이메일을 받게됩니다. 일반적으로 Google 그룹의 비공개 그룹입니다.

귀하의 의견을 읽은 후에 나는 시들지 않거나 아직 액세스 권한이 부여되지 않았는지 궁금합니다. 어떤 요청을 할 수 없을지라도 귀하의 액세스가 사라지지 않은 경우.

+0

@DalmTo 내가 액세스 권한을 이미 부여 받았는지 어떻게 확인할 수 있습니까? [3 일 전에 비공개 베타 액세스를 신청했습니다. 하지만 아직 아무런 확인이 없습니다.] – Naveen

+0

정상적으로 액세스 할 수있게되면 잠시 시간이 걸릴 수 있습니다. – DaImTo

+0

@DalmTo 원래 질문에 몇 가지 변경을했습니다. 문제를 해결하는 데 도움을 주시겠습니까? [내 개인 프로젝트 용 VideoIntelligence API에 액세스 할 수 있습니다.] – Naveen

0

비슷한 문제가 발생했습니다. 나에게는 내가합니다 (GOOGLE_APPLICATION_CREDENTIALS 환경 변수가 나를 위해 트릭을하지 않았다 설정) 권한을 부여하는 데 사용하려고했던 서비스 계정에 관련이 있지만,

gcloud auth activate-service-account --key-file service-account-key-file 

these 단계에 따라 만든 JSON을 사용하여 (한).

확실하지 않은 이유는 환경 변수가 this에 따라 우선해야하기 때문입니다.