1

I have image like thisenter image description here

I would like to convert six distinct regions into numerical values.Is there any option for this in Python?

1 Answer 1

4
from PIL import Image
import numpy as np

im = Image.open(sample_path.bmp)
p = np.array(im)

From there you can do normal array operations on the image.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.