jhdewitt / sltk

An OpenCV-based structured light processing toolkit.
MIT License
255 stars 63 forks source link

camera lens intrinsics #4

Open prahjister opened 6 years ago

prahjister commented 6 years ago

I am guessing that i need to find camera lens intrinsics first

I am trying to follow process

All compiled apps are running on the arm box I first started mjpg-streamer and i verified it is running by browser on my windows box http://10.0.0.201:8080/?action=stream I start sldisp and my screen starts to flash on arm box I alt tab out and run slcapture.py and it takes control of my mouse and i have a plus on my cursor. I cannot do anything except move the mouse at this time with my mouse and a blank terminal window is opened and is blank. This is also on my arm box I alt tab out to sldisp and screen is flashing

In the slcapture.py final_destination = "~/completed_scans"

cam_server_addr = "127.0.0.1" cam_server_port = 4011 port 8080?????

turn_server_addr = "127.0.0.1"" turn_server_port = 4013

GUI_server_addr = "10.0.0.17" windows box ip address?????? GUI_server_port = 12000

control_server_addr = "127.0.0.1" not sure what ip address this is control_server_port = 3210

I run slcontrol on my windows box with required libraries and press scan and get nothing

I assume that all these IP address are the arm box

remoteControl = new NetAddress("10.0.0.201", 4010); remoteDisplay = new NetAddress("10.0.0.201", 4021); //remoteTurntable = new NetAddress("10.0.0.201", 4013);

jhdewitt commented 6 years ago

Honestly, I need to take tonight to review the network connections code between the programs to clean it up and separate setting them out into an argument/file; having to recompile the program to change this seems pretty unreasonable.

Anyways, it seems I have comments in my local version that haven't been committed yet. Here it is but with the edits I think you want.

# mjpg streamer cam_server_addr = "127.0.0.1"

# sldisp display_server_addr = "127.0.0.1"

# slturn turn_server_addr = "127.0.0.1" // not applicable

# slcontrol GUI GUI_server_addr = "" // windows box ip

# this program (slcapture.py) control_server_addr = "127.0.0.1"

prahjister commented 6 years ago

How do I know if slcapture is running properly?

jhdewitt commented 6 years ago

If slcapture is running properly, it should have an open connection to mjpg-streamer and be showing timestamps of the incoming frames.

I start sldisp and my screen starts to flash on arm box I alt tab out and run slcapture.py and it takes control of my mouse and i have a plus on my cursor. I cannot do anything except move the mouse at this time with my mouse and a blank terminal window is opened and is blank. This is also on my arm box I alt tab out to sldisp and screen is flashing

The repo is a little behind on all changes. Concerned about breaking stuff but feeling lucky today so please pull new sldisp.cpp from repo https://github.com/jhdewitt/sltk/commit/4c725163a5e5079d5e4e8b64a6c6f50cfcfd0b18

prahjister commented 6 years ago
prahjister@amlogic:~/sltk-master$ make sldisp
g++  -lstdc++ sldisp.cpp util.cpp -o bin/sldisp `sdl2-config --static-libs --cflags` `pkg-config --libs --cflags liblo` -lGL -lGLU -lglut
sldisp.cpp: In function ‘int main(int, char**)’:
sldisp.cpp:673:35: error: ‘SERVER_CONTROL_ADDRESS’ was not declared in this scope
     lo_address t = lo_address_new(SERVER_CONTROL_ADDRESS, SERVER_CONTROL_PORT);
                                   ^
sldisp.cpp:673:59: error: ‘SERVER_CONTROL_PORT’ was not declared in this scope
     lo_address t = lo_address_new(SERVER_CONTROL_ADDRESS, SERVER_CONTROL_PORT);
                                                           ^
Makefile:67: recipe for target 'sldisp' failed
make: *** [sldisp] Error 1
prahjister@amlogic:~/sltk-master$

This is error with latest sldisp.cpp