# Transfer JPEG to local PC

**URL:** <https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886>\
**Category:** OpenMV Boards\
**Created:** [July 31, 2024, 1:22pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886 "2024-07-31T13:22:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MingxinLiu](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MingxinLiu](https://forums.openmv.io/u/MingxinLiu)\
**Post date:** [July 31, 2024, 1:22pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886/1 "2024-07-31T13:22:37Z")

</div>

Hello,  
I was trying to transfer the frame buffer to my computer as a jpeg image and I following the steps from the video [How to use the OpenMV RPC Library to Transfer Images to your PC (youtube.com)](https://www.youtube.com/watch?v=WRHrqlKBZ3s). However, after I entered the port name in my PC terminal I got the following error message:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/4/414ca27e3a6893c3a8ff1e2e071952f844fda960.png)  
Moreover, I also tried running the script ‘image\_transfer\_jpg\_as\_the\_remote\_device\_for\_your\_computer.py’ on OpenMV IDE, I got the following message : ‘ImportError: no module named ‘pyb’’  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/3/37687d7de0ed5a94a22a16d8aa26acb49a2e98b5.png)  
It would be really appreciated if you can help me with it!

---

<div class="post-metadata">

**Author:** ![oramafanis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/oramafanis/32/1783_2.png) [@oramafanis](https://forums.openmv.io/u/oramafanis)\
**Post date:** [July 31, 2024, 1:57pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886/2 "2024-07-31T13:57:39Z")

</div>

first of all to have acces on the serial port you must disconect from the ide.  
Secondly image\_transfer\_jpg\_as\_the\_remote\_device\_for\_your\_computer.py’ cant run on the ide side.  
Whats the skripts? did you used the lateset examples?  
There are examples inside the ide and on github for the computer.

---

<div class="post-metadata">

**Author:** ![MingxinLiu](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MingxinLiu](https://forums.openmv.io/u/MingxinLiu)\
**Post date:** [July 31, 2024, 2:21pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886/3 "2024-07-31T14:21:15Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/8/83369aaf48f8ca25046feab1116310dbd4140a09.png)

I put the script ‘image\_transfer\_jpg\_as\_the\_remote\_device\_for\_your\_computer\_1.py’ in the openmv cam and rename it to ‘main.py’ as did in the youtube video. Then I run the ‘rpc\_image\_transfer\_jpg\_as\_the\_controller\_device.py’ in the terminal.

I just tried disconnect from the ide and it stopped giving me the error message. However, the laptop cannot see the images from openmv and it keeps give me 0.0 which shows like below

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/0/047778f640219282b2e0723a3f4ca043de097724.png)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [July 31, 2024, 5:43pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886/4 "2024-07-31T17:43:08Z")

</div>

Hi, the RT1062 doesn’t have the pyb module which have VCP support.

As such, you are limited in sending data to just doing this:

[openmv/openmv: OpenMV Camera Module (github.com)](https://github.com/openmv/openmv?tab=readme-ov-file#note-on-serial-port)

Or, you can use our debug protocol and scripts for it:

[openmv/tools/pyopenmv\_test.py at master · openmv/openmv (github.com)](https://github.com/openmv/openmv/blob/master/tools/pyopenmv_test.py)

See all the scripts in that dir with pyopenmv\*.

---

<div class="post-metadata">

**Author:** ![oramafanis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/oramafanis/32/1783_2.png) [@oramafanis](https://forums.openmv.io/u/oramafanis)\
**Post date:** [August 1, 2024, 1:08pm UTC](https://forums.openmv.io/t/transfer-jpeg-to-local-pc/9886/5 "2024-08-01T13:08:47Z")

</div>

I just tried both examples with h7 r2 and the same behaviour. black image with 0fps.  
Just saying cause i will never need this.
