Problema (Bug #3604)
Description
import cv2
import sys
if len(sys.argv) < 2:
- with no arguments, use this default file
image=cv2.imread("C:\Python27\experimentosconpython\Foto0786.jpeg") #Cargar imagen a la variable image
elif len(sys.argv) == 2:
filename=sys.argv1
else:
sys.exit("Expecting a single image file argument")
image_small=cv2.resize(image, (800, 600)) #Cambiar tamaƱo a la imagen
textColor = (240, 64, 128)
#Escribir texto en pantallacv2.putText(image_small, "Natalie!!!", (430, 540),cv2.FONT_HERSHEY_PLAIN, 3.0, textColor,thickness=6)
cv2.rectangle(image_small, (430, 500), (650,550), (128,128,0), 2) #Dibuja un rectangulo en la imagen
cv.ShowImage('IMAGEN NATALIE - NOMBRE VENTANA', image_small) #Muestra una ventana con la imagen
cv2.waitKey() #Permanece la imagen en pantalla hasta presionar una tecla
cv2.destroyAllWindows() # Se complementa con la linea anterior y sirve para cerrar la ventana
Trate de hacer este ejemplo en python 2.7 que encontre en un tutorial, y no me muestra nada en la pantalla.
Associated revisions
Merge pull request #3604 from asmorkalov:ocv_samples_package
Merge 2.4 into master
PR #2968: cce2d99 8578f9c
Fixed bug which caused crash of GPU version of feature matcher in stitcher
The bug caused crash of GPU version of feature matcher in stitcher when
we use ORB features.
PR #3236: 5947519
Check sure that we're not already below required leaf false alarm rate before continuing to get negative samples.
PR #3190
fix blobdetector
PR #3562 (part): 82bd82e
TBB updated to 4.3u2. Fix for aarch64 support.
PR #3604 (part): 091c7a3
OpenGL interop sample reworked not ot use cvconfig.h
PR #3792: afdf319
Add -L for CUDA libs path to pkg-config
Add all dirs from CUDA_LIBS_PATH as -L linker options to
OPENCV_LINKER_LIBS. These will end up in opencv.pc.
PR #3893: 122b9f8
Turn ocv_convert_to_lib_name into a function
PR #5490: ec5244a
fixed memory leak in findHomography tests
PR #5491: 0d5b739
delete video readers
PR #5574
PR #5202
History
Updated by Alexander Smorkalov almost 11 years ago
OpenCV is international project. Only English language is supported.
- Status changed from New to Cancelled