View PDF files with jp2 / jpeg200 images in Ubuntu 18.04

After exporting PDFs from Goodnotes 5 to iOS, I realized that images embedded in jpeg2000 / jp2 format were exported to the PDF file.

Is there a PDF viewer that can be used to view such PDFs with JP2 images? I've tried the default document viewer, okular and the Foxit player. The document viewer and okular display a very pixelated image, while the Foxit player displays nothing at all.

Any help would be appreciated.

Germany – Anyone can recognize the location and uniforms on these images

I came across these photos that I believe to be a European city.
I wondered if the savvy travelers of this group could name the city and who wore the uniform (police, army)

It seems like an opportunity as a souvenir or a similar event. I managed to reduce the country to Germany by giving the badge on the shoulder of the second photo.

enter the description of the image here

enter the description of the image here

enter the description of the image here

c # – Publication of images of the application on an Azure blob

I have basic controller for attachments, here is the code of it

In this controller, I pass data from the request and return the URL of the published object.

public class ApiAttachmentControllerBase : PM101MobileApiController where T : Entity
{
    private readonly IObjectStorageManager _storageManager;
    protected readonly IRepository Repository;

    public ApiAttachmentControllerBase(IObjectStorageManager storageManager, IRepository repository)
    {
        _storageManager = storageManager;
        Repository = repository;
    }


    private void CheckFileSize(IFormFile file)
    {
        if (file.Length > PM101Consts.MaxAttachmentSize)
        {
            throw new UserFriendlyException(L("Attachment_Warn_SizeLimit",
                PM101Consts.MaxAttachmentSizeMb.ToString()));
        }
    }

    private void CheckFileType(IFormFile file, params string() supportedTypes)
    {
        if (supportedTypes.Any())
        {
            var extention = Path.GetExtension(file.FileName);
            if (!supportedTypes.ToList().Contains(extention))
            {
                throw new UserFriendlyException(L("Attachment_Warn_Type", extention));
            }
        }
    }


    private async Task GetEntityAsync(int entityId)
    {
        var entity = await Repository.FirstOrDefaultAsync(entityId);
        if (entity == null)
        {
            throw new UserFriendlyException(L("EntityNotFound"));
        }

        return entity;
    }


    protected async Task> UploadMultipleAttachmentAsync(
        int entityId,
        ICollection uploadFiles,
        Func getAttachments,
        Action setAttachments,
        params string() supportedTypes
    )
    {
        var entity = await GetEntityAsync(entityId);
        if (uploadFiles != null)
        {
            var files = uploadFiles.ToList();
            files.ForEach(f =>
            {
                CheckFileType(f, supportedTypes);
                CheckFileSize(f);
            });

            var attachmentUrls = new List();

            foreach (var file in files)
            {
                if (file.Length > 0)
                {
                    using (var ms = new MemoryStream())
                    {
                        file.CopyTo(ms);
                        var fileName =
                            AttachmentHelper.GenerateFilePath(file.FileName, entityId, entity.GetType().Name);
                        var url = await _storageManager.UploadFileAsync(fileName, ms.ToArray(), file.ContentType);
                        attachmentUrls.Add(url);
                    }
                }
            }

            return attachmentUrls;
        }

        return null;
    }
}

I inherited it in another controller like this

