Search found 840 matches

by iabdalkader
Tue Jun 18, 2019 5:51 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

test.py just prints "Hello World!" and main.py is the default created with a fresh filesystem (blinks the blue LED).
by iabdalkader
Tue Jun 18, 2019 3:45 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

Hi I tested both scripts with 3.4.1 on Windows 10, and they're both working fine:
Helloworld test:
Capture.PNG
Capture.PNG (4.42 KiB) Viewed 84 times
And this is a framebuffer test:
Capture2.PNG

The only thing I can think of is there must be something in your main.py that's using USB VCP.
by iabdalkader
Mon Jun 17, 2019 5:47 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

Also please make sure you don't have any scripts running that use VCP. Like if main.py uses VCP it will break the script.
by iabdalkader
Mon Jun 17, 2019 5:46 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

I'll try to test it later tonight, what's your firmware version ? IDE version ? And Windows ?
by iabdalkader
Mon Jun 17, 2019 4:19 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

Are you also using the IDE at the same time ? You shouldn't connect the IDE when using this script.
by iabdalkader
Mon Jun 17, 2019 4:03 pm
Forum: General Topics
Topic: Transferring images from OpenMV 7 to PC takes 1.3 seconds
Replies: 11
Views: 168

Re: Transferring images from OpenMV 7 to PC takes 1.3 seconds

I was using the upython script included at the beginning of 'pyopenmv_fb.py' but I noticed that it has no print or usb.send command so I'm not sure how the image would be transferred? pyopenmv_fb.py uses the debugging mode to execute a script that updates the fb (the example script at the beginning...
by iabdalkader
Thu Jun 13, 2019 1:59 pm
Forum: Technical Discussion
Topic: OpenMV M7 : Memory error - how to make frozen code ?
Replies: 3
Views: 513

Re: OpenMV M7 : Memory error - how to make frozen code ?

Okay I tested your code on H7 and it doesn't run out of memory, but you're still going to have issues with threading. I see threading is only used in the main script and not in the library, so you should be able to get this code working without threads on the M7 (maybe with frozen code) or on the H7.
by iabdalkader
Thu Jun 13, 2019 1:45 pm
Forum: Technical Discussion
Topic: OpenMV M7 : Memory error - how to make frozen code ?
Replies: 3
Views: 513

Re: OpenMV M7 : Memory error - how to make frozen code ?

The M7 is OPENMV3 board. Frozen code is built into the image (otherwise it would need RAM), so it will require a firmware flash yes. The easiest solution would be to get the H7 with more RAM (128KBs heap). EDIT: I don't think you're running out of heap memory, I think it's an issue with threads. We ...
by iabdalkader
Tue Jun 11, 2019 9:48 am
Forum: General Topics
Topic: polar coordinates
Replies: 1
Views: 262

Re: polar coordinates

Code: Select all

import math

def polar(cx, cy):
    return (math.sqrt(cx**2+ cy**2), math.atan(cy/cx) * 180 / math.pi)
print(polar(10, 10))
by iabdalkader
Sat Jun 08, 2019 7:08 pm
Forum: Technical Discussion
Topic: Problem: Broadcast Discovery Port
Replies: 14
Views: 1378

Re: Problem: Broadcast Discovery Port

@KevinFreese Do you also get the warning message about the discovery port ? I'm just guessing but it's possible that when the port is reserved or can't be used by the IDE, it gets stuck trying to open that port. Anyway, we'll work on getting this bug fixed very soon.
by iabdalkader
Thu Jun 06, 2019 12:58 pm
Forum: Technical Discussion
Topic: image areas analyse
Replies: 1
Views: 187

Re: image areas analyse

Hi, use pgm for now there seems to be a bug in bmp code.
by iabdalkader
Wed Jun 05, 2019 6:09 pm
Forum: Technical Discussion
Topic: OSError: failed to init WINC1500 module
Replies: 16
Views: 523

Re: OSError: failed to init WINC1500 module

Do you wait long enough for it to connect, get ip etc.. and print ?
by iabdalkader
Wed Jun 05, 2019 5:27 pm
Forum: Technical Discussion
Topic: OSError: failed to init WINC1500 module
Replies: 16
Views: 523

Re: OSError: failed to init WINC1500 module

