- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Intel Team,
Can you please let me know, if its feasible to execute OpenVINO Face Recognition Demo using the linux service. Please find the Code Below:
package main
import (
"os"
"os/exec"
)
var APPFILE string = "/opt/intel/openvino/inference_engine/demos/python_demos/face_recognition_demo/face_recognition_demo.py"
func check(e error) {
if e != nil {
panic(e)
}
}
func exist(PATH string) {
if _, err := os.Stat(PATH); os.IsNotExist(err) {
println("Application not installed.", APPFILE, "file not found, Please check and try again.")
help()
os.Exit(1)
}
}
//Support contact
func help() {
println("For assistance, email connect@inventorsofzero.in")
}
func main() {
//initialize shell script
cmd := exec.Command("bash", "/opt/intel/openvino/bin/setupvars.sh")
cmd.Run()
//check app file exist
exist(APPFILE)
SRVFILE := "/etc/systemd/system/frc1d.service"
f, err := os.Create(SRVFILE)
check(err)
defer f.Close()
f.WriteString("[Unit]\nDescription=Service demon for sync.py\n")
f.WriteString("\n[Service]\nUser=root\nWorkingDirectory=/opt/intel/openvino/inference_engine/demos/python_demos/face_recognition_demo/\nExecStart=/usr/bin/python3.6 /opt/intel/openvino/inference_engine/demos/python_demos/face_recognition_demo/face_recognition_demo.py\nRestart=always")
f.WriteString("\n\n[Install]\nWantedBy=multi-user.target\n\n")
os.Chmod(SRVFILE, 0644)
c := exec.Command("/bin/sh", "-c", "systemctl daemon-reload;systemctl start frc1d.service;systemctl enable frc1d.service")
c.Run()
println("frc1d service installed successfully!")
help()
}
I get errors, while executing, Can you please help me rectify the same. My agenda to execute Face Recognition in a CCTV Camera(for a home security use case) and In order to ensure the continuous running of Face Recognition, I am making an attempt to execute using LInux Service.
Can you please help me.
Thanks
Guru
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Guruvishnuvardan,
Can you confirm that you are able to run the Face Recognition demo from the terminal or command prompt.
Also, Can you provide the error logs for the same.
Regards,
Ram prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Ram Prasad - Please note, I have fixed the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was glad that you have solved the problem.
Could you please share the information that solved your problem, so that it will be helpful for the other users in the community.
Regards,
Ram prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ram Prasad,
Please find the link, I accessed to solve the problem
I have changed the content to suite an Ubuntu Box instead of Raspberry Pi.
Thanks
Guru

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page