Search found 690 matches

by iabdalkader
Sun Mar 17, 2019 12:25 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 22
Views: 713

Re: Artifacts from camera after running CNN and frame differencing

This is not related to NN or any other image function. There's an issue with extra_fb in particular and with fb memory in general, I'll try to fix this soon before the next release (the fix will make extra_fb have less memory, so be prepared for that). For now the only workaround is to avoid using e...
by iabdalkader
Fri Mar 15, 2019 1:56 pm
Forum: Project Discussion
Topic: Find red color and setar pin 1
Replies: 2
Views: 83

Re: Find red color and setar pin 1

Also please stop posting the same question in every forum we have, we got it :)
by iabdalkader
Fri Mar 15, 2019 1:48 pm
Forum: Project Discussion
Topic: Find red color and setar pin 1
Replies: 2
Views: 83

Re: Find red color and setar pin 1

Hi, please post the code you have so far and an example image of what you want to track and we'll help.
by iabdalkader
Sat Mar 09, 2019 3:49 pm
Forum: General Topics
Topic: white and cold image colors for M7 (OV7725) => blur image
Replies: 6
Views: 525

Re: white and cold image colors for M7 (OV7725) => blur image

This will help you understand how it works
Screenshot from 2019-03-09 22-44-15.png
by iabdalkader
Sat Mar 09, 2019 3:37 pm
Forum: General Topics
Topic: white and cold image colors for M7 (OV7725) => blur image
Replies: 6
Views: 525

Re: white and cold image colors for M7 (OV7725) => blur image

This just limits AGC/AEC to that range and it should make the image darker. But also note there's another region for fast AGC/AEC controlled by VPT(0x26).
by iabdalkader
Fri Mar 08, 2019 7:56 am
Forum: Technical Discussion
Topic: Openmv _thread module support?
Replies: 4
Views: 166

Re: Openmv _thread module support?

It works in Micropyhton because they don't use this patch, we use this patch because this bug affects the IDE (causes the camera to crash when the script is started/stopped). There's No plan to support threading before this issue is fixed in Micropython first.
by iabdalkader
Thu Mar 07, 2019 11:00 am
Forum: Technical Discussion
Topic: 12 hr. Time lapse Snapshots
Replies: 2
Views: 124

Re: 12 hr. Time lapse Snapshots

If you search the forums I think you'll find examples for timelapse. Anyway, what problem are you having with your code ? Can you post the script ?
by iabdalkader
Thu Mar 07, 2019 10:58 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 22
Views: 597

Re: cnn accuracy on m7

Eric wrote:
Wed Mar 06, 2019 7:14 am
Of these 100 persons only 11 were recognized.
Are you sure the labels are not inverted ? 0 for person 1 for something else ? Note some accuracy is lost when the model is quantized, but shouldn't be this bad.
by iabdalkader
Thu Mar 07, 2019 10:37 am
Forum: Technical Discussion
Topic: Openmv _thread module support?
Replies: 4
Views: 166

Re: Openmv _thread module support?

Threading doesn't work very well with our code, probably due to this bug with pendsv handler:

https://github.com/micropython/micropython/issues/3842
by iabdalkader
Tue Mar 05, 2019 3:37 pm
Forum: Technical Discussion
Topic: USB_HID.recv Function
Replies: 2
Views: 106

Re: USB_HID.recv Function

That's not how you use HID, you send the events to simulate a keyboard or a mouse, for example:

Code: Select all

import pyb, time

hid = pyb.USB_HID()

while(True):
    # x, y and scroll
    # move 10 pixels to the right
    hid.send((0, 10, 0, 0))
    time.sleep(500)
by iabdalkader
Wed Feb 27, 2019 9:24 am
Forum: Technical Discussion
Topic: USB HID mode
Replies: 21
Views: 2285

Re: USB HID mode

Hello
Is It possible to write Custom USB descriptors for Device(openMV) to combine HID mouse and HID keyboard ???
No that's not supported.
by iabdalkader
Wed Feb 20, 2019 12:15 pm
Forum: General Topics
Topic: UVC mode couldn't work on openmv3 M7
Replies: 6
Views: 346

Re: UVC mode couldn't work on openmv3 M7

Hi, It works now. The root cause is USB hub. If openmv connect Ubuntu directly without hub, qtcam/guvcview could open the new video device and show the preview(). But in windows10, the default camera app couldn't find openmv uvc camera even through device manager had recognized it. Is there some di...
by iabdalkader
Tue Feb 19, 2019 10:47 am
Forum: General Topics
Topic: UVC mode couldn't work on openmv3 M7
Replies: 6
Views: 346

