Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-13 Thread Jessica Smith
On Fri, Nov 11, 2022 at 8:16 PM Eryk Sun wrote: > If sys.std* are console files, then in Python 3.6+, sys.std*.buffer.raw will > be _io._WindowsConsoleIO > io.TextIOWrapper uses locale.getpreferredencoding(False) as the default > encoding Thank you for your replies - checking the sys.stdout.buf

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Inada Naoki
On Sat, Nov 12, 2022 at 11:53 AM Inada Naoki wrote: > > On Sat, Nov 12, 2022 at 10:21 AM 12Jessicasmith34 > <12jessicasmit...@gmail.com> wrote: > > > > > > Two questions: any idea why this would be happening in this situation? > > AFAIK, stdout *is* a console when these images are running the pyt

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Inada Naoki
On Sat, Nov 12, 2022 at 10:21 AM 12Jessicasmith34 <12jessicasmit...@gmail.com> wrote: > > > Two questions: any idea why this would be happening in this situation? AFAIK, > stdout *is* a console when these images are running the python process. > Second - is there a way I can check the locale and

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Eryk Sun
On 11/11/22, 12Jessicasmith34 <12jessicasmit...@gmail.com> wrote: > > any idea why this would be happening in this situation? AFAIK, stdout > *is* a console when these images are running the python process. If sys.std* are console files, then in Python 3.6+, sys.std*.buffer.raw will be _io._Window

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread 12Jessicasmith34
> If stdout isn't a console (e.g. a pipe), it defaults to using the process code page (i.e. CP_ACP), such as legacy code page 1252 (extended Latin-1). First off, really helpful information, thank you. That was the exact background I was missing. Two questions: any idea why this

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Eryk Sun
On 11/10/22, Jessica Smith <12jessicasmit...@gmail.com> wrote: > > Weird issue I've found on Windows images in Azure Devops Pipelines and > Github actions. Printing Unicode characters fails on these images because, > for some reason, the encoding is mapped to cp1252. What is particularly > weird ab

Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Jessica Smith
1-10T23:55:15.8366947Z ##[group]Operating System 2022-11-10T23:55:15.8367650Z Microsoft Windows Server 2022 2022-11-10T23:55:15.8367954Z 10.0.20348 2022-11-10T23:55:15.8368389Z Datacenter 2022-11-10T23:55:15.8368696Z ##[endgroup] 2022-11-10T23:55:15.8369023Z ##[group]Runner Image 2022-11-10T23:55:15.

[Python-announce] Benchmark Smil vs Scikit-image (morphological features)

2021-12-21 Thread Jose-Marcio Martins da Cruz
Hello, We've done a comparative benchmark (speed and memory usage) with Smil and Scikit-Image. Smil is a mathematical morphology dedicated library of functions. So comparisons are done only on this area. We've been working on Mathematical Morphology for more than 50 years now the

Re: [tkinter]Synchronous image diplay

2021-10-20 Thread Cameron Simpson
ent loop to resume, render, then run any pending idle tasks (which run when the event loop is idle, implying that any pending rendering is complete). So you know at that time that a new image will have been displayed. Think of it like flush() for file output, but for a GUI. Cheers,

Re: create an empty RGB image with specified number of cells (rows, columns)

2021-06-22 Thread Arak Rachael
On Monday, 21 June 2021 at 21:20:18 UTC+2, Dan Stromberg wrote: > I don't know about OpenCV, but here's a way of creating a ppm image file of > arbitrary size and arbitrary solid color: > https://stromberg.dnsalias.org/svn/solid/trunk > > On Mon, Jun 21, 2021 at 4:01

Re: create an empty RGB image with specified number of cells (rows, columns)

2021-06-22 Thread Arak Rachael
A1" - "B2 = equalized A2" - "B3 = equalized A3" - "B4 = equalized A4" These parameters govern what the script will do with the images. The script will: get a list of available images (based on sources parameter, via glob.glob function) and sort it alphabetically

Re: create an empty RGB image with specified number of cells (rows, columns)

