The goal to be achieved in this project is to identify smoking situations in places where smoking is prohibited by using image processing and deep learning approaches. Gas stations and bus stops are the main points where the smoking ban is violated.
In a virtual machine, in the directory yolo-object-detection/yolo
, start the process for detecting objects:
python3 yolo_vm.py
In a client environment, in the same directory, to start the client's video by opening a camera:
python3 client.py
Then, to upload the detected images to Google Cloud Storage:
python3 toBucket.py
- Install the latest
node
andyarn
on your operating system. - Change directory:
cd web_app
. - Enter this command in command line:
yarn
- Change directory to
client
folder:
cd client
- Enter this command:
yarn
- Change directory to project's root directory again:
cd ..
- To start both the React and the Node.js parts:
yarn dev
- To start only Node.js:
yarn server
- To start only React:
yarn client
-
To view React page, open a browser and search
localhost:3000
. -
To see Node.js API interactions, open a new tab and search
localhost:5000
.