The system comprises two principal components communicating via a TCP/IP socket connection, with each playing distinct roles:
- Power up the board with PYNQ image.
- Press
Windows+Ron the HOST PC and typencpa.cpland Enter. - If there is no connection to the PC/Laptop other than Internet connection and Ethernet (PYNQ board) then allow
mobile hotspoton the PC to enable the drop-down menu in thesharing sectionin properties menu. - Right click on the the connection from you have internet access. Go to:
Properties-> Sharing -> Check the
Allow other network users to connect through the computer's internet connection, And pressOK. - Check the ethernet (connected to board) ipv4 address through properties. It should be
192.168.137.1.
NOW THE BOARD HAS INTERNET ACCESS
Normally, when the board is used locally with no internet access, the default ip address of the board is 192.168.99.2. But, due to the new ipv4 address alotted to the HOST PC, a new ip address is given to the board by the PC.
- Download the
ipaddress.batfile into the PC. - Run the
.batfile and wait for it to detect the ipaddress of the PYNQ board. - Type the detected ipaddress on your web browser and access the jupyter notebook.
- Verify the internet access by typing
ping goolge.comin terminal.
- Run
PaddleOCR_PC.pynb. - Output:
Listening on 5002.... - Open and execute all cells in the PYNQ Jupyter notebook
PaddleOCR_PYNQ. - View the live camera feed in the notebook.
- Press
BTN0on the board to capture a frame from the live video feed. - Processing of the image will begun and it will be sent to Host PC.
- OCR results are shown on the PC and saved to a
ocr_results.txtfile.
Open Command Prompt and run,
netstat -aon | findstr :5000 //replace 5000 with a port number you want to check
If it returns nothing, that port is likely free. If it shows a line, the port is in use.