Questions tagged [jes]

The (JES)Jython Environment for Students is a full-featured media computation environment for programming in Jython. It includes facilities for programming, debugging, and media examination. JES also comes with an extensive multimedia API, enabling easy and rapid manipulations of sounds, images, and on some platforms, video.

177 questions
1
vote
3 answers

adding and variable assignment in Python

def sumOfStudentDigits(): studentdigit = (studentdigit1 + studentdigit2 + studentdigit3 + studentdigit4 + studentdigit5 + studentdigit6 + studentdigit7) studentdigit1=3 studentdigit2=6 studentdigit3=9 studentdigit4=3 …
j. bell
  • 21
  • 5
1
vote
1 answer

Count pixels of color in JES (Jython)

I am trying to pull the overall pixel count of the R, G, B, Black, & White values in a premade picture. This picture has 100 Red, 100 Green, 100 Blue, 100 Black, and 100 white. I have started with my code, but for some reason it seems as if my code…
ohGosh
  • 27
  • 3
1
vote
3 answers

Frequency of keywords in a list

Hi so i have 2 text files I have to read the first text file count the frequency of each word and remove duplicates and create a list of list with the word and its count in the file. My second text file contains keywords I need to count the…
1
vote
0 answers

I need to fade the sound samples on a file to zero gradually

Hi i need help writing this code in Jes? Gradually fades the sound samples to zero. Each sample is reduced by a different percentage. The percentage depends on its position in the file. The first sample is not changed. The sample which is a quarter…
mike
  • 11
  • 1
1
vote
0 answers

Not getting Joblog from JES SPOOL using Java

I have written one Java class to submit JCL to Mainframe JES using FTP. The code is able to submit the JCL but it is not retrieving the JOB log from JES SPOOL. package com.test; import java.io.BufferedReader; import java.io.IOException; import…
amar
  • 11
  • 1
1
vote
0 answers

User Input Validation in Jython

I have been attempting a mirroring assignment using Jython Environment for students. I am seeking to request an arbitrary line from the user which I will use to mirror the image, this line has to be from an image edge to an edge and be a…
1
vote
1 answer

Decreasing brightness in the bottom half of a photo

I have a questions thats stumping me right now. I have to decrease the brightness of the bottom half of a picture. This is what I'm using so far. Its decreasing the brightness of the TOP half of my photo. How can I get it to decrease the bottom…
Warthog1
  • 123
  • 1
  • 2
  • 9
1
vote
0 answers

Problems to take the central part of an image in python

I need to take the central part of an image and zoom it keeping the same dimensions of the original image. I've been able to zoom a part of image keeping the same dimensions of image, but I don't understand because this part isn't the central…
Peter
  • 11
  • 4
1
vote
1 answer

Running a function to mirror an image in python

I keep trying to run this function: def flipPic(): #Set up source picture barbf=getMediaPath("barbara.jpg") barb=makePicture(barbf) #Now, for the mirroring mirrorPoint=219 for X in range(0,mirrorPoint): for Y in…
Sam
  • 11
  • 4
1
vote
0 answers

Jython, how to place image at the center of another image

I need some help with Jython, I am supposed to place an image into another image so it will looked like this However, with my current code, my result is this Could someone please help me? Thanks. def copyPicture(pict): tpict =…
iDeal
  • 201
  • 2
  • 4
  • 7
1
vote
1 answer

In which Library of Jython, makeEmptyPicture function is available?

I just want to ask that in which library, makePictureEmpty(width, height) function is available?
Muhammad Noman
  • 1,344
  • 1
  • 14
  • 28
1
vote
0 answers

jython open image from online

For my Python college class I am trying to open an image from online to add to another image (using Jython). My code so far is: def addLogo(lgPic): import urllib logo = urllib.urlopen("http://www.wsiab.net/BITsoft/Lab7/csumb-logo-white.png") …
WSiaB
  • 11
  • 2
1
vote
1 answer

JES while loops

I'm working on an assignment and i keep running into trouble with the while loops. The below draws a line from the first number on an image then to the next number entered. it loops this too, but its asks for the first and second number each time…
galen
  • 11
  • 1
1
vote
0 answers

Assistance with JES addText function

I'm trying to add text onto a photo using JES' addText function, but I'm not able to add my variable 'pixelsChanged' to the text. How can I do this? Each time I try I am told: "The error value is: cannot concatenate 'str' and 'int'…
1
vote
1 answer

Changing Colours and Counting Pixels in Python

def change(pic, startX, startY, getHeight, getWidth, endColour): width = getWidth height = getHeight picture = makePicture(pic) for px in getPixels(picture): x = getX(px) y = getY(px) if (startX <= x <= getHeight) and (startY…
Lauren
  • 33
  • 4
1 2
3
11 12