项目作者: HandsomeHans
项目描述 :
Using caffenet to do classification by a webcam
高级语言: C++
项目地址: git://github.com/HandsomeHans/caffenet-cam-classification.git
caffenet-cam-classification
I just finished my postgraduate in UK and got my first formal job in Shanghai.
I did a lot work using MATLAB during the period of being a student.
However, my new boss told me to forget MATLAB and do C/C++.
In order to feed myself and my fiancee, I have to start to learn C++.
Besides, I’d like to learn something new for me.
I sign up my Github at 2017.3.22 to record how a newfish becoming a master.
And caffenet-cam-classification is my first project.
cpp-classification is an example tool in caffe. I changed it. Below shows the details.
- The original tool should have four inputs with it (deploy.prototxt, .caffemodel, mean, label, image).
Now, what you need to do is just to run it. - When you run the tool, video from a webcam will show out.
- If you push “space”, the current frame will show out in another window.
Besides, the classification results will show out just as before. - If you push “Esc”, it will break out.
What you should do, before using my tool.
- Change the PATH of deploy.prototxt in line 62.
- Change the PATH of .caffemodel in line 63.
- Change the PATH of mean file in line 75.
- Change the PATH of label file in line 79.
- I hide the net log showed in command line. if you want them, commend out line 260, line 261, and line 277.
- If you want to save the frame, do create a directory named “screenshot”.
- What is more, do not forget to change the PATH in shell script.
- What is more more, I do suggest you do not change line 242, line 247, and line 293. You should remember my name. For my full name , please see line 260.