Now... there is a new problem. The Serial Terminal output remains at: >>> Trying to connect... (may take a while)... Running in Station mode... Tried with: "connect_1.py", "tcp_client_1.py" and "dns_1.py" What can be the reason? What is the problem ? It seems running normal. Did you set the SSID an...
by iabdalkader
Wed Jun 05, 2019 5:07 pm
Forum: Technical Discussion
Topic: OSError: failed to init WINC1500 module
Replies: 16
Views: 523

Re: OSError: failed to init WINC1500 module

Please note when you solder the headers they should look like this:
web-new-cam-v3-angle_grande.jpg
by iabdalkader
Wed Jun 05, 2019 4:11 pm
Forum: Technical Discussion
Topic: OSError: failed to init WINC1500 module
Replies: 16
Views: 523

Re: OSError: failed to init WINC1500 module

Bottom right corner of the IDE when you connect.
Screenshot from 2019-06-05 22-11-44.png
by iabdalkader
Wed Jun 05, 2019 3:48 pm
Forum: Technical Discussion
Topic: OSError: failed to init WINC1500 module
Replies: 16
Views: 523

Re: OSError: failed to init WINC1500 module

How do you connect the shield ? A photo would help us a lot. And what firmware version do you have on those cameras ?
by iabdalkader
Wed Jun 05, 2019 3:29 pm
Forum: Technical Discussion
Topic: OpenMV and NodeMCU cant work together
Replies: 1
Views: 98

Re: OpenMV and NodeMCU cant work together

I don't understand you, can you try to explain it again ? Also a picture of the wiring would help.
by iabdalkader
Wed Jun 05, 2019 10:49 am
Forum: Technical Discussion
Topic: OPENMV H7 stopped working
Replies: 7
Views: 381

Re: OPENMV H7 stopped working

You could just format the SD card (fat or exFAT will work) or try a different card.
by iabdalkader
Wed Jun 05, 2019 10:45 am
Forum: General Topics
Topic: UVC mode couldn't work on openmv3 M7
Replies: 8
Views: 3216

Re: UVC mode couldn't work on openmv3 M7 with Windows 10

Hello, I'd like to use the OpenMV Cam M7 with UVC firmware. While I can successfully connect it and use it in Linux Ubuntu (with guvcview or Skype), I cannot make it work in Windows 10. I saw that other people had the same problem. Are there any news about it? Thanks, Ronnye Yes it doesn't work on ...
by iabdalkader
Wed Jun 05, 2019 10:44 am
Forum: Technical Discussion
Topic: How to raise an interrupt from existing ADC
Replies: 3
Views: 152

Re: How to raise an interrupt from existing ADC

I understand that interrupts can be of use here. But how to raise an interrupt from ADC which continuously raises and falls? I don't think you can do that, there's no sleep/wake on ADC at least not that I know of. Alternatively you could just put the cam in low power, wake up, check adc and back to...
by iabdalkader
Wed Jun 05, 2019 10:31 am
Forum: Technical Discussion
Topic: Need explanation of nn.c
Replies: 3
Views: 181

Re: Need explanation of nn.c

Yes the input range is 0-255 as I've told you before and you could always print the input/output values, build the code and see the values. BTW the scaling part comes from ARM ML examples, you may find more help there: https://github.com/ARM-software/ML-examples https://github.com/ARM-software/CMSIS_5
by iabdalkader
Tue Jun 04, 2019 7:49 pm
Forum: Technical Discussion
Topic: uart request / response snapshot
Replies: 3
Views: 187

Re: uart request / response snapshot

Yes you'll find so many examples for this if you search the forums: http://forums.openmv.io/search.php?keywords=arduino+uart+serial http://forums.openmv.io/search.php?keywords=arduino%2Buart&terms=all&author=&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search They don't do exactly w...
by iabdalkader
Tue Jun 04, 2019 10:58 am
Forum: Technical Discussion
Topic: set gain ceiling
Replies: 4
Views: 171

Re: set gain ceiling

chrisPyres66 wrote:
Tue Jun 04, 2019 10:53 am
But i dont still understand teh relationship between gain and register ?
I think it's explained some where in an appnote.
by iabdalkader
Tue Jun 04, 2019 9:58 am
Forum: Technical Discussion
Topic: set gain ceiling
Replies: 4
Views: 171

