SOLVED IT!
Here, You can use this, hope it helps out!
UNITV2 WEB RESULT RESPONSE

Asmodev
@Asmodev
Just a wanderer
Posts made by Asmodev
-
RE: How to access JSON data from UnitV2 AI Camera?
-
UNIT V2 RESULT PAGE WORKING!
Hello lonely UnitV2 Users
I figured out how to get the RESULTS!
anyway, here is the code for 'server_core.py'
@app.route('/other/', methods=['GET']) def func_result2(): def genFuncResult2(): item = pipe_result_rx_queue.get() pipe_result_rx_queue.task_done() item += bytes('|'.encode('ascii')) yield item return Response(genFuncResult2(), mimetype='application/json; boundary=func_result')**
- PUT THAT CODE BELLOW THE @app.route('/') return response NOT INSIDE IT!
- Remember after updating server_core.py, login to ssh and type 'reboot' and then wait! IMPORTANT THAT YOU WAIT!
Once done, navigating to http://10.254.239.1/other/ will give you live information of the result every time you refresh the page.
Also, this might help if you want more than 10 classes.1: SSH YOUR UNITV2
2: NAV TO: /home/m5stack/payload/static/js/bin/
EDIT 'online_classifier.js'
change
var classifier_online_type_count_limit = 10;
to
var classifier_online_type_count_limit = 41;
#job doneWANNA SEE THE GOD DAMN SCROLL BAR?
1: SSH YOUR UNITV2
2: NAV TO: /home/m5stack/payload/templates/
change
<div id="dynamic_func_area">
to
<div id="dynamic_func_area" style="overflow-y: scroll;">
#job doneNow you can see all your classes in the list!
THANKS AND YOU'RE WELCOME M5 STACK
-
RE: unitV2 do not want to connect
@aminekh no, you can run the server manually through ssh python server_core.py
-
RE: Require root Password
@aminekh Indeed, M5Stack team should supply the pre-compiled original install of linux
-
RE: unitV2 do not want to connect
have you tried ssh with root to fix what you altered?
-
Require root Password
This password should be in the documentation but it's not, can someone supply this info or a way to alter core server files under the m5stack user? or do i have to end up using python to hack my way to editing files? I do not want to be limited to jupyter when using the terminal to edit files and testing it!