frame reading

Discussion related to "under the hood" OpenMV topics.
rajeshktym
Posts: 12
Joined: Wed Mar 07, 2018 7:04 pm
Location: KOCHI
Contact:

frame reading

Postby rajeshktym » Sun Oct 07, 2018 1:22 am

I m trying to read frame through above code but size always shows (0, 1162563860, 1171345940) this, any idea why I m not getting jpeg frame?
Attachments
main.py
(3.4 KiB) Downloaded 24 times
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: frame reading

Postby kwagyeman » Sun Oct 07, 2018 2:12 am

That's a garbage frame. If the first value is 0 then you need to keep reading until you get a non-zero first value. Then the frame is ready.
Nyamekye,
rajeshktym
Posts: 12
Joined: Wed Mar 07, 2018 7:04 pm
Location: KOCHI
Contact:

Re: frame reading

Postby rajeshktym » Sun Oct 07, 2018 8:32 pm

yes sir, I m trying to get non zero as first value, but it always give 0, what could be reason? where I can check?
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: frame reading

Postby kwagyeman » Mon Oct 08, 2018 3:05 am

Um, a script needs to be running on the camera that calls snapshot. Can you verify the script is running?
Nyamekye,
rajeshktym
Posts: 12
Joined: Wed Mar 07, 2018 7:04 pm
Location: KOCHI
Contact:

Re: frame reading

Postby rajeshktym » Mon Oct 08, 2018 6:27 am

script included in my python code and I m executing beginning, can u please see my code? if u can suggest some thing will be gr8 help
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: frame reading

Postby kwagyeman » Mon Oct 08, 2018 11:51 pm

Can you start with this script?

https://github.com/openmv/openmv/blob/m ... enmv_fb.py

You've edited our code heavily...
Nyamekye,
rajeshktym
Posts: 12
Joined: Wed Mar 07, 2018 7:04 pm
Location: KOCHI
Contact:

Re: frame reading

Postby rajeshktym » Wed Oct 10, 2018 6:41 pm

Yes Sir, I referred and made it from your library only, trying to convert it as stand alone sensor. your sample code is working with module. but simplified my code is not working, that I m trying to solve and looking for any help..
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: frame reading

Postby kwagyeman » Thu Oct 11, 2018 12:24 am

Um, so, just go back to our code and just ignore parts you don't need... you don't have to modify the code if you don't need to.

I tried your script out and could confirm it's not working. But, I really can't do hands on debug support anymore. Too many people are asking for my time now.
Nyamekye,
rajeshktym
Posts: 12
Joined: Wed Mar 07, 2018 7:04 pm
Location: KOCHI
Contact:

Re: frame reading

Postby rajeshktym » Thu Oct 11, 2018 5:09 am

I understand sir, thanks for ur support, thought some members tried the same and may get some help

Return to “Technical Discussion”

Who is online

Users browsing this forum: pcls1026 and 7 guests