Search found 653 matches

by iabdalkader
Mon Jan 14, 2019 4:00 pm
Forum: Technical Discussion
Topic: Problem writing txt file
Replies: 4
Views: 960

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: 1251

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: 1251

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: 4
Views: 917

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: 4
Views: 917

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: 3
Views: 837

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: 877

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: 735

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: 1251

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: 1696

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: 1696

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: 917

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)
by iabdalkader
Sat Jan 05, 2019 8:03 pm
Forum: Project Discussion
Topic: Open Mv face_detection over wifi
Replies: 13
Views: 917

Re: Open Mv face_detection over wifi

Actually I am trying to view the detected faces over wifi. But, unsuccessful.. I am not being able to send the faces through the socket.. The video is being transmitted, but face detection is not.. I have tried by changing the socket to a Tcp socket. But, I am not getting the idea that how to send ...
by iabdalkader
Wed Dec 26, 2018 11:27 am
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 24
Views: 6700

Re: openmv to arduino with template matching examples

hai sir i need your help for doing template matching and when the template is matched pin1 want to on, by using that i will control my process. can u give the code for the same. Thanks in advance Regards Prasath Hi, here's an example for pin control: import sensor, image from image import SEARCH_EX...
by iabdalkader
Wed Dec 26, 2018 11:22 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 9
Views: 824

Re: compress ==> OSError: Out of memory !

You are right the connexion is not lost but it is not possible to disconnect without unplugging the usb cable. It is like the camera is too busy to answer. Limited the quality at 90 maximum will solve the problem... It's probably the try/except catches the IDE interrupt. Try this: try: .... except ...
by iabdalkader
Sat Dec 22, 2018 6:42 pm
Forum: Technical Discussion
Topic: LCD shield P8 "SPI commands"?
Replies: 1
Views: 489

Re: LCD shield P8 "SPI commands"?

How is the use of P8 different from P0 with the LCD shield? It is documented as "SPI commands". What sort of commands are issued via P8 as opposed to simply being sent as SPI data over P0 (MOSI)? Thanks. It should be "command", this pin is low for command and high for data. It's just how the LCD dr...
by iabdalkader
Sat Dec 22, 2018 6:39 pm
Forum: Technical Discussion
Topic: External antenna on WIFI Shield?
Replies: 1
Views: 474

Re: External antenna on WIFI Shield?

Hi all, My solution needs to be enclosed in an RVS metal casing. I fear the WIFI signal will be lost, since the shield has no external antenna connector.. Can you alter the wifi shield to connect it an external antenna ? Something like this (attached) ? Hi, there's another WINC1500 that comes with ...
by iabdalkader
Sat Dec 22, 2018 6:36 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1294

Re: Second SPI device while using LCD shield?

I presume the LCD shield is driven from the SPI bus, correct?
Yes the LCD uses the only SPI bus available, you could either use two chip selects (any free pin will work, see the pinout) or bitbang SPI.
by iabdalkader
Tue Dec 18, 2018 8:41 am
Forum: Technical Discussion
Topic: How to only send self-allocated framebuffer to OpenMV IDE?
Replies: 1
Views: 407

Re: How to only send self-allocated framebuffer to OpenMV IDE?

Hi, if you don't need the snapshot you could just overwrite it : import sensor, image, time sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) clock = time.clock() while(True): clock.tick() img = sensor.snapshot() img.invert() print(c...
by iabdalkader
Tue Dec 18, 2018 8:30 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 9
Views: 824

Re: compress ==> OSError: Out of memory !

