BETA
I've heavily modified some camera code. There is slightly different functionality in
smash_camera.cpp in
GetJpegImageBlocking. It blocks with different functionality. It will not always succeed. You can change the functionality by copying the original method from
PCVideoServer.cpp. Also, for now, you must manually set the IP to the computer to want to receive video from. You must do this in the method
VideoServerHelper on line 65 in
smash_video_server.cpp.
Required Code:
Code:
#include "smash_camera.h"
smash::AxisCamera& camera = smash::AxisCamera::getInstance();
camera.writeResolution(smash::k160x120);
camera.writeBrightness(0);
The Dashboard will fill a drop down box with all available IP addresses that are IPv4. This will automatically detect the data and start the server. If you want to stop the server, close the program. There is a timeout period of 250ms and the server status will be "waiting". The dashboard supports any Jpeg size. However, it seems to be slightly buggy on 320x240 and very buggy on 640x480. I'll be working on this.
I didn't try to 2Go PC, but I got 20+ FPS on 160x120.
I'll upload dashboard later.... must go!