File tree 4 files changed +10
-10
lines changed
videointelligence/samples/analyze 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # [START video_detect_person_beta ]
15
+ # [START video_detect_person ]
16
16
import io
17
17
18
- from google .cloud import videointelligence_v1p3beta1 as videointelligence
18
+ from google .cloud import videointelligence_v1 as videointelligence
19
19
20
20
21
21
def detect_person (local_file_path = "path/to/your/video-file.mp4" ):
@@ -98,4 +98,4 @@ def detect_person(local_file_path="path/to/your/video-file.mp4"):
98
98
)
99
99
100
100
101
- # [END video_detect_person_beta ]
101
+ # [END video_detect_person ]
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # [START video_detect_person_gcs_beta ]
16
- from google .cloud import videointelligence_v1p3beta1 as videointelligence
15
+ # [START video_detect_person_gcs ]
16
+ from google .cloud import videointelligence_v1 as videointelligence
17
17
18
18
19
19
def detect_person (gcs_uri = "gs://YOUR_BUCKET_ID/path/to/your/video.mp4" ):
@@ -93,4 +93,4 @@ def detect_person(gcs_uri="gs://YOUR_BUCKET_ID/path/to/your/video.mp4"):
93
93
)
94
94
95
95
96
- # [END video_detect_person_gcs_beta ]
96
+ # [END video_detect_person_gcs ]
Original file line number Diff line number Diff line change 16
16
17
17
import pytest
18
18
19
- import video_detect_person_gcs_beta
19
+ import video_detect_person_gcs
20
20
21
21
RESOURCES = os .path .join (os .path .dirname (__file__ ), "resources" )
22
22
25
25
def test_detect_person (capsys ):
26
26
input_uri = "gs://cloud-samples-data/video/googlework_tiny.mp4"
27
27
28
- video_detect_person_gcs_beta .detect_person (gcs_uri = input_uri )
28
+ video_detect_person_gcs .detect_person (gcs_uri = input_uri )
29
29
30
30
out , _ = capsys .readouterr ()
31
31
Original file line number Diff line number Diff line change 16
16
17
17
import pytest
18
18
19
- import video_detect_person_beta
19
+ import video_detect_person
20
20
21
21
RESOURCES = os .path .join (os .path .dirname (__file__ ), "resources" )
22
22
25
25
def test_detect_person (capsys ):
26
26
local_file_path = os .path .join (RESOURCES , "googlework_tiny.mp4" )
27
27
28
- video_detect_person_beta .detect_person (local_file_path = local_file_path )
28
+ video_detect_person .detect_person (local_file_path = local_file_path )
29
29
30
30
out , _ = capsys .readouterr ()
31
31
You can’t perform that action at this time.
0 commit comments