Hi, yes the FB stops working when the VGA image is compressed at high quality (when there's no exception), I think this normal because the memory is full and the compression for the IDE preview fails, but the camera doesn't disconnect. That's what I saw in my testing. Is there any other problem ? Al...
by iabdalkader
Tue Dec 18, 2018 8:15 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 12
Views: 1128

Re: problem when i receive data on Uart rx when i read

chrisPyres66 wrote:
Tue Dec 18, 2018 4:29 am
Opposite to your firmware, the last git have the same previous behavior.
This was committed to our micropython fork. I think you need to do a git pull in src/micropython too
by iabdalkader
Mon Dec 17, 2018 7:31 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 12
Views: 1128

Re: problem when i receive data on Uart rx when i read

chrisPyres66 wrote:
Mon Dec 17, 2018 5:14 am
Tx it works with my code test, do you github it ?
I could test this and jpg exception.
I was waiting for you to test it. I'll commit it now.
by iabdalkader
Sun Dec 16, 2018 11:53 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 12
Views: 1128

Re: problem when i receive data on Uart rx when i read

I think this is the same issue:

https://github.com/micropython/micropython/issues/3375


Please try the attached firmware and let me know if it works.
by iabdalkader
Thu Dec 13, 2018 4:31 pm
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 12
Views: 1128

Re: problem when i receive data on Uart rx when i read

Hi, no I don't understand the problem either. Can you post steps + code to reproduce ?
by iabdalkader
Tue Dec 11, 2018 9:41 pm
Forum: Technical Discussion
Topic: OSError: Could not find the file for module nn
Replies: 6
Views: 782

Re: OSError: Could not find the file for module nn

But the results are always : First layer is NULL! Looks like the file may be corrupted or you didn't download the file from github. You have to download the raw file: https://raw.githubusercontent.com/openmv/openmv/master/ml/cmsisnn/models/cifar10_fast/cifar10_fast.network Also make sure the file i...
by iabdalkader
Tue Dec 11, 2018 3:33 pm
Forum: Technical Discussion
Topic: jpeg compression algorithm
Replies: 13
Views: 962

Re: jpeg compression algorithm

It's probably the subsampling.
by iabdalkader
Tue Dec 11, 2018 3:17 pm
Forum: General Topics
Topic: send values to serial port
Replies: 16
Views: 3346

Re: send values to serial port

luisantunespena wrote:
Tue Dec 11, 2018 7:09 am
Hello,
is there a very simple solution to send the image of the camera to an external monitor? Do I need to run an external python script or is it possible to send a stream directly from the OpenMV IDE?
Thank you.
Luis
What kind of monitor ?
by iabdalkader
Tue Dec 11, 2018 2:46 pm
Forum: General Topics
Topic: openmv adjusting lens
Replies: 1
Views: 502

Re: openmv adjusting lens

krishnakumar77777 wrote:
Tue Dec 11, 2018 5:36 am
Hi,
Why the lens is always needed to be adjusted? Can't i fix it for clear view and make it permanent?
There's a small screw on the side of the lens mount, tighten it clockwise to keep the lens in place.
by iabdalkader
Sat Dec 08, 2018 7:38 pm
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 13
Views: 1364

Re: maintaing same brightness throughout video

what will the polarizer filter do? As I understand it, it attenuates a certain wavelength so you can use it in direct sunlight, it's like sun glasses. See the comparison photos in the product description: https://openmv.io/collections/products/products/polarizing-filter I don't think that's what yo...
by iabdalkader
Sat Dec 08, 2018 7:32 pm
Forum: Technical Discussion
Topic: UART again
Replies: 5
Views: 544

Re: UART again

Oh I see the problem, you're not calling the function:

Code: Select all

takepic=UART.readchar
Should be:

Code: Select all

takepic=UART.readchar()
Also UART is the module not the object you created, so it should be

Code: Select all

takepic=uart.readchar()
by iabdalkader
Sat Dec 08, 2018 7:28 pm
Forum: General Topics
Topic: Train a neural network
Replies: 1
Views: 486

Re: Train a neural network

Hi Patrick 1) Do you think it's possible create a NN on Windows? Yes, if you can setup Caffe on Windows you should be able to produce the same results. However I would just use Ubuntu (things just work on Linux) 2) Should I create the .network file before on a Jupiter notebook and then load it into ...
by iabdalkader
Sat Dec 08, 2018 7:15 pm
Forum: Technical Discussion
Topic: UART again
Replies: 5
Views: 544

Re: UART again

Hi, since you're using P0 you should use UART1 (using whatever baudrate you're using on the PIC):

Code: Select all

uart = UART(1, 19200, timeout_char=1000)
by iabdalkader
Sat Dec 08, 2018 7:13 pm
Forum: Technical Discussion
Topic: OSError: Could not find the file for module nn
Replies: 6
Views: 782

Re: OSError: Could not find the file for module nn

Hello, I am new to openmv. I am interested to test nn with openmv. The first thing I try to do is download the smile.network, but I can not copy this network into the disk. When I connect the openmv cam to the windows pc, it is showing "0 Byte free of 79.0K byte". Regards, Baozhu Hi, use an SD card.
by iabdalkader
Fri Dec 07, 2018 3:04 pm
Forum: Technical Discussion
Topic: using microprocessors instead of microcontrollers
Replies: 3
Views: 540

Re: using microprocessors instead of microcontrollers

Is there a reason you used the STM32 micro controller instead of a microprocessor with image processing DSP libraries such as TMS320 C55. The microprocessors do not seem to be more expensive than the micro controller and can also do the computations such as JPEG compression much faster. Mainly desi...
by iabdalkader
Wed Dec 05, 2018 6:44 pm
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 601

Re: low power waiting for uart rx

Actually with the clock disabled UART won't generate the interrupt (I think this should work on the H7 with LPUART). You could either use an external GPIO as EXTI (a different pin other than UART pins), or use pyb.wfi(). pyb.wfi will be interrupted by UART or SYSTICK.
by iabdalkader
Tue Dec 04, 2018 3:49 pm
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 601

Re: low power waiting for uart rx

It should wake up on any interrupt (including RXNE) you don't need to configure UART pins as EXTI. Please remove that and all the comments and RTC code and try it again. Also I don't understand this part: "i dont get the full uart rx if i stop the cpu." ?
by iabdalkader
Tue Dec 04, 2018 2:48 pm
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 682

Re: F7 consumption optimization

