from flask import Flask,jsonify
import cv2
import pytesseract
app = Flask(__name__)
@app.route("/")
def dummy_apii():
return jsonify("Hey folks !")
@app.route("/sp")
def dummy_api():
img =cv2.imread("./samar.jpg")
if img is not None:
return jsonify(2)
if __name__=="__main__":
app.run(port=5111)
now when i run this api this will generate web link as 127.0.0.1:5000
now i know my laptop's ip address which is somethin 192.168.220.xxx and also know port number 5111
So how visit to http://192.168.220.xxx:5111 through mobile
i want to access this through mobile
i know i might not able to make you clear about question. so if you have experience in networking , working with API please make me call 9760689425
please help me Thankyou...
Aucun commentaire:
Enregistrer un commentaire