Search found 234 matches

by iabdalkader
Thu May 25, 2017 10:18 am
Forum: Technical Discussion
Topic: Line detection
Replies: 4
Views: 17

Re: Line detection

I am kind of new to python but I was hoping at least the examples would be working so I can start there. The examples that ship with the IDE (built-in Examples menu) should be compatible with the latest release firmware, unless we missed something. The examples on github are updated for the new unr...
by iabdalkader
Tue May 23, 2017 2:21 pm
Forum: Technical Discussion
Topic: Connecting IDE via Wifi?
Replies: 10
Views: 480

Re: Connecting IDE via Wifi?

Hi, so I found one bug in recvfrom, it should work now. I'm attaching a debugging FW image and the client and server scripts used for testing. Please let me know if you find any other issues.
by iabdalkader
Sun May 21, 2017 4:18 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

Okay I finally got it working! It turns out you can enable EXTI and AF at the same time. The two VSYNCs now: sync1.png There's about 80us delay between FSIN and VSYNC changing on the second cam, I don't think this can be reduced (I've seen the same delay even when connecting VSYNC to FSIN directly)...
by iabdalkader
Sun May 21, 2017 1:48 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

So I figured out the exact problem, see the following figure..I get an interrupt on the rising edge of VSYNC at this point I set the IO high (with 200ns delay==perfect) problem is I don't get another interrupt on the falling edge (this is when valid data start), so as a workaround I used the HREF/LI...
by iabdalkader
Sun May 21, 2017 8:19 am
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

kwagyeman wrote:
Sat May 20, 2017 6:49 pm
Just use a standard pin interrupt.
I tried that as well, it works but changing VSYNC function disables the DCMI.
by iabdalkader
Sat May 20, 2017 6:30 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

Okay I fixed the issue with the inverted clock, and I also figured out why there's a 500us delay, it's actually the end of frame interrupt that's delayed for some reason (Note this is generated by the DCMI not the sensor). Still not able to reduce that delay or detect VSYNC falling edge. Will keep t...
by iabdalkader
Sat May 20, 2017 3:09 am
Forum: Technical Discussion
Topic: USB not working
Replies: 3
Views: 18

Re: USB not working

It sounds like the connector might be damaged from the bad cable.
Note If the flash FS is corrupted it should be recreated when the cam boots.
by iabdalkader
Thu May 18, 2017 8:14 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

kwagyeman wrote:
Thu May 18, 2017 6:30 pm
Having a non vsync master source should solve the problem right?
I'm not sure if it's a problem or just different FSIN behavior.
I think the external clock has to match the timing for VSYNC (for each frame size) but it should work.
by iabdalkader
Thu May 18, 2017 5:55 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

Both cameras should be a slave to one clock source. Neither should be a master. The clock source can come from with cam via PWM. But, not VSYNC. Why not ? I think it's okay to drive FSIN from VSYNC in master/slave setup, see this report using OV7221 (very similar to OV7725 but maybe FSIN behavior i...
by iabdalkader
Thu May 18, 2017 4:24 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

So I did some testing, I connected VSYNC directly to FSIN and it seems to work (with 200ns latency) except the second cam's VSYNC is inverted (when VSYNC1 is high VSYNC2 is low). I'm not sure why and I'm not sure if they're capturing the same frame or 2 frames back to back. Anyway, so I tried to gen...
by iabdalkader
Wed May 17, 2017 2:04 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

It's going to be hard to solder a wire to VSYNC because it's routed directly on the top layer (No vias) so you'll have to scratch the wire's solder mask and solder a wire there, or solder a very thin wire to the MCU pin. is there a problem if i permanently send trigger signal to FSIN PIN (from power...
by iabdalkader
Tue May 16, 2017 4:09 pm
Forum: Technical Discussion
Topic: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode
Replies: 14
Views: 85

Re: Acces to VSYNC pin for two OPenMV M7 in stereoscopic mode

VSYNC is connected to the MCU it's not broken out. It's possible to toggle an I/O when VSYNC interrupt occurs, but that will have to be implemented in C code. I'll try to enable that with an option in the next release.
by iabdalkader
Tue May 16, 2017 7:49 am
Forum: Technical Discussion
Topic: QRcode draw_rectangle Crush
Replies: 3
Views: 47

Re: QRcode draw_rectangle Crush

Hi, use QQVGA2 resolution for the LCD:

Code: Select all

sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield.
by iabdalkader
Mon May 15, 2017 5:13 pm
Forum: General Topics
Topic: Higher FPS
Replies: 3
Views: 96

Higher FPS

Hi, I've been working on the sensor code lately, and it seems the sensor actually supports a much higher FPS, without going into too many details, the higher FPS enables the cam to capture frames when needed and run faster (unless it's running an slow algorithm). So, I'm attaching a firmware image i...
by iabdalkader
Mon May 15, 2017 9:15 am
Forum: Technical Discussion
Topic: Brick and smoke M7
Replies: 8
Views: 87

Re: Brick and smoke M7

The camera is rated for 5V max. I wouldn't connect it again to PC or use that SD again. EDIT: Also 3.3v is output Not input. I found it a bit odd because when I use 9V at Arduino usually nothing happens. That's why the test. I am surprised that the SD card is always smoke. Each board has different ...
by iabdalkader
Mon May 15, 2017 8:57 am
Forum: Technical Discussion
Topic: Brick and smoke M7
Replies: 8
Views: 87

Re: Brick and smoke M7

The camera is rated for 5V max. I wouldn't connect it again to PC or use that SD again.

EDIT: Also 3.3v is output Not input.
by iabdalkader
Mon May 15, 2017 7:28 am
Forum: Technical Discussion
Topic: Connecting IDE via Wifi?
Replies: 10
Views: 480

Re: Connecting IDE via Wifi?

Hi,

I'll look into this ASAP, if there's a bug it will probably be fixed in the next release (a week or so from now). The next release will include new line detection code, some bug fixes and huge performance improvements.

And new bugs...
by iabdalkader
Mon May 15, 2017 6:40 am
Forum: General Topics
Topic: line follower using OpenMV
Replies: 9
Views: 201

Re: line follower using OpenMV

Is it a true statement, that having FB enabled we get additional latency while new frames stay in buffer? Is there a known way to estimate time between something happened and when the picture of it can be processed in code? My idea was to use LED for this purpose, but LED itself might be having som...
by iabdalkader
Fri May 12, 2017 10:05 pm
Forum: General Topics
Topic: line follower using OpenMV
Replies: 9
Views: 201

Re: line follower using OpenMV

Here's a GIF. Note FB is enabled, when disabled it goes way higher than that ;)
ezgif-3-197bb5fc61.gif
ezgif-3-197bb5fc61.gif (1.3 MiB) Viewed 137 times
by iabdalkader
Thu May 11, 2017 10:19 pm
Forum: General Topics
Topic: line follower using OpenMV
Replies: 9
Views: 201

Re: line follower using OpenMV

I'm working on something new, you maybe able to do close to 60FPS @QQVGA Here's a snapshot from a test
Screenshot from 2017-05-12 04-15-54.png
Screenshot from 2017-05-12 04-15-54.png (399.5 KiB) Viewed 162 times
by iabdalkader
Wed May 10, 2017 12:10 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: Re:iabdalkader

jisheng wrote:
Wed Apr 19, 2017 10:00 pm
Yes, I bought it from taobao. So do you have a formal distributor in China?
Hey, we have a distributor in China now, you can order/pre-order directly from Seeed.
by iabdalkader
Mon May 08, 2017 6:37 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 431

Re: lines.py not working as expected

So made some optimizations to Canny, it should run faster now (went from 10FPS to 15FPS @QQVGA)
by iabdalkader
Sat May 06, 2017 10:37 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 431

Re: lines.py not working as expected

But now I get the message: Error: unknown CPU 'cortex-m7' in startup_stm32f765xx.s 47 This is a toolchain issue, you need to download and install the ARM GCC toolchain and add it to the path (we're using 2016-q4) Note re Canny, I'm going to make some performance improvements very soon, you can use ...
by iabdalkader
Sat May 06, 2017 9:33 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 431

Re: lines.py not working as expected

ok, really close - now getting FLASH_TEXT overflowed by 1480 bytes in OPENMV2. OPENMV2 is the M4 camera, do you have an M4 or M7 ? If you have an M7 cam use make -j5 TARGET=OPENMV3 EDIT: Note it shouldn't overflow for M4 or M7 not sure what's going on there, maybe you added some new code or tables.
by iabdalkader
Sat May 06, 2017 7:15 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 431

Re: lines.py not working as expected

I'm getting the development environment set up anyway but it stops at not finding /micropython/stmhal. It looks like micropython files have been moved around or something? Does the makefile need to be updated in the repo or am I doing something wrong? Thanks -- Sean micropython is a submodule (sepa...
by iabdalkader
Sat May 06, 2017 6:07 pm
Forum: Technical Discussion
Topic: Light bleeding
Replies: 3
Views: 65

Re: Light bleeding

Any suggestions on how to fix that ? Note the vias are painted over already with the stop mask, but it doesn't seem to stop bleeding completely.
by iabdalkader
Sat May 06, 2017 1:32 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 431

Re: lines.py not working as expected

The threshold is the number of pixels in the line, when you use a low threshold small edges will output lines like in your example, remember those are lines not line segments so they are infinite.
by iabdalkader
Thu May 04, 2017 9:28 am
Forum: Technical Discussion
Topic: dithering
Replies: 6
Views: 116

Re: dithering

ticapix wrote:
Wed May 03, 2017 3:22 pm

Code: Select all

    for x in range(100, 2):
....
With that code, I don't see the dots on neither the LCD nor the preview in the IDE.
I only see the white diagonal on the preview in the IDE, not on the LCD.

Any clue ?
Yes:

Code: Select all

range(start, stop[, step])
by iabdalkader
Sat Apr 29, 2017 1:57 pm
Forum: Technical Discussion
Topic: micro SD
Replies: 4
Views: 108

Re: micro SD

This might work, try cleaning the socket maybe some dust got inside from drilling.
by iabdalkader
Sat Apr 29, 2017 1:52 pm
Forum: General Topics
Topic: which version opencv to compatible openmv-cascade
Replies: 1
Views: 115

Re: which version opencv to compatible openmv-cascade

OpenMV is compatible with the old Open-CV cascade format. Use -baseFormatSave if you want to generate an old format cascade.
by iabdalkader
Sat Apr 29, 2017 1:49 pm
Forum: Technical Discussion
Topic: I2C communication error
Replies: 17
Views: 243

Re: I2C communication error

This issue was resolved on github. Seems we have a Chinese community and we don't know about it :D
by iabdalkader
Sat Apr 29, 2017 12:21 pm
Forum: General Topics
Topic: JeVois -- a potential competitor?
Replies: 11
Views: 674

Re: JeVois -- a potential competitor?

SW: You have to select different video resolutions to trigger different built-in CV programs. For example, to load the Road Navigation code, you'd tell your video client to switch to YUYV 176x144 resolution. This is bizarre beyond belief: TL;DR: You have to do that if you don't want to write your o...
by iabdalkader
Thu Apr 27, 2017 10:41 pm
Forum: Technical Discussion
Topic: I2C communication error
Replies: 17
Views: 243

Re: I2C communication error

Hi,

I fixed the code format for you, next time please use the code tags.

Thanks.
by iabdalkader
Thu Apr 27, 2017 1:45 pm
Forum: Technical Discussion
Topic: openmv3 can be support SVM
Replies: 2
Views: 67

Re: openmv3 can be support SVM

Yes, this is why I implemented HoG but never got around to actually use it.

See Dalal and Triggs paper and this tutorial
by iabdalkader
Thu Apr 27, 2017 1:34 pm
Forum: Technical Discussion
Topic: Class CAN in pyb
Replies: 4
Views: 91

Re: Class CAN in pyb

Yes please give us an update when you're done, if you get a working CAN script we'll add it to the examples. Thanks! This weekend I’ll try to interface the OpenMV Cam with a SAM v71 board through CAN for both transmission and reception of messages. I’ll keep you informed of how everything went. Thnx...
by iabdalkader
Tue Apr 25, 2017 2:26 pm
Forum: Technical Discussion
Topic: run cascade file openmv3 crash
Replies: 8
Views: 259

Re: run cascade file openmv3 crash

skylin008 wrote:
Mon Apr 24, 2017 9:47 pm
Hello,iabdalkader,about the load cascade file crash issue have new methold to be solved?Thanks!
Tried again and it works, can you test the attached cascade ?
by iabdalkader
Thu Apr 20, 2017 5:56 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: Re:iabdalkader

jisheng wrote:
Wed Apr 19, 2017 10:00 pm
Yes, I bought it from taobao. So do you have a formal distributor in China?
Yes, very soon we'll have a distributor in China, I'll let you know then.
by iabdalkader
Wed Apr 19, 2017 9:51 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

Hi, this shield is Not original, did you buy this from Taobao ? We've seen many clones lately on Taobao, they use low quality parts and 2 layers PCBs for the camera board, but also they change the design, which could cause issues. I can't be sure what's wrong with the shield, as we didn't make it.
by iabdalkader
Tue Apr 18, 2017 11:40 pm
Forum: Technical Discussion
Topic: Measure the line minimal gap
Replies: 4
Views: 169

Re: Measure the line minimal gap

find_lines doesn't accept line gap and it doesn't return line segments it returns lines. You can specify the minLineLength using the threshold.
by iabdalkader
Tue Apr 18, 2017 11:27 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

You can upload it somewhere like (http://imgur.com/) and just post the link.
by iabdalkader
Tue Apr 18, 2017 10:51 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

You're not using the LCD at all in your script, unless there's a problem with the HW, this should work: import sensor, image, lcd sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize f...
by iabdalkader
Tue Apr 18, 2017 10:50 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

Click Attachments -> Add files then browse for the image, it will upload and then submit
by iabdalkader
Tue Apr 18, 2017 10:38 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

No can't see any attachments, also please include the script you used for testing.
by iabdalkader
Tue Apr 18, 2017 9:49 pm
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 17
Views: 336

Re: lcd shield doesn't work

Can you send us an image of the shield connected ?
by iabdalkader
Sat Apr 15, 2017 5:17 pm
Forum: Technical Discussion
Topic: How can uart1 of M7 OPENMV work?
Replies: 4
Views: 156

Re: How can uart1 of M7 OPENMV work?

Hi,

It's not enabled in the firmware, I'll enable it in the next release.
by iabdalkader
Thu Apr 13, 2017 6:41 pm
Forum: General Topics
Topic: Convert RGB to HSV
Replies: 1
Views: 95

Re: Convert RGB to HSV

We only have lookup tables to convert RGB565 to (RGB88, YUV, XYZ and LAB). I think you can use the XYZ then convert to HSV. or you could just use LAB.
by iabdalkader
Thu Apr 13, 2017 6:34 pm
Forum: Technical Discussion
Topic: How do I send data to the camera over USB?
Replies: 2
Views: 112

Re: How do I send data to the camera over USB?

Have you tried this ? http://docs.openmv.io/library/pyb.USB_VCP.html?highlight=readline#usb_vcp.readline Example: import time, pyb led = pyb.LED(3) usb = pyb.USB_VCP() while (True): line = usb.readline() if (line): print(line) led.on() time.sleep(150) led.off() time.sleep(150) Note you can't use thi...
by iabdalkader
Thu Apr 13, 2017 9:10 am
Forum: General Topics
Topic: Hough circle
Replies: 5
Views: 213

Re: Hough circle

@ iabdalkader, I had used different canny for edge detection,how to use the openmv3 canny detection algorithm to fit the hough circle.Thank you very much! You can just call it in the script before calling your hough circle function: img = sensor.snapshot() # Take a picture and return the image. img...
by iabdalkader
Wed Apr 12, 2017 10:18 pm
Forum: Technical Discussion
Topic: third-party library application
Replies: 4
Views: 158

Re: third-party library application

Yes you can write your own code, if you want to add Python bindings for new functions or a library just take a look at the source code and do the same, also see this post to get you started.

If your code/library adds useful features and you wish to contribute send PRs to github.

Go to advanced search