2021-06-21 Thread Dan Stromberg
I don't know about OpenCV, but here's a way of creating a ppm image file of arbitrary size and arbitrary solid color: https://stromberg.dnsalias.org/svn/solid/trunk On Mon, Jun 21, 2021 at 4:01 AM Arak Rachael wrote: > Hi guys! > > Does anyone know how to do this, if p

create an empty RGB image with specified number of cells (rows, columns)

2021-06-21 Thread Arak Rachael
Hi guys! Does anyone know how to do this, if possible with OpenCv? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to check if an image contains an element I am searchig for

2021-06-17 Thread Arak Rachael
; > On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg > > > > wrote: > > > > > > > > > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > > > > > > > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael &g

Re: How to check if an image contains an element I am searchig for

2021-06-17 Thread Arak Rachael
; > > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > > > > > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > > > > > >>> > > > > > wrote: > > > > > >>> I have an image from

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Peter J. Holzer
t; > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > > > > wrote: > > > > >>> I have an image from google maps to say and I need to check if it > > > > >>> has > > > > road markings, in order to do that, I bel

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
for? >> > > >> >> > > >> https://xkcd.com/1425/ >> > > >> >> >> > > He means that image processing is a hard problem that requires expertise >> > > to solve. >> > > >> > > > >> > > > H

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Dan Stromberg
On Wed, Jun 16, 2021 at 2:44 PM Chris Angelico wrote: > On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > > >> How well can you define the things you're looking for? > > > >> > > > >> https://xkcd.com/1425/ > > > >> &g

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Cameron Simpson
On 16Jun2021 15:51, Arak Rachael wrote: >I understand your concerns. Actually I am doing image processing of >satellite pictures for smart cars. I have been given the option to use >InfranView and do it manually or create a Python script. If you need to slice images into 100x100 pixel

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
; > > wrote: > > > >>> > > > >>> Hi guys, > > > >>> > > > >>> I have an image from google maps to say and I need to check if it has > > > road markings, in order to do that, I believe I need to change the > > >

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > > wrote: > > >>> > > >>> Hi guys, > > >>> > > &

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Dan Stromberg
On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > wrote: > >>> > >>> Hi guys, > >>> > >>> I have an image from google maps to say and I need to check if it has > road markings, in

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
;same color > pixels" won't -- as the roads may have different colors (concrete vs > asphalt vs gravel vs dirt -- and then you get asphalt/tar patches applied > to pot-holes and cracks in concrete). Also, as in that photo, many of the > vehicles are near enough to the road colo

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Barry
> On 16 Jun 2021, at 21:46, Arak Rachael wrote: > > On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: >>> >>> Hi guys, >>> >>> I have an image from

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 6:44 AM Arak Rachael wrote: > > On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: > > On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > > > > > Hi guys, > > > > > > I have an image from google maps

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: > On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > > > Hi guys, > > > > I have an image from google maps to say and I need to check if it has road > > markings, in order to do tha

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > Hi guys, > > I have an image from google maps to say and I need to check if it has road > markings, in order to do that, I believe I need to change the effects on the > image so the markings and road can be white or

How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
Hi guys, I have an image from google maps to say and I need to check if it has road markings, in order to do that, I believe I need to change the effects on the image so the markings and road can be white or something and the things I don't need like cars, trees and so on to be black. i

Re: Converting hex data to image

2021-01-31 Thread Ali Sajadian
dimplem...@gmail.com در تاریخ سه‌شنبه ۱۲ مارس ۲۰۱۹ ساعت ۱۳:۰۱:۴۵ (UTC+3:30) نوشت: > On Tuesday, March 12, 2019 at 2:53:49 PM UTC+5:30, Peter Otten wrote: > > dimplem...@gmail.com wrote: > > > > >> Save the image to a file (in binary mode!) and then try to open it w

Re: numpy/python (image) problem

