Kartik-RTP / ProtoCreatAR

Prototype for android app to be created by creatar
3 stars 0 forks source link

Sending Frames intelligently #5

Open Kartik-RTP opened 7 years ago

Kartik-RTP commented 7 years ago

To save upon data to be sent , instead of continuously sending data , we need to use gyroscopic / time based criteria to send frames to server

Kartik-RTP commented 7 years ago

this article may help a bit in designing the solution. https://passospetits.wordpress.com/2015/12/28/augmented-reality-3d-with-jpct-ae-and-artoolkit/

Kartik-RTP commented 7 years ago

Right now , the intelligent logic is as follows : - 1)Start tracking on a trigger such as a double tap.....with a counter set to 0 2)Scan a camera preview frame and search for the 'cached' markers... ---------------------if( a marker is found)--> Draw_respective_stuff & Reset_counter_to_zero ---------------------else if (marker not found ) & (counter>NO_OF_FRAMES_TO_SKIP) ------->SendFrameToServerForScanning && ResetCounterToZero --------------------else -------------------------> increment Counter by 1

This is fine for now.... maybe we'll add a time limit as to how long scanning should continue after initial trigger was given.....