Hi there,
I save a video in mp4 via the ide with right clicking in the image viewer.
Is it possible later on to load this file and test scripts on this video?
What i do now is to load images on the sd card and open them in the frame buffer to test scripts.
Trying to find a better way.
I don’t know if i am clear on my question though. if not i will try more.
What i want is to test scripts on office instead to be on the installations and test the scripts live.
Yes, use the IDE to convert the mp4 file to an image I/o stream .bin file. After you do that you can load it on the camera.
1 Like
thanks for that!
I dont know why i didnt thought about that before.
used the:
img = stream.read(copy_to_fb=True, loop=True, pause=True)
hi there.
Although i tested and worked now pops up an “invalid pixel format” error
The only difference is that again new release and firmware update made.
Every time i make an update something happens.
The updates are continuous and i cannot follow up as it seems.
I don’t know what happened this time but the code is very simple.
Global shutter installed on h7 camera.
The video was wvga2 at 200 pixels height.
I used the simple example as to my successful test:
import image
import time
stream = image.ImageIO("/stream.bin", "r")
clock = time.clock() # Create a clock object to track the FPS.
while True:
clock.tick()
img = stream.read(copy_to_fb=True, loop=True, pause=True)
# Do machine vision algorithms on the image here.
print(clock.fps())
ok i think i figure this out by converting again the bin file with the new ide…
1 Like