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
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
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
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
> 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
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
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.
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
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,
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
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
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
Hi guys!
Does anyone know how to do this, if possible with OpenCv?
--
https://mail.python.org/mailman/listinfo/python-list
; > 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
; > > > 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
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
for?
>> > > >>
>> > > >> https://xkcd.com/1425/
>> > > >>
>>
>> > > He means that image processing is a hard problem that requires expertise
>> > > to solve.
>> > >
>> > > >
>> > > > H
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
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
; > > 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
> > >
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,
> > >>>
> > &
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
;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
> 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
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
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
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
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
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
À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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
>
>
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'
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
>
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='''
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
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
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
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
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
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
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
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,
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
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
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
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
;
> >
> >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
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
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:
> > > >
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.
> > >
> > &
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&
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&
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
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
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
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
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
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 ?
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
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
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
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
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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 *
>
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
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
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
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(
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_
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
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
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 - 100 of 1274 matches
Mail list logo