Online Image Reader-2

Sat 17 May 2025

title: "Online Image Reader 2" author: "Raja CSP Raman" date: 2019-05-07 description: "-" type: technical_note draft: false


import requests
from PIL import Image
from io import BytesIO
url = 'https://www.cognex.com/BarcodeGenerator/Content/images/isbn.png'
response = requests.get(url)
img = Image.open(BytesIO(response.content))
img

png

type(img)
PIL.PngImagePlugin.PngImageFile
img.size
(300, 150)


Score: 5

Category: image-analysis