Skip to content

Commit 021284e

Browse files
telpirionleahecole
authored andcommitted
feat: updates person detection samples for GA (#86)
* feat: updates person detection samples for GA
1 parent 1d10beb commit 021284e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

videointelligence/samples/analyze/video_detect_person_beta.py renamed to videointelligence/samples/analyze/video_detect_person.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
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]
1616
import io
1717

18-
from google.cloud import videointelligence_v1p3beta1 as videointelligence
18+
from google.cloud import videointelligence_v1 as videointelligence
1919

2020

2121
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"):
9898
)
9999

100100

101-
# [END video_detect_person_beta]
101+
# [END video_detect_person]

videointelligence/samples/analyze/video_detect_person_gcs_beta.py renamed to videointelligence/samples/analyze/video_detect_person_gcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
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

1919
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"):
9393
)
9494

9595

96-
# [END video_detect_person_gcs_beta]
96+
# [END video_detect_person_gcs]

videointelligence/samples/analyze/video_detect_person_gcs_beta_test.py renamed to videointelligence/samples/analyze/video_detect_person_gcs_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import pytest
1818

19-
import video_detect_person_gcs_beta
19+
import video_detect_person_gcs
2020

2121
RESOURCES = os.path.join(os.path.dirname(__file__), "resources")
2222

@@ -25,7 +25,7 @@
2525
def 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

videointelligence/samples/analyze/video_detect_person_beta_test.py renamed to videointelligence/samples/analyze/video_detect_person_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import pytest
1818

19-
import video_detect_person_beta
19+
import video_detect_person
2020

2121
RESOURCES = os.path.join(os.path.dirname(__file__), "resources")
2222

@@ -25,7 +25,7 @@
2525
def 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

0 commit comments

Comments
 (0)