This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- # [START video_detect_person_beta ]
15+ # [START video_detect_person ]
1616import io
1717
18- from google .cloud import videointelligence_v1p3beta1 as videointelligence
18+ from google .cloud import videointelligence_v1 as videointelligence
1919
2020
2121def 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"):
9898 )
9999
100100
101- # [END video_detect_person_beta ]
101+ # [END video_detect_person ]
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
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
1717
1818
1919def 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"):
9393 )
9494
9595
96- # [END video_detect_person_gcs_beta ]
96+ # [END video_detect_person_gcs ]
Original file line number Diff line number Diff line change 1616
1717import pytest
1818
19- import video_detect_person_gcs_beta
19+ import video_detect_person_gcs
2020
2121RESOURCES = os .path .join (os .path .dirname (__file__ ), "resources" )
2222
2525def test_detect_person (capsys ):
2626 input_uri = "gs://cloud-samples-data/video/googlework_tiny.mp4"
2727
28- video_detect_person_gcs_beta .detect_person (gcs_uri = input_uri )
28+ video_detect_person_gcs .detect_person (gcs_uri = input_uri )
2929
3030 out , _ = capsys .readouterr ()
3131
Original file line number Diff line number Diff line change 1616
1717import pytest
1818
19- import video_detect_person_beta
19+ import video_detect_person
2020
2121RESOURCES = os .path .join (os .path .dirname (__file__ ), "resources" )
2222
2525def test_detect_person (capsys ):
2626 local_file_path = os .path .join (RESOURCES , "googlework_tiny.mp4" )
2727
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 )
2929
3030 out , _ = capsys .readouterr ()
3131
You can’t perform that action at this time.
0 commit comments