I am confused as i try to make my A33 JeVois camera to base64 encode a single frame then send this base64 string to nodeMCU thru serial.
I made this python module :
import libjevois as jevois
self.frame = 0
self.image_requested = True
def processNoUSB(self, inframe):
img = inframe.getCvBGR()
retval, cnt = cv2.imencode('.jpg',img)
bcnt = base64.b64encode(cnt)
self.image_requested = False
If i try this code with jevois-daemon (replacing processNoUSB(self, inframe) by process(self, inframe, outframe)) the module works great and print the base64 in my terminal.
But when i import it to th camera and run it using serial commands i have no output at all, except the default jevois log (INF Engine::setFormatInternal: Module [img2serial] loaded, initialized, and ready).
I really don't know what am i doig wrong.
My goal is to make my nodemcu get a single frame from jevois as a base64 encoded string and then send this string to a php webpage. Any suggestion ?