Can i get Histogram of my picture in my pc?

i can get Histogram of frame by openmv ide when the code is running or stop .
if i want to get Histogram of a picture in pc,what should i do?

Can you provide some context here? In what desktop software? If you just want to capture a screen shot you can screen shot the IDE.

i means i want to get hsitogram of pic in my pc by openmvide .by the way ,my openmv ide 3.0.3 can’t run in my win7. openmvide can’t support win7 anylonger?

openmvide can’t support win7 anylonger?

Windows 7 is 15 years old now. It’s long out of support now. Qt won’t compile 32-bit code anymore.

i means i want to get hsitogram of pic in my pc by openmvide .

The IDE shows the histogram of the frame buffer while images are streaming. I’m assuming that you want something else given you are asking this question. Can you please explain?

in fact, someone check the openmv without ide, so he get the photoes with his mobilephone. he send the photoes to me ,i want to check the histogram by openmvide.
:joy:
the new pc is still not easily to get in a small company in china,most boss dont want to buy a new pc for staff。

You can load an image to the frame buffer using the OpenMV cam and then you’ll see the histogram in the IDE.

image.Image("path/to/file.jpg", copy_to_fb=True)

And replace the sensor.snapshot() call with that.

2 Likes

roger that ,thank you

[quote="kwagyeman, post:6, topic:10410"]
`image.Image`
[/quote]

# Untitled - By: Administrator - Thu Jan 2 2025

import sensor, image, time

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)

clock = time.clock()

while(True):
    clock.tick()
    #image.Image("./BAD2.jpg", copy_to_fb=True)# it is ok
        
    image1=image.Image("./BAD2.jpg", copy_to_fb=False)
    myhisttogram=image1.get_histogram()
    print(clock.fps())

Traceback (most recent call last):
File “”, line 18, in
ValueError: Expected a mutable image
when I want to get histogram of jpg saved in openmv, openm ide says error

myhisttogram=image1.to_rgb565().get_histogram()

Also, you don’t need to get_histogram on the camera since the IDE generates that for any image it pulls from the camera.