Python+opencv program customization, ghostwriting, ghostwriting opencv programs, ghostwriting socket python jobs

Python+opencv program customization,
ghostwriting, ghostwriting opencv program, ghostwriting socket python homework I need a python+opencv program. kk is sent to the server (another computer), the server processes the picture and generates a picture named gg, jpeg, and then the server sends the picture gg back to the machine.
Because I can write the image processing by myself, I would like to ask you to help design a program: send a picture (kk. (gg.jpg) is sent back to the machine.
Screenshot program:
import cv2
import numpy as np
import pickle
import matplotlib.pyplot as plt
import socket
import os
import sys
import struct

cap = cv2.VideoCapture(0)
index = 0
while True:
ret, frame = cap.read()
# Our operations on the frame come here
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Display the resulting frame
cv2.imshow('frame',frame)
if cv2.waitKey(1) & 0xFF == ord('p'):
cv2.imwrite("kk.jpg", frame)
index = index + 1
if cv2.waitKey(1) & 0xFF == ord('q'):
break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindohttp:
//www.daixie0.com/contents/3/1326.htmlws()

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325337771&siteId=291194637