i have built opencv x86 using cmake and now it runs just fine with this code
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
int main()
{
cv::Mat im;
im = cv::imread("photo_2022-07-29_16-26-22.jpg");
cv::namedWindow("dd");
cv::imshow("d", im);
cv::waitKey();
std::cout << "Hello World!\n";
}
the problem is i am getting these failed loading messages inside the console
[ INFO:0#0.040] global registry.impl.hpp:114 cv::highgui_backend::UIBackendRegistry::UIBackendRegistry UI: Enabled backends(4, sorted by priority): GTK(1000); GTK3(990); GTK2(980); WIN32(970) + BUILTIN(WIN32UI)
[ INFO:0#0.041] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_highgui_gtk470.dll => FAILED
[ INFO:0#0.042] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk470.dll => FAILED
[ INFO:0#0.043] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_highgui_gtk3470.dll => FAILED
[ INFO:0#0.045] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk3470.dll => FAILED
[ INFO:0#0.046] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_highgui_gtk2470.dll => FAILED
[ INFO:0#0.047] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk2470.dll => FAILED
[ INFO:0#0.047] global backend.cpp:90 cv::highgui_backend::createUIBackend UI: using backend: WIN32 (priority=970)
[ INFO:0#0.048] global window_w32.cpp:3008 cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: dd (1)
[ INFO:0#0.076] global window_w32.cpp:3008 cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: d (1)
[ INFO:0#0.089] global registry_parallel.impl.hpp:96 cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)
[ INFO:0#0.089] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_core_parallel_onetbb470d.dll => FAILED
[ INFO:0#0.091] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb470d.dll => FAILED
[ INFO:0#0.091] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_core_parallel_tbb470d.dll => FAILED
[ INFO:0#0.093] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb470d.dll => FAILED
[ INFO:0#0.093] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\opencv\build\x86\vc\bin\Debug\opencv_core_parallel_openmp470d.dll => FAILED
[ INFO:0#0.095] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp470d.dll => FAILED
can anybody explain why are these messages appering ?
and how can i get rid of them ?
Related
I'm having this error when I call the startDocumentTextDetection even I have the correct credentials because I was able to upload the my pdf in s3. I also allowed Textract to call other services on my behalf.
$client = new TextractClient([
'region' => env('AWS_DEFAULT_REGION'),
'version' => '2018-06-27',
'credentials' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY')
]
]);
$result = $client->startDocumentTextDetection([
'ClientRequestToken' => 'DocumentDetectionToken',
'DocumentLocation' => [ // REQUIRED
'S3Object' => [
'Bucket' => 'XXXXX',
'Name' => 'HNlLrVxE4cDqyJh0RHmSfTGtZVKzOWUG75ycHfyE.pdf',
],
],
'FeatureTypes' => ['FORMS','TABLES'],
'JobTag' => 'HNlLrVxE4cDqyJh0RHmSfTGtZVKzOWUG75ycHfyE.pdf',
'NotificationChannel' => [
'RoleArn' => 'XXXXX', // REQUIRED
'SNSTopicArn' => 'XXXXX', // REQUIRED
],
'OutputConfig' => [
'S3Bucket' => 'XXXXXX',
],
]);
When I install opencv-4.5.3, I find some problems with it.
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\highgui\src\registry.impl.hpp (114) cv::highgui_backend::UIBackendRegistry::UIBackendRegistry UI: Enabled backends(4, sorted by priority): GTK(1000); GTK3(990); GTK2(980); WIN32(970) + BUILTIN(WIN32UI)
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Windows\SYSTEM32\opencv_highgui_gtk453_64.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk453_64.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Windows\SYSTEM32\opencv_highgui_gtk3453_64.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk3453_64.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Windows\SYSTEM32\opencv_highgui_gtk2453_64.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk2453_64.dll => FAILED
[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\highgui\src\backend.cpp (90) cv::highgui_backend::createUIBackend UI: using backend: WIN32 (priority=970)
[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\highgui\src\window_w32.cpp (3009) cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: picture (1)
So these messages are just "INFO" messages. Release will not showing them as mentionned above due to debug level being higher. These error messages seem to be always there, you can ignore them :)
see more info here :
https://github.com/opencv/opencv/issues/20113
Use release instead of debug, then you won't see these messages.
I have the following rule in my UrlManager:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'cache' => null,
'rules' => [
'classic_articles/<route:.*>' => 'site/classic-articles',
// your rules go here
]
],
However it is not going to the new path when route is a file name
i.e blank%20document.pdf
It does work when there is no .pdf on the end.
Is it possiple to Connect to an Amazon Elasticsearch with Elastica and the "AWS Account access policy"?
When i use "Allow open access to the domain" it works.
$elasticaClient = new \Elastica\Client([
'connections' => [
[
'transport' => 'Https',
'host' => 'search-xxxxxxxx-zzzzzzzz.us-west-2.es.amazonaws.com',
'port' => '',
'curl' => [
CURLOPT_SSL_VERIFYPEER => false,
],
],
],
]);
But in dont know how to set the "Authorization header requires" when i use the "AWS Account access policy".
I am using the FriendsOfSymfony FOSElasticaBundle for Symfony. I solved that problem using AwsAuthV4 as transport like this:
fos_elastica:
clients:
default:
host: "YOURHOST.eu-west-1.es.amazonaws.com"
port: 9200
transport: "AwsAuthV4"
aws_access_key_id: "YOUR_AWS_KEY"
aws_secret_access_key: "YOUR_AWS_SECRET"
aws_region: "eu-west-1"
This is not implemented yet as it needs more then just setting the headers. Best is to follow the issue here in the Elastica repository for progress: https://github.com/ruflin/Elastica/issues/948
I am using ZF2 with DoctrineOrm and have recently installed a local environment using vagrant on my mac running OSX (Yasomite).
Everything works as expected except I get the following error when I attempt to use Doctrine vendor tools:
./vendor/bin/doctrine-module orm:schema-tool:create --dump-sql
The error reads:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002]
No such file or directory' in
example.com/trunk/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
EDIT
Line 43 from the offending class: parent::__construct($dsn, $user, $password, $options);
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
public function __construct($dsn, $user = null, $password = null, array $options = null)
{
try {
parent::__construct($dsn, $user, $password, $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
When I dump the variables from the catch statement, they are as expected.
I can access the mysql location via adminer: http://192.168..../adminer/
And the website loads albeit with errors as I am unable to create the DB.
I remember when I originally set up my local MAMP environment having a similar problem and had to add the following line to my pdo settings:
/Applications/MAMP/tmp/mysql/mysql.sock
'connection' => [
'orm_default' => [
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => [
'host' => 'localhost',
'port' => '3306',
'user' => 'games_cloud',
'password' => 'games_cloud',
'dbname' => 'games_cloud',
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock'
]
]
],
I can't help but think that I need to do the same thing, however I am not really sure how to.
EDIT:
SSHing into the Vbox I see the socket is located here: /var/lib/mysql/mysql.sock
What would the correct settings be to connect to this? The following does not work:
'connection' => [
'orm_default' => [
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => [
'host' => '192.168.56.101/',
'port' => '3306',
'user' => 'games_cloud',
'password' => 'games_cloud',
'dbname' => 'games_cloud',
'unix_socket' => '/var/lib/mysql/mysql.sock' //To use Doctrine Entity Generator
]
]
],
Any help would be appreciated!
Managed to get this to work, it was a setting:
'connection' => [
'orm_default' => [
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => [
'host' => 'localhost',
'port' => '3306',
'user' => 'games_cloud',
'password' => 'games_cloud',
'dbname' => 'games_cloud',
'unix_socket' => '/var/lib/mysql/mysql.sock'
]
]
],