Re: set gain ceiling

set_gainceiling takes multipliers not db. So 4 means 4x the value is the max gain.
by iabdalkader
Tue Jun 04, 2019 9:53 am
Forum: Technical Discussion
Topic: Need explanation of nn.c
Replies: 3
Views: 181

Re: Need explanation of nn.c

Yes it removes the mean from every channel and scales the input in one step.
by iabdalkader
Wed May 29, 2019 9:39 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

It looks like it's working
Screenshot from 2019-05-30 03-39-13.png
You should double check your wiring and test the same example, if it still doesn't work maybe you have damaged your board after all.
by iabdalkader
Wed May 29, 2019 7:47 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

No it doesn't, this isn't defined:

Code: Select all

labels[max_idx]
labels and max_idx.

At least run the code before you send it.
by iabdalkader
Wed May 29, 2019 6:15 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

Do you initialize the serial port and set the baudrate to 9600 ? Like this:

Code: Select all

uart = UART(3, 9600, timeout_char = 1000)
I can't test your code unless you send a working example. Please understand that I have limited time.
by iabdalkader
Wed May 29, 2019 4:45 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

I just realized that you don't even initialize UART. Please try the built-in Examples or search the forums for examples and if it doesn't work let me know and I'll test it. Note id() returns the ID of an object (think of it like a memory address) it's a unique ID for the object, you should compare t...
by iabdalkader
Wed May 29, 2019 4:10 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

Hi, what is labels, where is it defined and where it's written to ? And this part: messageCheck = 209 #ID for letter h if (id(messageReceived) == messageCheck): Do you compare the object id to 209 ? Why would the object ID equal 209 ? https://docs.python.org/2/library/functions.html#id
by iabdalkader
Wed May 29, 2019 12:06 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

if you could test my code, maybe with an easier version of just sending letters or numbers to each other
I haven't had the time yet, it would be helpful if you could provide an simpler example that shows the same issue
by iabdalkader
Tue May 28, 2019 6:06 pm
Forum: Technical Discussion
Topic: lens correction not working as expected
Replies: 2
Views: 2602

Re: lens correction not working as expected

It could be a rounding issue, we use floats. The algorithm is based on this:
http://www.tannerhelland.com/4743/simpl ... istortion/

And this is our code:

https://github.com/openmv/openmv/blob/m ... lib.c#L800
by iabdalkader
Tue May 28, 2019 6:02 pm
Forum: General Topics
Topic: Camera communication with Arduino Mega
Replies: 15
Views: 2913

Re: Camera communication with Arduino Mega

It's hard to tell by just looking at all the code, I could test it tomorrow and get back to you. In the meantime, you say it used to work I'd double check the wiring, also if you search the forums you'll find many working Arduino examples try some of them and see if they work.
by iabdalkader
Tue May 28, 2019 4:02 pm
Forum: Technical Discussion
Topic: DIY LCD-shield
Replies: 2
Views: 2759

Re: DIY LCD-shield

That's a ferrite bead (MPZ1608S181ATAH0) it's for filtering the power supply, you don't absolutely have to use it.
by iabdalkader
Tue May 28, 2019 7:34 am
Forum: Technical Discussion
Topic: Heap Memory Error problem.
Replies: 4
Views: 2685

Re: Heap Memory Error problem.

The H7 has more RAM but I can't say for sure if it will be enough for your project without more details. And no you don't need to reset the cam after each save.
by iabdalkader
Mon May 27, 2019 11:42 pm
Forum: Technical Discussion
Topic: OpenMV Cam M7 Text Recognition
Replies: 7
Views: 3314

Re: OpenMV Cam M7 Text Recognition

It's for retraining the network, you said you wanted to retrain the network to work on the F7.
by iabdalkader
Mon May 27, 2019 5:44 pm
Forum: Technical Discussion
Topic: Remote Camera
Replies: 2
Views: 3064

Re: Remote Camera

I think we have a feature to run code on recorded videos, if all you need is to capture a video outside that would be the best. For what it's worth, WiFi programming is working, at least when I test it, but it could use improvements, also the the range might be limited. Another option is to use ESP3...
by iabdalkader
Sun May 26, 2019 9:18 am
Forum: Project Discussion
Topic: Detect a candle fire using OpenMV H7 and FLIR
Replies: 13
Views: 4500

