Find Jobs
Hire Freelancers

OpenCV error with Numpy 3d array

$30-250 USD

En curso
Publicado hace más de 4 años

$30-250 USD

Pagado a la entrega
I am using this project to perform super resolution: [login to view URL] I want to use the high resolution image with OpenCV, but it keeps failing. I edited some parts of the code to return the variable 'image' in the method do_for_file. The object is a ndarray of floats of shape (x,y,3), I am assuming in an RGB image, but I am not sure. The error comes when I use: img_gris = [login to view URL](imgSR, cv2.COLOR_RGB2GRAY) [login to view URL]: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/[login to view URL]: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = (cv::impl::<unnamed>::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]' > Unsupported depth of input image: > 'VDepth::contains(depth)' > where > 'depth' is 6 (CV_64F) I tried to convert the floats to int, but then it showe the next error: img_gris = [login to view URL](img, cv2.COLOR_BGR2GRAY) [login to view URL]: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/[login to view URL]: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = (cv::impl::<unnamed>::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]' > Unsupported depth of input image: > 'VDepth::contains(depth)' > where > 'depth' is 4 (CV_32S) I want to use the high resolution image in my code without saving a .jpg file and calling [login to view URL]()
ID del proyecto: 23520688

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 4 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $43 USD por este trabajo
Avatar del usuario
Hello sir/ma, I'm interested in taking this task up for you. I have extensive experience in the domains of Natural Language Processing, Image Recognition & Artificial Intelligence,Recommender Systems,Machine learning,Data Minning, C++, C#, NS3 simulation, Omnet++, Sumo simulation, Deep Learning, Computer Vision, AI text analysis model,and Reinforcement Learning. While working in the domains mentioned above, I have worked used frameworks like TensorFlow, Scikit-learn, PyTorch,STP and UDP, Caffe2, OpenCV, Keras, matplotlib, seaborn, fastai, Pycharm,NILM algorithms etc) I am also very familiar with classification and clustering algorithms such as SVM,FHMM, Combinatorial Optimization, HART 85 Algorithm, Maximum Likelihood Estimation, KNN, LDA, Fuzzy classification I’m honest, creative and a unique person to carry out your tasks given to me. Leaving your project on our hand is privileged; we'll make sure that the project is done in a perfect way and do our best until you were satisfied. I would love to discuss this project with you and meet your exact requirements. I am confident I can provide you with top-notch materials that will fit your needs. I'm proud of my work on being professional, of the highest quality and always delivered on time
$30 USD en 2 días
4,1 (8 comentarios)
4,5
4,5
Avatar del usuario
Hi, I'm python programmer and I've experience using OpenCV in many projects. I think that you need to rearrange the ndarray so it will suitable to OpenCV Image. I hope I can help you to fix your code.
$55 USD en 2 días
5,0 (8 comentarios)
3,1
3,1

Sobre este cliente

Bandera de CHINA
Yanji, China
5,0
2
Miembro desde sept 22, 2019

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.