2020-12-09 Thread Paulo da Silva
Às 05:55 de 09/12/20, Paulo da Silva escreveu: > Hi! > > I am looking at some code, that I found somewhere in the internet, to > compute DCT for each 8x8 block in an gray (2D) image (512x512). > > This is the code: > > def dct2(a): > return > scipy.fft.dct(scip

numpy/python (image) problem

2020-12-08 Thread Paulo da Silva
Hi! I am looking at some code, that I found somewhere in the internet, to compute DCT for each 8x8 block in an gray (2D) image (512x512). This is the code: def dct2(a): return scipy.fft.dct(scipy.fft.dct(a,axis=0,norm='ortho'),axis=1,norm='ortho') imsize=im.shape dct=np

Re: Convert and analyze image data in a spreadsheet.

2020-06-14 Thread Vincent Davis
n 2020 07:44:25 -0600, Vincent Davis > declaimed the following: > > >Looking for a little advise. > >I have 6x6 color (CIELAB < > https://en.wikipedia.org/wiki/CIELAB_color_space>) > >data in a spreadsheet (color samples of clothing). I would like to > >visual

Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
Looking for a little advise. I have 6x6 color (CIELAB <https://en.wikipedia.org/wiki/CIELAB_color_space>) data in a spreadsheet (color samples of clothing). I would like to visualize this as an image on a per channel (l,a,b) and as a color image. I can read the data from the spreadsheet. I

Re: Constructing mime image attachment

2020-05-28 Thread DL Neil via Python-list
On 28/05/20 11:48 PM, Joseph L. Casale wrote: I have some json encoded input for nodemailer (https://nodemailer.com/message/embedded-images) where the path key is a string value which contains the base64 encoded data such as: { html: 'Embedded image: ', a

Constructing mime image attachment

2020-05-28 Thread Joseph L. Casale
I have some json encoded input for nodemailer (https://nodemailer.com/message/embedded-images) where the path key is a string value which contains the base64 encoded data such as: { html: 'Embedded image: ', attachments: [{ filename: 'image.png', p

Re: Detect dotted (broken) lines only in an image using OpenCV

2020-04-16 Thread Barry Scott
> On 16 Apr 2020, at 00:36, Edu Py wrote: > > I am trying to learn techniques on image feature detection. Cool. > > I have managed to detect horizontal line(unbroken/continuous), however I am > having trouble detecting all the dotted/broken lines in an image. We can he

Re: Detect dotted (broken) lines only in an image using OpenCV

2020-04-15 Thread Souvik Dutta
As much as I know you will have to have a lot of traning images to make the complete set. Try doing that. Souvik flutter dev On Thu, Apr 16, 2020, 5:10 AM Edu Py wrote: > I am trying to learn techniques on image feature detection. > > I have managed to detect horizontal line

Re: Detect dotted (broken) lines only in an image using OpenCV

2020-04-15 Thread Souvik Dutta
You cannot attach any image in this list. Souvik flutter dev On Thu, Apr 16, 2020, 5:10 AM Edu Py wrote: > I am trying to learn techniques on image feature detection. > > I have managed to detect horizontal line(unbroken/continuous), however I > am having trouble detecting al

Detect dotted (broken) lines only in an image using OpenCV

2020-04-15 Thread Edu Py
I am trying to learn techniques on image feature detection. I have managed to detect horizontal line(unbroken/continuous), however I am having trouble detecting all the dotted/broken lines in an image. Here is my test image, as you can see there are dotted lines and some text/boxes etc. my

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-29 Thread Roy Hann
Eli the Bearded wrote: > In comp.lang.python, Roy Hann wrote: >> I am designing a mobile application to run on a Raspberry Pi 3 model B. >> It will not have any Internet access. I need to generate a static image >> consisting of a simple arc representing (say) a speedom

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Eli the Bearded
In comp.lang.python, Roy Hann wrote: > I am designing a mobile application to run on a Raspberry Pi 3 model B. > It will not have any Internet access. I need to generate a static image > consisting of a simple arc representing (say) a speedometer or a > pressure gauge. The image wil

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Thomas Jollans
On 27/09/2019 14.43, Roy Hann wrote: > I am designing a mobile application to run on a Raspberry Pi 3 model B. > It will not have any Internet access. I need to generate a static image > consisting of a simple arc representing (say) a speedometer or a > pressure gauge. The image wil

Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Roy Hann
I am designing a mobile application to run on a Raspberry Pi 3 model B. It will not have any Internet access. I need to generate a static image consisting of a simple arc representing (say) a speedometer or a pressure gauge. The image will need to be regenerated every 5 seconds. The image must be

Re: Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread Gregory Ewing
the buffer size, issue a read for just that number instead of a whole bufferful. (The code you have would work if the sender closed its end of the connection after sending the image, but you can't do that if you want to get an OK message back.) -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread rkartunova--- via Python-list
Hi everyone! I need help transferring an image via TCP from a python program on my raspberry pi to an android application. I have set up a client-server architecture such that my raspberry pi 3 records audio, performs some analysis on it, and then sends the data (via TCP) to the android app to

Re: Matplotlib import image as float32

2019-07-05 Thread Thomas Jollans
On 01/07/2019 21:08, Markos wrote: > Hi, > > I observed that matplotlib reads an image file (PNG) as float32: > > Please, how to read this file as int8 to get RGB in range of 0-255? You may want to try a different library. scikit-image's imread function will give you the

Re: Matplotlib import image as float32

2019-07-02 Thread Markos
Em 01-07-2019 18:03, Chris Angelico escreveu: On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import

Re: Matplotlib import image as float32

2019-07-01 Thread Chris Angelico
On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: > > Hi, > > I observed that matplotlib reads an image file (PNG) as float32: > > Please, how to read this file as int8 to get RGB in range of 0-255? > > Thank you, > > Markos > > >import numpy as np > >

Matplotlib import image as float32

2019-07-01 Thread Markos
Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg imagem = mpimg.imread('lenna.png'

Re: find all js/css/image pathnames in a HTML document

2019-05-11 Thread Chris Angelico
On Sat, May 11, 2019 at 6:21 PM iMath wrote: > > To find all js/css/image pathnames in a HTML document, I used regular > expression(in the last line of my code snippet) to do this as the following, > are there any other shorter regular expressions or more efficient ways to do >

find all js/css/image pathnames in a HTML document

2019-05-11 Thread iMath
To find all js/css/image pathnames in a HTML document, I used regular expression(in the last line of my code snippet) to do this as the following, are there any other shorter regular expressions or more efficient ways to do this ? import re translation='''

Re: Converting hex data to image

2019-03-12 Thread dimplemathew . 17
On Tuesday, March 12, 2019 at 2:53:49 PM UTC+5:30, Peter Otten wrote: > dimplemathew...@gmail.com wrote: > > >> Save the image to a file (in binary mode!) and then try to open it with > >> an image viewer. The data may be corrupted. > > > > When i tr

Re: Converting hex data to image

2019-03-12 Thread Peter Otten
dimplemathew...@gmail.com wrote: >> Save the image to a file (in binary mode!) and then try to open it with >> an image viewer. The data may be corrupted. > > When i tried doing that it says Invalid Image... So it looks like the problem occurs somewhere before you are decodi

Re: Converting hex data to image

2019-03-12 Thread dimplemathew . 17
imilar challenge where i need to store the thumbnailPhoto > >> > attribute to my local db and display the image every-time user logs in. > >> > But this solution does work . data looks like this: > >> > > >> > \xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x

Re: Converting hex data to image

2019-03-12 Thread Peter Otten
dimplemathew...@gmail.com wrote: > On Monday, March 11, 2019 at 4:32:48 PM UTC+5:30, Peter Otten wrote: >> dimplemathew...@gmail.com wrote: >> >> > Hi i have a similar challenge where i need to store the thumbnailPhoto >> > attribute to my local db and display

Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
On Monday, March 11, 2019 at 4:32:48 PM UTC+5:30, Peter Otten wrote: > dimplemathew...@gmail.com wrote: > > > Hi i have a similar challenge where i need to store the thumbnailPhoto > > attribute to my local db and display the image every-time user logs in. > > But this s

Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
3'], > 'logonCount': ['1021'], thumbnailPhoto: > ['\xef\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00`\x00`\x00\x00\xff\xdb\x00C\x00\x08\x06\x06\x07\x06\x05\x08\x07\x07\x07\t\t\x08\n\x0c\x14\r\x0c.'] > .. ] > > > How do I convert the h

Re: Converting hex data to image

2019-03-11 Thread Peter Otten
dimplemathew...@gmail.com wrote: > Hi i have a similar challenge where i need to store the thumbnailPhoto > attribute to my local db and display the image every-time user logs in. > But this solution does work . data looks like this: > \xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x

Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
a) > >     photo_image = PIL.Image.open(photo_infile) > > > > That is, ‘PIL.Image.frombytes’ allows you to read the bytes from a byte > > string, but requires you to also specify metadata about the image data > > (format, pixel mode,

Need help with a message embedded in an image

2018-12-22 Thread rootsfinder
I am doing a series of puzzles. One of the puzzles has to do with a message embedded in an image. I am not familiar with python can someone please help me. Here is a link to the images and the code. https://drive.google.com/open?id=1dg5jMFtkUvKzhxv_Fqe7QMI_5x-p_CIr Thank you very much

Re: How to generate image with a string?

2018-12-20 Thread MRAB
On 2018-12-20 16:37, sntshkm...@gmail.com wrote: More or less I'm trying to replicate placeholder.com in Python. I'll be using Django in the backend. Given all the parameters, I'm not sure how will I be generating the images. * I will be passing width and height of the imag

Re: How to generate image with a string?

2018-12-20 Thread Chris Angelico
On Fri, Dec 21, 2018 at 4:50 AM wrote: > > More or less I'm trying to replicate placeholder.com in Python. I'll be using > Django in the backend. Given all the parameters, I'm not sure how will I be > generating the images. > > * I will be passing width and

How to generate image with a string?

2018-12-20 Thread sntshkmr60
More or less I'm trying to replicate placeholder.com in Python. I'll be using Django in the backend. Given all the parameters, I'm not sure how will I be generating the images. * I will be passing width and height of the image and maybe the text and background color. * I also

Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
; > > > >wrote: > >> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > >> > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett > >> > > > >> > > >> > wrote: > >> > > > save the image and locate

Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Thomas Jollans
On 2018-09-24 16:52, Gene Heskett wrote: > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > >> On Sun, 23 Sep 2018 at 20:45, Gene Heskett > wrote: >>> save the image and locate the centroid of that saved image. >>> >>> Is there code to d

Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 10:55:23 Chris Angelico wrote: > On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett wrote: > > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett > > > > wrote: > > > >

Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Chris Angelico
On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett wrote: > > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett > wrote: > > > save the image and locate the centroid of that saved image. > > > > > &

Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > On Sun, 23 Sep 2018 at 20:45, Gene Heskett wrote: > > save the image and locate the centroid of that saved image. > > > > Is there code to do that centroid math in somebodies "bottom desk > > drawer&

Re: Need to find the centroid of a circular camera image

2018-09-23 Thread Gene Heskett
On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote: > On Sun, 23 Sep 2018 at 20:45, Gene Heskett wrote: > > save the image and locate the centroid of that saved image. > > > > Is there code to do that centroid math in somebodies "bottom desk > > drawer&

Re: Need to find the centroid of a circular camera image

2018-09-23 Thread Oscar Benjamin
On Sun, 23 Sep 2018 at 20:45, Gene Heskett wrote: > > save the image and locate the centroid of that saved image. > > Is there code to do that centroid math in somebodies "bottom desk > drawer"? Something I could download and control with a bash script which > I'm

Need to find the centroid of a circular camera image

2018-09-23 Thread Gene Heskett
into a good circular pattern as the spindle turns at 500 to 1000 revs, then close the "shutter" save the image and locate the centroid of that saved image. Is there code to do that centroid math in somebodies "bottom desk drawer"? Something I could download and control with

Re: Image processing libraries in python

2018-09-14 Thread Thomas Jollans
On 14/09/18 19:04, tejaswi wrote: Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found

Re: Image processing libraries in python

2018-09-14 Thread MRAB
On 2018-09-14 18:04, tejaswi wrote: Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found

Image processing libraries in python

2018-09-14 Thread tejaswi
Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found them quite easy to work with, so is

Re: image in db to string to actual image

2018-08-03 Thread Stephane Wirtel
And what is your database? Maybe there is an API for the blob field On 08/02, Abdur-Rahmaan Janhangeer wrote: storing images in db is easy but to retrieve them natively how to? (ignore db type, using orm). meaning without PIL / Pillow. type : png like i'd like to have it as string, any idea ?

Re: image in db to string to actual image

2018-08-03 Thread Abdur-Rahmaan Janhangeer
can be used, thanks, and to write the actual image? > > pseudo code: > > store_to_whatever(path2bin): > my_storage.store(uuencode(path2bin)) > > get_image_from_storage(path2uue): > return uudecode(my_storage.read(path2uue)) > > RTM on uue and its siblings. > > Nb

Re: image in db to string to actual image

2018-08-02 Thread Abdur-Rahmaan Janhangeer
ah those can be used, thanks, and to write the actual image? On Thu, Aug 2, 2018 at 8:20 PM Gilmeh Serda wrote: > On Thu, 02 Aug 2018 17:24:29 +0400, Abdur-Rahmaan Janhangeer wrote: > > > like i'd like to have it as string, any idea ? > > UUEncode / Base64 / yE

image in db to string to actual image

2018-08-02 Thread Abdur-Rahmaan Janhangeer
storing images in db is easy but to retrieve them natively how to? (ignore db type, using orm). meaning without PIL / Pillow. type : png like i'd like to have it as string, any idea ? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo

how to get image url from django form

2017-04-15 Thread Xristos Xristoou
i have create a simple django form where the authentication user can select one of personal images where have upload before and i want do something with that request in my views.py. but i dont know how to take the image url from that request in my view because first i using request.user in the

Re: closing image automatically in for loop , python

2017-04-12 Thread William Ray Wing
> > 1- my Problem is that for Showing successive Images in for Loop I have to > Close the Image MANAULLY each time to read next sdf file. can anyone please > tell me which command do I have to use so the code Close the Images > automatically. > I normally run matplolib in int

Re: closing image automatically in for loop , python

2017-04-12 Thread Frank Miles
On Wed, 12 Apr 2017 04:18:45 -0700, Masoud Afshari wrote: > filename ="Ex_resample" +'_sdf_'+ str(n)+'.dat' > with open(filename, 'rb') as f: #read binary file data = np.fromfile(f, > dtype='float64', count=nx*ny) #float64 for Double precision float numbers > Ex = np.reshape(data, [ny, nx], ord

closing image automatically in for loop , python

2017-04-12 Thread Masoud Afshari
Image MANAULLY each time to read next sdf file. can anyone please tell me which command do I have to use so the code Close the Images automatically. 2- more over, can anyone please tell me how can I create a movie with this code. in the following you can see my code

Re: Pillow ImportError: No module named Image

2017-04-10 Thread Jon Ribbens
On 2017-04-10, jorge.conr...@cptec.inpe.br wrote: > I installed the Pillow in my computer. The I did: > > import Image, ImageMath > > ImportError: No module named Image Try: from PIL import Image, ImageMath -- https://mail.python.org/mailman/listinfo/python-list

Pillow ImportError: No module named Image

2017-04-10 Thread jorge . conrado
Hi, I installed the Pillow in my computer. The I did: import Image, ImageMath ImportError: No module named Image Please, what can I do to solve this. Conrado -- https://mail.python.org/mailman/listinfo/python-list

DJANGO image processing

2017-02-11 Thread Xristos Xristoou
I want to create a django app with the base64 help where the users can upload images(specific ".tiff" ext) using DJANGO forms without model and without that images store in my server. and i will the users can be get back new processing image. i have success with encode/decode image w

image handling(donwloading/display) in django using html and form

2017-02-04 Thread Xristos Xristoou
i want to do some image processing using Django and now work and on the image handling(donwloading/display) using Django. first on my task i dont want to store that images on my server. but i have some problems. that my code : urls.py from django.conf.urls import url from . import views

Re: need help to get my python image to move around using tkinter

2016-11-18 Thread Thomas Grops via Python-list
thankyou so much, that is the exact help I required to put me in the right direction :D -- https://mail.python.org/mailman/listinfo/python-list

Re: need help to get my python image to move around using tkinter

2016-11-18 Thread Peter Otten
twgrops--- via Python-list wrote: > Hi I am new here and to python, > > I am currently studying towards my degree in computer science and have to > build a program but I have hit a brick wall. I am trying to make an image > move around the canvas. I can make a rectangle move usin

need help to get my python image to move around using tkinter

2016-11-18 Thread twgrops--- via Python-list
Hi I am new here and to python, I am currently studying towards my degree in computer science and have to build a program but I have hit a brick wall. I am trying to make an image move around the canvas. I can make a rectangle move using the following: #test rectangle id1

How to overlay data points on a static google image?

2016-10-18 Thread Madhavan Bomidi
Hello everyone, I have been using IDL for making plots until recently and currently transitioning to Python programming. I have a task to obtain a static google image for my region of interest and then overlay the variable frequency counts at different lat-long coordinates. While I have

delete pixel from the raster image with specific range value

2016-10-08 Thread chrischris201444
any idea how to delete pixel from the raster image with specific range value using numpy/scipy or gdal? for example i have a raster image with the 5 class : 1. 0-100 2. 100-200 3. 200-300 4. 300-500 5. 500-1000 and i want to delete class 1 range value or maybe class 1,2,4,5 -- https

Re: Why my image cannot be displayed?

2016-08-13 Thread huey . y . jiang
On Friday, August 12, 2016 at 9:40:15 PM UTC-4, huey.y...@gmail.com wrote: > Hi All, > > Image display drives me crazy. After I get it displayed, and want to do the > job with a class, display failed again. Please take a look at my trial code: > > from Tkinter import * >

Re: Why my image cannot be displayed?

2016-08-12 Thread MRAB
On 2016-08-13 02:40, huey.y.ji...@gmail.com wrote: Hi All, Image display drives me crazy. After I get it displayed, and want to do the job with a class, display failed again. Please take a look at my trial code: from Tkinter import * class imageDisplay: def __init__(self, parent=None

Why my image cannot be displayed?

2016-08-12 Thread huey . y . jiang
Hi All, Image display drives me crazy. After I get it displayed, and want to do the job with a class, display failed again. Please take a look at my trial code: from Tkinter import * class imageDisplay: def __init__(self, parent=None): canvas = Canvas(width=400, height

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Ok, now it works for me! Thanks again! import random, os, time from PIL import Image INPATH = ('/home/.../Start/') OUTPATH = ('/home/.../Ziel/') dx = dy = 228 tilesPerImage = 25 files = os.listdir(INPATH) numOfImages = len(files) print(files) t = time.time() for file

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Ok, did it :) import random, os, time from PIL import Image INPATH = ('/home/sdrewes/Desktop/Portaits/Bilder/Test/') OUTPATH = ('/home/sdrewes/Desktop/Portaits/Bilder/Gut_Crop/') dx = dy = 228 tilesPerImage = 100 files = os.listdir(INPATH) numOfImages = len(files) print(

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Hi Robin, I tried to understand and run your code, and I get the Error: "File "Rand_Crop.py", line 15, in with Image.open(os.path.join(INPATH, file)) as im: File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 528, in __getattr__ raise AttributeError(name) AttributeError: __exit_

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Hi Peter, Hi Robin, thanks for your help, and especially for the code ;) @Peter: thanks for the links, I know, it is always better to write the code than to copy and paste! @Robin: the question, iḿ trying to answer is, if good pictures, in this case portraits, also have good "Parts", so if th

Re: cropping a random part of an image

2016-08-09 Thread Robin Koch
our files are spread over different subfolders, os.walk() is the better way to do it. You could add a counter (see: enumerate()) to have a better overview over the progress. Also you might have other preferences for the location of the tiles. (e.g. one folder per image). # Cuts random tiles fr

Re: cropping a random part of an image

2016-08-09 Thread Peter Otten
k over the files with https://docs.python.org/dev/library/os.html#os.walk find out the image size and process the image with pillow http://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.size http://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.crop using https:/

  1   2   3   4   5   6   7   8   9   10   >