comment here
This commit is contained in:
@@ -56,15 +56,15 @@ vecToDict(vec::Vector{UInt8}) = copy(JSON3.read(String(vec)))
|
||||
img_str = payload["img"] # payload received thru mqtt
|
||||
buf = base64.b64decode(img_str)
|
||||
buffer = np.frombuffer(buf, dtype=np.uint8)
|
||||
frame_1 = cv2.imdecode(buffer, 1)
|
||||
frame_1_julia = pyconvert(Array, frame_1);
|
||||
img_julia_RGB = imageUtils.np2juliaImage(frame_1_julia)
|
||||
cv2_img = cv2.imdecode(buffer, 1)
|
||||
julia_array_img = pyconvert(Array, cv2_img); # resulted in julia array but in cv2-numpy's row-major BGR format
|
||||
img_julia_RGB = np2juliaImage(julia_array_img)
|
||||
|
||||
|
||||
# ----------------------------- modify image here ---------------------------- #
|
||||
|
||||
|
||||
img_bgr = imageUtils.juliaImg2npImg(img_julia_RGB);
|
||||
img_bgr = juliaImg2npImg(img_julia_RGB);
|
||||
frame_2 = np.array(img_bgr) # julia's PythonCall python-obj numpy array
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user