Re: Detect a candle fire using OpenMV H7 and FLIR

You can definitely use FLIR for this, but note it's limited to 9FPS.
by iabdalkader
Fri May 24, 2019 4:23 pm
Forum: General Topics
Topic: OpenMV Problem
Replies: 2
Views: 2680

Re: OpenMV Problem

Have you tried re-flashing the firmware ? Tools->Run Bootloader
by iabdalkader
Fri May 24, 2019 10:09 am
Forum: Technical Discussion
Topic: h7 CAN not available
Replies: 17
Views: 8483

Re: h7 CAN not available

Hi Stefan,

There's an open PR here with all my changes:

https://github.com/micropython/micropython/pull/4793
by iabdalkader
Tue May 21, 2019 10:14 pm
Forum: Technical Discussion
Topic: Exchange the X and Y axis ...
Replies: 6
Views: 2863

Re: Exchange the X and Y axis ...

Do you need to rotate the image ? See replace and transpose:

http://docs.openmv.io/library/omv.image ... ge.replace
by iabdalkader
Tue May 21, 2019 10:05 am
Forum: Technical Discussion
Topic: h7 CAN not available
Replies: 17
Views: 8483

Re: h7 CAN not available

Great, attached a firmware image that enables FDCAN. You just need to test with something like this: from pyb import CAN can = CAN(2, CAN.LOOPBACK) can.send('Hello', 123)# send message with id 123 from pyb import CAN can = CAN(2, CAN.LOOPBACK) print(can.recv(0, timeout=10000)) # receive message on F...
by iabdalkader
Mon May 20, 2019 1:12 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 28
Views: 6283

Re: LCD type

Actually that patch for 65535 bytes limit has been merged in our code (and upstream) a long time ago. Maybe you have an old firmware.
by iabdalkader
Sun May 19, 2019 8:47 pm
Forum: General Topics
Topic: Tringale detection
Replies: 2
Views: 1819

Re: Tringale detection

No there's no function to detect triangles, but it could be extended to detect that in the future.
by iabdalkader
Sun May 19, 2019 6:32 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 28
Views: 6283

Re: LCD type

Do you have a link for that PR ? or a link to where the issue was discussed ? I don't remember this bug.
by iabdalkader
Sun May 19, 2019 5:32 pm
Forum: General Topics
Topic: LCD Backlight Only
Replies: 10
Views: 3767

Re: LCD Backlight Only

We don't solder headers anymore because customers prefer different types of headers (or no headers at all :roll: ) and yes if you solder the headers you can connect and disconnect shields.
by iabdalkader
Sun May 19, 2019 4:35 pm
Forum: General Topics
Topic: LCD Backlight Only
Replies: 10
Views: 3767

Re: LCD Backlight Only

@jcarlos These pins need to be soldered to the board to make electrical connections, it's not enough to just put them there. Do you know how to solder ? If not you should ask someone for help. Note be careful which type of pins you choose, they're very hard to desolder. Soldering those short pins on...
by iabdalkader
Sun May 19, 2019 4:11 pm
Forum: General Topics
Topic: Could not start openmvide on raspberry pi
Replies: 6
Views: 2856

Re: Could not start openmvide on raspberry pi

Hi,

Could you try running the IDE from the terminal ?
by iabdalkader
Sun May 19, 2019 10:57 am
Forum: General Topics
Topic: It does not focus with Ultra Wide Angle Lens
Replies: 16
Views: 3891

Re: It does not focus with Ultra Wide Angle Lens

It looks like a problem with some lens mounts, I'll have more details later. For now all I can do is send you a replacement, please order another lens mount and I'll refund. As for the other issues, please search the forums first for issues related to LCD or WiFi shields, if nothing helps go ahead a...
by iabdalkader
Sun May 19, 2019 10:12 am
Forum: Technical Discussion
Topic: code which supports vl53L0X?
Replies: 1
Views: 1825

Re: code which supports vl53L0X?

Yes
https://github.com/openmv/openmv/blob/m ... vl53l1x.py


Open this example Examples->30-Distance-Shield->distance_read.py and from Tool->Save open script... It will copy the script and library to the camera.

Go to advanced search