public class InspectionsController : ApiAttachmentControllerBase
{
    public InspectionsController(IObjectStorageManager storageManager, IRepository repository) : base(
        storageManager, repository)
    {
    }

And then I use it in a method like this

(HttpPost)
    public async Task AddPreInspection((FromForm) CreatePreInspectionDto input)
    {
        var preInspectionCount = await Repository.GetAll().Where(x => x.InspectionTypeId == 1).ToListAsync();
        if (preInspectionCount.Count > 0)
        {
            return Conflict("Pre inspection already exists");
        }


        var preInspection = new Inspection();
        ObjectMapper.Map(input, preInspection);
        var id = await Repository.InsertAndGetIdAsync(preInspection);
        var inspectionGet = await Repository.GetAll().FirstOrDefaultAsync(x => x.Id == id);
        if (input.EvidenceAttachments != null)
        {
            var evidenceAttachments = string.Join(";", await UploadMultipleAttachmentAsync(
                id,
                input.EvidenceAttachments,
                a => a.EvidenceAttachments,
                (a, value) => a.EvidenceAttachments = value,
                ".jpeg", ".png", ".jpg"
            ));
            inspectionGet.FrontPropertyAttachments = evidenceAttachments;
        }

        if (input.FrontPropertyAttachments != null)
        {
            var frontPropertyAttachments = string.Join(";", await UploadMultipleAttachmentAsync(
                id,
                input.EvidenceAttachments,
                a => a.EvidenceAttachments,
                (a, value) => a.EvidenceAttachments = value,
                ".jpeg", ".png", ".jpg"));

            inspectionGet.FrontPropertyAttachments = frontPropertyAttachments;
        }


        await Repository.UpdateAsync(inspectionGet);
        return Ok();
    }

Maybe I can have a more elegant way to post an image, get the URL and update the entity than all these checks in the controller action?

bracketing – Is there a good system for indicating or marking images in a bracket group?

I took a lot of shots. Some of them are intended for bracketing.

But as far as post-processing is concerned, the pictures baffle me because I can not say for sure which group of three comes from a cliché. Here is an example:

enter the description of the image here

Is there a good system or best practice to differentiate the group of photos from other normal snapshots?

java – How to save multiple images with a one-to-many relationship in a SQLite database

I develop a simple form in which the user can attach multiple images and save locally with the help of SQLite. I am able to save other data and have already saved it when attaching a single image. However, you must create the one-to-many patient relationship for photo and save all photos from the form. Since I am now learning how to use SQLite and I do not have much experience with Android, I can not save multiple images of a single form and create the relationship one to several of the SQLite schema.

INSERT DATA CODE IN BANK

public class PacienteDAO {

private Conexao conexao;
private SQLiteDatabase banco;
private byte() imageInBytes;

public PacienteDAO(Context context) {
    conexao = new Conexao(context);
    banco = conexao.getWritableDatabase();
}


public long inserirPaciente(Paciente paciente){

   /*Bitmap() imageToStoreBitmap = paciente.getFotos();
    ByteArrayOutputStream objectByteArrayOutputStream = new ByteArrayOutputStream();
    imageToStoreBitmap.compress(Bitmap.CompressFormat.PNG, 100, objectByteArrayOutputStream);
    imageInBytes = objectByteArrayOutputStream.toByteArray();*/

    ContentValues values = new ContentValues();
    values.put("nome", paciente.getNome());
    values.put("cpf", paciente.getCpf());
    values.put("data", paciente.getData());
    values.put("foto",imageInBytes);
    return banco.insert("paciente", null, values);

}
}

Creating the table

@Override
public void onCreate(SQLiteDatabase db) {

    db.execSQL("create table paciente(id integer primary key autoincrement, nome varchar(50), cpf varchar(11), data varchar(15), fotos BLOB )");
    //db.execSQL("create table foto(id integer primary key autoincrement, enviado int(2), fotoBitmap BLOB,  FOREIGN KEY(pacienteId) REFERENCES paciente(id))");
    Log.d("TAG", "Banco criado com sucesso");

}

In this part, I add all the images, whether from the mobile gallery or taken by the camera in a list of tables: final List bitmaps = new ArrayList<>();

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    final ImageView imageView = findViewById(R.id.imageDisplay);
    if(requestCode == 0 && resultCode == RESULT_OK && data != null) {
        Bitmap bt = (Bitmap) data.getExtras().get("data");
        bitmaps.add(bt);

    }else {
        ClipData clipData = data.getClipData();
        if (clipData != null) {
            for (int i = 0; i < clipData.getItemCount(); i++) {
                Uri uri = clipData.getItemAt(i).getUri();

                try {
                    InputStream inputStream = getContentResolver().openInputStream(uri);
                    Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
                    bitmaps.add(bitmap);

                } catch (FileNotFoundException e) {
                    e.printStackTrace();
                }

            }
        }else {
            Uri uri = data.getData();
            try {
                InputStream inputStream = getContentResolver().openInputStream(uri);
                Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
                bitmaps.add(bitmap);
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

    }
  }

The patient model:

public class Paciente implements Serializable {

@NonNull
@Expose
private String nome;
@NonNull
@Expose
private String cpf;
@NonNull
@Expose
public  List fotos;
@Expose
@NonNull
private String data;

...GETTER E SETTER.

Patient is the Photo class that contains the list of captured images.

public class Foto implements Serializable {
@Expose
private List fotoBitmap;
@Expose
private boolean enviado;
...GETTER E SETTER.

Recognition of patterns and images from dies

I am studying to participate in a research group selection process in my university. In a previous selection process, the challenge was to create a code recognizing 3 characters of the monica class (chive, smudge and monica) from txt files containing a 32×32 matrix of 0 and 1 constituting the image. There were 100 files for each character and files 1 to 70 were for code training and 71 to 100 for program testing.

Initially, I was trying to make the matrix determinant. I imagined that the matrix determinant of each character would follow a pattern, but it gave 0 as the result. I do not know much about image processing and I would like to start developing code or material so that I can study. thank you so much

Does chromatic aberration affect BW images?

In theory, the fact that different wavelengths converge at different places should affect the brightness and make the high-contrast edges blur or create ghost images, in practice however, it seems that the BW conversion does not show any artifacts near the areas affected by the CA.

lens – Which lenses have the most human images

This question already has an answer here:

I've heard wide lenses make your head swell, which is not good for portraits like the telephoto lens that deflates your head.

So, if I use 35mm premium on full frame. Does that mean I'm going to have a perfect human vision? Our vision is rather "diagonal elliptical" but how close a 35mm angle in full frame will be close to the human vision, regardless of the angle of view or the deformations? How close will it be to the position of the head when I take the picture?

I know that two eyes give a wider angle of view while one eye reduces it and I would like to make comparisons between the two situations.

I also know that there is always the fact that camera sensors only use the 3: 2 format.

Although my question looks like a simple viewing angle. I also do not want the lens to stretch the image as in this example.

If you try to 50 mm, then the image is too large (at least according to this comment from rackandboneman ", I would assume something like a 12 mm equivalent to be closer to our field of view 🙂 see the lenses then l & rsquo; # 39; stretching effect begins to occur and there is still the barrel distortion substance.

So, which lenses give the most eye vision as a full-screen vision? How do I crop the photos for the human format report? At least in a single camera configuration and not in a dual-lens 3D setup that I guess would be more realistic.

Can not find the folder where these images are stored

Work on a demo website at https://mto2staging.mustangtraderonline.com and the theme features custom settings for social media links. I have filled some but the icons do not display as you can see in the header. When I try to & # 39; inspect & # 039; elements, I can not see which files are used for the icons nor where they should be stored. What do I miss?

to recover safaritabs / images after the restoration?

Recently, I forgot my password and found myself on the screen Connect to iTunes

Before the restore, what is the probability that my safari tabs or images have been saved to iCloud / itunes / a cloud service from which I can restore them? I know that iCloud is unlikely because I have the base package of 5 GB and that my phone was doing more than 16 gigabytes, so it did not stop saying "insufficient storage in iCloud for save a phone ", but is there anything I can try to recover my lost data?