Detecting Cars
2-1. 영상에서 자동차 객체 검출.ipynb
- Running the cell codeCtrl + Enter
import subprocess
Import the subprocess module
#Check the original video
run_command_before = 'bash ~/ai_example/show.sh car 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_car = 'bash ~/ai_example/detect.sh car'
subprocess.call((detect_command_car.split('\n')), shell=True)
Detecting objects
# Check the processed video
run_command_after = 'bash ~/ai_example/show.sh car 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