MicroPython's PLL settings are not used and system_stm32.c is not used either. We use our own system file and PLL dividers, you can find out which files are used from the Makefile(s). Note you need to make sure the sensor frequency is 9MHz (or change the sensor's PLL settings to match XCLK). I tried...
by iabdalkader
Tue Dec 04, 2018 1:29 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1715

Re: Standby consumption

When STM32 enter deep sleep. Most of IO changed to high impedance state. So OV7725 PWDN pin cannot retain high level(shutdown state). So external pull up resistor is needed. Not internal pull down. I think there's a mode that retains I/O state, anyway we could revise it for the next production run....
by iabdalkader
Tue Dec 04, 2018 6:58 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1715

Re: Standby consumption

I found that there is no pull resistor on OV7725 PWDN pin. I see 500uA by adding 4.7K Ohm pull up on OV7725 PWDN ( PCB pattern is covered. so need to scratch off printed ink ) If i replace LDO regulator to high efficient SMPS. I see 10uA with RTC on by calling machine.deepsleep() What a great MCU S...
by iabdalkader
Mon Dec 03, 2018 1:24 pm
Forum: Technical Discussion
Topic: Accessing/translating to lower level C/C++ code
Replies: 4
Views: 682

Re: Accessing/translating to lower level C/C++ code

I would like to power the openMV module via external power from a battery source (3.6V) if possible. Looking at the schematic there are 2 diodes at D1 for reverse polarity protection. Is there a way to bypass the USB power line VBUS in order to use an external power source into Vin? Those are ORing...
by iabdalkader
Fri Nov 30, 2018 12:30 pm
Forum: Technical Discussion
Topic: Building Application for reading Video and Serial data
Replies: 1
Views: 542

Re: Building Application for reading Video and Serial data

Hi Can someone assist me for building an application/GUI to read video streaming and serial Data from OpenMV cam? Hi, you can start with this Python module: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py It implements the camera's debugging protocol, same used by the IDE. Here's an ...
by iabdalkader
Fri Nov 30, 2018 12:22 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 60
Views: 24109

Re: implement own Haar-Cascade

Hi, please see the replies to this thread. The script runs on Linux, and only supports simple Haar cascades (the old format) and the output (*.cascade) needs to be copied to flash or SD.
by iabdalkader
Fri Nov 30, 2018 10:50 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 809

Re: Use of callback function in sleep mode

No, it should work. Try git pull, and make clean and build again. Make sure you upload the firmware you build. It should be version 3.3.0
by iabdalkader
Fri Nov 30, 2018 10:47 am
Forum: Technical Discussion
Topic: Accessing/translating to lower level C/C++ code
Replies: 4
Views: 682

Re: Accessing/translating to lower level C/C++ code

Hi, So after we have programmed a new project and verified the functionality of the camera in micropython in the openMV IDE, Is there any way that we can access the lower level C/C++ code for further optimisation/tunability? Thanks! Adriel Yes, the project is open-source: https://github.com/openmv/...
by iabdalkader
Fri Nov 30, 2018 10:43 am
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 13
Views: 1364

Re: maintaing same brightness throughout video

By disabling all these,can i get the same amount of light even when the openmv moves?I explain my scenario. I want to detect lemon fruit in the plant in outdoor by making the scanning using movement of openmv cam on a slide. Can disabling helps me out? Yes, but you should let them run for a while t...
by iabdalkader
Thu Nov 29, 2018 11:12 am
Forum: General Topics
Topic: polarizing filter
Replies: 2
Views: 557

Re: polarizing filter

Like this
web-new-filter-mount_grande.jpg
Note make sure to remove the protective film on the front and back of the polarizing filter
by iabdalkader
Thu Nov 29, 2018 11:08 am
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 13
Views: 1364

Re: maintaing same brightness throughout video

krishnakumar77777 wrote:
Thu Nov 29, 2018 4:46 am
Hi,
How can i keep the brightness of video same throughout the video where the openmv cam will be moved in all x,y and z direction seperately in outdoor?
Disable auto-functions ?

http://docs.openmv.io/search.html?q=set ... ea=default
by iabdalkader
Wed Nov 28, 2018 7:16 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 682

Re: F7 consumption optimization

Hello, I try to optimize the consumption, and i would like to start the camera at 120Mhz. Before compiling, i changed in /openmv/src/cmsis/src/st/system_stm32fxxx.c #elif defined (STM32F765xx) // 120MHz/48Mhz in place of 216MHz/48MHz : flash_latency = FLASH_LATENCY_3; // FLASH_LATENCY_7; RCC_OscIni...
by iabdalkader
Mon Nov 26, 2018 6:24 pm
Forum: Technical Discussion
Topic: Bayer output for OV7725
Replies: 9
Views: 802

Re: Bayer output for OV7725

1. So do you work with Bayer RAW or processed Bayer RAW? Processed Bayer 2. Is de-bayer the same as demosiac'ing? Yes https://en.wikipedia.org/wiki/Demosaicing 3. How many FPS would be possible if we did this is the F7 processor, if the final goal is to store a jpeg image in the SD card? Debayer, c...

Go to advanced search