Detecting Dogs
2-3. 영상에서 강아지 객체 검출.ipynb
- Running the cell codeCtrl + Enter
import subprocess
Import the subprocess module
#Check the original video
run_command_before = 'bash ~/ai_example/show.sh dog before'
subprocess.call((run_command_before.split('\n')), shell=True)
Check the original video
Executed on Jetson Nano
# terminating the process
kill_command_before = 'bash ~/ai_example/kill.sh display'
subprocess.call((kill_command_before.split('\n')), shell=True)
Terminating the process
# Detect objects
detect_command_dog = 'bash ~/ai_example/detect.sh dog'
subprocess.call((detect_command_dog.split('\n')), shell=True)
Detecting objects
# Check the processed video
run_command_after = 'bash ~/ai_example/show.sh dog after'
subprocess.call((run_command_after.split('\n')), shell=True)
Check the processed video
Executed on Jetson Nano
# terminating the process
kill_command_after = 'bash ~/ai_example/kill.sh display'
subprocess.call((kill_command_after.split('\n')), shell=True)
Terminating the process