Re: UVC mode couldn't work on openmv3 M7

Hi,
Try guvcview -d /dev/video0
by iabdalkader
Mon Feb 18, 2019 5:23 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

Jhett wrote:
Mon Feb 18, 2019 4:54 pm
IT'S FINALLY WORKING...sort of. When I run the code as is print(size) comes out as 1885433459. Any idea what that is?
No, check main.py you're probably sending something else.
by iabdalkader
Mon Feb 18, 2019 4:30 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

Okay so it looks like dsrdtr is ignored on Windows, adding setDTR(True) after opening the port seems to fix it. import sys, serial, struct port = 'COM3' sp = serial.Serial(port, baudrate=115200, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, xonxoff=False, rtscts=False, stopbits=serial.STOPBI...
by iabdalkader
Mon Feb 18, 2019 3:40 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

The camera is still not recognizing it's connected to send data The last script I sent doesn't use isconnected() at all and it doesn't wait for the camera to be connected (it waits until "snap" is received). Please test the code exactly as it is without any changes (well except for the timeout if t...
by iabdalkader
Mon Feb 18, 2019 1:56 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

Your code is different, timeout=5 I think timeout is in milliseconds. I tested the following example on Linux and it's working, can you try it ? This is saved as main.py: import ustruct from pyb import USB_VCP usb = USB_VCP() while(True): try: cmd = usb.recv(4, timeout=5000) if (cmd == b'snap'): usb...
by iabdalkader
Mon Feb 18, 2019 10:22 am
Forum: Technical Discussion
Topic: Debugging OpenMV with st-link
Replies: 8
Views: 3031

Re: Debugging OpenMV with st-link

Hi, Can you please help me to connect (ST-link v2) debugger https://www.st.com/en/development-tools/st-link-v2.html to the OpenMV M7 board please? Is there any image/video/document to explain this? Thanks in advance. It's very straightforward, you just need to connect SWC->SWC, SWD->SWD, TRST->RST,...
by iabdalkader
Mon Feb 18, 2019 10:08 am
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

How do you open the serial port from blender ?
by iabdalkader
Sat Feb 16, 2019 11:29 am
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

Actually the code sends the image size first (a number) followed by a compressed image. You can modify the script to send numbers only. Just make sure the IDE is Not connected.
by iabdalkader
Fri Feb 15, 2019 9:11 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

I've tried using that code but it doesn't seem to work. I'm not well versed in programming but my Blender version uses python 3.5.3 which I'm guessing is why that code isn't working. How do you run the code on openmv ? It must be saved as main.py and you can't use the IDE and open the port at the s...
by iabdalkader
Fri Feb 15, 2019 3:57 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 24
Views: 572

Re: Having trouble with USB_VCP

Hi, you need to set DTR when the serial port is opened. See this example:

https://github.com/openmv/openmv/blob/m ... usb_vcp.py
by iabdalkader
Sat Feb 09, 2019 8:31 pm
Forum: Project Discussion
Topic: Change of MCU
Replies: 15
Views: 6938

Re: Change of MCU

Yes the firmware for that is long gone and none of the current features existed back then, plus your pin-out will probably be different. You can still find the old SDRAM driver in the source code if it helps.
by iabdalkader
Fri Feb 08, 2019 10:57 am
Forum: Project Discussion
Topic: Detect a zone for catch something with M7
Replies: 6
Views: 340

Re: Detect a zone for catch something with M7

You want to detect the can ? Can you use colors find_blobs() ?
by iabdalkader
Wed Feb 06, 2019 6:38 pm
Forum: Technical Discussion
Topic: runningg code without being connected to a laptop
Replies: 1
Views: 133

Re: runningg code without being connected to a laptop

Hello there I am having troubles getting code to run on the open MV when connected to the raspberry pi how would I get the code to run by itself and not connected to a computer but without the code running on the pi. Save your code as main.py, make sure to safely remove (eject) the drive and it sho...
by iabdalkader
Wed Feb 06, 2019 6:23 pm
Forum: General Topics
Topic: Multi threading
Replies: 3
Views: 203

Re: Multi threading

Just for the record, multi-threading is supported by MicroPython but it's experimental and disabled by default. Also I'm not so sure it will play nice with our modifications. So it will probably never happen. If you want to call some function periodically you should use timers. See the timer control...
by iabdalkader
Tue Feb 05, 2019 2:37 pm
Forum: Technical Discussion
Topic: Device is not getting detected and getting heated up when plugged
Replies: 8
Views: 397

Re: Device is not getting detected and getting heated up when plugged

Did you solder those headers recently ? If so you might want to remove them, sometimes they short, if not you could check every capacitor see if one is shorting. This is definitely a hardware problem, I doubt reflashing the firmware will help.
by iabdalkader
Fri Feb 01, 2019 6:11 pm
Forum: Technical Discussion
Topic: uos vs os modules
Replies: 2
Views: 191

Re: uos vs os modules

They both link to the same module, some googling verifies this:

https://forum.micropython.org/viewtopic.php?t=5124
by iabdalkader
Fri Feb 01, 2019 6:08 pm
Forum: Technical Discussion
Topic: External SD card access
Replies: 5
Views: 188

Re: External SD card access

I realize OpenMV provides its own SD card, but sometimes you want to utilize an external SD card. For example, I'm working with an Arduino shield that has its own SD card. In Arduinoland, it is accessed from the Arduino SD.h library, which uses SPI to interact with the SD card. There is an SS pin o...
by iabdalkader
Fri Feb 01, 2019 5:59 pm
Forum: Technical Discussion
Topic: Overclocking example seems out of date
Replies: 1
Views: 83

Re: Overclocking example seems out of date

Yes the example is outdated, the updated example is here: https://github.com/openmv/openmv/blob/master/scripts/examples/02-Board-Control/cpufreq_scaling.py It's still new so it will be included in the next IDE release. This example should explain the values returned by get_current_frequencies as wel...
by iabdalkader
Thu Jan 31, 2019 6:08 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 22
Views: 713

Re: Artifacts from camera after running CNN and frame differencing

Hi, this issue has been fixed, please try the attached firmware if you don't want to wait for the next release.
by iabdalkader
Wed Jan 30, 2019 2:05 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 22
Views: 713

Re: Artifacts from camera after running CNN and frame differencing

Hi, I tested your code and saw the artifacts, it's an issue with extra_fb that we will fix very soon. For now, you should save the background image to disk, and pass a path to img.difference. Please let me know if this fixes the issue.
by iabdalkader
Sun Jan 27, 2019 4:12 pm
Forum: Technical Discussion
Topic: SD Card Problem Migrating to H7
Replies: 11
Views: 344

Re: SD Card Problem Migrating to H7

dcolemans wrote:
Sun Jan 27, 2019 2:22 pm
I got the firmware post on the "other" forum thread viewtopic.php?f=3&t=1117&p=7163#p7163. I loaded it and it worked perfectly for solving the SD card problem. Thank you.
Any older release should work, I'll be doing a new release with exFAT disabled soon.
by iabdalkader
Sat Jan 26, 2019 1:42 pm
Forum: Technical Discussion
Topic: SD Card Problem Migrating to H7
Replies: 11
Views: 344

Re: SD Card Problem Migrating to H7

I tried the mjpeg.py example and it too fails. It start up with the message, runs for a few seconds (200 frames I assume) and then dies. After that I have to un-power and re-power the cam to get the USB to connect. Our messages are crossing. OK. Thanks for looking into it. You guys are the greatest...
by iabdalkader
Thu Jan 24, 2019 8:13 pm
Forum: Technical Discussion
Topic: SD Card Problem Migrating to H7
Replies: 11
Views: 344

Re: SD Card Problem Migrating to H7

Yes I can reproduce the bug with the mjpeg.py example, will debug it and get back to you.
by iabdalkader
Thu Jan 24, 2019 4:36 pm
Forum: Technical Discussion
Topic: SD Card Problem Migrating to H7
Replies: 11
Views: 344

Re: SD Card Problem Migrating to H7

Can you attach the full script ? Also does the example mjpeg.py work ?
by iabdalkader
Sat Jan 19, 2019 9:29 pm
Forum: Technical Discussion
Topic: GPIO on P6
Replies: 6
Views: 265

Re: GPIO on P6

There was something different about this pin in the datasheet, let me check and get back to you.

EDIT: No actually other than something about current injection, it looks normal. If you're still having a problem post the code and I'll test it.
by iabdalkader
Mon Jan 14, 2019 4:00 pm
Forum: Technical Discussion
Topic: Problem writing txt file
Replies: 7
Views: 1709

Re: Problem writing txt file

Also let me just add that you truncate the file, you should use "a" mode: The argument mode points to a string beginning with one of the following sequences (Additional characters may follow these sequences.): ``r'' Open text file for reading. The stream is positioned at the beginning of the file. `...
by iabdalkader
Mon Jan 14, 2019 10:08 am
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 9
Views: 1979

Re: how to send image to server by post to http?

librazxc wrote:
Mon Jan 14, 2019 2:44 am
Thanks.By the way,Is the ATwinC1500 hardware itself not supported SSL or just does not transplant the relevant ssl code in OpenMV3?
No the hardware supports it, but currently there's no way to download certificates to the module flash.
by iabdalkader
Sun Jan 13, 2019 8:21 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 9
Views: 1979

Re: how to send image to server by post to http?

Hi,the MJPEG example is based on http,but my server address is based on https. when i use the function:usocket.getaddrinfo(),it can't parse url correctly,there was an error in the OpenMV IDE,Oserror -1. My URL is https://aip.baidubce.com/rest/2.0/image ... 5-15254242 I thought it just related to Ht...
by iabdalkader
Sun Jan 13, 2019 7:17 pm
Forum: General Topics
Topic: Sleep mode
Replies: 5
Views: 1609

Re: Sleep mode

ngattuso wrote:
Sun Jan 13, 2019 4:21 pm
Is there an advantage in keeping the camera on while the board is on sleep?
It takes some time to wake up the sensor (a few 100 milliseconds) and for the sensor auto functions to settle.
by iabdalkader
Sat Jan 12, 2019 7:22 pm
Forum: General Topics
Topic: Sleep mode
Replies: 5
Views: 1609

Re: Sleep mode

Hello, - I notice that there's pyb.stop and sensor.sleep. If I only do pyb.stop, then does that leave the camera on with the ability to process images still? If so, using Frame Differencing, can I wake up the hardware from pyb.stop when an object is detected? Or, is the wakeup strictly with an exte...
by iabdalkader
Fri Jan 11, 2019 9:31 pm
Forum: Technical Discussion
Topic: QUESTION ABOUT I2C CONNECTION
Replies: 4
Views: 1364

Re: QUESTION ABOUT I2C CONNECTION

I think you're connecting VIN to VIN, that's the power input pin on the OpenMV cam. You should connect the sensor's VIN to 3.3/vout.
by iabdalkader
Fri Jan 11, 2019 6:02 pm
Forum: Technical Discussion
Topic: image drawstring() landscape orientation (or image rotation function)?
Replies: 3
Views: 1382

Re: image drawstring() landscape orientation (or image rotation function)?

Is there a straightforward way to write text onto the image in landscape orientation? I see no parameters to Image.draw_string() that would do this out of the box. Alternatively, is there correspondingly simple way to rotate an image (one could rotate, write text, then rotate back in order to maint...
by iabdalkader
Fri Jan 11, 2019 5:46 pm
Forum: Technical Discussion
Topic: Are the ML examples written for the H7 (heap errors on M7)
Replies: 1
Views: 1096

Re: Are the ML examples written for the H7 (heap errors on M7)

Yes most of the networks need more RAM, only the cifar10_fast works on the F7.
by iabdalkader
Fri Jan 11, 2019 1:32 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 9
Views: 1979

Re: how to send image to server by post to http?

You just send it with socket.send(). This is not a high level library, it's just plain sockets. See the MJPEG example.
by iabdalkader
Wed Jan 09, 2019 12:12 pm
Forum: Project Discussion
Topic: nn_cifar10
Replies: 10
Views: 2751

Re: nn_cifar10

I don't think cifar10 works on the F7, try cifar10_fast
by iabdalkader
Tue Jan 08, 2019 6:04 pm
Forum: Project Discussion
Topic: nn_cifar10
Replies: 10
Views: 2751

Re: nn_cifar10

Looks like the file is corrupted, the network is only 88KBs. Please download it again using this github link:

https://github.com/openmv/openmv/blob/m ... k?raw=true

Copy the file to the camera, and make sure it's written (safe remove the disk).
by iabdalkader
Sun Jan 06, 2019 11:00 am
Forum: Project Discussion
Topic: Open Mv face_detection over wifi
Replies: 13
Views: 1426

Re: Open Mv face_detection over wifi

Hello sir, I have tried, but we can't draw after compression.. You draw after compression, so you send the image before drawing, you should draw *before* compression. It's not that hard really, just do this: for r in objects: img.draw_rectangle(r) cframe = img.compressed(quality=35)

Go to advanced search